zartui 3.1.87 → 3.1.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/zartui.min.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * @author owenm <owen23355@gmail.com>
6
6
  * @license MIT
7
7
  */
8
- function su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?su(Object(n),!0).forEach((function(t){du(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):su(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uu(e){return(uu="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})(e)}function du(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fu(){return fu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fu.apply(this,arguments)}function pu(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function hu(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var mu=hu(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),vu=hu(/Edge/i),gu=hu(/firefox/i),wu=hu(/safari/i)&&!hu(/chrome/i)&&!hu(/android/i),yu=hu(/iP(ad|od|hone)/i),bu=hu(/chrome/i)&&hu(/android/i),xu={capture:!1,passive:!1};function Cu(e,t,n){e.addEventListener(t,n,!mu&&xu)}function Lu(e,t,n){e.removeEventListener(t,n,!mu&&xu)}function Nu(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function Vu(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ku(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Nu(e,t):Nu(e,t))||o&&e===n)return e;if(e===n)break}while(e=Vu(e))}return null}var Su,Au=/\s+/g;function Tu(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Au," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Au," ")}}function Ou(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function Pu(e,t){var n="";if("string"==typeof e)n=e;else do{var o=Ou(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function Mu(e,t,n){if(e){var o=e.getElementsByTagName(t),a=0,r=o.length;if(n)for(;a<r;a++)n(o[a],a);return o}return[]}function Bu(){var e=document.scrollingElement;return e||document.documentElement}function Iu(e,t,n,o,a){if(e.getBoundingClientRect||e===window){var r,i,l,s,c,u,d;if(e!==window&&e.parentNode&&e!==Bu()?(i=(r=e.getBoundingClientRect()).top,l=r.left,s=r.bottom,c=r.right,u=r.height,d=r.width):(i=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(a=a||e.parentNode,!mu))do{if(a&&a.getBoundingClientRect&&("none"!==Ou(a,"transform")||n&&"static"!==Ou(a,"position"))){var f=a.getBoundingClientRect();i-=f.top+parseInt(Ou(a,"border-top-width")),l-=f.left+parseInt(Ou(a,"border-left-width")),s=i+r.height,c=l+r.width;break}}while(a=a.parentNode);if(o&&e!==window){var p=Pu(a||e),h=p&&p.a,m=p&&p.d;p&&(s=(i/=m)+(u/=m),c=(l/=h)+(d/=h))}return{top:i,left:l,bottom:s,right:c,width:d,height:u}}}function Eu(e,t,n){for(var o=_u(e,!0),a=Iu(e)[t];o;){var r=Iu(o)[n];if(!("top"===n||"left"===n?a>=r:a<=r))return o;if(o===Bu())break;o=_u(o,!1)}return!1}function Du(e,t,n,o){for(var a=0,r=0,i=e.children;r<i.length;){if("none"!==i[r].style.display&&i[r]!==Zd.ghost&&(o||i[r]!==Zd.dragged)&&ku(i[r],n.draggable,e,!1)){if(a===t)return i[r];a++}r++}return null}function zu(e,t){for(var n=e.lastElementChild;n&&(n===Zd.ghost||"none"===Ou(n,"display")||t&&!Nu(n,t));)n=n.previousElementSibling;return n||null}function Fu(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Zd.clone||t&&!Nu(e,t)||n++;return n}function ju(e){var t=0,n=0,o=Bu();if(e)do{var a=Pu(e),r=a.a,i=a.d;t+=e.scrollLeft*r,n+=e.scrollTop*i}while(e!==o&&(e=e.parentNode));return[t,n]}function _u(e,t){if(!e||!e.getBoundingClientRect)return Bu();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=Ou(n);if(n.clientWidth<n.scrollWidth&&("auto"==a.overflowX||"scroll"==a.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==a.overflowY||"scroll"==a.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Bu();if(o||t)return n;o=!0}}}while(n=n.parentNode);return Bu()}function Ru(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Hu(e,t){return function(){if(!Su){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),Su=setTimeout((function(){Su=void 0}),t)}}}function Uu(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function $u(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Zu(e,t,n){var o={};return Array.from(e.children).forEach((function(a){var r,i,l,s;if(ku(a,t.draggable,e,!1)&&!a.animated&&a!==n){var c=Iu(a);o.left=Math.min(null!==(r=o.left)&&void 0!==r?r:1/0,c.left),o.top=Math.min(null!==(i=o.top)&&void 0!==i?i:1/0,c.top),o.right=Math.max(null!==(l=o.right)&&void 0!==l?l:-1/0,c.right),o.bottom=Math.max(null!==(s=o.bottom)&&void 0!==s?s:-1/0,c.bottom)}})),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var Wu="Sortable"+(new Date).getTime();function Yu(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==Ou(e,"display")&&e!==Zd.ghost){t.push({target:e,rect:Iu(e)});var n=cu({},t[t.length-1].rect);if(e.thisAnimationDuration){var o=Pu(e,!0);o&&(n.top-=o.f,n.left-=o.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var a=!1,r=0;t.forEach((function(e){var t=0,n=e.target,i=n.fromRect,l=Iu(n),s=n.prevFromRect,c=n.prevToRect,u=e.rect,d=Pu(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&Ru(s,l)&&!Ru(i,l)&&(u.top-l.top)/(u.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(t=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(u,s,c,o.options)),Ru(l,i)||(n.prevFromRect=i,n.prevToRect=l,t||(t=o.options.animation),o.animate(n,u,l,t)),t&&(a=!0,r=Math.max(r,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),a?e=setTimeout((function(){"function"==typeof n&&n()}),r):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,o){if(o){Ou(e,"transition",""),Ou(e,"transform","");var a=Pu(this.el),r=a&&a.a,i=a&&a.d,l=(t.left-n.left)/(r||1),s=(t.top-n.top)/(i||1);e.animatingX=!!l,e.animatingY=!!s,Ou(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),Ou(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Ou(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Ou(e,"transition",""),Ou(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}}var qu=[],Gu={initializeByDefault:!0},Xu={mount:function(e){for(var t in Gu)Gu.hasOwnProperty(t)&&!(t in e)&&(e[t]=Gu[t]);qu.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),qu.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var a=e+"Global";qu.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][a]&&t[o.pluginName][a](cu({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](cu({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var a in qu.forEach((function(o){var a=o.pluginName;if(e.options[a]||o.initializeByDefault){var r=new o(e,t,e.options);r.sortable=e,r.options=e.options,e[a]=r,fu(n,r.defaults)}})),e.options)if(e.options.hasOwnProperty(a)){var r=this.modifyOption(e,a,e.options[a]);void 0!==r&&(e.options[a]=r)}},getEventProperties:function(e,t){var n={};return qu.forEach((function(o){"function"==typeof o.eventProperties&&fu(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return qu.forEach((function(a){e[a.pluginName]&&a.optionListeners&&"function"==typeof a.optionListeners[t]&&(o=a.optionListeners[t].call(e[a.pluginName],n))})),o}};var Ku=["evt"],Qu=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,a=pu(n,Ku);Xu.pluginEvent.bind(Zd)(e,t,cu({dragEl:ed,parentEl:td,ghostEl:nd,rootEl:od,nextEl:ad,lastDownEl:rd,cloneEl:id,cloneHidden:ld,dragStarted:xd,putSortable:hd,activeSortable:Zd.active,originalEvent:o,oldIndex:sd,oldDraggableIndex:ud,newIndex:cd,newDraggableIndex:fd,hideGhostForTarget:Rd,unhideGhostForTarget:Hd,cloneNowHidden:function(){ld=!0},cloneNowShown:function(){ld=!1},dispatchSortableEvent:function(e){Ju({sortable:t,name:e,originalEvent:o})}},a))};function Ju(e){!function(e){var t=e.sortable,n=e.rootEl,o=e.name,a=e.targetEl,r=e.cloneEl,i=e.toEl,l=e.fromEl,s=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[Wu]){var m,v=t.options,g="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||mu||vu?(m=document.createEvent("Event")).initEvent(o,!0,!0):m=new CustomEvent(o,{bubbles:!0,cancelable:!0}),m.to=i||n,m.from=l||n,m.item=a||n,m.clone=r,m.oldIndex=s,m.newIndex=c,m.oldDraggableIndex=u,m.newDraggableIndex=d,m.originalEvent=f,m.pullMode=p?p.lastPutMode:void 0;var w=cu(cu({},h),Xu.getEventProperties(o,t));for(var y in w)m[y]=w[y];n&&n.dispatchEvent(m),v[g]&&v[g].call(t,m)}}(cu({putSortable:hd,cloneEl:id,targetEl:ed,rootEl:od,oldIndex:sd,oldDraggableIndex:ud,newIndex:cd,newDraggableIndex:fd},e))}var ed,td,nd,od,ad,rd,id,ld,sd,cd,ud,fd,pd,hd,md,vd,gd,wd,yd,bd,xd,Cd,Ld,Nd,Vd,kd=!1,Sd=!1,Ad=[],Td=!1,Od=!1,Pd=[],Md=!1,Bd=[],Id="undefined"!=typeof document,Ed=yu,Dd=vu||mu?"cssFloat":"float",zd=Id&&!bu&&!yu&&"draggable"in document.createElement("div"),Fd=function(){if(Id){if(mu)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),jd=function(e,t){var n=Ou(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=Du(e,0,t),r=Du(e,1,t),i=a&&Ou(a),l=r&&Ou(r),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Iu(a).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Iu(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return a&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||s>=o&&"none"===n[Dd]||r&&"none"===n[Dd]&&s+c>o)?"vertical":"horizontal"},_d=function(e){function t(e,n){return function(o,a,r,i){var l=o.options.group.name&&a.options.group.name&&o.options.group.name===a.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,a,r,i),n)(o,a,r,i);var s=(n?o:a).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},o=e.group;o&&"object"==uu(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},Rd=function(){!Fd&&nd&&Ou(nd,"display","none")},Hd=function(){!Fd&&nd&&Ou(nd,"display","")};Id&&!bu&&document.addEventListener("click",(function(e){if(Sd)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Sd=!1,!1}),!0);var Ud=function(e){if(ed){e=e.touches?e.touches[0]:e;var t=(a=e.clientX,r=e.clientY,Ad.some((function(e){var t=e[Wu].options.emptyInsertThreshold;if(t&&!zu(e)){var n=Iu(e),o=a>=n.left-t&&a<=n.right+t,l=r>=n.top-t&&r<=n.bottom+t;return o&&l?i=e:void 0}})),i);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Wu]._onDragOver(n)}}var a,r,i},$d=function(e){ed&&ed.parentNode[Wu]._isOutsideThisEl(e.target)};function Zd(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=fu({},t),e[Wu]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return jd(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Zd.supportPointer&&"PointerEvent"in window&&(!wu||yu),emptyInsertThreshold:5};for(var o in Xu.initializePlugins(this,e,n),n)!(o in t)&&(t[o]=n[o]);for(var a in _d(t),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&zd,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Cu(e,"pointerdown",this._onTapStart):(Cu(e,"mousedown",this._onTapStart),Cu(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Cu(e,"dragover",this),Cu(e,"dragenter",this)),Ad.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),fu(this,Yu())}function Wd(e,t,n,o,a,r,i,l){var s,c,u=e[Wu],d=u.options.onMove;return!window.CustomEvent||mu||vu?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=o,s.related=a||t,s.relatedRect=r||Iu(t),s.willInsertAfter=l,s.originalEvent=i,e.dispatchEvent(s),d&&(c=d.call(u,s,i)),c}function Yd(e){e.draggable=!1}function qd(){Md=!1}function Gd(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function Xd(e){return setTimeout(e,0)}function Kd(e){return clearTimeout(e)}Zd.prototype={constructor:Zd,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Cd=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ed):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,a=o.preventOnFilter,r=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=o.filter;if(function(e){Bd.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var o=t[n];o.checked&&Bd.push(o)}}(n),!ed&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!wu||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=ku(l,o.draggable,n,!1))&&l.animated||rd===l)){if(sd=Fu(l),ud=Fu(l,o.draggable),"function"==typeof c){if(c.call(this,e,l,this))return Ju({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Qu("filter",t,{evt:e}),void(a&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=ku(s,o.trim(),n,!1))return Ju({sortable:t,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),Qu("filter",t,{evt:e}),!0}))))return void(a&&e.preventDefault());o.handle&&!ku(s,o.handle,n,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,n){var o,a=this,r=a.el,i=a.options,l=r.ownerDocument;if(n&&!ed&&n.parentNode===r){var s=Iu(n);if(od=r,td=(ed=n).parentNode,ad=ed.nextSibling,rd=n,pd=i.group,Zd.dragged=ed,md={target:ed,clientX:(t||e).clientX,clientY:(t||e).clientY},yd=md.clientX-s.left,bd=md.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ed.style["will-change"]="all",o=function(){Qu("delayEnded",a,{evt:e}),Zd.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!gu&&a.nativeDraggable&&(ed.draggable=!0),a._triggerDragStart(e,t),Ju({sortable:a,name:"choose",originalEvent:e}),Tu(ed,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){Mu(ed,e.trim(),Yd)})),Cu(l,"dragover",Ud),Cu(l,"mousemove",Ud),Cu(l,"touchmove",Ud),i.supportPointer?(Cu(l,"pointerup",a._onDrop),!this.nativeDraggable&&Cu(l,"pointercancel",a._onDrop)):(Cu(l,"mouseup",a._onDrop),Cu(l,"touchend",a._onDrop),Cu(l,"touchcancel",a._onDrop)),gu&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ed.draggable=!0),Qu("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(vu||mu))o();else{if(Zd.eventCanceled)return void this._onDrop();i.supportPointer?(Cu(l,"pointerup",a._disableDelayedDrag),Cu(l,"pointercancel",a._disableDelayedDrag)):(Cu(l,"mouseup",a._disableDelayedDrag),Cu(l,"touchend",a._disableDelayedDrag),Cu(l,"touchcancel",a._disableDelayedDrag)),Cu(l,"mousemove",a._delayedDragTouchMoveHandler),Cu(l,"touchmove",a._delayedDragTouchMoveHandler),i.supportPointer&&Cu(l,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(o,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ed&&Yd(ed),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Lu(e,"mouseup",this._disableDelayedDrag),Lu(e,"touchend",this._disableDelayedDrag),Lu(e,"touchcancel",this._disableDelayedDrag),Lu(e,"pointerup",this._disableDelayedDrag),Lu(e,"pointercancel",this._disableDelayedDrag),Lu(e,"mousemove",this._delayedDragTouchMoveHandler),Lu(e,"touchmove",this._delayedDragTouchMoveHandler),Lu(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Cu(document,"pointermove",this._onTouchMove):Cu(document,t?"touchmove":"mousemove",this._onTouchMove):(Cu(ed,"dragend",this),Cu(od,"dragstart",this._onDragStart));try{document.selection?Xd((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(kd=!1,od&&ed){Qu("dragStarted",this,{evt:t}),this.nativeDraggable&&Cu(document,"dragover",$d);var n=this.options;!e&&Tu(ed,n.dragClass,!1),Tu(ed,n.ghostClass,!0),Zd.active=this,e&&this._appendGhost(),Ju({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(vd){this._lastX=vd.clientX,this._lastY=vd.clientY,Rd();for(var e=document.elementFromPoint(vd.clientX,vd.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(vd.clientX,vd.clientY))!==t;)t=e;if(ed.parentNode[Wu]._isOutsideThisEl(e),t)do{if(t[Wu]){if(t[Wu]._onDragOver({clientX:vd.clientX,clientY:vd.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=Vu(t));Hd()}},_onTouchMove:function(e){if(md){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,a=e.touches?e.touches[0]:e,r=nd&&Pu(nd,!0),i=nd&&r&&r.a,l=nd&&r&&r.d,s=Ed&&Vd&&ju(Vd),c=(a.clientX-md.clientX+o.x)/(i||1)+(s?s[0]-Pd[0]:0)/(i||1),u=(a.clientY-md.clientY+o.y)/(l||1)+(s?s[1]-Pd[1]:0)/(l||1);if(!Zd.active&&!kd){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(nd){r?(r.e+=c-(gd||0),r.f+=u-(wd||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");Ou(nd,"webkitTransform",d),Ou(nd,"mozTransform",d),Ou(nd,"msTransform",d),Ou(nd,"transform",d),gd=c,wd=u,vd=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!nd){var e=this.options.fallbackOnBody?document.body:od,t=Iu(ed,!0,Ed,!0,e),n=this.options;if(Ed){for(Vd=e;"static"===Ou(Vd,"position")&&"none"===Ou(Vd,"transform")&&Vd!==document;)Vd=Vd.parentNode;Vd!==document.body&&Vd!==document.documentElement?(Vd===document&&(Vd=Bu()),t.top+=Vd.scrollTop,t.left+=Vd.scrollLeft):Vd=Bu(),Pd=ju(Vd)}Tu(nd=ed.cloneNode(!0),n.ghostClass,!1),Tu(nd,n.fallbackClass,!0),Tu(nd,n.dragClass,!0),Ou(nd,"transition",""),Ou(nd,"transform",""),Ou(nd,"box-sizing","border-box"),Ou(nd,"margin",0),Ou(nd,"top",t.top),Ou(nd,"left",t.left),Ou(nd,"width",t.width),Ou(nd,"height",t.height),Ou(nd,"opacity","0.8"),Ou(nd,"position",Ed?"absolute":"fixed"),Ou(nd,"zIndex","100000"),Ou(nd,"pointerEvents","none"),Zd.ghost=nd,e.appendChild(nd),Ou(nd,"transform-origin",yd/parseInt(nd.style.width)*100+"% "+bd/parseInt(nd.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,a=n.options;Qu("dragStart",this,{evt:e}),Zd.eventCanceled?this._onDrop():(Qu("setupClone",this),Zd.eventCanceled||((id=$u(ed)).removeAttribute("id"),id.draggable=!1,id.style["will-change"]="",this._hideClone(),Tu(id,this.options.chosenClass,!1),Zd.clone=id),n.cloneId=Xd((function(){Qu("clone",n),Zd.eventCanceled||(n.options.removeCloneOnHide||od.insertBefore(id,ed),n._hideClone(),Ju({sortable:n,name:"clone"}))})),!t&&Tu(ed,a.dragClass,!0),t?(Sd=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Lu(document,"mouseup",n._onDrop),Lu(document,"touchend",n._onDrop),Lu(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(n,o,ed)),Cu(document,"drop",n),Ou(ed,"transform","translateZ(0)")),kd=!0,n._dragStartId=Xd(n._dragStarted.bind(n,t,e)),Cu(document,"selectstart",n),xd=!0,window.getSelection().removeAllRanges(),wu&&Ou(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,a,r=this.el,i=e.target,l=this.options,s=l.group,c=Zd.active,u=pd===s,d=l.sort,f=hd||c,p=this,h=!1;if(!Md){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),i=ku(i,l.draggable,r,!0),T("dragOver"),Zd.eventCanceled)return h;if(ed.contains(e.target)||i.animated&&i.animatingX&&i.animatingY||p._ignoreWhileAnimating===i)return P(!1);if(Sd=!1,c&&!l.disabled&&(u?d||(o=td!==od):hd===this||(this.lastPutMode=pd.checkPull(this,c,ed,e))&&s.checkPut(this,c,ed,e))){if(a="vertical"===this._getDirection(e,i),t=Iu(ed),T("dragOverValid"),Zd.eventCanceled)return h;if(o)return td=od,O(),this._hideClone(),T("revert"),Zd.eventCanceled||(ad?od.insertBefore(ed,ad):od.appendChild(ed)),P(!0);var m=zu(r,l.draggable);if(!m||function(e,t,n){var o=Iu(zu(n.el,n.options.draggable)),a=Zu(n.el,n.options,nd),r=10;return t?e.clientX>a.right+r||e.clientY>o.bottom&&e.clientX>o.left:e.clientY>a.bottom+r||e.clientX>o.right&&e.clientY>o.top}(e,a,this)&&!m.animated){if(m===ed)return P(!1);if(m&&r===e.target&&(i=m),i&&(n=Iu(i)),!1!==Wd(od,r,ed,t,i,n,e,!!i))return O(),m&&m.nextSibling?r.insertBefore(ed,m.nextSibling):r.appendChild(ed),td=r,M(),P(!0)}else if(m&&function(e,t,n){var o=Iu(Du(n.el,0,n.options,!0)),a=Zu(n.el,n.options,nd),r=10;return t?e.clientX<a.left-r||e.clientY<o.top&&e.clientX<o.right:e.clientY<a.top-r||e.clientY<o.bottom&&e.clientX<o.left}(e,a,this)){var v=Du(r,0,l,!0);if(v===ed)return P(!1);if(n=Iu(i=v),!1!==Wd(od,r,ed,t,i,n,e,!1))return O(),r.insertBefore(ed,v),td=r,M(),P(!0)}else if(i.parentNode===r){n=Iu(i);var g,w,y,b=ed.parentNode!==r,x=!function(e,t,n){var o=n?e.left:e.top,a=n?e.right:e.bottom,r=n?e.width:e.height,i=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return o===i||a===l||o+r/2===i+s/2}(ed.animated&&ed.toRect||t,i.animated&&i.toRect||n,a),C=a?"top":"left",L=Eu(i,"top","top")||Eu(ed,"top","top"),N=L?L.scrollTop:void 0;if(Cd!==i&&(w=n[C],Td=!1,Od=!x&&l.invertSwap||b),g=function(e,t,n,o,a,r,i,l){var s=o?e.clientY:e.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,f=!1;if(!i)if(l&&Nd<c*a){if(!Td&&(1===Ld?s>u+c*r/2:s<d-c*r/2)&&(Td=!0),Td)f=!0;else if(1===Ld?s<u+Nd:s>d-Nd)return-Ld}else if(s>u+c*(1-a)/2&&s<d-c*(1-a)/2)return function(e){return Fu(ed)<Fu(e)?1:-1}(t);if((f=f||i)&&(s<u+c*r/2||s>d-c*r/2))return s>u+c/2?1:-1;return 0}(e,i,n,a,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Od,Cd===i),0!==g){var V=Fu(ed);do{V-=g,y=td.children[V]}while(y&&("none"===Ou(y,"display")||y===nd))}if(0===g||y===i)return P(!1);Cd=i,Ld=g;var k=i.nextElementSibling,S=!1,A=Wd(od,r,ed,t,i,n,e,S=1===g);if(!1!==A)return 1!==A&&-1!==A||(S=1===A),Md=!0,setTimeout(qd,30),O(),S&&!k?r.appendChild(ed):i.parentNode.insertBefore(ed,S?k:i),L&&Uu(L,0,N-L.scrollTop),td=ed.parentNode,void 0===w||Od||(Nd=Math.abs(w-Iu(i)[C])),M(),P(!0)}if(r.contains(ed))return P(!1)}return!1}function T(l,s){Qu(l,p,cu({evt:e,isOwner:u,axis:a?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:i,completed:P,onMove:function(n,o){return Wd(od,r,ed,t,n,Iu(n),e,o)},changed:M},s))}function O(){T("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function P(t){return T("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(p),p!==f&&(Tu(ed,hd?hd.options.ghostClass:c.options.ghostClass,!1),Tu(ed,l.ghostClass,!0)),hd!==p&&p!==Zd.active?hd=p:p===Zd.active&&hd&&(hd=null),f===p&&(p._ignoreWhileAnimating=i),p.animateAll((function(){T("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(i===ed&&!ed.animated||i===r&&!i.animated)&&(Cd=null),l.dragoverBubble||e.rootEl||i===document||(ed.parentNode[Wu]._isOutsideThisEl(e.target),!t&&Ud(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function M(){cd=Fu(ed),fd=Fu(ed,l.draggable),Ju({sortable:p,name:"change",toEl:r,newIndex:cd,newDraggableIndex:fd,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Lu(document,"mousemove",this._onTouchMove),Lu(document,"touchmove",this._onTouchMove),Lu(document,"pointermove",this._onTouchMove),Lu(document,"dragover",Ud),Lu(document,"mousemove",Ud),Lu(document,"touchmove",Ud)},_offUpEvents:function(){var e=this.el.ownerDocument;Lu(e,"mouseup",this._onDrop),Lu(e,"touchend",this._onDrop),Lu(e,"pointerup",this._onDrop),Lu(e,"pointercancel",this._onDrop),Lu(e,"touchcancel",this._onDrop),Lu(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;cd=Fu(ed),fd=Fu(ed,n.draggable),Qu("drop",this,{evt:e}),td=ed&&ed.parentNode,cd=Fu(ed),fd=Fu(ed,n.draggable),Zd.eventCanceled||(kd=!1,Od=!1,Td=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Kd(this.cloneId),Kd(this._dragStartId),this.nativeDraggable&&(Lu(document,"drop",this),Lu(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),wu&&Ou(document.body,"user-select",""),Ou(ed,"transform",""),e&&(xd&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),nd&&nd.parentNode&&nd.parentNode.removeChild(nd),(od===td||hd&&"clone"!==hd.lastPutMode)&&id&&id.parentNode&&id.parentNode.removeChild(id),ed&&(this.nativeDraggable&&Lu(ed,"dragend",this),Yd(ed),ed.style["will-change"]="",xd&&!kd&&Tu(ed,hd?hd.options.ghostClass:this.options.ghostClass,!1),Tu(ed,this.options.chosenClass,!1),Ju({sortable:this,name:"unchoose",toEl:td,newIndex:null,newDraggableIndex:null,originalEvent:e}),od!==td?(cd>=0&&(Ju({rootEl:td,name:"add",toEl:td,fromEl:od,originalEvent:e}),Ju({sortable:this,name:"remove",toEl:td,originalEvent:e}),Ju({rootEl:td,name:"sort",toEl:td,fromEl:od,originalEvent:e}),Ju({sortable:this,name:"sort",toEl:td,originalEvent:e})),hd&&hd.save()):cd!==sd&&cd>=0&&(Ju({sortable:this,name:"update",toEl:td,originalEvent:e}),Ju({sortable:this,name:"sort",toEl:td,originalEvent:e})),Zd.active&&(null!=cd&&-1!==cd||(cd=sd,fd=ud),Ju({sortable:this,name:"end",toEl:td,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Qu("nulling",this),od=ed=td=nd=ad=id=rd=ld=md=vd=xd=cd=fd=sd=ud=Cd=Ld=hd=pd=Zd.dragged=Zd.ghost=Zd.clone=Zd.active=null,Bd.forEach((function(e){e.checked=!0})),Bd.length=gd=wd=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ed&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,a=n.length,r=this.options;o<a;o++)ku(e=n[o],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||Gd(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var a=o.children[t];ku(a,this.options.draggable,o,!1)&&(n[e]=a)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ku(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=Xu.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&_d(n)},destroy:function(){Qu("destroy",this);var e=this.el;e[Wu]=null,Lu(e,"mousedown",this._onTapStart),Lu(e,"touchstart",this._onTapStart),Lu(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Lu(e,"dragover",this),Lu(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ad.splice(Ad.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ld){if(Qu("hideClone",this),Zd.eventCanceled)return;Ou(id,"display","none"),this.options.removeCloneOnHide&&id.parentNode&&id.parentNode.removeChild(id),ld=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ld){if(Qu("showClone",this),Zd.eventCanceled)return;ed.parentNode!=od||this.options.group.revertClone?ad?od.insertBefore(id,ad):od.appendChild(id):od.insertBefore(id,ed),this.options.group.revertClone&&this.animate(ed,id),Ou(id,"display",""),ld=!1}}else this._hideClone()}},Id&&Cu(document,"touchmove",(function(e){(Zd.active||kd)&&e.cancelable&&e.preventDefault()})),Zd.utils={on:Cu,off:Lu,css:Ou,find:Mu,is:function(e,t){return!!ku(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:Hu,closest:ku,toggleClass:Tu,clone:$u,index:Fu,nextTick:Xd,cancelNextTick:Kd,detectDirection:jd,getChild:Du,expando:Wu},Zd.get=function(e){return e[Wu]},Zd.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Zd.utils=cu(cu({},Zd.utils),e.utils)),Xu.mount(e)}))},Zd.create=function(e,t){return new Zd(e,t)},Zd.version="1.15.6";var Qd,Jd,ef,tf,nf,of,af=[],rf=!1;function lf(){af.forEach((function(e){clearInterval(e.pid)})),af=[]}function sf(){clearInterval(of)}var cf=Hu((function(e,t,n,o){if(t.scroll){var a,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=Bu(),u=!1;Jd!==n&&(Jd=n,lf(),Qd=t.scroll,a=t.scrollFn,!0===Qd&&(Qd=_u(n,!0)));var d=0,f=Qd;do{var p=f,h=Iu(p),m=h.top,v=h.bottom,g=h.left,w=h.right,y=h.width,b=h.height,x=void 0,C=void 0,L=p.scrollWidth,N=p.scrollHeight,V=Ou(p),k=p.scrollLeft,S=p.scrollTop;p===c?(x=y<L&&("auto"===V.overflowX||"scroll"===V.overflowX||"visible"===V.overflowX),C=b<N&&("auto"===V.overflowY||"scroll"===V.overflowY||"visible"===V.overflowY)):(x=y<L&&("auto"===V.overflowX||"scroll"===V.overflowX),C=b<N&&("auto"===V.overflowY||"scroll"===V.overflowY));var A=x&&(Math.abs(w-r)<=l&&k+y<L)-(Math.abs(g-r)<=l&&!!k),T=C&&(Math.abs(v-i)<=l&&S+b<N)-(Math.abs(m-i)<=l&&!!S);if(!af[d])for(var O=0;O<=d;O++)af[O]||(af[O]={});af[d].vx==A&&af[d].vy==T&&af[d].el===p||(af[d].el=p,af[d].vx=A,af[d].vy=T,clearInterval(af[d].pid),0==A&&0==T||(u=!0,af[d].pid=setInterval(function(){o&&0===this.layer&&Zd.active._onTouchMove(nf);var t=af[this.layer].vy?af[this.layer].vy*s:0,n=af[this.layer].vx?af[this.layer].vx*s:0;"function"==typeof a&&"continue"!==a.call(Zd.dragged.parentNode[Wu],n,t,e,nf,af[this.layer].el)||Uu(af[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=_u(f,!1)));rf=u}}),30),uf=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,a=e.activeSortable,r=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||a;i();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function df(){}function ff(){}df.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=Du(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:uf},fu(df,{pluginName:"revertOnSpill"}),ff.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:uf},fu(ff,{pluginName:"removeOnSpill"}),Zd.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?Cu(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Cu(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Cu(document,"touchmove",this._handleFallbackAutoScroll):Cu(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Lu(document,"dragover",this._handleAutoScroll):(Lu(document,"pointermove",this._handleFallbackAutoScroll),Lu(document,"touchmove",this._handleFallbackAutoScroll),Lu(document,"mousemove",this._handleFallbackAutoScroll)),sf(),lf(),clearTimeout(Su),Su=void 0},nulling:function(){nf=Jd=Qd=rf=of=ef=tf=null,af.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,r=document.elementFromPoint(o,a);if(nf=e,t||this.options.forceAutoScrollFallback||vu||mu||wu){cf(e,this.options,r,t);var i=_u(r,!0);!rf||of&&o===ef&&a===tf||(of&&sf(),of=setInterval((function(){var r=_u(document.elementFromPoint(o,a),!0);r!==i&&(i=r,lf()),cf(e,n.options,r,t)}),10),ef=o,tf=a)}else{if(!this.options.bubbleScroll||_u(r,!0)===Bu())return void lf();cf(e,this.options,_u(r,!1),!1)}}},fu(e,{pluginName:"scroll",initializeByDefault:!0})}),Zd.mount(ff,df);var pf=(e,t,n)=>new Promise(((o,a)=>{var r=e=>{try{l(n.next(e))}catch(t){a(t)}},i=e=>{try{l(n.throw(e))}catch(t){a(t)}},l=e=>e.done?o(e.value):Promise.resolve(e.value).then(r,i);l((n=n.apply(e,t)).next())}));const[hf,mf]=Oe("media-picker"),vf={mp3:new Set(["mpga"]),mp4:new Set(["qt"]),html:new Set(["txt"]),json:new Set(["txt"]),xml:new Set(["txt"]),gif:new Set(["png"]),jpeg:new Set(["jpg"]),jpg:new Set(["jpeg"]),m4a:new Set(["mp4","mp4a","x-m4a"])},gf={sortable:{type:Boolean,default:!1},disabled:Boolean,showTitle:Boolean,showDownload:Boolean,downloadAction:Function,useFileNameAsLabel:Boolean,title:k("添加附件"),mediaList:L(),maxImageSideLength:N(1920),maxImageFileSize:N(1024),maxFileSize:N(102400),keepFileType:{type:Boolean,default:!1},watermarkOptions:{type:Object,default:()=>null},maxMediaCount:N(Number.MAX_VALUE),maxImageCount:N(Number.MAX_VALUE),maxAudioCount:N(Number.MAX_VALUE),maxVideoCount:N(Number.MAX_VALUE),allowTakePhoto:x,allowPickPhoto:x,allowTakeVideo:Boolean,allowPickVideo:Boolean,allowTakeAudio:Boolean,allowPickAudio:Boolean,allowPickFile:Boolean,preview:Function,mediaPick:Function,beforeRead:Function,afterRead:Function,beforeDelete:Function,useWx:Boolean,imageSizeType:k("compressed"),mediaPlayerProps:Object};const wf=Re(t.defineComponent({name:hf,props:gf,emits:["update:mediaList","delete","processing"],setup(e,{emit:n,slots:o}){const r=t.ref(!1),i=t.ref(!1),l=t.ref(!1),s=t.ref(!1),c=t.ref("file"),u=t.ref(""),f=t.ref(),p=t.ref(),h=t.ref(),m=t.ref(),v=t.ref(),g=t.ref(),w=t.ref(),y=t.ref(),b=t.ref([]),x=t.ref(),C=t=>{e.sortable&&e.mediaList.length>0&&t.stopPropagation()},L=()=>{var e;(null==(e=x.value)?void 0:e.destroy)&&x.value.destroy(),x.value=void 0},N=()=>pf(this,null,(function*(){var o;if(x.value||!e.sortable||!e.mediaList.length)return;yield t.nextTick();const a=null==(o=y.value)?void 0:o.$el;a&&(x.value=Zd.create(a,{animation:200,handle:".zt-grid-item",onEnd:t=>{const o=V(e.mediaList,t.oldIndex,t.newIndex);n("update:mediaList",o)}}))})),V=(e,t,n)=>{const o=[...e],a=o[t];return o.splice(t,1),o.splice(n,0,a),[...o]},k=e=>{e&&e.click()},S=(t,o)=>{if(!e.disabled&&(t=>e.mediaList.length===e.maxMediaCount?(Xn("已达到文件最大数量限制"),!1):"photo"===t&&e.mediaList.filter((e=>"photo"===e.type)).length>e.maxImageCount?(Xn("已达到图片最大数量限制"),!1):"video"===t&&e.mediaList.filter((e=>"video"===e.type)).length>e.maxVideoCount?(Xn("已达到视频最大数量限制"),!1):!("audio"===t&&e.mediaList.filter((e=>"audio"===e.type)).length>e.maxAudioCount&&(Xn("已达到录音最大数量限制"),1)))(t)&&(!e.mediaPick||!e.mediaPick(t,o)))if("photo"===t)if(e.useWx&&d()&&window.wx){lu("take"===o?"camera":"album").then((t=>{n("update:mediaList",[...e.mediaList,...t])}))}else"take"===o?k(f.value):"pick"===o&&k(p.value);else"video"===t?"take"===o?k(h.value):"pick"===o?k(m.value):"take_and_pick"===o&&(l.value=!0,r.value=!0,i.value=!1):"audio"===t?"take"===o?k(v.value):"pick"===o?k(g.value):"take_and_pick"===o&&(l.value=!0,r.value=!1,i.value=!0):"file"===t&&k(w.value)},A=(e,t)=>{"photo"===e?"take"===t&&f.value instanceof HTMLInputElement?f.value.value="":"pick"===t&&p.value instanceof HTMLInputElement&&(p.value.value=""):"video"===e?"take"===t&&h.value instanceof HTMLInputElement?h.value.value="":"pick"===t&&m.value&&(m.value.value=""):"audio"===e?"take"===t&&v.value instanceof HTMLInputElement?v.value.value="":"pick"===t&&g.value instanceof HTMLInputElement&&(g.value.value=""):"file"===e&&w.value instanceof HTMLInputElement&&(w.value.value="")},T=t.computed((()=>e.mediaList.filter((e=>"photo"===e.type)))),O=t.computed((()=>r.value?[{name:"拍摄",callback:()=>{S("video","take")}},{name:"视频文件",callback:()=>{S("video","pick")}}]:i.value?[{name:"录音",callback:()=>{S("audio","take")}},{name:"音频文件",callback:()=>{S("audio","pick")}}]:void 0)),P=t=>e.mediaList.some((e=>e.uniqueCode===oc(t))),M=t=>{const n=[],o=new au(e.maxImageSideLength),r=new ru(e.maxImageFileSize,e.keepFileType);for(let a=0;a<t.length;a++){const i=t[a],l=e.watermarkOptions&&e.watermarkOptions.watermarkConfigString&&Jc(e.watermarkOptions.watermarkConfigString);let s;s=l?{enabled:!0,watermarkConfigString:l?e.watermarkOptions.watermarkConfigString:"",context:{address:e.watermarkOptions.address||"",humanName:e.watermarkOptions.humanName||"",projectName:e.watermarkOptions.projectName||"",watermarkTime:new Date}}:{enabled:!1};const c=new iu(i,o,s,r).process().then((t=>t?rc(t).then((n=>{const o=e.keepFileType?{"image/jpeg":"jpg","image/jpg":"jpg","image/png":"png","image/gif":"gif","image/webp":"webp","image/bmp":"bmp","image/svg+xml":"svg"}[t.type]||"jpg":"jpg";const a=ac(t,o),r={showSrc:n,type:"photo",file:new File([t],a,{lastModified:t.lastModified,type:t.type}),uniqueCode:oc(i),lastModified:t.lastModified,fileSize:t.size,fileName:t.name,deletable:!0,message:"",originalName:i.name,originalSize:i.size};return Promise.resolve(r)})):Promise.resolve(null)));n.push(c)}return Promise.all(n).then((e=>{const t=[];return e.forEach((e=>{a(e)&&t.push(e)})),t})).finally((()=>{}))},B=t=>{n("processing",!0),b.value=t.map((e=>{let t;return t=tc(e)?"audio":nc(e)?"video":ec(e)?"photo":"file",{file:e,message:"处理中...",status:"processing",type:t}}));const o=t.filter((e=>!ec(e))).map((e=>(e=>{let t,n="";tc(e)?(t="audio",n="mp3"):nc(e)?(t="video",n="mp4"):t="file";const o=ac(e,n);return{type:t,file:new File([e],o,{lastModified:e.lastModified,type:e.type}),uniqueCode:oc(e),lastModified:e.lastModified,fileSize:e.size,fileName:e.name,originalName:e.name,originalSize:e.size,originalFile:e,deletable:!0,message:""}})(e)));let r=[];o.length>0&&(r=r.concat(o));const i=t.filter((e=>ec(e)));let l;l=0===i.length?Promise.resolve([]):"original"===e.imageSizeType?(e=>{const t=e.map((e=>rc(e).then((t=>({showSrc:t,type:"photo",file:e,uniqueCode:oc(e),lastModified:e.lastModified,fileSize:e.size,fileName:e.name,deletable:!0,message:"",originalName:e.name,originalSize:e.size,originalFile:e})))));return Promise.all(t).then((e=>{const t=[];return e.forEach((e=>{a(e)&&t.push(e)})),t})).finally((()=>{}))})(i):M(i),l.then((e=>{e&&e.length>0&&(r=r.concat(e))})).finally((()=>{e.useFileNameAsLabel&&r.forEach((e=>{e.label=e.originalName})),b.value=[],n("processing",!1),n("update:mediaList",[...e.mediaList,...r]),e.afterRead&&e.afterRead(r)}))},I=t=>pf(this,null,(function*(){const n=t.target.files;if(!n||0===n.length)return;const o=(t=>{const n=[];for(let o=0;o<t.length;o++){const a=t[o];if(a.size>1024*e.maxFileSize)return Xn(`请勿添加大于${e.maxFileSize}K的文件`),n;if(P(a))return Xn("请勿重复添加文件"),n;n.push(a)}return n})(n);if(0!==o.length&&(t=>e.mediaList.length+t.length>e.maxMediaCount?(Xn(`最多只能上传${e.maxMediaCount}个文件`),!1):e.mediaList.filter((e=>"photo"===e.type)).length+t.filter((e=>ec(e))).length>e.maxImageCount?(Xn(`最多只能上传${e.maxImageCount}张图片`),!1):e.mediaList.filter((e=>"video"===e.type)).length+t.filter((e=>nc(e))).length>e.maxVideoCount?(Xn(`最多只能上传${e.maxVideoCount}个视频`),!1):!(e.mediaList.filter((e=>"audio"===e.type)).length+t.filter((e=>tc(e))).length>e.maxAudioCount&&(Xn(`最多只能上传${e.maxAudioCount}个录音`),1)))(o)){if(e.keepFileType)try{for(const e of o){const t=yield e.slice(0,4100).arrayBuffer(),n=yield zs(new Uint8Array(t)),o=e.name.toLowerCase().match(/\.([^.]+)$/),a=o?o[1]:"";if(n&&a&&n.ext!==a){const t=vf[a];if(!(t&&t.has(n.ext)))return void Xn({message:`文件后缀与实际文件类型不匹配:${e.name}`,duration:5e3})}}}catch(a){console.error("文件类型校验失败:",a)}if(e.beforeRead)try{const t=yield e.beforeRead(o);if(!t)return;if(Array.isArray(t)){const e=t.filter((e=>!!e));B(e)}else B(o)}catch(a){return void Xn(null==a?void 0:a.message)}else B(o)}})),E=(e,n)=>{if("photo"===e){if("take"===n)return t.createVNode(Gs,{class:mf("icon")},null);if("pick"===n)return t.createVNode(Xs,{class:mf("icon")},null)}else{if("video"===e)return t.createVNode(Ks,{class:mf("icon")},null);if("audio"===e)return t.createVNode(Qs,{class:mf("icon")},null);if("file"===e)return t.createVNode(Js,{class:mf("icon")},null)}},D=(e,n)=>{let o="";return"photo"===e?"take"===n?o="拍照":"pick"===n&&(o="照片"):"video"===e?o="摄像":"audio"===e?o="录音":"file"===e&&(o="文档"),t.createVNode("div",{class:mf("box")},[t.createVNode("div",{class:mf("button"),onClick:()=>S(e,n)},[E(e,n)]),t.createVNode("div",{class:mf("label")},[o])])},z=()=>{const t=[];if(e.allowTakePhoto&&t.push(D("photo","take")),e.allowPickPhoto&&t.push(D("photo","pick")),e.allowTakeVideo||e.allowPickVideo){let n="take_and_pick";e.allowTakeVideo?e.allowPickVideo||(n="take"):n="pick",t.push(D("video",n))}if(e.allowTakeAudio||e.allowPickAudio){let n="take_and_pick";e.allowTakeAudio?e.allowPickAudio||(n="take"):n="pick",t.push(D("audio",n))}return e.allowPickFile&&t.push(D("file","pick")),t},F=e=>{const{status:n,message:o}=e;if("processing"===n||"uploading"===n||"failed"===n){const e="failed"===n?t.createVNode(st,{name:"close",class:mf("mask-icon")},null):t.createVNode(Et,{class:mf("loading")},null),r=a(o)&&""!==o;return t.createVNode("div",{class:mf("mask")},[e,r&&t.createVNode("div",{class:mf("mask-message")},[o])])}},j=e=>{if(o.thumbnail)return o.thumbnail({file:e});if("video"===e.type)return t.createVNode(Ws,{class:mf("thumbnail")},null);if("audio"===e.type)return t.createVNode(Ys,{class:mf("thumbnail")},null);if("file"===e.type)return t.createVNode(qs,{class:mf("thumbnail")},null);if("photo"===e.type){const n=e.showSrc||e.url;return t.createVNode(nn,{src:n,fit:"cover",radius:"4"},null)}return t.createVNode(qs,{class:mf("thumbnail")},null)},_=e=>o["preview-cover"]?o["preview-cover"]({file:e}):Qo(e.label)?void 0:t.createVNode("div",{class:mf("thumbnail-label")},[e.label]),R=(t,o)=>pf(this,null,(function*(){if(e.beforeDelete){if(!(yield e.beforeDelete(t)))return}((t,o)=>{const a=e.mediaList.slice(0);a.splice(o,1),n("update:mediaList",a),n("delete",t,o)})(t,o)})),H=t=>pf(this,null,(function*(){var n;if(e.preview&&(yield e.preview(e.mediaList,t)))return;const o=e.mediaList[t];if("photo"===o.type){const t=T.value.indexOf(o);Ll({images:T.value.map((e=>({url:e.url||e.showSrc||""}))),showDownload:e.showDownload,downloadAction:e.downloadAction,startPosition:t,closeable:!0})}else if("audio"===o.type||"video"===o.type)o.file||o.url?(c.value=o.type,u.value=o.url||(URL||webkitURL).createObjectURL(o.file),s.value=!0):Xn("文件参数缺失");else if("file"===o.type){try{let e=yield Promise.resolve().then((()=>EL));if(e&&e.getJSI&&o.url){let t=null==(n=e.getJSI())?void 0:n.file;if(t&&t.download&&t.openDocument)return qn({message:"打开中...",forbidClick:!0,duration:0}),void t.download({url:o.url}).then((({tempFilePath:e})=>{t&&t.openDocument?t.openDocument({localFilePath:e}).finally((()=>{Kn()})):Kn()})).catch((()=>{Kn(),Xn("下载失败")}))}}catch(a){console.log(a.message)}Xn("暂不支持此类文件的预览")}})),U=e=>{l.value=!1,e.func&&e.func()};return t.watch((()=>[e.sortable,e.mediaList.length]),(e=>pf(this,[e],(function*([e,t]){e&&t?yield N():L()}))),{immediate:!0}),t.onBeforeUnmount((()=>{L()})),dt({mediaPickAction:S,handleInputFiles:I,transformImageFiles:M,resetInput:A,previewMedia:H}),()=>{const n=e.showTitle&&t.createVNode("div",{class:mf("title")},[e.title]),a=e.allowTakePhoto||e.allowPickPhoto||e.allowTakeVideo||e.allowPickVideo||e.allowTakeAudio||e.allowPickAudio||e.allowPickFile;return t.createVNode("div",{class:mf()},[n,[t.createVNode("input",{type:"file",accept:"image/*",ref:f,multiple:!0,onChange:I,class:mf("hidden"),onClick:()=>A("photo","take"),capture:"environment"},null),t.createVNode("input",{type:"file",accept:"image/*,image/exact",ref:p,multiple:!0,onChange:I,class:mf("hidden"),onClick:()=>A("photo","pick")},null),t.createVNode("input",{type:"file",accept:"video/*",ref:h,onChange:I,class:mf("hidden"),onClick:()=>A("video","take"),capture:"environment"},null),t.createVNode("input",{type:"file",accept:"video/*",ref:m,onChange:I,class:mf("hidden"),onClick:()=>A("video","pick")},null),t.createVNode("input",{type:"file",accept:"audio/*",ref:v,onChange:I,class:mf("hidden"),onClick:()=>A("audio","take"),capture:"nonce"},null),t.createVNode("input",{type:"file",accept:"audio/*",ref:g,onChange:I,class:mf("hidden"),onClick:()=>A("audio","pick")},null),t.createVNode("input",{type:"file",accept:"*/*",ref:w,onChange:I,class:mf("hidden"),onClick:()=>A("file","pick")},null)],t.createVNode(Zs,t.mergeProps({show:s.value,"onUpdate:show":e=>s.value=e,mediaType:c.value,mediaUrl:u.value,teleport:"body"},e.mediaPlayerProps),null),t.createVNode(Rt,{show:l.value,"onUpdate:show":e=>l.value=e,actions:O.value,description:"请选择","cancel-text":"取消",teleport:"body","close-on-click-action":!0,onSelect:U},null),t.withDirectives(t.createVNode("div",{class:mf("line")},[z(),o.extend?o.extend():""]),[[t.vShow,a]]),t.withDirectives(t.createVNode(Qi,{ref:y,"column-num":"3",border:!1,square:!0,gutter:"4",class:mf("grid"),onTouchstart:C},{default:()=>[e.mediaList.map(((e,n)=>{const o=e.deletable&&"uploading"!==e.status&&t.createVNode(_l,{class:mf("delete"),onClick:t=>{t.stopPropagation(),R(e,n)}},null);return t.createVNode(ol,{key:e.uniqueCode,onClick:()=>H(n)},{default:()=>[j(e),_(e),F(e),o]})}))]}),[[t.vShow,e.mediaList.length]]),t.withDirectives(t.createVNode(Qi,{"column-num":"3",border:!1,square:!0,gutter:"4",class:mf("grid")},{default:()=>[b.value.map((e=>t.createVNode(ol,{key:e.uniqueCode},{default:()=>[j(e),_(e),F(e)]})))]}),[[t.vShow,b.value.length]])])}}})),[yf,bf]=Oe("multiple-picker-options"),xf={textKey:k(""),readonly:Boolean,allowHtml:Boolean,itemHeight:N(0),columnCounts:N(3),initialOptions:L([]),currentIndexes:L([])};var Cf=t.defineComponent({name:yf,props:xf,emits:["change","update:currentIndexes"],setup(e,{emit:n,slots:o}){const a=t.computed((()=>e.initialOptions)),r=t.reactive({confirmed:!1}),l=t.computed((()=>e.currentIndexes)),s=t.ref(e.columnCounts),c=()=>{s.value=Number(e.columnCounts),s.value&&s.value>3&&(s.value=3),s.value&&s.value<1&&(s.value=1);const r={height:`${e.itemHeight+8}px`,width:1/s.value*100+"%"};return a.value.map(((a,c)=>{const u=(t=>i(t)&&e.textKey in t?t[e.textKey]:t)(a),d=(t=>e.readonly||i(t)&&t.disabled)(a),f={class:"zt-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:u};return t.createVNode("div",{role:"button",style:r,tabindex:d?-1:0,onClick:()=>(t=>{if(e.readonly)return;let o=!1;l.value.forEach(((e,n)=>{e===t&&(o=!0,l.value.splice(n,1))})),o||l.value.push(t),n("update:currentIndexes",l.value),n("change")})(c),class:[bf("item",{disabled:d,selected:l.value.indexOf(c)>-1,"disabled-selected":d&&l.value.indexOf(c)>-1,last:(c+1)%s.value==0})]},[o.options?o.options(a):t.createVNode("div",f,null)])}))};return dt({setConfirmIndex:e=>{const t=vi(e);r.confirmed=!0;const n=Object.keys(t);l.value.length=0,n.forEach((e=>{l.value.push(t[e])}))}}),()=>t.createVNode("div",{class:bf()},[t.createVNode("div",{ref:"wrapper",class:bf("wrapper")},[c()])])}});const[Lf,Nf]=Oe("multiple-picker"),Vf={title:String,loading:Boolean,readonly:Boolean,itemHeight:V(0),cancelButtonText:String,confirmButtonText:String,otherButtonText:String,showPicker:Boolean,allowHtml:x,closeOnPopstate:x,closeOnClickOverlay:x,showToolbar:x,showTitle:x,options:L(),filteredOptions:{type:Array,default:void 0},toolbarPosition:k("bottom"),textKey:k("text"),columnCounts:N(3),selectedIndex:L([]),selectedValue:L([]),popup:x,showSelectAll:Boolean};const kf=Re(t.defineComponent({name:Lf,props:Vf,emits:["cancel","confirm","change","update:showPicker","update:selectedIndex","update:selectedValue"],setup(e,{emit:n,slots:o}){const a=t.ref(e.options),r=t.computed((()=>e.selectedIndex)),i=t.computed((()=>e.selectedValue)),l=t.ref([]),s=t.ref(e.selectedIndex),c=t.ref(e.selectedValue),u=t.computed((()=>void 0!==e.filteredOptions?e.filteredOptions:a.value)),d=t.computed((()=>{if(!e.filteredOptions||0===e.filteredOptions.length)return s.value;const t=new Set(s.value.filter((e=>e>=0&&e<a.value.length)).map((e=>{var t;return null==(t=a.value[e])?void 0:t.value}))),n=[];return u.value.forEach(((e,o)=>{t.has(e.value)&&n.push(o)})),n})),f=t.computed((()=>d.value.length>0&&d.value.length<u.value.length)),p=t.computed((()=>u.value.length>0&&d.value.length>0&&d.value.length===u.value.length)),h=t=>{if(e.filteredOptions&&e.filteredOptions.length>0){const e=t.filter((e=>e>=0&&e<u.value.length)).map((e=>{var t;return null==(t=u.value[e])?void 0:t.value})),n=new Set,o=new Set(u.value.map((e=>e.value)));s.value.forEach((e=>{var t;if(e>=0&&e<a.value.length){const r=null==(t=a.value[e])?void 0:t.value;o.has(r)||n.add(e)}})),e.forEach((e=>{const t=a.value.findIndex((t=>t.value===e));t>=0&&n.add(t)})),s.value=Array.from(n)}else s.value=t;s.value.length>0?v():c.value=[],n("update:selectedValue",c.value),N()},m=()=>{var e;c.value&&c.value.length>0&&(s.value.splice(0,s.value.length),null==(e=a.value)||e.forEach(((e,t)=>{e.value&&c.value.includes(e.value)&&s.value.push(t)})))};m();const v=()=>{s.value&&s.value.length>0&&(c.value.splice(0,c.value.length),s.value.forEach((e=>{e>-1&&e<a.value.length&&c.value.push(a.value[e].value)})))},g=t.ref(),w=t.ref(e.showPicker);t.ref(36);t.watch(w,(t=>{t!==e.showPicker&&n("update:showPicker",t),t&&(a.value=vi(e.options),s.value=vi(r.value),c.value=vi(i.value),m(),N())})),t.watch((()=>e.showPicker),(e=>{var t;e!==w.value&&(w.value=e),null==(t=g.value)||t.setConfirmIndex(s.value)}));const y=t.computed((()=>{e.itemHeight&&fe(Number(e.itemHeight))})),b=()=>{n("update:showPicker",!1),n("cancel")},x=e=>n("update:showPicker",e),C=()=>l.value,L=()=>{N(),n("change",C())},N=()=>{const t=[],n=s.value;null==n||n.forEach((n=>{if(n>-1&&n<a.value.length&&a.value[n]){const o=a.value[n];t.push({[e.textKey]:o[e.textKey],value:o.value,initialIndex:n})}})),l.value=t},V=()=>{const e=C();n("confirm",e)},k=()=>{if(e.showTitle)return o.title?o.title():t.createVNode("div",{class:["zt-ellipsis",Nf("title")]},[e.title?e.title:"请选择"])},S=()=>{const n=e.otherButtonText||"其他";return t.createVNode(vn,{class:Nf("select-other"),size:"medium",style:{marginLeft:"12px",marginRight:"8px"},onClick:B},{default:()=>[o.selectOther?o.selectOther():n]})},A=()=>{const n=e.cancelButtonText||"取消";return t.createVNode(vn,t.mergeProps({class:[e.showSelectAll?Nf("in-select-all"):""],size:e.showSelectAll?"medium":"normal"},!0!==e.showSelectAll?{block:!0}:{},{style:{marginRigth:"4px"},onClick:b}),{default:()=>[o.cancel?o.cancel():n]})},T=()=>{const n=e.confirmButtonText||"确定";return t.createVNode(vn,t.mergeProps({type:"primary",class:[e.showSelectAll?Nf("in-select-all"):""],size:e.showSelectAll?"medium":"normal"},!0!==e.showSelectAll?{block:!0}:{},{style:{marginLeft:"8px"},onClick:V}),{default:()=>[o.confirm?o.confirm():n]})},O=()=>{if(e.showToolbar){const n=e.showSelectAll?[P(),S(),A(),T()]:[A(),T()];return t.createVNode("div",{class:Nf("toolbar")},[o.toolbar?o.toolbar():n])}},P=()=>t.createVNode("div",{class:Nf("toolbar-select-all")},[t.createVNode(La,{class:Nf("toolbar-checkbox"),shape:"square",modelValue:p.value,indeterminate:f.value,onClick:M},{default:()=>[t.createTextVNode("全选")]}),t.createVNode("div",{class:Nf("toolbar-divider")},null),t.createVNode("span",{class:Nf("toolbar-checkbox-text")},[t.createTextVNode("已选 "),l.value.length])]),M=()=>{if(e.filteredOptions&&0===e.filteredOptions.length)return s.value=[],c.value=[],n("update:selectedValue",c.value),n("update:selectedIndex",s.value),N(),void L();let t=[];p.value?t=[]:e.filteredOptions&&e.filteredOptions.length>0?u.value.forEach((e=>{const n=a.value.findIndex((t=>t.value===e.value));n>=0&&t.push(n)})):t=a.value.map(((e,t)=>t)),s.value=t,s.value.length>0?v():c.value=[],n("update:selectedValue",c.value),n("update:selectedIndex",s.value),N(),L()},B=()=>{if(e.filteredOptions&&0===e.filteredOptions.length)return s.value=[],c.value=[],n("update:selectedValue",c.value),n("update:selectedIndex",s.value),N(),void L();let t=[];if(e.filteredOptions&&e.filteredOptions.length>0){const e=new Set;s.value.forEach((t=>{var n;if(t>=0&&t<a.value.length){const o=null==(n=a.value[t])?void 0:n.value;u.value.some((e=>e.value===o))&&e.add(t)}})),u.value.forEach((n=>{const o=a.value.findIndex((e=>e.value===n.value));o>=0&&(e.has(o)||t.push(o))}))}else a.value.forEach(((e,n)=>{s.value.includes(n)||t.push(n)}));s.value=t,s.value.length>0?v():c.value=[],n("update:selectedValue",c.value),n("update:selectedIndex",s.value),N(),L()},I=()=>{let n=[];return n=u.value&&u.value[0]&&"object"!=typeof u.value[0]?u.value.map((e=>({value:e,text:e}))):u.value,t.createVNode(Cf,{ref:g,currentIndexes:d.value,"onUpdate:currentIndexes":h,columnCounts:e.columnCounts,initialOptions:n,allowHtml:e.allowHtml,textKey:e.textKey,readonly:e.readonly,itemHeight:Number(y),onChange:L},{option:o.option})},E=()=>{const e=!u.value||0===u.value.length;return t.createVNode("div",{class:Nf("options")},[e?t.createVNode(Fi,{class:Nf("empty"),image:"no-search-result",description:"暂无结果"},null):I()])},D=()=>t.createVNode("div",{class:Nf()},[k(),e.loading?t.createVNode(Et,{class:Nf("loading")},null):"",E(),"bottom"===e.toolbarPosition?O():""]);return dt({resetOptions:e=>{a.value=e.options,s.value=e.selectedIndex,s.value.length>0?v():c.value=[],n("update:selectedValue",c.value)}}),()=>e.popup?t.createVNode(At,{show:w.value,"onUpdate:show":[e=>w.value=e,x],round:!0,position:"bottom",closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay},{default:D}):D()}}));function Sf(e,n){const o=Jn(e,!0);return e=>t.createVNode("div",{class:n("placeholder"),style:{height:o.value?`${o.value}px`:void 0}},[e()])}const[Af,Tf]=Oe("nav-bar"),Of={title:String,fixed:Boolean,zIndex:b,border:x,leftText:Boolean,leftIcon:Boolean,multiIcon:Boolean,rightText:String,rightIcon:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,color:String,navBarBackground:String,leftBtnStyle:Object};const Pf=Re(t.defineComponent({name:Af,props:Of,emits:["clickLeft","clickRight"],setup(e,{emit:n,slots:o}){const a=t.ref(),r=Sf(a,Tf),i=e=>n("clickLeft",e),l=e=>n("clickRight",e),s=()=>{const{color:t,navBarBackground:n}=e,o={};if(t&&(o.color=t),n&&(o.background=n),Object.keys(o).length>0)return o},c=()=>{const{title:n,fixed:r}=e,c=e.leftText||e.leftIcon||o.left,u=e.rightIcon||e.rightText||o.right;return t.createVNode("div",{ref:a,style:s(),class:[Tf({fixed:r}),{"zt-safe-area-top":e.safeAreaInsetTop}]},[t.createVNode("div",{class:Tf("content")},[c&&t.createVNode("div",{class:[Tf("left")],onClick:i},[o.left?o.left():t.createVNode("div",{class:Tf("bar-btn","left")},[e.leftIcon?t.createVNode(lt,{class:Tf("icon"),name:"back"},null):"",e.leftText?t.createVNode("span",{class:Tf("text",e.leftIcon?"left-text":"")},["返回"]):""])]),t.createVNode("div",{class:[Tf("title"),"zt-ellipsis"]},[o.title?o.title():n]),u&&t.createVNode("div",{class:[Tf("right",e.multiIcon?"multi-icon":"")],onClick:l},[o.right?o.right():t.createVNode("div",{class:Tf("bar-btn","right")},[e.rightIcon?t.createVNode(lt,{class:Tf("icon"),name:"more"},null):"",e.rightText?t.createVNode("span",{class:Tf("text")},[e.rightText||"更多"]):""]),o.extra?o.extra():null])])])};return()=>e.fixed&&e.placeholder?r(c):c()}})),[Mf,Bf]=Oe("notice-bar"),If={text:String,mode:String,color:String,delay:V(1),speed:V(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}};const Ef=Re(t.defineComponent({name:Mf,props:If,emits:["close","replay"],setup(e,{emit:n,slots:o}){let r,i=0,l=0;const s=t.ref(),c=t.ref(),u=t.reactive({show:!0,offset:0,duration:0}),d=t=>{"closeable"===e.mode&&(u.show=!1,n("close",t))},f=()=>{if(o["right-icon"])return o["right-icon"]();const n="closeable"===e.mode?"clear-r":"link"===e.mode?"arrow-right":void 0;return n?t.createVNode(st,{name:n,class:Bf("right-icon"),onClick:d},null):void 0},p=()=>{u.offset=i,u.duration=0,A((()=>{T((()=>{u.offset=-l,u.duration=(l+i)/+e.speed,n("replay")}))}))},h=()=>{const n=!1===e.scrollable&&!e.wrapable,a={transform:u.offset?`translateX(${u.offset}px)`:"",transitionDuration:`${u.duration}s`};return t.createVNode("div",{ref:s,role:"marquee",class:Bf("wrap")},[t.createVNode("div",{ref:c,style:a,class:[Bf("content"),{"zt-ellipsis":n}],onTransitionend:p},[o.default?o.default():e.text])])},m=()=>{const{delay:t,speed:n,scrollable:o}=e,d=a(t)?1e3*+t:0;i=0,l=0,u.offset=0,u.duration=0,clearTimeout(r),r=setTimeout((()=>{if(!s.value||!c.value||!1===o)return;const e=I(s).width,t=I(c).width;(o||t>e)&&T((()=>{i=e,l=t,u.offset=-l,u.duration=l/+n}))}),d)};return gt(m),F(m),j("pageshow",m),dt({reset:m}),t.watch((()=>[e.text,e.scrollable]),m),()=>{const{color:n,wrapable:a,background:r}=e;return t.withDirectives(t.createVNode("div",{role:"alert",class:Bf({wrapable:a}),style:{color:n,background:r}},[o["left-icon"]?o["left-icon"]():e.leftIcon?t.createVNode(st,{class:Bf("left-icon"),name:e.leftIcon},null):void 0,h(),f()]),[[t.vShow,u.show]])}}})),[Df,zf]=Oe("notify"),Ff=p({},ct,{type:k("danger"),color:String,message:b,position:k("top"),className:y,background:String,lockScroll:Boolean});var jf=t.defineComponent({name:Df,props:Ff,emits:["update:show"],setup(e,{emit:n,slots:o}){const a=e=>n("update:show",e);return()=>t.createVNode(St,{show:e.show,class:[zf([e.type]),e.className],style:{color:e.color,background:e.background},overlay:!1,position:e.position,duration:.2,lockScroll:e.lockScroll,"onUpdate:show":a},{default:()=>[o.default?o.default():e.message]})}});let _f,Rf;let Hf={type:"danger",color:void 0,message:"",onClose:void 0,onClick:void 0,onOpened:void 0,duration:3e3,position:void 0,className:"",lockScroll:!1,background:void 0};const Uf=()=>{Rf&&Rf.toggle(!1)};const $f=Re(jf),[Zf,Wf]=Oe("key"),Yf=t.createVNode(st,{name:"keyboard-shrink",size:"40"},null),qf=t.createVNode(st,{name:"backspace",size:"40"},null);var Gf=t.defineComponent({name:Zf,props:{type:String,text:b,color:String,wider:Boolean,large:Boolean,loading:Boolean},emits:["press"],setup(e,{emit:n,slots:o}){const a=t.ref(!1),r=ft(),i=e=>{r.start(e),a.value=!0},l=e=>{r.move(e),r.direction.value&&(a.value=!1)},s=t=>{a.value&&(o.default||ne(t),a.value=!1,n("press",e.text,e.type))},c=()=>{if(e.loading)return t.createVNode(It,{class:Wf("loading-icon")},null);const n=o.default?o.default():e.text;switch(e.type){case"delete":return n||qf;case"extra":return n||Yf;default:return n}};return()=>t.createVNode("div",{class:Wf("wrapper",{wider:e.wider}),onTouchstartPassive:i,onTouchmovePassive:l,onTouchend:s,onTouchcancel:s},[t.createVNode("div",{role:"button",tabindex:0,class:Wf([e.color,{large:e.large,active:a.value,delete:"delete"===e.type}])},[c()])])}});const[Xf,Kf]=Oe("number-keyboard"),Qf={show:Boolean,title:String,theme:k("default"),zIndex:b,teleport:[String,Object],maxlength:V(1/0),modelValue:k(""),transition:x,blurOnClose:x,showDeleteKey:x,randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,hideOnClickOutside:x,safeAreaInsetBottom:x,extraKey:{type:[String,Array],default:""}};const Jf=Re(t.defineComponent({name:Xf,props:Qf,emits:["show","hide","blur","input","close","delete","update:modelValue"],setup(e,{emit:n,slots:o}){const a=t.ref(),r=()=>{const t=Array(9).fill("").map(((e,t)=>({text:t+1})));return e.randomKeyOrder&&function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),o=e[t];e[t]=e[n],e[n]=o}}(t),t},i=t.computed((()=>"custom"===e.theme?(()=>{const t=r(),{extraKey:n}=e,o=Array.isArray(n)?n:[n];return 1===o.length?t.push({text:0,wider:!0},{text:o[0],type:"extra"}):2===o.length&&t.push({text:o[0],type:"extra"},{text:0},{text:o[1],type:"extra"}),t})():[...r(),{text:e.extraKey,type:"extra"},{text:0},{text:e.showDeleteKey?e.deleteButtonText:"",type:e.showDeleteKey?"delete":""}])),l=()=>{e.show&&n("blur")},s=()=>n(e.show?"show":"hide"),c=(t,o)=>{if(""===t)return void("extra"===o&&l());const a=e.modelValue;"delete"===o?(n("delete"),n("update:modelValue",a.slice(0,a.length-1))):"close"===o?(n("close"),e.blurOnClose&&l()):a.length<+e.maxlength?(n("input",t),n("update:modelValue",a+t)):a.length>=+e.maxlength&&Wn(`最大长度为${e.maxlength}`)},u=()=>{if("custom"===e.theme)return t.createVNode("div",{class:Kf("sidebar")},[e.showDeleteKey&&t.createVNode(Gf,{large:!0,text:e.deleteButtonText,type:"delete",onPress:c},{delete:o.delete}),t.createVNode(Gf,{large:!0,text:e.closeButtonText,type:"close",color:"blue",loading:e.closeButtonLoading,onPress:c},null)])};return t.watch((()=>e.show),(t=>{e.transition||n(t?"show":"hide")})),e.hideOnClickOutside&&_(a,l,{eventName:"touchstart"}),()=>{const n=(()=>{const{title:n}=e,a=o["title-left"];if(n||a)return t.createVNode("div",{class:Kf("header")},[a&&t.createVNode("span",{class:Kf("title-left")},[a()]),n&&t.createVNode("div",{class:Kf("title")},[n])])})(),{title:r}=e,l=t.createVNode(t.Transition,{name:e.transition?"zt-slide-up":""},{default:()=>[t.withDirectives(t.createVNode("div",{ref:a,style:ce(e.zIndex),class:[Kf({unfit:!e.safeAreaInsetBottom,"with-title":!!n}),r?Kf("no-title"):""],onAnimationend:s,onTouchstartPassive:te},[r&&n,t.createVNode("div",{class:[Kf("body"),r?"":Kf("body-no-title")]},[t.createVNode("div",{class:Kf("keys")},[i.value.map((e=>{const n={};return"delete"===e.type&&(n.default=o.delete),"extra"===e.type&&(n.default=o["extra-key"]),t.createVNode(Gf,{key:e.text,text:e.text,type:e.type,wider:e.wider,color:e.color,onPress:c},n)}))]),u()])]),[[t.vShow,e.show]])]});return e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[l]}):l}}})),[ep,tp]=Oe("pagination"),np={modelValue:V(1),totalPage:V(0)};const op=Re(t.defineComponent({name:ep,props:np,emits:["change","update:modelValue"],setup(e,{emit:n}){const o=t.ref(!1),a=t.computed((()=>Number(e.modelValue))),r=t.computed((()=>Number(e.totalPage))),i=t.computed((()=>Array.from({length:Math.max(r.value,0)},((e,t)=>t+1)))),l=t.computed((()=>a.value<=1)),s=t.computed((()=>a.value>=r.value)),c=e=>{n("update:modelValue",e),n("change",e)},u=()=>{l.value||c(a.value-1)},d=()=>{s.value||c(a.value+1)},f=()=>{o.value=!1};return()=>t.createVNode(t.Fragment,null,[t.createVNode("div",{class:tp()},[t.createVNode("button",{type:"button",class:[tp("button"),tp("prev"),{[tp("button",{disabled:!0})]:l.value}],"aria-disabled":l.value||void 0,onClick:u},[t.createVNode(st,{name:"back",size:"24"},null)]),t.createVNode("button",{type:"button",class:tp("page"),onClick:()=>o.value=!0},[t.createVNode("span",{class:tp("text")},[a.value,t.createTextVNode("/"),r.value])]),t.createVNode("button",{type:"button",class:[tp("button"),tp("next"),{[tp("button",{disabled:!0})]:s.value}],"aria-disabled":s.value||void 0,onClick:d},[t.createVNode(st,{name:"back",size:"24",class:tp("next-icon")},null)])]),t.createVNode(At,{show:o.value,"onUpdate:show":e=>o.value=e,round:!0,closeable:!0,position:"bottom",lockScroll:!0,safeAreaInsetBottom:!0,style:{height:"80%"}},{default:()=>[t.createVNode("div",{class:tp("popup")},[t.createVNode("div",{class:tp("popup-title")},[t.createTextVNode("跳转翻页")]),t.createVNode("div",{class:tp("popup-pages")},[i.value.map((e=>t.createVNode("button",{type:"button",class:tp("popup-page"),onClick:()=>{return(t=e)!==a.value&&c(t),void(o.value=!1);var t}},[e])))]),t.createVNode("div",{class:tp("popup-footer")},[t.createVNode(vn,{type:"default",block:!0,onClick:f},{default:()=>[t.createTextVNode("取消")]})])])]})])}})),[ap,rp]=Oe("password-input"),ip={info:String,mask:x,value:k(""),gutter:b,length:V(6),focused:Boolean,errorInfo:String};const lp=Re(t.defineComponent({name:ap,props:ip,emits:["focus"],setup(e,{emit:n}){const o=e=>{e.stopPropagation(),n("focus",e)},a=()=>{const n=[],{mask:o,value:a,gutter:r,focused:i}=e,l=+e.length;for(let e=0;e<l;e++){const l=a[e],s=0!==e&&!r,c=i&&e===a.length;let u;0!==e&&r&&(u={marginLeft:le(r)}),n.push(t.createVNode("li",{class:[{[Be]:s},rp("item",{focus:c})],style:u},[o?t.createVNode("i",{style:{visibility:l?"visible":"hidden"}},null):l,c&&t.createVNode("div",{class:rp("cursor")},null)]))}return n};return()=>{const n=e.errorInfo||e.info;return t.createVNode("div",{class:rp()},[t.createVNode("ul",{class:[rp("security"),{[Ee]:!e.gutter}],onTouchstartPassive:o},[a()]),n&&t.createVNode("div",{class:rp(e.errorInfo?"error-info":"info")},[n])])}}})),sp=["top","right","bottom","left"],cp=Math.min,up=Math.max,dp=Math.round,fp=Math.floor,pp=e=>({x:e,y:e}),hp={left:"right",right:"left",bottom:"top",top:"bottom"},mp={start:"end",end:"start"};function vp(e,t,n){return up(e,cp(t,n))}function gp(e,t){return"function"==typeof e?e(t):e}function wp(e){return e.split("-")[0]}function yp(e){return e.split("-")[1]}function bp(e){return"x"===e?"y":"x"}function xp(e){return"y"===e?"height":"width"}function Cp(e){return["top","bottom"].includes(wp(e))?"y":"x"}function Lp(e){return bp(Cp(e))}function Np(e){return e.replace(/start|end/g,(e=>mp[e]))}function Vp(e){return e.replace(/left|right|bottom|top/g,(e=>hp[e]))}function kp(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Sp(e){const{x:t,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:t,right:t+o,bottom:n+a,x:t,y:n}}function Ap(e,t,n){let{reference:o,floating:a}=e;const r=Cp(t),i=Lp(t),l=xp(i),s=wp(t),c="y"===r,u=o.x+o.width/2-a.width/2,d=o.y+o.height/2-a.height/2,f=o[l]/2-a[l]/2;let p;switch(s){case"top":p={x:u,y:o.y-a.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-a.width,y:d};break;default:p={x:o.x,y:o.y}}switch(yp(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1)}return p}async function Tp(e,t){var n;void 0===t&&(t={});const{x:o,y:a,platform:r,rects:i,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=gp(t,e),h=kp(p),m=l[f?"floating"===d?"reference":"floating":d],v=Sp(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),g="floating"===d?{x:o,y:a,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),y=await(null==r.isElement?void 0:r.isElement(w))&&await(null==r.getScale?void 0:r.getScale(w))||{x:1,y:1},b=Sp(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:w,strategy:s}):g);return{top:(v.top-b.top+h.top)/y.y,bottom:(b.bottom-v.bottom+h.bottom)/y.y,left:(v.left-b.left+h.left)/y.x,right:(b.right-v.right+h.right)/y.x}}function Op(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pp(e){return sp.some((t=>e[t]>=0))}function Mp(){return"undefined"!=typeof window}function Bp(e){return Dp(e)?(e.nodeName||"").toLowerCase():"#document"}function Ip(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ep(e){var t;return null==(t=(Dp(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Dp(e){return!!Mp()&&(e instanceof Node||e instanceof Ip(e).Node)}function zp(e){return!!Mp()&&(e instanceof Element||e instanceof Ip(e).Element)}function Fp(e){return!!Mp()&&(e instanceof HTMLElement||e instanceof Ip(e).HTMLElement)}function jp(e){return!(!Mp()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ip(e).ShadowRoot)}function _p(e){const{overflow:t,overflowX:n,overflowY:o,display:a}=Wp(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(a)}function Rp(e){return["table","td","th"].includes(Bp(e))}function Hp(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function Up(e){const t=$p(),n=zp(e)?Wp(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function $p(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Zp(e){return["html","body","#document"].includes(Bp(e))}function Wp(e){return Ip(e).getComputedStyle(e)}function Yp(e){return zp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qp(e){if("html"===Bp(e))return e;const t=e.assignedSlot||e.parentNode||jp(e)&&e.host||Ep(e);return jp(t)?t.host:t}function Gp(e){const t=qp(e);return Zp(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fp(t)&&_p(t)?t:Gp(t)}function Xp(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=Gp(e),r=a===(null==(o=e.ownerDocument)?void 0:o.body),i=Ip(a);if(r){const e=Kp(i);return t.concat(i,i.visualViewport||[],_p(a)?a:[],e&&n?Xp(e):[])}return t.concat(a,Xp(a,[],n))}function Kp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qp(e){const t=Wp(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=Fp(e),r=a?e.offsetWidth:n,i=a?e.offsetHeight:o,l=dp(n)!==r||dp(o)!==i;return l&&(n=r,o=i),{width:n,height:o,$:l}}function Jp(e){return zp(e)?e:e.contextElement}function eh(e){const t=Jp(e);if(!Fp(t))return pp(1);const n=t.getBoundingClientRect(),{width:o,height:a,$:r}=Qp(t);let i=(r?dp(n.width):n.width)/o,l=(r?dp(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const th=pp(0);function nh(e){const t=Ip(e);return $p()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:th}function oh(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),r=Jp(e);let i=pp(1);t&&(o?zp(o)&&(i=eh(o)):i=eh(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ip(e))&&t}(r,n,o)?nh(r):pp(0);let s=(a.left+l.x)/i.x,c=(a.top+l.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(r){const e=Ip(r),t=o&&zp(o)?Ip(o):o;let n=e,a=Kp(n);for(;a&&o&&t!==n;){const e=eh(a),t=a.getBoundingClientRect(),o=Wp(a),r=t.left+(a.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=r,c+=i,n=Ip(a),a=Kp(n)}}return Sp({width:u,height:d,x:s,y:c})}function ah(e,t){const n=Yp(e).scrollLeft;return t?t.left+n:oh(Ep(e)).left+n}function rh(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=Ip(e),o=Ep(e),a=n.visualViewport;let r=o.clientWidth,i=o.clientHeight,l=0,s=0;if(a){r=a.width,i=a.height;const e=$p();(!e||e&&"fixed"===t)&&(l=a.offsetLeft,s=a.offsetTop)}return{width:r,height:i,x:l,y:s}}(e,n);else if("document"===t)o=function(e){const t=Ep(e),n=Yp(e),o=e.ownerDocument.body,a=up(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=up(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+ah(e);const l=-n.scrollTop;return"rtl"===Wp(o).direction&&(i+=up(t.clientWidth,o.clientWidth)-a),{width:a,height:r,x:i,y:l}}(Ep(e));else if(zp(t))o=function(e,t){const n=oh(e,!0,"fixed"===t),o=n.top+e.clientTop,a=n.left+e.clientLeft,r=Fp(e)?eh(e):pp(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:a*r.x,y:o*r.y}}(t,n);else{const n=nh(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return Sp(o)}function ih(e,t){const n=qp(e);return!(n===t||!zp(n)||Zp(n))&&("fixed"===Wp(n).position||ih(n,t))}function lh(e,t,n){const o=Fp(t),a=Ep(t),r="fixed"===n,i=oh(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const s=pp(0);if(o||!o&&!r)if(("body"!==Bp(t)||_p(a))&&(l=Yp(t)),o){const e=oh(t,!0,r,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=ah(a));let c=0,u=0;if(a&&!o&&!r){const e=a.getBoundingClientRect();u=e.top+l.scrollTop,c=e.left+l.scrollLeft-ah(a,e)}return{x:i.left+l.scrollLeft-s.x-c,y:i.top+l.scrollTop-s.y-u,width:i.width,height:i.height}}function sh(e){return"static"===Wp(e).position}function ch(e,t){if(!Fp(e)||"fixed"===Wp(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ep(e)===n&&(n=n.ownerDocument.body),n}function uh(e,t){const n=Ip(e);if(Hp(e))return n;if(!Fp(e)){let t=qp(e);for(;t&&!Zp(t);){if(zp(t)&&!sh(t))return t;t=qp(t)}return n}let o=ch(e,t);for(;o&&Rp(o)&&sh(o);)o=ch(o,t);return o&&Zp(o)&&sh(o)&&!Up(o)?n:o||function(e){let t=qp(e);for(;Fp(t)&&!Zp(t);){if(Up(t))return t;if(Hp(t))return null;t=qp(t)}return null}(e)||n}const dh={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:a}=e;const r="fixed"===a,i=Ep(o),l=!!t&&Hp(t.floating);if(o===i||l&&r)return n;let s={scrollLeft:0,scrollTop:0},c=pp(1);const u=pp(0),d=Fp(o);if((d||!d&&!r)&&(("body"!==Bp(o)||_p(i))&&(s=Yp(o)),Fp(o))){const e=oh(o);c=eh(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:Ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:a}=e;const r=[..."clippingAncestors"===n?Hp(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=Xp(e,[],!1).filter((e=>zp(e)&&"body"!==Bp(e))),a=null;const r="fixed"===Wp(e).position;let i=r?qp(e):e;for(;zp(i)&&!Zp(i);){const t=Wp(i),n=Up(i);n||"fixed"!==t.position||(a=null),(r?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||_p(i)&&!n&&ih(e,i))?o=o.filter((e=>e!==i)):a=t,i=qp(i)}return t.set(e,o),o}(t,this._c):[].concat(n),o],i=r[0],l=r.reduce(((e,n)=>{const o=rh(t,n,a);return e.top=up(o.top,e.top),e.right=cp(o.right,e.right),e.bottom=cp(o.bottom,e.bottom),e.left=up(o.left,e.left),e}),rh(t,i,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:uh,getElementRects:async function(e){const t=this.getOffsetParent||uh,n=this.getDimensions,o=await n(e.floating);return{reference:lh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Qp(e);return{width:t,height:n}},getScale:eh,isElement:zp,isRTL:function(e){return"rtl"===Wp(e).direction}};function fh(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:a=!0,ancestorResize:r=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=Jp(e),u=a||r?[...c?Xp(c):[],...Xp(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,o=null;const a=Ep(e);function r(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),r();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-fp(u)+"px "+-fp(a.clientWidth-(c+d))+"px "+-fp(a.clientHeight-(u+f))+"px "+-fp(c)+"px",threshold:up(0,cp(1,s))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{o=new IntersectionObserver(m,{...p,root:a.ownerDocument})}catch(v){o=new IntersectionObserver(m,p)}o.observe(e)}(!0),r}(c,n):null;let f,p=-1,h=null;i&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!s&&h.observe(c),h.observe(t));let m=s?oh(e):null;return s&&function t(){const o=oh(e);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||n();m=o,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const ph=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:a,y:r,placement:i,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:o,elements:a}=e,r=await(null==o.isRTL?void 0:o.isRTL(a.floating)),i=wp(n),l=yp(n),s="y"===Cp(n),c=["left","top"].includes(i)?-1:1,u=r&&s?-1:1,d=gp(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:a+s.x,y:r+s.y,data:{...s,placement:i}}}}},hh=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:a}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=gp(e,t),c={x:n,y:o},u=await Tp(t,s),d=Cp(wp(a)),f=bp(d);let p=c[f],h=c[d];if(r){const e="y"===f?"bottom":"right";p=vp(p+u["y"===f?"top":"left"],p,p-u[e])}if(i){const e="y"===d?"bottom":"right";h=vp(h+u["y"===d?"top":"left"],h,h-u[e])}const m=l.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[f]:r,[d]:i}}}}}},mh=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:a,middlewareData:r,rects:i,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=gp(e,t);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const g=wp(a),w=Cp(l),y=wp(l)===l,b=await(null==s.isRTL?void 0:s.isRTL(c.floating)),x=f||(y||!m?[Vp(l)]:function(e){const t=Vp(e);return[Np(e),t,Np(t)]}(l)),C="none"!==h;!f&&C&&x.push(...function(e,t,n,o){const a=yp(e);let r=function(e,t,n){const o=["left","right"],a=["right","left"],r=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:o:t?o:a;case"left":case"right":return t?r:i;default:return[]}}(wp(e),"start"===n,o);return a&&(r=r.map((e=>e+"-"+a)),t&&(r=r.concat(r.map(Np)))),r}(l,m,h,b));const L=[l,...x],N=await Tp(t,v),V=[];let k=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&V.push(N[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=yp(e),a=Lp(e),r=xp(a);let i="x"===a?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=Vp(i)),[i,Vp(i)]}(a,i,b);V.push(N[e[0]],N[e[1]])}if(k=[...k,{placement:a,overflows:V}],!V.every((e=>e<=0))){var S,A;const e=((null==(S=r.flip)?void 0:S.index)||0)+1,t=L[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(A=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=k.filter((e=>{if(C){const t=Cp(e.placement);return t===w||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=l}if(a!==n)return{reset:{placement:n}}}return{}}}},vh=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...a}=gp(e,t);switch(o){case"referenceHidden":{const e=Op(await Tp(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Pp(e)}}}case"escaped":{const e=Op(await Tp(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Pp(e)}}}default:return{}}}}},gh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:a,rects:r,platform:i,elements:l,middlewareData:s}=t,{element:c,padding:u=0}=gp(e,t)||{};if(null==c)return{};const d=kp(u),f={x:n,y:o},p=Lp(a),h=xp(p),m=await i.getDimensions(c),v="y"===p,g=v?"top":"left",w=v?"bottom":"right",y=v?"clientHeight":"clientWidth",b=r.reference[h]+r.reference[p]-f[p]-r.floating[h],x=f[p]-r.reference[p],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let L=C?C[y]:0;L&&await(null==i.isElement?void 0:i.isElement(C))||(L=l.floating[y]||r.floating[h]);const N=b/2-x/2,V=L/2-m[h]/2-1,k=cp(d[g],V),S=cp(d[w],V),A=k,T=L-m[h]-S,O=L/2-m[h]/2+N,P=vp(A,O,T),M=!s.arrow&&null!=yp(a)&&O!==P&&r.reference[h]/2-(O<A?k:S)-m[h]/2<0,B=M?O<A?O-A:O-T:0;return{[p]:f[p]+B,data:{[p]:P,centerOffset:O-P-B,...M&&{alignmentOffset:B}},reset:M}}}),wh=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:a,rects:r,middlewareData:i}=t,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=gp(e,t),u={x:n,y:o},d=Cp(a),f=bp(d);let p=u[f],h=u[d];const m=gp(l,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const e="y"===f?"height":"width",t=r.reference[f]-r.floating[e]+v.mainAxis,n=r.reference[f]+r.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,w;const e="y"===f?"width":"height",t=["top","left"].includes(wp(a)),n=r.reference[d]-r.floating[e]+(t&&(null==(g=i.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),o=r.reference[d]+r.reference[e]+(t?0:(null==(w=i.offset)?void 0:w[d])||0)-(t?v.crossAxis:0);h<n?h=n:h>o&&(h=o)}return{[f]:p,[d]:h}}}},yh=(e,t,n)=>{const o=new Map,a={platform:dh,...n},r={...a.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:r=[],platform:i}=n,l=r.filter(Boolean),s=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=Ap(c,o,s),f=o,p={},h=0;for(let m=0;m<l.length;m++){const{name:n,fn:r}=l[m],{x:v,y:g,data:w,reset:y}=await r({x:u,y:d,initialPlacement:o,placement:f,strategy:a,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=g?g:d,p={...p,[n]:{...p[n],...w}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):y.rects),({x:u,y:d}=Ap(c,f,s))),m=-1)}return{x:u,y:d,placement:f,strategy:a,middlewareData:p}})(e,t,{...a,platform:r})};function bh(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xh(e){return e instanceof bh(e).Element||e instanceof Element}function Ch(e){return e instanceof bh(e).HTMLElement||e instanceof HTMLElement}function Lh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof bh(e).ShadowRoot||e instanceof ShadowRoot)}var Nh=Math.round;function Vh(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function kh(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),a=1,r=1;t&&Ch(e)&&(a=e.offsetWidth>0&&Nh(o.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Nh(o.height)/e.offsetHeight||1);var i=(xh(e)?bh(e):window).visualViewport,l=!!/^((?!chrome|android).)*safari/i.test(Vh())&&n,s=(o.left+(l&&i?i.offsetLeft:0))/a,c=(o.top+(l&&i?i.offsetTop:0))/r,u=o.width/a,d=o.height/r;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Sh(e){var t=bh(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ah(e){return e?(e.nodeName||"").toLowerCase():null}function Th(e){return((xh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oh(e){return bh(e).getComputedStyle(e)}function Ph(e){var t=Oh(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Mh(e,t,n){void 0===n&&(n=!1);var o,a,r=Ch(t),i=Ch(t)&&function(e){var t=e.getBoundingClientRect(),n=Nh(t.width)/e.offsetWidth||1,o=Nh(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),l=Th(t),s=kh(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ah(t)||Ph(l))&&(c=(o=t)!==bh(o)&&Ch(o)?{scrollLeft:(a=o).scrollLeft,scrollTop:a.scrollTop}:Sh(o)),Ch(t)?((u=kh(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=function(e){return kh(Th(e)).left+Sh(e).scrollLeft}(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function Bh(e){return"html"===Ah(e)?e:e.assignedSlot||e.parentNode||(Lh(e)?e.host:null)||Th(e)}function Ih(e){return["html","body","#document"].indexOf(Ah(e))>=0?e.ownerDocument.body:Ch(e)&&Ph(e)?e:Ih(Bh(e))}function Eh(e,t){var n;void 0===t&&(t=[]);var o=Ih(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),r=bh(o),i=a?[r].concat(r.visualViewport||[],Ph(o)?o:[]):o,l=t.concat(i);return a?l:l.concat(Eh(Bh(i)))}function Dh(e){return["table","td","th"].indexOf(Ah(e))>=0}function zh(e){return Ch(e)&&"fixed"!==Oh(e).position?e.offsetParent:null}function Fh(e){for(var t=bh(e),n=zh(e);n&&Dh(n)&&"static"===Oh(n).position;)n=zh(n);return n&&("html"===Ah(n)||"body"===Ah(n)&&"static"===Oh(n).position)?t:n||function(e){var t=/firefox/i.test(Vh());if(/Trident/i.test(Vh())&&Ch(e)&&"fixed"===Oh(e).position)return null;var n=Bh(e);for(Lh(n)&&(n=n.host);Ch(n)&&["html","body"].indexOf(Ah(n))<0;){var o=Oh(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}var jh="top",_h="bottom",Rh="right",Hh="left",Uh="start",$h="end",Zh=[].concat([jh,_h,Rh,Hh],["auto"]).reduce((function(e,t){return e.concat([t,t+"-"+Uh,t+"-"+$h])}),[]),Wh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Yh(e){var t=new Map,n=new Set,o=[];function a(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&a(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||a(e)})),o}function qh(e){return e.split("-")[0]}function Gh(e){return e.split("-")[1]}var Xh={placement:"bottom",modifiers:[],strategy:"absolute"};function Kh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Qh(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,a=t.defaultOptions,r=void 0===a?Xh:a;return function(e,t,n){void 0===n&&(n=r);var a,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xh,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var a="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},r,l.options,a),l.scrollParents={reference:xh(e)?Eh(e):e.contextElement?Eh(e.contextElement):[],popper:Eh(t)};var i,c,f=function(e){var t=Yh(e);return Wh.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(o,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var r=a({state:l,name:t,instance:u,options:o}),i=function(){};s.push(r||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(Kh(t,n)){var o,a,r,i;l.rects={reference:Mh(t,Fh(n),"fixed"===l.options.strategy),popper:(o=n,a=kh(o),r=o.offsetWidth,i=o.offsetHeight,Math.abs(a.width-r)<=1&&(r=a.width),Math.abs(a.height-i)<=1&&(i=a.height),{x:o.offsetLeft,y:o.offsetTop,width:r,height:i})},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var s=0;s<l.orderedModifiers.length;s++)if(!0!==l.reset){var d=l.orderedModifiers[s],f=d.fn,p=d.options,h=void 0===p?{}:p,m=d.name;"function"==typeof f&&(l=f({state:l,options:h,name:m,instance:u})||l)}else l.reset=!1,s=-1}}},update:(a=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(a())}))}))),i}),destroy:function(){d(),c=!0}};if(!Kh(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Jh={passive:!0};var em={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tm(e){var t,n=e.popper,o=e.popperRect,a=e.placement,r=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,h=i.y,m=void 0===h?0:h,v="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var g=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),y=Hh,b=jh,x=window;if(c){var C=Fh(n),L="clientHeight",N="clientWidth";if(C===bh(n)&&"static"!==Oh(C=Th(n)).position&&"absolute"===l&&(L="scrollHeight",N="scrollWidth"),a===jh||(a===Hh||a===Rh)&&r===$h)b=_h,m-=(d&&C===x&&x.visualViewport?x.visualViewport.height:C[L])-o.height,m*=s?1:-1;if(a===Hh||(a===jh||a===_h)&&r===$h)y=Rh,p-=(d&&C===x&&x.visualViewport?x.visualViewport.width:C[N])-o.width,p*=s?1:-1}var V,k=Object.assign({position:l},c&&em),S=!0===u?function(e,t){var n=e.x,o=e.y,a=t.devicePixelRatio||1;return{x:Nh(n*a)/a||0,y:Nh(o*a)/a||0}}({x:p,y:m},bh(n)):{x:p,y:m};return p=S.x,m=S.y,s?Object.assign({},k,((V={})[b]=w?"0":"",V[y]=g?"0":"",V.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",V)):Object.assign({},k,((t={})[b]=w?m+"px":"",t[y]=g?p+"px":"",t.transform="",t))}var nm=Qh({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,r=void 0===a||a,i=o.resize,l=void 0===i||i,s=bh(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",n.update,Jh)})),l&&s.addEventListener("resize",n.update,Jh),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Jh)})),l&&s.removeEventListener("resize",n.update,Jh)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=function(e){var t,n=e.reference,o=e.element,a=e.placement,r=a?qh(a):null,i=a?Gh(a):null,l=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(r){case jh:t={x:l,y:n.y-o.height};break;case _h:t={x:l,y:n.y+n.height};break;case Rh:t={x:n.x+n.width,y:s};break;case Hh:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var c=r?function(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}(r):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Uh:t[c]=t[c]-(n[u]/2-o[u]/2);break;case $h:t[c]=t[c]+(n[u]/2-o[u]/2)}}return t}({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=void 0===o||o,r=n.adaptive,i=void 0===r||r,l=n.roundOffsets,s=void 0===l||l,c={placement:qh(t.placement),variation:Gh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,tm(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,tm(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},a=t.elements[e];Ch(a)&&Ah(a)&&(Object.assign(a.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],a=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Ch(o)&&Ah(o)&&(Object.assign(o.style,r),Object.keys(a).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]}]});var om={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,a=n.offset,r=void 0===a?[0,0]:a,i=Zh.reduce((function(e,n){return e[n]=function(e,t,n){var o=qh(e),a=[Hh,jh].indexOf(o)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=r[0],l=r[1];return i=i||0,l=(l||0)*a,[Hh,Rh].indexOf(o)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,r),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}};const[am,rm]=Oe("popover"),im=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],lm={show:Boolean,theme:k("light"),overlay:Boolean,actions:L(),trigger:k("click"),duration:b,showArrow:x,placement:k("bottom"),iconPrefix:String,overlayClass:y,overlayStyle:Object,closeOnClickAction:x,closeOnClickOverlay:x,closeOnClickOutside:x,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"},autoAdjustOverflow:{type:Boolean,default:!1}};const sm=Re(t.defineComponent({name:am,props:lm,emits:["select","touchstart","update:show"],setup(e,{emit:n,slots:o,attrs:a}){let r;const i=t.ref(),l=t.ref(),s=t.ref(),c=t.ref(),u=sl((()=>e.show),(e=>n("update:show",e))),d=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},p({},om,{options:{offset:e.offset}})]}),f=()=>{t.nextTick((()=>{u.value&&(r?r.setOptions(d()):(r=l.value&&s.value?nm(l.value,s.value.popupRef.value,d()):null,h&&(window.addEventListener("animationend",f),window.addEventListener("transitionend",f))))}))},m=e=>{u.value=e},g=()=>{"click"===e.trigger&&(u.value=!u.value)},w=(n,a)=>o.action?o.action({action:n,index:a}):[n.icon&&t.createVNode(lt,{name:n.icon,classPrefix:e.iconPrefix,class:rm("action-icon")},null),t.createVNode("div",{class:[rm("action-text"),Ie]},[n.text])],y=(o,a)=>{const{icon:r,color:i,disabled:l,className:s,selected:c}=o;return t.createVNode("div",{role:"menuitem",class:[rm("action",{disabled:l,"with-icon":r}),s],style:c?{color:"var(--zt-primary-color)"}:{color:i},tabindex:l?void 0:0,"aria-disabled":l||void 0,onClick:()=>((t,o)=>{t.disabled||(e.actions.forEach((e=>{e.selected=!1})),t.selected=!0,n("select",t,o),e.closeOnClickAction&&(u.value=!1))})(o,a)},[w(o,a)])};function b(){return n=this,o=null,a=function*(){var n,o;if(l.value&&i.value&&c.value){const a=i.value,r=l.value,{x:s,y:u,placement:d,middlewareData:f}=yield yh(r,a,{placement:e.placement,middleware:[ph(8),hh({padding:4,crossAxis:!1,limiter:wh()}),mh(),vh(),(o={element:c.value,padding:6},{name:"arrow",options:o,fn(e){const n=function(e){var t;return null!=(t=null==e?void 0:e.$el)?t:e}(t.unref(o.element));return null==n?{}:gh({element:n,padding:o.padding}).fn(e)}})]});let p=u;const h={top:"bottom",right:"left",bottom:"top",left:"right"}[d.split("-")[0]];u<0?p=0:u>0&&u+a.offsetHeight>document.body.clientHeight&&(p=document.body.clientHeight-a.offsetHeight),Object.assign(i.value.style,{left:`${s}px`,top:`${p}px`}),i.value.setAttribute("data-popper-placement",d);const{x:m,y:v}=null!=(n=f.arrow)?n:{};Object.assign(c.value.style,{left:null!=m?`${m}px`:"",top:null!=v?`${v}px`:"",margin:0,[h]:"calc(var(--zt-popover-arrow-size) * -1)"})}},new Promise(((e,t)=>{var r=e=>{try{l(a.next(e))}catch(n){t(n)}},i=e=>{try{l(a.throw(e))}catch(n){t(n)}},l=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,i);l((a=a.apply(n,o)).next())}));var n,o,a}return t.onMounted((()=>{f(),t.watchEffect((()=>{var t;i.value=null==(t=s.value)?void 0:t.popupRef.value,l.value&&i.value&&e.autoAdjustOverflow&&fh(l.value,i.value,b,{elementResize:"undefined"!=typeof ResizeObserver})}))})),t.onBeforeUnmount((()=>{r&&(h&&(window.removeEventListener("animationend",f),window.removeEventListener("transitionend",f)),r.destroy(),r=null)})),t.watch((()=>[u.value,e.offset,e.placement]),f),_(l,(()=>{u.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(u.value=!1)}),{eventName:"touchstart"}),()=>{var n;return t.createVNode(t.Fragment,null,[t.createVNode("span",{ref:l,class:rm("wrapper"),onClick:g},[null==(n=o.reference)?void 0:n.call(o)]),t.createVNode(St,t.mergeProps({ref:s,show:u.value,class:rm([e.theme,u.value?"show":"hidden"]),position:"",transition:"zt-popover-zoom",lockScroll:!1,"onUpdate:show":m},a,wt(),v(e,im)),{default:()=>[e.showArrow&&t.createVNode("div",{class:rm("arrow"),ref:c},null),t.createVNode("div",{role:"menu",class:rm("content")},[o.default?o.default():e.actions.map(y)])]})])}}})),[cm,um,dm]=Oe("pull-refresh"),fm=["pulling","loosing","success"],pm={disabled:Boolean,modelValue:Boolean,headHeight:V(50),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:b,successDuration:V(500),animationDuration:V(300),scrollElement:null};const hm=Re(t.defineComponent({name:cm,props:pm,emits:["change","refresh","update:modelValue"],setup(e,{emit:n,slots:o}){let a;const r=t.ref(),i=t.ref(),l=Z(r),s=t.computed((()=>{if(e.scrollElement){const t=(e=>{if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"==typeof e&&e instanceof window.HTMLElement)return e}return document.body})(e.scrollElement);return t||console.warn("请检查props scroll-element元素是否存在!"),null!=t?t:l.value}return l.value})),c=t.reactive({status:"normal",distance:0,duration:0}),u=ft(),d=()=>{if(50!==e.headHeight)return{height:`${e.headHeight}px`}},f=()=>"loading"!==c.status&&"success"!==c.status&&!e.disabled,p=(t,o)=>{const a=+(e.pullDistance||e.headHeight);c.distance=t,c.status=o?"loading":0===t?"normal":t<a?"pulling":"loosing",n("change",{status:c.status,distance:t})},h=()=>{const{status:t}=c;return"normal"===t?"":e[`${t}Text`]||dm(t)},m=()=>{const{status:e,distance:n}=c;if(o[e])return o[e]({distance:n});const a=[];return fm.includes(e)&&a.push(t.createVNode("div",{class:um("text")},[h()])),"loading"===e&&a.push(t.createVNode(It,{color:"#969799","text-color":"#969799",class:um("loading")},{default:h})),a},v=e=>{a=0===q(s.value),a&&(c.duration=0,u.start(e))},g=e=>{f()&&v(e)},w=t=>{if(f()){a||v(t);const{deltaY:n}=u;u.move(t),a&&n.value>=0&&u.isVertical()&&(ne(t),p((t=>{const n=+(e.pullDistance||e.headHeight);return t>n&&(t=t<2*n?n+(t-n)/2:1.5*n+(t-2*n)/4),Math.round(t)})(n.value)))}};j("touchmove",w,{target:i});const y=()=>{a&&u.deltaY.value&&f()&&(c.duration=+e.animationDuration,"loosing"===c.status?(p(+e.headHeight,!0),n("update:modelValue",!0),t.nextTick((()=>n("refresh")))):p(0))};return t.watch((()=>e.modelValue),(t=>{c.duration=+e.animationDuration,t?p(+e.headHeight,!0):o.success||e.successText?(c.status="success",setTimeout((()=>{p(0)}),+e.successDuration)):p(0,!1)})),()=>{var e;const n={transitionDuration:`${c.duration}ms`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""};return t.createVNode("div",{ref:r,class:um()},[t.createVNode("div",{ref:i,class:um("track"),style:n,onTouchstartPassive:g,onTouchmove:w,onTouchend:y,onTouchcancel:y},[t.createVNode("div",{class:um("head"),style:d()},[m()]),null==(e=o.default)?void 0:e.call(o)])])}}})),[mm,vm]=Oe("radio-group"),gm={disabled:Boolean,iconSize:b,direction:k("vertical"),modelValue:y,checkedColor:String},wm=Symbol(mm);var ym=t.defineComponent({name:mm,props:gm,emits:["change","update:modelValue"],setup(e,{emit:n,slots:o}){const{linkChildren:a}=z(wm);return t.watch((()=>e.modelValue),(e=>n("change",e))),a({props:e,updateValue:e=>n("update:modelValue",e)}),Y((()=>e.modelValue)),()=>{var n;return t.createVNode("div",{class:vm([e.direction]),role:"radiogroup"},[null==(n=o.default)?void 0:n.call(o)])}}});const[bm,xm]=Oe("radio");var Cm=t.defineComponent({name:bm,props:ga,emits:["update:modelValue"],setup(e,{emit:n,slots:o}){const{parent:a}=E(wm),r=()=>{a?a.updateValue(e.name):n("update:modelValue",e.name)};return()=>t.createVNode(wa,t.mergeProps({bem:xm,role:"radio",parent:a,checked:(a?a.props.modelValue:e.modelValue)===e.name,onToggle:r},e),v(o,["default","icon"]))}});const Lm=Re(Cm),Nm=Re(ym),[Vm,km,Sm]=Oe("radio-picker"),Am=e=>e.find((e=>!e.disabled))||e[0];function Tm(e,t){for(let n=t=ve(t,0,e.length);n<e.length;n++)if(!e[n].disabled)return n;for(let n=t-1;n>=0;n--)if(!e[n].disabled)return n;return 0}const Om=(e,t,n)=>void 0!==t&&!!e.find((e=>e[n.value]===t));function Pm(e,t,n){const o=e.findIndex((e=>e[n.value]===t));return e[Tm(e,o)]}const[Mm,Bm]=Oe("radio-picker-column"),Im=Symbol(Mm);var Em=t.defineComponent({name:Mm,props:{value:b,unit:k(""),fields:C(Object),options:L(),readonly:Boolean,allowHtml:Boolean,wrapHeight:C(Number),swipeDuration:C(b),autoSearchVal:k("")},emits:["change","clickOption"],setup(e,{emit:n,slots:o}){let a,r,i,l,s;const c=t.ref(),u=t.ref(),d=t.ref(0),f=t.ref(0),p=ft(),h=t=>{const n=u.value.clientHeight-e.wrapHeight;d.value=ve(t,-n,0)},m=t.computed((()=>!e.options.some((t=>{const n=t[e.fields.text];return null==n?void 0:n.includes(e.autoSearchVal)}))));t.watch((()=>e.autoSearchVal),(()=>{d.value=0}),{immediate:!0});const v=()=>e.readonly||!e.options.length,g=t=>{a||v()||(s=null,f.value=200,(t=>{const o=Tm(e.options,t),r=()=>{const t=e.options[o][e.fields.value];t!==e.value&&n("change",t)};a?s=r:r()})(t),n("clickOption",e.options[t]))},w=()=>{a=!1,f.value=0,s&&(s(),s=null)},y=e=>{if(!v()){if(p.start(e),a&&u.value){const e=function(e){const{transform:t}=window.getComputedStyle(e),n=t.slice(7,t.length-1).split(", ")[5];return Number(n)}(u.value);h(Math.min(0,e-0))}f.value=0,r=d.value,i=Date.now(),l=r,s=null}},b=()=>{if(v())return;const t=d.value-l,n=Date.now()-i;n<300&&Math.abs(t)>15?((t,n)=>{const o=Math.abs(t/n);t=d.value+o/.003*(t<0?-1:1),h(t),f.value=+e.swipeDuration})(t,n):(f.value=200,setTimeout((()=>{a=!1}),0))},x=()=>e.options.map(((n,a)=>{let r=n[e.fields.text];const{disabled:i}=n,l=n[e.fields.value],s=null==r?void 0:r.includes(e.autoSearchVal);let c=!1;s&&e.autoSearchVal&&(r=(t=>{if(!t)return t;const n=new RegExp(e.autoSearchVal,"gi");return t.replace(n,"<span style='color: var(--zt-radio-picker-search-radio-label-match-color);'>$&</span>")})(r),c=!0);const u={tabindex:i?-1:0,class:[Bm("item",{"not-match":!s}),n.className],disabled:i,onClick:()=>{if(!i)return g(a)},name:l},d={[e.allowHtml||c?"innerHTML":"textContent"]:r};return t.createVNode(Cm,u,{default:()=>[o.option?o.option({option:n,searchValue:e.autoSearchVal}):t.createVNode("div",d,null)]})}));E(Im),dt({stopMomentum:w}),j("touchmove",(e=>{if(v())return;p.move(e),p.isVertical()&&(a=!0,ne(e,!0)),h(r+p.deltaY.value);const t=Date.now();t-i>300&&(i=t,l=d.value)}),{target:c});const C=()=>{var e;if(m.value)return o.searchEmpty?null==(e=o.searchEmpty)?void 0:e.call(o):t.createVNode(Di,{class:Bm("search-empty"),image:"no-search-result"},{description:()=>t.createVNode("span",null,[t.createTextVNode("暂无搜索结果")])})};return()=>t.createVNode("div",{ref:c,class:Bm(),onTouchstartPassive:y,onTouchend:b,onTouchcancel:b},[t.createVNode("ul",{ref:u,style:{transform:`translate3d(0, ${d.value+0}px, 0)`,transitionDuration:`${f.value}ms`,transitionProperty:f.value?"all":"none"},class:Bm("wrapper"),onTransitionend:w},[t.createVNode(ym,{modelValue:e.value},{default:()=>[x()]})]),C()])}});const[Dm]=Oe("picker-toolbar"),zm={cancelButtonText:String,confirmButtonText:String},Fm=["cancel","confirm","title","toolbar"],jm=Object.keys(zm);var _m=t.defineComponent({name:Dm,props:zm,emits:["confirm","cancel"],setup(e,{emit:n,slots:o}){const a=()=>n("cancel"),r=()=>n("confirm"),i=()=>{const n=e.cancelButtonText||Sm("cancel");return t.createVNode(mn,{type:"default",hairline:!0,class:km("cancel"),onClick:a},{default:()=>[o.cancel?o.cancel():n]})},l=()=>{const n=e.confirmButtonText||Sm("confirm");return t.createVNode(mn,{type:"primary",class:[km("confirm"),ze],onClick:r},{default:()=>[o.confirm?o.confirm():n]})};return()=>t.createVNode("div",{class:km("toolbar")},[o.toolbar?o.toolbar():[i(),l()]])}});function Rm(e){return"function"==typeof e?e():t.unref(e)}function Hm(e,t=200,n={}){return function(e,t){return function(...n){return new Promise(((o,a)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(o).catch(a)}))}}(function(e,t={}){let n,o,a=f;const r=e=>{clearTimeout(e),a(),a=f};return i=>{const l=Rm(e),s=Rm(t.maxWait);return n&&r(n),l<=0||void 0!==s&&s<=0?(o&&(r(o),o=null),Promise.resolve(i())):new Promise(((e,c)=>{a=t.rejectOnCancel?c:e,s&&!o&&(o=setTimeout((()=>{n&&r(n),o=null,e(i())}),s)),n=setTimeout((()=>{o&&r(o),o=null,e(i())}),l)}))}}(t,n),e)}const Um=p({loading:Boolean,readonly:Boolean,allowHtml:Boolean,showToolbar:x,showTitle:x,swipeDuration:V(1e3),title:k("请选择")},zm),$m=p({},Um,{columns:L(),modelValue:L(),columnsFieldNames:Object,wrapHeight:V("40vh"),showPicker:Boolean,popup:x,searchable:Boolean,autoSearch:x,searchPlaceholder:k("请搜索")});const Zm=Re(t.defineComponent({name:Vm,props:$m,emits:["confirm","cancel","change","clickOption","update:modelValue","update:showPicker"],setup(e,{emit:n,slots:o}){const r=t.ref(),i=t.ref(e.modelValue.slice(0)),l=t.ref(e.showPicker),{children:s,linkChildren:c}=z(Im),u=t.ref(""),d=t.ref("");c();const f=t.computed((()=>function(e){return p({text:"text",value:"value",children:"children"},e)}(e.columnsFieldNames))),h=t.computed((()=>{const t=fe(e.wrapHeight);let n=t;return e.showTitle?e.searchable&&(n=t-60):(n=t+44,e.searchable&&(n-=60)),n})),m=t.computed((()=>function(e,t){const n=e[0];if(n){if(Array.isArray(n))return"multiple";if(t.children in n)return"cascade"}return"default"}(e.columns,f.value))),w=t.computed((()=>{const{columns:t}=e;switch(m.value){case"multiple":return t;case"cascade":return function(e,t,n){const o=[];let r={[t.children]:e},i=0;for(;r&&r[t.children];){const e=r[t.children],l=n.value[i];r=a(l)?Pm(e,l,t):void 0,!r&&e.length&&(r=Pm(e,Am(e)[t.value],t)),i++,o.push(e)}return o}(t,f.value,i);default:return[t]}})),y=t.computed((()=>w.value.some((e=>e.length)))),b=t.computed((()=>w.value.map(((e,t)=>Pm(e,i.value[t],f.value)))));t.watch(l,(t=>{t!==e.showPicker&&n("update:showPicker",t)})),t.watch((()=>e.showPicker),(e=>{e!==l.value&&(l.value=e)}));const x=(e,t)=>{if(i.value[e]!==t){const n=i.value.slice(0);n[e]=t,i.value=n}},C=()=>({selectedValues:i.value.slice(0),selectedOptions:b.value}),L=()=>{s.forEach((e=>e.stopMomentum()));const e=C();return n("confirm",e),e},N=()=>{n("update:showPicker",!1),n("cancel",C())},V=e=>n("update:showPicker",e),k=()=>w.value.map(((a,r)=>t.createVNode(Em,{value:i.value[r],fields:f.value,options:a,readonly:e.readonly,allowHtml:e.allowHtml,wrapHeight:h.value,swipeDuration:e.swipeDuration,autoSearchVal:d.value,onChange:e=>((e,o)=>{x(o,e),"cascade"===m.value&&i.value.forEach(((e,t)=>{const n=w.value[t];Om(n,e,f.value)||x(t,n.length?n[0][f.value.value]:void 0)})),t.nextTick((()=>{n("change",p({columnIndex:o},C()))}))})(e,r),onClickOption:e=>((e,t)=>n("clickOption",p({columnIndex:t,currentOption:e},C())))(e,r)},{option:o.option,searchEmpty:o["search-empty"]}))),S=e=>{if(y.value){const n={backgroundSize:`100% ${(e-h.value)/2}px`};return[t.createVNode("div",{class:km("mask"),style:n},null)]}},A=()=>{e.autoSearch||(d.value=u.value)},T=()=>{if(e.searchable)return t.createVNode("div",{class:km("search")},[t.createVNode(ci,{"show-action":!e.autoSearch,modelValue:u.value,placeholder:e.searchPlaceholder,"onUpdate:modelValue":e.autoSearch?Hm((e=>{u.value=e,d.value=u.value}),500):e=>{u.value=e},onSearch:A,onClear:A},null)])},O=()=>{const e={height:`${h.value}px`};return t.createVNode("div",{ref:r,class:km("columns"),style:e},[k(),S(h.value)])},P=()=>{if(e.showToolbar)return t.createVNode(_m,t.mergeProps(v(e,jm),{onConfirm:L,onCancel:N}),v(o,Fm))},M=()=>{if(e.showTitle)return o.title?o.title():t.createVNode("div",{class:[km("title"),ze]},[e.title])};let B;t.watch(w,(e=>{e.forEach(((e,t)=>{e.length&&!Om(e,i.value[t],f.value)&&x(t,Am(e)[f.value.value])}))}),{immediate:!0}),t.watch((()=>e.modelValue),(e=>{g(e,i.value)||g(e,B)||(i.value=e.slice(0),B=e.slice(0))}),{deep:!0}),t.watch(i,(t=>{g(t,e.modelValue)||(B=t.slice(0),n("update:modelValue",B))}),{immediate:!0}),j("touchmove",ne,{target:r});dt({confirm:L,getSelectedOptions:()=>b.value});const I=()=>{var n,a;return t.createVNode("div",{class:km()},[M(),e.loading?t.createVNode(It,{class:km("loading")},null):null,e.showTitle?t.createVNode(Wo,{style:"margin: 0"},null):null,T(),null==(n=o["columns-top"])?void 0:n.call(o),O(),null==(a=o["columns-bottom"])?void 0:a.call(o),e.showToolbar?t.createVNode(Wo,{style:"margin: 0"},null):null,P()])};return()=>e.popup?t.createVNode(At,{show:l.value,"onUpdate:show":[e=>l.value=e,V],round:!0,position:"bottom"},{default:I}):I()}})),[Wm,Ym]=Oe("rate");const qm={size:b,icon:k("star"),color:String,count:V(5),gutter:b,readonly:Boolean,disabled:Boolean,voidIcon:k("star"),allowHalf:Boolean,voidColor:String,touchable:x,iconPrefix:String,modelValue:N(0),disabledColor:String};const Gm=Re(t.defineComponent({name:Wm,props:qm,emits:["change","update:modelValue"],setup(e,{emit:n}){const o=ft(),[a,r]=On(),i=t.ref(),l=()=>e.readonly||e.disabled||!e.touchable,s=t.computed((()=>Array(+e.count).fill("").map(((t,n)=>function(e,t,n,o){if(e>=t)return{status:"full",value:1};if(e+.5>=t&&n&&!o)return{status:"half",value:.5};if(e+1>=t&&n&&o){const n=10**10;return{status:"half",value:Math.round((e-t+1)*n)/n}}return{status:"void",value:0}}(e.modelValue,n+1,e.allowHalf,e.readonly)))));let c,u,d=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;const p=()=>{u=I(i);const t=a.value.map(I);c=[],t.forEach(((t,n)=>{d=Math.min(t.top,d),f=Math.max(t.top,f),e.allowHalf?c.push({score:n+.5,left:t.left,top:t.top,height:t.height},{score:n+1,left:t.left+t.width/2,top:t.top,height:t.height}):c.push({score:n+1,left:t.left,top:t.top,height:t.height})}))},h=(t,n)=>{for(let e=c.length-1;e>0;e--)if(n>=u.top&&n<=u.bottom){if(t>c[e].left&&n>=c[e].top&&n<=c[e].top+c[e].height)return c[e].score}else{const o=n<u.top?d:f;if(t>c[e].left&&c[e].top===o)return c[e].score}return e.allowHalf?.5:1},m=t=>{e.disabled||e.readonly||t===e.modelValue||(n("update:modelValue",t),n("change",t))},v=e=>{l()||(o.start(e),p())},g=e=>{if(!l()&&(o.move(e),o.isHorizontal())){const{clientX:t,clientY:n}=e.touches[0];ne(e),m(h(t,n))}},w=(n,o)=>{const{icon:a,size:i,color:l,count:s,gutter:c,voidIcon:u,disabled:d,voidColor:f,allowHalf:v,iconPrefix:g,disabledColor:w}=e,y=o+1,b="full"===n.status,x="void"===n.status,C=v&&n.value>0&&n.value<1;let L;c&&y!==+s&&(L={paddingRight:le(c)});return t.createVNode("div",{key:o,ref:r(o),role:"radio",style:L,class:Ym("item"),tabindex:d?void 0:0,"aria-setsize":s,"aria-posinset":y,"aria-checked":!x,onClick:e=>{p(),m(v?h(e.clientX,e.clientY):y)}},[t.createVNode(lt,{size:i,name:b?a:u,class:Ym("icon",{disabled:d,full:b}),color:d?w:b?l:f,classPrefix:g},null),C&&t.createVNode(lt,{size:i,style:{width:n.value+"em"},name:x?u:a,class:Ym("icon",["half",{disabled:d,full:!x}]),color:d?w:x?f:l,classPrefix:g},null)])};return Y((()=>e.modelValue)),()=>t.createVNode("div",{ref:i,role:"radiogroup",class:Ym({readonly:e.readonly,disabled:e.disabled}),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,"aria-readonly":e.readonly,onTouchstartPassive:v,onTouchmove:g},[s.value.map(w)])}})),Xm=Re(Ta),Km=(e,t,n)=>{const o={width:"",height:"",transform:"",transformOrigin:""},{clientWidth:a}=document.documentElement,r=e,{clientHeight:i}=document.documentElement,l=a-r,s=i-t,c=Math.max(l,s),u=Math.min(l,s);return null==window.orientation||180===window.orientation||0===window.orientation?l<s?n?(console.debug("竖屏打开,强制横屏"),o.transform="rotate(90deg)",o.width=`${c}px`,o.height=`${u}px`,o.transformOrigin=u/2+"px center"):(console.debug("竖屏打开,保持竖屏"),o.transform="rotate(0deg)",o.width=`${u}px`,o.height=`${c}px`):n?(console.debug("横屏旋转到强制横屏"),o.transform="rotate(90deg)",o.width=`${c}px`,o.height=`${u}px`,o.transformOrigin=u/2+"px center"):(console.debug("横屏旋转到竖屏"),o.transform="rotate(0deg)",o.width=`${u}px`,o.height=`${c}px`):(l>s?console.debug("横屏打开"):console.debug("竖屏旋转到横屏"),o.transform="rotate(0deg)",o.width=`${c}px`,o.height=`${u}px`),o},[Qm,Jm]=Oe("signature"),ev="#FFF",tv="#000",nv=ae(Jm("stroke"),tv),ov=ae(Jm("canvas"),ev),av={customClass:k(""),lineWidth:V(2),strokeStyle:k(nv),backgroundStyle:k(ov),imageType:k("png"),resultTypes:L(["file","dataUrl"]),unSupportTpl:k("对不起,当前浏览器不支持Canvas,无法使用签名组件"),allowPortrait:Boolean};const rv=Re(t.defineComponent({name:Qm,props:av,emits:["clear","cancel","confirm"],setup(e,{emit:n}){const o=t.ref(),a=t.ref(),r=t.ref(0),i=t.ref(0),l=t.ref(),s=t.ref("ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]),c=t.ref(!0),u=t.ref(!1),d=t.ref("ontouchstart"in window),f=t.computed((()=>{const e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))})),p=()=>{var t,n;if(!o.value)return void console.error("container is empty");const a=Km((null==(t=o.value)?void 0:t.offsetLeft)||0,(null==(n=o.value)?void 0:n.offsetTop)||0,!e.allowPortrait);o.value.style.transform=a.transform,o.value.style.width=a.width,o.value.style.height=a.height,o.value.style.transformOrigin=a.transformOrigin,r.value=ui(a.width),i.value=ui(a.height)},h=()=>{var t,n,o,r;if("jpg"===e.imageType){let o=e.backgroundStyle;"transparent"===o&&(o="#fff"),l.value&&(l.value.fillStyle=o,l.value.fillRect(0,0,(null==(t=a.value)?void 0:t.width)||0,(null==(n=a.value)?void 0:n.height)||0))}else{const t=e.backgroundStyle;"transparent"!==t&&l.value&&(l.value.fillStyle=t,l.value.fillRect(0,0,(null==(o=a.value)?void 0:o.width)||0,(null==(r=a.value)?void 0:r.height)||0))}},m=t=>{var n,o;t.preventDefault(),u.value=!0,c.value=!1;const r=d.value?t.touches[0]:t;if(a.value){const t=((e,t,n)=>{const o=t.getBoundingClientRect(),a=e.clientX-o.left,r=e.clientY-o.top;if(n&&(null==window.orientation||180===window.orientation||0===window.orientation)){const{clientWidth:e}=document.documentElement;return{x:r,y:e-0-a}}return{x:a,y:r}})(r,a.value,!e.allowPortrait);null==(n=l.value)||n.lineTo(t.x,t.y),null==(o=l.value)||o.stroke()}},v=e=>{var t,n;e.preventDefault(),null==(t=a.value)||t.removeEventListener(s.value[1],m,!1),null==(n=a.value)||n.removeEventListener(s.value[2],v,!1)},g=e=>{var t,n;e.preventDefault(),null==(t=a.value)||t.removeEventListener(s.value[1],m,!1),null==(n=a.value)||n.removeEventListener(s.value[2],v,!1)},w=t=>{var n,o,r;t.preventDefault(),l.value&&(l.value.beginPath(),l.value.lineWidth=+e.lineWidth,l.value.strokeStyle=e.strokeStyle),null==(n=a.value)||n.addEventListener(s.value[1],m,!1),null==(o=a.value)||o.addEventListener(s.value[2],v,!1),null==(r=a.value)||r.addEventListener(s.value[3],g,!1)},y=(e=!1)=>{var t,o,r,i,d;null==(t=a.value)||t.addEventListener(s.value[2],v,!1),null==(i=l.value)||i.clearRect(0,0,(null==(o=a.value)?void 0:o.width)||0,(null==(r=a.value)?void 0:r.height)||0),null==(d=l.value)||d.closePath(),h(),u.value=!1,c.value=!0,e||n("clear")},b=()=>{var t;a.value&&(t=a.value,Promise.all(e.resultTypes.map((n=>{if("dataUrl"===n.trim()){let n;return n="png"===e.imageType?t.toDataURL("image/png"):t.toDataURL("image/jpeg",.8),Promise.resolve(n)}if("file"===n.trim()){const n=(new Date).getTime();return"png"===e.imageType?ic(t,n+".png",n,"image/png"):ic(t,n+".jpg",n)}return Promise.resolve(null)}))).then((e=>{y(!0),n("confirm",e)})))},x=()=>{y(!0),n("cancel")},C=()=>{var e;f.value&&(l.value=null==(e=a.value)?void 0:e.getContext("2d"),p(),(()=>{var e;null==(e=a.value)||e.addEventListener(s.value[0],w,!1),f.value&&window.addEventListener("resize",(()=>{setTimeout((()=>{p(),c.value||(Wn("旋转屏幕或者改变屏幕大小触发重新绘制"),y(!0))}),100)}))})(),setTimeout((()=>{h()}),50))};return()=>t.createVNode(t.Transition,{appear:!0,onAfterEnter:C},{default:()=>[t.createVNode("div",{class:[Jm(""),e.customClass?e.customClass:""],ref:o},[t.withDirectives(t.createVNode("label",{class:Jm("placeholder")},[f.value?"请在此签名":e.unSupportTpl]),[[t.vShow,!u.value]]),t.createVNode("div",{class:Jm("canvasWrapper"),ref:"canvasWrapper"},[t.withDirectives(t.createVNode("canvas",{class:Jm("canvas"),ref:a,width:r.value,height:i.value},null),[[t.vShow,f.value]])]),t.createVNode("div",{class:Jm("actions")},[t.createVNode(vn,{plain:!0,type:"warning",onClick:()=>y(),class:Jm("button-again")},{default:()=>[t.createTextVNode("重签")]}),t.createVNode(vn,{type:"default",onClick:x,class:Jm("button-cancel")},{default:()=>[t.createTextVNode("取消")]}),t.createVNode(vn,{block:!0,type:"primary",disabled:c.value,onClick:b,class:Jm("button-complete")},{default:()=>[t.createTextVNode("完成")]})])])]})}})),[iv,lv]=Oe("skeleton"),sv="100%",cv={row:V(0),title:Boolean,round:Boolean,avatar:Boolean,field:Boolean,textarea:Boolean,loading:x,animate:x,avatarSize:b,titleWidth:b,avatarShape:k("round"),rowWidth:{type:[Number,String,Array],default:sv}};const uv=Re(t.defineComponent({name:iv,inheritAttrs:!1,props:cv,setup(e,{slots:n,attrs:o}){const a=()=>{if(e.avatar)return t.createVNode("div",{class:lv("avatar",e.avatarShape),style:se(e.avatarSize)},null)},r=()=>{if(e.title&&!e.field)return t.createVNode("h3",{class:lv("title"),style:{width:le(e.titleWidth)}},null)};function i(){const n=[],{rowWidth:o}=e;function a(t){return o===sv&&t===+e.row-1?"60%":Array.isArray(o)?o[t]:o}for(let r=0;r<+e.row;r++)e.field?n.push(t.createVNode("div",{class:lv("field")},[t.createVNode("span",{class:lv("field-title"),style:{width:le(e.titleWidth)}},null),t.createVNode("span",{class:lv("field-value"),style:{width:le(a(r))}},null)])):e.textarea?n.push(t.createVNode("div",{class:lv("textarea"),style:{width:le(a(r))}},null)):n.push(t.createVNode("div",{class:lv("row"),style:{width:le(a(r))}},null));return n}return()=>{var l;return e.loading?t.createVNode("div",t.mergeProps({class:lv({animate:e.animate,round:e.round})},o),[a(),t.createVNode("div",{class:lv("content")},[r(),i()])]):null==(l=n.default)?void 0:l.call(n)}}}));function dv(e,n=""){const o=t.ref([]),a=t.ref();return navigator.mediaDevices||(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia||(navigator.mediaDevices.getUserMedia=function(e){const t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return t?new Promise(((n,o)=>t.call(navigator,e,n,o))):(Xn("浏览器不支持getUserMedia"),Promise.reject(new Error("您的浏览器暂不支持 getUserMedia !")))}),{startRecording:function(){return t=this,r=null,i=function*(){const t=yield navigator.mediaDevices.getUserMedia({audio:!0});a.value=new MediaRecorder(t),o.value=[],a.value.ondataavailable=t=>{if(t.data&&t.data.size>0){if(o.value.push(t.data),"raw"===n)return void e("change",o.value);!function(t){const n=new FileReader;n.onloadend=()=>{var t;const o=null==(t=n.result)?void 0:t.split(",")[1];e("change",o)},n.readAsDataURL(t)}(new Blob(o.value,{type:"audio/wav"}))}},a.value.start()},new Promise(((e,n)=>{var o=e=>{try{l(i.next(e))}catch(t){n(t)}},a=e=>{try{l(i.throw(e))}catch(t){n(t)}},l=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,a);l((i=i.apply(t,r)).next())}));var t,r,i},stopRecording:function(){var e,t;null==(e=a.value)||e.stop(),null==(t=a.value)||t.stream.getTracks().forEach((e=>e.stop())),a.value=void 0},recordedBlobs:o}}const[fv,pv]=Oe("speech-recognizer"),hv={title:String,value:String,type:String,show:Boolean,closeOnPopstate:x,closeOnClickOverlay:x};const mv=Re(t.defineComponent({name:fv,props:hv,emits:["change","confirm","close","update:show","update:value","onTouchstart","onTouchend"],setup(e,{emit:n,slots:o}){const a=t.ref(e.show),r=t.ref(!1),{startRecording:i,stopRecording:l}=dv(n,e.type),s=t.computed({get:()=>e.value,set:e=>{n("update:value",e)}});t.watch(a,(t=>{t!==e.show&&n("update:show",t)})),t.watch((()=>e.show),(e=>{e!==a.value&&(a.value=e)}));const c=e=>n("update:show",e),u=()=>{a.value=!1,n("close")},d=()=>{n("update:value","")},f=()=>{a.value=!1,n("confirm")},p=e=>{e.preventDefault()},h=()=>{n("onTouchstart"),r.value=!0,i()},m=()=>{r.value=!1,l(),n("onTouchend")},v=()=>{const n=e.value?e.value:"请说话";return t.createVNode("div",{class:pv("text")},[n,t.createVNode("div",{class:pv("loading")},[t.createVNode("div",null,null),t.createVNode("div",null,null),t.createVNode("div",null,null)])])},g=e=>{s.value=e},w=()=>t.createVNode("div",{class:pv()},[o.title?o.title():t.createVNode("div",{class:[pv("header"),"zt-hairline--bottom"]},[t.createVNode("div",{class:["zt-ellipsis",pv("title")]},[e.title?e.title:"语音输入"]),t.createVNode("div",{class:pv("close"),onClick:u},[t.createVNode(st,{name:"clear",size:"24"},null)])]),t.createTextVNode(" "),t.createVNode("div",{class:pv("body")},[r.value?v():e.value?t.createVNode("div",{class:pv("text")},[t.createVNode(ai,{modelValue:s.value,type:"textarea",rows:"12",label:"",placeholder:"","onUpdate:modelValue":g},null)]):t.createVNode("div",{class:pv("empty")},[t.createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 164 164",class:"design-iconfont"},[t.createVNode("g",{"fill-rule":"nonzero",fill:"none"},[t.createVNode("path",{fill:"#F5F7FA",d:"M19.8391025 68.2073963L19.8593465 77.2801141 19.9200784 77.745901 20.0820303 78.049675 20.2844701 78.2319394 24.3737545 80.6013769 24.1713147 80.4191124 24.0296068 80.1153384 23.9486309 79.6698032 23.9283869 70.5970854z",transform:"translate(2 33.6838)"},null),t.createVNode("path",{d:"M7.30807756,78.4952102 L1.53854264,75.1536959 L1.133663,74.8499218 L0.789515304,74.4651414 L0.485855572,73.9791029 L0.28341575,73.4323097 L0.161951857,72.7842584 L0.101219911,72.0349491 L5.87075483,75.3764635 L5.93148677,76.1460244 L6.05295067,76.773824 L6.27563447,77.3206173 L6.55905022,77.8269074 L6.90319792,78.2116878 L7.30807756,78.4952102 Z M5.87075483,75.3764635 L0.101219911,72.0349491 L0,34.873259 L5.76953492,38.2147734 L5.87075483,75.3764635 Z",fill:"#DDE1EB",transform:"translate(2 33.6838)"},null),t.createVNode("path",{fill:"#F5F7FA",d:"M58.7075483 3.66554L58.2419367 3.46302398 57.7358371 3.34151437 57.1487616 3.34151437 56.5616862 3.44277238 55.9341227 3.66554 55.2255833 4.00981724 10.6685786 29.7698553 4.8787997 26.4283409 49.4560484 0.668302874 50.1645878 0.324025636 50.7921512 0.101258011 51.3792267 0 51.9460582 0 52.4521578 0.121509613 52.9177694 0.324025636z",transform:"translate(2 33.6838)"},null),t.createVNode("path",{fill:"#DDE1EB",d:"M5.76953492 38.2147734L0 34.873259 0.161951857 33.2936341 0.384635661 32.4633184 1.01219911 30.8634418 1.41707875 30.0736293 1.90293432 29.3040684 2.97586538 27.9472111 3.58318484 27.3599146 4.8787997 26.4080893 10.6483346 29.7698553 9.37296374 30.701429 8.74540029 31.308977 7.67246924 32.6658344 7.20685765 33.4151437 6.78173402 34.2049562 6.15417058 35.8048327 5.81002288 37.4452125z",transform:"translate(2 33.6838)"},null),t.createVNode("path",{fill:"#E9ECF2",d:"M55.2255833 4.00981724L55.9543667 3.66554 56.6021741 3.44277238 57.1892496 3.34151437 57.7155931 3.36176597 58.2419367 3.46302398 58.7075483 3.66554 59.1124279 3.96931404 59.4565756 4.37434608 59.7399914 4.84013293 59.9424312 5.38692619 60.0638951 6.03497746 60.124627 6.82478995 60.2258469 43.98648 60.0638951 45.5458534 59.5780395 47.1862332 58.8290122 48.7658582 57.857301 50.2239735 56.6629061 51.4795729 56.0353426 51.9858629 55.3672912 52.4313982 37.8764906 62.5369477 26.2362009 79.730558 25.5479055 80.4191124 25.2240018 80.6013769 24.8798541 80.7026349 24.5964383 80.6823833 24.3332666 80.5811253 24.1510707 80.3988608 24.0093628 80.0950868 23.9486309 79.6698032 23.9283869 70.5970854 10.7900425 78.1711846 10.0815031 78.5357134 9.43369569 78.7382295 8.86686419 78.8394875 8.32027667 78.8192359 7.79393313 78.7179779 7.32832154 78.5154618 6.9234419 78.2116878 6.55905022 77.8066558 6.27563447 77.3611205 6.07319465 76.8143273 5.93148677 76.166276 5.87075483 75.3764635 5.76953492 38.2147734 5.93148677 36.6554 6.43758633 34.9947687 7.20685765 33.4151437 8.19881277 31.9570283 9.37296374 30.701429 10.6483346 29.7698553z",transform:"translate(2 33.6838)"},null),t.createVNode("path",{d:"M48.6462891,27.0156374 L48.5450692,27.1979018 L48.5248252,27.5826822 L48.5450692,37.1616901 L48.5855572,37.3642061 L48.767753,37.4857157 L48.9904368,37.4249609 L49.2131206,37.2426965 L49.3750725,36.9794257 L49.4560484,36.6351484 L49.4155605,26.9548826 L49.3750725,26.7321149 L49.2738526,26.6511085 L49.1321447,26.6308569 L48.808241,26.8131214 L48.6462891,27.0156374 Z M46.540915,27.4004178 L46.4599391,27.6029338 L46.4194511,28.0079659 L46.4396951,38.9033279 L46.480183,39.1058439 L46.6826229,39.2273535 L46.8850627,39.1665987 L47.1279905,38.9640827 L47.2899423,38.7008119 L47.3709183,38.3767862 L47.3304303,27.3194114 L47.2899423,27.137147 L47.1887224,27.035889 L47.0470145,26.9953858 L46.7231108,27.1573986 L46.540915,27.4004178 Z M36.0545322,21.7299692 L35.9735563,21.8312272 L35.9330683,22.195756 L35.9128244,23.2893426 L36.0140443,57.0487635 L36.1355082,57.3525375 L36.4594119,57.3120343 L36.7023397,57.1095183 L36.8642915,56.8462475 L36.9250235,56.5222218 L36.8238035,21.6489628 L36.7833156,21.4464468 L36.6820957,21.3451887 L36.5606318,21.3249371 L36.2164841,21.5072016 L36.0545322,21.7299692 Z M52.7558175,26.2258249 L52.6545976,26.4688441 L52.6343536,26.8941278 L52.6545976,32.9088536 L52.6950856,33.1113696 L52.8975254,33.2328793 L53.0999652,33.1721245 L53.322649,32.98986 L53.5048448,32.7063376 L53.5655768,32.382312 L53.5453328,26.1448185 L53.5048448,25.9423025 L53.4238689,25.8410444 L53.282161,25.8207928 L52.9582573,25.9828057 L52.7558175,26.2258249 Z M40.1438166,30.0533777 L40.1843046,44.2497509 L40.3057685,44.5535249 L40.6296722,44.5130217 L40.852356,44.3307573 L41.0143079,44.0674864 L41.0952838,43.7232092 L41.0547958,29.526836 L40.9333319,29.223062 L40.6094282,29.2635652 L40.3665004,29.4458296 L40.2045486,29.7091005 L40.1438166,30.0533777 Z M38.1801504,33.2126277 L38.0789304,33.4151437 L38.0384425,33.7999241 L38.0789304,43.1359127 L38.1194184,43.3384288 L38.3218582,43.4599384 L38.5242981,43.3991836 L38.7469819,43.1966676 L38.9291777,42.9333967 L38.9899096,42.6093711 L38.9696657,33.1316212 L38.9291777,32.9291052 L38.8279578,32.8480988 L38.6862499,32.8278472 L38.3421022,33.0101116 L38.1801504,33.2126277 Z M29.8396297,24.8487159 L29.7586538,24.9702255 L29.7181658,25.3347544 L29.6979218,26.4283409 L29.8193857,60.1877618 L29.8598737,60.3902778 L30.0420695,60.5117875 L30.2445093,60.4510327 L30.4874371,60.2485166 L30.649389,59.9852458 L30.7101209,59.6612202 L30.629145,24.7879611 L30.5684131,24.5651935 L30.4874371,24.4841871 L30.3457293,24.4639355 L30.0015816,24.6461999 L29.8396297,24.8487159 Z M44.3343209,29.9723713 L44.3545649,39.6526372 L44.4760288,39.9564112 L44.7999325,39.915908 L45.0226163,39.7336436 L45.2048122,39.4703727 L45.2655441,39.1260955 L45.2453001,29.4458296 L45.1238362,29.1420556 L44.7999325,29.1623072 L44.5570047,29.3648232 L44.3950529,29.6280941 L44.3343209,29.9723713 Z M34.00989,18.9757513 L33.9086701,19.3605317 L33.8884261,22.1755044 L34.00989,62.0509092 L34.050378,62.2534253 L34.2528178,62.3749349 L34.4552576,62.3141801 L34.6779414,62.1319156 L34.8398933,61.8483932 L34.9208692,61.5243676 L34.7994053,18.9149965 L34.7589174,18.6922289 L34.6576975,18.6112224 L34.5159896,18.5909708 L34.1718419,18.7732353 L34.00989,18.9757513 Z M50.6706873,26.6713601 L50.5694674,26.9143794 L50.5289795,27.4206694 L50.5492235,35.0960267 L50.5897114,35.2985427 L50.7921512,35.4200523 L51.014835,35.3592975 L51.2375188,35.1770331 L51.3994707,34.9137622 L51.4804466,34.569485 L51.4602027,26.5903537 L51.3994707,26.3878377 L51.3184948,26.3068313 L51.1767869,26.2865797 L50.8326392,26.4688441 L50.6706873,26.6713601 Z M42.3504107,27.339663 L42.2694348,27.5219274 L42.2289468,27.8459531 L42.2087028,28.6965204 L42.2694348,43.6422028 L42.3099227,43.8447188 L42.4111426,43.9459768 L42.5326065,43.9662284 L42.7148024,43.9054736 L43.0387061,43.5611964 L43.1804139,43.1156611 L43.139926,27.2586566 L43.099438,27.0561406 L42.9982181,26.9751342 L42.8565102,26.934631 L42.5326065,27.0966438 L42.3504107,27.339663 Z M31.9247599,25.5170188 L31.8640279,25.65878 L31.82354,26.0030573 L31.803296,27.0156374 L31.9045159,58.0613436 L31.9450038,58.2638596 L32.0259798,58.3651176 L32.1676877,58.3853692 L32.5320793,58.1828532 L32.7750071,57.7778212 L32.8154951,57.5348019 L32.7142752,25.4360124 L32.6737872,25.253748 L32.5928113,25.15249 L32.4511034,25.1322384 L32.1271997,25.2942512 L31.9247599,25.5170188 Z M56.9463218,25.760038 L56.8451019,26.0435605 L56.8248579,26.4485925 L56.8248579,28.5345075 L56.8653459,28.7370236 L57.0677857,28.8585332 L57.2702255,28.7977784 L57.5131533,28.6155139 L57.6751052,28.3522431 L57.7560811,28.0079659 L57.7358371,25.6790316 L57.6953492,25.4765156 L57.5941292,25.3752576 L57.4524214,25.355006 L57.1487616,25.5170188 L56.9463218,25.760038 Z M54.8611917,26.5093473 L54.7599717,26.8131214 L54.7194838,27.3801662 L54.7397278,31.0254546 L54.8611917,31.3292286 L55.1850954,31.2887254 L55.4280232,31.106461 L55.589975,30.8229386 L55.650707,30.498913 L55.650707,26.4485925 L55.589975,26.2258249 L55.4887551,26.1245669 L55.3470472,26.1043153 L55.0231435,26.3068313 L54.8611917,26.5093473 Z M25.6896134,35.9870972 L25.6086374,36.14911 L25.5479055,36.4933872 L25.5479055,37.4452125 L25.6086374,54.780584 L25.7301013,55.0843581 L26.054005,55.0438549 L26.2766888,54.8615904 L26.4386407,54.5983196 L26.5196166,54.2540424 L26.4588847,35.9060908 L26.4183967,35.7238263 L26.3374208,35.6225683 L26.1957129,35.5820651 L25.8718092,35.7440779 L25.6896134,35.9870972 Z M27.7544995,27.9472111 L27.6735236,28.0687207 L27.6330356,28.4332495 L27.6127917,29.4458296 L27.7140116,60.4915359 L27.7544995,60.6940519 L27.9569394,60.8155615 L28.1593792,60.7548067 L28.382063,60.5725423 L28.5642588,60.2890198 L28.6249908,59.9649942 L28.5440148,27.8662047 L28.4832829,27.6636886 L28.402307,27.5624306 L28.2605991,27.542179 L27.9366954,27.7041918 L27.7544995,27.9472111 Z M19.4342229,47.044472 L19.312759,47.348246 L19.292515,47.8950393 L19.292515,51.5605793 L19.4139789,51.8643533 L19.7581266,51.8238501 L19.9808104,51.6415857 L20.1427622,51.3783149 L20.2237382,51.0340376 L20.2034942,46.9837172 L20.1630062,46.7812011 L20.0617863,46.6799431 L19.9200784,46.6596915 L19.5961747,46.841956 L19.4342229,47.044472 Z M11.1341902,52.9174366 L11.0127263,53.1807075 L10.9924823,53.5654879 L11.0329703,55.8944222 L11.2354101,56.0159318 L11.4378499,55.955177 L11.6807777,55.7729125 L11.8427296,55.4893901 L11.9034615,55.1653645 L11.9034615,52.8364302 L11.8629735,52.6339142 L11.7617536,52.5326562 L11.4783379,52.5529078 L11.1341902,52.9174366 Z M23.5842392,40.8879849 L23.5032633,41.0905009 L23.4627753,41.4752814 L23.5032633,52.2288821 L23.5437513,52.4313982 L23.6247272,52.5326562 L23.7259471,52.5529078 L23.9486309,52.492153 L24.1713147,52.3098886 L24.3535105,52.0263661 L24.4142425,51.7023405 L24.3737545,40.8069785 L24.3332666,40.6044625 L24.2522906,40.5234561 L24.1105828,40.4829529 L23.786679,40.6449657 L23.5842392,40.8879849 Z M15.3044505,48.6038453 L15.2032306,48.8671162 L15.1627426,49.2923998 L15.1829866,54.6995776 L15.3044505,55.0033517 L15.6283542,54.9628484 L15.871282,54.780584 L16.0332339,54.4970616 L16.0939658,54.173036 L16.0737218,48.5430905 L16.0332339,48.3405745 L15.9522579,48.2393165 L15.8105501,48.2190649 L15.4866464,48.3810777 L15.3044505,48.6038453 Z M17.3895807,47.4697556 L17.2883608,47.7127749 L17.2478728,48.1178069 L17.2681168,53.1807075 L17.3086047,53.3832235 L17.5110446,53.5249847 L17.7337284,53.4642299 L17.9564122,53.2617139 L18.118364,52.998443 L18.19934,52.6541658 L18.179096,47.3887492 L18.138608,47.2064848 L18.0373881,47.1052268 L17.9159242,47.0647236 L17.5920205,47.246988 L17.3895807,47.4697556 Z M21.519353,44.8775505 L21.4181331,45.0800666 L21.3776452,45.4850986 L21.3978891,51.5605793 L21.4383771,51.7630953 L21.6408169,51.8846049 L21.8432568,51.8238501 L22.0861845,51.6415857 L22.2481364,51.3783149 L22.3088683,51.0340376 L22.2886244,44.7965441 L22.2481364,44.5940281 L22.1469165,44.4927701 L22.0052086,44.4725185 L21.6813049,44.6547829 L21.519353,44.8775505 Z M13.1990764,49.8999479 L13.0978565,50.1429671 L13.0776125,50.5277476 L13.0978565,55.6108997 L13.2193204,55.8944222 L13.5432241,55.8741705 L13.7659079,55.6919061 L13.9481037,55.4083837 L14.0088357,55.0641065 L13.9885917,49.8189415 L13.9481037,49.6164255 L13.8671278,49.5151674 L13.7254199,49.4949158 L13.4015162,49.6569287 L13.1990764,49.8999479 Z",fill:"#FFF",transform:"translate(2 33.6838)"},null),t.createVNode("g",null,[t.createVNode("path",{fill:"#F5F7FA",d:"M29.510665 101.420326L29.5407779 114.910916 29.6311167 115.603513 29.8720201 116.055207 30.1731493 116.326223 36.2559598 119.849435 35.9548306 119.578419 35.7440402 119.126725 35.6235885 118.464241 35.5934755 104.973651z",transform:"matrix(-1 0 0 1 163.315 22)"},null),t.createVNode("path",{d:"M10.8707654,116.717691 L2.28858218,111.749059 L1.68632371,111.297365 L1.17440402,110.72522 L0.722710163,110.002509 L0.421580928,109.18946 L0.240903388,108.225847 L0.150564617,107.111669 L8.7327478,112.080301 L8.82308657,113.224592 L9.00376412,114.158093 L9.33500627,114.971142 L9.7565872,115.723965 L10.2685069,116.29611 L10.8707654,116.717691 Z M8.7327478,112.080301 L0.150564617,107.111669 L0,51.8544542 L8.58218319,56.8230866 L8.7327478,112.080301 Z",fill:"#DDE1EB",transform:"matrix(-1 0 0 1 163.315 22)"},null),t.createVNode("path",{fill:"#F5F7FA",d:"M87.327478 5.45043915L86.6348808 5.14930991 85.8820577 4.96863237 85.0087829 4.96863237 84.1355082 5.11919699 83.2020075 5.45043915 82.1480552 5.96235885 15.8695107 44.2659975 7.25721455 39.2973651 73.565872 0.993726474 74.6198243 0.481806775 75.553325 0.150564617 76.4265997 0 77.2697616 0 78.0225847 0.180677541 78.7151819 0.481806775z",transform:"matrix(-1 0 0 1 163.315 22)"},null),t.createVNode("path",{fill:"#DDE1EB",d:"M8.58218319 56.8230866L0 51.8544542 0.240903388 49.5056462 0.572145546 48.2710163 1.50564617 45.8920954 2.10790464 44.7176913 2.83061481 43.5734003 4.42659975 41.5558344 5.32998745 40.6825596 7.25721455 39.2672522 15.8393977 44.2659975 13.9422836 45.651192 13.0087829 46.5545797 11.412798 48.5721455 10.7202008 49.6863237 10.0878294 50.8607277 9.15432873 53.2396487 8.64240903 55.6787955z",transform:"matrix(-1 0 0 1 163.315 22)"},null),t.createVNode("path",{fill:"#E9ECF2",d:"M82.1480552 5.96235885L83.2321205 5.45043915 84.195734 5.11919699 85.0690088 4.96863237 85.8519448 4.99874529 86.6348808 5.14930991 87.327478 5.45043915 87.9297365 5.902133 88.4416562 6.50439147 88.8632371 7.19698871 89.1643664 8.01003764 89.3450439 8.97365119 89.4353827 10.1480552 89.5859473 65.4052698 89.3450439 67.7239649 88.6223338 70.1631117 87.5081556 72.5119197 86.0627353 74.6800502 84.2860728 76.5470514 83.3525721 77.2998745 82.3588457 77.9623588 56.3412798 92.9887077 39.0263488 118.55458 38.0025094 119.578419 37.5207026 119.849435 37.0087829 120 36.587202 119.969887 36.195734 119.819322 35.9247177 119.548306 35.7139272 119.096612 35.6235885 118.464241 35.5934755 104.973651 16.0501882 116.235885 14.9962359 116.777917 14.0326223 117.079046 13.1894605 117.229611 12.3764115 117.199498 11.5934755 117.048934 10.9008783 116.747804 10.2986198 116.29611 9.7565872 115.693852 9.33500627 115.031368 9.03387704 114.218319 8.82308657 113.254705 8.7327478 112.080301 8.58218319 56.8230866 8.82308657 54.5043915 9.57590966 52.0351317 10.7202008 49.6863237 12.195734 47.5181932 13.9422836 45.651192 15.8393977 44.2659975z",transform:"matrix(-1 0 0 1 163.315 22)"},null),t.createVNode("path",{d:"M72.3613551,40.1706399 L72.2107905,40.4416562 L72.1806775,41.0138018 L72.2107905,55.2572146 L72.2710163,55.5583438 L72.5420326,55.7390213 L72.8732748,55.6486826 L73.2045169,55.3776662 L73.4454203,54.9861982 L73.565872,54.4742785 L73.5056462,40.0803011 L73.4454203,39.749059 L73.2948557,39.6286073 L73.0840652,39.5984944 L72.6022585,39.8695107 L72.3613551,40.1706399 Z M69.229611,40.7427854 L69.1091593,41.0439147 L69.0489335,41.6461731 L69.0790464,57.846926 L69.1392723,58.1480552 L69.4404015,58.3287327 L69.7415307,58.238394 L70.1028858,57.9372647 L70.3437892,57.5457967 L70.4642409,57.06399 L70.4040151,40.6223338 L70.3437892,40.3513174 L70.1932246,40.2007528 L69.9824341,40.140527 L69.5006274,40.3814304 L69.229611,40.7427854 Z M53.6311167,32.3111669 L53.510665,32.4617315 L53.4504391,33.0037641 L53.4203262,34.629862 L53.5708908,84.8281054 L53.7515684,85.2797992 L54.2333752,85.2195734 L54.5947302,84.9184442 L54.8356336,84.5269762 L54.9259724,84.0451694 L54.7754078,32.1907152 L54.7151819,31.8895859 L54.5646173,31.7390213 L54.3839398,31.7089084 L53.8720201,31.9799247 L53.6311167,32.3111669 Z M78.4742785,38.9962359 L78.3237139,39.357591 L78.293601,39.9899624 L78.3237139,48.9335006 L78.3839398,49.2346299 L78.685069,49.4153074 L78.9861982,49.3249686 L79.3174404,49.0539523 L79.5884567,48.6323714 L79.6787955,48.1505646 L79.6486826,38.8757842 L79.5884567,38.574655 L79.468005,38.4240903 L79.2572146,38.3939774 L78.7754078,38.6348808 L78.4742785,38.9962359 Z M59.7139272,44.6875784 L59.7741531,65.7967378 L59.9548306,66.2484316 L60.4366374,66.1882058 L60.7678795,65.9171895 L61.0087829,65.5257215 L61.1292346,65.0138018 L61.0690088,43.9046424 L60.8883312,43.4529486 L60.4065245,43.5131744 L60.0451694,43.7841907 L59.804266,44.1756587 L59.7139272,44.6875784 Z M56.7929737,49.3851945 L56.642409,49.6863237 L56.5821832,50.2584693 L56.642409,64.140527 L56.7026349,64.4416562 L57.0037641,64.6223338 L57.3048934,64.531995 L57.6361355,64.2308657 L57.9071518,63.8393977 L57.9974906,63.357591 L57.9673777,49.2647428 L57.9071518,48.9636136 L57.7565872,48.8431619 L57.5457967,48.8130489 L57.033877,49.0840652 L56.7929737,49.3851945 Z M44.3864492,36.9485571 L44.2659975,37.1292346 L44.2057716,37.6712673 L44.1756587,39.2973651 L44.3563363,89.4956085 L44.4165621,89.7967378 L44.6875784,89.9774153 L44.9887077,89.8870765 L45.3500627,89.5859473 L45.5909661,89.1944793 L45.6813049,88.7126725 L45.5608532,36.8582183 L45.4705144,36.5269762 L45.3500627,36.4065245 L45.1392723,36.3764115 L44.6273526,36.6474279 L44.3864492,36.9485571 Z M65.9473024,44.5671267 L65.9774153,58.9611041 L66.1580928,59.412798 L66.6398996,59.3525721 L66.9711418,59.0815558 L67.2421581,58.6900878 L67.3324969,58.1781681 L67.3023839,43.7841907 L67.1217064,43.3324969 L66.6398996,43.3626098 L66.2785445,43.663739 L66.0376412,44.055207 L65.9473024,44.5671267 Z M50.5897114,28.2158093 L50.4391468,28.7879548 L50.4090339,32.9736512 L50.5897114,92.2659975 L50.6499373,92.5671267 L50.9510665,92.7478043 L51.2521957,92.6574655 L51.5834379,92.3864492 L51.8243413,91.9648683 L51.944793,91.4830615 L51.7641154,28.1254705 L51.7038896,27.7942284 L51.553325,27.6737767 L51.3425345,27.6436637 L50.8306148,27.9146801 L50.5897114,28.2158093 Z M75.3726474,39.6587202 L75.2220828,40.0200753 L75.161857,40.7728984 L75.1919699,52.1856964 L75.2521957,52.4868256 L75.553325,52.6675031 L75.8845671,52.5771644 L76.2158093,52.3061481 L76.4567127,51.9146801 L76.5771644,51.4027604 L76.5470514,39.5382685 L76.4567127,39.2371393 L76.336261,39.1166876 L76.1254705,39.0865747 L75.6135508,39.357591 L75.3726474,39.6587202 Z M62.9962359,40.6524467 L62.8757842,40.923463 L62.8155583,41.4052698 L62.7854454,42.6700125 L62.8757842,64.8933501 L62.93601,65.1944793 L63.0865747,65.3450439 L63.2672522,65.3751568 L63.5382685,65.2848181 L64.0200753,64.7728984 L64.2308657,64.1104141 L64.1706399,40.531995 L64.1104141,40.2308657 L63.9598494,40.1104141 L63.749059,40.0501882 L63.2672522,40.2910916 L62.9962359,40.6524467 Z M47.4880803,37.9422836 L47.3977415,38.153074 L47.3375157,38.6649937 L47.3074028,40.1706399 L47.4579674,86.3337516 L47.5181932,86.6348808 L47.6386449,86.7854454 L47.8494354,86.8155583 L48.391468,86.5144291 L48.7528231,85.9121706 L48.8130489,85.5508156 L48.6624843,37.8218319 L48.6022585,37.5508156 L48.4818068,37.4002509 L48.2710163,37.370138 L47.7892095,37.6110414 L47.4880803,37.9422836 Z M84.7076537,38.3036386 L84.5570891,38.7252196 L84.5269762,39.327478 L84.5269762,42.4291092 L84.587202,42.7302384 L84.8883312,42.9109159 L85.1894605,42.8205772 L85.5508156,42.5495609 L85.7917189,42.1580928 L85.9121706,41.6461731 L85.8820577,38.183187 L85.8218319,37.8820577 L85.6712673,37.7314931 L85.4604768,37.7013802 L85.0087829,37.9422836 L84.7076537,38.3036386 Z M81.6060226,39.4178168 L81.455458,39.8695107 L81.3952321,40.7126725 L81.425345,46.1329987 L81.6060226,46.5846926 L82.0878294,46.5244668 L82.4491844,46.2534504 L82.6900878,45.8318695 L82.7804266,45.3500627 L82.7804266,39.327478 L82.6900878,38.9962359 L82.5395232,38.8456713 L82.3287327,38.8155583 L81.846926,39.1166876 L81.6060226,39.4178168 Z M38.2132999,53.510665 L38.0928482,53.7515684 L38.0025094,54.2634881 L38.0025094,55.6787955 L38.0928482,81.455458 L38.2735257,81.9071518 L38.7553325,81.846926 L39.0865747,81.5759097 L39.327478,81.1844417 L39.4479297,80.672522 L39.357591,53.3902133 L39.2973651,53.119197 L39.1769134,52.9686324 L38.966123,52.9084065 L38.4843162,53.1493099 L38.2132999,53.510665 Z M41.2848181,41.5558344 L41.1643664,41.7365119 L41.1041405,42.2785445 L41.0740276,43.7841907 L41.2245922,89.9473024 L41.2848181,90.2484316 L41.5859473,90.4291092 L41.8870765,90.3387704 L42.2183187,90.0677541 L42.489335,89.6461731 L42.5796738,89.1643664 L42.4592221,41.4353827 L42.3688833,41.1342535 L42.2484316,40.9836888 L42.0376412,40.9535759 L41.5558344,41.1944793 L41.2848181,41.5558344 Z M28.9084065,69.9523212 L28.727729,70.4040151 L28.6976161,71.217064 L28.6976161,76.6675031 L28.8782936,77.119197 L29.3902133,77.0589711 L29.7214555,76.7879548 L29.9623588,76.3964868 L30.0828105,75.8845671 L30.0526976,69.8619824 L29.9924718,69.5608532 L29.8419072,69.4102886 L29.6311167,69.3801757 L29.1493099,69.651192 L28.9084065,69.9523212 Z M16.5621079,78.685069 L16.3814304,79.076537 L16.3513174,79.6486826 L16.4115433,83.1116688 L16.7126725,83.2923463 L17.0138018,83.2020075 L17.3751568,82.9309912 L17.6160602,82.5094103 L17.706399,82.0276035 L17.706399,78.5646173 L17.6461731,78.2634881 L17.4956085,78.1129235 L17.0740276,78.1430364 L16.5621079,78.685069 Z M35.0815558,60.7979925 L34.9611041,61.0991217 L34.9008783,61.6712673 L34.9611041,77.6612296 L35.02133,77.9623588 L35.1417817,78.1129235 L35.2923463,78.1430364 L35.6235885,78.0526976 L35.9548306,77.7816813 L36.2258469,77.3601004 L36.3161857,76.8782936 L36.2559598,60.6775408 L36.195734,60.3764115 L36.0752823,60.2559598 L35.8644918,60.195734 L35.3826851,60.4366374 L35.0815558,60.7979925 Z M22.7653701,72.2710163 L22.6148055,72.6624843 L22.5545797,73.2948557 L22.5846926,81.3350063 L22.7653701,81.7867001 L23.2471769,81.7264743 L23.608532,81.455458 L23.8494354,81.033877 L23.9397742,80.5520703 L23.9096612,72.1806775 L23.8494354,71.8795483 L23.7289837,71.7289837 L23.5181932,71.6988708 L23.0363864,71.9397742 L22.7653701,72.2710163 Z M25.8670013,70.5846926 L25.7164366,70.9460477 L25.6562108,71.5483061 L25.6863237,79.076537 L25.7465496,79.3776662 L26.0476788,79.5884567 L26.378921,79.4981179 L26.7101631,79.1969887 L26.9510665,78.8055207 L27.0715182,78.293601 L27.0414053,70.4642409 L26.9811794,70.1932246 L26.8306148,70.04266 L26.6499373,69.9824341 L26.1681305,70.2534504 L25.8670013,70.5846926 Z M32.0100376,66.7302384 L31.859473,67.0313676 L31.7992472,67.6336261 L31.8293601,76.6675031 L31.8895859,76.9686324 L32.1907152,77.1493099 L32.4918444,77.0589711 L32.8531995,76.7879548 L33.0941029,76.3964868 L33.1844417,75.8845671 L33.1543287,66.6097867 L33.0941029,66.3086575 L32.9435383,66.1580928 L32.7327478,66.1279799 L32.250941,66.3989962 L32.0100376,66.7302384 Z M19.6336261,74.1982434 L19.4830615,74.5595985 L19.4529486,75.131744 L19.4830615,82.6900878 L19.663739,83.1116688 L20.1455458,83.0815558 L20.476788,82.8105395 L20.7478043,82.3889586 L20.838143,81.8770389 L20.8080301,74.0777917 L20.7478043,73.7766625 L20.6273526,73.6260979 L20.4165621,73.5959849 L19.9347553,73.8368883 L19.6336261,74.1982434 Z",fill:"#FFF",transform:"matrix(-1 0 0 1 163.315 22)"},null)])])])]),t.createVNode("div",{class:pv("tips")},[r.value?" ":"按住说话"]),t.createVNode("div",{class:pv("footer")},[e.value&&t.createVNode("div",{class:pv("clear"),onClick:d},[t.createTextVNode("清空")]),t.createVNode("div",{onContextmenu:p,class:[pv("btn"),r.value?pv("btn","active"):""],onTouchstart:h,onTouchend:m,onTouchcancel:m},[t.createVNode(st,{name:"microphone",size:"32"},null)]),e.value&&t.createVNode("div",{class:pv("confirm"),onClick:f},[t.createTextVNode("确定")])])])]);return()=>t.createVNode(At,{show:a.value,"onUpdate:show":[e=>a.value=e,c],round:!0,position:"bottom",closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay},{default:w})}})),[vv,gv]=Oe("steps"),wv={active:V(0),direction:k("horizontal"),activeColor:String,activeBgColor:String,activeBorderColor:String,titleActiveColor:String,inactiveColor:String,inactiveBgColor:String,inactiveBorderColor:String,titleInactiveColor:String},yv=Symbol(vv);var bv=t.defineComponent({name:vv,props:wv,emits:["clickStep"],setup(e,{emit:n,slots:o}){const{linkChildren:a}=z(yv);return a({props:e,onClickStep:e=>n("clickStep",e)}),()=>{var n;return t.createVNode("div",{class:gv([e.direction])},[t.createVNode("div",{class:gv("items")},[null==(n=o.default)?void 0:n.call(o)])])}}});const[xv,Cv]=Oe("step"),Lv={iconPrefix:String,activeIcon:String,inactiveIcon:String};const Nv=Re(t.defineComponent({name:xv,props:Lv,setup(e,{slots:n}){const{parent:o,index:a}=E(yv);if(!o)return;const r=o.props,i=()=>{const e=+r.active;return a.value===e?"process":"waiting"},l=()=>"process"===i(),s=t.computed((()=>l()?{color:r.titleActiveColor||""}:{color:r.titleInactiveColor||""})),c=()=>o.onClickStep(a.value),u=()=>{const{activeColor:e,activeBgColor:t,activeBorderColor:n,inactiveBgColor:o,inactiveBorderColor:a,inactiveColor:i}=r,s={};return l()?(s.background=`${t||"var(--zt-primary-color-a2)"}`,n&&(s.border=`1px solid ${n}`),s.fontWeight="bold",s.color=`${e||"var(--zt-primary-color)"}`):(s.background=`${o||""}`,a&&(s.border=`1px solid ${a}`),s.fontWeight="normal",s.color=`${i||"#FFFFFF"}`),s},d=()=>{const{activeColor:o,inactiveColor:i}=r,{iconPrefix:s,activeIcon:c,inactiveIcon:d}=e;return l()&&(c||n["active-icon"])?n["active-icon"]?n["active-icon"]():t.createVNode("div",{class:Cv("circle"),style:u()},[t.createVNode(lt,{class:Cv("icon","active"),name:c,color:o,classPrefix:s},null)]):d||n["inactive-icon"]?n["inactive-icon"]?n["inactive-icon"]():t.createVNode("div",{class:Cv("circle"),style:u()},[t.createVNode(lt,{class:Cv("icon"),name:d,color:i,classPrefix:s},null)]):t.createVNode("div",{class:Cv("circle"),style:u()},[a.value+1])};return()=>{var e;const o=i();return t.createVNode("div",{class:[Pe,Cv([r.direction,{[o]:o}])]},[t.createVNode("div",{class:Cv("title",{active:l()}),style:s.value,onClick:c},[null==(e=n.default)?void 0:e.call(n)]),t.createVNode("div",{class:Cv("circle-container"),onClick:c},[d()]),t.createVNode("div",{class:Cv("line")},null)])}}})),[Vv,kv]=Oe("stepper"),Sv=(e,t)=>String(e)===String(t),Av={min:V(1),max:V(1/0),name:V(""),step:V(1),theme:String,integer:Boolean,disabled:Boolean,showPlus:x,showMinus:x,showInput:x,longPress:x,allowEmpty:Boolean,modelValue:b,inputWidth:b,buttonSize:b,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,beforeChange:Function,defaultValue:V(1),decimalLength:b};const Tv=Re(t.defineComponent({name:Vv,props:Av,emits:["plus","blur","minus","focus","change","overlimit","update:modelValue"],setup(e,{emit:n}){const o=t=>{const{min:n,max:o,allowEmpty:r,decimalLength:i}=e;return r&&""===t||(t=""===(t=we(String(t),!e.integer))?0:+t,t=Number.isNaN(t)?+n:t,t=Math.max(Math.min(+o,t),+n),a(i)&&(t=t.toFixed(+i))),t};let r;const i=t.ref(),l=t.ref((()=>{var t;const a=null!=(t=e.modelValue)?t:e.defaultValue,r=o(a);return Sv(r,e.modelValue)||n("update:modelValue",r),r})()),s=t.computed((()=>e.disabled||e.disableMinus||+l.value<=+e.min)),c=t.computed((()=>e.disabled||e.disablePlus||+l.value>=+e.max)),u=t.computed((()=>({width:le(e.inputWidth),height:le(e.buttonSize)}))),d=t.computed((()=>se(e.buttonSize))),f=t=>{e.beforeChange?_e(e.beforeChange,{args:[t],done(){l.value=t}}):l.value=t},p=()=>{if("plus"===r&&c.value||"minus"===r&&s.value)return void n("overlimit",r);const t="minus"===r?-e.step:+e.step,a=o(ye(+l.value,t));f(a),n(r)},h=t=>{const n=t.target,{value:o}=n,{decimalLength:r}=e;let i=we(String(o),!e.integer);if(a(r)&&i.includes(".")){const e=i.split(".");i=`${e[0]}.${e[1].slice(0,+r)}`}e.beforeChange?n.value=String(l.value):Sv(o,i)||(n.value=i);const s=i===String(+i);f(s?+i:i)},m=t=>{var o;e.disableInput?null==(o=i.value)||o.blur():n("focus",t)},v=e=>{const a=e.target,r=o(a.value);a.value=String(r),l.value=r,t.nextTick((()=>{n("blur",e),ee()}))};let g,w;const y=()=>{w=setTimeout((()=>{p(),y()}),200)},b=t=>{e.longPress&&(clearTimeout(w),g&&ne(t))},x=t=>{e.disableInput&&ne(t)},C=t=>({onClick:e=>{ne(e),r=t,p()},onTouchstart:()=>{r=t,e.longPress&&(g=!1,clearTimeout(w),w=setTimeout((()=>{g=!0,p(),y()}),500))},onTouchend:b,onTouchcancel:b});return t.watch((()=>[e.max,e.min,e.integer,e.decimalLength]),(()=>{const e=o(l.value);Sv(e,l.value)||(l.value=e)})),t.watch((()=>e.modelValue),(e=>{Sv(e,l.value)||(l.value=o(e))})),t.watch(l,(t=>{n("update:modelValue",t),n("change",t,{name:e.name})})),Y((()=>e.modelValue)),()=>t.createVNode("div",{role:"group",class:kv([e.theme])},[t.withDirectives(t.createVNode("div",t.mergeProps({style:d.value,class:[kv("minus",{disabled:s.value}),{[kv("could-click")]:!s.value}],"aria-disabled":s.value||void 0},C("minus")),[t.createVNode(st,{name:"minus",size:(null==e?void 0:e.buttonSize)?e.buttonSize:"32"},null)]),[[t.vShow,e.showMinus]]),t.withDirectives(t.createVNode("input",{ref:i,type:e.integer?"tel":"text",role:"spinbutton",class:kv("input"),value:l.value,style:u.value,disabled:e.disabled,readonly:e.disableInput,inputmode:e.integer?"numeric":"decimal",placeholder:e.placeholder,"aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":l.value,onBlur:v,onInput:h,onFocus:m,onMousedown:x},null),[[t.vShow,e.showInput]]),t.withDirectives(t.createVNode("div",t.mergeProps({style:d.value,class:[kv("plus",{disabled:c.value}),{[kv("could-click")]:!c.value}],"aria-disabled":c.value||void 0},C("plus")),[t.createVNode(st,{name:"plus",size:(null==e?void 0:e.buttonSize)?e.buttonSize:"32"},null)]),[[t.vShow,e.showPlus]])])}})),Ov=Re(bv),[Pv,Mv]=Oe("swipe-cell"),Bv={name:V(""),disabled:Boolean,leftWidth:b,rightWidth:b,beforeClose:Function,stopPropagation:Boolean};const Iv=Re(t.defineComponent({name:Pv,props:Bv,emits:["open","close","click"],setup(e,{emit:n,slots:o}){let r,i,l,s;const c=t.ref(),u=t.ref(),d=t.ref(),f=t.reactive({offset:0,dragging:!1}),p=ft(),h=e=>e.value?I(e).width:0,m=t.computed((()=>a(e.leftWidth)?+e.leftWidth:h(u))),v=t.computed((()=>a(e.rightWidth)?+e.rightWidth:h(d))),g=t=>{f.offset="left"===t?m.value:-v.value,r||(r=!0,n("open",{name:e.name,position:t}))},w=t=>{f.offset=0,r&&(r=!1,n("close",{name:e.name,position:t}))},y=t=>{e.disabled||(l=f.offset,p.start(t))},b=()=>{f.dragging&&(f.dragging=!1,(e=>{const t=Math.abs(f.offset),n=r?.85:.15,o="left"===e?m.value:v.value;o&&t>o*n?g(e):w(e)})(f.offset>0?"left":"right"),setTimeout((()=>{i=!1}),0))},x=(t="outside")=>{s||(n("click",t),r&&!i&&(s=!0,_e(e.beforeClose,{args:[{name:e.name,position:t}],done:()=>{s=!1,w(t)},canceled:()=>s=!1,error:()=>s=!1})))},C=(e,t)=>n=>{t&&n.stopPropagation(),x(e)},L=(e,n)=>{const a=o[e];if(a)return t.createVNode("div",{ref:n,class:Mv(e),onClick:C(e,!0)},[a()])};return dt({open:g,close:w}),_(c,(()=>x("outside")),{eventName:"touchstart"}),j("touchmove",(t=>{if(e.disabled)return;const{deltaX:n}=p;if(p.move(t),p.isHorizontal()){i=!0,f.dragging=!0;(!r||n.value*l<0)&&ne(t,e.stopPropagation),f.offset=ve(n.value+l,-v.value,m.value)}}),{target:c}),()=>{var e;const n={transform:`translate3d(${f.offset}px, 0, 0)`,transitionDuration:f.dragging?"0s":".6s"};return t.createVNode("div",{ref:c,class:Mv(),onClick:C("cell",i),onTouchstartPassive:y,onTouchend:b,onTouchcancel:b},[t.createVNode("div",{class:Mv("wrapper"),style:n},[L("left",u),null==(e=o.default)?void 0:e.call(o),L("right",d)])])}}})),[Ev,Dv]=Oe("switch"),zv={size:b,loading:Boolean,disabled:Boolean,modelValue:y,activeColor:String,inactiveColor:String,activeValue:{type:y,default:!0},inactiveValue:{type:y,default:!1}};const Fv=Re(t.defineComponent({name:Ev,props:zv,emits:["change","update:modelValue"],setup(e,{emit:n,slots:o}){const a=()=>e.modelValue===e.activeValue,r=()=>{if(!e.disabled&&!e.loading){const t=a()?e.inactiveValue:e.activeValue;n("update:modelValue",t),n("change",t)}},i=()=>{if(e.loading){const n=a()?e.activeColor:e.inactiveColor;return t.createVNode(It,{class:Dv("loading"),color:n},null)}if(o.node)return o.node()};return Y((()=>e.modelValue)),()=>{var n;const{size:l,loading:s,disabled:c,activeColor:u,inactiveColor:d}=e,f=a(),p={fontSize:le(l),backgroundColor:f?u:d};return t.createVNode("div",{role:"switch",class:Dv({on:f,loading:s,disabled:c}),style:p,tabindex:c?void 0:0,"aria-checked":f,onClick:r},[t.createVNode("div",{class:Dv("node")},[i()]),null==(n=o.background)?void 0:n.call(o)])}}}));var jv=Fv;const[_v,Rv]=Oe("tabbar"),Hv={route:Boolean,fixed:x,border:x,zIndex:b,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:V(0),safeAreaInsetBottom:{type:Boolean,default:null}},Uv=Symbol(_v);const $v=Re(t.defineComponent({name:_v,props:Hv,emits:["change","update:modelValue"],setup(e,{emit:n,slots:o}){const a=t.ref(),{linkChildren:r}=z(Uv),i=Sf(a,Rv),l=()=>{var t;return null!=(t=e.safeAreaInsetBottom)?t:e.fixed},s=()=>{var n;const{fixed:r,zIndex:i,border:s}=e;return t.createVNode("div",{ref:a,role:"tablist",style:ce(i),class:[Rv({fixed:r}),{[Me]:s,"zt-safe-area-bottom":l()}]},[null==(n=o.default)?void 0:n.call(o)])};return r({props:e,setActive:(t,o)=>{_e(e.beforeChange,{args:[t],done(){n("update:modelValue",t),n("change",t),o()}})}}),()=>e.fixed&&e.placeholder?i(s):s()}})),[Zv,Wv]=Oe("tabbar-item"),Yv=p({},sn,{dot:Boolean,icon:String,name:b,badge:b,badgeProps:Object,iconPrefix:String});const qv=Re(t.defineComponent({name:Zv,props:Yv,emits:["click"],setup(e,{emit:n,slots:o}){const a=un(),r=t.getCurrentInstance().proxy,{parent:l,index:s}=E(Uv);if(!l)return;const c=t.computed((()=>{var t;const{route:n,modelValue:o}=l.props;if(n&&"$route"in r){const{$route:t}=r,{to:n}=e,o=i(n)?n:{path:n};return!!t.matched.find((e=>{const t="path"in o&&o.path===e.path,n="name"in o&&o.name===e.name;return t||n}))}return(null!=(t=e.name)?t:s.value)===o})),u=t=>{var o;c.value||l.setActive(null!=(o=e.name)?o:s.value,a),n("click",t)},d=()=>o.icon?o.icon({active:c.value}):e.icon?t.createVNode(lt,{name:e.icon,classPrefix:e.iconPrefix},null):void 0;return()=>{var n;const{dot:a,badge:r}=e,{activeColor:i,inactiveColor:s}=l.props,f=c.value?i:s;return t.createVNode("div",{role:"tab",class:Wv({active:c.value}),style:{color:f},tabindex:0,"aria-selected":c.value,onClick:u},[t.createVNode(We,t.mergeProps({dot:a,class:Wv("icon",{active:c.value}),content:r},e.badgeProps),{default:d}),t.createVNode("div",{class:Wv("text")},[null==(n=o.default)?void 0:n.call(o,{active:c.value})])])}}}));var Gv=(e=>(e.ASCEND="ascend",e.DESCEND="descend",e))(Gv||{});const[Xv,Kv]=Oe("text-ellipsis"),Qv={rows:V(1),dots:k("..."),content:k(""),expandText:k(""),expandType:k("flat"),collapseText:k(""),position:k("end")};const Jv=Re(t.defineComponent({name:Xv,props:Qv,emits:["clickAction"],setup(e,{emit:n}){const o=t.ref(""),a=t.ref(!1),r=t.ref(!1),i=t.ref(),l=t.computed((()=>a.value?e.collapseText:e.expandText)),s=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0},c=()=>{const t=(()=>{if(!i.value)return;const t=window.getComputedStyle(i.value),n=document.createElement("div");return Array.prototype.slice.apply(t).forEach((e=>{n.style.setProperty(e,t.getPropertyValue(e))})),n.style.position="fixed",n.style.zIndex="-9999",n.style.top="-9999px",n.style.height="auto",n.style.minHeight="auto",n.style.maxHeight="auto",n.innerText=e.content,document.body.appendChild(n),n})();if(!t)return;const{paddingBottom:n,paddingTop:a,lineHeight:c}=t.style,u=Math.ceil((Number(e.rows)+.5)*s(c)+s(a)+s(n));u<t.offsetHeight?(r.value=!0,o.value=((t,n)=>{const{content:o,position:a,dots:r}=e,i=o.length,s=(a,l)=>{if(a[1]-a[0]<=1&&l[1]-l[0]<=1)return o.slice(0,a[0])+r+o.slice(l[1],i);const c=Math.floor((a[0]+a[1])/2),u=Math.ceil((l[0]+l[1])/2);return t.innerText=e.content.slice(0,c)+e.dots+e.content.slice(u,i)+e.expandText,t.offsetHeight>=n?s([a[0],c],[u,l[1]]):s([c,a[1]],[l[0],u])},c=0+i>>1;return"middle"===e.position?t.innerText=s([0,c],[c,i]):(()=>{const e=(s,c)=>{if(c-s<=1)return"end"===a?o.slice(0,s)+r:r+o.slice(c,i);const u=Math.round((s+c)/2);return t.innerText="end"===a?o.slice(0,u)+r+l.value:r+o.slice(u,i)+l.value,t.offsetHeight>n?"end"===a?e(s,u):e(u,c):"end"===a?e(u,c):e(s,u)};t.innerText=e(0,i)})(),t.innerText})(t,u)):(r.value=!1,o.value=e.content),document.body.removeChild(t)},u=e=>{e.stopPropagation(),e.preventDefault(),a.value=!a.value,n("clickAction",e)},d=()=>{"dialog"===e.expandType&&r.value&&Xr({message:e.content}).then((()=>{}))};return t.onMounted(c),t.watch((()=>[e.content,e.rows,e.position]),c),j("resize",c),()=>t.createVNode("div",{ref:i,class:Kv(),onClick:d},[a.value?e.content:o.value,"dialog"!==e.expandType&&r.value?t.createVNode("span",{class:Kv("action"),onClick:u},[l.value]):null])}}));var eg=Jv;const[tg,ng]=Oe("table"),og="bodyCell",ag={headList:L(),dataList:L(),striped:x,emptyValue:k("-"),loading:{type:Boolean,default:!1},skeletonRow:{type:Number,default:6},border:{type:Boolean,default:!1},hideTableHead:{type:Boolean,default:!1}};const rg=Re(t.defineComponent({name:tg,props:ag,emits:["sort"],setup(e,{emit:n,slots:o}){const a=t.ref(""),r=t.ref(""),i=t.ref(),l=t.computed((()=>e.headList.filter((e=>e.fixed||e.fixedRight)))),s=t.computed((()=>{const t=[];let n=0;return e.headList.forEach(((o,a)=>{var r;const i=Object.assign({},o),l=e.headList[a-1],s=e.headList[a+1];l?(n+=Number(null==(r=l.width)?void 0:r.split("px")[0]),i.left=`${n}px`):i.left=0,o.fixed&&!(null==s?void 0:s.fixed)&&(i.lastFixLeft=!0),t.push(i)})),t})),c=t.ref(!1),u=t.ref(!1),d=t.computed((()=>l.value.concat(e.headList.filter((e=>!e.fixed)))));t.onMounted((()=>{i.value&&(u.value=i.value.scrollWidth>i.value.clientWidth);const t=e.headList.map(((e,t)=>(e.sorter&&e.defaultSortOrder&&(a.value=e.defaultSortOrder||"",r.value=e.key),e.fixed?`tableHead${t}`:""))).filter((e=>""!==e));t.length>0&&t.forEach(((e,t)=>{const n=document.getElementById(`fixedHead${t}`),o=document.getElementById(e);n&&o&&(n.style.width=o.offsetWidth+"px")}),0)}));const f=e=>{var t;e.sorter&&(a.value=(t=e.key===r.value?a.value:"")?t===Gv.ASCEND?Gv.DESCEND:"":Gv.ASCEND,r.value=e.key,n("sort",{order:a.value,key:e.key}))},p=e=>{const{scrollLeft:t,currentTarget:n}=e,o="number"==typeof t?t:null==n?void 0:n.scrollLeft;c.value=o>0;const a=n.scrollWidth-n.scrollLeft-n.clientWidth;u.value=a>0},h=(e,n,a)=>{if(e[n.key]&&e[n.key].id&&o[`data-${e[n.key].id}`])return o[`data-${e[n.key].id}`](e[n.key]);const r={column:n,record:e,text:e[n.key],index:a},i=o[og]&&o[og](r);return i&&i.length?i[0]:n.ellipsis?t.createVNode(eg,{content:e[n.key],expandType:"dialog"},null):e[n.key]},m=()=>{const e=[],n=d.value.length;for(let o=0;o<n;o++)e.push(t.createVNode("div",{class:ng("col")},[t.createVNode("div",{class:ng("col-item")},null)]));return e},v=()=>{const n=[];for(let o=0;o<e.skeletonRow;o++)n.push(t.createVNode("div",{class:ng("row",{head:0===o})},[m()]));return n};return()=>e.loading?t.createVNode("div",{class:ng({animate:!0,skeleton:!0})},[v()]):t.createVNode("div",{ref:i,class:ng({fixed:l.value.length>0,bordered:e.border,striped:e.striped}),onScroll:p},[t.createVNode("table",null,[t.createVNode("colgroup",null,[e.headList.map((e=>t.createVNode("col",{style:{width:e.width}},null)))]),t.withDirectives(t.createVNode("thead",{class:ng("thead")},[t.createVNode("tr",null,[s.value.map((e=>(e=>{const n=o[`head-${e.id}`],i=e.sorter?"flat":"dialog";if(0!==(null==e?void 0:e.colSpan))return t.createVNode("th",{class:[ng("left",{fixed:e.fixed,last:e.lastFixLeft&&c.value}),ng("right",{fixed:e.fixedRight,last:e.lastRight&&u.value})],style:{left:e.fixed?e.left:"",right:e.fixedRight?e.right:""},colspan:1!==(null==e?void 0:e.colSpan)?null==e?void 0:e.colSpan:null},[n?n(e):t.createVNode("div",{class:ng("head"),onClick:()=>f(e)},[e.ellipsis?t.createVNode(eg,{content:e.label,expandType:i,class:ng("head-label-ellipsis")},null):t.createVNode("span",{class:ng("head-label")},[e.label]),e.sorter?t.createVNode("span",{class:ng("head-sort")},[t.createVNode(lt,{class:[e.key===r.value&&a.value===Gv.ASCEND?ng("sort-active"):""],name:"spinner-shrink",size:"12",style:{marginBottom:"-3px"}},null),t.createVNode(lt,{class:[e.key===r.value&&a.value===Gv.DESCEND?ng("sort-active"):""],name:"spinner-expand",size:"12",style:{marginTop:"-3px"}},null)]):""])])})(e)))])]),[[t.vShow,!e.hideTableHead]]),t.createVNode("tbody",{class:ng("tbody")},[e.dataList.map(((e,n)=>((e,n)=>t.createVNode("tr",null,[s.value.map((o=>{let a;o.customCell&&(a=o.customCell(e,n));const r=Object.assign({},o.style);return r.left=o.fixed?o.left:"",r.right=o.fixedRight?o.right:"",0!==(null==a?void 0:a.rowSpan)&&0!==(null==a?void 0:a.colSpan)&&t.createVNode("td",{onClick:()=>o.click&&o.click(e,n),class:[ng("left",{fixed:o.fixed,last:o.lastFixLeft&&c.value}),ng("right",{fixed:o.fixedRight,last:o.lastRight&&u.value})],colspan:1!==(null==a?void 0:a.colSpan)?null==a?void 0:a.colSpan:null,rowspan:1!==(null==a?void 0:a.rowSpan)?null==a?void 0:a.rowSpan:null,style:r},[h(e,o,n)])}))]))(e,n)))])])])}})),[ig,lg]=Oe("timeline"),sg={title:k("办理经过"),defaultFold:{type:Boolean,default:!1},collapseCount:N(0),processes:L([]),opinionKey:k("处理意见"),enableSingleFold:x,dot:{type:Boolean,default:!1}};const cg=Re(t.defineComponent({name:ig,props:sg,setup(e,{slots:n}){const o=t.ref(e.defaultFold),a=o=>n.avatar?t.createVNode("div",{class:lg("avatar-box")},[n.avatar(o)]):e.dot?t.createVNode("div",{class:lg("dot")},null):t.createVNode("div",{class:lg("avatar-box")},[o.avatar?t.createVNode("img",{class:lg("avatar"),src:o.avatar,alt:""},null):t.createVNode("div",{class:lg("avatar")},[o.human.slice(-2)])]),r=e=>n.title?t.createVNode("div",{class:lg("title-box")},[n.title(e)]):t.createVNode("div",{class:lg("title-box")},[t.createVNode("span",{class:lg("title")},[`${e.department}[${e.human}]`]),t.createVNode("span",{class:lg("time")},[e.timestamp])]),i=o=>n.opinion?t.createVNode("div",{class:lg("opinion-box")},[n.opinion(o)]):t.createVNode("div",{class:lg("opinion-box")},[t.createVNode("div",{class:lg("opinion-label")},[e.opinionKey]),t.createVNode("div",{class:lg("opinion")},[o.opinion||"无"])]),l=e=>n.content?t.createVNode("div",{class:[lg("content-box"),Ie]},[n.content(e)]):t.createVNode("div",{class:[lg("content-box"),Ie]},[t.createTextVNode("在"),t.createVNode("span",null,[e.stage]),t.createTextVNode("阶段"),t.createVNode("span",{class:lg("text-bold")},[t.createTextVNode(" "),e.action,t.createTextVNode(" ")]),t.createTextVNode("到"),t.createVNode("span",null,[e.nextAction]),t.createVNode("span",null,[e.nextDepartment]),t.createVNode("span",{class:lg("text-bold")},[t.createTextVNode(" ["),e.nextHuman,t.createTextVNode("]")])]),s=(n,o)=>t.createVNode("div",{class:lg("item")+" "+(o?"last-item":""),onClick:function(){e.enableSingleFold&&(n.folded=!n.folded)}},[t.createVNode("div",{class:[lg("left-container"),e.dot?lg("dot-container"):""]},[a(n),t.createVNode("div",{class:lg(e.dot?"line-dot":"line")},null)]),t.createVNode("div",{class:lg("right-container")},[r(n),!n.folded&&t.createVNode("div",{class:lg("main-container")},[l(n),i(n)])])]),c=t.computed((()=>{const t=e.processes.map((e=>(e.folded=!1,e)));if(o.value){const n=t.slice(0,e.collapseCount);return n.map(((e,t)=>s(e,t===n.length-1)))}return t.map(((e,n)=>s(e,n===t.length-1)))}));return()=>{var a;return t.createVNode("div",{class:lg()},[n["top-bar"]?t.createVNode("div",{class:[lg("top-bar"),Ie]},[n["top-bar"]()]):t.createVNode("div",{class:[lg("top-bar"),Ie]},[t.createVNode("div",{class:lg("top-left")},[t.createVNode("div",{class:lg("bar")},null),t.createVNode("div",{class:lg("title")},[e.title])]),t.createVNode("div",{class:lg("top-right")},[t.createVNode("span",{class:lg("fold-text")},[t.createTextVNode("折叠"),e.title]),t.createVNode(jv,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e},null)])]),(null==(a=c.value)?void 0:a.length)>0&&t.createVNode("div",{class:lg("container")},[c.value])])}}})),[ug,dg,fg]=Oe("uploader");function pg(e,t){return new Promise((n=>{if("file"===t)return void n();const o=new FileReader;o.onload=e=>{n(e.target.result)},"dataUrl"===t?o.readAsDataURL(e):"text"===t&&o.readAsText(e)}))}function hg(e,t){return w(e).some((e=>!!e.file&&(r(t)?t(e.file):e.file.size>+t)))}const mg=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg|avif)/i;function vg(e){return!!e.isImage||(e.file&&e.file.type?0===e.file.type.indexOf("image"):e.url?(t=e.url,mg.test(t)):"string"==typeof e.content&&0===e.content.indexOf("data:image"));var t}var gg=t.defineComponent({props:{name:b,item:C(Object),index:Number,imageFit:String,lazyLoad:Boolean,deletable:Boolean,previewSize:[Number,String,Array],beforeDelete:Function},emits:["delete","preview"],setup(e,{emit:n,slots:o}){const r=()=>{const{status:n,message:o}=e.item;if("uploading"===n||"failed"===n){const e="failed"===n?t.createVNode(lt,{name:"close",class:dg("mask-icon")},null):t.createVNode(It,{class:dg("loading")},null),r=a(o)&&""!==o;return t.createVNode("div",{class:dg("mask")},[e,r&&t.createVNode("div",{class:dg("mask-message")},[o])])}},i=t=>{const{name:o,item:a,index:r,beforeDelete:i}=e;t.stopPropagation(),_e(i,{args:[a,{name:o,index:r}],done:()=>n("delete")})},l=()=>n("preview"),s=()=>{if(e.deletable&&"uploading"!==e.item.status){const e=o["preview-delete"];return t.createVNode("div",{role:"button",class:dg("preview-delete",{shadow:!e}),tabindex:0,"aria-label":fg("delete"),onClick:i},[e?e():t.createVNode(lt,{name:"cross",class:dg("preview-delete-icon")},null)])}},c=()=>{if(o["preview-cover"]){const{index:n,item:a}=e;return t.createVNode("div",{class:dg("preview-cover")},[o["preview-cover"](p({index:n},a))])}},u=()=>{const{item:n,lazyLoad:o,imageFit:a,previewSize:r}=e;return vg(n)?t.createVNode(tn,{fit:a,src:n.content||n.url,class:dg("preview-image"),width:Array.isArray(r)?r[0]:r,height:Array.isArray(r)?r[1]:r,lazyLoad:o,onClick:l},{default:c}):t.createVNode("div",{class:dg("file"),style:se(e.previewSize)},[t.createVNode(lt,{class:dg("file-icon"),name:"description"},null),t.createVNode("div",{class:[dg("file-name"),"zt-ellipsis"]},[n.file?n.file.name:n.url]),c()])};return()=>t.createVNode("div",{class:dg("preview")},[u(),r(),s()])}});const wg={name:V(""),accept:k("image/*"),capture:String,multiple:Boolean,disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,maxCount:V(1/0),imageFit:k("cover"),resultType:k("dataUrl"),uploadIcon:k("photograph"),uploadText:String,deletable:x,afterRead:Function,showUpload:x,modelValue:L(),beforeRead:Function,beforeDelete:Function,previewSize:[Number,String,Array],previewImage:x,previewOptions:Object,previewFullImage:x,maxSize:{type:[Number,String,Function],default:1/0}};const yg=Re(t.defineComponent({name:ug,props:wg,emits:["delete","oversize","clickUpload","closePreview","clickPreview","update:modelValue"],setup(e,{emit:n,slots:o}){const a=t.ref(),r=[],i=(t=e.modelValue.length)=>({name:e.name,index:t}),s=()=>{a.value&&(a.value.value="")},c=o=>{if(s(),hg(o,e.maxSize)){if(!Array.isArray(o))return void n("oversize",o,i());{const t=function(e,t){const n=[],o=[];return e.forEach((e=>{hg(e,t)?o.push(e):n.push(e)})),{valid:n,invalid:o}}(o,e.maxSize);if(o=t.valid,n("oversize",t.invalid,i()),!o.length)return}}o=t.reactive(o),n("update:modelValue",[...e.modelValue,...w(o)]),e.afterRead&&e.afterRead(o,i())},u=t=>{const{maxCount:n,modelValue:o,resultType:a}=e;if(Array.isArray(t)){const e=+n-o.length;t.length>e&&(t=t.slice(0,e)),Promise.all(t.map((e=>pg(e,a)))).then((e=>{const n=t.map(((t,n)=>{const o={file:t,status:"",message:""};return e[n]&&(o.content=e[n]),o}));c(n)}))}else pg(t,a).then((e=>{const n={file:t,status:"",message:""};e&&(n.content=e),c(n)}))},d=t=>{const{files:n}=t.target;if(e.disabled||!n||!n.length)return;const o=1===n.length?n[0]:[].slice.call(n);if(e.beforeRead){const t=e.beforeRead(o,i());if(!t)return void s();if(l(t))return void t.then((e=>{u(e||o)})).catch(s)}u(o)};let f;const h=()=>n("closePreview"),m=(a,l)=>{const s=["imageFit","deletable","previewSize","beforeDelete"],c=p(v(e,s),v(a,s,!0));return t.createVNode(gg,t.mergeProps({item:a,index:l,onClick:()=>n("clickPreview",a,i(l)),onDelete:()=>((t,o)=>{const a=e.modelValue.slice(0);a.splice(o,1),n("update:modelValue",a),n("delete",t,i(o))})(a,l),onPreview:()=>(t=>{if(e.previewFullImage){const n=e.modelValue.filter(vg),o=n.map((e=>(e.file&&!e.url&&"failed"!==e.status&&(e.url=URL.createObjectURL(e.file),r.push(e.url)),e.url))).filter(Boolean);f=Ll(p({images:o,startPosition:n.indexOf(t),closeable:!0,onClose:h},e.previewOptions))}})(a)},v(e,["name","lazyLoad"]),c),v(o,["preview-cover","preview-delete"]))},g=()=>{if(e.previewImage)return e.modelValue.map(m)},y=e=>n("clickUpload",e),b=()=>{if(e.modelValue.length>=+e.maxCount||!e.showUpload)return;const n=e.readonly?null:t.createVNode("input",{ref:a,type:"file",class:dg("input"),accept:e.accept,capture:e.capture,multiple:e.multiple,disabled:e.disabled,onChange:d},null);return o.default?t.createVNode("div",{class:dg("input-wrapper"),onClick:y},[o.default(),n]):t.createVNode("div",{class:dg("upload",{readonly:e.readonly}),style:se(e.previewSize),onClick:y},[t.createVNode(lt,{name:e.uploadIcon,class:dg("upload-icon")},null),e.uploadText&&t.createVNode("span",{class:dg("upload-text")},[e.uploadText]),n])};return t.onBeforeUnmount((()=>{r.forEach((e=>URL.revokeObjectURL(e)))})),dt({chooseFile:()=>{a.value&&!e.disabled&&a.value.click()},closeImagePreview:()=>{f&&f.close()}}),Y((()=>e.modelValue)),()=>t.createVNode("div",{class:dg()},[t.createVNode("div",{class:dg("wrapper",{disabled:e.disabled})},[g(),b()])])}})),bg=S&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype,xg="event",Cg="observer";function Lg(e,t){if(!e.length)return;const n=e.indexOf(t);return n>-1?e.splice(n,1):void 0}function Ng(e,t){if("IMG"!==e.tagName||!e.getAttribute("data-srcset"))return;let n=e.getAttribute("data-srcset");const o=e.parentNode.offsetWidth*t;let a,r,i;n=n.trim().split(",");const l=n.map((e=>(e=e.trim(),a=e.lastIndexOf(" "),-1===a?(r=e,i=999998):(r=e.substr(0,a),i=parseInt(e.substr(a+1,e.length-a-2),10)),[i,r])));l.sort(((e,t)=>{if(e[0]<t[0])return 1;if(e[0]>t[0])return-1;if(e[0]===t[0]){if(-1!==t[1].indexOf(".webp",t[1].length-5))return 1;if(-1!==e[1].indexOf(".webp",e[1].length-5))return-1}return 0}));let s,c="";for(let u=0;u<l.length;u++){s=l[u],c=s[1];const e=l[u+1];if(e&&e[0]<o){c=s[1];break}if(!e){c=s[1];break}}return c}const Vg=(e=1)=>S&&window.devicePixelRatio||e;function kg(){if(!S)return!1;let e=!0;try{const t=document.createElement("canvas");t.getContext&&t.getContext("2d")&&(e=0===t.toDataURL("image/webp").indexOf("data:image/webp"))}catch(t){e=!1}return e}function Sg(e,t){let n=null,o=0;return function(...a){if(n)return;const r=()=>{o=Date.now(),n=!1,e.apply(this,a)};Date.now()-o>=t?r():n=setTimeout(r,t)}}function Ag(e,t,n){e.addEventListener(t,n,{capture:!1,passive:!0})}function Tg(e,t,n){e.removeEventListener(t,n,!1)}const Og=(e,t,n)=>{const o=new Image;if(!e||!e.src)return n(new Error("image src is required"));o.src=e.src,e.cors&&(o.crossOrigin=e.cors),o.onload=()=>t({naturalHeight:o.naturalHeight,naturalWidth:o.naturalWidth,src:o.src}),o.onerror=e=>n(e)};class Pg{constructor({max:e}){this.options={max:e||100},this.caches=[]}has(e){return this.caches.indexOf(e)>-1}add(e){this.has(e)||(this.caches.push(e),this.caches.length>this.options.max&&this.free())}free(){this.caches.shift()}}const[Mg,Bg]=Oe("video"),Ig={src:k(""),showToolBox:Boolean,options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:"",controlsList:["nodownload"]}},errorTip:k("播放器发生错误"),clickRetryTip:k("请点击重试")};const Eg=Re(t.defineComponent({name:Mg,props:Ig,emits:["play","pause","play-end","time"],setup(e,{emit:n}){const o=t.ref(),a=t.ref(),r=t.reactive({initial:!0,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),i=t.computed((()=>e.options.disabled));t.watch((()=>e.src),(e=>{e&&t.nextTick((()=>{var e;null==(e=a.value)||e.load()}))}),{immediate:!0,deep:!0}),t.watch((()=>e.options),(e=>{r.state.isMuted=(null==e?void 0:e.muted)||!1}),{immediate:!0});const l=()=>{var t,o,i,l,c,u,p,m;e.options.autoplay&&setTimeout((()=>{var e;null==(e=a.value)||e.play()}),200),e.options.touchPlay&&(r.showTouchMask=!0),e.options.playsinline&&(null==(t=a.value)||t.setAttribute("playsinline","true"),null==(o=a.value)||o.setAttribute("webkit-playsinline","true"),null==(i=a.value)||i.setAttribute("x5-video-player-type","h5-page"),null==(l=a.value)||l.setAttribute("x5-video-player-fullscreen","false")),h(),e.showToolBox?s():(null==(c=a.value)||c.addEventListener("play",(()=>{r.state.playing=!0,n("play",a.value)})),null==(u=a.value)||u.addEventListener("pause",(()=>{r.state.playing=!1,n("pause",a.value)})),null==(p=a.value)||p.addEventListener("ended",f),null==(m=a.value)||m.addEventListener("timeupdate",Sg(d,1e3)))},s=()=>{var e,t;r.player.$player=a.value,r.progressBar.progressElm=o.value,r.progressBar.pos=null==(e=o.value)?void 0:e.getBoundingClientRect(),r.videoSet.progress.width=Math.round((null==(t=o.value)?void 0:t.getBoundingClientRect().width)||0)},c=()=>{var t,o,i,l;if(e.options.autoplay&&e.options.disabled)return r.state.playing=!0,!1;if(r.state.playing=!r.state.playing,a.value)if(r.state.playing)try{setTimeout((()=>{var e;null==(e=a.value)||e.play()}),200),null==(t=a.value)||t.addEventListener("progress",(()=>{u()})),null==(o=a.value)||o.addEventListener("timeupdate",Sg(d,1e3)),null==(i=a.value)||i.addEventListener("ended",f),n("play",a.value)}catch(s){p()}else null==(l=a.value)||l.pause(),n("pause",a.value)},u=()=>{var e,t;r.videoSet.loaded=((null==(e=a.value)?void 0:e.buffered.end(0))||0)/((null==(t=a.value)?void 0:t.duration)||1)*100},d=()=>{var e,t,o,i,l;const s=Number.isNaN(null==(e=a.value)?void 0:e.duration)?0:null==(t=a.value)?void 0:t.duration,c=Number.isNaN(null==(o=a.value)?void 0:o.currentTime)?0:null==(i=a.value)?void 0:i.currentTime,u=(c||0)/(s||1);r.videoSet.progress.current=Math.round(r.videoSet.progress.width*u),r.videoSet.totalTime=be(s),r.videoSet.displayTime=be(null==(l=a.value)?void 0:l.currentTime),n("time",c,s,r.videoSet.displayTime,r.videoSet.totalTime)},f=()=>{r.state.playing=!1,r.state.isEnd=!0,r.videoSet.displayTime="00:00",r.videoSet.progress.current=0,a.value&&(a.value.currentTime=0),n("play-end",a.value)},p=()=>{r.state.isError=!0},h=()=>{r.state.vol=e.options.volume||0},m=()=>{r.state.isMuted=!r.state.isMuted,a.value&&(a.value.muted=r.state.isMuted)},v=e=>{var t,n;e.stopPropagation(),e.preventDefault();let o=e.targetTouches[0].pageX-r.progressBar.pos.left;o<=0&&(o=0),o>=r.videoSet.progress.width&&(o=r.videoSet.progress.width),r.videoSet.progress.current=o;const i=r.videoSet.progress.current/r.videoSet.progress.width;(null==(t=a.value)?void 0:t.duration)&&w(i,null==(n=a.value)?void 0:n.duration)},g=e=>{var t,n;e.stopPropagation();const o=e.changedTouches[0].pageX-r.progressBar.pos.left;r.videoSet.progress.current=o;const i=o/r.videoSet.progress.width;(null==(t=a.value)?void 0:t.duration)&&w(i,null==(n=a.value)?void 0:n.duration)},w=(e,t)=>{a.value&&(a.value.currentTime=Math.floor(e*t))},y=()=>{r.state.isError=!1,l()},b=()=>{var e;r.state.fullScreen?(r.state.fullScreen=!1,document.webkitCancelFullScreen()):(r.state.fullScreen=!0,null==(e=a.value)||e.webkitRequestFullScreen())};function x(){if(e.showToolBox&&!i.value)return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:Bg("mask"),onClick:c},null),r.state.playing?null:t.createVNode("div",{class:Bg("play-btn"),onClick:c},[t.createVNode(st,{name:"play-r"},null)]),t.createVNode("div",{class:[Bg("controller",{show:!r.state.playing,hide:r.state.playing})],style:{"z-index":qe()}},[t.createVNode("div",{class:Bg("controller-play-btn"),onClick:c},null),t.createVNode("div",{class:Bg("controller-now")},[r.videoSet.displayTime]),t.createVNode("div",{class:Bg("controller-progress")},[t.createVNode("div",{ref:o,class:Bg("controller-progress-value")},[t.createVNode("div",{class:"buffered",style:{width:`${r.videoSet.loaded}%`}},null),t.createVNode("div",{class:Bg("controller-progress-ball"),style:{transform:`translate3d(${r.videoSet.progress.current}px, -50%, 0)`},onTouchmove:v,onTouchend:g},[t.createVNode("div",{class:Bg("move")},null)]),t.createVNode("div",{class:Bg("played")},null)])]),t.createVNode("div",{class:Bg("controller-total")},[r.videoSet.totalTime]),t.createVNode("div",{class:Bg("controller-volume"),onClick:m},[r.state.isMuted?t.createVNode(st,{name:"volume-off"},null):t.createVNode(st,{name:"volume-on"},null)]),t.createVNode("div",{class:Bg("controller-full"),onClick:b},[t.createVNode(st,{name:"expand"},null)])])])}function C(){if(r.state.isError)return t.createVNode("div",{class:Bg("error"),style:{"z-index":qe()}},[t.createVNode("p",{class:Bg("tip")},[e.errorTip]),t.createVNode("p",{class:Bg("retry"),onClick:y},[e.clickRetryTip])])}return dt({play:c,pause:()=>{var e;r.state.playing=!1,null==(e=a.value)||e.pause(),n("pause",a.value)},stop:()=>{var e;f(),null==(e=a.value)||e.pause()},muted:()=>{r.state.isMuted=!0,a.value&&(a.value.muted=!0)},unmuted:()=>{r.state.isMuted=!1,a.value&&(a.value.muted=!1)}}),t.onMounted((()=>{l()})),()=>{const{src:n,options:o}=e,r=o.controlsList||["nodownload"];return t.createVNode("div",{class:Bg()},[t.createVNode("video",{ref:a,class:Bg("player"),muted:o.muted,autoplay:o.autoplay,loop:o.loop,poster:o.poster,controls:o.controls,controlslist:r.join(" "),preload:o.preload,src:n,onError:p},null),x(),C()])}}}));class Dg{constructor({el:e,src:t,error:n,loading:o,bindType:a,$parent:r,options:i,cors:l,elRenderer:s,imageCache:c}){this.el=e,this.src=t,this.error=n,this.loading=o,this.bindType=a,this.attempt=0,this.cors=l,this.naturalHeight=0,this.naturalWidth=0,this.options=i,this.$parent=r,this.elRenderer=s,this.imageCache=c,this.performanceData={loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}initState(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={loading:!1,error:!1,loaded:!1,rendered:!1}}record(e){this.performanceData[e]=Date.now()}update({src:e,loading:t,error:n}){const o=this.src;this.src=e,this.loading=t,this.error=n,this.filter(),o!==this.src&&(this.attempt=0,this.initState())}checkInView(){const e=I(this.el);return e.top<window.innerHeight*this.options.preLoad&&e.bottom>this.options.preLoadTop&&e.left<window.innerWidth*this.options.preLoad&&e.right>0}filter(){Object.keys(this.options.filter).forEach((e=>{this.options.filter[e](this,this.options)}))}renderLoading(e){this.state.loading=!0,Og({src:this.loading,cors:this.cors},(()=>{this.render("loading",!1),this.state.loading=!1,e()}),(()=>{e(),this.state.loading=!1}))}load(e=f){if(this.attempt>this.options.attempt-1&&this.state.error)e();else if(!this.state.rendered||!this.state.loaded)return this.imageCache.has(this.src)?(this.state.loaded=!0,this.render("loaded",!0),this.state.rendered=!0,e()):void this.renderLoading((()=>{var t,n;this.attempt++,null==(n=(t=this.options.adapter).beforeLoad)||n.call(t,this,this.options),this.record("loadStart"),Og({src:this.src,cors:this.cors},(t=>{this.naturalHeight=t.naturalHeight,this.naturalWidth=t.naturalWidth,this.state.loaded=!0,this.state.error=!1,this.record("loadEnd"),this.render("loaded",!1),this.state.rendered=!0,this.imageCache.add(this.src),e()}),(e=>{!this.options.silent&&console.error(e),this.state.error=!0,this.state.loaded=!1,this.render("error",!1)}))}))}render(e,t){this.elRenderer(this,e,t)}performance(){let e="loading",t=0;return this.state.loaded&&(e="loaded",t=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(e="error"),{src:this.src,state:e,time:t}}$destroy(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}const zg="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Fg=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],jg={rootMargin:"0px",threshold:0};var _g=e=>({props:{tag:{type:String,default:"div"}},emits:["show"],render(){return t.h(this.tag,this.show&&this.$slots.default?this.$slots.default():null)},data:()=>({el:null,state:{loaded:!1},show:!1}),mounted(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeUnmount(){e.removeComponent(this)},methods:{checkInView(){const t=I(this.$el);return S&&t.top<window.innerHeight*e.options.preLoad&&t.bottom>0&&t.left<window.innerWidth*e.options.preLoad&&t.right>0},load(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)},destroy(){return this.$destroy}}});const Rg={selector:"img"};class Hg{constructor({el:e,binding:t,vnode:n,lazy:o}){this.el=null,this.vnode=n,this.binding=t,this.options={},this.lazy=o,this.queue=[],this.update({el:e,binding:t})}update({el:e,binding:t}){this.el=e,this.options=Object.assign({},Rg,t.value);this.getImgs().forEach((e=>{this.lazy.add(e,Object.assign({},this.binding,{value:{src:"dataset"in e?e.dataset.src:e.getAttribute("data-src"),error:("dataset"in e?e.dataset.error:e.getAttribute("data-error"))||this.options.error,loading:("dataset"in e?e.dataset.loading:e.getAttribute("data-loading"))||this.options.loading}}),this.vnode)}))}getImgs(){return Array.from(this.el.querySelectorAll(this.options.selector))}clear(){this.getImgs().forEach((e=>this.lazy.remove(e))),this.vnode=null,this.binding=null,this.lazy=null}}class Ug{constructor({lazy:e}){this.lazy=e,this.queue=[]}bind(e,t,n){const o=new Hg({el:e,binding:t,vnode:n,lazy:this.lazy});this.queue.push(o)}update(e,t,n){const o=this.queue.find((t=>t.el===e));o&&o.update({el:e,binding:t,vnode:n})}unbind(e){const t=this.queue.find((t=>t.el===e));t&&(t.clear(),Lg(this.queue,t))}}var $g=e=>({props:{src:[String,Object],tag:{type:String,default:"img"}},render(){var e,n;return t.h(this.tag,{src:this.renderSrc},null==(n=(e=this.$slots).default)?void 0:n.call(e))},data:()=>({el:null,options:{src:"",error:"",loading:"",attempt:e.options.attempt},state:{loaded:!1,error:!1,attempt:0},renderSrc:""}),watch:{src(){this.init(),e.addLazyBox(this),e.lazyLoadHandler()}},created(){this.init(),this.renderSrc=this.options.loading},mounted(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeUnmount(){e.removeComponent(this)},methods:{init(){const{src:t,loading:n,error:o}=e.valueFormatter(this.src);this.state.loaded=!1,this.options.src=t,this.options.error=o,this.options.loading=n,this.renderSrc=this.options.loading},checkInView(){const t=I(this.$el);return t.top<window.innerHeight*e.options.preLoad&&t.bottom>0&&t.left<window.innerWidth*e.options.preLoad&&t.right>0},load(e=f){if(this.state.attempt>this.options.attempt-1&&this.state.error)return void e();const{src:t}=this.options;Og({src:t},(({src:e})=>{this.renderSrc=e,this.state.loaded=!0}),(()=>{this.state.attempt++,this.renderSrc=this.options.error,this.state.error=!0}))}}});const Zg={install(e,n={}){const o=class{constructor({preLoad:e,error:t,throttleWait:n,preLoadTop:o,dispatchEvent:a,loading:r,attempt:i,silent:l=!0,scale:s,listenEvents:c,filter:u,adapter:d,observer:f,observerOptions:p}){this.mode=xg,this.listeners=[],this.targetIndex=0,this.targets=[],this.options={silent:l,dispatchEvent:!!a,throttleWait:n||200,preLoad:e||1.3,preLoadTop:o||0,error:t||zg,loading:r||zg,attempt:i||3,scale:s||Vg(s),ListenEvents:c||Fg,supportWebp:kg(),filter:u||{},adapter:d||{},observer:!!f,observerOptions:p||jg},this.initEvent(),this.imageCache=new Pg({max:200}),this.lazyLoadHandler=Sg(this.lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?Cg:xg)}config(e={}){Object.assign(this.options,e)}performance(){return this.listeners.map((e=>e.performance()))}addLazyBox(e){this.listeners.push(e),S&&(this.addListenerTarget(window),this.observer&&this.observer.observe(e.el),e.$el&&e.$el.parentNode&&this.addListenerTarget(e.$el.parentNode))}add(e,n,o){if(this.listeners.some((t=>t.el===e)))return this.update(e,n),t.nextTick(this.lazyLoadHandler);const a=this.valueFormatter(n.value);let{src:r}=a;t.nextTick((()=>{r=Ng(e,this.options.scale)||r,this.observer&&this.observer.observe(e);const i=Object.keys(n.modifiers)[0];let l;i&&(l=o.context.$refs[i],l=l?l.$el||l:document.getElementById(i)),l||(l=$(e));const s=new Dg({bindType:n.arg,$parent:l,el:e,src:r,loading:a.loading,error:a.error,cors:a.cors,elRenderer:this.elRenderer.bind(this),options:this.options,imageCache:this.imageCache});this.listeners.push(s),S&&(this.addListenerTarget(window),this.addListenerTarget(l)),this.lazyLoadHandler(),t.nextTick((()=>this.lazyLoadHandler()))}))}update(e,n,o){const a=this.valueFormatter(n.value);let{src:r}=a;r=Ng(e,this.options.scale)||r;const i=this.listeners.find((t=>t.el===e));i?i.update({src:r,error:a.error,loading:a.loading}):this.add(e,n,o),this.observer&&(this.observer.unobserve(e),this.observer.observe(e)),this.lazyLoadHandler(),t.nextTick((()=>this.lazyLoadHandler()))}remove(e){if(!e)return;this.observer&&this.observer.unobserve(e);const t=this.listeners.find((t=>t.el===e));t&&(this.removeListenerTarget(t.$parent),this.removeListenerTarget(window),Lg(this.listeners,t),t.$destroy())}removeComponent(e){e&&(Lg(this.listeners,e),this.observer&&this.observer.unobserve(e.el),e.$parent&&e.$el.parentNode&&this.removeListenerTarget(e.$el.parentNode),this.removeListenerTarget(window))}setMode(e){bg||e!==Cg||(e=xg),this.mode=e,e===xg?(this.observer&&(this.listeners.forEach((e=>{this.observer.unobserve(e.el)})),this.observer=null),this.targets.forEach((e=>{this.initListen(e.el,!0)}))):(this.targets.forEach((e=>{this.initListen(e.el,!1)})),this.initIntersectionObserver())}addListenerTarget(e){if(!e)return;let t=this.targets.find((t=>t.el===e));return t?t.childrenCount++:(t={el:e,id:++this.targetIndex,childrenCount:1,listened:!0},this.mode===xg&&this.initListen(t.el,!0),this.targets.push(t)),this.targetIndex}removeListenerTarget(e){this.targets.forEach(((t,n)=>{t.el===e&&(t.childrenCount--,t.childrenCount||(this.initListen(t.el,!1),this.targets.splice(n,1),t=null))}))}initListen(e,t){this.options.ListenEvents.forEach((n=>(t?Ag:Tg)(e,n,this.lazyLoadHandler)))}initEvent(){this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=(e,t)=>{this.Event.listeners[e]||(this.Event.listeners[e]=[]),this.Event.listeners[e].push(t)},this.$once=(e,t)=>{const n=(...o)=>{this.$off(e,n),t.apply(this,o)};this.$on(e,n)},this.$off=(e,t)=>{if(t)Lg(this.Event.listeners[e],t);else{if(!this.Event.listeners[e])return;this.Event.listeners[e].length=0}},this.$emit=(e,t,n)=>{this.Event.listeners[e]&&this.Event.listeners[e].forEach((e=>e(t,n)))}}lazyLoadHandler(){const e=[];this.listeners.forEach((t=>{t.el&&t.el.parentNode||e.push(t),t.checkInView()&&t.load()})),e.forEach((e=>{Lg(this.listeners,e),e.$destroy()}))}initIntersectionObserver(){bg&&(this.observer=new IntersectionObserver(this.observerHandler.bind(this),this.options.observerOptions),this.listeners.length&&this.listeners.forEach((e=>{this.observer.observe(e.el)})))}observerHandler(e){e.forEach((e=>{e.isIntersecting&&this.listeners.forEach((t=>{if(t.el===e.target){if(t.state.loaded)return this.observer.unobserve(t.el);t.load()}}))}))}elRenderer(e,t,n){if(!e.el)return;const{el:o,bindType:a}=e;let r;switch(t){case"loading":r=e.loading;break;case"error":r=e.error;break;default:({src:r}=e)}if(a?o.style[a]='url("'+r+'")':o.getAttribute("src")!==r&&o.setAttribute("src",r),o.setAttribute("lazy",t),this.$emit(t,e,n),this.options.adapter[t]&&this.options.adapter[t](e,this.options),this.options.dispatchEvent){const n=new CustomEvent(t,{detail:e});o.dispatchEvent(n)}}valueFormatter(e){let t=e,{loading:n,error:o}=this.options;return i(e)&&(({src:t}=e),n=e.loading||this.options.loading,o=e.error||this.options.error),{src:t,loading:n,error:o}}},a=new o(n),r=new Ug({lazy:a});e.config.globalProperties.$Lazyload=a,n.lazyComponent&&e.component("LazyComponent",_g(a)),n.lazyImage&&e.component("LazyImage",$g(a)),e.directive("lazy",{beforeMount:a.add.bind(a),updated:a.update.bind(a),unmounted:a.remove.bind(a)}),e.directive("lazy-container",{beforeMount:r.bind.bind(r),updated:r.update.bind(r),unmounted:r.unbind.bind(r)})}},Wg="3.1.87";function Yg(e){[_t,Kt,ln,We,mn,so,Ko,la,da,Ca,Na,Ba,Fa,Ha,Ua,_r,Qr,Wo,bi,Ti,Oi,zi,oi,Hi,Wi,Ki,nl,fl,lt,tn,Nl,Bl,Il,jl,It,Ve,wf,$s,kf,Pf,Ef,$f,Jf,Ct,op,lp,xr,sm,St,hm,Lm,Nm,Zm,Gm,Xm,si,rv,uv,Zt,mv,Nv,Tv,Ov,vo,No,Iv,Do,Fv,_o,$v,qv,rg,Ro,hi,Jv,Pr,cg,Qn,yg,Eg].forEach((t=>{t.install?e.use(t):t.name&&e.component(t.name,t)}))}var qg,Gg,Xg,Kg,Qg={install:Yg,version:Wg};function Jg(){var e=window.jsi&&window.jsi.callNative,t=window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.callNative;return!!e||!!t}function ew(e,t,n){var o=this,a=window;window[e]=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];t&&function(e,t){void 0===t&&(t=window);var n=t||window;delete n[e],n.top&&delete n.top[e]}(e,a),n.apply(o,r)},window.top&&(window.top[e]=window[e])}function tw(e){var t=e.methodName,n=void 0===t?"":t,o=e.requestCode,a=void 0===o?-1:o,r=e.params,i=void 0===r?{}:r,l=e.callbackName,s=void 0===l?null:l,c=e.callbackFunc,u=void 0===c?null:c,d=e.autoClear,f=void 0===d||d,p=e.onFail,h=void 0===p?null:p;if(Jg()){var m={method:n,params:i,callback:null};a&&a>=0&&(m.requestCode=a);var v,g,w=s,y=u;w?y||(y=window[w]):y&&((v=window.top||window).hasOwnProperty("__callId__")||(v.__callId__=0),v.__callId__+=1,w="jsicallback"+v.__callId__),m.callback=w,w&&ew(w,f,(g=y,function(e){var t=e;try{"string"==typeof t&&(t=t.replace(/\n/g,"\\n").replace(/\r/g,"\\r"),t=JSON.parse(t)||{})}catch(n){console.log(n),t={code:-1,msg:"返回数据格式异常:".concat(t)}}console.debug(t),g&&(t||(t={}),t.isSuccess=0===t.code,g(t))}));var b=JSON.stringify(m);window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.callNative?window.webkit.messageHandlers.callNative.postMessage(b):window.jsi.callNative(b)}else h&&h()}function nw(e){var t=e.methodName,n=void 0===t?"":t,o=e.requestCode,a=void 0===o?-1:o,r=e.params,i=void 0===r?{}:r,l=e.callbackName,s=void 0===l?null:l,c=e.autoClear,u=void 0===c||c,d=e.timeout,f=void 0===d?1e4:d,p=e.raw,h=void 0===p||p,m=e.onFail,v=void 0===m?null:m;return new Promise((function(e,t){var o=!1,r=!1;tw({methodName:n,requestCode:a,params:i,callbackName:s,autoClear:u,callbackFunc:function(n){n&&n.isSuccess&&n.data&&n.data.cancelFlag?r=!0:(h?e(n):n.isSuccess?e(n.data):t(n.msg),o=!0)},onFail:function(){t("callNative ".concat(n," not supported")),console.error("callNative ".concat(n," not supported")),o=!0,v&&v()}}),f>0&&setTimeout((function(){o||r||(t(n+"超时"),v&&v())}),f)}))}(Gg=qg||(qg={})).LANDSCAPE="landscape",Gg.PORTRAIT="portrait",(Kg=Xg||(Xg={})).BAIDU="baidu",Kg.DEFAULT="default";var ow=function(){function e(){}return e.prototype.isEnvironmentEnabled=function(){return!1},e}(),aw=navigator.userAgent.toLowerCase(),rw=window.jsi&&window.jsi.callNative,iw=window.jsInterface&&window.jsInterface.loadFinish,lw=aw&&/dingtalk/.test(aw),sw=aw&&/micromessenger/.test(aw),cw=aw&&/iphone|ipad|ipod|ios/.test(aw),uw=aw&&/android/.test(aw),dw=aw&&(/egovamobilev22/.test(aw)||/egovamobilepro/.test(aw)),fw=window.self!==window.top,pw=aw&&/gwork/.test(aw),hw=aw&&/taurusapp/.test(aw);function mw(e){return nw({methodName:"getLocation",params:dw?{}:{needConvert:null==e?void 0:e.needConvertInZhixin}}).then((function(t){var n,o,a=(null==t?void 0:t.data)||{},r=dw?{longitude:a.x,latitude:a.y,accuracy:"",horizontalAccuracy:"",coordType:1}:{longitude:a.x,latitude:a.y,accuracy:"",horizontalAccuracy:"",coordType:a.coordType,convertType:null!==(n=a.convertType)&&void 0!==n?n:"",convertParams:null!==(o=a.convertParams)&&void 0!==o?o:""};return e&&e.success&&e.success(r),Promise.resolve(r)})).catch((function(t){e&&e.fail&&e.fail(t)}))}function vw(e){return nw({methodName:"getBase64FileData",params:{path:e},raw:!1}).then((function(e){return Promise.resolve(e.base64)}))}function gw(e,t,n){for(var o=atob(e),a=o.length,r=new Uint8Array(a);a--;)r[a]=o.charCodeAt(a);return new File([r],t,{type:n})}function ww(e){var t=function(e){return{status:"rejected",reason:e}},n=function(e){return{status:"fulfilled",value:e}};return Promise.all(e.map((function(e){return Promise.resolve(e).then(n,t)})))}function yw(e){var t=e.lastIndexOf("/");return e.substring(t+1)}function bw(e){var t=dw?"image.pickPhoto":"media.pickPhoto",n=!0;e.sourceType&&e.sourceType.includes("camera")&&(t=dw?"image.takePhoto":"media.takePhoto",n=!1);var o={watermarkConfigString:e.watermarkConfigString||"",cameraFacingType:e.cameraFacingType||0,watermarkContext:e.watermarkContext||{}};return n&&e.count&&e.count>0&&(dw?o.count=e.count:o.photoCount=e.count),nw({methodName:t,timeout:3e5,params:o}).then((function(t){var n,o=(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.resultList)||[];if("string"==typeof o)try{o=JSON.parse(o)||[]}catch(i){console.log(i)}var a=[],r=[];return ww(o.map((function(e){return vw(e)}))).then((function(t){t.forEach((function(e,t){if("fulfilled"===e.status){var n=e.value,i=yw(o[t]);a.push(gw(n,i,"image/jpeg")),r.push("data:image/jpeg;base64,".concat(n))}}));var n={files:a,tempFilePaths:r};return e.success&&e.success(n),Promise.resolve(n)}))})).catch((function(t){return e.fail&&e.fail(t),Promise.reject(t)}))}function xw(e,t){var n="media.pickVideo";return t?n=t:e.sourceType&&e.sourceType.includes("camera")&&(n="media.takeVideo"),nw({methodName:n,params:e,timeout:3e5}).then((function(t){var n,o=(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.resultList)||[];if("string"==typeof o)try{o=JSON.parse(o)||[]}catch(r){console.log(r)}var a=[];return ww(o.map((function(e){return vw(e)}))).then((function(t){t.forEach((function(e,t){if("fulfilled"===e.status){var n=e.value,r=yw(o[t]);a.push(gw(n,r,"video/mp4"))}}));var n={files:a};return e.success&&e.success(n),Promise.resolve(n)}))})).catch((function(t){return e.fail&&e.fail(t),Promise.reject(t)}))}function Cw(e){return xw(e,dw?"video.takeVideo":"media.takeVideo")}function Lw(e){var t=dw?"video.pickVideo":"media.pickVideo";return e.sourceType&&e.sourceType.includes("camera")&&(t=dw?"video.takeVideo":"media.takeVideo"),xw(e,t)}function Nw(e){var t=e.endX,n=e.endY,o=e.longitude,a=e.latitude,r=e.endAddress,i=e.needConvertInZhixin,l=o||t||-1,s=a||n||-1;return nw(dw?{methodName:"location.navigateToPosition",params:{longitude:l,latitude:s,address:r}}:{methodName:"navigateToPosition",params:{coordX:l,coordY:s,address:r,needConvert:i}})}function Vw(e){return tw({methodName:dw?"navigation.setTitle":"bindNavBar",raw:!1,params:{title:e.title||""}}),e.success&&e.success(),e.complete&&e.complete(),Promise.resolve()}function kw(e){return nw({methodName:"navigation.setColor",params:{backgroundColor:e.backgroundColor,frontColor:e.frontColor}}).then((function(){return e.success&&e.success(),e.complete&&e.complete(),Promise.resolve()})).catch((function(t){return e.fail&&e.fail(t),e.complete&&e.complete(),Promise.reject(t)}))}function Sw(e){return nw({methodName:dw?"navigate.openLink":"openWebPage",raw:!1,params:{url:e.url||""}}).then((function(){return e.success&&e.success(),Promise.resolve()})).catch((function(t){return e.fail&&e.fail(t),Promise.reject(t)}))}function Aw(){return nw({methodName:dw?"navigate.close":"close",raw:!1}).then((function(){return Promise.resolve()})).catch((function(e){return Promise.reject(e)}))}function Tw(e){var t=e.success,n=e.fail,o=e.phoneNumber;return nw({methodName:dw?"device.phoneCall":"phoneCall",params:{phoneNum:o},onFail:n}).then((function(e){return t&&t(e),Promise.resolve(e)}))}function Ow(e){return nw({methodName:dw?"device.scan":"startQrCodeScan",timeout:3e5}).then((function(t){return t&&t.isSuccess?(e.success&&e.success(t&&t.data&&t.data.result),Promise.resolve(t&&t.data&&t.data.result)):(e.fail&&e.fail(t&&t.msg||"扫码失败"),Promise.reject(t&&t.msg||"扫码失败"))}))}function Pw(e){return nw({methodName:"device.ocrScan",params:{scanType:e.scanType,photoTypes:(null==e?void 0:e.photoTypes)||""},timeout:3e5}).then((function(t){return t&&t.isSuccess?(e.success&&e.success(t.data),Promise.resolve(t.data)):(e.fail&&e.fail(t&&t.msg||"扫描识别失败"),Promise.reject(t&&t.msg||"扫描识别失败"))}))}function Mw(e){return nw({methodName:"getDeviceInfo"}).then((function(t){return e.success&&e.success(t.data),Promise.resolve(t.data)}))}function Bw(e){return nw({methodName:"navigation.setStatusBarBlackFont",params:{blackFont:e}}).then((function(){return Promise.resolve()})).catch((function(e){return Promise.reject(e)}))}function Iw(e){return nw({raw:!1,methodName:"audio.startRecord",timeout:3e5}).then((function(t){return e&&e.success&&e.success(t),Promise.resolve(t)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Ew(e){return nw({raw:!1,methodName:"audio.stopRecord",timeout:3e5}).then((function(t){return e&&e.success&&e.success({localAudioId:t.path,duration:t.duration,size:t.size}),Promise.resolve({localAudioId:t.path,duration:t.duration,size:t.size})})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Dw(e){return nw({raw:!1,methodName:"audio.onRecordEnd",timeout:3e5}).then((function(t){return e&&e.success&&e.success({localAudioId:t.path,duration:t.duration,size:t.size}),Promise.resolve({localAudioId:t.path,duration:t.duration,size:t.size})})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function zw(e){return nw({raw:!1,methodName:"audio.playVoice",timeout:3e4,params:{localAudioId:e.localAudioId}}).then((function(t){return e&&e.success&&e.success(t),Promise.resolve(t)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Fw(e){return nw({raw:!1,methodName:"audio.pauseVoice",timeout:3e4,params:{localAudioId:e.localAudioId}}).then((function(t){return e&&e.success&&e.success(t),Promise.resolve(t)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function jw(e){return nw({methodName:"audio.stopVoice",raw:!1,timeout:3e4,params:{localAudioId:e.localAudioId}}).then((function(t){return e&&e.success&&e.success(t),Promise.resolve(t)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function _w(e){return nw({methodName:"audio.onPlayEnd",raw:!1,timeout:36e5}).then((function(t){return e&&e.success&&e.success({localAudioId:t.path}),Promise.resolve({localAudioId:t.path})})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Rw(e){return nw({methodName:"audio.uploadVoice",raw:!1,timeout:3e5,params:{localAudioId:e.localAudioId}}).then((function(t){return e&&e.success&&e.success({mediaId:t.mediaId}),Promise.resolve({mediaId:t.mediaId})})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Hw(e){return nw({methodName:"audio.downloadVoice",raw:!1,timeout:3e5,params:{mediaId:e.mediaId}}).then((function(t){return e&&e.success&&e.success({localAudioId:t.path,duration:t.duration,size:t.size}),Promise.resolve({localAudioId:t.path,duration:t.duration,size:t.size})})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Uw(e){return nw({methodName:"file.isLocalFileExist",params:{mediaIdArray:e.mediaIdArray}}).then((function(t){var n,o=(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.list)||[];return e&&e.success&&e.success(o),Promise.resolve(o)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function $w(e){return nw({methodName:"file.download",timeout:36e5,params:{url:e.url}}).then((function(t){var n;if((null==t?void 0:t.isSuccess)||!1){var o={tempFilePath:(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.tempFilePath)||""};return e&&e.success&&e.success(o),Promise.resolve(o)}var a=(null==t?void 0:t.msg)||"下载失败";return e&&e.fail&&e.fail(a),Promise.reject(a)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Zw(e){return nw({methodName:"file.openDocument",params:{localFilePath:e.localFilePath}}).then((function(t){if((null==t?void 0:t.isSuccess)||!1){var n=(null==t?void 0:t.data)||{};return e&&e.success&&e.success(n),Promise.resolve(n)}var o=(null==t?void 0:t.msg)||"打开文件失败";return e&&e.fail&&e.fail(o),Promise.reject(o)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Ww(e){if(dw)return nw({methodName:"device.setScreenOrientation",params:{orientation:e.orientation}}).then((function(t){return e&&e.success&&e.success(t.data),Promise.resolve()})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}));return nw({methodName:e.orientation===qg.LANDSCAPE?"setLandScape":"setPortrait"}).then((function(){return Promise.resolve()})).catch((function(){return Promise.resolve()}))}function Yw(e){return dw?nw({methodName:"contact.createGroup",params:{groupName:(null==e?void 0:e.groupName)||"",initUserIdList:(null==e?void 0:e.initUserIdList)||[],useInitUser:null==e?void 0:e.useInitUser,hiddenExistGroup:null==e?void 0:e.hiddenExistGroup,autoSendMsg:(null==e?void 0:e.autoSendMsg)||"",themeGroupId:(null==e?void 0:e.themeGroupId)||""}}).then((function(t){var n=(null==t?void 0:t.data)||{};return e&&e.success&&e.success(n),Promise.resolve(n)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)})):nw({methodName:"startDiscuss",params:{title:(null==e?void 0:e.groupName)||""}}).then((function(t){var n=(null==t?void 0:t.data)||{};return e&&e.success&&e.success(n),Promise.resolve(n)})).catch((function(){return Promise.resolve()}))}function qw(e){return dw?nw({methodName:"im.getGroupsInfo",params:{data:(null==e?void 0:e.data)||[]}}).then((function(t){var n=(null==t?void 0:t.data)||{};return e&&e.success&&e.success(n),Promise.resolve(n)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)})):Promise.resolve()}function Gw(e){return dw?nw({methodName:"im.getGroupMemberList",params:{groupID:null==e?void 0:e.groupID,filter:(null==e?void 0:e.filter)||0,offset:(null==e?void 0:e.offset)||0,count:(null==e?void 0:e.count)||9999}}).then((function(t){var n=(null==t?void 0:t.data)||{};return e&&e.success&&e.success(n),Promise.resolve(n)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)})):Promise.resolve()}function Xw(e){return nw({methodName:"egova.speak",params:{content:(null==e?void 0:e.content)||"",ttsType:(null==e?void 0:e.ttsType)||Xg.DEFAULT}}).then((function(t){return t&&t.isSuccess?(e.success&&e.success(t),Promise.resolve(t)):(e.fail&&e.fail(t&&t.msg||"转换语音失败"),Promise.reject(t&&t.msg||"转换语音失败"))}))}function Kw(e){return nw({methodName:"egova.stopSpeak"}).then((function(t){return t&&t.isSuccess?(e.success&&e.success(t),Promise.resolve(t)):(e.fail&&e.fail(t&&t.msg||"转换语音失败"),Promise.reject(t&&t.msg||"转换语音失败"))}))}function Qw(e){return dw?nw({methodName:"navigate.openNativePage",params:{pageAddress:(null==e?void 0:e.pageAddress)||""}}).then((function(t){if((null==t?void 0:t.isSuccess)||!1)return e&&e.success&&e.success(null==t?void 0:t.data),Promise.resolve(null==t?void 0:t.data);var n=t.msg||"";return e&&e.fail&&e.fail(n),Promise.reject(n)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)})):new Promise((function(t,n){var o="暂不支持";e&&e.fail&&e.fail(o),n(o)}))}function Jw(e){return nw({methodName:"device.openBluetoothAdapter"}).then((function(t){return e&&e.success&&e.success(t.data),Promise.resolve()})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function ey(e){return nw({methodName:"device.startBluetoothDevicesDiscovery",params:{services:(null==e?void 0:e.services)||[],allowDuplicatesKey:!!(null==e?void 0:e.allowDuplicatesKey),interval:(null==e?void 0:e.interval)||0}}).then((function(t){return e&&e.success&&e.success(t.data),Promise.resolve()})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function ty(e){return nw({methodName:"device.stopBluetoothDevicesDiscovery"}).then((function(t){return e&&e.success&&e.success(t.data),Promise.resolve()})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function ny(e){return delete window.callbackBluetoothDeviceFound,nw({methodName:"device.closeBluetoothAdapter"}).then((function(t){return e&&e.success&&e.success(t.data),Promise.resolve()})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function oy(e){return nw({methodName:"device.getBluetoothDevices"}).then((function(t){return e&&e.success&&e.success(t.data),Promise.resolve(t.data)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function ay(e){return window.callbackBluetoothDeviceFound&&(window.callbackBluetoothDeviceFound=null),window.callbackBluetoothDeviceFound=function(t){try{var n=JSON.parse(t);"function"==typeof e&&e(n)}catch(o){"function"==typeof e&&e("onBluetoothDeviceFound发生异常"+(null==o?void 0:o.toString())),console.error("onBluetoothDeviceFound 发生异常",o)}},nw({methodName:"device.onBluetoothDeviceFound"}).then((function(e){return Promise.resolve()})).catch((function(e){return Promise.reject(e)}))}var ry,iy=globalThis&&globalThis.__extends||(ry=function(e,t){return(ry=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ry(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ly=function(e){function t(){var t=e.call(this)||this;return t.contact={createGroup:Yw},dw?(t.navigate={close:Aw,openLink:Sw,openNativePage:Qw},t.navigationBar={setNavigationBarTitle:Vw,setNavigationBarColor:kw,setStatusBarBlackFont:Bw},t.location={getLocation:mw,navigateTo:Nw},t.device={makePhoneCall:Tw,scan:Ow,ocrScan:Pw,setScreenOrientation:Ww,openBluetoothAdapter:Jw,startBluetoothDevicesDiscovery:ey,stopBluetoothDevicesDiscovery:ty,getBluetoothDevices:oy,closeBluetoothAdapter:ny,onBluetoothDeviceFound:ay,speak:Xw,stopSpeak:Kw},t.audio={startRecord:Iw,stopRecord:Ew,onRecordEnd:Dw,playVoice:zw,pauseVoice:Fw,stopVoice:jw,onPlayEnd:_w,uploadVoice:Rw,downloadVoice:Hw},t.file={isLocalFileExist:Uw,download:$w,openDocument:Zw},t.media={chooseImage:bw,takeVideo:Cw,chooseVideo:Lw},t.im={getGroupsInfo:qw,getGroupMemberList:Gw}):(t.navigate={close:Aw,openLink:Sw},t.navigationBar={setNavigationBarTitle:Vw},t.location={getLocation:mw,navigateTo:Nw},t.device={makePhoneCall:Tw,scan:Ow,getSystemInfo:Mw,setScreenOrientation:Ww},t.media={chooseImage:bw,chooseVideo:Lw,takeVideo:Cw},t.file={download:$w,openDocument:Zw}),t}return iy(t,e),t.prototype.isEnvironmentEnabled=function(){return Jg()},t.prototype.share=function(e){return nw({methodName:"share",params:{title:e.title,description:e.description,url:e.url,platforms:e.platforms,image:e.image,needAuth:e.needAuth}}).then((function(){return e.success&&e.success(),Promise.resolve()})).catch((function(t){return e.fail&&e.fail(t),Promise.reject(t)}))},t}(ow),sy="undefined"!=typeof window&&"onload"in window,cy="undefined"!=typeof process&&!(!process.versions||!process.versions.node);"undefined"!=typeof WXEnvironment&&WXEnvironment.platform;var uy="undefined"!=typeof my&&null!==my&&void 0!==my.alert,dy="undefined"!=typeof tt&&null!==tt&&void 0!==tt.showToast,fy="undefined"!=typeof swan&&null!==swan&&void 0!==swan.showToast,py="undefined"!=typeof ks&&null!==ks&&void 0!==ks.showToast,hy=!dy&&"undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram);uy&&sy&&my.isFRM;var vy="object"==typeof navigator?navigator.userAgent||navigator.swuserAgent:"";function gy(e){return"undefined"===e}/.+AliApp\((\w+)\/((?:\d+\.)+\d+)\).* .*(WindVane)(?:\/((?:\d+\.)+\d+))?.*/.test(vy)&&sy&&"undefined"!=typeof WindVane&&WindVane.call;var wy=!gy(typeof dd)&&null!==dd&&!gy(typeof dd.alert);function yy(){return yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},yy.apply(this,arguments)}function by(e){return function(t){return new Promise((function(n,o){var a=t;e(yy({},a,{success:function(e){a&&"function"==typeof a.success&&a.success(e),n(e)},onSuccess:function(e){a&&"function"==typeof a.onSuccess&&a.onSuccess(e),n(e)},fail:function(e){a&&"function"==typeof a.fail&&a.fail(e),o(e)},onFail:function(e){a&&"function"==typeof a.onFail&&a.onFail(e),o(e)},complete:function(e){a&&"function"==typeof a.complete&&a.complete(e)},onComplete:function(e){a&&"function"==typeof a.onComplete&&a.onComplete(e)}}))}))}}var xy=["_ext"];function Cy(){return Cy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Cy.apply(this,arguments)}var Ly=function(e,t){var n=e||{},o=n._ext,a=void 0===o?{}:o;return Cy({},function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(n,xy),a[t]||{})};function Ny(){return Ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ny.apply(this,arguments)}var Vy=function(e){var t="en";switch(e.toLowerCase()){case"zh_cn":case"zh-hans":case"zh-cn":case"chinese":t="zh_CN";break;case"zh_tw":case"zh-hant":case"zh-hk":t="zh_TW";break;default:t="en"}return t},ky=function(e){return function(){var t=e();return Sy(t)}},Sy=function(e){return Ny({},{pixelRatio:1,screenWidth:0,screenHeight:0,windowWidth:0,windowHeight:0,language:"",version:"",platform:""},e,{language:e.language?Vy(e.language):""})},Ay=function(e,t){return function(n){var o=Ly(n,t),a=Ny({},o,{success:function(e){o.success&&o.success(Sy(e))},complete:function(e){o.complete&&o.complete(e.pixelRatio?Sy(e):e)}});return by(e)(a).then(Sy)}},Ty="wechatMiniProgram",Oy="aliMiniApp",Py="bytedanceMicroApp",My="web",By="baiduSmartProgram",Iy="kuaishouMiniProgram",Ey="node";var Dy=ky((function(){return{pixelRatio:window.devicePixelRatio,screenWidth:window.document.documentElement.clientWidth,screenHeight:window.document.documentElement.clientHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight,language:navigator.language,version:navigator.appVersion,platform:(a=navigator.platform,(a?/(iphone|ipod|ipad)/.test(null==(e=navigator)||null==(t=e.userAgent)?void 0:t.toLowerCase())?"iOS":/android/.test(null==(n=navigator)||null==(o=n.userAgent)?void 0:o.toLowerCase())?"Android":a:"")||"")};var e,t,n,o,a}));const zy=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;try{var a=Dy();t&&t(a),o&&o(a)}catch(r){n&&n(r),o&&o(r)}}),My);const Fy=ky((function(){return{pixelRatio:window.devicePixelRatio,screenWidth:window.document.documentElement.clientWidth,screenHeight:window.document.documentElement.clientHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight,language:navigator.language,version:navigator.appVersion,platform:(a=navigator.platform,a?/(iphone|ipod|ipad)/.test(null==(e=navigator)||null==(t=e.userAgent)?void 0:t.toLowerCase())?"iOS":/android/.test(null==(n=navigator)||null==(o=n.userAgent)?void 0:o.toLowerCase())?"Android":a:"")};var e,t,n,o,a}));const jy=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;(wy?dd.getSystemInfo:my.getSystemInfo)({success:function(e){t&&t(e)},fail:function(e){n&&n(e)},complete:function(e){o&&o(e)}})}),Oy);const _y=ky((function(){return wy?dd.getSystemInfoSync():my.getSystemInfoSync()}));const Ry=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;wx.getSystemInfo({success:function(e){t&&t(e)},fail:function(e){n&&n(e)},complete:function(e){o&&o(e)}})}),Ty);const Hy=ky((function(){return wx.getSystemInfoSync()}));const Uy=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;tt.getSystemInfo({success:function(e){t&&t(e)},fail:function(e){n&&n(e)},complete:function(e){o&&o(e)}})}),Py);const $y=ky((function(){return tt.getSystemInfoSync()}));const Zy=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;ks.getSystemInfo({success:function(e){t&&t(e)},fail:function(e){n&&n(e)},complete:function(e){o&&o(e)}})}),Iy);const Wy=ky((function(){return ks.getSystemInfoSync()}));const Yy=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;swan.getSystemInfo({success:function(e){t&&t(e)},fail:function(e){n&&n(e)},complete:function(e){o&&o(e)}})}),By);const qy=ky((function(){return swan.getSystemInfoSync()}));var Gy=ky((function(){return{pixelRatio:1,screenWidth:1,screenHeight:1,windowWidth:1,windowHeight:1,language:"",version:"",platform:""}}));const Xy=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;try{var a=Gy();t&&t(a),o&&o(a)}catch(r){n&&n(r),o&&o(r)}}),Ey);const Ky=ky((function(){return{pixelRatio:1,screenWidth:1,screenHeight:1,windowWidth:1,windowHeight:1,language:"",version:"",platform:""}}));const Qy={getInfoSync:function(){if(sy)return Fy();if(py)return Wy();if(hy)return Hy();if(dy)return $y();if(uy)return _y();if(fy)return qy();if(cy)return Ky();throw new Error("Uni API:getInfoSync暂不支持")},getInfo:function(e){if(sy)return zy(e);if(py)return Zy(e);if(hy)return Ry(e);if(dy)return Uy(e);if(uy)return jy(e);if(fy)return Yy(e);if(cy)return Xy(e);throw new Error("Uni API:getInfo暂不支持")}};function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Jy.apply(this,arguments)}var eb=function(e,t){return function(n){void 0===n&&(n={});var o=Ly(n,t),a=Jy({hideAlbum:!1,scanType:["barCode","qrCode"]},o,{success:function(e){o.success&&o.success(e)},complete:function(e){o.complete&&o.complete(e)}});return by(e)(a)}};const tb=eb((function(e){var t=e.hideAlbum,n=e.scanType,o=e.success,a=e.fail,r=e.complete;my.scan({hideAlbum:t,scanType:n,success:o,fail:a,complete:r})}),Oy);var nb={barCode:"barCode",qrCode:"qrCode",dmCode:"datamatrix",pdf417Code:"pdf417"};const ob=eb((function(e){var t=e.hideAlbum,n=e.scanType,o=e.success,a=e.fail,r=e.complete;wx.scanCode({onlyFromCamera:t,scanType:nb[n],success:o,fail:a,complete:r})}),Ty),ab=eb((function(e){var t=e.hideAlbum,n=e.scanType,o=e.success,a=e.fail,r=e.complete;tt.scanCode({onlyFromCamera:t,scanType:n,success:o,fail:a,complete:r})}),Py),rb=eb((function(e){var t=e.success,n=e.fail,o=e.complete;swan.scanCode({success:t,fail:n,complete:o})}),By);var ib={barCode:"barCode",qrCode:"qrCode",dmCode:"datamatrix",pdf417Code:"pdf417"};const lb=eb((function(e){var t=e.hideAlbum,n=e.scanType,o=e.success,a=e.fail,r=e.complete;ks.scanCode({onlyFromCamera:t,scanType:ib[n],success:o,fail:a,complete:r})}),Iy);const sb=function(e){if(sy)return function(){throw new Error("Uni API: scanCode不支持")}();if(py)return lb(e);if(hy)return ob(e);if(dy)return ab(e);if(uy)return tb(e);if(fy)return rb(e);throw new Error("Uni API:scanCode暂不支持")};function cb(){return cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},cb.apply(this,arguments)}var ub=function(e){return cb({},e,{tapIndex:null!=e.tapIndex?e.tapIndex:e.index})};const db=(fb=function(e){e.items=e.itemList,wy?dd.showActionSheet(e):my.showActionSheet(e)},pb=Oy,function(e){return e=Ly(e,pb),by(fb)(cb({},e,{success:function(t){e.success&&e.success(ub(t))},complete:function(t){e.complete&&e.complete(t)}})).then(ub)});var fb,pb;function hb(){return hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},hb.apply(this,arguments)}function mb(e,t){return function(n){return by(e)(Ly(n,t))}}function vb(e,t){return function(n){return by(e)((o=Ly(n,t),(a=hb({},o)).frontColor||(a.frontColor="#000000"),a));var o,a}}const gb={setNavigationBarColor:vb((function(e){return wy?dd.setNavigationBar(e):my.setNavigationBar(e)}),Oy),setNavigationBarTitle:mb((function(e){return wy?dd.setNavigationBar(e):my.setNavigationBar(e)}),Oy)};const wb={setNavigationBarTitle:mb((function(e){var t=e.title,n=e.success,o=void 0===n?function(){}:n,a=e.fail,r=void 0===a?function(){}:a,i=e.complete,l=void 0===i?function(){}:i;try{document.title=t,o(),l()}catch(s){r(),l()}}),My)};const yb={setNavigationBarColor:vb((function(e){wx.setNavigationBarColor(e)}),Ty),setNavigationBarTitle:mb((function(e){return wx.setNavigationBarTitle(e)}),Ty),getMenuButtonBoundingClientRect:function(){return wx.getMenuButtonBoundingClientRect()}};const bb={setNavigationBarColor:vb((function(e){tt.setNavigationBarColor(e)}),Py),setNavigationBarTitle:mb((function(e){return tt.setNavigationBarTitle(e)}),Py),getMenuButtonBoundingClientRect:function(){return tt.getMenuButtonBoundingClientRect()}};const xb={setNavigationBarColor:vb((function(e){ks.setNavigationBarColor(e)}),Iy),setNavigationBarTitle:mb((function(e){return ks.setNavigationBarTitle(e)}),Iy),getMenuButtonBoundingClientRect:function(){return ks.getMenuButtonBoundingClientRect()}};const Cb={setNavigationBarColor:vb((function(e){swan.setNavigationBarColor(e)}),By),setNavigationBarTitle:mb((function(e){return swan.setNavigationBarTitle(e)}),By),getMenuButtonBoundingClientRect:function(){return swan.getMenuButtonBoundingClientRect()}};const Lb={setNavigationBarColor:function(e){if(py)return xb.setNavigationBarColor(e);if(hy)return yb.setNavigationBarColor(e);if(dy)return bb.setNavigationBarColor(e);if(uy)return gb.setNavigationBarColor(e);if(fy)return Cb.setNavigationBarColor(e);throw new Error("Uni API:setNavigationBarColor暂不支持")},setNavigationBarTitle:function(e){if(sy)return wb.setNavigationBarTitle(e);if(py)return xb.setNavigationBarTitle(e);if(hy)return yb.setNavigationBarTitle(e);if(dy)return bb.setNavigationBarTitle(e);if(uy)return gb.setNavigationBarTitle(e);if(fy)return Cb.setNavigationBarTitle(e);throw new Error("Uni API:setNavigationBarTitle暂不支持")},getMenuButtonBoundingClientRect:function(){if(py)return xb.getMenuButtonBoundingClientRect();if(hy)return yb.getMenuButtonBoundingClientRect();if(dy)return bb.getMenuButtonBoundingClientRect();if(fy)return Cb.getMenuButtonBoundingClientRect();throw new Error("Uni API:getMenuButtonBoundingClientRect暂不支持")}};function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Nb.apply(this,arguments)}var Vb=function(e){return Nb({},e,{latitude:String(e.latitude),longitude:String(e.longitude),accuracy:String(e.accuracy),horizontalAccuracy:String(e.horizontalAccuracy)})};function kb(e,t){return function(n){return by(e)((o=Ly(n,t),void 0===o&&(o={}),Nb({},o,{success:function(e){o.success&&o.success(Vb(e))},complete:function(e){o.complete&&o.complete(e)}}))).then(Vb);var o}}function Sb(e,t){return function(n){return by(e)(Ly(n,t))}}function Ab(e,t){return function(n){return by(e)(Ly(n,t))}}function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Tb.apply(this,arguments)}const Ob={getLocation:kb((function(e){return e.resultType=e.resultType||0,null!=e&&e.type&&"string"==typeof e.type&&(e.type=0),null!=e&&e.resultType&&"number"==typeof e.resultType&&!isNaN(e.resultType)&&(e.type=e.resultType),wy?dd.getLocation(e):my.getLocation(e)}),Oy),openLocation:Sb((function(e){var t=Tb({},e,{latitude:String(e.latitude),longitude:String(e.longitude)});wy?dd.openLocation(t):my.openLocation(t)}),Oy),chooseLocation:Ab((function(e){return wy?dd.chooseLocation(e):my.chooseLocation(e)}),Oy)};const Pb={getLocation:kb((function(e){var t=e.success,n=void 0===t?function(){}:t,o=e.fail,a=void 0===o?function(){}:o,r=e.complete,i=void 0===r?function(){}:r;if("geolocation"in navigator)navigator.geolocation.getCurrentPosition((function(e){n(e.coords),i(e.coords)}),(function(e){a(e),i(e)}));else{var l={code:-1,message:"地理位置服务不可用"};a(l),i(l)}}),My),openLocation:Sb((function(){throw new Error("Uni API: openLocation不支持")}),My),chooseLocation:Ab((function(){throw new Error("@uni/apis: chooseLocation不支持")}),My)};function Mb(){return Mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mb.apply(this,arguments)}const Bb={getLocation:kb((function(e){return wx.getLocation(e)}),Ty),openLocation:Sb((function(e){return wx.openLocation(Mb({},e,{latitude:Number(e.latitude),longitude:Number(e.longitude)}))}),Ty),chooseLocation:Ab((function(e){return wx.chooseLocation(e)}),Ty)};function Ib(){return Ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ib.apply(this,arguments)}const Eb={getLocation:kb((function(e){return tt.getLocation(e)}),Py),openLocation:Sb((function(e){return tt.openLocation(Ib({},e,{latitude:Number(e.latitude),longitude:Number(e.longitude)}))}),Py),chooseLocation:Ab((function(e){return tt.chooseLocation(e)}),Py)};function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Db.apply(this,arguments)}const zb={getLocation:kb((function(e){return swan.getLocation(e)}),By),openLocation:Sb((function(e){return swan.openLocation(Db({},e,{latitude:Number(e.latitude),longitude:Number(e.longitude)}))}),By),chooseLocation:Ab((function(e){return swan.chooseLocation(e)}),By)};function Fb(){return Fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Fb.apply(this,arguments)}const jb={getLocation:kb((function(e){return ks.getLocation(e)}),Iy),openLocation:Sb((function(e){return ks.openLocation(Fb({},e,{latitude:Number(e.latitude),longitude:Number(e.longitude)}))}),Iy),chooseLocation:Ab((function(e){return ks.chooseLocation(e)}),Iy)};const _b=function(e){if(sy)return Pb.getLocation(e);if(py)return jb.getLocation(e);if(hy)return Bb.getLocation(e);if(dy)return Eb.getLocation(e);if(uy)return Ob.getLocation(e);if(fy)return zb.getLocation(e);throw new Error("Uni API:getLocation暂不支持")};function Rb(){return Rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rb.apply(this,arguments)}var Hb=function(e,t){var n=function(e){return Rb({},e,{tempFiles:e.tempFiles||e.files,tempFilePaths:e.tempFilePaths})};return function(o){return o=Ly(o,t),by(e)(Rb({},o,{count:o.count||1,success:function(e){o.success&&o.success(n(e))},complete:function(e){o.complete&&o.complete(e)}})).then(n)}},Ub=function(e,t){var n=function(e){return{tempFilePath:e.tempFilePath||(e.filePaths||[])[0]||(e.apFilePaths||[])[0]||""}};return function(o){return o=Ly(o,t),by(e)(Rb({},o,{success:function(e){o.success&&o.success(n(e))},complete:function(e){o.complete&&o.complete(e)}})).then(n)}},$b=function(e,t){return function(n){return by(e)(Ly(n,t))}},Zb=function(e,t){return function(n){return by(e)(Ly(n,t))}},Wb=function(e,t){return function(n){return by(e)(Ly(n,t))}};const Yb={chooseImage:Hb((function(e){return wy?dd.chooseImage(e):my.chooseImage(e)}),Oy),compressImage:Ub((function(e){return wy?e.filePaths=[e.src]:e.apFilePaths=[e.src],e&&"number"==typeof e.quality&&(e.compressLevel=e.quality),wy?dd.compressImage(e):my.compressImage(e)}),Oy),getImageInfo:$b((function(e){return wy?dd.getImageInfo(e):my.getImageInfo(e)}),Oy),previewImage:Zb((function(e){return wy?dd.previewImage(e):my.previewImage(e)}),Oy),saveImage:Wb((function(e){return wy?dd.saveImage(e):my.saveImage(e)}),Oy)};function qb(){return qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qb.apply(this,arguments)}var Gb=function(e,t){var n=function(e){return qb({},e,{tempFilePath:e.tempFilePath||e.filePath})};return function(o){return o=Ly(o,t),by(e)(qb({},o,{success:function(e){o.success&&o.success(n(e))},complete:function(e){o.complete&&o.complete(e)}})).then(n)}},Xb=function(e,t){var n=function(e){return qb({},e,{tempFiles:(e.tempFiles||e.files).map((function(e){return qb({},e,{tempFilePath:e.tempFilePath||e.path})}))})};return function(o){return void 0===o&&(o={}),o=Ly(qb({count:9,sizeType:["original","compressed"],sourceType:["camera","album"],mediaType:["image","video"],maxDuration:60},o),t),by(e)(qb({},o,{success:function(e){o.success&&o.success(n(e))},fail:function(e){o.fail&&o.fail(e)},complete:function(e){o.complete&&o.complete(e)}})).then(n)}};const Kb=Xb((function(e){void 0===e&&(e={});var t=e,n=t.count,o=void 0===n?9:n,a=t.success,r=void 0===a?function(){}:a,i=t.fail,l=void 0===i?function(){}:i,s=t.complete,c=void 0===s?function(){}:s;try{var u=function(e,t){var n=document.createElement("INPUT");return n.name="file",n.id="input-"+1e8*Math.random(),n.type="file",e&&n.setAttribute("multiple","multiple"),n.style.display="none",t&&n.setAttribute("accept",t),document.body.appendChild(n),n}(o>1,e.accept),d=[];u.addEventListener("change",(function(e){var t={tempFiles:(d=e.target.files&&Array.from(e.target.files).slice(0,o)).map((function(e){return{tempFilePath:window.URL.createObjectURL(e),size:e.size}})),files:d};r(t),c(t),u.remove&&u.remove()}),!1);var f=document.createEvent("MouseEvents");f.initEvent("click",!0,!0),u.dispatchEvent(f)}catch(p){l(p),c(p)}}),My);const Qb=Hb((function(e){void 0===e&&(e={});var t=e,n=t.count,o=void 0===n?1:n,a=t.success,r=void 0===a?function(){}:a,i=t.fail,l=void 0===i?function(){}:i,s=t.complete,c=void 0===s?function(){}:s;Kb({count:o,accept:"image/*"}).then((function(e){var t={tempFilePaths:e.tempFiles.map((function(e){return e.tempFilePath})),tempFiles:e.tempFiles.map((function(e){return{path:e.tempFilePath,size:e.size}})),files:e.files};r(t),c(t)})).catch((function(e){l(e),c(e)}))}),My);const Jb=function(){throw new Error("Uni API: compressImage不支持")};const ex=$b((function(e){var t=new Image;if(t.src=e.src,t.naturalWidth){var n={width:t.naturalWidth,height:t.naturalHeight,path:e.src};e.success(n),e.complete(n)}else{var o=function(){var n={width:t.width,height:t.height,path:e.src};e.success(n),e.complete(n)};if(t.complete)o();else{var a=null,r=function(){clearInterval(a),a=null};a=setInterval((function(){(t.width>0||t.height>0)&&(o(),r())}),40),t.onload=function(){a&&(o(),r())},t.onabort=t.onerror=function(t){e.fail(t),e.complete(t),r()}}}}),My);var tx="__universal_preview_image",nx=("."+tx+" {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 9999;\n text-align: center;\n background: #000;\n box-sizing: border-box;\n outline: none;\n overflow: hidden;\n animation-duration: .3s;\n animation-fill-mode: both;\n}\n."+tx+"_pageindex {\n position: absolute;\n top: 12px;\n left: 0;\n right: 0;\n text-align: center;\n color: #fff;\n font-size: 16px;\n z-index: 2;\n}\n."+tx+"_swiper {\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1;\n display: flex;\n align-items: center;\n transition-property: transform;\n box-sizing: content-box;\n}\n."+tx+"_item {\n max-height: 70%;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n width: 100%;\n position: relative;\n transition-property: transform;\n overflow: hidden;\n}\n."+tx+"_img {\n width: 100%;\n}\n@keyframes "+tx+"_fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes "+tx+"_fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}").replace(/\n/g,""),ox=null;const ax={chooseImage:Qb,compressImage:Jb,getImageInfo:ex,previewImage:Zb((function(e){var t=(e||{}).urls,n=void 0===t?[]:t,o=(e||{}).current,a=void 0===o?0:o;if("[object Array]"!==Object.prototype.toString.call(n))throw new Error("the arguments must contain urls that type is a Array");if(n.length<=0)throw new Error("the urls`s length is at least 1");if(!Number.isSafeInteger(a))throw new Error("the current must be a safe integer");a=Math.min(Math.max(a,0),n.length-1),ox||((ox=document.createElement("style")).innerHTML=nx,document.body.appendChild(ox));var r=document.createElement("div");r.className=tx,r.style.animationName=tx+"_fadeIn",r.addEventListener("click",(function(){r&&(r.style.animationName=tx+"_fadeOut"),setTimeout((function(){r&&document.body.removeChild(r),r=null}),300)}));var i=document.createElement("div");i.className=tx+"_pageindex",i.innerText=a+1+"/"+n.length,r.appendChild(i);var l=document.createElement("div");l.className=tx+"_swiper";var s=document.documentElement.clientWidth,c=0;l.addEventListener("touchstart",(function(e){e.touches.length>1&&(e.stopPropagation(),e.preventDefault()),c=e.targetTouches[0].pageX})),l.addEventListener("touchmove",(function(e){e.touches.length>1&&(e.stopPropagation(),e.preventDefault());var t=e.targetTouches[0].pageX-c;l.style.transform="translateX("+(-s*a+1*t)+"px)"})),l.addEventListener("touchend",(function(e){var t=e.changedTouches[0].pageX-c;Math.abs(1*t)>s/5&&(a=t<0?Math.min(a+1,n.length-1):Math.max(a-1,0)),i.innerText=a+1+"/"+n.length;l.style.transitionDuration="300ms",l.style.transform="translateX("+-s*a+"px)",setTimeout((function(){l.style.transitionDuration="0ms"}),300)})),l.style.transform="translateX("+-s*a+"px)",r.appendChild(l),n.forEach((function(e){var t=document.createElement("div");t.className=tx+"_item",t.addEventListener("click",(function(e){e.stopPropagation(),r&&(r.style.animationName=tx+"_fadeOut"),setTimeout((function(){r&&document.body.removeChild(r),r=null}),300)})),l.appendChild(t);var n=document.createElement("img");n.className=tx+"_img",n.src=e,t.appendChild(n),t.addEventListener("touchstart",(function(e){if(e.touches.length>1){e.stopPropagation(),e.preventDefault();var n=e.touches[0],o=e.touches[1],a=Math.abs(o.pageX-n.pageX),r=Math.abs(o.pageY-n.pageY);t.touchDistance=Math.sqrt(a*a+r*r)}else t.touched={x:e.touches[0].pageX,y:e.touches[0].pageY}})),t.addEventListener("touchmove",(function(e){if(e.touches.length>1){e.stopPropagation(),e.preventDefault();var o=Math.abs(e.touches[0].pageX-e.touches[1].pageX),a=Math.abs(e.touches[1].pageY-e.touches[1].pageY),r=Math.sqrt(o*o+a*a);if(t.touchDistance){var i=(t.previousPinchScale||1)+(r-t.touchDistance)/t.touchDistance,l=Math.max(1,i);n.style.transform="scale("+l+")",t.previousPinchScale=l}t.touchDistance=r}else if(t.previousPinchScale>1){e.stopPropagation();var s=(t.preX||0)+(e.touches[0].pageX-t.touched.x),c=(t.preY||0)+(e.touches[0].pageY-t.touched.y);n.style.transform="scale("+t.previousPinchScale+") translate("+s+"px, "+c+"px)",t.preX=s,t.preY=c,t.touched={x:e.touches[0].pageX,y:e.touches[0].pageY}}}))})),document.body.appendChild(r)}),My),saveImage:function(){throw new Error("Uni API: saveImage不支持")}};function rx(){return rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},rx.apply(this,arguments)}function ix(){return ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ix.apply(this,arguments)}const lx={chooseImage:Hb((function(e){return wx.chooseImage(e)}),Ty),compressImage:Ub((function(e){return e&&"number"==typeof e.quality&&(e.quality=33*e.quality),wx.compressImage(e)}),Ty),getImageInfo:$b((function(e){return wx.getImageInfo(e)}),Ty),previewImage:Zb((function(e){wx.previewImage(rx({},e,{current:"number"==typeof e.current?e.urls[e.current]:e.urls[0]}))}),Ty),saveImage:Wb((function(e){wx.saveImageToPhotosAlbum(ix({},e,{filePath:e.url}))}),Ty)};function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},sx.apply(this,arguments)}function cx(){return cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},cx.apply(this,arguments)}const ux={chooseImage:Hb((function(e){return tt.chooseImage(e)}),Py),compressImage:Ub((function(e){return e&&"number"==typeof e.quality&&(e.quality=33*e.quality),tt.compressImage(e)}),Py),getImageInfo:$b((function(e){return tt.getImageInfo(e)}),Py),previewImage:Zb((function(e){tt.previewImage(sx({},e,{current:"number"==typeof e.current?e.urls[e.current]:e.urls[0]}))}),Py),saveImage:Wb((function(e){tt.saveImageToPhotosAlbum(cx({},e,{filePath:e.url}))}),Py)};function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dx.apply(this,arguments)}function fx(){return fx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fx.apply(this,arguments)}const px={chooseImage:Hb((function(e){return ks.chooseImage(e)}),Iy),compressImage:Ub((function(e){return e&&"number"==typeof e.quality&&(e.quality*=33),ks.compressImage(e)}),Iy),getImageInfo:$b((function(e){return ks.getImageInfo(e)}),Iy),previewImage:Zb((function(e){ks.previewImage(dx({},e,{current:"number"==typeof e.current?e.urls[e.current]:e.urls[0]}))}),Iy),saveImage:Wb((function(e){ks.saveImageToPhotosAlbum(fx({},e,{filePath:e.url}))}),Iy)};function hx(){return hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},hx.apply(this,arguments)}function mx(){return mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},mx.apply(this,arguments)}const vx={chooseImage:Hb((function(e){return swan.chooseImage(e)}),By),compressImage:Ub((function(e){return e&&"number"==typeof e.quality&&(e.quality*=33),swan.compressImage(e)}),By),getImageInfo:$b((function(e){return swan.getImageInfo(e)}),By),previewImage:Zb((function(e){swan.previewImage(hx({},e,{current:"number"==typeof e.current?e.urls[e.current]:e.urls[0]}))}),By),saveImage:Wb((function(e){swan.saveImageToPhotosAlbum(mx({},e,{filePath:e.url}))}),By)};const gx={chooseImage:function(e){if(sy)return ax.chooseImage(e);if(py)return px.chooseImage(e);if(hy)return lx.chooseImage(e);if(dy)return ux.chooseImage(e);if(uy)return Yb.chooseImage(e);if(fy)return vx.chooseImage(e);throw new Error("Uni API:chooseImage暂不支持")},compressImage:function(e){if(sy)return ax.compressImage();if(py)return px.compressImage(e);if(hy)return lx.compressImage(e);if(dy)return ux.compressImage(e);if(uy)return Yb.compressImage(e);if(fy)return vx.compressImage(e);throw new Error("Uni API:compressImage暂不支持")},getImageInfo:function(e){if(sy)return ax.getImageInfo(e);if(py)return px.getImageInfo(e);if(hy)return lx.getImageInfo(e);if(dy)return ux.getImageInfo(e);if(uy)return Yb.getImageInfo(e);if(fy)return vx.getImageInfo(e);throw new Error("Uni API:getImageInfo暂不支持")},previewImage:function(e){if(sy)return ax.previewImage(e);if(py)return px.previewImage(e);if(hy)return lx.previewImage(e);if(dy)return ux.previewImage(e);if(uy)return Yb.previewImage(e);if(fy)return vx.previewImage(e);throw new Error("Uni API:previewImage暂不支持")},saveImage:function(e){if(sy)return ax.saveImage();if(py)return px.saveImage(e);if(hy)return lx.saveImage(e);if(dy)return ux.saveImage(e);if(uy)return Yb.saveImage(e);if(fy)return vx.saveImage(e);throw new Error("Uni API:saveImage暂不支持")}};function yx(){return yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},yx.apply(this,arguments)}const bx={chooseVideo:Gb((function(e){return wy?dd.chooseVideo(e):my.chooseVideo(e)}),Oy),createVideoContext:function(e){return wy?dd.createVideoContext(e):my.createVideoContext(e)},chooseMedia:Xb((function(e){var t=e.mediaType,n=function(){return my.chooseImage(yx({},e,{success:function(t){var n={type:"image",tempFiles:t.tempFiles.map((function(e){return yx({},e,{tempFilePath:e.path})}))};e.success(n)}}))},o=function(){return my.chooseVideo(yx({},e,{success:function(t){var n={type:"video",tempFiles:[t]};e.success(n)}}))};1===t.length&&"image"===t[0]?n():1===t.length&&"video"===t[0]?o():db({itemList:["图片","视频"]}).then((function(e){if(0===e.tapIndex)n();else{if(1!==e.tapIndex)return Promise.reject({errMsg:"用户取消选择"});o()}}))}),Oy)};function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xx.apply(this,arguments)}const Cx={chooseVideo:Gb((function(e){void 0===e&&(e={});var t=e,n=t.success,o=void 0===n?function(){}:n,a=t.fail,r=void 0===a?function(){}:a,i=t.complete,l=void 0===i?function(){}:i;Kb({count:1,accept:"video/*"}).then((function(e){var t=xx({},e.tempFiles[0],{files:e.files});o(t),l(t)})).catch((function(e){r(e),l(e)}))}),My),createVideoContext:function(){throw new Error("@uni/apis: createVideoContext不支持")},chooseMedia:Kb};const Lx={chooseVideo:Gb((function(e){return wx.chooseVideo(e)}),Ty),createVideoContext:function(e,t){return t?wx.createVideoContext(e,t):wx.createVideoContext(e)},chooseMedia:Xb((function(e){return wx.canIUse("chooseMedia")?wx.chooseMedia(e):wx.chooseImage(e)}),Ty)};const Nx={chooseVideo:Gb((function(e){return tt.chooseVideo(e)}),Py),createVideoContext:function(e,t){return t?tt.createVideoContext(e,t):tt.createVideoContext(e)},chooseMedia:Xb((function(e){return tt.chooseImage(e)}),Py)};const Vx={chooseVideo:Gb((function(e){return swan.chooseVideo(e)}),By),createVideoContext:function(e){return swan.createVideoContext(e)},chooseMedia:Xb((function(e){return swan.canIUse("chooseMedia")?swan.chooseMedia(e):swan.chooseImage(e)}),By)};const kx={chooseVideo:Gb((function(e){return ks.chooseVideo(e)}),Iy),createVideoContext:function(e,t){return t?ks.createVideoContext(e,t):ks.createVideoContext(e)},chooseMedia:Xb((function(e){return ks.canIUse("chooseMedia")?ks.chooseMedia(e):ks.chooseImage(e)}),Iy)};const Sx={chooseMedia:function(e){if(sy)return Cx.chooseMedia(e);if(py)return kx.chooseMedia(e);if(hy)return Lx.chooseMedia(e);if(dy)return Nx.chooseMedia(e);if(uy)return bx.chooseMedia(e);if(fy)return Vx.chooseMedia(e);throw new Error("@uni/apis:chooseMedia暂不支持")},chooseVideo:function(e){if(sy)return Cx.chooseVideo(e);if(py)return kx.chooseVideo(e);if(hy)return Lx.chooseVideo(e);if(dy)return Nx.chooseVideo(e);if(uy)return bx.chooseVideo(e);if(fy)return Vx.chooseVideo(e);throw new Error("@uni/apis:chooseVideo暂不支持")},createVideoContext:function(e,t){if(sy)return Cx.createVideoContext();if(py)return kx.createVideoContext(e,t);if(hy)return Lx.createVideoContext(e,t);if(dy)return Nx.createVideoContext(e,t);if(uy)return bx.createVideoContext(e);if(fy)return Vx.createVideoContext(e);throw new Error("@uni/apis:createVideoContext暂不支持")}};function Ax(e,t){return function(n){return by(e)(Ly(n,t))}}var Tx=["phoneNumber"];function Ox(){return Ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ox.apply(this,arguments)}const Px=Ax((function(e){if(wy)dd.showCallMenu(e);else{var t=e.phoneNumber,n=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,Tx);my.makePhoneCall(Ox({},n,{number:t}))}}),Oy);const Mx=Ax((function(e){var t=null==e?void 0:e.phoneNumber,n=document.createElement("a");n.href="tel:"+t,n.innerHTML="tel:"+t,n.style.display="none",document.body.appendChild(n),setTimeout((function(){n.click(),setTimeout((function(){try{document.body.removeChild(n)}catch(t){}finally{null==e||e.success()}}),0)}),0)}),My);const Bx=Ax((function(e){wx.makePhoneCall(e)}),Ty);const Ix=Ax((function(e){tt.makePhoneCall(e)}),Py);const Ex=Ax((function(e){ks.makePhoneCall(e)}),Iy);const Dx=Ax((function(e){swan.makePhoneCall(e)}),By);function zx(e){if(sy)return Mx(e);if(py)return Ex(e);if(hy)return Bx(e);if(dy)return Ix(e);if(uy)return Px(e);if(fy)return Dx(e);throw new Error("Uni API:makePhoneCall 暂不支持")}var Fx=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},jx=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function _x(e){return Fx(this,void 0,void 0,(function(){var t,n,o,a,r,i,l,s,c,u,d,f;return jx(this,(function(p){return t=e.endX,n=e.endY,o=e.longitude,a=e.latitude,r=e.endAddress,i=e.medium,l=o||t||-1,s=a||n||-1,c=document.createElement("a"),u="",d="destination=name:".concat(r||"","|latlng:").concat(s,",").concat(l,"&coord_type=wgs84"),u="bdapp://map/direction?".concat(d),cw&&(u="baidumap://map/direction?".concat(d)),"gaode"===i&&(f="dlat=".concat(s,"&dlon=").concat(l,"&dname=").concat(r,"&dev=1&t=0"),u="amapuri://route/plan/?".concat(f),cw&&(u="iosamap://path?".concat(f))),c.setAttribute("href",u),c.setAttribute("style","visibility:hidden;"),c.setAttribute("id","navgatorLink"),document.getElementById("navgatorLink")&&document.body.removeChild(document.getElementById("navgatorLink")),document.body.appendChild(c),c.click(),[2]}))}))}var Rx=3.141592653589793,Hx=6378245,Ux=.006693421622965943;function $x(e,t){if(function(e,t){return e<72.004||e>137.8347||t<.8293||t>55.8271||!1}(e,t))return{longitude:e,latitude:t};var n=function(e,t){var n=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*Rx)+20*Math.sin(2*e*Rx))/3,n+=2*(20*Math.sin(t*Rx)+40*Math.sin(t/3*Rx))/3,n+2*(160*Math.sin(t/12*Rx)+320*Math.sin(t*Rx/30))/3}(e-105,t-35),o=function(e,t){var n=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*Rx)+20*Math.sin(2*e*Rx))/3,n+=2*(20*Math.sin(e*Rx)+40*Math.sin(e/3*Rx))/3,n+2*(150*Math.sin(e/12*Rx)+300*Math.sin(e/30*Rx))/3}(e-105,t-35),a=t/180*Rx,r=Math.sin(a);r=1-Ux*r*r;var i=Math.sqrt(r);return n=180*n/(Hx*(1-Ux)/(r*i)*Rx),{longitude:2*e-(e+(o=180*o/(Hx/i*Math.cos(a)*Rx))),latitude:2*t-(t+n)}}var Zx=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},Wx=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function Yx(e){return Zx(this,void 0,void 0,(function(){return Wx(this,(function(t){switch(t.label){case 0:return pw?(console.info("jsi use jinban"),[4,(n="https://jzb.beijing.gov.cn/oss/focus-desktop/gwork/jssdk/JZB-JSSDK-1.1.0.js",new Promise((function(e,t){try{var o=document.createElement("script");o.type="text/javascript",o.src=n,document.body.appendChild(o),o.onload=function(){e()}}catch(a){t()}})))]):[3,2];case 1:return t.sent(),[2,new Promise((function(t,n){try{console.log("getDeviceInfo",window.jme.device.getDeviceInfo()),window.jme.device.getDeviceInfo()&&window.jme.location.startLocationUpdate({callBackInterval:0,callback:function(o){if(console.log("startLocationUpdate",o),o&&0===o.statusCode){var a=$x(o.longitude,o.latitude),r={accuracy:o.accuracy.toString(),latitude:a.latitude.toString(),longitude:a.longitude.toString(),horizontalAccuracy:o.accuracy.toString()};e.success&&e.success(r),t(r)}else{var i="获取定位失败,statusCode".concat(o.statusCode);e.fail&&e.fail(i),n(i)}}})}catch(o){e.fail&&e.fail(o),n(o)}}))];case 2:return[2,_b(e)]}var n}))}))}var qx=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gx=function(e){function t(){var t=e.call(this)||this;return t.device={makePhoneCall:zx,scan:sb,getSystemInfo:Qy.getInfo},t.location={getLocation:Yx,navigateTo:_x},t.media={chooseImage:gx.chooseImage,chooseVideo:Sx.chooseVideo},t.navigationBar={setNavigationBarTitle:Lb.setNavigationBarTitle},t}return qx(t,e),t.prototype.isEnvironmentEnabled=function(){return!0},t}(ow),Xx=3.141592653589793,Kx=6378245,Qx=.006693421622965943;function Jx(e,t){if(aC(e,t))return[e,t];var n=tC(e-105,t-35),o=nC(e-105,t-35),a=t/180*Xx,r=Math.sin(a);r=1-Qx*r*r;var i=Math.sqrt(r);return n=180*n/(Kx*(1-Qx)/(r*i)*Xx),[e+(o=180*o/(Kx/i*Math.cos(a)*Xx)),t+n]}function eC(e,t){if(aC(e,t))return[e,t];var n=tC(e-105,t-35),o=nC(e-105,t-35),a=t/180*Xx,r=Math.sin(a);r=1-Qx*r*r;var i=Math.sqrt(r);return n=180*n/(Kx*(1-Qx)/(r*i)*Xx),[2*e-(e+(o=180*o/(Kx/i*Math.cos(a)*Xx))),2*t-(t+n)]}function tC(e,t){var n=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*Xx)+20*Math.sin(2*e*Xx))/3,n+=2*(20*Math.sin(t*Xx)+40*Math.sin(t/3*Xx))/3,n+=2*(160*Math.sin(t/12*Xx)+320*Math.sin(t*Xx/30))/3}function nC(e,t){var n=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*Xx)+20*Math.sin(2*e*Xx))/3,n+=2*(20*Math.sin(e*Xx)+40*Math.sin(e/3*Xx))/3,n+=2*(150*Math.sin(e/12*Xx)+300*Math.sin(e/30*Xx))/3}function oC(e,t){var n,o,a,r,i,l=(n=52.35987755982988,o=e-.0065,a=t-.006,r=Math.sqrt(o*o+a*a)-2e-5*Math.sin(a*n),i=Math.atan2(a,o)-3e-6*Math.cos(o*n),[r*Math.cos(i),r*Math.sin(i)]);return eC(l[0],l[1])}function aC(e,t){return e<72.004||e>137.8347||t<.8293||t>55.8271||!1}function rC(e){return new Promise((function(t,n){if(window.jsInterface&&window.jsInterface.getLocationInfo){var o=setTimeout((function(){n(new Error("定位超时"))}),15e3);window.callbackLocation=function(a){var r=a;if("string"==typeof r&&(r=JSON.parse(r)),r)if(r.error)n(new Error(""+r.error)),clearTimeout(o);else{var i=oC(r.longitude,r.latitude);(!i||i.length<2)&&(n(new Error("定位失败")),clearTimeout(o));var l={longitude:i[0]+"",latitude:i[1]+"",address:"".concat(r.address),accuracy:"",horizontalAccuracy:""};e&&e.success&&e.success(l),t(l),clearTimeout(o)}else n(new Error("定位失败")),clearTimeout(o)},window.jsInterface&&window.jsInterface.getLocationInfo()}else n(new Error("不存在对应方法,无法调用定位"))}))}var iC=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),lC=function(e){function t(){var t=e.call(this)||this;return t.location={getLocation:rC},t}return iC(t,e),t.prototype.isEnvironmentEnabled=function(){return!0},t}(ow),sC=function(){return new Promise((function(e,t){try{var n=document.createElement("script");n.type="text/javascript",n.src="https://g.alicdn.com/dingding/dingtalk-jsapi/3.0.12/dingtalk.open.js",document.body.appendChild(n),n.onload=function(){e()}}catch(o){t()}}))};function cC(e,t){void 0===t&&(t=0);var n=parseInt(e);return isNaN(n)?t:n}var uC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},dC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function fC(e){return uC(this,void 0,void 0,(function(){return dC(this,(function(t){switch(t.label){case 0:return window.dd?[3,2]:[4,sC()];case 1:t.sent(),t.label=2;case 2:return[2,new Promise((function(t,n){window.dd.device.geolocation.get({targetAccuracy:200,coordinate:1,withReGeocode:cC(e.resultType)>0,useCache:!1,onSuccess:function(n){var o=eC(n.longitude,n.latitude),a={longitude:(null==o?void 0:o[0])||n.longitude,latitude:(null==o?void 0:o[1])||n.latitude,accuracy:n.accuracy,horizontalAccuracy:"",address:n.address,province:n.province,city:n.city,district:n.district,road:n.road,netType:n.netType,operatorType:n.operatorType,isWifiEnabled:n.isWifiEnabled,isGpsEnabled:n.isGpsEnabled,isFromMock:n.isFromMock,provider:n.provider,isMobileEnabled:n.isMobileEnabled};e.success&&e.success(a),t(a)},onFail:function(t){e.fail&&e.fail(t),n(t)}})}))]}}))}))}var pC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},hC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function mC(e){return pC(this,void 0,void 0,(function(){var t,n,o,a,r,i,l,s,c;return hC(this,(function(u){switch(u.label){case 0:return t=e.endX,n=e.endY,o=e.longitude,a=e.latitude,r=e.endAddress,i=o||t||-1,l=a||n||-1,window.dd?[3,2]:[4,sC()];case 1:u.sent(),u.label=2;case 2:return s=window.dd&&window.dd.biz.map.view,c=Jx(i,l),s&&s({latitude:c[1],longitude:c[0],title:r}),[2]}}))}))}var vC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},gC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function wC(e){var t=e.title,n=e.success,o=void 0===n?function(){}:n,a=e.complete,r=void 0===a?function(){}:a;return vC(this,void 0,void 0,(function(){var e;return gC(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),window.dd?[3,2]:[4,sC()];case 1:n.sent(),n.label=2;case 2:return window.dd.biz.navigation.setTitle({title:t}),o(),r(),[3,4];case 3:return e=n.sent(),console.error(e),[3,4];case 4:return[2]}}))}))}var yC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},bC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function xC(e){return yC(this,void 0,void 0,(function(){var t,n,o,a;return bC(this,(function(r){switch(r.label){case 0:return window.dd?[3,2]:[4,sC()];case 1:r.sent(),r.label=2;case 2:return t=e.success,n=e.fail,o=e.phoneNumber,(a=window.dd&&window.dd.biz.telephone.showCallMenu)&&a({phoneNumber:o,code:"+86",showDingCall:!0,onSuccess:t,onFail:n}),[2]}}))}))}var CC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},LC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function NC(e){return CC(this,void 0,void 0,(function(){var t,n,o,a,r,i,l;return LC(this,(function(s){switch(s.label){case 0:return window.dd?[3,2]:[4,sC()];case 1:s.sent(),s.label=2;case 2:return t=e.success,n=e.fail,o=e.scanType,a=window.dd&&window.dd.biz.util.scan,r="all",o&&(i=o.indexOf("qrCode")>-1,l=o.indexOf("barCode")>-1,i&&!l&&(r="qrCode"),!i&&l&&(r="barCode")),a&&a({type:r,onSuccess:t,onFail:n}),[2]}}))}))}var VC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},kC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function SC(e){return VC(this,void 0,void 0,(function(){var t,n,o;return kC(this,(function(a){switch(a.label){case 0:return window.dd?[3,2]:[4,sC()];case 1:a.sent(),a.label=2;case 2:return t=e.success,n=e.fail,(o=window.dd&&window.dd.device.base.getPhoneInfo)&&o({onSuccess:t,onFail:n}),[2]}}))}))}var AC=globalThis&&globalThis.__assign||function(){return AC=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},AC.apply(this,arguments)},TC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},OC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},PC=function(){return null};function MC(e){var t=e.methodName,n=e.params,o=void 0===n?{}:n,a=e.success,r=void 0===a?PC:a,i=e.fail,l=void 0===i?PC:i;return TC(this,void 0,void 0,(function(){return OC(this,(function(e){switch(e.label){case 0:return window.dd?[3,2]:[4,sC()];case 1:e.sent(),e.label=2;case 2:return[2,new Promise((function(e,n){var a=window.dd&&window.dd.device.audio[t];a||n("".concat(t," library not loaded")),a(AC(AC({},o),{onSuccess:function(t){r(t),e(t)},onFail:function(e){l(e),n(e)}}))}))]}}))}))}function BC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({methodName:"startRecord",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function IC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({methodName:"stopRecord",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({localAudioId:t.mediaId})),Promise.resolve({localAudioId:t.mediaId})}))]}))}))}function EC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({methodName:"onRecordEnd",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({localAudioId:t.mediaId})),Promise.resolve({localAudioId:t.mediaId})}))]}))}))}function DC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({params:{localAudioId:e.localAudioId},methodName:"play",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function zC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({params:{localAudioId:e.localAudioId},methodName:"pause",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function FC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({params:{localAudioId:e.localAudioId},methodName:"stop",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function jC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({methodName:"onPlayEnd",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({localAudioId:t.mediaId})),Promise.resolve({localAudioId:t.mediaId})}))]}))}))}function _C(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({params:{mediaId:e.localAudioId},methodName:"translateVoice",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({content:t.content})),Promise.resolve({content:t.content})}))]}))}))}var RC=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),HC=function(e){function t(){var t=e.call(this)||this;return t.device={makePhoneCall:xC,scan:NC,getSystemInfo:SC},t.location={getLocation:fC,navigateTo:mC},t.navigationBar={setNavigationBarTitle:wC},t.audio={startRecord:BC,stopRecord:IC,onRecordEnd:EC,playVoice:DC,pauseVoice:zC,stopVoice:FC,onPlayEnd:jC,translateVoice:_C},t}return RC(t,e),t.prototype.isEnvironmentEnabled=function(){return lw&&window.dd},t}(ow),UC=function(){return new Promise((function(e,t){try{var n=document.createElement("script");n.type="text/javascript",n.src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js",document.body.appendChild(n),n.onload=function(){e()}}catch(o){t()}}))},$C=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},ZC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function WC(e){return $C(this,void 0,void 0,(function(){return ZC(this,(function(t){switch(t.label){case 0:return window.wx?[3,2]:[4,UC()];case 1:t.sent(),t.label=2;case 2:return[2,new Promise((function(t,n){var o=window.wx&&window.wx.getLocation;o||n("getLocationWeixin library not loaded"),o({type:"wgs84",success:function(o){if(console.log("weixinLocationAPI",o),o.longitude){var a={longitude:o.longitude,latitude:o.latitude,accuracy:o.accuracy,speed:o.speed,horizontalAccuracy:""};return e&&e.success&&e.success(a),t(a)}console.error("get wx location fail"),e&&e.fail&&e.fail("定位失败"),n("定位失败")},fail:function(t){console.error("get wx location fail",t),e&&e.fail&&e.fail(t),n("定位失败")}})}))]}}))}))}var YC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},qC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function GC(e){return YC(this,void 0,void 0,(function(){var t,n,o,a,r,i,l,s,c;return qC(this,(function(u){switch(u.label){case 0:return window.wx?[3,2]:[4,UC()];case 1:u.sent(),u.label=2;case 2:return t=e.endX,n=e.endY,o=e.longitude,a=e.latitude,r=e.endAddress,e.fail,i=o||t||-1,l=a||n||-1,s=window.wx&&window.wx.openLocation,c=Jx(i,l),s&&s({latitude:c[1],longitude:c[0],name:r,address:r}),[2]}}))}))}function XC(e){if(window.wx&&window.wx.miniProgram&&window.wx.miniProgram.navigateTo){for(var t=new URLSearchParams(window.location.search),n=0,o=Object.entries({isFromShiMinTong:"/pages/pubinspect/attachment",isFromZhiXin:"/pages/main/attachment",isFromQiJian:"/pages/attachment/index"});n<o.length;n++){var a=o[n],r=a[0],i=a[1];if(t.has(r)&&"1"===t.get(r))return void KC("".concat(i,"?fileUrl=").concat(encodeURIComponent(e.url),"&fileName=").concat(encodeURIComponent(e.name)))}!function(e){if(!e.trim())return void window.alert("附件下载链接为空");if(navigator.clipboard)navigator.clipboard.writeText(e).then((function(){window.alert("已经复制下载链接,请在浏览器中下载")})).catch((function(e){window.alert("复制链接失败"+e),console.error("复制失败:",e)}));else{var t=document.createElement("textarea");document.body.appendChild(t),t.value=e,t.select();try{document.execCommand("copy",!0),window.alert("已经复制下载链接,请在浏览器中下载")}catch(n){window.alert("复制链接失败"),console.error("复制失败:",n)}document.body.removeChild(t)}}(e.url)}else window.alert("暂只支持图片、录音、视频类型附件的预览")}function KC(e){window.wx.miniProgram.navigateTo({url:e,fail:function(){window.alert("暂只支持图片、录音、视频类型附件的预览")}})}var QC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},JC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function eL(e){return QC(this,void 0,void 0,(function(){var t,n,o,a,r,i;return JC(this,(function(l){switch(l.label){case 0:return window.wx?[3,2]:[4,UC()];case 1:l.sent(),l.label=2;case 2:return t=e.success,n=e.scanType,o=window.wx&&window.wx.scanQRCode,a=["qrCode","barCode"],n&&(r=n.indexOf("qrCode")>-1,i=n.indexOf("barCode")>-1,r&&!i&&(a=["qrCode"]),!r&&i&&(a=["barCode"])),o&&o({needResult:1,scanType:a,success:t}),[2]}}))}))}var tL=globalThis&&globalThis.__assign||function(){return tL=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},tL.apply(this,arguments)},nL=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},oL=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},aL=function(){return null};function rL(e){var t=e.methodName,n=e.params,o=void 0===n?{}:n,a=e.success,r=void 0===a?aL:a,i=e.fail,l=void 0===i?aL:i;return nL(this,void 0,void 0,(function(){return oL(this,(function(e){switch(e.label){case 0:return window.wx?[3,2]:[4,UC()];case 1:e.sent(),e.label=2;case 2:return[2,new Promise((function(e,n){var a=window.wx&&window.wx[t];a||n("".concat(t," library not loaded")),a(tL(tL({},o),{success:function(t){r(t),e(t)},fail:function(e){l(e),n(e)},complete:function(t){e(t)}}))}))]}}))}))}function iL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({methodName:"startRecord",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function lL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({methodName:"stopRecord",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({localAudioId:t.localId})),Promise.resolve({localAudioId:t.localId})}))]}))}))}function sL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({methodName:"onVoiceRecordEnd",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({localAudioId:t.localId})),Promise.resolve({localAudioId:t.localId})}))]}))}))}function cL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({params:{localId:e.localAudioId},methodName:"playVoice",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function uL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({params:{localId:e.localAudioId},methodName:"pauseVoice",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function dL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({params:{localId:e.localAudioId},methodName:"stopVoice",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function fL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({methodName:"onVoicePlayEnd",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({localAudioId:t.localId})),Promise.resolve({localAudioId:t.localId})}))]}))}))}function pL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({params:{localId:e.localAudioId},methodName:"translateVoice",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({content:t.translateResult})),Promise.resolve({content:t.translateResult})}))]}))}))}var hL=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mL=function(e){function t(){var t=e.call(this)||this;return t.device={makePhoneCall:zx,scan:eL,getSystemInfo:Qy.getInfo},t.location={getLocation:WC,navigateTo:GC},t.navigationBar={setNavigationBarTitle:Lb.setNavigationBarTitle},t.audio={startRecord:iL,stopRecord:lL,onRecordEnd:sL,playVoice:cL,pauseVoice:uL,stopVoice:dL,onPlayEnd:fL,translateVoice:pL},t.file={openDownload:XC},t}return hL(t,e),t.prototype.isEnvironmentEnabled=function(){return sw&&window.wx},t}(ow),vL=function(){return new Promise((function(e,t){try{var n=document.createElement("script");n.type="text/javascript",n.src="https://g.alicdn.com/gdt/jsapi/1.9.43/index.js",document.body.appendChild(n),n.onload=function(){e()}}catch(o){t()}}))},gL=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},wL=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function yL(e){return gL(this,void 0,void 0,(function(){return wL(this,(function(t){switch(t.label){case 0:return window.dd?[3,2]:[4,vL()];case 1:t.sent(),t.label=2;case 2:return[2,new Promise((function(t,n){window.dd.getGeolocation({targetAccuracy:200,coordinate:1,withReGeocode:cC(e.resultType)>0,useCache:!1}).then((function(n){var o=eC(n.longitude,n.latitude),a={longitude:(null==o?void 0:o[0])||n.longitude,latitude:(null==o?void 0:o[1])||n.latitude,accuracy:n.accuracy,horizontalAccuracy:"",address:n.address,province:n.province,city:n.city,district:n.district,road:n.road,netType:n.netType,operatorType:n.operatorType,isWifiEnabled:n.isWifiEnabled,isGpsEnabled:n.isGpsEnabled,isFromMock:n.isFromMock,provider:n.provider,isMobileEnabled:n.isMobileEnabled};e.success&&e.success(a),t(a)})).catch((function(t){e.fail&&e.fail(t),n(t)}))}))]}}))}))}var bL=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},xL=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function CL(e){return bL(this,void 0,void 0,(function(){var t,n,o;return xL(this,(function(a){switch(a.label){case 0:return window.dd?[3,2]:[4,vL()];case 1:a.sent(),a.label=2;case 2:return t=e.longitude,n=e.latitude,e.fail,o=Jx(t||-1,n||-1),[2,new Promise((function(t,n){window.dd.locateOnMap({latitude:o[1],longtitude:o[0]}).then((function(e){t(e)})).catch((function(t){e.fail&&e.fail(t),n(t)}))}))]}}))}))}var LL=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},NL=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function VL(e){return LL(this,void 0,void 0,(function(){return NL(this,(function(t){switch(t.label){case 0:return window.dd?[3,2]:[4,vL()];case 1:t.sent(),t.label=2;case 2:return window.dd.setTitle({title:e.title||""}).then((function(){return Promise.resolve()})).catch((function(t){return e.fail&&e.fail(t),Promise.reject(t)})),[2]}}))}))}var kL=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),SL=function(e){function t(){var t=e.call(this)||this;return t.location={getLocation:yL,navigateTo:CL},t.navigationBar={setNavigationBarTitle:VL},t}return kL(t,e),t.prototype.isEnvironmentEnabled=function(){return hw&&window.dd},t}(ow),AL=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),TL=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},OL=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},PL=function(){return null},ML=function(e){function t(){var t=e.call(this)||this;return t.location={getLocation:function(e){return t.crossOriginPostMessage({methodName:"location.getLocation"}).then((function(t){var n=t||{},o={longitude:n.longitude,latitude:n.latitude,accuracy:n.address,horizontalAccuracy:""};return e&&e.success&&e.success(o),Promise.resolve(o)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))},navigateTo:function(e){return t.crossOriginPostMessage({methodName:"location.navigateTo",params:{longitude:e.longitude,latitude:e.latitude}})}},t.navigationBar={setNavigationBarTitle:function(e){return TL(t,void 0,void 0,(function(){return OL(this,(function(t){switch(t.label){case 0:return[4,this.crossOriginPostMessage({methodName:"navigationBar.setNavigationBarTitle",params:{longitude:e.longitude,latitude:e.latitude}})];case 1:return t.sent(),[2,Promise.resolve()]}}))}))}},t}return AL(t,e),t.prototype.crossOriginPostMessage=function(e){var t=e.methodName,n=e.params,o=void 0===n?{}:n,a=e.success,r=void 0===a?PL:a,i=e.fail,l=void 0===i?PL:i,s={methodName:t};o&&Object.keys(o).length>0&&(s.params=o);var c=t.split("."),u=c.length>1?c[1]:c[0];try{window.parent.postMessage(JSON.stringify(s),"*")}catch(d){console.error("window.parent.postMessage发生异常",d)}return new Promise((function(e,n){window.addEventListener("message",(function(o){var a=o&&o.data;if("string"==typeof a)try{a=JSON.parse(a)}catch(d){console.error("字符串转换异常",d)}if(a&&a.success){var i=a[u]||{};r&&r(i),e&&e(i)}else{var s=a&&a.message?a.message:"浙政钉".concat(t,"失败");l&&l(s),n(s)}}))}))},t.prototype.isEnvironmentEnabled=function(){return!!hw},t}(ow),BL=[];function IL(){if(window.__mobile__uni__api)return window.__mobile__uni__api;for(var e=0;e<BL.length;e++){var t=BL[e];if(t.isEnvironmentEnabled())return window.__mobile__uni__api=t,window.__mobile__uni__api}try{if(fw&&window.parent&&window.parent.__mobile__uni__api)return window.parent.__mobile__uni__api}catch(o){if(hw)return window.__mobile__uni__api=new ML,window.__mobile__uni__api}var n;return Jg()?(n=new ly,console.info("jsi use egova",n)):hw?(n=new SL,console.info("jsi use zhuanyou dingding",n)):lw?(n=new HC,console.info("jsi use dingding",n)):sw&&window.wx?(n=new mL,console.info("jsi use weixin",n)):iw?(n=new lC,console.info("jsi use smt",n)):(n=new Gx,console.info("jsi use uni",n)),window.__mobile__uni__api=n,window.__mobile__uni__api}const EL=Object.freeze(Object.defineProperty({__proto__:null,JsInterface:ow,get SCREEN_ORIENTATION(){return qg},canIUse:function(e,t){void 0===t&&(t=IL());var n=e.split(".");if(1===n.length)return"function"==typeof t[e];var o=n[0],a=n.slice(1),r=t[o];if(!r)return!1;for(var i=r,l=0,s=a;l<s.length;l++){var c=s[l];if(!i||"object"!=typeof i||!(c in i))return!1;i=i[c]}return"function"==typeof i},getJSI:IL,isAndroid:uw,isDingDing:lw,isIOS:cw,isIframe:fw,isJinBan:pw,isSMT:iw,isV22:dw,isWeiXin:sw,isZhixin:rw,isZhuanYouDingDing:hw,registerJSI:function(e){BL.push(e)},unregisterJSI:function(e){var t=BL.indexOf(e);t>=0&&BL.splice(t,1)}},Symbol.toStringTag,{value:"Module"}));e.ActionSheet=_t,e.Audio=Kt,e.Avatar=ln,e.Badge=We,e.Button=mn,e.Calendar=so,e.Cascader=Ko,e.Cell=la,e.CellGroup=da,e.Checkbox=Ca,e.CheckboxGroup=Na,e.Col=Ba,e.Collapse=Fa,e.CollapseItem=Ha,e.ConfigProvider=Ua,e.DateTimePicker=_r,e.Dialog=Qr,e.Divider=Wo,e.DrawerSelect=bi,e.DropdownItem=Ti,e.DropdownMenu=Oi,e.Empty=zi,e.Field=oi,e.FloatingBubble=Hi,e.Form=Wi,e.Grid=Ki,e.GridItem=nl,e.HierarchySelect=fl,e.Icon=lt,e.Image=tn,e.ImagePreview=Nl,e.IndexAnchor=Bl,e.IndexBar=Il,e.Lazyload=Zg,e.List=jl,e.Loading=It,e.Locale=Ve,e.MediaPicker=wf,e.MediaPlayer=$s,e.MultiplePicker=kf,e.NavBar=Pf,e.NoticeBar=Ef,e.Notify=$f,e.NumberKeyboard=Jf,e.Overlay=Ct,e.Pagination=op,e.PasswordInput=lp,e.Picker=xr,e.Popover=sm,e.Popup=St,e.PullRefresh=hm,e.Radio=Lm,e.RadioGroup=Nm,e.RadioPicker=Zm,e.Rate=Gm,e.Row=Xm,e.Search=si,e.Signature=rv,e.Skeleton=uv,e.Slider=Zt,e.SpeechRecognizer=mv,e.Step=Nv,e.Stepper=Tv,e.Steps=Ov,e.Sticky=vo,e.Swipe=No,e.SwipeCell=Iv,e.SwipeItem=Do,e.Switch=Fv,e.Tab=_o,e.Tabbar=$v,e.TabbarItem=qv,e.Table=rg,e.Tabs=Ro,e.Tag=hi,e.TextEllipsis=Jv,e.TimePicker=Pr,e.Timeline=cg,e.Toast=Qn,e.Uploader=yg,e.Video=Eg,e.ZT_AUDIO_KEY=Yt,e.actionSheetProps=Ft,e.allowMultipleToast=(e=!0)=>{Rn=e},e.calendarProps=lo,e.cascaderProps=Xo,e.closeDialog=()=>{Yr&&Yr.toggle(!1)},e.closeNotify=Uf,e.closeToast=Kn,e.collapseItemProps=Ra,e.collapseProps=za,e.dateTimePickerProps=Dr,e.default=Qg,e.defaultMedia={uniqueCode:"",fileSize:0,fileName:"",originalName:"",originalSize:0,lastModified:0,deletable:!1},e.dialogProps=$r,e.dropdownItemProps=Ai,e.dropdownMenuProps=Li,e.floatingBubbleProps=ji,e.gridItemProps=tl,e.gridProps=Gi,e.imagePreviewProps=yl,e.indexAnchorProps=Ml,e.indexBarProps=Sl,e.install=Yg,e.pickerProps=mr,e.popoverProps=lm,e.radioPickerProps=$m,e.resetDialogDefaultOptions=()=>{Gr=p({},qr)},e.resetNotifyDefaultOptions=()=>{Hf={type:"danger",color:void 0,message:"",onClose:void 0,onClick:void 0,onOpened:void 0,duration:3e3,position:void 0,className:"",lockScroll:!1,background:void 0}},e.resetToastDefaultOptions=e=>{"string"==typeof e?Un.delete(e):(Hn=p({},jn),Un.clear())},e.searchProps=li,e.setDialogDefaultOptions=e=>{p(Gr,e)},e.setNotifyDefaultOptions=e=>p(Hf,e),e.setToastDefaultOptions=function(e,t){"string"==typeof e?Un.set(e,t):p(Hn,e)},e.showConfirmDialog=Kr,e.showDialog=Xr,e.showFailToast=Xn,e.showImagePreview=Ll,e.showLoadingToast=qn,e.showNotify=function(e){var n;if(h)return Rf||({instance:Rf}=Fn({setup(){const{state:e,toggle:n}=zn();return()=>t.createVNode(jf,t.mergeProps(e,{"onUpdate:show":n}),null)}})),e=p({},Hf,i(n=e)?n:{message:n}),Rf.open(e),clearTimeout(_f),e.duration>0&&(_f=window.setTimeout(Uf,e.duration)),Rf},e.showSuccessToast=Gn,e.showToast=Wn,e.signatureProps=av,e.skeletonProps=cv,e.sliderProps=$t,e.stepsProps=wv,e.swipeCellProps=Bv,e.tableProps=ag,e.tagProps=pi,e.textEllipsisProps=Qv,e.timePickerProps=Or,e.timelineProps=sg,e.uploaderProps=wg,e.version=Wg,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
8
+ function su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?su(Object(n),!0).forEach((function(t){du(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):su(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uu(e){return(uu="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})(e)}function du(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fu(){return fu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fu.apply(this,arguments)}function pu(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function hu(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var mu=hu(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),vu=hu(/Edge/i),gu=hu(/firefox/i),wu=hu(/safari/i)&&!hu(/chrome/i)&&!hu(/android/i),yu=hu(/iP(ad|od|hone)/i),bu=hu(/chrome/i)&&hu(/android/i),xu={capture:!1,passive:!1};function Cu(e,t,n){e.addEventListener(t,n,!mu&&xu)}function Lu(e,t,n){e.removeEventListener(t,n,!mu&&xu)}function Nu(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function Vu(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ku(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Nu(e,t):Nu(e,t))||o&&e===n)return e;if(e===n)break}while(e=Vu(e))}return null}var Su,Au=/\s+/g;function Tu(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Au," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Au," ")}}function Ou(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function Pu(e,t){var n="";if("string"==typeof e)n=e;else do{var o=Ou(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function Mu(e,t,n){if(e){var o=e.getElementsByTagName(t),a=0,r=o.length;if(n)for(;a<r;a++)n(o[a],a);return o}return[]}function Bu(){var e=document.scrollingElement;return e||document.documentElement}function Iu(e,t,n,o,a){if(e.getBoundingClientRect||e===window){var r,i,l,s,c,u,d;if(e!==window&&e.parentNode&&e!==Bu()?(i=(r=e.getBoundingClientRect()).top,l=r.left,s=r.bottom,c=r.right,u=r.height,d=r.width):(i=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(a=a||e.parentNode,!mu))do{if(a&&a.getBoundingClientRect&&("none"!==Ou(a,"transform")||n&&"static"!==Ou(a,"position"))){var f=a.getBoundingClientRect();i-=f.top+parseInt(Ou(a,"border-top-width")),l-=f.left+parseInt(Ou(a,"border-left-width")),s=i+r.height,c=l+r.width;break}}while(a=a.parentNode);if(o&&e!==window){var p=Pu(a||e),h=p&&p.a,m=p&&p.d;p&&(s=(i/=m)+(u/=m),c=(l/=h)+(d/=h))}return{top:i,left:l,bottom:s,right:c,width:d,height:u}}}function Eu(e,t,n){for(var o=_u(e,!0),a=Iu(e)[t];o;){var r=Iu(o)[n];if(!("top"===n||"left"===n?a>=r:a<=r))return o;if(o===Bu())break;o=_u(o,!1)}return!1}function Du(e,t,n,o){for(var a=0,r=0,i=e.children;r<i.length;){if("none"!==i[r].style.display&&i[r]!==Zd.ghost&&(o||i[r]!==Zd.dragged)&&ku(i[r],n.draggable,e,!1)){if(a===t)return i[r];a++}r++}return null}function zu(e,t){for(var n=e.lastElementChild;n&&(n===Zd.ghost||"none"===Ou(n,"display")||t&&!Nu(n,t));)n=n.previousElementSibling;return n||null}function Fu(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Zd.clone||t&&!Nu(e,t)||n++;return n}function ju(e){var t=0,n=0,o=Bu();if(e)do{var a=Pu(e),r=a.a,i=a.d;t+=e.scrollLeft*r,n+=e.scrollTop*i}while(e!==o&&(e=e.parentNode));return[t,n]}function _u(e,t){if(!e||!e.getBoundingClientRect)return Bu();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=Ou(n);if(n.clientWidth<n.scrollWidth&&("auto"==a.overflowX||"scroll"==a.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==a.overflowY||"scroll"==a.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Bu();if(o||t)return n;o=!0}}}while(n=n.parentNode);return Bu()}function Ru(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Hu(e,t){return function(){if(!Su){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),Su=setTimeout((function(){Su=void 0}),t)}}}function Uu(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function $u(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Zu(e,t,n){var o={};return Array.from(e.children).forEach((function(a){var r,i,l,s;if(ku(a,t.draggable,e,!1)&&!a.animated&&a!==n){var c=Iu(a);o.left=Math.min(null!==(r=o.left)&&void 0!==r?r:1/0,c.left),o.top=Math.min(null!==(i=o.top)&&void 0!==i?i:1/0,c.top),o.right=Math.max(null!==(l=o.right)&&void 0!==l?l:-1/0,c.right),o.bottom=Math.max(null!==(s=o.bottom)&&void 0!==s?s:-1/0,c.bottom)}})),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var Wu="Sortable"+(new Date).getTime();function Yu(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==Ou(e,"display")&&e!==Zd.ghost){t.push({target:e,rect:Iu(e)});var n=cu({},t[t.length-1].rect);if(e.thisAnimationDuration){var o=Pu(e,!0);o&&(n.top-=o.f,n.left-=o.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var a=!1,r=0;t.forEach((function(e){var t=0,n=e.target,i=n.fromRect,l=Iu(n),s=n.prevFromRect,c=n.prevToRect,u=e.rect,d=Pu(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&Ru(s,l)&&!Ru(i,l)&&(u.top-l.top)/(u.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(t=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(u,s,c,o.options)),Ru(l,i)||(n.prevFromRect=i,n.prevToRect=l,t||(t=o.options.animation),o.animate(n,u,l,t)),t&&(a=!0,r=Math.max(r,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),a?e=setTimeout((function(){"function"==typeof n&&n()}),r):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,o){if(o){Ou(e,"transition",""),Ou(e,"transform","");var a=Pu(this.el),r=a&&a.a,i=a&&a.d,l=(t.left-n.left)/(r||1),s=(t.top-n.top)/(i||1);e.animatingX=!!l,e.animatingY=!!s,Ou(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),Ou(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Ou(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Ou(e,"transition",""),Ou(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}}var qu=[],Gu={initializeByDefault:!0},Xu={mount:function(e){for(var t in Gu)Gu.hasOwnProperty(t)&&!(t in e)&&(e[t]=Gu[t]);qu.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),qu.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var a=e+"Global";qu.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][a]&&t[o.pluginName][a](cu({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](cu({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var a in qu.forEach((function(o){var a=o.pluginName;if(e.options[a]||o.initializeByDefault){var r=new o(e,t,e.options);r.sortable=e,r.options=e.options,e[a]=r,fu(n,r.defaults)}})),e.options)if(e.options.hasOwnProperty(a)){var r=this.modifyOption(e,a,e.options[a]);void 0!==r&&(e.options[a]=r)}},getEventProperties:function(e,t){var n={};return qu.forEach((function(o){"function"==typeof o.eventProperties&&fu(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return qu.forEach((function(a){e[a.pluginName]&&a.optionListeners&&"function"==typeof a.optionListeners[t]&&(o=a.optionListeners[t].call(e[a.pluginName],n))})),o}};var Ku=["evt"],Qu=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,a=pu(n,Ku);Xu.pluginEvent.bind(Zd)(e,t,cu({dragEl:ed,parentEl:td,ghostEl:nd,rootEl:od,nextEl:ad,lastDownEl:rd,cloneEl:id,cloneHidden:ld,dragStarted:xd,putSortable:hd,activeSortable:Zd.active,originalEvent:o,oldIndex:sd,oldDraggableIndex:ud,newIndex:cd,newDraggableIndex:fd,hideGhostForTarget:Rd,unhideGhostForTarget:Hd,cloneNowHidden:function(){ld=!0},cloneNowShown:function(){ld=!1},dispatchSortableEvent:function(e){Ju({sortable:t,name:e,originalEvent:o})}},a))};function Ju(e){!function(e){var t=e.sortable,n=e.rootEl,o=e.name,a=e.targetEl,r=e.cloneEl,i=e.toEl,l=e.fromEl,s=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[Wu]){var m,v=t.options,g="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||mu||vu?(m=document.createEvent("Event")).initEvent(o,!0,!0):m=new CustomEvent(o,{bubbles:!0,cancelable:!0}),m.to=i||n,m.from=l||n,m.item=a||n,m.clone=r,m.oldIndex=s,m.newIndex=c,m.oldDraggableIndex=u,m.newDraggableIndex=d,m.originalEvent=f,m.pullMode=p?p.lastPutMode:void 0;var w=cu(cu({},h),Xu.getEventProperties(o,t));for(var y in w)m[y]=w[y];n&&n.dispatchEvent(m),v[g]&&v[g].call(t,m)}}(cu({putSortable:hd,cloneEl:id,targetEl:ed,rootEl:od,oldIndex:sd,oldDraggableIndex:ud,newIndex:cd,newDraggableIndex:fd},e))}var ed,td,nd,od,ad,rd,id,ld,sd,cd,ud,fd,pd,hd,md,vd,gd,wd,yd,bd,xd,Cd,Ld,Nd,Vd,kd=!1,Sd=!1,Ad=[],Td=!1,Od=!1,Pd=[],Md=!1,Bd=[],Id="undefined"!=typeof document,Ed=yu,Dd=vu||mu?"cssFloat":"float",zd=Id&&!bu&&!yu&&"draggable"in document.createElement("div"),Fd=function(){if(Id){if(mu)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),jd=function(e,t){var n=Ou(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=Du(e,0,t),r=Du(e,1,t),i=a&&Ou(a),l=r&&Ou(r),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Iu(a).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Iu(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return a&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||s>=o&&"none"===n[Dd]||r&&"none"===n[Dd]&&s+c>o)?"vertical":"horizontal"},_d=function(e){function t(e,n){return function(o,a,r,i){var l=o.options.group.name&&a.options.group.name&&o.options.group.name===a.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,a,r,i),n)(o,a,r,i);var s=(n?o:a).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},o=e.group;o&&"object"==uu(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},Rd=function(){!Fd&&nd&&Ou(nd,"display","none")},Hd=function(){!Fd&&nd&&Ou(nd,"display","")};Id&&!bu&&document.addEventListener("click",(function(e){if(Sd)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Sd=!1,!1}),!0);var Ud=function(e){if(ed){e=e.touches?e.touches[0]:e;var t=(a=e.clientX,r=e.clientY,Ad.some((function(e){var t=e[Wu].options.emptyInsertThreshold;if(t&&!zu(e)){var n=Iu(e),o=a>=n.left-t&&a<=n.right+t,l=r>=n.top-t&&r<=n.bottom+t;return o&&l?i=e:void 0}})),i);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Wu]._onDragOver(n)}}var a,r,i},$d=function(e){ed&&ed.parentNode[Wu]._isOutsideThisEl(e.target)};function Zd(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=fu({},t),e[Wu]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return jd(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Zd.supportPointer&&"PointerEvent"in window&&(!wu||yu),emptyInsertThreshold:5};for(var o in Xu.initializePlugins(this,e,n),n)!(o in t)&&(t[o]=n[o]);for(var a in _d(t),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&zd,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Cu(e,"pointerdown",this._onTapStart):(Cu(e,"mousedown",this._onTapStart),Cu(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Cu(e,"dragover",this),Cu(e,"dragenter",this)),Ad.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),fu(this,Yu())}function Wd(e,t,n,o,a,r,i,l){var s,c,u=e[Wu],d=u.options.onMove;return!window.CustomEvent||mu||vu?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=o,s.related=a||t,s.relatedRect=r||Iu(t),s.willInsertAfter=l,s.originalEvent=i,e.dispatchEvent(s),d&&(c=d.call(u,s,i)),c}function Yd(e){e.draggable=!1}function qd(){Md=!1}function Gd(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function Xd(e){return setTimeout(e,0)}function Kd(e){return clearTimeout(e)}Zd.prototype={constructor:Zd,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Cd=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ed):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,a=o.preventOnFilter,r=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=o.filter;if(function(e){Bd.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var o=t[n];o.checked&&Bd.push(o)}}(n),!ed&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!wu||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=ku(l,o.draggable,n,!1))&&l.animated||rd===l)){if(sd=Fu(l),ud=Fu(l,o.draggable),"function"==typeof c){if(c.call(this,e,l,this))return Ju({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Qu("filter",t,{evt:e}),void(a&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=ku(s,o.trim(),n,!1))return Ju({sortable:t,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),Qu("filter",t,{evt:e}),!0}))))return void(a&&e.preventDefault());o.handle&&!ku(s,o.handle,n,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,n){var o,a=this,r=a.el,i=a.options,l=r.ownerDocument;if(n&&!ed&&n.parentNode===r){var s=Iu(n);if(od=r,td=(ed=n).parentNode,ad=ed.nextSibling,rd=n,pd=i.group,Zd.dragged=ed,md={target:ed,clientX:(t||e).clientX,clientY:(t||e).clientY},yd=md.clientX-s.left,bd=md.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ed.style["will-change"]="all",o=function(){Qu("delayEnded",a,{evt:e}),Zd.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!gu&&a.nativeDraggable&&(ed.draggable=!0),a._triggerDragStart(e,t),Ju({sortable:a,name:"choose",originalEvent:e}),Tu(ed,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){Mu(ed,e.trim(),Yd)})),Cu(l,"dragover",Ud),Cu(l,"mousemove",Ud),Cu(l,"touchmove",Ud),i.supportPointer?(Cu(l,"pointerup",a._onDrop),!this.nativeDraggable&&Cu(l,"pointercancel",a._onDrop)):(Cu(l,"mouseup",a._onDrop),Cu(l,"touchend",a._onDrop),Cu(l,"touchcancel",a._onDrop)),gu&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ed.draggable=!0),Qu("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(vu||mu))o();else{if(Zd.eventCanceled)return void this._onDrop();i.supportPointer?(Cu(l,"pointerup",a._disableDelayedDrag),Cu(l,"pointercancel",a._disableDelayedDrag)):(Cu(l,"mouseup",a._disableDelayedDrag),Cu(l,"touchend",a._disableDelayedDrag),Cu(l,"touchcancel",a._disableDelayedDrag)),Cu(l,"mousemove",a._delayedDragTouchMoveHandler),Cu(l,"touchmove",a._delayedDragTouchMoveHandler),i.supportPointer&&Cu(l,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(o,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ed&&Yd(ed),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Lu(e,"mouseup",this._disableDelayedDrag),Lu(e,"touchend",this._disableDelayedDrag),Lu(e,"touchcancel",this._disableDelayedDrag),Lu(e,"pointerup",this._disableDelayedDrag),Lu(e,"pointercancel",this._disableDelayedDrag),Lu(e,"mousemove",this._delayedDragTouchMoveHandler),Lu(e,"touchmove",this._delayedDragTouchMoveHandler),Lu(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Cu(document,"pointermove",this._onTouchMove):Cu(document,t?"touchmove":"mousemove",this._onTouchMove):(Cu(ed,"dragend",this),Cu(od,"dragstart",this._onDragStart));try{document.selection?Xd((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(kd=!1,od&&ed){Qu("dragStarted",this,{evt:t}),this.nativeDraggable&&Cu(document,"dragover",$d);var n=this.options;!e&&Tu(ed,n.dragClass,!1),Tu(ed,n.ghostClass,!0),Zd.active=this,e&&this._appendGhost(),Ju({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(vd){this._lastX=vd.clientX,this._lastY=vd.clientY,Rd();for(var e=document.elementFromPoint(vd.clientX,vd.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(vd.clientX,vd.clientY))!==t;)t=e;if(ed.parentNode[Wu]._isOutsideThisEl(e),t)do{if(t[Wu]){if(t[Wu]._onDragOver({clientX:vd.clientX,clientY:vd.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=Vu(t));Hd()}},_onTouchMove:function(e){if(md){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,a=e.touches?e.touches[0]:e,r=nd&&Pu(nd,!0),i=nd&&r&&r.a,l=nd&&r&&r.d,s=Ed&&Vd&&ju(Vd),c=(a.clientX-md.clientX+o.x)/(i||1)+(s?s[0]-Pd[0]:0)/(i||1),u=(a.clientY-md.clientY+o.y)/(l||1)+(s?s[1]-Pd[1]:0)/(l||1);if(!Zd.active&&!kd){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(nd){r?(r.e+=c-(gd||0),r.f+=u-(wd||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");Ou(nd,"webkitTransform",d),Ou(nd,"mozTransform",d),Ou(nd,"msTransform",d),Ou(nd,"transform",d),gd=c,wd=u,vd=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!nd){var e=this.options.fallbackOnBody?document.body:od,t=Iu(ed,!0,Ed,!0,e),n=this.options;if(Ed){for(Vd=e;"static"===Ou(Vd,"position")&&"none"===Ou(Vd,"transform")&&Vd!==document;)Vd=Vd.parentNode;Vd!==document.body&&Vd!==document.documentElement?(Vd===document&&(Vd=Bu()),t.top+=Vd.scrollTop,t.left+=Vd.scrollLeft):Vd=Bu(),Pd=ju(Vd)}Tu(nd=ed.cloneNode(!0),n.ghostClass,!1),Tu(nd,n.fallbackClass,!0),Tu(nd,n.dragClass,!0),Ou(nd,"transition",""),Ou(nd,"transform",""),Ou(nd,"box-sizing","border-box"),Ou(nd,"margin",0),Ou(nd,"top",t.top),Ou(nd,"left",t.left),Ou(nd,"width",t.width),Ou(nd,"height",t.height),Ou(nd,"opacity","0.8"),Ou(nd,"position",Ed?"absolute":"fixed"),Ou(nd,"zIndex","100000"),Ou(nd,"pointerEvents","none"),Zd.ghost=nd,e.appendChild(nd),Ou(nd,"transform-origin",yd/parseInt(nd.style.width)*100+"% "+bd/parseInt(nd.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,a=n.options;Qu("dragStart",this,{evt:e}),Zd.eventCanceled?this._onDrop():(Qu("setupClone",this),Zd.eventCanceled||((id=$u(ed)).removeAttribute("id"),id.draggable=!1,id.style["will-change"]="",this._hideClone(),Tu(id,this.options.chosenClass,!1),Zd.clone=id),n.cloneId=Xd((function(){Qu("clone",n),Zd.eventCanceled||(n.options.removeCloneOnHide||od.insertBefore(id,ed),n._hideClone(),Ju({sortable:n,name:"clone"}))})),!t&&Tu(ed,a.dragClass,!0),t?(Sd=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Lu(document,"mouseup",n._onDrop),Lu(document,"touchend",n._onDrop),Lu(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(n,o,ed)),Cu(document,"drop",n),Ou(ed,"transform","translateZ(0)")),kd=!0,n._dragStartId=Xd(n._dragStarted.bind(n,t,e)),Cu(document,"selectstart",n),xd=!0,window.getSelection().removeAllRanges(),wu&&Ou(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,a,r=this.el,i=e.target,l=this.options,s=l.group,c=Zd.active,u=pd===s,d=l.sort,f=hd||c,p=this,h=!1;if(!Md){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),i=ku(i,l.draggable,r,!0),T("dragOver"),Zd.eventCanceled)return h;if(ed.contains(e.target)||i.animated&&i.animatingX&&i.animatingY||p._ignoreWhileAnimating===i)return P(!1);if(Sd=!1,c&&!l.disabled&&(u?d||(o=td!==od):hd===this||(this.lastPutMode=pd.checkPull(this,c,ed,e))&&s.checkPut(this,c,ed,e))){if(a="vertical"===this._getDirection(e,i),t=Iu(ed),T("dragOverValid"),Zd.eventCanceled)return h;if(o)return td=od,O(),this._hideClone(),T("revert"),Zd.eventCanceled||(ad?od.insertBefore(ed,ad):od.appendChild(ed)),P(!0);var m=zu(r,l.draggable);if(!m||function(e,t,n){var o=Iu(zu(n.el,n.options.draggable)),a=Zu(n.el,n.options,nd),r=10;return t?e.clientX>a.right+r||e.clientY>o.bottom&&e.clientX>o.left:e.clientY>a.bottom+r||e.clientX>o.right&&e.clientY>o.top}(e,a,this)&&!m.animated){if(m===ed)return P(!1);if(m&&r===e.target&&(i=m),i&&(n=Iu(i)),!1!==Wd(od,r,ed,t,i,n,e,!!i))return O(),m&&m.nextSibling?r.insertBefore(ed,m.nextSibling):r.appendChild(ed),td=r,M(),P(!0)}else if(m&&function(e,t,n){var o=Iu(Du(n.el,0,n.options,!0)),a=Zu(n.el,n.options,nd),r=10;return t?e.clientX<a.left-r||e.clientY<o.top&&e.clientX<o.right:e.clientY<a.top-r||e.clientY<o.bottom&&e.clientX<o.left}(e,a,this)){var v=Du(r,0,l,!0);if(v===ed)return P(!1);if(n=Iu(i=v),!1!==Wd(od,r,ed,t,i,n,e,!1))return O(),r.insertBefore(ed,v),td=r,M(),P(!0)}else if(i.parentNode===r){n=Iu(i);var g,w,y,b=ed.parentNode!==r,x=!function(e,t,n){var o=n?e.left:e.top,a=n?e.right:e.bottom,r=n?e.width:e.height,i=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return o===i||a===l||o+r/2===i+s/2}(ed.animated&&ed.toRect||t,i.animated&&i.toRect||n,a),C=a?"top":"left",L=Eu(i,"top","top")||Eu(ed,"top","top"),N=L?L.scrollTop:void 0;if(Cd!==i&&(w=n[C],Td=!1,Od=!x&&l.invertSwap||b),g=function(e,t,n,o,a,r,i,l){var s=o?e.clientY:e.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,f=!1;if(!i)if(l&&Nd<c*a){if(!Td&&(1===Ld?s>u+c*r/2:s<d-c*r/2)&&(Td=!0),Td)f=!0;else if(1===Ld?s<u+Nd:s>d-Nd)return-Ld}else if(s>u+c*(1-a)/2&&s<d-c*(1-a)/2)return function(e){return Fu(ed)<Fu(e)?1:-1}(t);if((f=f||i)&&(s<u+c*r/2||s>d-c*r/2))return s>u+c/2?1:-1;return 0}(e,i,n,a,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Od,Cd===i),0!==g){var V=Fu(ed);do{V-=g,y=td.children[V]}while(y&&("none"===Ou(y,"display")||y===nd))}if(0===g||y===i)return P(!1);Cd=i,Ld=g;var k=i.nextElementSibling,S=!1,A=Wd(od,r,ed,t,i,n,e,S=1===g);if(!1!==A)return 1!==A&&-1!==A||(S=1===A),Md=!0,setTimeout(qd,30),O(),S&&!k?r.appendChild(ed):i.parentNode.insertBefore(ed,S?k:i),L&&Uu(L,0,N-L.scrollTop),td=ed.parentNode,void 0===w||Od||(Nd=Math.abs(w-Iu(i)[C])),M(),P(!0)}if(r.contains(ed))return P(!1)}return!1}function T(l,s){Qu(l,p,cu({evt:e,isOwner:u,axis:a?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:i,completed:P,onMove:function(n,o){return Wd(od,r,ed,t,n,Iu(n),e,o)},changed:M},s))}function O(){T("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function P(t){return T("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(p),p!==f&&(Tu(ed,hd?hd.options.ghostClass:c.options.ghostClass,!1),Tu(ed,l.ghostClass,!0)),hd!==p&&p!==Zd.active?hd=p:p===Zd.active&&hd&&(hd=null),f===p&&(p._ignoreWhileAnimating=i),p.animateAll((function(){T("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(i===ed&&!ed.animated||i===r&&!i.animated)&&(Cd=null),l.dragoverBubble||e.rootEl||i===document||(ed.parentNode[Wu]._isOutsideThisEl(e.target),!t&&Ud(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function M(){cd=Fu(ed),fd=Fu(ed,l.draggable),Ju({sortable:p,name:"change",toEl:r,newIndex:cd,newDraggableIndex:fd,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Lu(document,"mousemove",this._onTouchMove),Lu(document,"touchmove",this._onTouchMove),Lu(document,"pointermove",this._onTouchMove),Lu(document,"dragover",Ud),Lu(document,"mousemove",Ud),Lu(document,"touchmove",Ud)},_offUpEvents:function(){var e=this.el.ownerDocument;Lu(e,"mouseup",this._onDrop),Lu(e,"touchend",this._onDrop),Lu(e,"pointerup",this._onDrop),Lu(e,"pointercancel",this._onDrop),Lu(e,"touchcancel",this._onDrop),Lu(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;cd=Fu(ed),fd=Fu(ed,n.draggable),Qu("drop",this,{evt:e}),td=ed&&ed.parentNode,cd=Fu(ed),fd=Fu(ed,n.draggable),Zd.eventCanceled||(kd=!1,Od=!1,Td=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Kd(this.cloneId),Kd(this._dragStartId),this.nativeDraggable&&(Lu(document,"drop",this),Lu(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),wu&&Ou(document.body,"user-select",""),Ou(ed,"transform",""),e&&(xd&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),nd&&nd.parentNode&&nd.parentNode.removeChild(nd),(od===td||hd&&"clone"!==hd.lastPutMode)&&id&&id.parentNode&&id.parentNode.removeChild(id),ed&&(this.nativeDraggable&&Lu(ed,"dragend",this),Yd(ed),ed.style["will-change"]="",xd&&!kd&&Tu(ed,hd?hd.options.ghostClass:this.options.ghostClass,!1),Tu(ed,this.options.chosenClass,!1),Ju({sortable:this,name:"unchoose",toEl:td,newIndex:null,newDraggableIndex:null,originalEvent:e}),od!==td?(cd>=0&&(Ju({rootEl:td,name:"add",toEl:td,fromEl:od,originalEvent:e}),Ju({sortable:this,name:"remove",toEl:td,originalEvent:e}),Ju({rootEl:td,name:"sort",toEl:td,fromEl:od,originalEvent:e}),Ju({sortable:this,name:"sort",toEl:td,originalEvent:e})),hd&&hd.save()):cd!==sd&&cd>=0&&(Ju({sortable:this,name:"update",toEl:td,originalEvent:e}),Ju({sortable:this,name:"sort",toEl:td,originalEvent:e})),Zd.active&&(null!=cd&&-1!==cd||(cd=sd,fd=ud),Ju({sortable:this,name:"end",toEl:td,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Qu("nulling",this),od=ed=td=nd=ad=id=rd=ld=md=vd=xd=cd=fd=sd=ud=Cd=Ld=hd=pd=Zd.dragged=Zd.ghost=Zd.clone=Zd.active=null,Bd.forEach((function(e){e.checked=!0})),Bd.length=gd=wd=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ed&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,a=n.length,r=this.options;o<a;o++)ku(e=n[o],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||Gd(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var a=o.children[t];ku(a,this.options.draggable,o,!1)&&(n[e]=a)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ku(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=Xu.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&_d(n)},destroy:function(){Qu("destroy",this);var e=this.el;e[Wu]=null,Lu(e,"mousedown",this._onTapStart),Lu(e,"touchstart",this._onTapStart),Lu(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Lu(e,"dragover",this),Lu(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ad.splice(Ad.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ld){if(Qu("hideClone",this),Zd.eventCanceled)return;Ou(id,"display","none"),this.options.removeCloneOnHide&&id.parentNode&&id.parentNode.removeChild(id),ld=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ld){if(Qu("showClone",this),Zd.eventCanceled)return;ed.parentNode!=od||this.options.group.revertClone?ad?od.insertBefore(id,ad):od.appendChild(id):od.insertBefore(id,ed),this.options.group.revertClone&&this.animate(ed,id),Ou(id,"display",""),ld=!1}}else this._hideClone()}},Id&&Cu(document,"touchmove",(function(e){(Zd.active||kd)&&e.cancelable&&e.preventDefault()})),Zd.utils={on:Cu,off:Lu,css:Ou,find:Mu,is:function(e,t){return!!ku(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:Hu,closest:ku,toggleClass:Tu,clone:$u,index:Fu,nextTick:Xd,cancelNextTick:Kd,detectDirection:jd,getChild:Du,expando:Wu},Zd.get=function(e){return e[Wu]},Zd.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Zd.utils=cu(cu({},Zd.utils),e.utils)),Xu.mount(e)}))},Zd.create=function(e,t){return new Zd(e,t)},Zd.version="1.15.6";var Qd,Jd,ef,tf,nf,of,af=[],rf=!1;function lf(){af.forEach((function(e){clearInterval(e.pid)})),af=[]}function sf(){clearInterval(of)}var cf=Hu((function(e,t,n,o){if(t.scroll){var a,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=Bu(),u=!1;Jd!==n&&(Jd=n,lf(),Qd=t.scroll,a=t.scrollFn,!0===Qd&&(Qd=_u(n,!0)));var d=0,f=Qd;do{var p=f,h=Iu(p),m=h.top,v=h.bottom,g=h.left,w=h.right,y=h.width,b=h.height,x=void 0,C=void 0,L=p.scrollWidth,N=p.scrollHeight,V=Ou(p),k=p.scrollLeft,S=p.scrollTop;p===c?(x=y<L&&("auto"===V.overflowX||"scroll"===V.overflowX||"visible"===V.overflowX),C=b<N&&("auto"===V.overflowY||"scroll"===V.overflowY||"visible"===V.overflowY)):(x=y<L&&("auto"===V.overflowX||"scroll"===V.overflowX),C=b<N&&("auto"===V.overflowY||"scroll"===V.overflowY));var A=x&&(Math.abs(w-r)<=l&&k+y<L)-(Math.abs(g-r)<=l&&!!k),T=C&&(Math.abs(v-i)<=l&&S+b<N)-(Math.abs(m-i)<=l&&!!S);if(!af[d])for(var O=0;O<=d;O++)af[O]||(af[O]={});af[d].vx==A&&af[d].vy==T&&af[d].el===p||(af[d].el=p,af[d].vx=A,af[d].vy=T,clearInterval(af[d].pid),0==A&&0==T||(u=!0,af[d].pid=setInterval(function(){o&&0===this.layer&&Zd.active._onTouchMove(nf);var t=af[this.layer].vy?af[this.layer].vy*s:0,n=af[this.layer].vx?af[this.layer].vx*s:0;"function"==typeof a&&"continue"!==a.call(Zd.dragged.parentNode[Wu],n,t,e,nf,af[this.layer].el)||Uu(af[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=_u(f,!1)));rf=u}}),30),uf=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,a=e.activeSortable,r=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||a;i();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function df(){}function ff(){}df.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=Du(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:uf},fu(df,{pluginName:"revertOnSpill"}),ff.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:uf},fu(ff,{pluginName:"removeOnSpill"}),Zd.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?Cu(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Cu(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Cu(document,"touchmove",this._handleFallbackAutoScroll):Cu(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Lu(document,"dragover",this._handleAutoScroll):(Lu(document,"pointermove",this._handleFallbackAutoScroll),Lu(document,"touchmove",this._handleFallbackAutoScroll),Lu(document,"mousemove",this._handleFallbackAutoScroll)),sf(),lf(),clearTimeout(Su),Su=void 0},nulling:function(){nf=Jd=Qd=rf=of=ef=tf=null,af.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,r=document.elementFromPoint(o,a);if(nf=e,t||this.options.forceAutoScrollFallback||vu||mu||wu){cf(e,this.options,r,t);var i=_u(r,!0);!rf||of&&o===ef&&a===tf||(of&&sf(),of=setInterval((function(){var r=_u(document.elementFromPoint(o,a),!0);r!==i&&(i=r,lf()),cf(e,n.options,r,t)}),10),ef=o,tf=a)}else{if(!this.options.bubbleScroll||_u(r,!0)===Bu())return void lf();cf(e,this.options,_u(r,!1),!1)}}},fu(e,{pluginName:"scroll",initializeByDefault:!0})}),Zd.mount(ff,df);var pf=(e,t,n)=>new Promise(((o,a)=>{var r=e=>{try{l(n.next(e))}catch(t){a(t)}},i=e=>{try{l(n.throw(e))}catch(t){a(t)}},l=e=>e.done?o(e.value):Promise.resolve(e.value).then(r,i);l((n=n.apply(e,t)).next())}));const[hf,mf]=Oe("media-picker"),vf={mp3:new Set(["mpga"]),mp4:new Set(["qt"]),html:new Set(["txt"]),json:new Set(["txt"]),xml:new Set(["txt"]),gif:new Set(["png"]),jpeg:new Set(["jpg"]),jpg:new Set(["jpeg"]),m4a:new Set(["mp4","mp4a","x-m4a"])},gf={variant:k("default"),sortable:{type:Boolean,default:!1},disabled:Boolean,showTitle:Boolean,showDownload:Boolean,downloadAction:Function,useFileNameAsLabel:Boolean,title:k("添加附件"),mediaList:L(),maxImageSideLength:N(1920),maxImageFileSize:N(1024),maxFileSize:N(102400),keepFileType:{type:Boolean,default:!1},watermarkOptions:{type:Object,default:()=>null},maxMediaCount:N(Number.MAX_VALUE),maxImageCount:N(Number.MAX_VALUE),maxAudioCount:N(Number.MAX_VALUE),maxVideoCount:N(Number.MAX_VALUE),allowTakePhoto:x,allowPickPhoto:x,allowTakeVideo:Boolean,allowPickVideo:Boolean,allowTakeAudio:Boolean,allowPickAudio:Boolean,allowPickFile:Boolean,preview:Function,mediaPick:Function,beforeRead:Function,afterRead:Function,beforeDelete:Function,useWx:Boolean,imageSizeType:k("compressed"),mediaPlayerProps:Object};const wf=Re(t.defineComponent({name:hf,props:gf,emits:["update:mediaList","delete","processing"],setup(e,{emit:n,slots:o}){const r=t.ref(!1),i=t.ref(!1),l=t.ref(!1),s=t.ref(!1),c=t.ref(!1),u=t.ref("file"),f=t.ref(""),p=t.ref(),h=t.ref(),m=t.ref(),v=t.ref(),g=t.ref(),w=t.ref(),y=t.ref(),b=t.ref(),x=t.ref([]),C=t.ref(),L=t.computed((()=>"attachment"===e.variant)),N=t.computed((()=>e.mediaList.filter((e=>"photo"===e.type)))),V=t.computed((()=>x.value.filter((e=>"photo"===e.type)))),k=t=>{!L.value&&e.sortable&&e.mediaList.length>0&&t.stopPropagation()},S=()=>{var e;(null==(e=C.value)?void 0:e.destroy)&&C.value.destroy(),C.value=void 0},A=()=>pf(this,null,(function*(){var o;if(C.value||L.value||!e.sortable||!e.mediaList.length)return;yield t.nextTick();const a=null==(o=b.value)?void 0:o.$el;a&&(C.value=Zd.create(a,{animation:200,handle:".zt-grid-item",onEnd:t=>{const o=T(e.mediaList,t.oldIndex,t.newIndex);n("update:mediaList",o)}}))})),T=(e,t,n)=>{const o=[...e],a=o[t];return o.splice(t,1),o.splice(n,0,a),[...o]},O=e=>{e&&e.click()},P=(t,o)=>{if(!e.disabled&&(t=>e.mediaList.length===e.maxMediaCount?(Xn("已达到文件最大数量限制"),!1):"photo"===t&&e.mediaList.filter((e=>"photo"===e.type)).length>e.maxImageCount?(Xn("已达到图片最大数量限制"),!1):"video"===t&&e.mediaList.filter((e=>"video"===e.type)).length>e.maxVideoCount?(Xn("已达到视频最大数量限制"),!1):!("audio"===t&&e.mediaList.filter((e=>"audio"===e.type)).length>e.maxAudioCount&&(Xn("已达到录音最大数量限制"),1)))(t)&&(!e.mediaPick||!e.mediaPick(t,o)))if("photo"===t)if(e.useWx&&d()&&window.wx){lu("take"===o?"camera":"album").then((t=>{n("update:mediaList",[...e.mediaList,...t])}))}else"take"===o?O(p.value):"pick"===o&&O(h.value);else"video"===t?"take"===o?O(m.value):"pick"===o?O(v.value):"take_and_pick"===o&&(s.value=!0,r.value=!0,i.value=!1):"audio"===t?"take"===o?O(g.value):"pick"===o?O(w.value):"take_and_pick"===o&&(s.value=!0,r.value=!1,i.value=!0):"file"===t&&O(y.value)},M=(e,t)=>{"photo"===e?"take"===t&&p.value instanceof HTMLInputElement?p.value.value="":"pick"===t&&h.value instanceof HTMLInputElement&&(h.value.value=""):"video"===e?"take"===t&&m.value instanceof HTMLInputElement?m.value.value="":"pick"===t&&v.value&&(v.value.value=""):"audio"===e?"take"===t&&g.value instanceof HTMLInputElement?g.value.value="":"pick"===t&&w.value instanceof HTMLInputElement&&(w.value.value=""):"file"===e&&y.value instanceof HTMLInputElement&&(y.value.value="")},B=t.computed((()=>e.mediaList.filter((e=>"photo"===e.type)))),I=t.computed((()=>l.value?[{name:"拍照",callback:()=>{P("photo","take")}},{name:"照片",callback:()=>{P("photo","pick")}}]:r.value?[{name:"拍摄",callback:()=>{P("video","take")}},{name:"视频文件",callback:()=>{P("video","pick")}}]:i.value?[{name:"录音",callback:()=>{P("audio","take")}},{name:"音频文件",callback:()=>{P("audio","pick")}}]:void 0)),E=t=>e.mediaList.some((e=>e.uniqueCode===oc(t))),D=t=>{const n=[],o=new au(e.maxImageSideLength),r=new ru(e.maxImageFileSize,e.keepFileType);for(let a=0;a<t.length;a++){const i=t[a],l=e.watermarkOptions&&e.watermarkOptions.watermarkConfigString&&Jc(e.watermarkOptions.watermarkConfigString);let s;s=l?{enabled:!0,watermarkConfigString:l?e.watermarkOptions.watermarkConfigString:"",context:{address:e.watermarkOptions.address||"",humanName:e.watermarkOptions.humanName||"",projectName:e.watermarkOptions.projectName||"",watermarkTime:new Date}}:{enabled:!1};const c=new iu(i,o,s,r).process().then((t=>t?rc(t).then((n=>{const o=e.keepFileType?{"image/jpeg":"jpg","image/jpg":"jpg","image/png":"png","image/gif":"gif","image/webp":"webp","image/bmp":"bmp","image/svg+xml":"svg"}[t.type]||"jpg":"jpg";const a=ac(t,o),r={showSrc:n,type:"photo",file:new File([t],a,{lastModified:t.lastModified,type:t.type}),uniqueCode:oc(i),lastModified:t.lastModified,fileSize:t.size,fileName:t.name,deletable:!0,message:"",originalName:i.name,originalSize:i.size};return Promise.resolve(r)})):Promise.resolve(null)));n.push(c)}return Promise.all(n).then((e=>{const t=[];return e.forEach((e=>{a(e)&&t.push(e)})),t})).finally((()=>{}))},z=t=>{n("processing",!0),x.value=t.map((e=>{let t;return t=tc(e)?"audio":nc(e)?"video":ec(e)?"photo":"file",{file:e,message:"处理中...",status:"processing",type:t}}));const o=t.filter((e=>!ec(e))).map((e=>(e=>{let t,n="";tc(e)?(t="audio",n="mp3"):nc(e)?(t="video",n="mp4"):t="file";const o=ac(e,n);return{type:t,file:new File([e],o,{lastModified:e.lastModified,type:e.type}),uniqueCode:oc(e),lastModified:e.lastModified,fileSize:e.size,fileName:e.name,originalName:e.name,originalSize:e.size,originalFile:e,deletable:!0,message:""}})(e)));let r=[];o.length>0&&(r=r.concat(o));const i=t.filter((e=>ec(e)));let l;l=0===i.length?Promise.resolve([]):"original"===e.imageSizeType?(e=>{const t=e.map((e=>rc(e).then((t=>({showSrc:t,type:"photo",file:e,uniqueCode:oc(e),lastModified:e.lastModified,fileSize:e.size,fileName:e.name,deletable:!0,message:"",originalName:e.name,originalSize:e.size,originalFile:e})))));return Promise.all(t).then((e=>{const t=[];return e.forEach((e=>{a(e)&&t.push(e)})),t})).finally((()=>{}))})(i):D(i),l.then((e=>{e&&e.length>0&&(r=r.concat(e))})).finally((()=>{e.useFileNameAsLabel&&r.forEach((e=>{e.label=e.originalName})),x.value=[],n("processing",!1),n("update:mediaList",[...e.mediaList,...r]),e.afterRead&&e.afterRead(r)}))},F=t=>pf(this,null,(function*(){const n=t.target.files;if(!n||0===n.length)return;const o=(t=>{const n=[];for(let o=0;o<t.length;o++){const a=t[o];if(a.size>1024*e.maxFileSize)return Xn(`请勿添加大于${e.maxFileSize}K的文件`),n;if(E(a))return Xn("请勿重复添加文件"),n;n.push(a)}return n})(n);if(0!==o.length&&(t=>e.mediaList.length+t.length>e.maxMediaCount?(Xn(`最多只能上传${e.maxMediaCount}个文件`),!1):e.mediaList.filter((e=>"photo"===e.type)).length+t.filter((e=>ec(e))).length>e.maxImageCount?(Xn(`最多只能上传${e.maxImageCount}张图片`),!1):e.mediaList.filter((e=>"video"===e.type)).length+t.filter((e=>nc(e))).length>e.maxVideoCount?(Xn(`最多只能上传${e.maxVideoCount}个视频`),!1):!(e.mediaList.filter((e=>"audio"===e.type)).length+t.filter((e=>tc(e))).length>e.maxAudioCount&&(Xn(`最多只能上传${e.maxAudioCount}个录音`),1)))(o)){if(e.keepFileType)try{for(const e of o){const t=yield e.slice(0,4100).arrayBuffer(),n=yield zs(new Uint8Array(t)),o=e.name.toLowerCase().match(/\.([^.]+)$/),a=o?o[1]:"";if(n&&a&&n.ext!==a){const t=vf[a];if(!(t&&t.has(n.ext)))return void Xn({message:`文件后缀与实际文件类型不匹配:${e.name}`,duration:5e3})}}}catch(a){console.error("文件类型校验失败:",a)}if(e.beforeRead)try{const t=yield e.beforeRead(o);if(!t)return;if(Array.isArray(t)){const e=t.filter((e=>!!e));z(e)}else z(o)}catch(a){return void Xn(null==a?void 0:a.message)}else z(o)}})),j=(e,n)=>{if("photo"===e){if("take"===n)return t.createVNode(Gs,{class:mf("icon")},null);if("pick"===n)return t.createVNode(Xs,{class:mf("icon")},null)}else{if("video"===e)return t.createVNode(Ks,{class:mf("icon")},null);if("audio"===e)return t.createVNode(Qs,{class:mf("icon")},null);if("file"===e)return t.createVNode(Js,{class:mf("icon")},null)}},_=(e,n)=>{let o="";return"photo"===e?"take"===n?o="拍照":"pick"===n&&(o="照片"):"video"===e?o="摄像":"audio"===e?o="录音":"file"===e&&(o="文档"),t.createVNode("div",{class:mf("box")},[t.createVNode("div",{class:mf("button"),onClick:()=>P(e,n)},[j(e,n)]),t.createVNode("div",{class:mf("label")},[o])])},R=()=>{const t=[];if(e.allowTakePhoto&&t.push(_("photo","take")),e.allowPickPhoto&&t.push(_("photo","pick")),e.allowTakeVideo||e.allowPickVideo){let n="take_and_pick";e.allowTakeVideo?e.allowPickVideo||(n="take"):n="pick",t.push(_("video",n))}if(e.allowTakeAudio||e.allowPickAudio){let n="take_and_pick";e.allowTakeAudio?e.allowPickAudio||(n="take"):n="pick",t.push(_("audio",n))}return e.allowPickFile&&t.push(_("file","pick")),t},H=()=>{const n=e.allowTakePhoto,o=e.allowPickPhoto;if(!n&&!o)return;if(e.allowTakePhoto&&e.allowPickPhoto)return t.createVNode("button",{type:"button",class:mf("attachment-add"),disabled:e.disabled,onClick:()=>{e.disabled||(s.value=!0,l.value=!0,r.value=!1,i.value=!1)}},[t.createVNode("span",{class:mf("attachment-add-icon")},[t.createTextVNode("+")])]);const a=n?"take":"pick";return t.createVNode("button",{type:"button",class:mf("attachment-add"),disabled:e.disabled,onClick:()=>P("photo",a)},[t.createVNode("span",{class:mf("attachment-add-icon")},[t.createTextVNode("+")])])},U=e=>{const{status:n,message:o}=e;if("processing"===n||"uploading"===n||"failed"===n){const e="failed"===n?t.createVNode(st,{name:"close",class:mf("mask-icon")},null):t.createVNode(Et,{class:mf("loading")},null),r=a(o)&&""!==o;return t.createVNode("div",{class:mf("mask")},[e,r&&t.createVNode("div",{class:mf("mask-message")},[o])])}},$=e=>{if(o.thumbnail)return o.thumbnail({file:e});if("video"===e.type)return t.createVNode(Ws,{class:mf("thumbnail")},null);if("audio"===e.type)return t.createVNode(Ys,{class:mf("thumbnail")},null);if("file"===e.type)return t.createVNode(qs,{class:mf("thumbnail")},null);if("photo"===e.type){const n=e.showSrc||e.url;return t.createVNode(nn,{src:n,fit:"cover",radius:"4"},null)}return t.createVNode(qs,{class:mf("thumbnail")},null)},Z=e=>o["preview-cover"]?o["preview-cover"]({file:e}):Qo(e.label)?void 0:t.createVNode("div",{class:mf("thumbnail-label")},[e.label]),W=(t,o)=>pf(this,null,(function*(){if(e.beforeDelete){if(!(yield e.beforeDelete(t)))return}((t,o)=>{const a=e.mediaList.slice(0);a.splice(o,1),n("update:mediaList",a),n("delete",t,o)})(t,o)})),Y=t=>pf(this,null,(function*(){var n;if(e.preview&&(yield e.preview(e.mediaList,t)))return;const o=e.mediaList[t];if("photo"===o.type){const t=B.value.indexOf(o);Ll({images:B.value.map((e=>({url:e.url||e.showSrc||""}))),showDownload:e.showDownload,downloadAction:e.downloadAction,startPosition:t,closeable:!0})}else if("audio"===o.type||"video"===o.type)o.file||o.url?(u.value=o.type,f.value=o.url||(URL||webkitURL).createObjectURL(o.file),c.value=!0):Xn("文件参数缺失");else if("file"===o.type){try{let e=yield Promise.resolve().then((()=>EL));if(e&&e.getJSI&&o.url){let t=null==(n=e.getJSI())?void 0:n.file;if(t&&t.download&&t.openDocument)return qn({message:"打开中...",forbidClick:!0,duration:0}),void t.download({url:o.url}).then((({tempFilePath:e})=>{t&&t.openDocument?t.openDocument({localFilePath:e}).finally((()=>{Kn()})):Kn()})).catch((()=>{Kn(),Xn("下载失败")}))}}catch(a){console.log(a.message)}Xn("暂不支持此类文件的预览")}})),q=(e,n)=>{if(e.deletable&&"uploading"!==e.status)return t.createVNode("button",{type:"button",class:mf("attachment-delete"),onClick:t=>{t.stopPropagation(),W(e,n)}},[t.createTextVNode("×")])},G=n=>{const o=e.mediaList.indexOf(n);return t.createVNode("div",{key:n.uniqueCode,class:mf("attachment-item"),onClick:()=>Y(o)},[$(n),Z(n),U(n),q(n,o)])},X=e=>t.createVNode("div",{key:e.uniqueCode||e.fileName,class:mf("attachment-item")},[$(e),Z(e),U(e)]),K=e=>{s.value=!1,l.value=!1,r.value=!1,i.value=!1,e.func&&e.func()};return t.watch((()=>[e.sortable,e.mediaList.length,e.variant]),(e=>pf(this,[e],(function*([e,t]){!L.value&&e&&t?yield A():S()}))),{immediate:!0}),t.onBeforeUnmount((()=>{S()})),dt({mediaPickAction:P,handleInputFiles:F,transformImageFiles:D,resetInput:M,previewMedia:Y}),()=>{const n=e.showTitle&&t.createVNode("div",{class:mf("title")},[e.title]),a=e.allowTakePhoto||e.allowPickPhoto||e.allowTakeVideo||e.allowPickVideo||e.allowTakeAudio||e.allowPickAudio||e.allowPickFile;return t.createVNode("div",{class:mf({attachment:L.value})},[n,[t.createVNode("input",{type:"file",accept:"image/*",ref:p,multiple:!0,onChange:F,class:mf("hidden"),onClick:()=>M("photo","take"),capture:"environment"},null),t.createVNode("input",{type:"file",accept:"image/*,image/exact",ref:h,multiple:!0,onChange:F,class:mf("hidden"),onClick:()=>M("photo","pick")},null),t.createVNode("input",{type:"file",accept:"video/*",ref:m,onChange:F,class:mf("hidden"),onClick:()=>M("video","take"),capture:"environment"},null),t.createVNode("input",{type:"file",accept:"video/*",ref:v,onChange:F,class:mf("hidden"),onClick:()=>M("video","pick")},null),t.createVNode("input",{type:"file",accept:"audio/*",ref:g,onChange:F,class:mf("hidden"),onClick:()=>M("audio","take"),capture:"nonce"},null),t.createVNode("input",{type:"file",accept:"audio/*",ref:w,onChange:F,class:mf("hidden"),onClick:()=>M("audio","pick")},null),t.createVNode("input",{type:"file",accept:"*/*",ref:y,onChange:F,class:mf("hidden"),onClick:()=>M("file","pick")},null)],t.createVNode(Zs,t.mergeProps({show:c.value,"onUpdate:show":e=>c.value=e,mediaType:u.value,mediaUrl:f.value,teleport:"body"},e.mediaPlayerProps),null),t.createVNode(Rt,{show:s.value,"onUpdate:show":e=>s.value=e,actions:I.value,description:"请选择","cancel-text":"取消",teleport:"body","close-on-click-action":!0,onSelect:K},null),L.value?t.createVNode("div",{class:mf("attachment")},[t.createVNode("div",{class:mf("attachment-track")},[N.value.map(G),V.value.map(X),H()])]):t.createVNode(t.Fragment,null,[t.withDirectives(t.createVNode("div",{class:mf("line")},[R(),o.extend?o.extend():""]),[[t.vShow,a]]),t.withDirectives(t.createVNode(Qi,{ref:b,"column-num":"3",border:!1,square:!0,gutter:"4",class:mf("grid"),onTouchstart:k},{default:()=>[e.mediaList.map(((e,n)=>{const o=e.deletable&&"uploading"!==e.status&&t.createVNode(_l,{class:mf("delete"),onClick:t=>{t.stopPropagation(),W(e,n)}},null);return t.createVNode(ol,{key:e.uniqueCode,onClick:()=>Y(n)},{default:()=>[$(e),Z(e),U(e),o]})}))]}),[[t.vShow,e.mediaList.length]]),t.withDirectives(t.createVNode(Qi,{"column-num":"3",border:!1,square:!0,gutter:"4",class:mf("grid")},{default:()=>[x.value.map((e=>t.createVNode(ol,{key:e.uniqueCode},{default:()=>[$(e),Z(e),U(e)]})))]}),[[t.vShow,x.value.length]])])])}}})),[yf,bf]=Oe("multiple-picker-options"),xf={textKey:k(""),readonly:Boolean,allowHtml:Boolean,itemHeight:N(0),columnCounts:N(3),initialOptions:L([]),currentIndexes:L([])};var Cf=t.defineComponent({name:yf,props:xf,emits:["change","update:currentIndexes"],setup(e,{emit:n,slots:o}){const a=t.computed((()=>e.initialOptions)),r=t.reactive({confirmed:!1}),l=t.computed((()=>e.currentIndexes)),s=t.ref(e.columnCounts),c=()=>{s.value=Number(e.columnCounts),s.value&&s.value>3&&(s.value=3),s.value&&s.value<1&&(s.value=1);const r={height:`${e.itemHeight+8}px`,width:1/s.value*100+"%"};return a.value.map(((a,c)=>{const u=(t=>i(t)&&e.textKey in t?t[e.textKey]:t)(a),d=(t=>e.readonly||i(t)&&t.disabled)(a),f={class:"zt-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:u};return t.createVNode("div",{role:"button",style:r,tabindex:d?-1:0,onClick:()=>(t=>{if(e.readonly)return;let o=!1;l.value.forEach(((e,n)=>{e===t&&(o=!0,l.value.splice(n,1))})),o||l.value.push(t),n("update:currentIndexes",l.value),n("change")})(c),class:[bf("item",{disabled:d,selected:l.value.indexOf(c)>-1,"disabled-selected":d&&l.value.indexOf(c)>-1,last:(c+1)%s.value==0})]},[o.options?o.options(a):t.createVNode("div",f,null)])}))};return dt({setConfirmIndex:e=>{const t=vi(e);r.confirmed=!0;const n=Object.keys(t);l.value.length=0,n.forEach((e=>{l.value.push(t[e])}))}}),()=>t.createVNode("div",{class:bf()},[t.createVNode("div",{ref:"wrapper",class:bf("wrapper")},[c()])])}});const[Lf,Nf]=Oe("multiple-picker"),Vf={title:String,loading:Boolean,readonly:Boolean,itemHeight:V(0),cancelButtonText:String,confirmButtonText:String,otherButtonText:String,showPicker:Boolean,allowHtml:x,closeOnPopstate:x,closeOnClickOverlay:x,showToolbar:x,showTitle:x,options:L(),filteredOptions:{type:Array,default:void 0},toolbarPosition:k("bottom"),textKey:k("text"),columnCounts:N(3),selectedIndex:L([]),selectedValue:L([]),popup:x,showSelectAll:Boolean};const kf=Re(t.defineComponent({name:Lf,props:Vf,emits:["cancel","confirm","change","update:showPicker","update:selectedIndex","update:selectedValue"],setup(e,{emit:n,slots:o}){const a=t.ref(e.options),r=t.computed((()=>e.selectedIndex)),i=t.computed((()=>e.selectedValue)),l=t.ref([]),s=t.ref(e.selectedIndex),c=t.ref(e.selectedValue),u=t.computed((()=>void 0!==e.filteredOptions?e.filteredOptions:a.value)),d=t.computed((()=>{if(!e.filteredOptions||0===e.filteredOptions.length)return s.value;const t=new Set(s.value.filter((e=>e>=0&&e<a.value.length)).map((e=>{var t;return null==(t=a.value[e])?void 0:t.value}))),n=[];return u.value.forEach(((e,o)=>{t.has(e.value)&&n.push(o)})),n})),f=t.computed((()=>d.value.length>0&&d.value.length<u.value.length)),p=t.computed((()=>u.value.length>0&&d.value.length>0&&d.value.length===u.value.length)),h=t=>{if(e.filteredOptions&&e.filteredOptions.length>0){const e=t.filter((e=>e>=0&&e<u.value.length)).map((e=>{var t;return null==(t=u.value[e])?void 0:t.value})),n=new Set,o=new Set(u.value.map((e=>e.value)));s.value.forEach((e=>{var t;if(e>=0&&e<a.value.length){const r=null==(t=a.value[e])?void 0:t.value;o.has(r)||n.add(e)}})),e.forEach((e=>{const t=a.value.findIndex((t=>t.value===e));t>=0&&n.add(t)})),s.value=Array.from(n)}else s.value=t;s.value.length>0?v():c.value=[],n("update:selectedValue",c.value),N()},m=()=>{var e;c.value&&c.value.length>0&&(s.value.splice(0,s.value.length),null==(e=a.value)||e.forEach(((e,t)=>{e.value&&c.value.includes(e.value)&&s.value.push(t)})))};m();const v=()=>{s.value&&s.value.length>0&&(c.value.splice(0,c.value.length),s.value.forEach((e=>{e>-1&&e<a.value.length&&c.value.push(a.value[e].value)})))},g=t.ref(),w=t.ref(e.showPicker);t.ref(36);t.watch(w,(t=>{t!==e.showPicker&&n("update:showPicker",t),t&&(a.value=vi(e.options),s.value=vi(r.value),c.value=vi(i.value),m(),N())})),t.watch((()=>e.showPicker),(e=>{var t;e!==w.value&&(w.value=e),null==(t=g.value)||t.setConfirmIndex(s.value)}));const y=t.computed((()=>{e.itemHeight&&fe(Number(e.itemHeight))})),b=()=>{n("update:showPicker",!1),n("cancel")},x=e=>n("update:showPicker",e),C=()=>l.value,L=()=>{N(),n("change",C())},N=()=>{const t=[],n=s.value;null==n||n.forEach((n=>{if(n>-1&&n<a.value.length&&a.value[n]){const o=a.value[n];t.push({[e.textKey]:o[e.textKey],value:o.value,initialIndex:n})}})),l.value=t},V=()=>{const e=C();n("confirm",e)},k=()=>{if(e.showTitle)return o.title?o.title():t.createVNode("div",{class:["zt-ellipsis",Nf("title")]},[e.title?e.title:"请选择"])},S=()=>{const n=e.otherButtonText||"其他";return t.createVNode(vn,{class:Nf("select-other"),size:"medium",style:{marginLeft:"12px",marginRight:"8px"},onClick:B},{default:()=>[o.selectOther?o.selectOther():n]})},A=()=>{const n=e.cancelButtonText||"取消";return t.createVNode(vn,t.mergeProps({class:[e.showSelectAll?Nf("in-select-all"):""],size:e.showSelectAll?"medium":"normal"},!0!==e.showSelectAll?{block:!0}:{},{style:{marginRigth:"4px"},onClick:b}),{default:()=>[o.cancel?o.cancel():n]})},T=()=>{const n=e.confirmButtonText||"确定";return t.createVNode(vn,t.mergeProps({type:"primary",class:[e.showSelectAll?Nf("in-select-all"):""],size:e.showSelectAll?"medium":"normal"},!0!==e.showSelectAll?{block:!0}:{},{style:{marginLeft:"8px"},onClick:V}),{default:()=>[o.confirm?o.confirm():n]})},O=()=>{if(e.showToolbar){const n=e.showSelectAll?[P(),S(),A(),T()]:[A(),T()];return t.createVNode("div",{class:Nf("toolbar")},[o.toolbar?o.toolbar():n])}},P=()=>t.createVNode("div",{class:Nf("toolbar-select-all")},[t.createVNode(La,{class:Nf("toolbar-checkbox"),shape:"square",modelValue:p.value,indeterminate:f.value,onClick:M},{default:()=>[t.createTextVNode("全选")]}),t.createVNode("div",{class:Nf("toolbar-divider")},null),t.createVNode("span",{class:Nf("toolbar-checkbox-text")},[t.createTextVNode("已选 "),l.value.length])]),M=()=>{if(e.filteredOptions&&0===e.filteredOptions.length)return s.value=[],c.value=[],n("update:selectedValue",c.value),n("update:selectedIndex",s.value),N(),void L();let t=[];p.value?t=[]:e.filteredOptions&&e.filteredOptions.length>0?u.value.forEach((e=>{const n=a.value.findIndex((t=>t.value===e.value));n>=0&&t.push(n)})):t=a.value.map(((e,t)=>t)),s.value=t,s.value.length>0?v():c.value=[],n("update:selectedValue",c.value),n("update:selectedIndex",s.value),N(),L()},B=()=>{if(e.filteredOptions&&0===e.filteredOptions.length)return s.value=[],c.value=[],n("update:selectedValue",c.value),n("update:selectedIndex",s.value),N(),void L();let t=[];if(e.filteredOptions&&e.filteredOptions.length>0){const e=new Set;s.value.forEach((t=>{var n;if(t>=0&&t<a.value.length){const o=null==(n=a.value[t])?void 0:n.value;u.value.some((e=>e.value===o))&&e.add(t)}})),u.value.forEach((n=>{const o=a.value.findIndex((e=>e.value===n.value));o>=0&&(e.has(o)||t.push(o))}))}else a.value.forEach(((e,n)=>{s.value.includes(n)||t.push(n)}));s.value=t,s.value.length>0?v():c.value=[],n("update:selectedValue",c.value),n("update:selectedIndex",s.value),N(),L()},I=()=>{let n=[];return n=u.value&&u.value[0]&&"object"!=typeof u.value[0]?u.value.map((e=>({value:e,text:e}))):u.value,t.createVNode(Cf,{ref:g,currentIndexes:d.value,"onUpdate:currentIndexes":h,columnCounts:e.columnCounts,initialOptions:n,allowHtml:e.allowHtml,textKey:e.textKey,readonly:e.readonly,itemHeight:Number(y),onChange:L},{option:o.option})},E=()=>{const e=!u.value||0===u.value.length;return t.createVNode("div",{class:Nf("options")},[e?t.createVNode(Fi,{class:Nf("empty"),image:"no-search-result",description:"暂无结果"},null):I()])},D=()=>t.createVNode("div",{class:Nf()},[k(),e.loading?t.createVNode(Et,{class:Nf("loading")},null):"",E(),"bottom"===e.toolbarPosition?O():""]);return dt({resetOptions:e=>{a.value=e.options,s.value=e.selectedIndex,s.value.length>0?v():c.value=[],n("update:selectedValue",c.value)}}),()=>e.popup?t.createVNode(At,{show:w.value,"onUpdate:show":[e=>w.value=e,x],round:!0,position:"bottom",closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay},{default:D}):D()}}));function Sf(e,n){const o=Jn(e,!0);return e=>t.createVNode("div",{class:n("placeholder"),style:{height:o.value?`${o.value}px`:void 0}},[e()])}const[Af,Tf]=Oe("nav-bar"),Of={title:String,fixed:Boolean,zIndex:b,border:x,leftText:Boolean,leftIcon:Boolean,multiIcon:Boolean,rightText:String,rightIcon:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,color:String,navBarBackground:String,leftBtnStyle:Object};const Pf=Re(t.defineComponent({name:Af,props:Of,emits:["clickLeft","clickRight"],setup(e,{emit:n,slots:o}){const a=t.ref(),r=Sf(a,Tf),i=e=>n("clickLeft",e),l=e=>n("clickRight",e),s=()=>{const{color:t,navBarBackground:n}=e,o={};if(t&&(o.color=t),n&&(o.background=n),Object.keys(o).length>0)return o},c=()=>{const{title:n,fixed:r}=e,c=e.leftText||e.leftIcon||o.left,u=e.rightIcon||e.rightText||o.right;return t.createVNode("div",{ref:a,style:s(),class:[Tf({fixed:r}),{"zt-safe-area-top":e.safeAreaInsetTop}]},[t.createVNode("div",{class:Tf("content")},[c&&t.createVNode("div",{class:[Tf("left")],onClick:i},[o.left?o.left():t.createVNode("div",{class:Tf("bar-btn","left")},[e.leftIcon?t.createVNode(lt,{class:Tf("icon"),name:"back"},null):"",e.leftText?t.createVNode("span",{class:Tf("text",e.leftIcon?"left-text":"")},["返回"]):""])]),t.createVNode("div",{class:[Tf("title"),"zt-ellipsis"]},[o.title?o.title():n]),u&&t.createVNode("div",{class:[Tf("right",e.multiIcon?"multi-icon":"")],onClick:l},[o.right?o.right():t.createVNode("div",{class:Tf("bar-btn","right")},[e.rightIcon?t.createVNode(lt,{class:Tf("icon"),name:"more"},null):"",e.rightText?t.createVNode("span",{class:Tf("text")},[e.rightText||"更多"]):""]),o.extra?o.extra():null])])])};return()=>e.fixed&&e.placeholder?r(c):c()}})),[Mf,Bf]=Oe("notice-bar"),If={text:String,mode:String,color:String,delay:V(1),speed:V(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}};const Ef=Re(t.defineComponent({name:Mf,props:If,emits:["close","replay"],setup(e,{emit:n,slots:o}){let r,i=0,l=0;const s=t.ref(),c=t.ref(),u=t.reactive({show:!0,offset:0,duration:0}),d=t=>{"closeable"===e.mode&&(u.show=!1,n("close",t))},f=()=>{if(o["right-icon"])return o["right-icon"]();const n="closeable"===e.mode?"clear-r":"link"===e.mode?"arrow-right":void 0;return n?t.createVNode(st,{name:n,class:Bf("right-icon"),onClick:d},null):void 0},p=()=>{u.offset=i,u.duration=0,A((()=>{T((()=>{u.offset=-l,u.duration=(l+i)/+e.speed,n("replay")}))}))},h=()=>{const n=!1===e.scrollable&&!e.wrapable,a={transform:u.offset?`translateX(${u.offset}px)`:"",transitionDuration:`${u.duration}s`};return t.createVNode("div",{ref:s,role:"marquee",class:Bf("wrap")},[t.createVNode("div",{ref:c,style:a,class:[Bf("content"),{"zt-ellipsis":n}],onTransitionend:p},[o.default?o.default():e.text])])},m=()=>{const{delay:t,speed:n,scrollable:o}=e,d=a(t)?1e3*+t:0;i=0,l=0,u.offset=0,u.duration=0,clearTimeout(r),r=setTimeout((()=>{if(!s.value||!c.value||!1===o)return;const e=I(s).width,t=I(c).width;(o||t>e)&&T((()=>{i=e,l=t,u.offset=-l,u.duration=l/+n}))}),d)};return gt(m),F(m),j("pageshow",m),dt({reset:m}),t.watch((()=>[e.text,e.scrollable]),m),()=>{const{color:n,wrapable:a,background:r}=e;return t.withDirectives(t.createVNode("div",{role:"alert",class:Bf({wrapable:a}),style:{color:n,background:r}},[o["left-icon"]?o["left-icon"]():e.leftIcon?t.createVNode(st,{class:Bf("left-icon"),name:e.leftIcon},null):void 0,h(),f()]),[[t.vShow,u.show]])}}})),[Df,zf]=Oe("notify"),Ff=p({},ct,{type:k("danger"),color:String,message:b,position:k("top"),className:y,background:String,lockScroll:Boolean});var jf=t.defineComponent({name:Df,props:Ff,emits:["update:show"],setup(e,{emit:n,slots:o}){const a=e=>n("update:show",e);return()=>t.createVNode(St,{show:e.show,class:[zf([e.type]),e.className],style:{color:e.color,background:e.background},overlay:!1,position:e.position,duration:.2,lockScroll:e.lockScroll,"onUpdate:show":a},{default:()=>[o.default?o.default():e.message]})}});let _f,Rf;let Hf={type:"danger",color:void 0,message:"",onClose:void 0,onClick:void 0,onOpened:void 0,duration:3e3,position:void 0,className:"",lockScroll:!1,background:void 0};const Uf=()=>{Rf&&Rf.toggle(!1)};const $f=Re(jf),[Zf,Wf]=Oe("key"),Yf=t.createVNode(st,{name:"keyboard-shrink",size:"40"},null),qf=t.createVNode(st,{name:"backspace",size:"40"},null);var Gf=t.defineComponent({name:Zf,props:{type:String,text:b,color:String,wider:Boolean,large:Boolean,loading:Boolean},emits:["press"],setup(e,{emit:n,slots:o}){const a=t.ref(!1),r=ft(),i=e=>{r.start(e),a.value=!0},l=e=>{r.move(e),r.direction.value&&(a.value=!1)},s=t=>{a.value&&(o.default||ne(t),a.value=!1,n("press",e.text,e.type))},c=()=>{if(e.loading)return t.createVNode(It,{class:Wf("loading-icon")},null);const n=o.default?o.default():e.text;switch(e.type){case"delete":return n||qf;case"extra":return n||Yf;default:return n}};return()=>t.createVNode("div",{class:Wf("wrapper",{wider:e.wider}),onTouchstartPassive:i,onTouchmovePassive:l,onTouchend:s,onTouchcancel:s},[t.createVNode("div",{role:"button",tabindex:0,class:Wf([e.color,{large:e.large,active:a.value,delete:"delete"===e.type}])},[c()])])}});const[Xf,Kf]=Oe("number-keyboard"),Qf={show:Boolean,title:String,theme:k("default"),zIndex:b,teleport:[String,Object],maxlength:V(1/0),modelValue:k(""),transition:x,blurOnClose:x,showDeleteKey:x,randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,hideOnClickOutside:x,safeAreaInsetBottom:x,extraKey:{type:[String,Array],default:""}};const Jf=Re(t.defineComponent({name:Xf,props:Qf,emits:["show","hide","blur","input","close","delete","update:modelValue"],setup(e,{emit:n,slots:o}){const a=t.ref(),r=()=>{const t=Array(9).fill("").map(((e,t)=>({text:t+1})));return e.randomKeyOrder&&function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),o=e[t];e[t]=e[n],e[n]=o}}(t),t},i=t.computed((()=>"custom"===e.theme?(()=>{const t=r(),{extraKey:n}=e,o=Array.isArray(n)?n:[n];return 1===o.length?t.push({text:0,wider:!0},{text:o[0],type:"extra"}):2===o.length&&t.push({text:o[0],type:"extra"},{text:0},{text:o[1],type:"extra"}),t})():[...r(),{text:e.extraKey,type:"extra"},{text:0},{text:e.showDeleteKey?e.deleteButtonText:"",type:e.showDeleteKey?"delete":""}])),l=()=>{e.show&&n("blur")},s=()=>n(e.show?"show":"hide"),c=(t,o)=>{if(""===t)return void("extra"===o&&l());const a=e.modelValue;"delete"===o?(n("delete"),n("update:modelValue",a.slice(0,a.length-1))):"close"===o?(n("close"),e.blurOnClose&&l()):a.length<+e.maxlength?(n("input",t),n("update:modelValue",a+t)):a.length>=+e.maxlength&&Wn(`最大长度为${e.maxlength}`)},u=()=>{if("custom"===e.theme)return t.createVNode("div",{class:Kf("sidebar")},[e.showDeleteKey&&t.createVNode(Gf,{large:!0,text:e.deleteButtonText,type:"delete",onPress:c},{delete:o.delete}),t.createVNode(Gf,{large:!0,text:e.closeButtonText,type:"close",color:"blue",loading:e.closeButtonLoading,onPress:c},null)])};return t.watch((()=>e.show),(t=>{e.transition||n(t?"show":"hide")})),e.hideOnClickOutside&&_(a,l,{eventName:"touchstart"}),()=>{const n=(()=>{const{title:n}=e,a=o["title-left"];if(n||a)return t.createVNode("div",{class:Kf("header")},[a&&t.createVNode("span",{class:Kf("title-left")},[a()]),n&&t.createVNode("div",{class:Kf("title")},[n])])})(),{title:r}=e,l=t.createVNode(t.Transition,{name:e.transition?"zt-slide-up":""},{default:()=>[t.withDirectives(t.createVNode("div",{ref:a,style:ce(e.zIndex),class:[Kf({unfit:!e.safeAreaInsetBottom,"with-title":!!n}),r?Kf("no-title"):""],onAnimationend:s,onTouchstartPassive:te},[r&&n,t.createVNode("div",{class:[Kf("body"),r?"":Kf("body-no-title")]},[t.createVNode("div",{class:Kf("keys")},[i.value.map((e=>{const n={};return"delete"===e.type&&(n.default=o.delete),"extra"===e.type&&(n.default=o["extra-key"]),t.createVNode(Gf,{key:e.text,text:e.text,type:e.type,wider:e.wider,color:e.color,onPress:c},n)}))]),u()])]),[[t.vShow,e.show]])]});return e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[l]}):l}}})),[ep,tp]=Oe("pagination"),np={modelValue:V(1),totalPage:V(0)};const op=Re(t.defineComponent({name:ep,props:np,emits:["change","update:modelValue"],setup(e,{emit:n}){const o=t.ref(!1),a=t.computed((()=>Number(e.modelValue))),r=t.computed((()=>Number(e.totalPage))),i=t.computed((()=>Array.from({length:Math.max(r.value,0)},((e,t)=>t+1)))),l=t.computed((()=>a.value<=1)),s=t.computed((()=>a.value>=r.value)),c=e=>{n("update:modelValue",e),n("change",e)},u=()=>{l.value||c(a.value-1)},d=()=>{s.value||c(a.value+1)},f=()=>{o.value=!1};return()=>t.createVNode(t.Fragment,null,[t.createVNode("div",{class:tp()},[t.createVNode("button",{type:"button",class:[tp("button"),tp("prev"),{[tp("button",{disabled:!0})]:l.value}],"aria-disabled":l.value||void 0,onClick:u},[t.createVNode(st,{name:"back",size:"24"},null)]),t.createVNode("button",{type:"button",class:tp("page"),onClick:()=>o.value=!0},[t.createVNode("span",{class:tp("text")},[a.value,t.createTextVNode("/"),r.value])]),t.createVNode("button",{type:"button",class:[tp("button"),tp("next"),{[tp("button",{disabled:!0})]:s.value}],"aria-disabled":s.value||void 0,onClick:d},[t.createVNode(st,{name:"back",size:"24",class:tp("next-icon")},null)])]),t.createVNode(At,{show:o.value,"onUpdate:show":e=>o.value=e,round:!0,closeable:!0,position:"bottom",lockScroll:!0,safeAreaInsetBottom:!0,style:{height:"80%"}},{default:()=>[t.createVNode("div",{class:tp("popup")},[t.createVNode("div",{class:tp("popup-title")},[t.createTextVNode("跳转翻页")]),t.createVNode("div",{class:tp("popup-pages")},[i.value.map((e=>t.createVNode("button",{type:"button",class:tp("popup-page"),onClick:()=>{return(t=e)!==a.value&&c(t),void(o.value=!1);var t}},[e])))]),t.createVNode("div",{class:tp("popup-footer")},[t.createVNode(vn,{type:"default",block:!0,onClick:f},{default:()=>[t.createTextVNode("取消")]})])])]})])}})),[ap,rp]=Oe("password-input"),ip={info:String,mask:x,value:k(""),gutter:b,length:V(6),focused:Boolean,errorInfo:String};const lp=Re(t.defineComponent({name:ap,props:ip,emits:["focus"],setup(e,{emit:n}){const o=e=>{e.stopPropagation(),n("focus",e)},a=()=>{const n=[],{mask:o,value:a,gutter:r,focused:i}=e,l=+e.length;for(let e=0;e<l;e++){const l=a[e],s=0!==e&&!r,c=i&&e===a.length;let u;0!==e&&r&&(u={marginLeft:le(r)}),n.push(t.createVNode("li",{class:[{[Be]:s},rp("item",{focus:c})],style:u},[o?t.createVNode("i",{style:{visibility:l?"visible":"hidden"}},null):l,c&&t.createVNode("div",{class:rp("cursor")},null)]))}return n};return()=>{const n=e.errorInfo||e.info;return t.createVNode("div",{class:rp()},[t.createVNode("ul",{class:[rp("security"),{[Ee]:!e.gutter}],onTouchstartPassive:o},[a()]),n&&t.createVNode("div",{class:rp(e.errorInfo?"error-info":"info")},[n])])}}})),sp=["top","right","bottom","left"],cp=Math.min,up=Math.max,dp=Math.round,fp=Math.floor,pp=e=>({x:e,y:e}),hp={left:"right",right:"left",bottom:"top",top:"bottom"},mp={start:"end",end:"start"};function vp(e,t,n){return up(e,cp(t,n))}function gp(e,t){return"function"==typeof e?e(t):e}function wp(e){return e.split("-")[0]}function yp(e){return e.split("-")[1]}function bp(e){return"x"===e?"y":"x"}function xp(e){return"y"===e?"height":"width"}function Cp(e){return["top","bottom"].includes(wp(e))?"y":"x"}function Lp(e){return bp(Cp(e))}function Np(e){return e.replace(/start|end/g,(e=>mp[e]))}function Vp(e){return e.replace(/left|right|bottom|top/g,(e=>hp[e]))}function kp(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Sp(e){const{x:t,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:t,right:t+o,bottom:n+a,x:t,y:n}}function Ap(e,t,n){let{reference:o,floating:a}=e;const r=Cp(t),i=Lp(t),l=xp(i),s=wp(t),c="y"===r,u=o.x+o.width/2-a.width/2,d=o.y+o.height/2-a.height/2,f=o[l]/2-a[l]/2;let p;switch(s){case"top":p={x:u,y:o.y-a.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-a.width,y:d};break;default:p={x:o.x,y:o.y}}switch(yp(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1)}return p}async function Tp(e,t){var n;void 0===t&&(t={});const{x:o,y:a,platform:r,rects:i,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=gp(t,e),h=kp(p),m=l[f?"floating"===d?"reference":"floating":d],v=Sp(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),g="floating"===d?{x:o,y:a,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),y=await(null==r.isElement?void 0:r.isElement(w))&&await(null==r.getScale?void 0:r.getScale(w))||{x:1,y:1},b=Sp(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:w,strategy:s}):g);return{top:(v.top-b.top+h.top)/y.y,bottom:(b.bottom-v.bottom+h.bottom)/y.y,left:(v.left-b.left+h.left)/y.x,right:(b.right-v.right+h.right)/y.x}}function Op(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pp(e){return sp.some((t=>e[t]>=0))}function Mp(){return"undefined"!=typeof window}function Bp(e){return Dp(e)?(e.nodeName||"").toLowerCase():"#document"}function Ip(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ep(e){var t;return null==(t=(Dp(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Dp(e){return!!Mp()&&(e instanceof Node||e instanceof Ip(e).Node)}function zp(e){return!!Mp()&&(e instanceof Element||e instanceof Ip(e).Element)}function Fp(e){return!!Mp()&&(e instanceof HTMLElement||e instanceof Ip(e).HTMLElement)}function jp(e){return!(!Mp()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ip(e).ShadowRoot)}function _p(e){const{overflow:t,overflowX:n,overflowY:o,display:a}=Wp(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(a)}function Rp(e){return["table","td","th"].includes(Bp(e))}function Hp(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function Up(e){const t=$p(),n=zp(e)?Wp(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function $p(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Zp(e){return["html","body","#document"].includes(Bp(e))}function Wp(e){return Ip(e).getComputedStyle(e)}function Yp(e){return zp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qp(e){if("html"===Bp(e))return e;const t=e.assignedSlot||e.parentNode||jp(e)&&e.host||Ep(e);return jp(t)?t.host:t}function Gp(e){const t=qp(e);return Zp(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fp(t)&&_p(t)?t:Gp(t)}function Xp(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=Gp(e),r=a===(null==(o=e.ownerDocument)?void 0:o.body),i=Ip(a);if(r){const e=Kp(i);return t.concat(i,i.visualViewport||[],_p(a)?a:[],e&&n?Xp(e):[])}return t.concat(a,Xp(a,[],n))}function Kp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qp(e){const t=Wp(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=Fp(e),r=a?e.offsetWidth:n,i=a?e.offsetHeight:o,l=dp(n)!==r||dp(o)!==i;return l&&(n=r,o=i),{width:n,height:o,$:l}}function Jp(e){return zp(e)?e:e.contextElement}function eh(e){const t=Jp(e);if(!Fp(t))return pp(1);const n=t.getBoundingClientRect(),{width:o,height:a,$:r}=Qp(t);let i=(r?dp(n.width):n.width)/o,l=(r?dp(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const th=pp(0);function nh(e){const t=Ip(e);return $p()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:th}function oh(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),r=Jp(e);let i=pp(1);t&&(o?zp(o)&&(i=eh(o)):i=eh(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ip(e))&&t}(r,n,o)?nh(r):pp(0);let s=(a.left+l.x)/i.x,c=(a.top+l.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(r){const e=Ip(r),t=o&&zp(o)?Ip(o):o;let n=e,a=Kp(n);for(;a&&o&&t!==n;){const e=eh(a),t=a.getBoundingClientRect(),o=Wp(a),r=t.left+(a.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=r,c+=i,n=Ip(a),a=Kp(n)}}return Sp({width:u,height:d,x:s,y:c})}function ah(e,t){const n=Yp(e).scrollLeft;return t?t.left+n:oh(Ep(e)).left+n}function rh(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=Ip(e),o=Ep(e),a=n.visualViewport;let r=o.clientWidth,i=o.clientHeight,l=0,s=0;if(a){r=a.width,i=a.height;const e=$p();(!e||e&&"fixed"===t)&&(l=a.offsetLeft,s=a.offsetTop)}return{width:r,height:i,x:l,y:s}}(e,n);else if("document"===t)o=function(e){const t=Ep(e),n=Yp(e),o=e.ownerDocument.body,a=up(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=up(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+ah(e);const l=-n.scrollTop;return"rtl"===Wp(o).direction&&(i+=up(t.clientWidth,o.clientWidth)-a),{width:a,height:r,x:i,y:l}}(Ep(e));else if(zp(t))o=function(e,t){const n=oh(e,!0,"fixed"===t),o=n.top+e.clientTop,a=n.left+e.clientLeft,r=Fp(e)?eh(e):pp(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:a*r.x,y:o*r.y}}(t,n);else{const n=nh(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return Sp(o)}function ih(e,t){const n=qp(e);return!(n===t||!zp(n)||Zp(n))&&("fixed"===Wp(n).position||ih(n,t))}function lh(e,t,n){const o=Fp(t),a=Ep(t),r="fixed"===n,i=oh(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const s=pp(0);if(o||!o&&!r)if(("body"!==Bp(t)||_p(a))&&(l=Yp(t)),o){const e=oh(t,!0,r,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=ah(a));let c=0,u=0;if(a&&!o&&!r){const e=a.getBoundingClientRect();u=e.top+l.scrollTop,c=e.left+l.scrollLeft-ah(a,e)}return{x:i.left+l.scrollLeft-s.x-c,y:i.top+l.scrollTop-s.y-u,width:i.width,height:i.height}}function sh(e){return"static"===Wp(e).position}function ch(e,t){if(!Fp(e)||"fixed"===Wp(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ep(e)===n&&(n=n.ownerDocument.body),n}function uh(e,t){const n=Ip(e);if(Hp(e))return n;if(!Fp(e)){let t=qp(e);for(;t&&!Zp(t);){if(zp(t)&&!sh(t))return t;t=qp(t)}return n}let o=ch(e,t);for(;o&&Rp(o)&&sh(o);)o=ch(o,t);return o&&Zp(o)&&sh(o)&&!Up(o)?n:o||function(e){let t=qp(e);for(;Fp(t)&&!Zp(t);){if(Up(t))return t;if(Hp(t))return null;t=qp(t)}return null}(e)||n}const dh={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:a}=e;const r="fixed"===a,i=Ep(o),l=!!t&&Hp(t.floating);if(o===i||l&&r)return n;let s={scrollLeft:0,scrollTop:0},c=pp(1);const u=pp(0),d=Fp(o);if((d||!d&&!r)&&(("body"!==Bp(o)||_p(i))&&(s=Yp(o)),Fp(o))){const e=oh(o);c=eh(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:Ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:a}=e;const r=[..."clippingAncestors"===n?Hp(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=Xp(e,[],!1).filter((e=>zp(e)&&"body"!==Bp(e))),a=null;const r="fixed"===Wp(e).position;let i=r?qp(e):e;for(;zp(i)&&!Zp(i);){const t=Wp(i),n=Up(i);n||"fixed"!==t.position||(a=null),(r?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||_p(i)&&!n&&ih(e,i))?o=o.filter((e=>e!==i)):a=t,i=qp(i)}return t.set(e,o),o}(t,this._c):[].concat(n),o],i=r[0],l=r.reduce(((e,n)=>{const o=rh(t,n,a);return e.top=up(o.top,e.top),e.right=cp(o.right,e.right),e.bottom=cp(o.bottom,e.bottom),e.left=up(o.left,e.left),e}),rh(t,i,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:uh,getElementRects:async function(e){const t=this.getOffsetParent||uh,n=this.getDimensions,o=await n(e.floating);return{reference:lh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Qp(e);return{width:t,height:n}},getScale:eh,isElement:zp,isRTL:function(e){return"rtl"===Wp(e).direction}};function fh(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:a=!0,ancestorResize:r=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=Jp(e),u=a||r?[...c?Xp(c):[],...Xp(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,o=null;const a=Ep(e);function r(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),r();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-fp(u)+"px "+-fp(a.clientWidth-(c+d))+"px "+-fp(a.clientHeight-(u+f))+"px "+-fp(c)+"px",threshold:up(0,cp(1,s))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{o=new IntersectionObserver(m,{...p,root:a.ownerDocument})}catch(v){o=new IntersectionObserver(m,p)}o.observe(e)}(!0),r}(c,n):null;let f,p=-1,h=null;i&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!s&&h.observe(c),h.observe(t));let m=s?oh(e):null;return s&&function t(){const o=oh(e);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||n();m=o,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const ph=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:a,y:r,placement:i,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:o,elements:a}=e,r=await(null==o.isRTL?void 0:o.isRTL(a.floating)),i=wp(n),l=yp(n),s="y"===Cp(n),c=["left","top"].includes(i)?-1:1,u=r&&s?-1:1,d=gp(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:a+s.x,y:r+s.y,data:{...s,placement:i}}}}},hh=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:a}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=gp(e,t),c={x:n,y:o},u=await Tp(t,s),d=Cp(wp(a)),f=bp(d);let p=c[f],h=c[d];if(r){const e="y"===f?"bottom":"right";p=vp(p+u["y"===f?"top":"left"],p,p-u[e])}if(i){const e="y"===d?"bottom":"right";h=vp(h+u["y"===d?"top":"left"],h,h-u[e])}const m=l.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[f]:r,[d]:i}}}}}},mh=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:a,middlewareData:r,rects:i,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=gp(e,t);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const g=wp(a),w=Cp(l),y=wp(l)===l,b=await(null==s.isRTL?void 0:s.isRTL(c.floating)),x=f||(y||!m?[Vp(l)]:function(e){const t=Vp(e);return[Np(e),t,Np(t)]}(l)),C="none"!==h;!f&&C&&x.push(...function(e,t,n,o){const a=yp(e);let r=function(e,t,n){const o=["left","right"],a=["right","left"],r=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:o:t?o:a;case"left":case"right":return t?r:i;default:return[]}}(wp(e),"start"===n,o);return a&&(r=r.map((e=>e+"-"+a)),t&&(r=r.concat(r.map(Np)))),r}(l,m,h,b));const L=[l,...x],N=await Tp(t,v),V=[];let k=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&V.push(N[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=yp(e),a=Lp(e),r=xp(a);let i="x"===a?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=Vp(i)),[i,Vp(i)]}(a,i,b);V.push(N[e[0]],N[e[1]])}if(k=[...k,{placement:a,overflows:V}],!V.every((e=>e<=0))){var S,A;const e=((null==(S=r.flip)?void 0:S.index)||0)+1,t=L[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(A=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=k.filter((e=>{if(C){const t=Cp(e.placement);return t===w||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=l}if(a!==n)return{reset:{placement:n}}}return{}}}},vh=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...a}=gp(e,t);switch(o){case"referenceHidden":{const e=Op(await Tp(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Pp(e)}}}case"escaped":{const e=Op(await Tp(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Pp(e)}}}default:return{}}}}},gh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:a,rects:r,platform:i,elements:l,middlewareData:s}=t,{element:c,padding:u=0}=gp(e,t)||{};if(null==c)return{};const d=kp(u),f={x:n,y:o},p=Lp(a),h=xp(p),m=await i.getDimensions(c),v="y"===p,g=v?"top":"left",w=v?"bottom":"right",y=v?"clientHeight":"clientWidth",b=r.reference[h]+r.reference[p]-f[p]-r.floating[h],x=f[p]-r.reference[p],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let L=C?C[y]:0;L&&await(null==i.isElement?void 0:i.isElement(C))||(L=l.floating[y]||r.floating[h]);const N=b/2-x/2,V=L/2-m[h]/2-1,k=cp(d[g],V),S=cp(d[w],V),A=k,T=L-m[h]-S,O=L/2-m[h]/2+N,P=vp(A,O,T),M=!s.arrow&&null!=yp(a)&&O!==P&&r.reference[h]/2-(O<A?k:S)-m[h]/2<0,B=M?O<A?O-A:O-T:0;return{[p]:f[p]+B,data:{[p]:P,centerOffset:O-P-B,...M&&{alignmentOffset:B}},reset:M}}}),wh=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:a,rects:r,middlewareData:i}=t,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=gp(e,t),u={x:n,y:o},d=Cp(a),f=bp(d);let p=u[f],h=u[d];const m=gp(l,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const e="y"===f?"height":"width",t=r.reference[f]-r.floating[e]+v.mainAxis,n=r.reference[f]+r.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,w;const e="y"===f?"width":"height",t=["top","left"].includes(wp(a)),n=r.reference[d]-r.floating[e]+(t&&(null==(g=i.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),o=r.reference[d]+r.reference[e]+(t?0:(null==(w=i.offset)?void 0:w[d])||0)-(t?v.crossAxis:0);h<n?h=n:h>o&&(h=o)}return{[f]:p,[d]:h}}}},yh=(e,t,n)=>{const o=new Map,a={platform:dh,...n},r={...a.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:r=[],platform:i}=n,l=r.filter(Boolean),s=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=Ap(c,o,s),f=o,p={},h=0;for(let m=0;m<l.length;m++){const{name:n,fn:r}=l[m],{x:v,y:g,data:w,reset:y}=await r({x:u,y:d,initialPlacement:o,placement:f,strategy:a,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=g?g:d,p={...p,[n]:{...p[n],...w}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):y.rects),({x:u,y:d}=Ap(c,f,s))),m=-1)}return{x:u,y:d,placement:f,strategy:a,middlewareData:p}})(e,t,{...a,platform:r})};function bh(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xh(e){return e instanceof bh(e).Element||e instanceof Element}function Ch(e){return e instanceof bh(e).HTMLElement||e instanceof HTMLElement}function Lh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof bh(e).ShadowRoot||e instanceof ShadowRoot)}var Nh=Math.round;function Vh(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function kh(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),a=1,r=1;t&&Ch(e)&&(a=e.offsetWidth>0&&Nh(o.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Nh(o.height)/e.offsetHeight||1);var i=(xh(e)?bh(e):window).visualViewport,l=!!/^((?!chrome|android).)*safari/i.test(Vh())&&n,s=(o.left+(l&&i?i.offsetLeft:0))/a,c=(o.top+(l&&i?i.offsetTop:0))/r,u=o.width/a,d=o.height/r;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Sh(e){var t=bh(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ah(e){return e?(e.nodeName||"").toLowerCase():null}function Th(e){return((xh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oh(e){return bh(e).getComputedStyle(e)}function Ph(e){var t=Oh(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Mh(e,t,n){void 0===n&&(n=!1);var o,a,r=Ch(t),i=Ch(t)&&function(e){var t=e.getBoundingClientRect(),n=Nh(t.width)/e.offsetWidth||1,o=Nh(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),l=Th(t),s=kh(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ah(t)||Ph(l))&&(c=(o=t)!==bh(o)&&Ch(o)?{scrollLeft:(a=o).scrollLeft,scrollTop:a.scrollTop}:Sh(o)),Ch(t)?((u=kh(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=function(e){return kh(Th(e)).left+Sh(e).scrollLeft}(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function Bh(e){return"html"===Ah(e)?e:e.assignedSlot||e.parentNode||(Lh(e)?e.host:null)||Th(e)}function Ih(e){return["html","body","#document"].indexOf(Ah(e))>=0?e.ownerDocument.body:Ch(e)&&Ph(e)?e:Ih(Bh(e))}function Eh(e,t){var n;void 0===t&&(t=[]);var o=Ih(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),r=bh(o),i=a?[r].concat(r.visualViewport||[],Ph(o)?o:[]):o,l=t.concat(i);return a?l:l.concat(Eh(Bh(i)))}function Dh(e){return["table","td","th"].indexOf(Ah(e))>=0}function zh(e){return Ch(e)&&"fixed"!==Oh(e).position?e.offsetParent:null}function Fh(e){for(var t=bh(e),n=zh(e);n&&Dh(n)&&"static"===Oh(n).position;)n=zh(n);return n&&("html"===Ah(n)||"body"===Ah(n)&&"static"===Oh(n).position)?t:n||function(e){var t=/firefox/i.test(Vh());if(/Trident/i.test(Vh())&&Ch(e)&&"fixed"===Oh(e).position)return null;var n=Bh(e);for(Lh(n)&&(n=n.host);Ch(n)&&["html","body"].indexOf(Ah(n))<0;){var o=Oh(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}var jh="top",_h="bottom",Rh="right",Hh="left",Uh="start",$h="end",Zh=[].concat([jh,_h,Rh,Hh],["auto"]).reduce((function(e,t){return e.concat([t,t+"-"+Uh,t+"-"+$h])}),[]),Wh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Yh(e){var t=new Map,n=new Set,o=[];function a(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&a(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||a(e)})),o}function qh(e){return e.split("-")[0]}function Gh(e){return e.split("-")[1]}var Xh={placement:"bottom",modifiers:[],strategy:"absolute"};function Kh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Qh(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,a=t.defaultOptions,r=void 0===a?Xh:a;return function(e,t,n){void 0===n&&(n=r);var a,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xh,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var a="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},r,l.options,a),l.scrollParents={reference:xh(e)?Eh(e):e.contextElement?Eh(e.contextElement):[],popper:Eh(t)};var i,c,f=function(e){var t=Yh(e);return Wh.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(o,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var r=a({state:l,name:t,instance:u,options:o}),i=function(){};s.push(r||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(Kh(t,n)){var o,a,r,i;l.rects={reference:Mh(t,Fh(n),"fixed"===l.options.strategy),popper:(o=n,a=kh(o),r=o.offsetWidth,i=o.offsetHeight,Math.abs(a.width-r)<=1&&(r=a.width),Math.abs(a.height-i)<=1&&(i=a.height),{x:o.offsetLeft,y:o.offsetTop,width:r,height:i})},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var s=0;s<l.orderedModifiers.length;s++)if(!0!==l.reset){var d=l.orderedModifiers[s],f=d.fn,p=d.options,h=void 0===p?{}:p,m=d.name;"function"==typeof f&&(l=f({state:l,options:h,name:m,instance:u})||l)}else l.reset=!1,s=-1}}},update:(a=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(a())}))}))),i}),destroy:function(){d(),c=!0}};if(!Kh(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Jh={passive:!0};var em={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tm(e){var t,n=e.popper,o=e.popperRect,a=e.placement,r=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,h=i.y,m=void 0===h?0:h,v="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var g=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),y=Hh,b=jh,x=window;if(c){var C=Fh(n),L="clientHeight",N="clientWidth";if(C===bh(n)&&"static"!==Oh(C=Th(n)).position&&"absolute"===l&&(L="scrollHeight",N="scrollWidth"),a===jh||(a===Hh||a===Rh)&&r===$h)b=_h,m-=(d&&C===x&&x.visualViewport?x.visualViewport.height:C[L])-o.height,m*=s?1:-1;if(a===Hh||(a===jh||a===_h)&&r===$h)y=Rh,p-=(d&&C===x&&x.visualViewport?x.visualViewport.width:C[N])-o.width,p*=s?1:-1}var V,k=Object.assign({position:l},c&&em),S=!0===u?function(e,t){var n=e.x,o=e.y,a=t.devicePixelRatio||1;return{x:Nh(n*a)/a||0,y:Nh(o*a)/a||0}}({x:p,y:m},bh(n)):{x:p,y:m};return p=S.x,m=S.y,s?Object.assign({},k,((V={})[b]=w?"0":"",V[y]=g?"0":"",V.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",V)):Object.assign({},k,((t={})[b]=w?m+"px":"",t[y]=g?p+"px":"",t.transform="",t))}var nm=Qh({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,r=void 0===a||a,i=o.resize,l=void 0===i||i,s=bh(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",n.update,Jh)})),l&&s.addEventListener("resize",n.update,Jh),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Jh)})),l&&s.removeEventListener("resize",n.update,Jh)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=function(e){var t,n=e.reference,o=e.element,a=e.placement,r=a?qh(a):null,i=a?Gh(a):null,l=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(r){case jh:t={x:l,y:n.y-o.height};break;case _h:t={x:l,y:n.y+n.height};break;case Rh:t={x:n.x+n.width,y:s};break;case Hh:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var c=r?function(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}(r):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Uh:t[c]=t[c]-(n[u]/2-o[u]/2);break;case $h:t[c]=t[c]+(n[u]/2-o[u]/2)}}return t}({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=void 0===o||o,r=n.adaptive,i=void 0===r||r,l=n.roundOffsets,s=void 0===l||l,c={placement:qh(t.placement),variation:Gh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,tm(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,tm(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},a=t.elements[e];Ch(a)&&Ah(a)&&(Object.assign(a.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],a=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Ch(o)&&Ah(o)&&(Object.assign(o.style,r),Object.keys(a).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]}]});var om={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,a=n.offset,r=void 0===a?[0,0]:a,i=Zh.reduce((function(e,n){return e[n]=function(e,t,n){var o=qh(e),a=[Hh,jh].indexOf(o)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=r[0],l=r[1];return i=i||0,l=(l||0)*a,[Hh,Rh].indexOf(o)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,r),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}};const[am,rm]=Oe("popover"),im=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],lm={show:Boolean,theme:k("light"),overlay:Boolean,actions:L(),trigger:k("click"),duration:b,showArrow:x,placement:k("bottom"),iconPrefix:String,overlayClass:y,overlayStyle:Object,closeOnClickAction:x,closeOnClickOverlay:x,closeOnClickOutside:x,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"},autoAdjustOverflow:{type:Boolean,default:!1}};const sm=Re(t.defineComponent({name:am,props:lm,emits:["select","touchstart","update:show"],setup(e,{emit:n,slots:o,attrs:a}){let r;const i=t.ref(),l=t.ref(),s=t.ref(),c=t.ref(),u=sl((()=>e.show),(e=>n("update:show",e))),d=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},p({},om,{options:{offset:e.offset}})]}),f=()=>{t.nextTick((()=>{u.value&&(r?r.setOptions(d()):(r=l.value&&s.value?nm(l.value,s.value.popupRef.value,d()):null,h&&(window.addEventListener("animationend",f),window.addEventListener("transitionend",f))))}))},m=e=>{u.value=e},g=()=>{"click"===e.trigger&&(u.value=!u.value)},w=(n,a)=>o.action?o.action({action:n,index:a}):[n.icon&&t.createVNode(lt,{name:n.icon,classPrefix:e.iconPrefix,class:rm("action-icon")},null),t.createVNode("div",{class:[rm("action-text"),Ie]},[n.text])],y=(o,a)=>{const{icon:r,color:i,disabled:l,className:s,selected:c}=o;return t.createVNode("div",{role:"menuitem",class:[rm("action",{disabled:l,"with-icon":r}),s],style:c?{color:"var(--zt-primary-color)"}:{color:i},tabindex:l?void 0:0,"aria-disabled":l||void 0,onClick:()=>((t,o)=>{t.disabled||(e.actions.forEach((e=>{e.selected=!1})),t.selected=!0,n("select",t,o),e.closeOnClickAction&&(u.value=!1))})(o,a)},[w(o,a)])};function b(){return n=this,o=null,a=function*(){var n,o;if(l.value&&i.value&&c.value){const a=i.value,r=l.value,{x:s,y:u,placement:d,middlewareData:f}=yield yh(r,a,{placement:e.placement,middleware:[ph(8),hh({padding:4,crossAxis:!1,limiter:wh()}),mh(),vh(),(o={element:c.value,padding:6},{name:"arrow",options:o,fn(e){const n=function(e){var t;return null!=(t=null==e?void 0:e.$el)?t:e}(t.unref(o.element));return null==n?{}:gh({element:n,padding:o.padding}).fn(e)}})]});let p=u;const h={top:"bottom",right:"left",bottom:"top",left:"right"}[d.split("-")[0]];u<0?p=0:u>0&&u+a.offsetHeight>document.body.clientHeight&&(p=document.body.clientHeight-a.offsetHeight),Object.assign(i.value.style,{left:`${s}px`,top:`${p}px`}),i.value.setAttribute("data-popper-placement",d);const{x:m,y:v}=null!=(n=f.arrow)?n:{};Object.assign(c.value.style,{left:null!=m?`${m}px`:"",top:null!=v?`${v}px`:"",margin:0,[h]:"calc(var(--zt-popover-arrow-size) * -1)"})}},new Promise(((e,t)=>{var r=e=>{try{l(a.next(e))}catch(n){t(n)}},i=e=>{try{l(a.throw(e))}catch(n){t(n)}},l=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,i);l((a=a.apply(n,o)).next())}));var n,o,a}return t.onMounted((()=>{f(),t.watchEffect((()=>{var t;i.value=null==(t=s.value)?void 0:t.popupRef.value,l.value&&i.value&&e.autoAdjustOverflow&&fh(l.value,i.value,b,{elementResize:"undefined"!=typeof ResizeObserver})}))})),t.onBeforeUnmount((()=>{r&&(h&&(window.removeEventListener("animationend",f),window.removeEventListener("transitionend",f)),r.destroy(),r=null)})),t.watch((()=>[u.value,e.offset,e.placement]),f),_(l,(()=>{u.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(u.value=!1)}),{eventName:"touchstart"}),()=>{var n;return t.createVNode(t.Fragment,null,[t.createVNode("span",{ref:l,class:rm("wrapper"),onClick:g},[null==(n=o.reference)?void 0:n.call(o)]),t.createVNode(St,t.mergeProps({ref:s,show:u.value,class:rm([e.theme,u.value?"show":"hidden"]),position:"",transition:"zt-popover-zoom",lockScroll:!1,"onUpdate:show":m},a,wt(),v(e,im)),{default:()=>[e.showArrow&&t.createVNode("div",{class:rm("arrow"),ref:c},null),t.createVNode("div",{role:"menu",class:rm("content")},[o.default?o.default():e.actions.map(y)])]})])}}})),[cm,um,dm]=Oe("pull-refresh"),fm=["pulling","loosing","success"],pm={disabled:Boolean,modelValue:Boolean,headHeight:V(50),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:b,successDuration:V(500),animationDuration:V(300),scrollElement:null};const hm=Re(t.defineComponent({name:cm,props:pm,emits:["change","refresh","update:modelValue"],setup(e,{emit:n,slots:o}){let a;const r=t.ref(),i=t.ref(),l=Z(r),s=t.computed((()=>{if(e.scrollElement){const t=(e=>{if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"==typeof e&&e instanceof window.HTMLElement)return e}return document.body})(e.scrollElement);return t||console.warn("请检查props scroll-element元素是否存在!"),null!=t?t:l.value}return l.value})),c=t.reactive({status:"normal",distance:0,duration:0}),u=ft(),d=()=>{if(50!==e.headHeight)return{height:`${e.headHeight}px`}},f=()=>"loading"!==c.status&&"success"!==c.status&&!e.disabled,p=(t,o)=>{const a=+(e.pullDistance||e.headHeight);c.distance=t,c.status=o?"loading":0===t?"normal":t<a?"pulling":"loosing",n("change",{status:c.status,distance:t})},h=()=>{const{status:t}=c;return"normal"===t?"":e[`${t}Text`]||dm(t)},m=()=>{const{status:e,distance:n}=c;if(o[e])return o[e]({distance:n});const a=[];return fm.includes(e)&&a.push(t.createVNode("div",{class:um("text")},[h()])),"loading"===e&&a.push(t.createVNode(It,{color:"#969799","text-color":"#969799",class:um("loading")},{default:h})),a},v=e=>{a=0===q(s.value),a&&(c.duration=0,u.start(e))},g=e=>{f()&&v(e)},w=t=>{if(f()){a||v(t);const{deltaY:n}=u;u.move(t),a&&n.value>=0&&u.isVertical()&&(ne(t),p((t=>{const n=+(e.pullDistance||e.headHeight);return t>n&&(t=t<2*n?n+(t-n)/2:1.5*n+(t-2*n)/4),Math.round(t)})(n.value)))}};j("touchmove",w,{target:i});const y=()=>{a&&u.deltaY.value&&f()&&(c.duration=+e.animationDuration,"loosing"===c.status?(p(+e.headHeight,!0),n("update:modelValue",!0),t.nextTick((()=>n("refresh")))):p(0))};return t.watch((()=>e.modelValue),(t=>{c.duration=+e.animationDuration,t?p(+e.headHeight,!0):o.success||e.successText?(c.status="success",setTimeout((()=>{p(0)}),+e.successDuration)):p(0,!1)})),()=>{var e;const n={transitionDuration:`${c.duration}ms`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""};return t.createVNode("div",{ref:r,class:um()},[t.createVNode("div",{ref:i,class:um("track"),style:n,onTouchstartPassive:g,onTouchmove:w,onTouchend:y,onTouchcancel:y},[t.createVNode("div",{class:um("head"),style:d()},[m()]),null==(e=o.default)?void 0:e.call(o)])])}}})),[mm,vm]=Oe("radio-group"),gm={disabled:Boolean,iconSize:b,direction:k("vertical"),modelValue:y,checkedColor:String},wm=Symbol(mm);var ym=t.defineComponent({name:mm,props:gm,emits:["change","update:modelValue"],setup(e,{emit:n,slots:o}){const{linkChildren:a}=z(wm);return t.watch((()=>e.modelValue),(e=>n("change",e))),a({props:e,updateValue:e=>n("update:modelValue",e)}),Y((()=>e.modelValue)),()=>{var n;return t.createVNode("div",{class:vm([e.direction]),role:"radiogroup"},[null==(n=o.default)?void 0:n.call(o)])}}});const[bm,xm]=Oe("radio");var Cm=t.defineComponent({name:bm,props:ga,emits:["update:modelValue"],setup(e,{emit:n,slots:o}){const{parent:a}=E(wm),r=()=>{a?a.updateValue(e.name):n("update:modelValue",e.name)};return()=>t.createVNode(wa,t.mergeProps({bem:xm,role:"radio",parent:a,checked:(a?a.props.modelValue:e.modelValue)===e.name,onToggle:r},e),v(o,["default","icon"]))}});const Lm=Re(Cm),Nm=Re(ym),[Vm,km,Sm]=Oe("radio-picker"),Am=e=>e.find((e=>!e.disabled))||e[0];function Tm(e,t){for(let n=t=ve(t,0,e.length);n<e.length;n++)if(!e[n].disabled)return n;for(let n=t-1;n>=0;n--)if(!e[n].disabled)return n;return 0}const Om=(e,t,n)=>void 0!==t&&!!e.find((e=>e[n.value]===t));function Pm(e,t,n){const o=e.findIndex((e=>e[n.value]===t));return e[Tm(e,o)]}const[Mm,Bm]=Oe("radio-picker-column"),Im=Symbol(Mm);var Em=t.defineComponent({name:Mm,props:{value:b,unit:k(""),fields:C(Object),options:L(),readonly:Boolean,allowHtml:Boolean,wrapHeight:C(Number),swipeDuration:C(b),autoSearchVal:k("")},emits:["change","clickOption"],setup(e,{emit:n,slots:o}){let a,r,i,l,s;const c=t.ref(),u=t.ref(),d=t.ref(0),f=t.ref(0),p=ft(),h=t=>{const n=u.value.clientHeight-e.wrapHeight;d.value=ve(t,-n,0)},m=t.computed((()=>!e.options.some((t=>{const n=t[e.fields.text];return null==n?void 0:n.includes(e.autoSearchVal)}))));t.watch((()=>e.autoSearchVal),(()=>{d.value=0}),{immediate:!0});const v=()=>e.readonly||!e.options.length,g=t=>{a||v()||(s=null,f.value=200,(t=>{const o=Tm(e.options,t),r=()=>{const t=e.options[o][e.fields.value];t!==e.value&&n("change",t)};a?s=r:r()})(t),n("clickOption",e.options[t]))},w=()=>{a=!1,f.value=0,s&&(s(),s=null)},y=e=>{if(!v()){if(p.start(e),a&&u.value){const e=function(e){const{transform:t}=window.getComputedStyle(e),n=t.slice(7,t.length-1).split(", ")[5];return Number(n)}(u.value);h(Math.min(0,e-0))}f.value=0,r=d.value,i=Date.now(),l=r,s=null}},b=()=>{if(v())return;const t=d.value-l,n=Date.now()-i;n<300&&Math.abs(t)>15?((t,n)=>{const o=Math.abs(t/n);t=d.value+o/.003*(t<0?-1:1),h(t),f.value=+e.swipeDuration})(t,n):(f.value=200,setTimeout((()=>{a=!1}),0))},x=()=>e.options.map(((n,a)=>{let r=n[e.fields.text];const{disabled:i}=n,l=n[e.fields.value],s=null==r?void 0:r.includes(e.autoSearchVal);let c=!1;s&&e.autoSearchVal&&(r=(t=>{if(!t)return t;const n=new RegExp(e.autoSearchVal,"gi");return t.replace(n,"<span style='color: var(--zt-radio-picker-search-radio-label-match-color);'>$&</span>")})(r),c=!0);const u={tabindex:i?-1:0,class:[Bm("item",{"not-match":!s}),n.className],disabled:i,onClick:()=>{if(!i)return g(a)},name:l},d={[e.allowHtml||c?"innerHTML":"textContent"]:r};return t.createVNode(Cm,u,{default:()=>[o.option?o.option({option:n,searchValue:e.autoSearchVal}):t.createVNode("div",d,null)]})}));E(Im),dt({stopMomentum:w}),j("touchmove",(e=>{if(v())return;p.move(e),p.isVertical()&&(a=!0,ne(e,!0)),h(r+p.deltaY.value);const t=Date.now();t-i>300&&(i=t,l=d.value)}),{target:c});const C=()=>{var e;if(m.value)return o.searchEmpty?null==(e=o.searchEmpty)?void 0:e.call(o):t.createVNode(Di,{class:Bm("search-empty"),image:"no-search-result"},{description:()=>t.createVNode("span",null,[t.createTextVNode("暂无搜索结果")])})};return()=>t.createVNode("div",{ref:c,class:Bm(),onTouchstartPassive:y,onTouchend:b,onTouchcancel:b},[t.createVNode("ul",{ref:u,style:{transform:`translate3d(0, ${d.value+0}px, 0)`,transitionDuration:`${f.value}ms`,transitionProperty:f.value?"all":"none"},class:Bm("wrapper"),onTransitionend:w},[t.createVNode(ym,{modelValue:e.value},{default:()=>[x()]})]),C()])}});const[Dm]=Oe("picker-toolbar"),zm={cancelButtonText:String,confirmButtonText:String},Fm=["cancel","confirm","title","toolbar"],jm=Object.keys(zm);var _m=t.defineComponent({name:Dm,props:zm,emits:["confirm","cancel"],setup(e,{emit:n,slots:o}){const a=()=>n("cancel"),r=()=>n("confirm"),i=()=>{const n=e.cancelButtonText||Sm("cancel");return t.createVNode(mn,{type:"default",hairline:!0,class:km("cancel"),onClick:a},{default:()=>[o.cancel?o.cancel():n]})},l=()=>{const n=e.confirmButtonText||Sm("confirm");return t.createVNode(mn,{type:"primary",class:[km("confirm"),ze],onClick:r},{default:()=>[o.confirm?o.confirm():n]})};return()=>t.createVNode("div",{class:km("toolbar")},[o.toolbar?o.toolbar():[i(),l()]])}});function Rm(e){return"function"==typeof e?e():t.unref(e)}function Hm(e,t=200,n={}){return function(e,t){return function(...n){return new Promise(((o,a)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(o).catch(a)}))}}(function(e,t={}){let n,o,a=f;const r=e=>{clearTimeout(e),a(),a=f};return i=>{const l=Rm(e),s=Rm(t.maxWait);return n&&r(n),l<=0||void 0!==s&&s<=0?(o&&(r(o),o=null),Promise.resolve(i())):new Promise(((e,c)=>{a=t.rejectOnCancel?c:e,s&&!o&&(o=setTimeout((()=>{n&&r(n),o=null,e(i())}),s)),n=setTimeout((()=>{o&&r(o),o=null,e(i())}),l)}))}}(t,n),e)}const Um=p({loading:Boolean,readonly:Boolean,allowHtml:Boolean,showToolbar:x,showTitle:x,swipeDuration:V(1e3),title:k("请选择")},zm),$m=p({},Um,{columns:L(),modelValue:L(),columnsFieldNames:Object,wrapHeight:V("40vh"),showPicker:Boolean,popup:x,searchable:Boolean,autoSearch:x,searchPlaceholder:k("请搜索")});const Zm=Re(t.defineComponent({name:Vm,props:$m,emits:["confirm","cancel","change","clickOption","update:modelValue","update:showPicker"],setup(e,{emit:n,slots:o}){const r=t.ref(),i=t.ref(e.modelValue.slice(0)),l=t.ref(e.showPicker),{children:s,linkChildren:c}=z(Im),u=t.ref(""),d=t.ref("");c();const f=t.computed((()=>function(e){return p({text:"text",value:"value",children:"children"},e)}(e.columnsFieldNames))),h=t.computed((()=>{const t=fe(e.wrapHeight);let n=t;return e.showTitle?e.searchable&&(n=t-60):(n=t+44,e.searchable&&(n-=60)),n})),m=t.computed((()=>function(e,t){const n=e[0];if(n){if(Array.isArray(n))return"multiple";if(t.children in n)return"cascade"}return"default"}(e.columns,f.value))),w=t.computed((()=>{const{columns:t}=e;switch(m.value){case"multiple":return t;case"cascade":return function(e,t,n){const o=[];let r={[t.children]:e},i=0;for(;r&&r[t.children];){const e=r[t.children],l=n.value[i];r=a(l)?Pm(e,l,t):void 0,!r&&e.length&&(r=Pm(e,Am(e)[t.value],t)),i++,o.push(e)}return o}(t,f.value,i);default:return[t]}})),y=t.computed((()=>w.value.some((e=>e.length)))),b=t.computed((()=>w.value.map(((e,t)=>Pm(e,i.value[t],f.value)))));t.watch(l,(t=>{t!==e.showPicker&&n("update:showPicker",t)})),t.watch((()=>e.showPicker),(e=>{e!==l.value&&(l.value=e)}));const x=(e,t)=>{if(i.value[e]!==t){const n=i.value.slice(0);n[e]=t,i.value=n}},C=()=>({selectedValues:i.value.slice(0),selectedOptions:b.value}),L=()=>{s.forEach((e=>e.stopMomentum()));const e=C();return n("confirm",e),e},N=()=>{n("update:showPicker",!1),n("cancel",C())},V=e=>n("update:showPicker",e),k=()=>w.value.map(((a,r)=>t.createVNode(Em,{value:i.value[r],fields:f.value,options:a,readonly:e.readonly,allowHtml:e.allowHtml,wrapHeight:h.value,swipeDuration:e.swipeDuration,autoSearchVal:d.value,onChange:e=>((e,o)=>{x(o,e),"cascade"===m.value&&i.value.forEach(((e,t)=>{const n=w.value[t];Om(n,e,f.value)||x(t,n.length?n[0][f.value.value]:void 0)})),t.nextTick((()=>{n("change",p({columnIndex:o},C()))}))})(e,r),onClickOption:e=>((e,t)=>n("clickOption",p({columnIndex:t,currentOption:e},C())))(e,r)},{option:o.option,searchEmpty:o["search-empty"]}))),S=e=>{if(y.value){const n={backgroundSize:`100% ${(e-h.value)/2}px`};return[t.createVNode("div",{class:km("mask"),style:n},null)]}},A=()=>{e.autoSearch||(d.value=u.value)},T=()=>{if(e.searchable)return t.createVNode("div",{class:km("search")},[t.createVNode(ci,{"show-action":!e.autoSearch,modelValue:u.value,placeholder:e.searchPlaceholder,"onUpdate:modelValue":e.autoSearch?Hm((e=>{u.value=e,d.value=u.value}),500):e=>{u.value=e},onSearch:A,onClear:A},null)])},O=()=>{const e={height:`${h.value}px`};return t.createVNode("div",{ref:r,class:km("columns"),style:e},[k(),S(h.value)])},P=()=>{if(e.showToolbar)return t.createVNode(_m,t.mergeProps(v(e,jm),{onConfirm:L,onCancel:N}),v(o,Fm))},M=()=>{if(e.showTitle)return o.title?o.title():t.createVNode("div",{class:[km("title"),ze]},[e.title])};let B;t.watch(w,(e=>{e.forEach(((e,t)=>{e.length&&!Om(e,i.value[t],f.value)&&x(t,Am(e)[f.value.value])}))}),{immediate:!0}),t.watch((()=>e.modelValue),(e=>{g(e,i.value)||g(e,B)||(i.value=e.slice(0),B=e.slice(0))}),{deep:!0}),t.watch(i,(t=>{g(t,e.modelValue)||(B=t.slice(0),n("update:modelValue",B))}),{immediate:!0}),j("touchmove",ne,{target:r});dt({confirm:L,getSelectedOptions:()=>b.value});const I=()=>{var n,a;return t.createVNode("div",{class:km()},[M(),e.loading?t.createVNode(It,{class:km("loading")},null):null,e.showTitle?t.createVNode(Wo,{style:"margin: 0"},null):null,T(),null==(n=o["columns-top"])?void 0:n.call(o),O(),null==(a=o["columns-bottom"])?void 0:a.call(o),e.showToolbar?t.createVNode(Wo,{style:"margin: 0"},null):null,P()])};return()=>e.popup?t.createVNode(At,{show:l.value,"onUpdate:show":[e=>l.value=e,V],round:!0,position:"bottom"},{default:I}):I()}})),[Wm,Ym]=Oe("rate");const qm={size:b,icon:k("star"),color:String,count:V(5),gutter:b,readonly:Boolean,disabled:Boolean,voidIcon:k("star"),allowHalf:Boolean,voidColor:String,touchable:x,iconPrefix:String,modelValue:N(0),disabledColor:String};const Gm=Re(t.defineComponent({name:Wm,props:qm,emits:["change","update:modelValue"],setup(e,{emit:n}){const o=ft(),[a,r]=On(),i=t.ref(),l=()=>e.readonly||e.disabled||!e.touchable,s=t.computed((()=>Array(+e.count).fill("").map(((t,n)=>function(e,t,n,o){if(e>=t)return{status:"full",value:1};if(e+.5>=t&&n&&!o)return{status:"half",value:.5};if(e+1>=t&&n&&o){const n=10**10;return{status:"half",value:Math.round((e-t+1)*n)/n}}return{status:"void",value:0}}(e.modelValue,n+1,e.allowHalf,e.readonly)))));let c,u,d=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;const p=()=>{u=I(i);const t=a.value.map(I);c=[],t.forEach(((t,n)=>{d=Math.min(t.top,d),f=Math.max(t.top,f),e.allowHalf?c.push({score:n+.5,left:t.left,top:t.top,height:t.height},{score:n+1,left:t.left+t.width/2,top:t.top,height:t.height}):c.push({score:n+1,left:t.left,top:t.top,height:t.height})}))},h=(t,n)=>{for(let e=c.length-1;e>0;e--)if(n>=u.top&&n<=u.bottom){if(t>c[e].left&&n>=c[e].top&&n<=c[e].top+c[e].height)return c[e].score}else{const o=n<u.top?d:f;if(t>c[e].left&&c[e].top===o)return c[e].score}return e.allowHalf?.5:1},m=t=>{e.disabled||e.readonly||t===e.modelValue||(n("update:modelValue",t),n("change",t))},v=e=>{l()||(o.start(e),p())},g=e=>{if(!l()&&(o.move(e),o.isHorizontal())){const{clientX:t,clientY:n}=e.touches[0];ne(e),m(h(t,n))}},w=(n,o)=>{const{icon:a,size:i,color:l,count:s,gutter:c,voidIcon:u,disabled:d,voidColor:f,allowHalf:v,iconPrefix:g,disabledColor:w}=e,y=o+1,b="full"===n.status,x="void"===n.status,C=v&&n.value>0&&n.value<1;let L;c&&y!==+s&&(L={paddingRight:le(c)});return t.createVNode("div",{key:o,ref:r(o),role:"radio",style:L,class:Ym("item"),tabindex:d?void 0:0,"aria-setsize":s,"aria-posinset":y,"aria-checked":!x,onClick:e=>{p(),m(v?h(e.clientX,e.clientY):y)}},[t.createVNode(lt,{size:i,name:b?a:u,class:Ym("icon",{disabled:d,full:b}),color:d?w:b?l:f,classPrefix:g},null),C&&t.createVNode(lt,{size:i,style:{width:n.value+"em"},name:x?u:a,class:Ym("icon",["half",{disabled:d,full:!x}]),color:d?w:x?f:l,classPrefix:g},null)])};return Y((()=>e.modelValue)),()=>t.createVNode("div",{ref:i,role:"radiogroup",class:Ym({readonly:e.readonly,disabled:e.disabled}),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,"aria-readonly":e.readonly,onTouchstartPassive:v,onTouchmove:g},[s.value.map(w)])}})),Xm=Re(Ta),Km=(e,t,n)=>{const o={width:"",height:"",transform:"",transformOrigin:""},{clientWidth:a}=document.documentElement,r=e,{clientHeight:i}=document.documentElement,l=a-r,s=i-t,c=Math.max(l,s),u=Math.min(l,s);return null==window.orientation||180===window.orientation||0===window.orientation?l<s?n?(console.debug("竖屏打开,强制横屏"),o.transform="rotate(90deg)",o.width=`${c}px`,o.height=`${u}px`,o.transformOrigin=u/2+"px center"):(console.debug("竖屏打开,保持竖屏"),o.transform="rotate(0deg)",o.width=`${u}px`,o.height=`${c}px`):n?(console.debug("横屏旋转到强制横屏"),o.transform="rotate(90deg)",o.width=`${c}px`,o.height=`${u}px`,o.transformOrigin=u/2+"px center"):(console.debug("横屏旋转到竖屏"),o.transform="rotate(0deg)",o.width=`${u}px`,o.height=`${c}px`):(l>s?console.debug("横屏打开"):console.debug("竖屏旋转到横屏"),o.transform="rotate(0deg)",o.width=`${c}px`,o.height=`${u}px`),o},[Qm,Jm]=Oe("signature"),ev="#FFF",tv="#000",nv=ae(Jm("stroke"),tv),ov=ae(Jm("canvas"),ev),av={customClass:k(""),lineWidth:V(2),strokeStyle:k(nv),backgroundStyle:k(ov),imageType:k("png"),resultTypes:L(["file","dataUrl"]),unSupportTpl:k("对不起,当前浏览器不支持Canvas,无法使用签名组件"),allowPortrait:Boolean};const rv=Re(t.defineComponent({name:Qm,props:av,emits:["clear","cancel","confirm"],setup(e,{emit:n}){const o=t.ref(),a=t.ref(),r=t.ref(0),i=t.ref(0),l=t.ref(),s=t.ref("ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]),c=t.ref(!0),u=t.ref(!1),d=t.ref("ontouchstart"in window),f=t.computed((()=>{const e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))})),p=()=>{var t,n;if(!o.value)return void console.error("container is empty");const a=Km((null==(t=o.value)?void 0:t.offsetLeft)||0,(null==(n=o.value)?void 0:n.offsetTop)||0,!e.allowPortrait);o.value.style.transform=a.transform,o.value.style.width=a.width,o.value.style.height=a.height,o.value.style.transformOrigin=a.transformOrigin,r.value=ui(a.width),i.value=ui(a.height)},h=()=>{var t,n,o,r;if("jpg"===e.imageType){let o=e.backgroundStyle;"transparent"===o&&(o="#fff"),l.value&&(l.value.fillStyle=o,l.value.fillRect(0,0,(null==(t=a.value)?void 0:t.width)||0,(null==(n=a.value)?void 0:n.height)||0))}else{const t=e.backgroundStyle;"transparent"!==t&&l.value&&(l.value.fillStyle=t,l.value.fillRect(0,0,(null==(o=a.value)?void 0:o.width)||0,(null==(r=a.value)?void 0:r.height)||0))}},m=t=>{var n,o;t.preventDefault(),u.value=!0,c.value=!1;const r=d.value?t.touches[0]:t;if(a.value){const t=((e,t,n)=>{const o=t.getBoundingClientRect(),a=e.clientX-o.left,r=e.clientY-o.top;if(n&&(null==window.orientation||180===window.orientation||0===window.orientation)){const{clientWidth:e}=document.documentElement;return{x:r,y:e-0-a}}return{x:a,y:r}})(r,a.value,!e.allowPortrait);null==(n=l.value)||n.lineTo(t.x,t.y),null==(o=l.value)||o.stroke()}},v=e=>{var t,n;e.preventDefault(),null==(t=a.value)||t.removeEventListener(s.value[1],m,!1),null==(n=a.value)||n.removeEventListener(s.value[2],v,!1)},g=e=>{var t,n;e.preventDefault(),null==(t=a.value)||t.removeEventListener(s.value[1],m,!1),null==(n=a.value)||n.removeEventListener(s.value[2],v,!1)},w=t=>{var n,o,r;t.preventDefault(),l.value&&(l.value.beginPath(),l.value.lineWidth=+e.lineWidth,l.value.strokeStyle=e.strokeStyle),null==(n=a.value)||n.addEventListener(s.value[1],m,!1),null==(o=a.value)||o.addEventListener(s.value[2],v,!1),null==(r=a.value)||r.addEventListener(s.value[3],g,!1)},y=(e=!1)=>{var t,o,r,i,d;null==(t=a.value)||t.addEventListener(s.value[2],v,!1),null==(i=l.value)||i.clearRect(0,0,(null==(o=a.value)?void 0:o.width)||0,(null==(r=a.value)?void 0:r.height)||0),null==(d=l.value)||d.closePath(),h(),u.value=!1,c.value=!0,e||n("clear")},b=()=>{var t;a.value&&(t=a.value,Promise.all(e.resultTypes.map((n=>{if("dataUrl"===n.trim()){let n;return n="png"===e.imageType?t.toDataURL("image/png"):t.toDataURL("image/jpeg",.8),Promise.resolve(n)}if("file"===n.trim()){const n=(new Date).getTime();return"png"===e.imageType?ic(t,n+".png",n,"image/png"):ic(t,n+".jpg",n)}return Promise.resolve(null)}))).then((e=>{y(!0),n("confirm",e)})))},x=()=>{y(!0),n("cancel")},C=()=>{var e;f.value&&(l.value=null==(e=a.value)?void 0:e.getContext("2d"),p(),(()=>{var e;null==(e=a.value)||e.addEventListener(s.value[0],w,!1),f.value&&window.addEventListener("resize",(()=>{setTimeout((()=>{p(),c.value||(Wn("旋转屏幕或者改变屏幕大小触发重新绘制"),y(!0))}),100)}))})(),setTimeout((()=>{h()}),50))};return()=>t.createVNode(t.Transition,{appear:!0,onAfterEnter:C},{default:()=>[t.createVNode("div",{class:[Jm(""),e.customClass?e.customClass:""],ref:o},[t.withDirectives(t.createVNode("label",{class:Jm("placeholder")},[f.value?"请在此签名":e.unSupportTpl]),[[t.vShow,!u.value]]),t.createVNode("div",{class:Jm("canvasWrapper"),ref:"canvasWrapper"},[t.withDirectives(t.createVNode("canvas",{class:Jm("canvas"),ref:a,width:r.value,height:i.value},null),[[t.vShow,f.value]])]),t.createVNode("div",{class:Jm("actions")},[t.createVNode(vn,{plain:!0,type:"warning",onClick:()=>y(),class:Jm("button-again")},{default:()=>[t.createTextVNode("重签")]}),t.createVNode(vn,{type:"default",onClick:x,class:Jm("button-cancel")},{default:()=>[t.createTextVNode("取消")]}),t.createVNode(vn,{block:!0,type:"primary",disabled:c.value,onClick:b,class:Jm("button-complete")},{default:()=>[t.createTextVNode("完成")]})])])]})}})),[iv,lv]=Oe("skeleton"),sv="100%",cv={row:V(0),title:Boolean,round:Boolean,avatar:Boolean,field:Boolean,textarea:Boolean,loading:x,animate:x,avatarSize:b,titleWidth:b,avatarShape:k("round"),rowWidth:{type:[Number,String,Array],default:sv}};const uv=Re(t.defineComponent({name:iv,inheritAttrs:!1,props:cv,setup(e,{slots:n,attrs:o}){const a=()=>{if(e.avatar)return t.createVNode("div",{class:lv("avatar",e.avatarShape),style:se(e.avatarSize)},null)},r=()=>{if(e.title&&!e.field)return t.createVNode("h3",{class:lv("title"),style:{width:le(e.titleWidth)}},null)};function i(){const n=[],{rowWidth:o}=e;function a(t){return o===sv&&t===+e.row-1?"60%":Array.isArray(o)?o[t]:o}for(let r=0;r<+e.row;r++)e.field?n.push(t.createVNode("div",{class:lv("field")},[t.createVNode("span",{class:lv("field-title"),style:{width:le(e.titleWidth)}},null),t.createVNode("span",{class:lv("field-value"),style:{width:le(a(r))}},null)])):e.textarea?n.push(t.createVNode("div",{class:lv("textarea"),style:{width:le(a(r))}},null)):n.push(t.createVNode("div",{class:lv("row"),style:{width:le(a(r))}},null));return n}return()=>{var l;return e.loading?t.createVNode("div",t.mergeProps({class:lv({animate:e.animate,round:e.round})},o),[a(),t.createVNode("div",{class:lv("content")},[r(),i()])]):null==(l=n.default)?void 0:l.call(n)}}}));function dv(e,n=""){const o=t.ref([]),a=t.ref();return navigator.mediaDevices||(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia||(navigator.mediaDevices.getUserMedia=function(e){const t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return t?new Promise(((n,o)=>t.call(navigator,e,n,o))):(Xn("浏览器不支持getUserMedia"),Promise.reject(new Error("您的浏览器暂不支持 getUserMedia !")))}),{startRecording:function(){return t=this,r=null,i=function*(){const t=yield navigator.mediaDevices.getUserMedia({audio:!0});a.value=new MediaRecorder(t),o.value=[],a.value.ondataavailable=t=>{if(t.data&&t.data.size>0){if(o.value.push(t.data),"raw"===n)return void e("change",o.value);!function(t){const n=new FileReader;n.onloadend=()=>{var t;const o=null==(t=n.result)?void 0:t.split(",")[1];e("change",o)},n.readAsDataURL(t)}(new Blob(o.value,{type:"audio/wav"}))}},a.value.start()},new Promise(((e,n)=>{var o=e=>{try{l(i.next(e))}catch(t){n(t)}},a=e=>{try{l(i.throw(e))}catch(t){n(t)}},l=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,a);l((i=i.apply(t,r)).next())}));var t,r,i},stopRecording:function(){var e,t;null==(e=a.value)||e.stop(),null==(t=a.value)||t.stream.getTracks().forEach((e=>e.stop())),a.value=void 0},recordedBlobs:o}}const[fv,pv]=Oe("speech-recognizer"),hv={title:String,value:String,type:String,show:Boolean,closeOnPopstate:x,closeOnClickOverlay:x};const mv=Re(t.defineComponent({name:fv,props:hv,emits:["change","confirm","close","update:show","update:value","onTouchstart","onTouchend"],setup(e,{emit:n,slots:o}){const a=t.ref(e.show),r=t.ref(!1),{startRecording:i,stopRecording:l}=dv(n,e.type),s=t.computed({get:()=>e.value,set:e=>{n("update:value",e)}});t.watch(a,(t=>{t!==e.show&&n("update:show",t)})),t.watch((()=>e.show),(e=>{e!==a.value&&(a.value=e)}));const c=e=>n("update:show",e),u=()=>{a.value=!1,n("close")},d=()=>{n("update:value","")},f=()=>{a.value=!1,n("confirm")},p=e=>{e.preventDefault()},h=()=>{n("onTouchstart"),r.value=!0,i()},m=()=>{r.value=!1,l(),n("onTouchend")},v=()=>{const n=e.value?e.value:"请说话";return t.createVNode("div",{class:pv("text")},[n,t.createVNode("div",{class:pv("loading")},[t.createVNode("div",null,null),t.createVNode("div",null,null),t.createVNode("div",null,null)])])},g=e=>{s.value=e},w=()=>t.createVNode("div",{class:pv()},[o.title?o.title():t.createVNode("div",{class:[pv("header"),"zt-hairline--bottom"]},[t.createVNode("div",{class:["zt-ellipsis",pv("title")]},[e.title?e.title:"语音输入"]),t.createVNode("div",{class:pv("close"),onClick:u},[t.createVNode(st,{name:"clear",size:"24"},null)])]),t.createTextVNode(" "),t.createVNode("div",{class:pv("body")},[r.value?v():e.value?t.createVNode("div",{class:pv("text")},[t.createVNode(ai,{modelValue:s.value,type:"textarea",rows:"12",label:"",placeholder:"","onUpdate:modelValue":g},null)]):t.createVNode("div",{class:pv("empty")},[t.createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 164 164",class:"design-iconfont"},[t.createVNode("g",{"fill-rule":"nonzero",fill:"none"},[t.createVNode("path",{fill:"#F5F7FA",d:"M19.8391025 68.2073963L19.8593465 77.2801141 19.9200784 77.745901 20.0820303 78.049675 20.2844701 78.2319394 24.3737545 80.6013769 24.1713147 80.4191124 24.0296068 80.1153384 23.9486309 79.6698032 23.9283869 70.5970854z",transform:"translate(2 33.6838)"},null),t.createVNode("path",{d:"M7.30807756,78.4952102 L1.53854264,75.1536959 L1.133663,74.8499218 L0.789515304,74.4651414 L0.485855572,73.9791029 L0.28341575,73.4323097 L0.161951857,72.7842584 L0.101219911,72.0349491 L5.87075483,75.3764635 L5.93148677,76.1460244 L6.05295067,76.773824 L6.27563447,77.3206173 L6.55905022,77.8269074 L6.90319792,78.2116878 L7.30807756,78.4952102 Z M5.87075483,75.3764635 L0.101219911,72.0349491 L0,34.873259 L5.76953492,38.2147734 L5.87075483,75.3764635 Z",fill:"#DDE1EB",transform:"translate(2 33.6838)"},null),t.createVNode("path",{fill:"#F5F7FA",d:"M58.7075483 3.66554L58.2419367 3.46302398 57.7358371 3.34151437 57.1487616 3.34151437 56.5616862 3.44277238 55.9341227 3.66554 55.2255833 4.00981724 10.6685786 29.7698553 4.8787997 26.4283409 49.4560484 0.668302874 50.1645878 0.324025636 50.7921512 0.101258011 51.3792267 0 51.9460582 0 52.4521578 0.121509613 52.9177694 0.324025636z",transform:"translate(2 33.6838)"},null),t.createVNode("path",{fill:"#DDE1EB",d:"M5.76953492 38.2147734L0 34.873259 0.161951857 33.2936341 0.384635661 32.4633184 1.01219911 30.8634418 1.41707875 30.0736293 1.90293432 29.3040684 2.97586538 27.9472111 3.58318484 27.3599146 4.8787997 26.4080893 10.6483346 29.7698553 9.37296374 30.701429 8.74540029 31.308977 7.67246924 32.6658344 7.20685765 33.4151437 6.78173402 34.2049562 6.15417058 35.8048327 5.81002288 37.4452125z",transform:"translate(2 33.6838)"},null),t.createVNode("path",{fill:"#E9ECF2",d:"M55.2255833 4.00981724L55.9543667 3.66554 56.6021741 3.44277238 57.1892496 3.34151437 57.7155931 3.36176597 58.2419367 3.46302398 58.7075483 3.66554 59.1124279 3.96931404 59.4565756 4.37434608 59.7399914 4.84013293 59.9424312 5.38692619 60.0638951 6.03497746 60.124627 6.82478995 60.2258469 43.98648 60.0638951 45.5458534 59.5780395 47.1862332 58.8290122 48.7658582 57.857301 50.2239735 56.6629061 51.4795729 56.0353426 51.9858629 55.3672912 52.4313982 37.8764906 62.5369477 26.2362009 79.730558 25.5479055 80.4191124 25.2240018 80.6013769 24.8798541 80.7026349 24.5964383 80.6823833 24.3332666 80.5811253 24.1510707 80.3988608 24.0093628 80.0950868 23.9486309 79.6698032 23.9283869 70.5970854 10.7900425 78.1711846 10.0815031 78.5357134 9.43369569 78.7382295 8.86686419 78.8394875 8.32027667 78.8192359 7.79393313 78.7179779 7.32832154 78.5154618 6.9234419 78.2116878 6.55905022 77.8066558 6.27563447 77.3611205 6.07319465 76.8143273 5.93148677 76.166276 5.87075483 75.3764635 5.76953492 38.2147734 5.93148677 36.6554 6.43758633 34.9947687 7.20685765 33.4151437 8.19881277 31.9570283 9.37296374 30.701429 10.6483346 29.7698553z",transform:"translate(2 33.6838)"},null),t.createVNode("path",{d:"M48.6462891,27.0156374 L48.5450692,27.1979018 L48.5248252,27.5826822 L48.5450692,37.1616901 L48.5855572,37.3642061 L48.767753,37.4857157 L48.9904368,37.4249609 L49.2131206,37.2426965 L49.3750725,36.9794257 L49.4560484,36.6351484 L49.4155605,26.9548826 L49.3750725,26.7321149 L49.2738526,26.6511085 L49.1321447,26.6308569 L48.808241,26.8131214 L48.6462891,27.0156374 Z M46.540915,27.4004178 L46.4599391,27.6029338 L46.4194511,28.0079659 L46.4396951,38.9033279 L46.480183,39.1058439 L46.6826229,39.2273535 L46.8850627,39.1665987 L47.1279905,38.9640827 L47.2899423,38.7008119 L47.3709183,38.3767862 L47.3304303,27.3194114 L47.2899423,27.137147 L47.1887224,27.035889 L47.0470145,26.9953858 L46.7231108,27.1573986 L46.540915,27.4004178 Z M36.0545322,21.7299692 L35.9735563,21.8312272 L35.9330683,22.195756 L35.9128244,23.2893426 L36.0140443,57.0487635 L36.1355082,57.3525375 L36.4594119,57.3120343 L36.7023397,57.1095183 L36.8642915,56.8462475 L36.9250235,56.5222218 L36.8238035,21.6489628 L36.7833156,21.4464468 L36.6820957,21.3451887 L36.5606318,21.3249371 L36.2164841,21.5072016 L36.0545322,21.7299692 Z M52.7558175,26.2258249 L52.6545976,26.4688441 L52.6343536,26.8941278 L52.6545976,32.9088536 L52.6950856,33.1113696 L52.8975254,33.2328793 L53.0999652,33.1721245 L53.322649,32.98986 L53.5048448,32.7063376 L53.5655768,32.382312 L53.5453328,26.1448185 L53.5048448,25.9423025 L53.4238689,25.8410444 L53.282161,25.8207928 L52.9582573,25.9828057 L52.7558175,26.2258249 Z M40.1438166,30.0533777 L40.1843046,44.2497509 L40.3057685,44.5535249 L40.6296722,44.5130217 L40.852356,44.3307573 L41.0143079,44.0674864 L41.0952838,43.7232092 L41.0547958,29.526836 L40.9333319,29.223062 L40.6094282,29.2635652 L40.3665004,29.4458296 L40.2045486,29.7091005 L40.1438166,30.0533777 Z M38.1801504,33.2126277 L38.0789304,33.4151437 L38.0384425,33.7999241 L38.0789304,43.1359127 L38.1194184,43.3384288 L38.3218582,43.4599384 L38.5242981,43.3991836 L38.7469819,43.1966676 L38.9291777,42.9333967 L38.9899096,42.6093711 L38.9696657,33.1316212 L38.9291777,32.9291052 L38.8279578,32.8480988 L38.6862499,32.8278472 L38.3421022,33.0101116 L38.1801504,33.2126277 Z M29.8396297,24.8487159 L29.7586538,24.9702255 L29.7181658,25.3347544 L29.6979218,26.4283409 L29.8193857,60.1877618 L29.8598737,60.3902778 L30.0420695,60.5117875 L30.2445093,60.4510327 L30.4874371,60.2485166 L30.649389,59.9852458 L30.7101209,59.6612202 L30.629145,24.7879611 L30.5684131,24.5651935 L30.4874371,24.4841871 L30.3457293,24.4639355 L30.0015816,24.6461999 L29.8396297,24.8487159 Z M44.3343209,29.9723713 L44.3545649,39.6526372 L44.4760288,39.9564112 L44.7999325,39.915908 L45.0226163,39.7336436 L45.2048122,39.4703727 L45.2655441,39.1260955 L45.2453001,29.4458296 L45.1238362,29.1420556 L44.7999325,29.1623072 L44.5570047,29.3648232 L44.3950529,29.6280941 L44.3343209,29.9723713 Z M34.00989,18.9757513 L33.9086701,19.3605317 L33.8884261,22.1755044 L34.00989,62.0509092 L34.050378,62.2534253 L34.2528178,62.3749349 L34.4552576,62.3141801 L34.6779414,62.1319156 L34.8398933,61.8483932 L34.9208692,61.5243676 L34.7994053,18.9149965 L34.7589174,18.6922289 L34.6576975,18.6112224 L34.5159896,18.5909708 L34.1718419,18.7732353 L34.00989,18.9757513 Z M50.6706873,26.6713601 L50.5694674,26.9143794 L50.5289795,27.4206694 L50.5492235,35.0960267 L50.5897114,35.2985427 L50.7921512,35.4200523 L51.014835,35.3592975 L51.2375188,35.1770331 L51.3994707,34.9137622 L51.4804466,34.569485 L51.4602027,26.5903537 L51.3994707,26.3878377 L51.3184948,26.3068313 L51.1767869,26.2865797 L50.8326392,26.4688441 L50.6706873,26.6713601 Z M42.3504107,27.339663 L42.2694348,27.5219274 L42.2289468,27.8459531 L42.2087028,28.6965204 L42.2694348,43.6422028 L42.3099227,43.8447188 L42.4111426,43.9459768 L42.5326065,43.9662284 L42.7148024,43.9054736 L43.0387061,43.5611964 L43.1804139,43.1156611 L43.139926,27.2586566 L43.099438,27.0561406 L42.9982181,26.9751342 L42.8565102,26.934631 L42.5326065,27.0966438 L42.3504107,27.339663 Z M31.9247599,25.5170188 L31.8640279,25.65878 L31.82354,26.0030573 L31.803296,27.0156374 L31.9045159,58.0613436 L31.9450038,58.2638596 L32.0259798,58.3651176 L32.1676877,58.3853692 L32.5320793,58.1828532 L32.7750071,57.7778212 L32.8154951,57.5348019 L32.7142752,25.4360124 L32.6737872,25.253748 L32.5928113,25.15249 L32.4511034,25.1322384 L32.1271997,25.2942512 L31.9247599,25.5170188 Z M56.9463218,25.760038 L56.8451019,26.0435605 L56.8248579,26.4485925 L56.8248579,28.5345075 L56.8653459,28.7370236 L57.0677857,28.8585332 L57.2702255,28.7977784 L57.5131533,28.6155139 L57.6751052,28.3522431 L57.7560811,28.0079659 L57.7358371,25.6790316 L57.6953492,25.4765156 L57.5941292,25.3752576 L57.4524214,25.355006 L57.1487616,25.5170188 L56.9463218,25.760038 Z M54.8611917,26.5093473 L54.7599717,26.8131214 L54.7194838,27.3801662 L54.7397278,31.0254546 L54.8611917,31.3292286 L55.1850954,31.2887254 L55.4280232,31.106461 L55.589975,30.8229386 L55.650707,30.498913 L55.650707,26.4485925 L55.589975,26.2258249 L55.4887551,26.1245669 L55.3470472,26.1043153 L55.0231435,26.3068313 L54.8611917,26.5093473 Z M25.6896134,35.9870972 L25.6086374,36.14911 L25.5479055,36.4933872 L25.5479055,37.4452125 L25.6086374,54.780584 L25.7301013,55.0843581 L26.054005,55.0438549 L26.2766888,54.8615904 L26.4386407,54.5983196 L26.5196166,54.2540424 L26.4588847,35.9060908 L26.4183967,35.7238263 L26.3374208,35.6225683 L26.1957129,35.5820651 L25.8718092,35.7440779 L25.6896134,35.9870972 Z M27.7544995,27.9472111 L27.6735236,28.0687207 L27.6330356,28.4332495 L27.6127917,29.4458296 L27.7140116,60.4915359 L27.7544995,60.6940519 L27.9569394,60.8155615 L28.1593792,60.7548067 L28.382063,60.5725423 L28.5642588,60.2890198 L28.6249908,59.9649942 L28.5440148,27.8662047 L28.4832829,27.6636886 L28.402307,27.5624306 L28.2605991,27.542179 L27.9366954,27.7041918 L27.7544995,27.9472111 Z M19.4342229,47.044472 L19.312759,47.348246 L19.292515,47.8950393 L19.292515,51.5605793 L19.4139789,51.8643533 L19.7581266,51.8238501 L19.9808104,51.6415857 L20.1427622,51.3783149 L20.2237382,51.0340376 L20.2034942,46.9837172 L20.1630062,46.7812011 L20.0617863,46.6799431 L19.9200784,46.6596915 L19.5961747,46.841956 L19.4342229,47.044472 Z M11.1341902,52.9174366 L11.0127263,53.1807075 L10.9924823,53.5654879 L11.0329703,55.8944222 L11.2354101,56.0159318 L11.4378499,55.955177 L11.6807777,55.7729125 L11.8427296,55.4893901 L11.9034615,55.1653645 L11.9034615,52.8364302 L11.8629735,52.6339142 L11.7617536,52.5326562 L11.4783379,52.5529078 L11.1341902,52.9174366 Z M23.5842392,40.8879849 L23.5032633,41.0905009 L23.4627753,41.4752814 L23.5032633,52.2288821 L23.5437513,52.4313982 L23.6247272,52.5326562 L23.7259471,52.5529078 L23.9486309,52.492153 L24.1713147,52.3098886 L24.3535105,52.0263661 L24.4142425,51.7023405 L24.3737545,40.8069785 L24.3332666,40.6044625 L24.2522906,40.5234561 L24.1105828,40.4829529 L23.786679,40.6449657 L23.5842392,40.8879849 Z M15.3044505,48.6038453 L15.2032306,48.8671162 L15.1627426,49.2923998 L15.1829866,54.6995776 L15.3044505,55.0033517 L15.6283542,54.9628484 L15.871282,54.780584 L16.0332339,54.4970616 L16.0939658,54.173036 L16.0737218,48.5430905 L16.0332339,48.3405745 L15.9522579,48.2393165 L15.8105501,48.2190649 L15.4866464,48.3810777 L15.3044505,48.6038453 Z M17.3895807,47.4697556 L17.2883608,47.7127749 L17.2478728,48.1178069 L17.2681168,53.1807075 L17.3086047,53.3832235 L17.5110446,53.5249847 L17.7337284,53.4642299 L17.9564122,53.2617139 L18.118364,52.998443 L18.19934,52.6541658 L18.179096,47.3887492 L18.138608,47.2064848 L18.0373881,47.1052268 L17.9159242,47.0647236 L17.5920205,47.246988 L17.3895807,47.4697556 Z M21.519353,44.8775505 L21.4181331,45.0800666 L21.3776452,45.4850986 L21.3978891,51.5605793 L21.4383771,51.7630953 L21.6408169,51.8846049 L21.8432568,51.8238501 L22.0861845,51.6415857 L22.2481364,51.3783149 L22.3088683,51.0340376 L22.2886244,44.7965441 L22.2481364,44.5940281 L22.1469165,44.4927701 L22.0052086,44.4725185 L21.6813049,44.6547829 L21.519353,44.8775505 Z M13.1990764,49.8999479 L13.0978565,50.1429671 L13.0776125,50.5277476 L13.0978565,55.6108997 L13.2193204,55.8944222 L13.5432241,55.8741705 L13.7659079,55.6919061 L13.9481037,55.4083837 L14.0088357,55.0641065 L13.9885917,49.8189415 L13.9481037,49.6164255 L13.8671278,49.5151674 L13.7254199,49.4949158 L13.4015162,49.6569287 L13.1990764,49.8999479 Z",fill:"#FFF",transform:"translate(2 33.6838)"},null),t.createVNode("g",null,[t.createVNode("path",{fill:"#F5F7FA",d:"M29.510665 101.420326L29.5407779 114.910916 29.6311167 115.603513 29.8720201 116.055207 30.1731493 116.326223 36.2559598 119.849435 35.9548306 119.578419 35.7440402 119.126725 35.6235885 118.464241 35.5934755 104.973651z",transform:"matrix(-1 0 0 1 163.315 22)"},null),t.createVNode("path",{d:"M10.8707654,116.717691 L2.28858218,111.749059 L1.68632371,111.297365 L1.17440402,110.72522 L0.722710163,110.002509 L0.421580928,109.18946 L0.240903388,108.225847 L0.150564617,107.111669 L8.7327478,112.080301 L8.82308657,113.224592 L9.00376412,114.158093 L9.33500627,114.971142 L9.7565872,115.723965 L10.2685069,116.29611 L10.8707654,116.717691 Z M8.7327478,112.080301 L0.150564617,107.111669 L0,51.8544542 L8.58218319,56.8230866 L8.7327478,112.080301 Z",fill:"#DDE1EB",transform:"matrix(-1 0 0 1 163.315 22)"},null),t.createVNode("path",{fill:"#F5F7FA",d:"M87.327478 5.45043915L86.6348808 5.14930991 85.8820577 4.96863237 85.0087829 4.96863237 84.1355082 5.11919699 83.2020075 5.45043915 82.1480552 5.96235885 15.8695107 44.2659975 7.25721455 39.2973651 73.565872 0.993726474 74.6198243 0.481806775 75.553325 0.150564617 76.4265997 0 77.2697616 0 78.0225847 0.180677541 78.7151819 0.481806775z",transform:"matrix(-1 0 0 1 163.315 22)"},null),t.createVNode("path",{fill:"#DDE1EB",d:"M8.58218319 56.8230866L0 51.8544542 0.240903388 49.5056462 0.572145546 48.2710163 1.50564617 45.8920954 2.10790464 44.7176913 2.83061481 43.5734003 4.42659975 41.5558344 5.32998745 40.6825596 7.25721455 39.2672522 15.8393977 44.2659975 13.9422836 45.651192 13.0087829 46.5545797 11.412798 48.5721455 10.7202008 49.6863237 10.0878294 50.8607277 9.15432873 53.2396487 8.64240903 55.6787955z",transform:"matrix(-1 0 0 1 163.315 22)"},null),t.createVNode("path",{fill:"#E9ECF2",d:"M82.1480552 5.96235885L83.2321205 5.45043915 84.195734 5.11919699 85.0690088 4.96863237 85.8519448 4.99874529 86.6348808 5.14930991 87.327478 5.45043915 87.9297365 5.902133 88.4416562 6.50439147 88.8632371 7.19698871 89.1643664 8.01003764 89.3450439 8.97365119 89.4353827 10.1480552 89.5859473 65.4052698 89.3450439 67.7239649 88.6223338 70.1631117 87.5081556 72.5119197 86.0627353 74.6800502 84.2860728 76.5470514 83.3525721 77.2998745 82.3588457 77.9623588 56.3412798 92.9887077 39.0263488 118.55458 38.0025094 119.578419 37.5207026 119.849435 37.0087829 120 36.587202 119.969887 36.195734 119.819322 35.9247177 119.548306 35.7139272 119.096612 35.6235885 118.464241 35.5934755 104.973651 16.0501882 116.235885 14.9962359 116.777917 14.0326223 117.079046 13.1894605 117.229611 12.3764115 117.199498 11.5934755 117.048934 10.9008783 116.747804 10.2986198 116.29611 9.7565872 115.693852 9.33500627 115.031368 9.03387704 114.218319 8.82308657 113.254705 8.7327478 112.080301 8.58218319 56.8230866 8.82308657 54.5043915 9.57590966 52.0351317 10.7202008 49.6863237 12.195734 47.5181932 13.9422836 45.651192 15.8393977 44.2659975z",transform:"matrix(-1 0 0 1 163.315 22)"},null),t.createVNode("path",{d:"M72.3613551,40.1706399 L72.2107905,40.4416562 L72.1806775,41.0138018 L72.2107905,55.2572146 L72.2710163,55.5583438 L72.5420326,55.7390213 L72.8732748,55.6486826 L73.2045169,55.3776662 L73.4454203,54.9861982 L73.565872,54.4742785 L73.5056462,40.0803011 L73.4454203,39.749059 L73.2948557,39.6286073 L73.0840652,39.5984944 L72.6022585,39.8695107 L72.3613551,40.1706399 Z M69.229611,40.7427854 L69.1091593,41.0439147 L69.0489335,41.6461731 L69.0790464,57.846926 L69.1392723,58.1480552 L69.4404015,58.3287327 L69.7415307,58.238394 L70.1028858,57.9372647 L70.3437892,57.5457967 L70.4642409,57.06399 L70.4040151,40.6223338 L70.3437892,40.3513174 L70.1932246,40.2007528 L69.9824341,40.140527 L69.5006274,40.3814304 L69.229611,40.7427854 Z M53.6311167,32.3111669 L53.510665,32.4617315 L53.4504391,33.0037641 L53.4203262,34.629862 L53.5708908,84.8281054 L53.7515684,85.2797992 L54.2333752,85.2195734 L54.5947302,84.9184442 L54.8356336,84.5269762 L54.9259724,84.0451694 L54.7754078,32.1907152 L54.7151819,31.8895859 L54.5646173,31.7390213 L54.3839398,31.7089084 L53.8720201,31.9799247 L53.6311167,32.3111669 Z M78.4742785,38.9962359 L78.3237139,39.357591 L78.293601,39.9899624 L78.3237139,48.9335006 L78.3839398,49.2346299 L78.685069,49.4153074 L78.9861982,49.3249686 L79.3174404,49.0539523 L79.5884567,48.6323714 L79.6787955,48.1505646 L79.6486826,38.8757842 L79.5884567,38.574655 L79.468005,38.4240903 L79.2572146,38.3939774 L78.7754078,38.6348808 L78.4742785,38.9962359 Z M59.7139272,44.6875784 L59.7741531,65.7967378 L59.9548306,66.2484316 L60.4366374,66.1882058 L60.7678795,65.9171895 L61.0087829,65.5257215 L61.1292346,65.0138018 L61.0690088,43.9046424 L60.8883312,43.4529486 L60.4065245,43.5131744 L60.0451694,43.7841907 L59.804266,44.1756587 L59.7139272,44.6875784 Z M56.7929737,49.3851945 L56.642409,49.6863237 L56.5821832,50.2584693 L56.642409,64.140527 L56.7026349,64.4416562 L57.0037641,64.6223338 L57.3048934,64.531995 L57.6361355,64.2308657 L57.9071518,63.8393977 L57.9974906,63.357591 L57.9673777,49.2647428 L57.9071518,48.9636136 L57.7565872,48.8431619 L57.5457967,48.8130489 L57.033877,49.0840652 L56.7929737,49.3851945 Z M44.3864492,36.9485571 L44.2659975,37.1292346 L44.2057716,37.6712673 L44.1756587,39.2973651 L44.3563363,89.4956085 L44.4165621,89.7967378 L44.6875784,89.9774153 L44.9887077,89.8870765 L45.3500627,89.5859473 L45.5909661,89.1944793 L45.6813049,88.7126725 L45.5608532,36.8582183 L45.4705144,36.5269762 L45.3500627,36.4065245 L45.1392723,36.3764115 L44.6273526,36.6474279 L44.3864492,36.9485571 Z M65.9473024,44.5671267 L65.9774153,58.9611041 L66.1580928,59.412798 L66.6398996,59.3525721 L66.9711418,59.0815558 L67.2421581,58.6900878 L67.3324969,58.1781681 L67.3023839,43.7841907 L67.1217064,43.3324969 L66.6398996,43.3626098 L66.2785445,43.663739 L66.0376412,44.055207 L65.9473024,44.5671267 Z M50.5897114,28.2158093 L50.4391468,28.7879548 L50.4090339,32.9736512 L50.5897114,92.2659975 L50.6499373,92.5671267 L50.9510665,92.7478043 L51.2521957,92.6574655 L51.5834379,92.3864492 L51.8243413,91.9648683 L51.944793,91.4830615 L51.7641154,28.1254705 L51.7038896,27.7942284 L51.553325,27.6737767 L51.3425345,27.6436637 L50.8306148,27.9146801 L50.5897114,28.2158093 Z M75.3726474,39.6587202 L75.2220828,40.0200753 L75.161857,40.7728984 L75.1919699,52.1856964 L75.2521957,52.4868256 L75.553325,52.6675031 L75.8845671,52.5771644 L76.2158093,52.3061481 L76.4567127,51.9146801 L76.5771644,51.4027604 L76.5470514,39.5382685 L76.4567127,39.2371393 L76.336261,39.1166876 L76.1254705,39.0865747 L75.6135508,39.357591 L75.3726474,39.6587202 Z M62.9962359,40.6524467 L62.8757842,40.923463 L62.8155583,41.4052698 L62.7854454,42.6700125 L62.8757842,64.8933501 L62.93601,65.1944793 L63.0865747,65.3450439 L63.2672522,65.3751568 L63.5382685,65.2848181 L64.0200753,64.7728984 L64.2308657,64.1104141 L64.1706399,40.531995 L64.1104141,40.2308657 L63.9598494,40.1104141 L63.749059,40.0501882 L63.2672522,40.2910916 L62.9962359,40.6524467 Z M47.4880803,37.9422836 L47.3977415,38.153074 L47.3375157,38.6649937 L47.3074028,40.1706399 L47.4579674,86.3337516 L47.5181932,86.6348808 L47.6386449,86.7854454 L47.8494354,86.8155583 L48.391468,86.5144291 L48.7528231,85.9121706 L48.8130489,85.5508156 L48.6624843,37.8218319 L48.6022585,37.5508156 L48.4818068,37.4002509 L48.2710163,37.370138 L47.7892095,37.6110414 L47.4880803,37.9422836 Z M84.7076537,38.3036386 L84.5570891,38.7252196 L84.5269762,39.327478 L84.5269762,42.4291092 L84.587202,42.7302384 L84.8883312,42.9109159 L85.1894605,42.8205772 L85.5508156,42.5495609 L85.7917189,42.1580928 L85.9121706,41.6461731 L85.8820577,38.183187 L85.8218319,37.8820577 L85.6712673,37.7314931 L85.4604768,37.7013802 L85.0087829,37.9422836 L84.7076537,38.3036386 Z M81.6060226,39.4178168 L81.455458,39.8695107 L81.3952321,40.7126725 L81.425345,46.1329987 L81.6060226,46.5846926 L82.0878294,46.5244668 L82.4491844,46.2534504 L82.6900878,45.8318695 L82.7804266,45.3500627 L82.7804266,39.327478 L82.6900878,38.9962359 L82.5395232,38.8456713 L82.3287327,38.8155583 L81.846926,39.1166876 L81.6060226,39.4178168 Z M38.2132999,53.510665 L38.0928482,53.7515684 L38.0025094,54.2634881 L38.0025094,55.6787955 L38.0928482,81.455458 L38.2735257,81.9071518 L38.7553325,81.846926 L39.0865747,81.5759097 L39.327478,81.1844417 L39.4479297,80.672522 L39.357591,53.3902133 L39.2973651,53.119197 L39.1769134,52.9686324 L38.966123,52.9084065 L38.4843162,53.1493099 L38.2132999,53.510665 Z M41.2848181,41.5558344 L41.1643664,41.7365119 L41.1041405,42.2785445 L41.0740276,43.7841907 L41.2245922,89.9473024 L41.2848181,90.2484316 L41.5859473,90.4291092 L41.8870765,90.3387704 L42.2183187,90.0677541 L42.489335,89.6461731 L42.5796738,89.1643664 L42.4592221,41.4353827 L42.3688833,41.1342535 L42.2484316,40.9836888 L42.0376412,40.9535759 L41.5558344,41.1944793 L41.2848181,41.5558344 Z M28.9084065,69.9523212 L28.727729,70.4040151 L28.6976161,71.217064 L28.6976161,76.6675031 L28.8782936,77.119197 L29.3902133,77.0589711 L29.7214555,76.7879548 L29.9623588,76.3964868 L30.0828105,75.8845671 L30.0526976,69.8619824 L29.9924718,69.5608532 L29.8419072,69.4102886 L29.6311167,69.3801757 L29.1493099,69.651192 L28.9084065,69.9523212 Z M16.5621079,78.685069 L16.3814304,79.076537 L16.3513174,79.6486826 L16.4115433,83.1116688 L16.7126725,83.2923463 L17.0138018,83.2020075 L17.3751568,82.9309912 L17.6160602,82.5094103 L17.706399,82.0276035 L17.706399,78.5646173 L17.6461731,78.2634881 L17.4956085,78.1129235 L17.0740276,78.1430364 L16.5621079,78.685069 Z M35.0815558,60.7979925 L34.9611041,61.0991217 L34.9008783,61.6712673 L34.9611041,77.6612296 L35.02133,77.9623588 L35.1417817,78.1129235 L35.2923463,78.1430364 L35.6235885,78.0526976 L35.9548306,77.7816813 L36.2258469,77.3601004 L36.3161857,76.8782936 L36.2559598,60.6775408 L36.195734,60.3764115 L36.0752823,60.2559598 L35.8644918,60.195734 L35.3826851,60.4366374 L35.0815558,60.7979925 Z M22.7653701,72.2710163 L22.6148055,72.6624843 L22.5545797,73.2948557 L22.5846926,81.3350063 L22.7653701,81.7867001 L23.2471769,81.7264743 L23.608532,81.455458 L23.8494354,81.033877 L23.9397742,80.5520703 L23.9096612,72.1806775 L23.8494354,71.8795483 L23.7289837,71.7289837 L23.5181932,71.6988708 L23.0363864,71.9397742 L22.7653701,72.2710163 Z M25.8670013,70.5846926 L25.7164366,70.9460477 L25.6562108,71.5483061 L25.6863237,79.076537 L25.7465496,79.3776662 L26.0476788,79.5884567 L26.378921,79.4981179 L26.7101631,79.1969887 L26.9510665,78.8055207 L27.0715182,78.293601 L27.0414053,70.4642409 L26.9811794,70.1932246 L26.8306148,70.04266 L26.6499373,69.9824341 L26.1681305,70.2534504 L25.8670013,70.5846926 Z M32.0100376,66.7302384 L31.859473,67.0313676 L31.7992472,67.6336261 L31.8293601,76.6675031 L31.8895859,76.9686324 L32.1907152,77.1493099 L32.4918444,77.0589711 L32.8531995,76.7879548 L33.0941029,76.3964868 L33.1844417,75.8845671 L33.1543287,66.6097867 L33.0941029,66.3086575 L32.9435383,66.1580928 L32.7327478,66.1279799 L32.250941,66.3989962 L32.0100376,66.7302384 Z M19.6336261,74.1982434 L19.4830615,74.5595985 L19.4529486,75.131744 L19.4830615,82.6900878 L19.663739,83.1116688 L20.1455458,83.0815558 L20.476788,82.8105395 L20.7478043,82.3889586 L20.838143,81.8770389 L20.8080301,74.0777917 L20.7478043,73.7766625 L20.6273526,73.6260979 L20.4165621,73.5959849 L19.9347553,73.8368883 L19.6336261,74.1982434 Z",fill:"#FFF",transform:"matrix(-1 0 0 1 163.315 22)"},null)])])])]),t.createVNode("div",{class:pv("tips")},[r.value?" ":"按住说话"]),t.createVNode("div",{class:pv("footer")},[e.value&&t.createVNode("div",{class:pv("clear"),onClick:d},[t.createTextVNode("清空")]),t.createVNode("div",{onContextmenu:p,class:[pv("btn"),r.value?pv("btn","active"):""],onTouchstart:h,onTouchend:m,onTouchcancel:m},[t.createVNode(st,{name:"microphone",size:"32"},null)]),e.value&&t.createVNode("div",{class:pv("confirm"),onClick:f},[t.createTextVNode("确定")])])])]);return()=>t.createVNode(At,{show:a.value,"onUpdate:show":[e=>a.value=e,c],round:!0,position:"bottom",closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay},{default:w})}})),[vv,gv]=Oe("steps"),wv={active:V(0),direction:k("horizontal"),activeColor:String,activeBgColor:String,activeBorderColor:String,titleActiveColor:String,inactiveColor:String,inactiveBgColor:String,inactiveBorderColor:String,titleInactiveColor:String},yv=Symbol(vv);var bv=t.defineComponent({name:vv,props:wv,emits:["clickStep"],setup(e,{emit:n,slots:o}){const{linkChildren:a}=z(yv);return a({props:e,onClickStep:e=>n("clickStep",e)}),()=>{var n;return t.createVNode("div",{class:gv([e.direction])},[t.createVNode("div",{class:gv("items")},[null==(n=o.default)?void 0:n.call(o)])])}}});const[xv,Cv]=Oe("step"),Lv={iconPrefix:String,activeIcon:String,inactiveIcon:String};const Nv=Re(t.defineComponent({name:xv,props:Lv,setup(e,{slots:n}){const{parent:o,index:a}=E(yv);if(!o)return;const r=o.props,i=()=>{const e=+r.active;return a.value===e?"process":"waiting"},l=()=>"process"===i(),s=t.computed((()=>l()?{color:r.titleActiveColor||""}:{color:r.titleInactiveColor||""})),c=()=>o.onClickStep(a.value),u=()=>{const{activeColor:e,activeBgColor:t,activeBorderColor:n,inactiveBgColor:o,inactiveBorderColor:a,inactiveColor:i}=r,s={};return l()?(s.background=`${t||"var(--zt-primary-color-a2)"}`,n&&(s.border=`1px solid ${n}`),s.fontWeight="bold",s.color=`${e||"var(--zt-primary-color)"}`):(s.background=`${o||""}`,a&&(s.border=`1px solid ${a}`),s.fontWeight="normal",s.color=`${i||"#FFFFFF"}`),s},d=()=>{const{activeColor:o,inactiveColor:i}=r,{iconPrefix:s,activeIcon:c,inactiveIcon:d}=e;return l()&&(c||n["active-icon"])?n["active-icon"]?n["active-icon"]():t.createVNode("div",{class:Cv("circle"),style:u()},[t.createVNode(lt,{class:Cv("icon","active"),name:c,color:o,classPrefix:s},null)]):d||n["inactive-icon"]?n["inactive-icon"]?n["inactive-icon"]():t.createVNode("div",{class:Cv("circle"),style:u()},[t.createVNode(lt,{class:Cv("icon"),name:d,color:i,classPrefix:s},null)]):t.createVNode("div",{class:Cv("circle"),style:u()},[a.value+1])};return()=>{var e;const o=i();return t.createVNode("div",{class:[Pe,Cv([r.direction,{[o]:o}])]},[t.createVNode("div",{class:Cv("title",{active:l()}),style:s.value,onClick:c},[null==(e=n.default)?void 0:e.call(n)]),t.createVNode("div",{class:Cv("circle-container"),onClick:c},[d()]),t.createVNode("div",{class:Cv("line")},null)])}}})),[Vv,kv]=Oe("stepper"),Sv=(e,t)=>String(e)===String(t),Av={min:V(1),max:V(1/0),name:V(""),step:V(1),theme:String,integer:Boolean,disabled:Boolean,showPlus:x,showMinus:x,showInput:x,longPress:x,allowEmpty:Boolean,modelValue:b,inputWidth:b,buttonSize:b,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,beforeChange:Function,defaultValue:V(1),decimalLength:b};const Tv=Re(t.defineComponent({name:Vv,props:Av,emits:["plus","blur","minus","focus","change","overlimit","update:modelValue"],setup(e,{emit:n}){const o=t=>{const{min:n,max:o,allowEmpty:r,decimalLength:i}=e;return r&&""===t||(t=""===(t=we(String(t),!e.integer))?0:+t,t=Number.isNaN(t)?+n:t,t=Math.max(Math.min(+o,t),+n),a(i)&&(t=t.toFixed(+i))),t};let r;const i=t.ref(),l=t.ref((()=>{var t;const a=null!=(t=e.modelValue)?t:e.defaultValue,r=o(a);return Sv(r,e.modelValue)||n("update:modelValue",r),r})()),s=t.computed((()=>e.disabled||e.disableMinus||+l.value<=+e.min)),c=t.computed((()=>e.disabled||e.disablePlus||+l.value>=+e.max)),u=t.computed((()=>({width:le(e.inputWidth),height:le(e.buttonSize)}))),d=t.computed((()=>se(e.buttonSize))),f=t=>{e.beforeChange?_e(e.beforeChange,{args:[t],done(){l.value=t}}):l.value=t},p=()=>{if("plus"===r&&c.value||"minus"===r&&s.value)return void n("overlimit",r);const t="minus"===r?-e.step:+e.step,a=o(ye(+l.value,t));f(a),n(r)},h=t=>{const n=t.target,{value:o}=n,{decimalLength:r}=e;let i=we(String(o),!e.integer);if(a(r)&&i.includes(".")){const e=i.split(".");i=`${e[0]}.${e[1].slice(0,+r)}`}e.beforeChange?n.value=String(l.value):Sv(o,i)||(n.value=i);const s=i===String(+i);f(s?+i:i)},m=t=>{var o;e.disableInput?null==(o=i.value)||o.blur():n("focus",t)},v=e=>{const a=e.target,r=o(a.value);a.value=String(r),l.value=r,t.nextTick((()=>{n("blur",e),ee()}))};let g,w;const y=()=>{w=setTimeout((()=>{p(),y()}),200)},b=t=>{e.longPress&&(clearTimeout(w),g&&ne(t))},x=t=>{e.disableInput&&ne(t)},C=t=>({onClick:e=>{ne(e),r=t,p()},onTouchstart:()=>{r=t,e.longPress&&(g=!1,clearTimeout(w),w=setTimeout((()=>{g=!0,p(),y()}),500))},onTouchend:b,onTouchcancel:b});return t.watch((()=>[e.max,e.min,e.integer,e.decimalLength]),(()=>{const e=o(l.value);Sv(e,l.value)||(l.value=e)})),t.watch((()=>e.modelValue),(e=>{Sv(e,l.value)||(l.value=o(e))})),t.watch(l,(t=>{n("update:modelValue",t),n("change",t,{name:e.name})})),Y((()=>e.modelValue)),()=>t.createVNode("div",{role:"group",class:kv([e.theme])},[t.withDirectives(t.createVNode("div",t.mergeProps({style:d.value,class:[kv("minus",{disabled:s.value}),{[kv("could-click")]:!s.value}],"aria-disabled":s.value||void 0},C("minus")),[t.createVNode(st,{name:"minus",size:(null==e?void 0:e.buttonSize)?e.buttonSize:"32"},null)]),[[t.vShow,e.showMinus]]),t.withDirectives(t.createVNode("input",{ref:i,type:e.integer?"tel":"text",role:"spinbutton",class:kv("input"),value:l.value,style:u.value,disabled:e.disabled,readonly:e.disableInput,inputmode:e.integer?"numeric":"decimal",placeholder:e.placeholder,"aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":l.value,onBlur:v,onInput:h,onFocus:m,onMousedown:x},null),[[t.vShow,e.showInput]]),t.withDirectives(t.createVNode("div",t.mergeProps({style:d.value,class:[kv("plus",{disabled:c.value}),{[kv("could-click")]:!c.value}],"aria-disabled":c.value||void 0},C("plus")),[t.createVNode(st,{name:"plus",size:(null==e?void 0:e.buttonSize)?e.buttonSize:"32"},null)]),[[t.vShow,e.showPlus]])])}})),Ov=Re(bv),[Pv,Mv]=Oe("swipe-cell"),Bv={name:V(""),disabled:Boolean,leftWidth:b,rightWidth:b,beforeClose:Function,stopPropagation:Boolean};const Iv=Re(t.defineComponent({name:Pv,props:Bv,emits:["open","close","click"],setup(e,{emit:n,slots:o}){let r,i,l,s;const c=t.ref(),u=t.ref(),d=t.ref(),f=t.reactive({offset:0,dragging:!1}),p=ft(),h=e=>e.value?I(e).width:0,m=t.computed((()=>a(e.leftWidth)?+e.leftWidth:h(u))),v=t.computed((()=>a(e.rightWidth)?+e.rightWidth:h(d))),g=t=>{f.offset="left"===t?m.value:-v.value,r||(r=!0,n("open",{name:e.name,position:t}))},w=t=>{f.offset=0,r&&(r=!1,n("close",{name:e.name,position:t}))},y=t=>{e.disabled||(l=f.offset,p.start(t))},b=()=>{f.dragging&&(f.dragging=!1,(e=>{const t=Math.abs(f.offset),n=r?.85:.15,o="left"===e?m.value:v.value;o&&t>o*n?g(e):w(e)})(f.offset>0?"left":"right"),setTimeout((()=>{i=!1}),0))},x=(t="outside")=>{s||(n("click",t),r&&!i&&(s=!0,_e(e.beforeClose,{args:[{name:e.name,position:t}],done:()=>{s=!1,w(t)},canceled:()=>s=!1,error:()=>s=!1})))},C=(e,t)=>n=>{t&&n.stopPropagation(),x(e)},L=(e,n)=>{const a=o[e];if(a)return t.createVNode("div",{ref:n,class:Mv(e),onClick:C(e,!0)},[a()])};return dt({open:g,close:w}),_(c,(()=>x("outside")),{eventName:"touchstart"}),j("touchmove",(t=>{if(e.disabled)return;const{deltaX:n}=p;if(p.move(t),p.isHorizontal()){i=!0,f.dragging=!0;(!r||n.value*l<0)&&ne(t,e.stopPropagation),f.offset=ve(n.value+l,-v.value,m.value)}}),{target:c}),()=>{var e;const n={transform:`translate3d(${f.offset}px, 0, 0)`,transitionDuration:f.dragging?"0s":".6s"};return t.createVNode("div",{ref:c,class:Mv(),onClick:C("cell",i),onTouchstartPassive:y,onTouchend:b,onTouchcancel:b},[t.createVNode("div",{class:Mv("wrapper"),style:n},[L("left",u),null==(e=o.default)?void 0:e.call(o),L("right",d)])])}}})),[Ev,Dv]=Oe("switch"),zv={size:b,loading:Boolean,disabled:Boolean,modelValue:y,activeColor:String,inactiveColor:String,activeValue:{type:y,default:!0},inactiveValue:{type:y,default:!1}};const Fv=Re(t.defineComponent({name:Ev,props:zv,emits:["change","update:modelValue"],setup(e,{emit:n,slots:o}){const a=()=>e.modelValue===e.activeValue,r=()=>{if(!e.disabled&&!e.loading){const t=a()?e.inactiveValue:e.activeValue;n("update:modelValue",t),n("change",t)}},i=()=>{if(e.loading){const n=a()?e.activeColor:e.inactiveColor;return t.createVNode(It,{class:Dv("loading"),color:n},null)}if(o.node)return o.node()};return Y((()=>e.modelValue)),()=>{var n;const{size:l,loading:s,disabled:c,activeColor:u,inactiveColor:d}=e,f=a(),p={fontSize:le(l),backgroundColor:f?u:d};return t.createVNode("div",{role:"switch",class:Dv({on:f,loading:s,disabled:c}),style:p,tabindex:c?void 0:0,"aria-checked":f,onClick:r},[t.createVNode("div",{class:Dv("node")},[i()]),null==(n=o.background)?void 0:n.call(o)])}}}));var jv=Fv;const[_v,Rv]=Oe("tabbar"),Hv={route:Boolean,fixed:x,border:x,zIndex:b,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:V(0),safeAreaInsetBottom:{type:Boolean,default:null}},Uv=Symbol(_v);const $v=Re(t.defineComponent({name:_v,props:Hv,emits:["change","update:modelValue"],setup(e,{emit:n,slots:o}){const a=t.ref(),{linkChildren:r}=z(Uv),i=Sf(a,Rv),l=()=>{var t;return null!=(t=e.safeAreaInsetBottom)?t:e.fixed},s=()=>{var n;const{fixed:r,zIndex:i,border:s}=e;return t.createVNode("div",{ref:a,role:"tablist",style:ce(i),class:[Rv({fixed:r}),{[Me]:s,"zt-safe-area-bottom":l()}]},[null==(n=o.default)?void 0:n.call(o)])};return r({props:e,setActive:(t,o)=>{_e(e.beforeChange,{args:[t],done(){n("update:modelValue",t),n("change",t),o()}})}}),()=>e.fixed&&e.placeholder?i(s):s()}})),[Zv,Wv]=Oe("tabbar-item"),Yv=p({},sn,{dot:Boolean,icon:String,name:b,badge:b,badgeProps:Object,iconPrefix:String});const qv=Re(t.defineComponent({name:Zv,props:Yv,emits:["click"],setup(e,{emit:n,slots:o}){const a=un(),r=t.getCurrentInstance().proxy,{parent:l,index:s}=E(Uv);if(!l)return;const c=t.computed((()=>{var t;const{route:n,modelValue:o}=l.props;if(n&&"$route"in r){const{$route:t}=r,{to:n}=e,o=i(n)?n:{path:n};return!!t.matched.find((e=>{const t="path"in o&&o.path===e.path,n="name"in o&&o.name===e.name;return t||n}))}return(null!=(t=e.name)?t:s.value)===o})),u=t=>{var o;c.value||l.setActive(null!=(o=e.name)?o:s.value,a),n("click",t)},d=()=>o.icon?o.icon({active:c.value}):e.icon?t.createVNode(lt,{name:e.icon,classPrefix:e.iconPrefix},null):void 0;return()=>{var n;const{dot:a,badge:r}=e,{activeColor:i,inactiveColor:s}=l.props,f=c.value?i:s;return t.createVNode("div",{role:"tab",class:Wv({active:c.value}),style:{color:f},tabindex:0,"aria-selected":c.value,onClick:u},[t.createVNode(We,t.mergeProps({dot:a,class:Wv("icon",{active:c.value}),content:r},e.badgeProps),{default:d}),t.createVNode("div",{class:Wv("text")},[null==(n=o.default)?void 0:n.call(o,{active:c.value})])])}}}));var Gv=(e=>(e.ASCEND="ascend",e.DESCEND="descend",e))(Gv||{});const[Xv,Kv]=Oe("text-ellipsis"),Qv={rows:V(1),dots:k("..."),content:k(""),expandText:k(""),expandType:k("flat"),collapseText:k(""),position:k("end")};const Jv=Re(t.defineComponent({name:Xv,props:Qv,emits:["clickAction"],setup(e,{emit:n}){const o=t.ref(""),a=t.ref(!1),r=t.ref(!1),i=t.ref(),l=t.computed((()=>a.value?e.collapseText:e.expandText)),s=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0},c=()=>{const t=(()=>{if(!i.value)return;const t=window.getComputedStyle(i.value),n=document.createElement("div");return Array.prototype.slice.apply(t).forEach((e=>{n.style.setProperty(e,t.getPropertyValue(e))})),n.style.position="fixed",n.style.zIndex="-9999",n.style.top="-9999px",n.style.height="auto",n.style.minHeight="auto",n.style.maxHeight="auto",n.innerText=e.content,document.body.appendChild(n),n})();if(!t)return;const{paddingBottom:n,paddingTop:a,lineHeight:c}=t.style,u=Math.ceil((Number(e.rows)+.5)*s(c)+s(a)+s(n));u<t.offsetHeight?(r.value=!0,o.value=((t,n)=>{const{content:o,position:a,dots:r}=e,i=o.length,s=(a,l)=>{if(a[1]-a[0]<=1&&l[1]-l[0]<=1)return o.slice(0,a[0])+r+o.slice(l[1],i);const c=Math.floor((a[0]+a[1])/2),u=Math.ceil((l[0]+l[1])/2);return t.innerText=e.content.slice(0,c)+e.dots+e.content.slice(u,i)+e.expandText,t.offsetHeight>=n?s([a[0],c],[u,l[1]]):s([c,a[1]],[l[0],u])},c=0+i>>1;return"middle"===e.position?t.innerText=s([0,c],[c,i]):(()=>{const e=(s,c)=>{if(c-s<=1)return"end"===a?o.slice(0,s)+r:r+o.slice(c,i);const u=Math.round((s+c)/2);return t.innerText="end"===a?o.slice(0,u)+r+l.value:r+o.slice(u,i)+l.value,t.offsetHeight>n?"end"===a?e(s,u):e(u,c):"end"===a?e(u,c):e(s,u)};t.innerText=e(0,i)})(),t.innerText})(t,u)):(r.value=!1,o.value=e.content),document.body.removeChild(t)},u=e=>{e.stopPropagation(),e.preventDefault(),a.value=!a.value,n("clickAction",e)},d=()=>{"dialog"===e.expandType&&r.value&&Xr({message:e.content}).then((()=>{}))};return t.onMounted(c),t.watch((()=>[e.content,e.rows,e.position]),c),j("resize",c),()=>t.createVNode("div",{ref:i,class:Kv(),onClick:d},[a.value?e.content:o.value,"dialog"!==e.expandType&&r.value?t.createVNode("span",{class:Kv("action"),onClick:u},[l.value]):null])}}));var eg=Jv;const[tg,ng]=Oe("table"),og="bodyCell",ag={headList:L(),dataList:L(),striped:x,emptyValue:k("-"),loading:{type:Boolean,default:!1},skeletonRow:{type:Number,default:6},border:{type:Boolean,default:!1},hideTableHead:{type:Boolean,default:!1}};const rg=Re(t.defineComponent({name:tg,props:ag,emits:["sort"],setup(e,{emit:n,slots:o}){const a=t.ref(""),r=t.ref(""),i=t.ref(),l=t.computed((()=>e.headList.filter((e=>e.fixed||e.fixedRight)))),s=t.computed((()=>{const t=[];let n=0;return e.headList.forEach(((o,a)=>{var r;const i=Object.assign({},o),l=e.headList[a-1],s=e.headList[a+1];l?(n+=Number(null==(r=l.width)?void 0:r.split("px")[0]),i.left=`${n}px`):i.left=0,o.fixed&&!(null==s?void 0:s.fixed)&&(i.lastFixLeft=!0),t.push(i)})),t})),c=t.ref(!1),u=t.ref(!1),d=t.computed((()=>l.value.concat(e.headList.filter((e=>!e.fixed)))));t.onMounted((()=>{i.value&&(u.value=i.value.scrollWidth>i.value.clientWidth);const t=e.headList.map(((e,t)=>(e.sorter&&e.defaultSortOrder&&(a.value=e.defaultSortOrder||"",r.value=e.key),e.fixed?`tableHead${t}`:""))).filter((e=>""!==e));t.length>0&&t.forEach(((e,t)=>{const n=document.getElementById(`fixedHead${t}`),o=document.getElementById(e);n&&o&&(n.style.width=o.offsetWidth+"px")}),0)}));const f=e=>{var t;e.sorter&&(a.value=(t=e.key===r.value?a.value:"")?t===Gv.ASCEND?Gv.DESCEND:"":Gv.ASCEND,r.value=e.key,n("sort",{order:a.value,key:e.key}))},p=e=>{const{scrollLeft:t,currentTarget:n}=e,o="number"==typeof t?t:null==n?void 0:n.scrollLeft;c.value=o>0;const a=n.scrollWidth-n.scrollLeft-n.clientWidth;u.value=a>0},h=(e,n,a)=>{if(e[n.key]&&e[n.key].id&&o[`data-${e[n.key].id}`])return o[`data-${e[n.key].id}`](e[n.key]);const r={column:n,record:e,text:e[n.key],index:a},i=o[og]&&o[og](r);return i&&i.length?i[0]:n.ellipsis?t.createVNode(eg,{content:e[n.key],expandType:"dialog"},null):e[n.key]},m=()=>{const e=[],n=d.value.length;for(let o=0;o<n;o++)e.push(t.createVNode("div",{class:ng("col")},[t.createVNode("div",{class:ng("col-item")},null)]));return e},v=()=>{const n=[];for(let o=0;o<e.skeletonRow;o++)n.push(t.createVNode("div",{class:ng("row",{head:0===o})},[m()]));return n};return()=>e.loading?t.createVNode("div",{class:ng({animate:!0,skeleton:!0})},[v()]):t.createVNode("div",{ref:i,class:ng({fixed:l.value.length>0,bordered:e.border,striped:e.striped}),onScroll:p},[t.createVNode("table",null,[t.createVNode("colgroup",null,[e.headList.map((e=>t.createVNode("col",{style:{width:e.width}},null)))]),t.withDirectives(t.createVNode("thead",{class:ng("thead")},[t.createVNode("tr",null,[s.value.map((e=>(e=>{const n=o[`head-${e.id}`],i=e.sorter?"flat":"dialog";if(0!==(null==e?void 0:e.colSpan))return t.createVNode("th",{class:[ng("left",{fixed:e.fixed,last:e.lastFixLeft&&c.value}),ng("right",{fixed:e.fixedRight,last:e.lastRight&&u.value})],style:{left:e.fixed?e.left:"",right:e.fixedRight?e.right:""},colspan:1!==(null==e?void 0:e.colSpan)?null==e?void 0:e.colSpan:null},[n?n(e):t.createVNode("div",{class:ng("head"),onClick:()=>f(e)},[e.ellipsis?t.createVNode(eg,{content:e.label,expandType:i,class:ng("head-label-ellipsis")},null):t.createVNode("span",{class:ng("head-label")},[e.label]),e.sorter?t.createVNode("span",{class:ng("head-sort")},[t.createVNode(lt,{class:[e.key===r.value&&a.value===Gv.ASCEND?ng("sort-active"):""],name:"spinner-shrink",size:"12",style:{marginBottom:"-3px"}},null),t.createVNode(lt,{class:[e.key===r.value&&a.value===Gv.DESCEND?ng("sort-active"):""],name:"spinner-expand",size:"12",style:{marginTop:"-3px"}},null)]):""])])})(e)))])]),[[t.vShow,!e.hideTableHead]]),t.createVNode("tbody",{class:ng("tbody")},[e.dataList.map(((e,n)=>((e,n)=>t.createVNode("tr",null,[s.value.map((o=>{let a;o.customCell&&(a=o.customCell(e,n));const r=Object.assign({},o.style);return r.left=o.fixed?o.left:"",r.right=o.fixedRight?o.right:"",0!==(null==a?void 0:a.rowSpan)&&0!==(null==a?void 0:a.colSpan)&&t.createVNode("td",{onClick:()=>o.click&&o.click(e,n),class:[ng("left",{fixed:o.fixed,last:o.lastFixLeft&&c.value}),ng("right",{fixed:o.fixedRight,last:o.lastRight&&u.value})],colspan:1!==(null==a?void 0:a.colSpan)?null==a?void 0:a.colSpan:null,rowspan:1!==(null==a?void 0:a.rowSpan)?null==a?void 0:a.rowSpan:null,style:r},[h(e,o,n)])}))]))(e,n)))])])])}})),[ig,lg]=Oe("timeline"),sg={title:k("办理经过"),defaultFold:{type:Boolean,default:!1},collapseCount:N(0),processes:L([]),opinionKey:k("处理意见"),enableSingleFold:x,dot:{type:Boolean,default:!1}};const cg=Re(t.defineComponent({name:ig,props:sg,setup(e,{slots:n}){const o=t.ref(e.defaultFold),a=o=>n.avatar?t.createVNode("div",{class:lg("avatar-box")},[n.avatar(o)]):e.dot?t.createVNode("div",{class:lg("dot")},null):t.createVNode("div",{class:lg("avatar-box")},[o.avatar?t.createVNode("img",{class:lg("avatar"),src:o.avatar,alt:""},null):t.createVNode("div",{class:lg("avatar")},[o.human.slice(-2)])]),r=e=>n.title?t.createVNode("div",{class:lg("title-box")},[n.title(e)]):t.createVNode("div",{class:lg("title-box")},[t.createVNode("span",{class:lg("title")},[`${e.department}[${e.human}]`]),t.createVNode("span",{class:lg("time")},[e.timestamp])]),i=o=>n.opinion?t.createVNode("div",{class:lg("opinion-box")},[n.opinion(o)]):t.createVNode("div",{class:lg("opinion-box")},[t.createVNode("div",{class:lg("opinion-label")},[e.opinionKey]),t.createVNode("div",{class:lg("opinion")},[o.opinion||"无"])]),l=e=>n.content?t.createVNode("div",{class:[lg("content-box"),Ie]},[n.content(e)]):t.createVNode("div",{class:[lg("content-box"),Ie]},[t.createTextVNode("在"),t.createVNode("span",null,[e.stage]),t.createTextVNode("阶段"),t.createVNode("span",{class:lg("text-bold")},[t.createTextVNode(" "),e.action,t.createTextVNode(" ")]),t.createTextVNode("到"),t.createVNode("span",null,[e.nextAction]),t.createVNode("span",null,[e.nextDepartment]),t.createVNode("span",{class:lg("text-bold")},[t.createTextVNode(" ["),e.nextHuman,t.createTextVNode("]")])]),s=(n,o)=>t.createVNode("div",{class:lg("item")+" "+(o?"last-item":""),onClick:function(){e.enableSingleFold&&(n.folded=!n.folded)}},[t.createVNode("div",{class:[lg("left-container"),e.dot?lg("dot-container"):""]},[a(n),t.createVNode("div",{class:lg(e.dot?"line-dot":"line")},null)]),t.createVNode("div",{class:lg("right-container")},[r(n),!n.folded&&t.createVNode("div",{class:lg("main-container")},[l(n),i(n)])])]),c=t.computed((()=>{const t=e.processes.map((e=>(e.folded=!1,e)));if(o.value){const n=t.slice(0,e.collapseCount);return n.map(((e,t)=>s(e,t===n.length-1)))}return t.map(((e,n)=>s(e,n===t.length-1)))}));return()=>{var a;return t.createVNode("div",{class:lg()},[n["top-bar"]?t.createVNode("div",{class:[lg("top-bar"),Ie]},[n["top-bar"]()]):t.createVNode("div",{class:[lg("top-bar"),Ie]},[t.createVNode("div",{class:lg("top-left")},[t.createVNode("div",{class:lg("bar")},null),t.createVNode("div",{class:lg("title")},[e.title])]),t.createVNode("div",{class:lg("top-right")},[t.createVNode("span",{class:lg("fold-text")},[t.createTextVNode("折叠"),e.title]),t.createVNode(jv,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e},null)])]),(null==(a=c.value)?void 0:a.length)>0&&t.createVNode("div",{class:lg("container")},[c.value])])}}})),[ug,dg,fg]=Oe("uploader");function pg(e,t){return new Promise((n=>{if("file"===t)return void n();const o=new FileReader;o.onload=e=>{n(e.target.result)},"dataUrl"===t?o.readAsDataURL(e):"text"===t&&o.readAsText(e)}))}function hg(e,t){return w(e).some((e=>!!e.file&&(r(t)?t(e.file):e.file.size>+t)))}const mg=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg|avif)/i;function vg(e){return!!e.isImage||(e.file&&e.file.type?0===e.file.type.indexOf("image"):e.url?(t=e.url,mg.test(t)):"string"==typeof e.content&&0===e.content.indexOf("data:image"));var t}var gg=t.defineComponent({props:{name:b,item:C(Object),index:Number,imageFit:String,lazyLoad:Boolean,deletable:Boolean,previewSize:[Number,String,Array],beforeDelete:Function},emits:["delete","preview"],setup(e,{emit:n,slots:o}){const r=()=>{const{status:n,message:o}=e.item;if("uploading"===n||"failed"===n){const e="failed"===n?t.createVNode(lt,{name:"close",class:dg("mask-icon")},null):t.createVNode(It,{class:dg("loading")},null),r=a(o)&&""!==o;return t.createVNode("div",{class:dg("mask")},[e,r&&t.createVNode("div",{class:dg("mask-message")},[o])])}},i=t=>{const{name:o,item:a,index:r,beforeDelete:i}=e;t.stopPropagation(),_e(i,{args:[a,{name:o,index:r}],done:()=>n("delete")})},l=()=>n("preview"),s=()=>{if(e.deletable&&"uploading"!==e.item.status){const e=o["preview-delete"];return t.createVNode("div",{role:"button",class:dg("preview-delete",{shadow:!e}),tabindex:0,"aria-label":fg("delete"),onClick:i},[e?e():t.createVNode(lt,{name:"cross",class:dg("preview-delete-icon")},null)])}},c=()=>{if(o["preview-cover"]){const{index:n,item:a}=e;return t.createVNode("div",{class:dg("preview-cover")},[o["preview-cover"](p({index:n},a))])}},u=()=>{const{item:n,lazyLoad:o,imageFit:a,previewSize:r}=e;return vg(n)?t.createVNode(tn,{fit:a,src:n.content||n.url,class:dg("preview-image"),width:Array.isArray(r)?r[0]:r,height:Array.isArray(r)?r[1]:r,lazyLoad:o,onClick:l},{default:c}):t.createVNode("div",{class:dg("file"),style:se(e.previewSize)},[t.createVNode(lt,{class:dg("file-icon"),name:"description"},null),t.createVNode("div",{class:[dg("file-name"),"zt-ellipsis"]},[n.file?n.file.name:n.url]),c()])};return()=>t.createVNode("div",{class:dg("preview")},[u(),r(),s()])}});const wg={name:V(""),accept:k("image/*"),capture:String,multiple:Boolean,disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,maxCount:V(1/0),imageFit:k("cover"),resultType:k("dataUrl"),uploadIcon:k("photograph"),uploadText:String,deletable:x,afterRead:Function,showUpload:x,modelValue:L(),beforeRead:Function,beforeDelete:Function,previewSize:[Number,String,Array],previewImage:x,previewOptions:Object,previewFullImage:x,maxSize:{type:[Number,String,Function],default:1/0}};const yg=Re(t.defineComponent({name:ug,props:wg,emits:["delete","oversize","clickUpload","closePreview","clickPreview","update:modelValue"],setup(e,{emit:n,slots:o}){const a=t.ref(),r=[],i=(t=e.modelValue.length)=>({name:e.name,index:t}),s=()=>{a.value&&(a.value.value="")},c=o=>{if(s(),hg(o,e.maxSize)){if(!Array.isArray(o))return void n("oversize",o,i());{const t=function(e,t){const n=[],o=[];return e.forEach((e=>{hg(e,t)?o.push(e):n.push(e)})),{valid:n,invalid:o}}(o,e.maxSize);if(o=t.valid,n("oversize",t.invalid,i()),!o.length)return}}o=t.reactive(o),n("update:modelValue",[...e.modelValue,...w(o)]),e.afterRead&&e.afterRead(o,i())},u=t=>{const{maxCount:n,modelValue:o,resultType:a}=e;if(Array.isArray(t)){const e=+n-o.length;t.length>e&&(t=t.slice(0,e)),Promise.all(t.map((e=>pg(e,a)))).then((e=>{const n=t.map(((t,n)=>{const o={file:t,status:"",message:""};return e[n]&&(o.content=e[n]),o}));c(n)}))}else pg(t,a).then((e=>{const n={file:t,status:"",message:""};e&&(n.content=e),c(n)}))},d=t=>{const{files:n}=t.target;if(e.disabled||!n||!n.length)return;const o=1===n.length?n[0]:[].slice.call(n);if(e.beforeRead){const t=e.beforeRead(o,i());if(!t)return void s();if(l(t))return void t.then((e=>{u(e||o)})).catch(s)}u(o)};let f;const h=()=>n("closePreview"),m=(a,l)=>{const s=["imageFit","deletable","previewSize","beforeDelete"],c=p(v(e,s),v(a,s,!0));return t.createVNode(gg,t.mergeProps({item:a,index:l,onClick:()=>n("clickPreview",a,i(l)),onDelete:()=>((t,o)=>{const a=e.modelValue.slice(0);a.splice(o,1),n("update:modelValue",a),n("delete",t,i(o))})(a,l),onPreview:()=>(t=>{if(e.previewFullImage){const n=e.modelValue.filter(vg),o=n.map((e=>(e.file&&!e.url&&"failed"!==e.status&&(e.url=URL.createObjectURL(e.file),r.push(e.url)),e.url))).filter(Boolean);f=Ll(p({images:o,startPosition:n.indexOf(t),closeable:!0,onClose:h},e.previewOptions))}})(a)},v(e,["name","lazyLoad"]),c),v(o,["preview-cover","preview-delete"]))},g=()=>{if(e.previewImage)return e.modelValue.map(m)},y=e=>n("clickUpload",e),b=()=>{if(e.modelValue.length>=+e.maxCount||!e.showUpload)return;const n=e.readonly?null:t.createVNode("input",{ref:a,type:"file",class:dg("input"),accept:e.accept,capture:e.capture,multiple:e.multiple,disabled:e.disabled,onChange:d},null);return o.default?t.createVNode("div",{class:dg("input-wrapper"),onClick:y},[o.default(),n]):t.createVNode("div",{class:dg("upload",{readonly:e.readonly}),style:se(e.previewSize),onClick:y},[t.createVNode(lt,{name:e.uploadIcon,class:dg("upload-icon")},null),e.uploadText&&t.createVNode("span",{class:dg("upload-text")},[e.uploadText]),n])};return t.onBeforeUnmount((()=>{r.forEach((e=>URL.revokeObjectURL(e)))})),dt({chooseFile:()=>{a.value&&!e.disabled&&a.value.click()},closeImagePreview:()=>{f&&f.close()}}),Y((()=>e.modelValue)),()=>t.createVNode("div",{class:dg()},[t.createVNode("div",{class:dg("wrapper",{disabled:e.disabled})},[g(),b()])])}})),bg=S&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype,xg="event",Cg="observer";function Lg(e,t){if(!e.length)return;const n=e.indexOf(t);return n>-1?e.splice(n,1):void 0}function Ng(e,t){if("IMG"!==e.tagName||!e.getAttribute("data-srcset"))return;let n=e.getAttribute("data-srcset");const o=e.parentNode.offsetWidth*t;let a,r,i;n=n.trim().split(",");const l=n.map((e=>(e=e.trim(),a=e.lastIndexOf(" "),-1===a?(r=e,i=999998):(r=e.substr(0,a),i=parseInt(e.substr(a+1,e.length-a-2),10)),[i,r])));l.sort(((e,t)=>{if(e[0]<t[0])return 1;if(e[0]>t[0])return-1;if(e[0]===t[0]){if(-1!==t[1].indexOf(".webp",t[1].length-5))return 1;if(-1!==e[1].indexOf(".webp",e[1].length-5))return-1}return 0}));let s,c="";for(let u=0;u<l.length;u++){s=l[u],c=s[1];const e=l[u+1];if(e&&e[0]<o){c=s[1];break}if(!e){c=s[1];break}}return c}const Vg=(e=1)=>S&&window.devicePixelRatio||e;function kg(){if(!S)return!1;let e=!0;try{const t=document.createElement("canvas");t.getContext&&t.getContext("2d")&&(e=0===t.toDataURL("image/webp").indexOf("data:image/webp"))}catch(t){e=!1}return e}function Sg(e,t){let n=null,o=0;return function(...a){if(n)return;const r=()=>{o=Date.now(),n=!1,e.apply(this,a)};Date.now()-o>=t?r():n=setTimeout(r,t)}}function Ag(e,t,n){e.addEventListener(t,n,{capture:!1,passive:!0})}function Tg(e,t,n){e.removeEventListener(t,n,!1)}const Og=(e,t,n)=>{const o=new Image;if(!e||!e.src)return n(new Error("image src is required"));o.src=e.src,e.cors&&(o.crossOrigin=e.cors),o.onload=()=>t({naturalHeight:o.naturalHeight,naturalWidth:o.naturalWidth,src:o.src}),o.onerror=e=>n(e)};class Pg{constructor({max:e}){this.options={max:e||100},this.caches=[]}has(e){return this.caches.indexOf(e)>-1}add(e){this.has(e)||(this.caches.push(e),this.caches.length>this.options.max&&this.free())}free(){this.caches.shift()}}const[Mg,Bg]=Oe("video"),Ig={src:k(""),showToolBox:Boolean,options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:"",controlsList:["nodownload"]}},errorTip:k("播放器发生错误"),clickRetryTip:k("请点击重试")};const Eg=Re(t.defineComponent({name:Mg,props:Ig,emits:["play","pause","play-end","time"],setup(e,{emit:n}){const o=t.ref(),a=t.ref(),r=t.reactive({initial:!0,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),i=t.computed((()=>e.options.disabled));t.watch((()=>e.src),(e=>{e&&t.nextTick((()=>{var e;null==(e=a.value)||e.load()}))}),{immediate:!0,deep:!0}),t.watch((()=>e.options),(e=>{r.state.isMuted=(null==e?void 0:e.muted)||!1}),{immediate:!0});const l=()=>{var t,o,i,l,c,u,p,m;e.options.autoplay&&setTimeout((()=>{var e;null==(e=a.value)||e.play()}),200),e.options.touchPlay&&(r.showTouchMask=!0),e.options.playsinline&&(null==(t=a.value)||t.setAttribute("playsinline","true"),null==(o=a.value)||o.setAttribute("webkit-playsinline","true"),null==(i=a.value)||i.setAttribute("x5-video-player-type","h5-page"),null==(l=a.value)||l.setAttribute("x5-video-player-fullscreen","false")),h(),e.showToolBox?s():(null==(c=a.value)||c.addEventListener("play",(()=>{r.state.playing=!0,n("play",a.value)})),null==(u=a.value)||u.addEventListener("pause",(()=>{r.state.playing=!1,n("pause",a.value)})),null==(p=a.value)||p.addEventListener("ended",f),null==(m=a.value)||m.addEventListener("timeupdate",Sg(d,1e3)))},s=()=>{var e,t;r.player.$player=a.value,r.progressBar.progressElm=o.value,r.progressBar.pos=null==(e=o.value)?void 0:e.getBoundingClientRect(),r.videoSet.progress.width=Math.round((null==(t=o.value)?void 0:t.getBoundingClientRect().width)||0)},c=()=>{var t,o,i,l;if(e.options.autoplay&&e.options.disabled)return r.state.playing=!0,!1;if(r.state.playing=!r.state.playing,a.value)if(r.state.playing)try{setTimeout((()=>{var e;null==(e=a.value)||e.play()}),200),null==(t=a.value)||t.addEventListener("progress",(()=>{u()})),null==(o=a.value)||o.addEventListener("timeupdate",Sg(d,1e3)),null==(i=a.value)||i.addEventListener("ended",f),n("play",a.value)}catch(s){p()}else null==(l=a.value)||l.pause(),n("pause",a.value)},u=()=>{var e,t;r.videoSet.loaded=((null==(e=a.value)?void 0:e.buffered.end(0))||0)/((null==(t=a.value)?void 0:t.duration)||1)*100},d=()=>{var e,t,o,i,l;const s=Number.isNaN(null==(e=a.value)?void 0:e.duration)?0:null==(t=a.value)?void 0:t.duration,c=Number.isNaN(null==(o=a.value)?void 0:o.currentTime)?0:null==(i=a.value)?void 0:i.currentTime,u=(c||0)/(s||1);r.videoSet.progress.current=Math.round(r.videoSet.progress.width*u),r.videoSet.totalTime=be(s),r.videoSet.displayTime=be(null==(l=a.value)?void 0:l.currentTime),n("time",c,s,r.videoSet.displayTime,r.videoSet.totalTime)},f=()=>{r.state.playing=!1,r.state.isEnd=!0,r.videoSet.displayTime="00:00",r.videoSet.progress.current=0,a.value&&(a.value.currentTime=0),n("play-end",a.value)},p=()=>{r.state.isError=!0},h=()=>{r.state.vol=e.options.volume||0},m=()=>{r.state.isMuted=!r.state.isMuted,a.value&&(a.value.muted=r.state.isMuted)},v=e=>{var t,n;e.stopPropagation(),e.preventDefault();let o=e.targetTouches[0].pageX-r.progressBar.pos.left;o<=0&&(o=0),o>=r.videoSet.progress.width&&(o=r.videoSet.progress.width),r.videoSet.progress.current=o;const i=r.videoSet.progress.current/r.videoSet.progress.width;(null==(t=a.value)?void 0:t.duration)&&w(i,null==(n=a.value)?void 0:n.duration)},g=e=>{var t,n;e.stopPropagation();const o=e.changedTouches[0].pageX-r.progressBar.pos.left;r.videoSet.progress.current=o;const i=o/r.videoSet.progress.width;(null==(t=a.value)?void 0:t.duration)&&w(i,null==(n=a.value)?void 0:n.duration)},w=(e,t)=>{a.value&&(a.value.currentTime=Math.floor(e*t))},y=()=>{r.state.isError=!1,l()},b=()=>{var e;r.state.fullScreen?(r.state.fullScreen=!1,document.webkitCancelFullScreen()):(r.state.fullScreen=!0,null==(e=a.value)||e.webkitRequestFullScreen())};function x(){if(e.showToolBox&&!i.value)return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:Bg("mask"),onClick:c},null),r.state.playing?null:t.createVNode("div",{class:Bg("play-btn"),onClick:c},[t.createVNode(st,{name:"play-r"},null)]),t.createVNode("div",{class:[Bg("controller",{show:!r.state.playing,hide:r.state.playing})],style:{"z-index":qe()}},[t.createVNode("div",{class:Bg("controller-play-btn"),onClick:c},null),t.createVNode("div",{class:Bg("controller-now")},[r.videoSet.displayTime]),t.createVNode("div",{class:Bg("controller-progress")},[t.createVNode("div",{ref:o,class:Bg("controller-progress-value")},[t.createVNode("div",{class:"buffered",style:{width:`${r.videoSet.loaded}%`}},null),t.createVNode("div",{class:Bg("controller-progress-ball"),style:{transform:`translate3d(${r.videoSet.progress.current}px, -50%, 0)`},onTouchmove:v,onTouchend:g},[t.createVNode("div",{class:Bg("move")},null)]),t.createVNode("div",{class:Bg("played")},null)])]),t.createVNode("div",{class:Bg("controller-total")},[r.videoSet.totalTime]),t.createVNode("div",{class:Bg("controller-volume"),onClick:m},[r.state.isMuted?t.createVNode(st,{name:"volume-off"},null):t.createVNode(st,{name:"volume-on"},null)]),t.createVNode("div",{class:Bg("controller-full"),onClick:b},[t.createVNode(st,{name:"expand"},null)])])])}function C(){if(r.state.isError)return t.createVNode("div",{class:Bg("error"),style:{"z-index":qe()}},[t.createVNode("p",{class:Bg("tip")},[e.errorTip]),t.createVNode("p",{class:Bg("retry"),onClick:y},[e.clickRetryTip])])}return dt({play:c,pause:()=>{var e;r.state.playing=!1,null==(e=a.value)||e.pause(),n("pause",a.value)},stop:()=>{var e;f(),null==(e=a.value)||e.pause()},muted:()=>{r.state.isMuted=!0,a.value&&(a.value.muted=!0)},unmuted:()=>{r.state.isMuted=!1,a.value&&(a.value.muted=!1)}}),t.onMounted((()=>{l()})),()=>{const{src:n,options:o}=e,r=o.controlsList||["nodownload"];return t.createVNode("div",{class:Bg()},[t.createVNode("video",{ref:a,class:Bg("player"),muted:o.muted,autoplay:o.autoplay,loop:o.loop,poster:o.poster,controls:o.controls,controlslist:r.join(" "),preload:o.preload,src:n,onError:p},null),x(),C()])}}}));class Dg{constructor({el:e,src:t,error:n,loading:o,bindType:a,$parent:r,options:i,cors:l,elRenderer:s,imageCache:c}){this.el=e,this.src=t,this.error=n,this.loading=o,this.bindType=a,this.attempt=0,this.cors=l,this.naturalHeight=0,this.naturalWidth=0,this.options=i,this.$parent=r,this.elRenderer=s,this.imageCache=c,this.performanceData={loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}initState(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={loading:!1,error:!1,loaded:!1,rendered:!1}}record(e){this.performanceData[e]=Date.now()}update({src:e,loading:t,error:n}){const o=this.src;this.src=e,this.loading=t,this.error=n,this.filter(),o!==this.src&&(this.attempt=0,this.initState())}checkInView(){const e=I(this.el);return e.top<window.innerHeight*this.options.preLoad&&e.bottom>this.options.preLoadTop&&e.left<window.innerWidth*this.options.preLoad&&e.right>0}filter(){Object.keys(this.options.filter).forEach((e=>{this.options.filter[e](this,this.options)}))}renderLoading(e){this.state.loading=!0,Og({src:this.loading,cors:this.cors},(()=>{this.render("loading",!1),this.state.loading=!1,e()}),(()=>{e(),this.state.loading=!1}))}load(e=f){if(this.attempt>this.options.attempt-1&&this.state.error)e();else if(!this.state.rendered||!this.state.loaded)return this.imageCache.has(this.src)?(this.state.loaded=!0,this.render("loaded",!0),this.state.rendered=!0,e()):void this.renderLoading((()=>{var t,n;this.attempt++,null==(n=(t=this.options.adapter).beforeLoad)||n.call(t,this,this.options),this.record("loadStart"),Og({src:this.src,cors:this.cors},(t=>{this.naturalHeight=t.naturalHeight,this.naturalWidth=t.naturalWidth,this.state.loaded=!0,this.state.error=!1,this.record("loadEnd"),this.render("loaded",!1),this.state.rendered=!0,this.imageCache.add(this.src),e()}),(e=>{!this.options.silent&&console.error(e),this.state.error=!0,this.state.loaded=!1,this.render("error",!1)}))}))}render(e,t){this.elRenderer(this,e,t)}performance(){let e="loading",t=0;return this.state.loaded&&(e="loaded",t=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(e="error"),{src:this.src,state:e,time:t}}$destroy(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}const zg="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Fg=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],jg={rootMargin:"0px",threshold:0};var _g=e=>({props:{tag:{type:String,default:"div"}},emits:["show"],render(){return t.h(this.tag,this.show&&this.$slots.default?this.$slots.default():null)},data:()=>({el:null,state:{loaded:!1},show:!1}),mounted(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeUnmount(){e.removeComponent(this)},methods:{checkInView(){const t=I(this.$el);return S&&t.top<window.innerHeight*e.options.preLoad&&t.bottom>0&&t.left<window.innerWidth*e.options.preLoad&&t.right>0},load(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)},destroy(){return this.$destroy}}});const Rg={selector:"img"};class Hg{constructor({el:e,binding:t,vnode:n,lazy:o}){this.el=null,this.vnode=n,this.binding=t,this.options={},this.lazy=o,this.queue=[],this.update({el:e,binding:t})}update({el:e,binding:t}){this.el=e,this.options=Object.assign({},Rg,t.value);this.getImgs().forEach((e=>{this.lazy.add(e,Object.assign({},this.binding,{value:{src:"dataset"in e?e.dataset.src:e.getAttribute("data-src"),error:("dataset"in e?e.dataset.error:e.getAttribute("data-error"))||this.options.error,loading:("dataset"in e?e.dataset.loading:e.getAttribute("data-loading"))||this.options.loading}}),this.vnode)}))}getImgs(){return Array.from(this.el.querySelectorAll(this.options.selector))}clear(){this.getImgs().forEach((e=>this.lazy.remove(e))),this.vnode=null,this.binding=null,this.lazy=null}}class Ug{constructor({lazy:e}){this.lazy=e,this.queue=[]}bind(e,t,n){const o=new Hg({el:e,binding:t,vnode:n,lazy:this.lazy});this.queue.push(o)}update(e,t,n){const o=this.queue.find((t=>t.el===e));o&&o.update({el:e,binding:t,vnode:n})}unbind(e){const t=this.queue.find((t=>t.el===e));t&&(t.clear(),Lg(this.queue,t))}}var $g=e=>({props:{src:[String,Object],tag:{type:String,default:"img"}},render(){var e,n;return t.h(this.tag,{src:this.renderSrc},null==(n=(e=this.$slots).default)?void 0:n.call(e))},data:()=>({el:null,options:{src:"",error:"",loading:"",attempt:e.options.attempt},state:{loaded:!1,error:!1,attempt:0},renderSrc:""}),watch:{src(){this.init(),e.addLazyBox(this),e.lazyLoadHandler()}},created(){this.init(),this.renderSrc=this.options.loading},mounted(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeUnmount(){e.removeComponent(this)},methods:{init(){const{src:t,loading:n,error:o}=e.valueFormatter(this.src);this.state.loaded=!1,this.options.src=t,this.options.error=o,this.options.loading=n,this.renderSrc=this.options.loading},checkInView(){const t=I(this.$el);return t.top<window.innerHeight*e.options.preLoad&&t.bottom>0&&t.left<window.innerWidth*e.options.preLoad&&t.right>0},load(e=f){if(this.state.attempt>this.options.attempt-1&&this.state.error)return void e();const{src:t}=this.options;Og({src:t},(({src:e})=>{this.renderSrc=e,this.state.loaded=!0}),(()=>{this.state.attempt++,this.renderSrc=this.options.error,this.state.error=!0}))}}});const Zg={install(e,n={}){const o=class{constructor({preLoad:e,error:t,throttleWait:n,preLoadTop:o,dispatchEvent:a,loading:r,attempt:i,silent:l=!0,scale:s,listenEvents:c,filter:u,adapter:d,observer:f,observerOptions:p}){this.mode=xg,this.listeners=[],this.targetIndex=0,this.targets=[],this.options={silent:l,dispatchEvent:!!a,throttleWait:n||200,preLoad:e||1.3,preLoadTop:o||0,error:t||zg,loading:r||zg,attempt:i||3,scale:s||Vg(s),ListenEvents:c||Fg,supportWebp:kg(),filter:u||{},adapter:d||{},observer:!!f,observerOptions:p||jg},this.initEvent(),this.imageCache=new Pg({max:200}),this.lazyLoadHandler=Sg(this.lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?Cg:xg)}config(e={}){Object.assign(this.options,e)}performance(){return this.listeners.map((e=>e.performance()))}addLazyBox(e){this.listeners.push(e),S&&(this.addListenerTarget(window),this.observer&&this.observer.observe(e.el),e.$el&&e.$el.parentNode&&this.addListenerTarget(e.$el.parentNode))}add(e,n,o){if(this.listeners.some((t=>t.el===e)))return this.update(e,n),t.nextTick(this.lazyLoadHandler);const a=this.valueFormatter(n.value);let{src:r}=a;t.nextTick((()=>{r=Ng(e,this.options.scale)||r,this.observer&&this.observer.observe(e);const i=Object.keys(n.modifiers)[0];let l;i&&(l=o.context.$refs[i],l=l?l.$el||l:document.getElementById(i)),l||(l=$(e));const s=new Dg({bindType:n.arg,$parent:l,el:e,src:r,loading:a.loading,error:a.error,cors:a.cors,elRenderer:this.elRenderer.bind(this),options:this.options,imageCache:this.imageCache});this.listeners.push(s),S&&(this.addListenerTarget(window),this.addListenerTarget(l)),this.lazyLoadHandler(),t.nextTick((()=>this.lazyLoadHandler()))}))}update(e,n,o){const a=this.valueFormatter(n.value);let{src:r}=a;r=Ng(e,this.options.scale)||r;const i=this.listeners.find((t=>t.el===e));i?i.update({src:r,error:a.error,loading:a.loading}):this.add(e,n,o),this.observer&&(this.observer.unobserve(e),this.observer.observe(e)),this.lazyLoadHandler(),t.nextTick((()=>this.lazyLoadHandler()))}remove(e){if(!e)return;this.observer&&this.observer.unobserve(e);const t=this.listeners.find((t=>t.el===e));t&&(this.removeListenerTarget(t.$parent),this.removeListenerTarget(window),Lg(this.listeners,t),t.$destroy())}removeComponent(e){e&&(Lg(this.listeners,e),this.observer&&this.observer.unobserve(e.el),e.$parent&&e.$el.parentNode&&this.removeListenerTarget(e.$el.parentNode),this.removeListenerTarget(window))}setMode(e){bg||e!==Cg||(e=xg),this.mode=e,e===xg?(this.observer&&(this.listeners.forEach((e=>{this.observer.unobserve(e.el)})),this.observer=null),this.targets.forEach((e=>{this.initListen(e.el,!0)}))):(this.targets.forEach((e=>{this.initListen(e.el,!1)})),this.initIntersectionObserver())}addListenerTarget(e){if(!e)return;let t=this.targets.find((t=>t.el===e));return t?t.childrenCount++:(t={el:e,id:++this.targetIndex,childrenCount:1,listened:!0},this.mode===xg&&this.initListen(t.el,!0),this.targets.push(t)),this.targetIndex}removeListenerTarget(e){this.targets.forEach(((t,n)=>{t.el===e&&(t.childrenCount--,t.childrenCount||(this.initListen(t.el,!1),this.targets.splice(n,1),t=null))}))}initListen(e,t){this.options.ListenEvents.forEach((n=>(t?Ag:Tg)(e,n,this.lazyLoadHandler)))}initEvent(){this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=(e,t)=>{this.Event.listeners[e]||(this.Event.listeners[e]=[]),this.Event.listeners[e].push(t)},this.$once=(e,t)=>{const n=(...o)=>{this.$off(e,n),t.apply(this,o)};this.$on(e,n)},this.$off=(e,t)=>{if(t)Lg(this.Event.listeners[e],t);else{if(!this.Event.listeners[e])return;this.Event.listeners[e].length=0}},this.$emit=(e,t,n)=>{this.Event.listeners[e]&&this.Event.listeners[e].forEach((e=>e(t,n)))}}lazyLoadHandler(){const e=[];this.listeners.forEach((t=>{t.el&&t.el.parentNode||e.push(t),t.checkInView()&&t.load()})),e.forEach((e=>{Lg(this.listeners,e),e.$destroy()}))}initIntersectionObserver(){bg&&(this.observer=new IntersectionObserver(this.observerHandler.bind(this),this.options.observerOptions),this.listeners.length&&this.listeners.forEach((e=>{this.observer.observe(e.el)})))}observerHandler(e){e.forEach((e=>{e.isIntersecting&&this.listeners.forEach((t=>{if(t.el===e.target){if(t.state.loaded)return this.observer.unobserve(t.el);t.load()}}))}))}elRenderer(e,t,n){if(!e.el)return;const{el:o,bindType:a}=e;let r;switch(t){case"loading":r=e.loading;break;case"error":r=e.error;break;default:({src:r}=e)}if(a?o.style[a]='url("'+r+'")':o.getAttribute("src")!==r&&o.setAttribute("src",r),o.setAttribute("lazy",t),this.$emit(t,e,n),this.options.adapter[t]&&this.options.adapter[t](e,this.options),this.options.dispatchEvent){const n=new CustomEvent(t,{detail:e});o.dispatchEvent(n)}}valueFormatter(e){let t=e,{loading:n,error:o}=this.options;return i(e)&&(({src:t}=e),n=e.loading||this.options.loading,o=e.error||this.options.error),{src:t,loading:n,error:o}}},a=new o(n),r=new Ug({lazy:a});e.config.globalProperties.$Lazyload=a,n.lazyComponent&&e.component("LazyComponent",_g(a)),n.lazyImage&&e.component("LazyImage",$g(a)),e.directive("lazy",{beforeMount:a.add.bind(a),updated:a.update.bind(a),unmounted:a.remove.bind(a)}),e.directive("lazy-container",{beforeMount:r.bind.bind(r),updated:r.update.bind(r),unmounted:r.unbind.bind(r)})}},Wg="3.1.89";function Yg(e){[_t,Kt,ln,We,mn,so,Ko,la,da,Ca,Na,Ba,Fa,Ha,Ua,_r,Qr,Wo,bi,Ti,Oi,zi,oi,Hi,Wi,Ki,nl,fl,lt,tn,Nl,Bl,Il,jl,It,Ve,wf,$s,kf,Pf,Ef,$f,Jf,Ct,op,lp,xr,sm,St,hm,Lm,Nm,Zm,Gm,Xm,si,rv,uv,Zt,mv,Nv,Tv,Ov,vo,No,Iv,Do,Fv,_o,$v,qv,rg,Ro,hi,Jv,Pr,cg,Qn,yg,Eg].forEach((t=>{t.install?e.use(t):t.name&&e.component(t.name,t)}))}var qg,Gg,Xg,Kg,Qg={install:Yg,version:Wg};function Jg(){var e=window.jsi&&window.jsi.callNative,t=window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.callNative;return!!e||!!t}function ew(e,t,n){var o=this,a=window;window[e]=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];t&&function(e,t){void 0===t&&(t=window);var n=t||window;delete n[e],n.top&&delete n.top[e]}(e,a),n.apply(o,r)},window.top&&(window.top[e]=window[e])}function tw(e){var t=e.methodName,n=void 0===t?"":t,o=e.requestCode,a=void 0===o?-1:o,r=e.params,i=void 0===r?{}:r,l=e.callbackName,s=void 0===l?null:l,c=e.callbackFunc,u=void 0===c?null:c,d=e.autoClear,f=void 0===d||d,p=e.onFail,h=void 0===p?null:p;if(Jg()){var m={method:n,params:i,callback:null};a&&a>=0&&(m.requestCode=a);var v,g,w=s,y=u;w?y||(y=window[w]):y&&((v=window.top||window).hasOwnProperty("__callId__")||(v.__callId__=0),v.__callId__+=1,w="jsicallback"+v.__callId__),m.callback=w,w&&ew(w,f,(g=y,function(e){var t=e;try{"string"==typeof t&&(t=t.replace(/\n/g,"\\n").replace(/\r/g,"\\r"),t=JSON.parse(t)||{})}catch(n){console.log(n),t={code:-1,msg:"返回数据格式异常:".concat(t)}}console.debug(t),g&&(t||(t={}),t.isSuccess=0===t.code,g(t))}));var b=JSON.stringify(m);window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.callNative?window.webkit.messageHandlers.callNative.postMessage(b):window.jsi.callNative(b)}else h&&h()}function nw(e){var t=e.methodName,n=void 0===t?"":t,o=e.requestCode,a=void 0===o?-1:o,r=e.params,i=void 0===r?{}:r,l=e.callbackName,s=void 0===l?null:l,c=e.autoClear,u=void 0===c||c,d=e.timeout,f=void 0===d?1e4:d,p=e.raw,h=void 0===p||p,m=e.onFail,v=void 0===m?null:m;return new Promise((function(e,t){var o=!1,r=!1;tw({methodName:n,requestCode:a,params:i,callbackName:s,autoClear:u,callbackFunc:function(n){n&&n.isSuccess&&n.data&&n.data.cancelFlag?r=!0:(h?e(n):n.isSuccess?e(n.data):t(n.msg),o=!0)},onFail:function(){t("callNative ".concat(n," not supported")),console.error("callNative ".concat(n," not supported")),o=!0,v&&v()}}),f>0&&setTimeout((function(){o||r||(t(n+"超时"),v&&v())}),f)}))}(Gg=qg||(qg={})).LANDSCAPE="landscape",Gg.PORTRAIT="portrait",(Kg=Xg||(Xg={})).BAIDU="baidu",Kg.DEFAULT="default";var ow=function(){function e(){}return e.prototype.isEnvironmentEnabled=function(){return!1},e}(),aw=navigator.userAgent.toLowerCase(),rw=window.jsi&&window.jsi.callNative,iw=window.jsInterface&&window.jsInterface.loadFinish,lw=aw&&/dingtalk/.test(aw),sw=aw&&/micromessenger/.test(aw),cw=aw&&/iphone|ipad|ipod|ios/.test(aw),uw=aw&&/android/.test(aw),dw=aw&&(/egovamobilev22/.test(aw)||/egovamobilepro/.test(aw)),fw=window.self!==window.top,pw=aw&&/gwork/.test(aw),hw=aw&&/taurusapp/.test(aw);function mw(e){return nw({methodName:"getLocation",params:dw?{}:{needConvert:null==e?void 0:e.needConvertInZhixin}}).then((function(t){var n,o,a=(null==t?void 0:t.data)||{},r=dw?{longitude:a.x,latitude:a.y,accuracy:"",horizontalAccuracy:"",coordType:1}:{longitude:a.x,latitude:a.y,accuracy:"",horizontalAccuracy:"",coordType:a.coordType,convertType:null!==(n=a.convertType)&&void 0!==n?n:"",convertParams:null!==(o=a.convertParams)&&void 0!==o?o:""};return e&&e.success&&e.success(r),Promise.resolve(r)})).catch((function(t){e&&e.fail&&e.fail(t)}))}function vw(e){return nw({methodName:"getBase64FileData",params:{path:e},raw:!1}).then((function(e){return Promise.resolve(e.base64)}))}function gw(e,t,n){for(var o=atob(e),a=o.length,r=new Uint8Array(a);a--;)r[a]=o.charCodeAt(a);return new File([r],t,{type:n})}function ww(e){var t=function(e){return{status:"rejected",reason:e}},n=function(e){return{status:"fulfilled",value:e}};return Promise.all(e.map((function(e){return Promise.resolve(e).then(n,t)})))}function yw(e){var t=e.lastIndexOf("/");return e.substring(t+1)}function bw(e){var t=dw?"image.pickPhoto":"media.pickPhoto",n=!0;e.sourceType&&e.sourceType.includes("camera")&&(t=dw?"image.takePhoto":"media.takePhoto",n=!1);var o={watermarkConfigString:e.watermarkConfigString||"",cameraFacingType:e.cameraFacingType||0,watermarkContext:e.watermarkContext||{}};return n&&e.count&&e.count>0&&(dw?o.count=e.count:o.photoCount=e.count),nw({methodName:t,timeout:3e5,params:o}).then((function(t){var n,o=(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.resultList)||[];if("string"==typeof o)try{o=JSON.parse(o)||[]}catch(i){console.log(i)}var a=[],r=[];return ww(o.map((function(e){return vw(e)}))).then((function(t){t.forEach((function(e,t){if("fulfilled"===e.status){var n=e.value,i=yw(o[t]);a.push(gw(n,i,"image/jpeg")),r.push("data:image/jpeg;base64,".concat(n))}}));var n={files:a,tempFilePaths:r};return e.success&&e.success(n),Promise.resolve(n)}))})).catch((function(t){return e.fail&&e.fail(t),Promise.reject(t)}))}function xw(e,t){var n="media.pickVideo";return t?n=t:e.sourceType&&e.sourceType.includes("camera")&&(n="media.takeVideo"),nw({methodName:n,params:e,timeout:3e5}).then((function(t){var n,o=(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.resultList)||[];if("string"==typeof o)try{o=JSON.parse(o)||[]}catch(r){console.log(r)}var a=[];return ww(o.map((function(e){return vw(e)}))).then((function(t){t.forEach((function(e,t){if("fulfilled"===e.status){var n=e.value,r=yw(o[t]);a.push(gw(n,r,"video/mp4"))}}));var n={files:a};return e.success&&e.success(n),Promise.resolve(n)}))})).catch((function(t){return e.fail&&e.fail(t),Promise.reject(t)}))}function Cw(e){return xw(e,dw?"video.takeVideo":"media.takeVideo")}function Lw(e){var t=dw?"video.pickVideo":"media.pickVideo";return e.sourceType&&e.sourceType.includes("camera")&&(t=dw?"video.takeVideo":"media.takeVideo"),xw(e,t)}function Nw(e){var t=e.endX,n=e.endY,o=e.longitude,a=e.latitude,r=e.endAddress,i=e.needConvertInZhixin,l=o||t||-1,s=a||n||-1;return nw(dw?{methodName:"location.navigateToPosition",params:{longitude:l,latitude:s,address:r}}:{methodName:"navigateToPosition",params:{coordX:l,coordY:s,address:r,needConvert:i}})}function Vw(e){return tw({methodName:dw?"navigation.setTitle":"bindNavBar",raw:!1,params:{title:e.title||""}}),e.success&&e.success(),e.complete&&e.complete(),Promise.resolve()}function kw(e){return nw({methodName:"navigation.setColor",params:{backgroundColor:e.backgroundColor,frontColor:e.frontColor}}).then((function(){return e.success&&e.success(),e.complete&&e.complete(),Promise.resolve()})).catch((function(t){return e.fail&&e.fail(t),e.complete&&e.complete(),Promise.reject(t)}))}function Sw(e){return nw({methodName:dw?"navigate.openLink":"openWebPage",raw:!1,params:{url:e.url||""}}).then((function(){return e.success&&e.success(),Promise.resolve()})).catch((function(t){return e.fail&&e.fail(t),Promise.reject(t)}))}function Aw(){return nw({methodName:dw?"navigate.close":"close",raw:!1}).then((function(){return Promise.resolve()})).catch((function(e){return Promise.reject(e)}))}function Tw(e){var t=e.success,n=e.fail,o=e.phoneNumber;return nw({methodName:dw?"device.phoneCall":"phoneCall",params:{phoneNum:o},onFail:n}).then((function(e){return t&&t(e),Promise.resolve(e)}))}function Ow(e){return nw({methodName:dw?"device.scan":"startQrCodeScan",timeout:3e5}).then((function(t){return t&&t.isSuccess?(e.success&&e.success(t&&t.data&&t.data.result),Promise.resolve(t&&t.data&&t.data.result)):(e.fail&&e.fail(t&&t.msg||"扫码失败"),Promise.reject(t&&t.msg||"扫码失败"))}))}function Pw(e){return nw({methodName:"device.ocrScan",params:{scanType:e.scanType,photoTypes:(null==e?void 0:e.photoTypes)||""},timeout:3e5}).then((function(t){return t&&t.isSuccess?(e.success&&e.success(t.data),Promise.resolve(t.data)):(e.fail&&e.fail(t&&t.msg||"扫描识别失败"),Promise.reject(t&&t.msg||"扫描识别失败"))}))}function Mw(e){return nw({methodName:"getDeviceInfo"}).then((function(t){return e.success&&e.success(t.data),Promise.resolve(t.data)}))}function Bw(e){return nw({methodName:"navigation.setStatusBarBlackFont",params:{blackFont:e}}).then((function(){return Promise.resolve()})).catch((function(e){return Promise.reject(e)}))}function Iw(e){return nw({raw:!1,methodName:"audio.startRecord",timeout:3e5}).then((function(t){return e&&e.success&&e.success(t),Promise.resolve(t)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Ew(e){return nw({raw:!1,methodName:"audio.stopRecord",timeout:3e5}).then((function(t){return e&&e.success&&e.success({localAudioId:t.path,duration:t.duration,size:t.size}),Promise.resolve({localAudioId:t.path,duration:t.duration,size:t.size})})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Dw(e){return nw({raw:!1,methodName:"audio.onRecordEnd",timeout:3e5}).then((function(t){return e&&e.success&&e.success({localAudioId:t.path,duration:t.duration,size:t.size}),Promise.resolve({localAudioId:t.path,duration:t.duration,size:t.size})})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function zw(e){return nw({raw:!1,methodName:"audio.playVoice",timeout:3e4,params:{localAudioId:e.localAudioId}}).then((function(t){return e&&e.success&&e.success(t),Promise.resolve(t)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Fw(e){return nw({raw:!1,methodName:"audio.pauseVoice",timeout:3e4,params:{localAudioId:e.localAudioId}}).then((function(t){return e&&e.success&&e.success(t),Promise.resolve(t)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function jw(e){return nw({methodName:"audio.stopVoice",raw:!1,timeout:3e4,params:{localAudioId:e.localAudioId}}).then((function(t){return e&&e.success&&e.success(t),Promise.resolve(t)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function _w(e){return nw({methodName:"audio.onPlayEnd",raw:!1,timeout:36e5}).then((function(t){return e&&e.success&&e.success({localAudioId:t.path}),Promise.resolve({localAudioId:t.path})})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Rw(e){return nw({methodName:"audio.uploadVoice",raw:!1,timeout:3e5,params:{localAudioId:e.localAudioId}}).then((function(t){return e&&e.success&&e.success({mediaId:t.mediaId}),Promise.resolve({mediaId:t.mediaId})})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Hw(e){return nw({methodName:"audio.downloadVoice",raw:!1,timeout:3e5,params:{mediaId:e.mediaId}}).then((function(t){return e&&e.success&&e.success({localAudioId:t.path,duration:t.duration,size:t.size}),Promise.resolve({localAudioId:t.path,duration:t.duration,size:t.size})})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Uw(e){return nw({methodName:"file.isLocalFileExist",params:{mediaIdArray:e.mediaIdArray}}).then((function(t){var n,o=(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.list)||[];return e&&e.success&&e.success(o),Promise.resolve(o)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function $w(e){return nw({methodName:"file.download",timeout:36e5,params:{url:e.url}}).then((function(t){var n;if((null==t?void 0:t.isSuccess)||!1){var o={tempFilePath:(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.tempFilePath)||""};return e&&e.success&&e.success(o),Promise.resolve(o)}var a=(null==t?void 0:t.msg)||"下载失败";return e&&e.fail&&e.fail(a),Promise.reject(a)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Zw(e){return nw({methodName:"file.openDocument",params:{localFilePath:e.localFilePath}}).then((function(t){if((null==t?void 0:t.isSuccess)||!1){var n=(null==t?void 0:t.data)||{};return e&&e.success&&e.success(n),Promise.resolve(n)}var o=(null==t?void 0:t.msg)||"打开文件失败";return e&&e.fail&&e.fail(o),Promise.reject(o)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function Ww(e){if(dw)return nw({methodName:"device.setScreenOrientation",params:{orientation:e.orientation}}).then((function(t){return e&&e.success&&e.success(t.data),Promise.resolve()})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}));return nw({methodName:e.orientation===qg.LANDSCAPE?"setLandScape":"setPortrait"}).then((function(){return Promise.resolve()})).catch((function(){return Promise.resolve()}))}function Yw(e){return dw?nw({methodName:"contact.createGroup",params:{groupName:(null==e?void 0:e.groupName)||"",initUserIdList:(null==e?void 0:e.initUserIdList)||[],useInitUser:null==e?void 0:e.useInitUser,hiddenExistGroup:null==e?void 0:e.hiddenExistGroup,autoSendMsg:(null==e?void 0:e.autoSendMsg)||"",themeGroupId:(null==e?void 0:e.themeGroupId)||""}}).then((function(t){var n=(null==t?void 0:t.data)||{};return e&&e.success&&e.success(n),Promise.resolve(n)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)})):nw({methodName:"startDiscuss",params:{title:(null==e?void 0:e.groupName)||""}}).then((function(t){var n=(null==t?void 0:t.data)||{};return e&&e.success&&e.success(n),Promise.resolve(n)})).catch((function(){return Promise.resolve()}))}function qw(e){return dw?nw({methodName:"im.getGroupsInfo",params:{data:(null==e?void 0:e.data)||[]}}).then((function(t){var n=(null==t?void 0:t.data)||{};return e&&e.success&&e.success(n),Promise.resolve(n)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)})):Promise.resolve()}function Gw(e){return dw?nw({methodName:"im.getGroupMemberList",params:{groupID:null==e?void 0:e.groupID,filter:(null==e?void 0:e.filter)||0,offset:(null==e?void 0:e.offset)||0,count:(null==e?void 0:e.count)||9999}}).then((function(t){var n=(null==t?void 0:t.data)||{};return e&&e.success&&e.success(n),Promise.resolve(n)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)})):Promise.resolve()}function Xw(e){return nw({methodName:"egova.speak",params:{content:(null==e?void 0:e.content)||"",ttsType:(null==e?void 0:e.ttsType)||Xg.DEFAULT}}).then((function(t){return t&&t.isSuccess?(e.success&&e.success(t),Promise.resolve(t)):(e.fail&&e.fail(t&&t.msg||"转换语音失败"),Promise.reject(t&&t.msg||"转换语音失败"))}))}function Kw(e){return nw({methodName:"egova.stopSpeak"}).then((function(t){return t&&t.isSuccess?(e.success&&e.success(t),Promise.resolve(t)):(e.fail&&e.fail(t&&t.msg||"转换语音失败"),Promise.reject(t&&t.msg||"转换语音失败"))}))}function Qw(e){return dw?nw({methodName:"navigate.openNativePage",params:{pageAddress:(null==e?void 0:e.pageAddress)||""}}).then((function(t){if((null==t?void 0:t.isSuccess)||!1)return e&&e.success&&e.success(null==t?void 0:t.data),Promise.resolve(null==t?void 0:t.data);var n=t.msg||"";return e&&e.fail&&e.fail(n),Promise.reject(n)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)})):new Promise((function(t,n){var o="暂不支持";e&&e.fail&&e.fail(o),n(o)}))}function Jw(e){return nw({methodName:"device.openBluetoothAdapter"}).then((function(t){return e&&e.success&&e.success(t.data),Promise.resolve()})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function ey(e){return nw({methodName:"device.startBluetoothDevicesDiscovery",params:{services:(null==e?void 0:e.services)||[],allowDuplicatesKey:!!(null==e?void 0:e.allowDuplicatesKey),interval:(null==e?void 0:e.interval)||0}}).then((function(t){return e&&e.success&&e.success(t.data),Promise.resolve()})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function ty(e){return nw({methodName:"device.stopBluetoothDevicesDiscovery"}).then((function(t){return e&&e.success&&e.success(t.data),Promise.resolve()})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function ny(e){return delete window.callbackBluetoothDeviceFound,nw({methodName:"device.closeBluetoothAdapter"}).then((function(t){return e&&e.success&&e.success(t.data),Promise.resolve()})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function oy(e){return nw({methodName:"device.getBluetoothDevices"}).then((function(t){return e&&e.success&&e.success(t.data),Promise.resolve(t.data)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))}function ay(e){return window.callbackBluetoothDeviceFound&&(window.callbackBluetoothDeviceFound=null),window.callbackBluetoothDeviceFound=function(t){try{var n=JSON.parse(t);"function"==typeof e&&e(n)}catch(o){"function"==typeof e&&e("onBluetoothDeviceFound发生异常"+(null==o?void 0:o.toString())),console.error("onBluetoothDeviceFound 发生异常",o)}},nw({methodName:"device.onBluetoothDeviceFound"}).then((function(e){return Promise.resolve()})).catch((function(e){return Promise.reject(e)}))}var ry,iy=globalThis&&globalThis.__extends||(ry=function(e,t){return(ry=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ry(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ly=function(e){function t(){var t=e.call(this)||this;return t.contact={createGroup:Yw},dw?(t.navigate={close:Aw,openLink:Sw,openNativePage:Qw},t.navigationBar={setNavigationBarTitle:Vw,setNavigationBarColor:kw,setStatusBarBlackFont:Bw},t.location={getLocation:mw,navigateTo:Nw},t.device={makePhoneCall:Tw,scan:Ow,ocrScan:Pw,setScreenOrientation:Ww,openBluetoothAdapter:Jw,startBluetoothDevicesDiscovery:ey,stopBluetoothDevicesDiscovery:ty,getBluetoothDevices:oy,closeBluetoothAdapter:ny,onBluetoothDeviceFound:ay,speak:Xw,stopSpeak:Kw},t.audio={startRecord:Iw,stopRecord:Ew,onRecordEnd:Dw,playVoice:zw,pauseVoice:Fw,stopVoice:jw,onPlayEnd:_w,uploadVoice:Rw,downloadVoice:Hw},t.file={isLocalFileExist:Uw,download:$w,openDocument:Zw},t.media={chooseImage:bw,takeVideo:Cw,chooseVideo:Lw},t.im={getGroupsInfo:qw,getGroupMemberList:Gw}):(t.navigate={close:Aw,openLink:Sw},t.navigationBar={setNavigationBarTitle:Vw},t.location={getLocation:mw,navigateTo:Nw},t.device={makePhoneCall:Tw,scan:Ow,getSystemInfo:Mw,setScreenOrientation:Ww},t.media={chooseImage:bw,chooseVideo:Lw,takeVideo:Cw},t.file={download:$w,openDocument:Zw}),t}return iy(t,e),t.prototype.isEnvironmentEnabled=function(){return Jg()},t.prototype.share=function(e){return nw({methodName:"share",params:{title:e.title,description:e.description,url:e.url,platforms:e.platforms,image:e.image,needAuth:e.needAuth}}).then((function(){return e.success&&e.success(),Promise.resolve()})).catch((function(t){return e.fail&&e.fail(t),Promise.reject(t)}))},t}(ow),sy="undefined"!=typeof window&&"onload"in window,cy="undefined"!=typeof process&&!(!process.versions||!process.versions.node);"undefined"!=typeof WXEnvironment&&WXEnvironment.platform;var uy="undefined"!=typeof my&&null!==my&&void 0!==my.alert,dy="undefined"!=typeof tt&&null!==tt&&void 0!==tt.showToast,fy="undefined"!=typeof swan&&null!==swan&&void 0!==swan.showToast,py="undefined"!=typeof ks&&null!==ks&&void 0!==ks.showToast,hy=!dy&&"undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram);uy&&sy&&my.isFRM;var vy="object"==typeof navigator?navigator.userAgent||navigator.swuserAgent:"";function gy(e){return"undefined"===e}/.+AliApp\((\w+)\/((?:\d+\.)+\d+)\).* .*(WindVane)(?:\/((?:\d+\.)+\d+))?.*/.test(vy)&&sy&&"undefined"!=typeof WindVane&&WindVane.call;var wy=!gy(typeof dd)&&null!==dd&&!gy(typeof dd.alert);function yy(){return yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},yy.apply(this,arguments)}function by(e){return function(t){return new Promise((function(n,o){var a=t;e(yy({},a,{success:function(e){a&&"function"==typeof a.success&&a.success(e),n(e)},onSuccess:function(e){a&&"function"==typeof a.onSuccess&&a.onSuccess(e),n(e)},fail:function(e){a&&"function"==typeof a.fail&&a.fail(e),o(e)},onFail:function(e){a&&"function"==typeof a.onFail&&a.onFail(e),o(e)},complete:function(e){a&&"function"==typeof a.complete&&a.complete(e)},onComplete:function(e){a&&"function"==typeof a.onComplete&&a.onComplete(e)}}))}))}}var xy=["_ext"];function Cy(){return Cy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Cy.apply(this,arguments)}var Ly=function(e,t){var n=e||{},o=n._ext,a=void 0===o?{}:o;return Cy({},function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(n,xy),a[t]||{})};function Ny(){return Ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ny.apply(this,arguments)}var Vy=function(e){var t="en";switch(e.toLowerCase()){case"zh_cn":case"zh-hans":case"zh-cn":case"chinese":t="zh_CN";break;case"zh_tw":case"zh-hant":case"zh-hk":t="zh_TW";break;default:t="en"}return t},ky=function(e){return function(){var t=e();return Sy(t)}},Sy=function(e){return Ny({},{pixelRatio:1,screenWidth:0,screenHeight:0,windowWidth:0,windowHeight:0,language:"",version:"",platform:""},e,{language:e.language?Vy(e.language):""})},Ay=function(e,t){return function(n){var o=Ly(n,t),a=Ny({},o,{success:function(e){o.success&&o.success(Sy(e))},complete:function(e){o.complete&&o.complete(e.pixelRatio?Sy(e):e)}});return by(e)(a).then(Sy)}},Ty="wechatMiniProgram",Oy="aliMiniApp",Py="bytedanceMicroApp",My="web",By="baiduSmartProgram",Iy="kuaishouMiniProgram",Ey="node";var Dy=ky((function(){return{pixelRatio:window.devicePixelRatio,screenWidth:window.document.documentElement.clientWidth,screenHeight:window.document.documentElement.clientHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight,language:navigator.language,version:navigator.appVersion,platform:(a=navigator.platform,(a?/(iphone|ipod|ipad)/.test(null==(e=navigator)||null==(t=e.userAgent)?void 0:t.toLowerCase())?"iOS":/android/.test(null==(n=navigator)||null==(o=n.userAgent)?void 0:o.toLowerCase())?"Android":a:"")||"")};var e,t,n,o,a}));const zy=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;try{var a=Dy();t&&t(a),o&&o(a)}catch(r){n&&n(r),o&&o(r)}}),My);const Fy=ky((function(){return{pixelRatio:window.devicePixelRatio,screenWidth:window.document.documentElement.clientWidth,screenHeight:window.document.documentElement.clientHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight,language:navigator.language,version:navigator.appVersion,platform:(a=navigator.platform,a?/(iphone|ipod|ipad)/.test(null==(e=navigator)||null==(t=e.userAgent)?void 0:t.toLowerCase())?"iOS":/android/.test(null==(n=navigator)||null==(o=n.userAgent)?void 0:o.toLowerCase())?"Android":a:"")};var e,t,n,o,a}));const jy=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;(wy?dd.getSystemInfo:my.getSystemInfo)({success:function(e){t&&t(e)},fail:function(e){n&&n(e)},complete:function(e){o&&o(e)}})}),Oy);const _y=ky((function(){return wy?dd.getSystemInfoSync():my.getSystemInfoSync()}));const Ry=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;wx.getSystemInfo({success:function(e){t&&t(e)},fail:function(e){n&&n(e)},complete:function(e){o&&o(e)}})}),Ty);const Hy=ky((function(){return wx.getSystemInfoSync()}));const Uy=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;tt.getSystemInfo({success:function(e){t&&t(e)},fail:function(e){n&&n(e)},complete:function(e){o&&o(e)}})}),Py);const $y=ky((function(){return tt.getSystemInfoSync()}));const Zy=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;ks.getSystemInfo({success:function(e){t&&t(e)},fail:function(e){n&&n(e)},complete:function(e){o&&o(e)}})}),Iy);const Wy=ky((function(){return ks.getSystemInfoSync()}));const Yy=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;swan.getSystemInfo({success:function(e){t&&t(e)},fail:function(e){n&&n(e)},complete:function(e){o&&o(e)}})}),By);const qy=ky((function(){return swan.getSystemInfoSync()}));var Gy=ky((function(){return{pixelRatio:1,screenWidth:1,screenHeight:1,windowWidth:1,windowHeight:1,language:"",version:"",platform:""}}));const Xy=Ay((function(e){var t=e.success,n=e.fail,o=e.complete;try{var a=Gy();t&&t(a),o&&o(a)}catch(r){n&&n(r),o&&o(r)}}),Ey);const Ky=ky((function(){return{pixelRatio:1,screenWidth:1,screenHeight:1,windowWidth:1,windowHeight:1,language:"",version:"",platform:""}}));const Qy={getInfoSync:function(){if(sy)return Fy();if(py)return Wy();if(hy)return Hy();if(dy)return $y();if(uy)return _y();if(fy)return qy();if(cy)return Ky();throw new Error("Uni API:getInfoSync暂不支持")},getInfo:function(e){if(sy)return zy(e);if(py)return Zy(e);if(hy)return Ry(e);if(dy)return Uy(e);if(uy)return jy(e);if(fy)return Yy(e);if(cy)return Xy(e);throw new Error("Uni API:getInfo暂不支持")}};function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Jy.apply(this,arguments)}var eb=function(e,t){return function(n){void 0===n&&(n={});var o=Ly(n,t),a=Jy({hideAlbum:!1,scanType:["barCode","qrCode"]},o,{success:function(e){o.success&&o.success(e)},complete:function(e){o.complete&&o.complete(e)}});return by(e)(a)}};const tb=eb((function(e){var t=e.hideAlbum,n=e.scanType,o=e.success,a=e.fail,r=e.complete;my.scan({hideAlbum:t,scanType:n,success:o,fail:a,complete:r})}),Oy);var nb={barCode:"barCode",qrCode:"qrCode",dmCode:"datamatrix",pdf417Code:"pdf417"};const ob=eb((function(e){var t=e.hideAlbum,n=e.scanType,o=e.success,a=e.fail,r=e.complete;wx.scanCode({onlyFromCamera:t,scanType:nb[n],success:o,fail:a,complete:r})}),Ty),ab=eb((function(e){var t=e.hideAlbum,n=e.scanType,o=e.success,a=e.fail,r=e.complete;tt.scanCode({onlyFromCamera:t,scanType:n,success:o,fail:a,complete:r})}),Py),rb=eb((function(e){var t=e.success,n=e.fail,o=e.complete;swan.scanCode({success:t,fail:n,complete:o})}),By);var ib={barCode:"barCode",qrCode:"qrCode",dmCode:"datamatrix",pdf417Code:"pdf417"};const lb=eb((function(e){var t=e.hideAlbum,n=e.scanType,o=e.success,a=e.fail,r=e.complete;ks.scanCode({onlyFromCamera:t,scanType:ib[n],success:o,fail:a,complete:r})}),Iy);const sb=function(e){if(sy)return function(){throw new Error("Uni API: scanCode不支持")}();if(py)return lb(e);if(hy)return ob(e);if(dy)return ab(e);if(uy)return tb(e);if(fy)return rb(e);throw new Error("Uni API:scanCode暂不支持")};function cb(){return cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},cb.apply(this,arguments)}var ub=function(e){return cb({},e,{tapIndex:null!=e.tapIndex?e.tapIndex:e.index})};const db=(fb=function(e){e.items=e.itemList,wy?dd.showActionSheet(e):my.showActionSheet(e)},pb=Oy,function(e){return e=Ly(e,pb),by(fb)(cb({},e,{success:function(t){e.success&&e.success(ub(t))},complete:function(t){e.complete&&e.complete(t)}})).then(ub)});var fb,pb;function hb(){return hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},hb.apply(this,arguments)}function mb(e,t){return function(n){return by(e)(Ly(n,t))}}function vb(e,t){return function(n){return by(e)((o=Ly(n,t),(a=hb({},o)).frontColor||(a.frontColor="#000000"),a));var o,a}}const gb={setNavigationBarColor:vb((function(e){return wy?dd.setNavigationBar(e):my.setNavigationBar(e)}),Oy),setNavigationBarTitle:mb((function(e){return wy?dd.setNavigationBar(e):my.setNavigationBar(e)}),Oy)};const wb={setNavigationBarTitle:mb((function(e){var t=e.title,n=e.success,o=void 0===n?function(){}:n,a=e.fail,r=void 0===a?function(){}:a,i=e.complete,l=void 0===i?function(){}:i;try{document.title=t,o(),l()}catch(s){r(),l()}}),My)};const yb={setNavigationBarColor:vb((function(e){wx.setNavigationBarColor(e)}),Ty),setNavigationBarTitle:mb((function(e){return wx.setNavigationBarTitle(e)}),Ty),getMenuButtonBoundingClientRect:function(){return wx.getMenuButtonBoundingClientRect()}};const bb={setNavigationBarColor:vb((function(e){tt.setNavigationBarColor(e)}),Py),setNavigationBarTitle:mb((function(e){return tt.setNavigationBarTitle(e)}),Py),getMenuButtonBoundingClientRect:function(){return tt.getMenuButtonBoundingClientRect()}};const xb={setNavigationBarColor:vb((function(e){ks.setNavigationBarColor(e)}),Iy),setNavigationBarTitle:mb((function(e){return ks.setNavigationBarTitle(e)}),Iy),getMenuButtonBoundingClientRect:function(){return ks.getMenuButtonBoundingClientRect()}};const Cb={setNavigationBarColor:vb((function(e){swan.setNavigationBarColor(e)}),By),setNavigationBarTitle:mb((function(e){return swan.setNavigationBarTitle(e)}),By),getMenuButtonBoundingClientRect:function(){return swan.getMenuButtonBoundingClientRect()}};const Lb={setNavigationBarColor:function(e){if(py)return xb.setNavigationBarColor(e);if(hy)return yb.setNavigationBarColor(e);if(dy)return bb.setNavigationBarColor(e);if(uy)return gb.setNavigationBarColor(e);if(fy)return Cb.setNavigationBarColor(e);throw new Error("Uni API:setNavigationBarColor暂不支持")},setNavigationBarTitle:function(e){if(sy)return wb.setNavigationBarTitle(e);if(py)return xb.setNavigationBarTitle(e);if(hy)return yb.setNavigationBarTitle(e);if(dy)return bb.setNavigationBarTitle(e);if(uy)return gb.setNavigationBarTitle(e);if(fy)return Cb.setNavigationBarTitle(e);throw new Error("Uni API:setNavigationBarTitle暂不支持")},getMenuButtonBoundingClientRect:function(){if(py)return xb.getMenuButtonBoundingClientRect();if(hy)return yb.getMenuButtonBoundingClientRect();if(dy)return bb.getMenuButtonBoundingClientRect();if(fy)return Cb.getMenuButtonBoundingClientRect();throw new Error("Uni API:getMenuButtonBoundingClientRect暂不支持")}};function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Nb.apply(this,arguments)}var Vb=function(e){return Nb({},e,{latitude:String(e.latitude),longitude:String(e.longitude),accuracy:String(e.accuracy),horizontalAccuracy:String(e.horizontalAccuracy)})};function kb(e,t){return function(n){return by(e)((o=Ly(n,t),void 0===o&&(o={}),Nb({},o,{success:function(e){o.success&&o.success(Vb(e))},complete:function(e){o.complete&&o.complete(e)}}))).then(Vb);var o}}function Sb(e,t){return function(n){return by(e)(Ly(n,t))}}function Ab(e,t){return function(n){return by(e)(Ly(n,t))}}function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Tb.apply(this,arguments)}const Ob={getLocation:kb((function(e){return e.resultType=e.resultType||0,null!=e&&e.type&&"string"==typeof e.type&&(e.type=0),null!=e&&e.resultType&&"number"==typeof e.resultType&&!isNaN(e.resultType)&&(e.type=e.resultType),wy?dd.getLocation(e):my.getLocation(e)}),Oy),openLocation:Sb((function(e){var t=Tb({},e,{latitude:String(e.latitude),longitude:String(e.longitude)});wy?dd.openLocation(t):my.openLocation(t)}),Oy),chooseLocation:Ab((function(e){return wy?dd.chooseLocation(e):my.chooseLocation(e)}),Oy)};const Pb={getLocation:kb((function(e){var t=e.success,n=void 0===t?function(){}:t,o=e.fail,a=void 0===o?function(){}:o,r=e.complete,i=void 0===r?function(){}:r;if("geolocation"in navigator)navigator.geolocation.getCurrentPosition((function(e){n(e.coords),i(e.coords)}),(function(e){a(e),i(e)}));else{var l={code:-1,message:"地理位置服务不可用"};a(l),i(l)}}),My),openLocation:Sb((function(){throw new Error("Uni API: openLocation不支持")}),My),chooseLocation:Ab((function(){throw new Error("@uni/apis: chooseLocation不支持")}),My)};function Mb(){return Mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mb.apply(this,arguments)}const Bb={getLocation:kb((function(e){return wx.getLocation(e)}),Ty),openLocation:Sb((function(e){return wx.openLocation(Mb({},e,{latitude:Number(e.latitude),longitude:Number(e.longitude)}))}),Ty),chooseLocation:Ab((function(e){return wx.chooseLocation(e)}),Ty)};function Ib(){return Ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ib.apply(this,arguments)}const Eb={getLocation:kb((function(e){return tt.getLocation(e)}),Py),openLocation:Sb((function(e){return tt.openLocation(Ib({},e,{latitude:Number(e.latitude),longitude:Number(e.longitude)}))}),Py),chooseLocation:Ab((function(e){return tt.chooseLocation(e)}),Py)};function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Db.apply(this,arguments)}const zb={getLocation:kb((function(e){return swan.getLocation(e)}),By),openLocation:Sb((function(e){return swan.openLocation(Db({},e,{latitude:Number(e.latitude),longitude:Number(e.longitude)}))}),By),chooseLocation:Ab((function(e){return swan.chooseLocation(e)}),By)};function Fb(){return Fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Fb.apply(this,arguments)}const jb={getLocation:kb((function(e){return ks.getLocation(e)}),Iy),openLocation:Sb((function(e){return ks.openLocation(Fb({},e,{latitude:Number(e.latitude),longitude:Number(e.longitude)}))}),Iy),chooseLocation:Ab((function(e){return ks.chooseLocation(e)}),Iy)};const _b=function(e){if(sy)return Pb.getLocation(e);if(py)return jb.getLocation(e);if(hy)return Bb.getLocation(e);if(dy)return Eb.getLocation(e);if(uy)return Ob.getLocation(e);if(fy)return zb.getLocation(e);throw new Error("Uni API:getLocation暂不支持")};function Rb(){return Rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rb.apply(this,arguments)}var Hb=function(e,t){var n=function(e){return Rb({},e,{tempFiles:e.tempFiles||e.files,tempFilePaths:e.tempFilePaths})};return function(o){return o=Ly(o,t),by(e)(Rb({},o,{count:o.count||1,success:function(e){o.success&&o.success(n(e))},complete:function(e){o.complete&&o.complete(e)}})).then(n)}},Ub=function(e,t){var n=function(e){return{tempFilePath:e.tempFilePath||(e.filePaths||[])[0]||(e.apFilePaths||[])[0]||""}};return function(o){return o=Ly(o,t),by(e)(Rb({},o,{success:function(e){o.success&&o.success(n(e))},complete:function(e){o.complete&&o.complete(e)}})).then(n)}},$b=function(e,t){return function(n){return by(e)(Ly(n,t))}},Zb=function(e,t){return function(n){return by(e)(Ly(n,t))}},Wb=function(e,t){return function(n){return by(e)(Ly(n,t))}};const Yb={chooseImage:Hb((function(e){return wy?dd.chooseImage(e):my.chooseImage(e)}),Oy),compressImage:Ub((function(e){return wy?e.filePaths=[e.src]:e.apFilePaths=[e.src],e&&"number"==typeof e.quality&&(e.compressLevel=e.quality),wy?dd.compressImage(e):my.compressImage(e)}),Oy),getImageInfo:$b((function(e){return wy?dd.getImageInfo(e):my.getImageInfo(e)}),Oy),previewImage:Zb((function(e){return wy?dd.previewImage(e):my.previewImage(e)}),Oy),saveImage:Wb((function(e){return wy?dd.saveImage(e):my.saveImage(e)}),Oy)};function qb(){return qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qb.apply(this,arguments)}var Gb=function(e,t){var n=function(e){return qb({},e,{tempFilePath:e.tempFilePath||e.filePath})};return function(o){return o=Ly(o,t),by(e)(qb({},o,{success:function(e){o.success&&o.success(n(e))},complete:function(e){o.complete&&o.complete(e)}})).then(n)}},Xb=function(e,t){var n=function(e){return qb({},e,{tempFiles:(e.tempFiles||e.files).map((function(e){return qb({},e,{tempFilePath:e.tempFilePath||e.path})}))})};return function(o){return void 0===o&&(o={}),o=Ly(qb({count:9,sizeType:["original","compressed"],sourceType:["camera","album"],mediaType:["image","video"],maxDuration:60},o),t),by(e)(qb({},o,{success:function(e){o.success&&o.success(n(e))},fail:function(e){o.fail&&o.fail(e)},complete:function(e){o.complete&&o.complete(e)}})).then(n)}};const Kb=Xb((function(e){void 0===e&&(e={});var t=e,n=t.count,o=void 0===n?9:n,a=t.success,r=void 0===a?function(){}:a,i=t.fail,l=void 0===i?function(){}:i,s=t.complete,c=void 0===s?function(){}:s;try{var u=function(e,t){var n=document.createElement("INPUT");return n.name="file",n.id="input-"+1e8*Math.random(),n.type="file",e&&n.setAttribute("multiple","multiple"),n.style.display="none",t&&n.setAttribute("accept",t),document.body.appendChild(n),n}(o>1,e.accept),d=[];u.addEventListener("change",(function(e){var t={tempFiles:(d=e.target.files&&Array.from(e.target.files).slice(0,o)).map((function(e){return{tempFilePath:window.URL.createObjectURL(e),size:e.size}})),files:d};r(t),c(t),u.remove&&u.remove()}),!1);var f=document.createEvent("MouseEvents");f.initEvent("click",!0,!0),u.dispatchEvent(f)}catch(p){l(p),c(p)}}),My);const Qb=Hb((function(e){void 0===e&&(e={});var t=e,n=t.count,o=void 0===n?1:n,a=t.success,r=void 0===a?function(){}:a,i=t.fail,l=void 0===i?function(){}:i,s=t.complete,c=void 0===s?function(){}:s;Kb({count:o,accept:"image/*"}).then((function(e){var t={tempFilePaths:e.tempFiles.map((function(e){return e.tempFilePath})),tempFiles:e.tempFiles.map((function(e){return{path:e.tempFilePath,size:e.size}})),files:e.files};r(t),c(t)})).catch((function(e){l(e),c(e)}))}),My);const Jb=function(){throw new Error("Uni API: compressImage不支持")};const ex=$b((function(e){var t=new Image;if(t.src=e.src,t.naturalWidth){var n={width:t.naturalWidth,height:t.naturalHeight,path:e.src};e.success(n),e.complete(n)}else{var o=function(){var n={width:t.width,height:t.height,path:e.src};e.success(n),e.complete(n)};if(t.complete)o();else{var a=null,r=function(){clearInterval(a),a=null};a=setInterval((function(){(t.width>0||t.height>0)&&(o(),r())}),40),t.onload=function(){a&&(o(),r())},t.onabort=t.onerror=function(t){e.fail(t),e.complete(t),r()}}}}),My);var tx="__universal_preview_image",nx=("."+tx+" {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 9999;\n text-align: center;\n background: #000;\n box-sizing: border-box;\n outline: none;\n overflow: hidden;\n animation-duration: .3s;\n animation-fill-mode: both;\n}\n."+tx+"_pageindex {\n position: absolute;\n top: 12px;\n left: 0;\n right: 0;\n text-align: center;\n color: #fff;\n font-size: 16px;\n z-index: 2;\n}\n."+tx+"_swiper {\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1;\n display: flex;\n align-items: center;\n transition-property: transform;\n box-sizing: content-box;\n}\n."+tx+"_item {\n max-height: 70%;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n width: 100%;\n position: relative;\n transition-property: transform;\n overflow: hidden;\n}\n."+tx+"_img {\n width: 100%;\n}\n@keyframes "+tx+"_fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes "+tx+"_fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}").replace(/\n/g,""),ox=null;const ax={chooseImage:Qb,compressImage:Jb,getImageInfo:ex,previewImage:Zb((function(e){var t=(e||{}).urls,n=void 0===t?[]:t,o=(e||{}).current,a=void 0===o?0:o;if("[object Array]"!==Object.prototype.toString.call(n))throw new Error("the arguments must contain urls that type is a Array");if(n.length<=0)throw new Error("the urls`s length is at least 1");if(!Number.isSafeInteger(a))throw new Error("the current must be a safe integer");a=Math.min(Math.max(a,0),n.length-1),ox||((ox=document.createElement("style")).innerHTML=nx,document.body.appendChild(ox));var r=document.createElement("div");r.className=tx,r.style.animationName=tx+"_fadeIn",r.addEventListener("click",(function(){r&&(r.style.animationName=tx+"_fadeOut"),setTimeout((function(){r&&document.body.removeChild(r),r=null}),300)}));var i=document.createElement("div");i.className=tx+"_pageindex",i.innerText=a+1+"/"+n.length,r.appendChild(i);var l=document.createElement("div");l.className=tx+"_swiper";var s=document.documentElement.clientWidth,c=0;l.addEventListener("touchstart",(function(e){e.touches.length>1&&(e.stopPropagation(),e.preventDefault()),c=e.targetTouches[0].pageX})),l.addEventListener("touchmove",(function(e){e.touches.length>1&&(e.stopPropagation(),e.preventDefault());var t=e.targetTouches[0].pageX-c;l.style.transform="translateX("+(-s*a+1*t)+"px)"})),l.addEventListener("touchend",(function(e){var t=e.changedTouches[0].pageX-c;Math.abs(1*t)>s/5&&(a=t<0?Math.min(a+1,n.length-1):Math.max(a-1,0)),i.innerText=a+1+"/"+n.length;l.style.transitionDuration="300ms",l.style.transform="translateX("+-s*a+"px)",setTimeout((function(){l.style.transitionDuration="0ms"}),300)})),l.style.transform="translateX("+-s*a+"px)",r.appendChild(l),n.forEach((function(e){var t=document.createElement("div");t.className=tx+"_item",t.addEventListener("click",(function(e){e.stopPropagation(),r&&(r.style.animationName=tx+"_fadeOut"),setTimeout((function(){r&&document.body.removeChild(r),r=null}),300)})),l.appendChild(t);var n=document.createElement("img");n.className=tx+"_img",n.src=e,t.appendChild(n),t.addEventListener("touchstart",(function(e){if(e.touches.length>1){e.stopPropagation(),e.preventDefault();var n=e.touches[0],o=e.touches[1],a=Math.abs(o.pageX-n.pageX),r=Math.abs(o.pageY-n.pageY);t.touchDistance=Math.sqrt(a*a+r*r)}else t.touched={x:e.touches[0].pageX,y:e.touches[0].pageY}})),t.addEventListener("touchmove",(function(e){if(e.touches.length>1){e.stopPropagation(),e.preventDefault();var o=Math.abs(e.touches[0].pageX-e.touches[1].pageX),a=Math.abs(e.touches[1].pageY-e.touches[1].pageY),r=Math.sqrt(o*o+a*a);if(t.touchDistance){var i=(t.previousPinchScale||1)+(r-t.touchDistance)/t.touchDistance,l=Math.max(1,i);n.style.transform="scale("+l+")",t.previousPinchScale=l}t.touchDistance=r}else if(t.previousPinchScale>1){e.stopPropagation();var s=(t.preX||0)+(e.touches[0].pageX-t.touched.x),c=(t.preY||0)+(e.touches[0].pageY-t.touched.y);n.style.transform="scale("+t.previousPinchScale+") translate("+s+"px, "+c+"px)",t.preX=s,t.preY=c,t.touched={x:e.touches[0].pageX,y:e.touches[0].pageY}}}))})),document.body.appendChild(r)}),My),saveImage:function(){throw new Error("Uni API: saveImage不支持")}};function rx(){return rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},rx.apply(this,arguments)}function ix(){return ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ix.apply(this,arguments)}const lx={chooseImage:Hb((function(e){return wx.chooseImage(e)}),Ty),compressImage:Ub((function(e){return e&&"number"==typeof e.quality&&(e.quality=33*e.quality),wx.compressImage(e)}),Ty),getImageInfo:$b((function(e){return wx.getImageInfo(e)}),Ty),previewImage:Zb((function(e){wx.previewImage(rx({},e,{current:"number"==typeof e.current?e.urls[e.current]:e.urls[0]}))}),Ty),saveImage:Wb((function(e){wx.saveImageToPhotosAlbum(ix({},e,{filePath:e.url}))}),Ty)};function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},sx.apply(this,arguments)}function cx(){return cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},cx.apply(this,arguments)}const ux={chooseImage:Hb((function(e){return tt.chooseImage(e)}),Py),compressImage:Ub((function(e){return e&&"number"==typeof e.quality&&(e.quality=33*e.quality),tt.compressImage(e)}),Py),getImageInfo:$b((function(e){return tt.getImageInfo(e)}),Py),previewImage:Zb((function(e){tt.previewImage(sx({},e,{current:"number"==typeof e.current?e.urls[e.current]:e.urls[0]}))}),Py),saveImage:Wb((function(e){tt.saveImageToPhotosAlbum(cx({},e,{filePath:e.url}))}),Py)};function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dx.apply(this,arguments)}function fx(){return fx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fx.apply(this,arguments)}const px={chooseImage:Hb((function(e){return ks.chooseImage(e)}),Iy),compressImage:Ub((function(e){return e&&"number"==typeof e.quality&&(e.quality*=33),ks.compressImage(e)}),Iy),getImageInfo:$b((function(e){return ks.getImageInfo(e)}),Iy),previewImage:Zb((function(e){ks.previewImage(dx({},e,{current:"number"==typeof e.current?e.urls[e.current]:e.urls[0]}))}),Iy),saveImage:Wb((function(e){ks.saveImageToPhotosAlbum(fx({},e,{filePath:e.url}))}),Iy)};function hx(){return hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},hx.apply(this,arguments)}function mx(){return mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},mx.apply(this,arguments)}const vx={chooseImage:Hb((function(e){return swan.chooseImage(e)}),By),compressImage:Ub((function(e){return e&&"number"==typeof e.quality&&(e.quality*=33),swan.compressImage(e)}),By),getImageInfo:$b((function(e){return swan.getImageInfo(e)}),By),previewImage:Zb((function(e){swan.previewImage(hx({},e,{current:"number"==typeof e.current?e.urls[e.current]:e.urls[0]}))}),By),saveImage:Wb((function(e){swan.saveImageToPhotosAlbum(mx({},e,{filePath:e.url}))}),By)};const gx={chooseImage:function(e){if(sy)return ax.chooseImage(e);if(py)return px.chooseImage(e);if(hy)return lx.chooseImage(e);if(dy)return ux.chooseImage(e);if(uy)return Yb.chooseImage(e);if(fy)return vx.chooseImage(e);throw new Error("Uni API:chooseImage暂不支持")},compressImage:function(e){if(sy)return ax.compressImage();if(py)return px.compressImage(e);if(hy)return lx.compressImage(e);if(dy)return ux.compressImage(e);if(uy)return Yb.compressImage(e);if(fy)return vx.compressImage(e);throw new Error("Uni API:compressImage暂不支持")},getImageInfo:function(e){if(sy)return ax.getImageInfo(e);if(py)return px.getImageInfo(e);if(hy)return lx.getImageInfo(e);if(dy)return ux.getImageInfo(e);if(uy)return Yb.getImageInfo(e);if(fy)return vx.getImageInfo(e);throw new Error("Uni API:getImageInfo暂不支持")},previewImage:function(e){if(sy)return ax.previewImage(e);if(py)return px.previewImage(e);if(hy)return lx.previewImage(e);if(dy)return ux.previewImage(e);if(uy)return Yb.previewImage(e);if(fy)return vx.previewImage(e);throw new Error("Uni API:previewImage暂不支持")},saveImage:function(e){if(sy)return ax.saveImage();if(py)return px.saveImage(e);if(hy)return lx.saveImage(e);if(dy)return ux.saveImage(e);if(uy)return Yb.saveImage(e);if(fy)return vx.saveImage(e);throw new Error("Uni API:saveImage暂不支持")}};function yx(){return yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},yx.apply(this,arguments)}const bx={chooseVideo:Gb((function(e){return wy?dd.chooseVideo(e):my.chooseVideo(e)}),Oy),createVideoContext:function(e){return wy?dd.createVideoContext(e):my.createVideoContext(e)},chooseMedia:Xb((function(e){var t=e.mediaType,n=function(){return my.chooseImage(yx({},e,{success:function(t){var n={type:"image",tempFiles:t.tempFiles.map((function(e){return yx({},e,{tempFilePath:e.path})}))};e.success(n)}}))},o=function(){return my.chooseVideo(yx({},e,{success:function(t){var n={type:"video",tempFiles:[t]};e.success(n)}}))};1===t.length&&"image"===t[0]?n():1===t.length&&"video"===t[0]?o():db({itemList:["图片","视频"]}).then((function(e){if(0===e.tapIndex)n();else{if(1!==e.tapIndex)return Promise.reject({errMsg:"用户取消选择"});o()}}))}),Oy)};function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xx.apply(this,arguments)}const Cx={chooseVideo:Gb((function(e){void 0===e&&(e={});var t=e,n=t.success,o=void 0===n?function(){}:n,a=t.fail,r=void 0===a?function(){}:a,i=t.complete,l=void 0===i?function(){}:i;Kb({count:1,accept:"video/*"}).then((function(e){var t=xx({},e.tempFiles[0],{files:e.files});o(t),l(t)})).catch((function(e){r(e),l(e)}))}),My),createVideoContext:function(){throw new Error("@uni/apis: createVideoContext不支持")},chooseMedia:Kb};const Lx={chooseVideo:Gb((function(e){return wx.chooseVideo(e)}),Ty),createVideoContext:function(e,t){return t?wx.createVideoContext(e,t):wx.createVideoContext(e)},chooseMedia:Xb((function(e){return wx.canIUse("chooseMedia")?wx.chooseMedia(e):wx.chooseImage(e)}),Ty)};const Nx={chooseVideo:Gb((function(e){return tt.chooseVideo(e)}),Py),createVideoContext:function(e,t){return t?tt.createVideoContext(e,t):tt.createVideoContext(e)},chooseMedia:Xb((function(e){return tt.chooseImage(e)}),Py)};const Vx={chooseVideo:Gb((function(e){return swan.chooseVideo(e)}),By),createVideoContext:function(e){return swan.createVideoContext(e)},chooseMedia:Xb((function(e){return swan.canIUse("chooseMedia")?swan.chooseMedia(e):swan.chooseImage(e)}),By)};const kx={chooseVideo:Gb((function(e){return ks.chooseVideo(e)}),Iy),createVideoContext:function(e,t){return t?ks.createVideoContext(e,t):ks.createVideoContext(e)},chooseMedia:Xb((function(e){return ks.canIUse("chooseMedia")?ks.chooseMedia(e):ks.chooseImage(e)}),Iy)};const Sx={chooseMedia:function(e){if(sy)return Cx.chooseMedia(e);if(py)return kx.chooseMedia(e);if(hy)return Lx.chooseMedia(e);if(dy)return Nx.chooseMedia(e);if(uy)return bx.chooseMedia(e);if(fy)return Vx.chooseMedia(e);throw new Error("@uni/apis:chooseMedia暂不支持")},chooseVideo:function(e){if(sy)return Cx.chooseVideo(e);if(py)return kx.chooseVideo(e);if(hy)return Lx.chooseVideo(e);if(dy)return Nx.chooseVideo(e);if(uy)return bx.chooseVideo(e);if(fy)return Vx.chooseVideo(e);throw new Error("@uni/apis:chooseVideo暂不支持")},createVideoContext:function(e,t){if(sy)return Cx.createVideoContext();if(py)return kx.createVideoContext(e,t);if(hy)return Lx.createVideoContext(e,t);if(dy)return Nx.createVideoContext(e,t);if(uy)return bx.createVideoContext(e);if(fy)return Vx.createVideoContext(e);throw new Error("@uni/apis:createVideoContext暂不支持")}};function Ax(e,t){return function(n){return by(e)(Ly(n,t))}}var Tx=["phoneNumber"];function Ox(){return Ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ox.apply(this,arguments)}const Px=Ax((function(e){if(wy)dd.showCallMenu(e);else{var t=e.phoneNumber,n=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,Tx);my.makePhoneCall(Ox({},n,{number:t}))}}),Oy);const Mx=Ax((function(e){var t=null==e?void 0:e.phoneNumber,n=document.createElement("a");n.href="tel:"+t,n.innerHTML="tel:"+t,n.style.display="none",document.body.appendChild(n),setTimeout((function(){n.click(),setTimeout((function(){try{document.body.removeChild(n)}catch(t){}finally{null==e||e.success()}}),0)}),0)}),My);const Bx=Ax((function(e){wx.makePhoneCall(e)}),Ty);const Ix=Ax((function(e){tt.makePhoneCall(e)}),Py);const Ex=Ax((function(e){ks.makePhoneCall(e)}),Iy);const Dx=Ax((function(e){swan.makePhoneCall(e)}),By);function zx(e){if(sy)return Mx(e);if(py)return Ex(e);if(hy)return Bx(e);if(dy)return Ix(e);if(uy)return Px(e);if(fy)return Dx(e);throw new Error("Uni API:makePhoneCall 暂不支持")}var Fx=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},jx=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function _x(e){return Fx(this,void 0,void 0,(function(){var t,n,o,a,r,i,l,s,c,u,d,f;return jx(this,(function(p){return t=e.endX,n=e.endY,o=e.longitude,a=e.latitude,r=e.endAddress,i=e.medium,l=o||t||-1,s=a||n||-1,c=document.createElement("a"),u="",d="destination=name:".concat(r||"","|latlng:").concat(s,",").concat(l,"&coord_type=wgs84"),u="bdapp://map/direction?".concat(d),cw&&(u="baidumap://map/direction?".concat(d)),"gaode"===i&&(f="dlat=".concat(s,"&dlon=").concat(l,"&dname=").concat(r,"&dev=1&t=0"),u="amapuri://route/plan/?".concat(f),cw&&(u="iosamap://path?".concat(f))),c.setAttribute("href",u),c.setAttribute("style","visibility:hidden;"),c.setAttribute("id","navgatorLink"),document.getElementById("navgatorLink")&&document.body.removeChild(document.getElementById("navgatorLink")),document.body.appendChild(c),c.click(),[2]}))}))}var Rx=3.141592653589793,Hx=6378245,Ux=.006693421622965943;function $x(e,t){if(function(e,t){return e<72.004||e>137.8347||t<.8293||t>55.8271||!1}(e,t))return{longitude:e,latitude:t};var n=function(e,t){var n=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*Rx)+20*Math.sin(2*e*Rx))/3,n+=2*(20*Math.sin(t*Rx)+40*Math.sin(t/3*Rx))/3,n+2*(160*Math.sin(t/12*Rx)+320*Math.sin(t*Rx/30))/3}(e-105,t-35),o=function(e,t){var n=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*Rx)+20*Math.sin(2*e*Rx))/3,n+=2*(20*Math.sin(e*Rx)+40*Math.sin(e/3*Rx))/3,n+2*(150*Math.sin(e/12*Rx)+300*Math.sin(e/30*Rx))/3}(e-105,t-35),a=t/180*Rx,r=Math.sin(a);r=1-Ux*r*r;var i=Math.sqrt(r);return n=180*n/(Hx*(1-Ux)/(r*i)*Rx),{longitude:2*e-(e+(o=180*o/(Hx/i*Math.cos(a)*Rx))),latitude:2*t-(t+n)}}var Zx=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},Wx=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function Yx(e){return Zx(this,void 0,void 0,(function(){return Wx(this,(function(t){switch(t.label){case 0:return pw?(console.info("jsi use jinban"),[4,(n="https://jzb.beijing.gov.cn/oss/focus-desktop/gwork/jssdk/JZB-JSSDK-1.1.0.js",new Promise((function(e,t){try{var o=document.createElement("script");o.type="text/javascript",o.src=n,document.body.appendChild(o),o.onload=function(){e()}}catch(a){t()}})))]):[3,2];case 1:return t.sent(),[2,new Promise((function(t,n){try{console.log("getDeviceInfo",window.jme.device.getDeviceInfo()),window.jme.device.getDeviceInfo()&&window.jme.location.startLocationUpdate({callBackInterval:0,callback:function(o){if(console.log("startLocationUpdate",o),o&&0===o.statusCode){var a=$x(o.longitude,o.latitude),r={accuracy:o.accuracy.toString(),latitude:a.latitude.toString(),longitude:a.longitude.toString(),horizontalAccuracy:o.accuracy.toString()};e.success&&e.success(r),t(r)}else{var i="获取定位失败,statusCode".concat(o.statusCode);e.fail&&e.fail(i),n(i)}}})}catch(o){e.fail&&e.fail(o),n(o)}}))];case 2:return[2,_b(e)]}var n}))}))}var qx=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gx=function(e){function t(){var t=e.call(this)||this;return t.device={makePhoneCall:zx,scan:sb,getSystemInfo:Qy.getInfo},t.location={getLocation:Yx,navigateTo:_x},t.media={chooseImage:gx.chooseImage,chooseVideo:Sx.chooseVideo},t.navigationBar={setNavigationBarTitle:Lb.setNavigationBarTitle},t}return qx(t,e),t.prototype.isEnvironmentEnabled=function(){return!0},t}(ow),Xx=3.141592653589793,Kx=6378245,Qx=.006693421622965943;function Jx(e,t){if(aC(e,t))return[e,t];var n=tC(e-105,t-35),o=nC(e-105,t-35),a=t/180*Xx,r=Math.sin(a);r=1-Qx*r*r;var i=Math.sqrt(r);return n=180*n/(Kx*(1-Qx)/(r*i)*Xx),[e+(o=180*o/(Kx/i*Math.cos(a)*Xx)),t+n]}function eC(e,t){if(aC(e,t))return[e,t];var n=tC(e-105,t-35),o=nC(e-105,t-35),a=t/180*Xx,r=Math.sin(a);r=1-Qx*r*r;var i=Math.sqrt(r);return n=180*n/(Kx*(1-Qx)/(r*i)*Xx),[2*e-(e+(o=180*o/(Kx/i*Math.cos(a)*Xx))),2*t-(t+n)]}function tC(e,t){var n=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*Xx)+20*Math.sin(2*e*Xx))/3,n+=2*(20*Math.sin(t*Xx)+40*Math.sin(t/3*Xx))/3,n+=2*(160*Math.sin(t/12*Xx)+320*Math.sin(t*Xx/30))/3}function nC(e,t){var n=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*Xx)+20*Math.sin(2*e*Xx))/3,n+=2*(20*Math.sin(e*Xx)+40*Math.sin(e/3*Xx))/3,n+=2*(150*Math.sin(e/12*Xx)+300*Math.sin(e/30*Xx))/3}function oC(e,t){var n,o,a,r,i,l=(n=52.35987755982988,o=e-.0065,a=t-.006,r=Math.sqrt(o*o+a*a)-2e-5*Math.sin(a*n),i=Math.atan2(a,o)-3e-6*Math.cos(o*n),[r*Math.cos(i),r*Math.sin(i)]);return eC(l[0],l[1])}function aC(e,t){return e<72.004||e>137.8347||t<.8293||t>55.8271||!1}function rC(e){return new Promise((function(t,n){if(window.jsInterface&&window.jsInterface.getLocationInfo){var o=setTimeout((function(){n(new Error("定位超时"))}),15e3);window.callbackLocation=function(a){var r=a;if("string"==typeof r&&(r=JSON.parse(r)),r)if(r.error)n(new Error(""+r.error)),clearTimeout(o);else{var i=oC(r.longitude,r.latitude);(!i||i.length<2)&&(n(new Error("定位失败")),clearTimeout(o));var l={longitude:i[0]+"",latitude:i[1]+"",address:"".concat(r.address),accuracy:"",horizontalAccuracy:""};e&&e.success&&e.success(l),t(l),clearTimeout(o)}else n(new Error("定位失败")),clearTimeout(o)},window.jsInterface&&window.jsInterface.getLocationInfo()}else n(new Error("不存在对应方法,无法调用定位"))}))}var iC=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),lC=function(e){function t(){var t=e.call(this)||this;return t.location={getLocation:rC},t}return iC(t,e),t.prototype.isEnvironmentEnabled=function(){return!0},t}(ow),sC=function(){return new Promise((function(e,t){try{var n=document.createElement("script");n.type="text/javascript",n.src="https://g.alicdn.com/dingding/dingtalk-jsapi/3.0.12/dingtalk.open.js",document.body.appendChild(n),n.onload=function(){e()}}catch(o){t()}}))};function cC(e,t){void 0===t&&(t=0);var n=parseInt(e);return isNaN(n)?t:n}var uC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},dC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function fC(e){return uC(this,void 0,void 0,(function(){return dC(this,(function(t){switch(t.label){case 0:return window.dd?[3,2]:[4,sC()];case 1:t.sent(),t.label=2;case 2:return[2,new Promise((function(t,n){window.dd.device.geolocation.get({targetAccuracy:200,coordinate:1,withReGeocode:cC(e.resultType)>0,useCache:!1,onSuccess:function(n){var o=eC(n.longitude,n.latitude),a={longitude:(null==o?void 0:o[0])||n.longitude,latitude:(null==o?void 0:o[1])||n.latitude,accuracy:n.accuracy,horizontalAccuracy:"",address:n.address,province:n.province,city:n.city,district:n.district,road:n.road,netType:n.netType,operatorType:n.operatorType,isWifiEnabled:n.isWifiEnabled,isGpsEnabled:n.isGpsEnabled,isFromMock:n.isFromMock,provider:n.provider,isMobileEnabled:n.isMobileEnabled};e.success&&e.success(a),t(a)},onFail:function(t){e.fail&&e.fail(t),n(t)}})}))]}}))}))}var pC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},hC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function mC(e){return pC(this,void 0,void 0,(function(){var t,n,o,a,r,i,l,s,c;return hC(this,(function(u){switch(u.label){case 0:return t=e.endX,n=e.endY,o=e.longitude,a=e.latitude,r=e.endAddress,i=o||t||-1,l=a||n||-1,window.dd?[3,2]:[4,sC()];case 1:u.sent(),u.label=2;case 2:return s=window.dd&&window.dd.biz.map.view,c=Jx(i,l),s&&s({latitude:c[1],longitude:c[0],title:r}),[2]}}))}))}var vC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},gC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function wC(e){var t=e.title,n=e.success,o=void 0===n?function(){}:n,a=e.complete,r=void 0===a?function(){}:a;return vC(this,void 0,void 0,(function(){var e;return gC(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),window.dd?[3,2]:[4,sC()];case 1:n.sent(),n.label=2;case 2:return window.dd.biz.navigation.setTitle({title:t}),o(),r(),[3,4];case 3:return e=n.sent(),console.error(e),[3,4];case 4:return[2]}}))}))}var yC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},bC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function xC(e){return yC(this,void 0,void 0,(function(){var t,n,o,a;return bC(this,(function(r){switch(r.label){case 0:return window.dd?[3,2]:[4,sC()];case 1:r.sent(),r.label=2;case 2:return t=e.success,n=e.fail,o=e.phoneNumber,(a=window.dd&&window.dd.biz.telephone.showCallMenu)&&a({phoneNumber:o,code:"+86",showDingCall:!0,onSuccess:t,onFail:n}),[2]}}))}))}var CC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},LC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function NC(e){return CC(this,void 0,void 0,(function(){var t,n,o,a,r,i,l;return LC(this,(function(s){switch(s.label){case 0:return window.dd?[3,2]:[4,sC()];case 1:s.sent(),s.label=2;case 2:return t=e.success,n=e.fail,o=e.scanType,a=window.dd&&window.dd.biz.util.scan,r="all",o&&(i=o.indexOf("qrCode")>-1,l=o.indexOf("barCode")>-1,i&&!l&&(r="qrCode"),!i&&l&&(r="barCode")),a&&a({type:r,onSuccess:t,onFail:n}),[2]}}))}))}var VC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},kC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function SC(e){return VC(this,void 0,void 0,(function(){var t,n,o;return kC(this,(function(a){switch(a.label){case 0:return window.dd?[3,2]:[4,sC()];case 1:a.sent(),a.label=2;case 2:return t=e.success,n=e.fail,(o=window.dd&&window.dd.device.base.getPhoneInfo)&&o({onSuccess:t,onFail:n}),[2]}}))}))}var AC=globalThis&&globalThis.__assign||function(){return AC=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},AC.apply(this,arguments)},TC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},OC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},PC=function(){return null};function MC(e){var t=e.methodName,n=e.params,o=void 0===n?{}:n,a=e.success,r=void 0===a?PC:a,i=e.fail,l=void 0===i?PC:i;return TC(this,void 0,void 0,(function(){return OC(this,(function(e){switch(e.label){case 0:return window.dd?[3,2]:[4,sC()];case 1:e.sent(),e.label=2;case 2:return[2,new Promise((function(e,n){var a=window.dd&&window.dd.device.audio[t];a||n("".concat(t," library not loaded")),a(AC(AC({},o),{onSuccess:function(t){r(t),e(t)},onFail:function(e){l(e),n(e)}}))}))]}}))}))}function BC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({methodName:"startRecord",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function IC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({methodName:"stopRecord",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({localAudioId:t.mediaId})),Promise.resolve({localAudioId:t.mediaId})}))]}))}))}function EC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({methodName:"onRecordEnd",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({localAudioId:t.mediaId})),Promise.resolve({localAudioId:t.mediaId})}))]}))}))}function DC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({params:{localAudioId:e.localAudioId},methodName:"play",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function zC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({params:{localAudioId:e.localAudioId},methodName:"pause",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function FC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({params:{localAudioId:e.localAudioId},methodName:"stop",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function jC(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({methodName:"onPlayEnd",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({localAudioId:t.mediaId})),Promise.resolve({localAudioId:t.mediaId})}))]}))}))}function _C(e){return TC(this,void 0,void 0,(function(){return OC(this,(function(t){return[2,MC({params:{mediaId:e.localAudioId},methodName:"translateVoice",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({content:t.content})),Promise.resolve({content:t.content})}))]}))}))}var RC=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),HC=function(e){function t(){var t=e.call(this)||this;return t.device={makePhoneCall:xC,scan:NC,getSystemInfo:SC},t.location={getLocation:fC,navigateTo:mC},t.navigationBar={setNavigationBarTitle:wC},t.audio={startRecord:BC,stopRecord:IC,onRecordEnd:EC,playVoice:DC,pauseVoice:zC,stopVoice:FC,onPlayEnd:jC,translateVoice:_C},t}return RC(t,e),t.prototype.isEnvironmentEnabled=function(){return lw&&window.dd},t}(ow),UC=function(){return new Promise((function(e,t){try{var n=document.createElement("script");n.type="text/javascript",n.src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js",document.body.appendChild(n),n.onload=function(){e()}}catch(o){t()}}))},$C=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},ZC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function WC(e){return $C(this,void 0,void 0,(function(){return ZC(this,(function(t){switch(t.label){case 0:return window.wx?[3,2]:[4,UC()];case 1:t.sent(),t.label=2;case 2:return[2,new Promise((function(t,n){var o=window.wx&&window.wx.getLocation;o||n("getLocationWeixin library not loaded"),o({type:"wgs84",success:function(o){if(console.log("weixinLocationAPI",o),o.longitude){var a={longitude:o.longitude,latitude:o.latitude,accuracy:o.accuracy,speed:o.speed,horizontalAccuracy:""};return e&&e.success&&e.success(a),t(a)}console.error("get wx location fail"),e&&e.fail&&e.fail("定位失败"),n("定位失败")},fail:function(t){console.error("get wx location fail",t),e&&e.fail&&e.fail(t),n("定位失败")}})}))]}}))}))}var YC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},qC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function GC(e){return YC(this,void 0,void 0,(function(){var t,n,o,a,r,i,l,s,c;return qC(this,(function(u){switch(u.label){case 0:return window.wx?[3,2]:[4,UC()];case 1:u.sent(),u.label=2;case 2:return t=e.endX,n=e.endY,o=e.longitude,a=e.latitude,r=e.endAddress,e.fail,i=o||t||-1,l=a||n||-1,s=window.wx&&window.wx.openLocation,c=Jx(i,l),s&&s({latitude:c[1],longitude:c[0],name:r,address:r}),[2]}}))}))}function XC(e){if(window.wx&&window.wx.miniProgram&&window.wx.miniProgram.navigateTo){for(var t=new URLSearchParams(window.location.search),n=0,o=Object.entries({isFromShiMinTong:"/pages/pubinspect/attachment",isFromZhiXin:"/pages/main/attachment",isFromQiJian:"/pages/attachment/index"});n<o.length;n++){var a=o[n],r=a[0],i=a[1];if(t.has(r)&&"1"===t.get(r))return void KC("".concat(i,"?fileUrl=").concat(encodeURIComponent(e.url),"&fileName=").concat(encodeURIComponent(e.name)))}!function(e){if(!e.trim())return void window.alert("附件下载链接为空");if(navigator.clipboard)navigator.clipboard.writeText(e).then((function(){window.alert("已经复制下载链接,请在浏览器中下载")})).catch((function(e){window.alert("复制链接失败"+e),console.error("复制失败:",e)}));else{var t=document.createElement("textarea");document.body.appendChild(t),t.value=e,t.select();try{document.execCommand("copy",!0),window.alert("已经复制下载链接,请在浏览器中下载")}catch(n){window.alert("复制链接失败"),console.error("复制失败:",n)}document.body.removeChild(t)}}(e.url)}else window.alert("暂只支持图片、录音、视频类型附件的预览")}function KC(e){window.wx.miniProgram.navigateTo({url:e,fail:function(){window.alert("暂只支持图片、录音、视频类型附件的预览")}})}var QC=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},JC=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function eL(e){return QC(this,void 0,void 0,(function(){var t,n,o,a,r,i;return JC(this,(function(l){switch(l.label){case 0:return window.wx?[3,2]:[4,UC()];case 1:l.sent(),l.label=2;case 2:return t=e.success,n=e.scanType,o=window.wx&&window.wx.scanQRCode,a=["qrCode","barCode"],n&&(r=n.indexOf("qrCode")>-1,i=n.indexOf("barCode")>-1,r&&!i&&(a=["qrCode"]),!r&&i&&(a=["barCode"])),o&&o({needResult:1,scanType:a,success:t}),[2]}}))}))}var tL=globalThis&&globalThis.__assign||function(){return tL=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},tL.apply(this,arguments)},nL=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},oL=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},aL=function(){return null};function rL(e){var t=e.methodName,n=e.params,o=void 0===n?{}:n,a=e.success,r=void 0===a?aL:a,i=e.fail,l=void 0===i?aL:i;return nL(this,void 0,void 0,(function(){return oL(this,(function(e){switch(e.label){case 0:return window.wx?[3,2]:[4,UC()];case 1:e.sent(),e.label=2;case 2:return[2,new Promise((function(e,n){var a=window.wx&&window.wx[t];a||n("".concat(t," library not loaded")),a(tL(tL({},o),{success:function(t){r(t),e(t)},fail:function(e){l(e),n(e)},complete:function(t){e(t)}}))}))]}}))}))}function iL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({methodName:"startRecord",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function lL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({methodName:"stopRecord",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({localAudioId:t.localId})),Promise.resolve({localAudioId:t.localId})}))]}))}))}function sL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({methodName:"onVoiceRecordEnd",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({localAudioId:t.localId})),Promise.resolve({localAudioId:t.localId})}))]}))}))}function cL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({params:{localId:e.localAudioId},methodName:"playVoice",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function uL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({params:{localId:e.localAudioId},methodName:"pauseVoice",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function dL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({params:{localId:e.localAudioId},methodName:"stopVoice",success:null==e?void 0:e.success,fail:null==e?void 0:e.fail})]}))}))}function fL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({methodName:"onVoicePlayEnd",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({localAudioId:t.localId})),Promise.resolve({localAudioId:t.localId})}))]}))}))}function pL(e){return nL(this,void 0,void 0,(function(){return oL(this,(function(t){return[2,rL({params:{localId:e.localAudioId},methodName:"translateVoice",fail:null==e?void 0:e.fail}).then((function(t){return(null==e?void 0:e.success)&&(null==e||e.success({content:t.translateResult})),Promise.resolve({content:t.translateResult})}))]}))}))}var hL=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mL=function(e){function t(){var t=e.call(this)||this;return t.device={makePhoneCall:zx,scan:eL,getSystemInfo:Qy.getInfo},t.location={getLocation:WC,navigateTo:GC},t.navigationBar={setNavigationBarTitle:Lb.setNavigationBarTitle},t.audio={startRecord:iL,stopRecord:lL,onRecordEnd:sL,playVoice:cL,pauseVoice:uL,stopVoice:dL,onPlayEnd:fL,translateVoice:pL},t.file={openDownload:XC},t}return hL(t,e),t.prototype.isEnvironmentEnabled=function(){return sw&&window.wx},t}(ow),vL=function(){return new Promise((function(e,t){try{var n=document.createElement("script");n.type="text/javascript",n.src="https://g.alicdn.com/gdt/jsapi/1.9.43/index.js",document.body.appendChild(n),n.onload=function(){e()}}catch(o){t()}}))},gL=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},wL=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function yL(e){return gL(this,void 0,void 0,(function(){return wL(this,(function(t){switch(t.label){case 0:return window.dd?[3,2]:[4,vL()];case 1:t.sent(),t.label=2;case 2:return[2,new Promise((function(t,n){window.dd.getGeolocation({targetAccuracy:200,coordinate:1,withReGeocode:cC(e.resultType)>0,useCache:!1}).then((function(n){var o=eC(n.longitude,n.latitude),a={longitude:(null==o?void 0:o[0])||n.longitude,latitude:(null==o?void 0:o[1])||n.latitude,accuracy:n.accuracy,horizontalAccuracy:"",address:n.address,province:n.province,city:n.city,district:n.district,road:n.road,netType:n.netType,operatorType:n.operatorType,isWifiEnabled:n.isWifiEnabled,isGpsEnabled:n.isGpsEnabled,isFromMock:n.isFromMock,provider:n.provider,isMobileEnabled:n.isMobileEnabled};e.success&&e.success(a),t(a)})).catch((function(t){e.fail&&e.fail(t),n(t)}))}))]}}))}))}var bL=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},xL=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function CL(e){return bL(this,void 0,void 0,(function(){var t,n,o;return xL(this,(function(a){switch(a.label){case 0:return window.dd?[3,2]:[4,vL()];case 1:a.sent(),a.label=2;case 2:return t=e.longitude,n=e.latitude,e.fail,o=Jx(t||-1,n||-1),[2,new Promise((function(t,n){window.dd.locateOnMap({latitude:o[1],longtitude:o[0]}).then((function(e){t(e)})).catch((function(t){e.fail&&e.fail(t),n(t)}))}))]}}))}))}var LL=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},NL=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};function VL(e){return LL(this,void 0,void 0,(function(){return NL(this,(function(t){switch(t.label){case 0:return window.dd?[3,2]:[4,vL()];case 1:t.sent(),t.label=2;case 2:return window.dd.setTitle({title:e.title||""}).then((function(){return Promise.resolve()})).catch((function(t){return e.fail&&e.fail(t),Promise.reject(t)})),[2]}}))}))}var kL=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),SL=function(e){function t(){var t=e.call(this)||this;return t.location={getLocation:yL,navigateTo:CL},t.navigationBar={setNavigationBarTitle:VL},t}return kL(t,e),t.prototype.isEnvironmentEnabled=function(){return hw&&window.dd},t}(ow),AL=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),TL=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(t){r(t)}}function l(e){try{s(o.throw(e))}catch(t){r(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((o=o.apply(e,t||[])).next())}))},OL=globalThis&&globalThis.__generator||function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(a=2&l[0]?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},PL=function(){return null},ML=function(e){function t(){var t=e.call(this)||this;return t.location={getLocation:function(e){return t.crossOriginPostMessage({methodName:"location.getLocation"}).then((function(t){var n=t||{},o={longitude:n.longitude,latitude:n.latitude,accuracy:n.address,horizontalAccuracy:""};return e&&e.success&&e.success(o),Promise.resolve(o)})).catch((function(t){return e&&e.fail&&e.fail(t),Promise.reject(t)}))},navigateTo:function(e){return t.crossOriginPostMessage({methodName:"location.navigateTo",params:{longitude:e.longitude,latitude:e.latitude}})}},t.navigationBar={setNavigationBarTitle:function(e){return TL(t,void 0,void 0,(function(){return OL(this,(function(t){switch(t.label){case 0:return[4,this.crossOriginPostMessage({methodName:"navigationBar.setNavigationBarTitle",params:{longitude:e.longitude,latitude:e.latitude}})];case 1:return t.sent(),[2,Promise.resolve()]}}))}))}},t}return AL(t,e),t.prototype.crossOriginPostMessage=function(e){var t=e.methodName,n=e.params,o=void 0===n?{}:n,a=e.success,r=void 0===a?PL:a,i=e.fail,l=void 0===i?PL:i,s={methodName:t};o&&Object.keys(o).length>0&&(s.params=o);var c=t.split("."),u=c.length>1?c[1]:c[0];try{window.parent.postMessage(JSON.stringify(s),"*")}catch(d){console.error("window.parent.postMessage发生异常",d)}return new Promise((function(e,n){window.addEventListener("message",(function(o){var a=o&&o.data;if("string"==typeof a)try{a=JSON.parse(a)}catch(d){console.error("字符串转换异常",d)}if(a&&a.success){var i=a[u]||{};r&&r(i),e&&e(i)}else{var s=a&&a.message?a.message:"浙政钉".concat(t,"失败");l&&l(s),n(s)}}))}))},t.prototype.isEnvironmentEnabled=function(){return!!hw},t}(ow),BL=[];function IL(){if(window.__mobile__uni__api)return window.__mobile__uni__api;for(var e=0;e<BL.length;e++){var t=BL[e];if(t.isEnvironmentEnabled())return window.__mobile__uni__api=t,window.__mobile__uni__api}try{if(fw&&window.parent&&window.parent.__mobile__uni__api)return window.parent.__mobile__uni__api}catch(o){if(hw)return window.__mobile__uni__api=new ML,window.__mobile__uni__api}var n;return Jg()?(n=new ly,console.info("jsi use egova",n)):hw?(n=new SL,console.info("jsi use zhuanyou dingding",n)):lw?(n=new HC,console.info("jsi use dingding",n)):sw&&window.wx?(n=new mL,console.info("jsi use weixin",n)):iw?(n=new lC,console.info("jsi use smt",n)):(n=new Gx,console.info("jsi use uni",n)),window.__mobile__uni__api=n,window.__mobile__uni__api}const EL=Object.freeze(Object.defineProperty({__proto__:null,JsInterface:ow,get SCREEN_ORIENTATION(){return qg},canIUse:function(e,t){void 0===t&&(t=IL());var n=e.split(".");if(1===n.length)return"function"==typeof t[e];var o=n[0],a=n.slice(1),r=t[o];if(!r)return!1;for(var i=r,l=0,s=a;l<s.length;l++){var c=s[l];if(!i||"object"!=typeof i||!(c in i))return!1;i=i[c]}return"function"==typeof i},getJSI:IL,isAndroid:uw,isDingDing:lw,isIOS:cw,isIframe:fw,isJinBan:pw,isSMT:iw,isV22:dw,isWeiXin:sw,isZhixin:rw,isZhuanYouDingDing:hw,registerJSI:function(e){BL.push(e)},unregisterJSI:function(e){var t=BL.indexOf(e);t>=0&&BL.splice(t,1)}},Symbol.toStringTag,{value:"Module"}));e.ActionSheet=_t,e.Audio=Kt,e.Avatar=ln,e.Badge=We,e.Button=mn,e.Calendar=so,e.Cascader=Ko,e.Cell=la,e.CellGroup=da,e.Checkbox=Ca,e.CheckboxGroup=Na,e.Col=Ba,e.Collapse=Fa,e.CollapseItem=Ha,e.ConfigProvider=Ua,e.DateTimePicker=_r,e.Dialog=Qr,e.Divider=Wo,e.DrawerSelect=bi,e.DropdownItem=Ti,e.DropdownMenu=Oi,e.Empty=zi,e.Field=oi,e.FloatingBubble=Hi,e.Form=Wi,e.Grid=Ki,e.GridItem=nl,e.HierarchySelect=fl,e.Icon=lt,e.Image=tn,e.ImagePreview=Nl,e.IndexAnchor=Bl,e.IndexBar=Il,e.Lazyload=Zg,e.List=jl,e.Loading=It,e.Locale=Ve,e.MediaPicker=wf,e.MediaPlayer=$s,e.MultiplePicker=kf,e.NavBar=Pf,e.NoticeBar=Ef,e.Notify=$f,e.NumberKeyboard=Jf,e.Overlay=Ct,e.Pagination=op,e.PasswordInput=lp,e.Picker=xr,e.Popover=sm,e.Popup=St,e.PullRefresh=hm,e.Radio=Lm,e.RadioGroup=Nm,e.RadioPicker=Zm,e.Rate=Gm,e.Row=Xm,e.Search=si,e.Signature=rv,e.Skeleton=uv,e.Slider=Zt,e.SpeechRecognizer=mv,e.Step=Nv,e.Stepper=Tv,e.Steps=Ov,e.Sticky=vo,e.Swipe=No,e.SwipeCell=Iv,e.SwipeItem=Do,e.Switch=Fv,e.Tab=_o,e.Tabbar=$v,e.TabbarItem=qv,e.Table=rg,e.Tabs=Ro,e.Tag=hi,e.TextEllipsis=Jv,e.TimePicker=Pr,e.Timeline=cg,e.Toast=Qn,e.Uploader=yg,e.Video=Eg,e.ZT_AUDIO_KEY=Yt,e.actionSheetProps=Ft,e.allowMultipleToast=(e=!0)=>{Rn=e},e.calendarProps=lo,e.cascaderProps=Xo,e.closeDialog=()=>{Yr&&Yr.toggle(!1)},e.closeNotify=Uf,e.closeToast=Kn,e.collapseItemProps=Ra,e.collapseProps=za,e.dateTimePickerProps=Dr,e.default=Qg,e.defaultMedia={uniqueCode:"",fileSize:0,fileName:"",originalName:"",originalSize:0,lastModified:0,deletable:!1},e.dialogProps=$r,e.dropdownItemProps=Ai,e.dropdownMenuProps=Li,e.floatingBubbleProps=ji,e.gridItemProps=tl,e.gridProps=Gi,e.imagePreviewProps=yl,e.indexAnchorProps=Ml,e.indexBarProps=Sl,e.install=Yg,e.pickerProps=mr,e.popoverProps=lm,e.radioPickerProps=$m,e.resetDialogDefaultOptions=()=>{Gr=p({},qr)},e.resetNotifyDefaultOptions=()=>{Hf={type:"danger",color:void 0,message:"",onClose:void 0,onClick:void 0,onOpened:void 0,duration:3e3,position:void 0,className:"",lockScroll:!1,background:void 0}},e.resetToastDefaultOptions=e=>{"string"==typeof e?Un.delete(e):(Hn=p({},jn),Un.clear())},e.searchProps=li,e.setDialogDefaultOptions=e=>{p(Gr,e)},e.setNotifyDefaultOptions=e=>p(Hf,e),e.setToastDefaultOptions=function(e,t){"string"==typeof e?Un.set(e,t):p(Hn,e)},e.showConfirmDialog=Kr,e.showDialog=Xr,e.showFailToast=Xn,e.showImagePreview=Ll,e.showLoadingToast=qn,e.showNotify=function(e){var n;if(h)return Rf||({instance:Rf}=Fn({setup(){const{state:e,toggle:n}=zn();return()=>t.createVNode(jf,t.mergeProps(e,{"onUpdate:show":n}),null)}})),e=p({},Hf,i(n=e)?n:{message:n}),Rf.open(e),clearTimeout(_f),e.duration>0&&(_f=window.setTimeout(Uf,e.duration)),Rf},e.showSuccessToast=Gn,e.showToast=Wn,e.signatureProps=av,e.skeletonProps=cv,e.sliderProps=$t,e.stepsProps=wv,e.swipeCellProps=Bv,e.tableProps=ag,e.tagProps=pi,e.textEllipsisProps=Qv,e.timePickerProps=Or,e.timelineProps=sg,e.uploaderProps=wg,e.version=Wg,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));