!function(){function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,t,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function i(e,o,u,a){var i=o&&o.prototype instanceof l?o:l,f=Object.create(i.prototype);return r(f,"_invoke",function(e,r,o){var u,a,i,l=0,f=o||[],s=!1,m={p:0,n:0,v:n,a:p,f:p.bind(n,4),d:function(e,r){return u=e,a=0,i=n,m.n=r,c}};function p(e,r){for(a=e,i=r,t=0;!s&&l&&!o&&t<f.length;t++){var o,u=f[t],p=m.p,v=u[2];e>3?(o=v===r)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=n):u[0]<=p&&((o=e<2&&p<u[1])?(a=0,m.v=r,m.n=u[1]):p<v&&(o=e<3||u[0]>r||r>v)&&(u[4]=e,u[5]=r,m.n=v,a=0))}if(o||e>1)return c;throw s=!0,r}return function(o,f,v){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&p(f,v),a=f,i=v;(t=a<2?n:i)||!s;){u||(a?a<3?(a>1&&(m.n=-1),p(a,i)):m.n=i:m.v=i);try{if(l=2,u){if(a||(o="next"),t=u[o]){if(!(t=t.call(u,i)))throw TypeError("iterator result is not an object");if(!t.done)return t;i=t.value,a<2&&(a=0)}else 1===a&&(t=u.return)&&t.call(u),a<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=n}else if((t=(s=m.n<0)?i:e.call(r,m))!==c)break}catch(t){u=n,a=1,i=t}finally{l=1}}return{value:t,done:s}}}(e,u,a),!0),f}var c={};function l(){}function f(){}function s(){}t=Object.getPrototypeOf;var m=[][u]?t(t([][u]())):(r(t={},u,function(){return this}),t),p=s.prototype=l.prototype=Object.create(m);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,r(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return f.prototype=s,r(p,"constructor",s),r(s,"constructor",f),f.displayName="GeneratorFunction",r(s,a,"GeneratorFunction"),r(p),r(p,a,"Generator"),r(p,u,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(e=function(){return{w:i,m:v}})()}function r(e,n,t,o){var u=Object.defineProperty;try{u({},"",{})}catch(e){u=0}r=function(e,n,t,o){function a(n,t){r(e,n,function(e){return this._invoke(n,t,e)})}n?u?u(e,n,{value:t,enumerable:!o,configurable:!o,writable:!o}):e[n]=t:(a("next",0),a("throw",1),a("return",2))},r(e,n,t,o)}function n(e,r,n,t,o,u,a){try{var i=e[u](a),c=i.value}catch(e){return void n(e)}i.done?r(c):Promise.resolve(c).then(t,o)}System.register(["./base-lib-legacy.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159"],function(r,t){"use strict";var o,u,a,i,c,l,f,s,m,p,v,d,y,b,g;return{setters:[function(e){o=e.c,u=e.r,a=e.o,i=e.n,c=e.v,l=e.x,f=e.e,s=e.B,m=e.y,p=e.T,v=e.ab,d=e.a9},function(e){y=e.gE,b=e.I,g=e.b},null],execute:function(){var t={class:"w-[38rem] px-[5rem] py-[3rem]"};r("default",o({__name:"index",emits:["resize"],setup:function(r,o){var h=o.expose,_=o.emit,w=g(),j=_,O=u(null),x=a({username1:"",username2:""}),T=a({username1:[{required:!0,message:"请输入用户名",trigger:"blur"},{min:4,message:"用户名长度必须大于3位",trigger:"blur"}],username2:[{validator:function(e,r,n){""===r?n(new Error("请再次输入用户名")):r!==x.username1?n(new Error("两次输入的用户名不一致")):n()},trigger:"blur"}]});return i(function(){j("resize")}),h({onConfirm:function(){var r;null===(r=O.value)||void 0===r||r.validate(function(){var r,t=(r=e().m(function r(n){var t;return e().w(function(e){for(;;)switch(e.n){case 0:if(n){e.n=1;break}return e.a(2);case 1:return e.n=2,y(x);case 2:t=e.v,w.request(t),t.status&&b("/login?dologin=True");case 3:return e.a(2)}},r)}),function(){var e=this,t=arguments;return new Promise(function(o,u){var a=r.apply(e,t);function i(e){n(a,o,u,i,c,"next",e)}function c(e){n(a,o,u,i,c,"throw",e)}i(void 0)})});return function(e){return t.apply(this,arguments)}}())}}),function(e,r){var n=p,o=v,u=d;return c(),l("div",t,[f(u,{ref_key:"formRef",ref:O,size:"small","label-width":"4.6rem",autocomplete:"off",model:m(x),rules:m(T)},{default:s(function(){return[f(o,{label:"用户名",prop:"username1"},{default:s(function(){return[f(n,{modelValue:m(x).username1,"onUpdate:modelValue":r[0]||(r[0]=function(e){return m(x).username1=e})},null,8,["modelValue"])]}),_:1}),f(o,{class:"!mb-0",label:"重复",prop:"username2"},{default:s(function(){return[f(n,{modelValue:m(x).username2,"onUpdate:modelValue":r[1]||(r[1]=function(e){return m(x).username2=e})},null,8,["modelValue"])]}),_:1})]}),_:1},8,["model","rules"])])}}}))}}})}();
