!function(){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},n(e)}function e(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function t(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==t)return;var o,i,a=[],r=!0,l=!1;try{for(t=t.call(n);!(r=(o=t.next()).done)&&(a.push(o.value),!e||a.length!==e);r=!0);}catch(c){l=!0,i=c}finally{try{r||null==t.return||t.return()}finally{if(l)throw i}}return a}(n,e)||function(n,e){if(!n)return;if("string"==typeof n)return o(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(n,e)}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,o=new Array(e);t=0;t--)if(!M(y.options[t]))return t}(e)||0)*n.itemHeight,a=function(){e!==y.index&&(y.index=e,t&&u("change",e))};o&&i!==y.offset?c=a:a(),y.offset=i},C=function(e){JSON.stringify(e)!==JSON.stringify(y.options)&&(y.options=N(e),S(n.defaultIndex))},z=function(e){return a(e)&&n.textKey in e?e[n.textKey]:e},H=function(e){return x(Math.round(-e/n.itemHeight),0,I()-1)},T=function(){o=!1,y.duration=0,c&&(c(),c=null)},V=function(e){if(!n.readonly){if(w.start(e),o){var t=function(n){var e=window.getComputedStyle(n).transform,t=e.slice(7,e.length-1).split(", ")[5];return Number(t)}(f.value);y.offset=Math.min(0,t-_()),i=y.offset}else i=y.offset;y.duration=0,r=Date.now(),l=i,c=null}},j=function(e){if(!n.readonly){w.move(e),w.isVertical()&&(o=!0,k(e,!0)),y.offset=x(i+w.deltaY.value,-I()*n.itemHeight,n.itemHeight);var t=Date.now();t-r>300&&(r=t,l=y.offset)}},O=function(){if(!n.readonly){var e=y.offset-l,t=Date.now()-r;if(t<300&&Math.abs(e)>15)!function(e,t){var o=Math.abs(e/t);e=y.offset+o/.003*(e<0?-1:1);var i=H(e);y.duration=+n.swipeDuration,S(i,!0)}(e,t);else{var i=H(y.offset);y.duration=200,S(i,!0),setTimeout((function(){o=!1}),0)}}},A=function(){var t={height:"".concat(n.itemHeight,"px")};return y.options.map((function(i,a){var r=z(i),l=M(i),u={role:"button",style:t,tabindex:l?-1:0,class:B("item",{disabled:l,selected:a===y.index}),onClick:function(){return function(e){o||n.readonly||(c=null,y.duration=200,S(e,!0))}(a)}},f=e({class:"van-ellipsis"},n.allowHtml?"innerHTML":"textContent",r);return h("li",u,[s.option?s.option(i):h("div",f,null)])}))};return S(y.index),m(D),g({state:y,setIndex:S,getValue:function(){return y.options[y.index]},setValue:function(n){for(var e=y.options,t=0;t