fjuwebtoolv2 0.0.1

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.
@@ -0,0 +1,26 @@
1
+ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["fjuwebtoolv2"]=e(require("vue")):t["fjuwebtoolv2"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s="fb15")}({"00ee":function(t,e,i){"use strict";var n=i("b622"),r=n("toStringTag"),s={};s[r]="z",t.exports="[object z]"===String(s)},"0366":function(t,e,i){"use strict";var n=i("4625"),r=i("59ed"),s=i("40d5"),o=n(n.bind);t.exports=function(t,e){return r(t),void 0===e?t:s?o(t,e):function(){return t.apply(e,arguments)}}},"04f8":function(t,e,i){"use strict";var n=i("1212"),r=i("d039"),s=i("cfe9"),o=s.String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"0643":function(t,e,i){"use strict";i("e9f5")},"06cf":function(t,e,i){"use strict";var n=i("83ab"),r=i("c65b"),s=i("d1e7"),o=i("5c6c"),a=i("fc6a"),l=i("a04b"),c=i("1a2d"),u=i("0cfb"),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=a(t),e=l(e),u)try{return h(t,e)}catch(i){}if(c(t,e))return o(!r(s.f,t,e),t[e])}},"07fa":function(t,e,i){"use strict";var n=i("50c4");t.exports=function(t){return n(t.length)}},"0897":function(t,e,i){"use strict";i("bf2f")},"0b25":function(t,e,i){"use strict";var n=i("5926"),r=i("50c4"),s=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=r(e);if(e!==i)throw new s("Wrong length or index");return i}},"0cfb":function(t,e,i){"use strict";var n=i("83ab"),r=i("d039"),s=i("cc12");t.exports=!n&&!r((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,i){"use strict";var n=i("e330"),r=Error,s=n("".replace),o=function(t){return String(new r(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(o);t.exports=function(t,e){if(l&&"string"==typeof t&&!r.prepareStackTrace)while(e--)t=s(t,a,"");return t}},"0d51":function(t,e,i){"use strict";var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},1212:function(t,e,i){"use strict";var n,r,s=i("cfe9"),o=i("b5db"),a=s.process,l=s.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(n=u.split("."),r=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&o&&(n=o.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/),n&&(r=+n[1]))),t.exports=r},"13d2":function(t,e,i){"use strict";var n=i("e330"),r=i("d039"),s=i("1626"),o=i("1a2d"),a=i("83ab"),l=i("5e77").CONFIGURABLE,c=i("8925"),u=i("69f3"),h=u.enforce,d=u.get,p=String,f=Object.defineProperty,m=n("".slice),g=n("".replace),v=n([].join),b=a&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),_=String(String).split("String"),y=t.exports=function(t,e,i){"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!o(t,"name")||l&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e),b&&i&&o(i,"arity")&&t.length!==i.arity&&f(t,"length",{value:i.arity});try{i&&o(i,"constructor")&&i.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var n=h(t);return o(n,"source")||(n.source=v(_,"string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return s(this)&&d(this).source||c(this)}),"toString")},"13d5":function(t,e,i){"use strict";var n=i("23e7"),r=i("d58f").left,s=i("a640"),o=i("1212"),a=i("9adc"),l=!a&&o>79&&o<83,c=l||!s("reduce");n({target:"Array",proto:!0,forced:c},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},"14d9":function(t,e,i){"use strict";var n=i("23e7"),r=i("7b0b"),s=i("07fa"),o=i("3a34"),a=i("3511"),l=i("d039"),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},h=c||!u();n({target:"Array",proto:!0,arity:1,forced:h},{push:function(t){var e=r(this),i=s(e),n=arguments.length;a(i+n);for(var l=0;l<n;l++)e[i]=arguments[l],i++;return o(e,i),i}})},1626:function(t,e,i){"use strict";var n="object"==typeof document&&document.all;t.exports="undefined"==typeof n&&void 0!==n?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}},1787:function(t,e,i){"use strict";var n=i("861d");t.exports=function(t){return n(t)||null===t}},"182d":function(t,e,i){"use strict";var n=i("f8cd"),r=RangeError;t.exports=function(t,e){var i=n(t);if(i%e)throw new r("Wrong offset");return i}},"19aa":function(t,e,i){"use strict";var n=i("3a9b"),r=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new r("Incorrect invocation")}},"19bc":function(t,e,i){},"1a2d":function(t,e,i){"use strict";var n=i("e330"),r=i("7b0b"),s=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return s(r(t),e)}},"1a3f":function(t,e,i){"use strict";i("19bc")},"1be4":function(t,e,i){"use strict";var n=i("d066");t.exports=n("document","documentElement")},"1d02":function(t,e,i){"use strict";var n=i("ebb5"),r=i("a258").findLastIndex,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("findLastIndex",(function(t){return r(s(this),t,arguments.length>1?arguments[1]:void 0)}))},"1d2b":function(t,e,i){"use strict";function n(t,e){return function(){return t.apply(e,arguments)}}i.d(e,"a",(function(){return n}))},"1d80":function(t,e,i){"use strict";var n=i("7234"),r=TypeError;t.exports=function(t){if(n(t))throw new r("Can't call method on "+t);return t}},"1e5a":function(t,e,i){"use strict";var n=i("23e7"),r=i("9961"),s=i("dad2");n({target:"Set",proto:!0,real:!0,forced:!s("symmetricDifference")},{symmetricDifference:r})},"1e70":function(t,e,i){"use strict";var n=i("23e7"),r=i("a5f7"),s=i("dad2");n({target:"Set",proto:!0,real:!0,forced:!s("difference")},{difference:r})},"1fb5":function(t,e,i){"use strict";e.byteLength=u,e.toByteArray=d,e.fromByteArray=m;for(var n=[],r=[],s="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=o.length;a<l;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");-1===i&&(i=e);var n=i===e?0:4-i%4;return[i,n]}function u(t){var e=c(t),i=e[0],n=e[1];return 3*(i+n)/4-n}function h(t,e,i){return 3*(e+i)/4-i}function d(t){var e,i,n=c(t),o=n[0],a=n[1],l=new s(h(t,o,a)),u=0,d=a>0?o-4:o;for(i=0;i<d;i+=4)e=r[t.charCodeAt(i)]<<18|r[t.charCodeAt(i+1)]<<12|r[t.charCodeAt(i+2)]<<6|r[t.charCodeAt(i+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===a&&(e=r[t.charCodeAt(i)]<<2|r[t.charCodeAt(i+1)]>>4,l[u++]=255&e),1===a&&(e=r[t.charCodeAt(i)]<<10|r[t.charCodeAt(i+1)]<<4|r[t.charCodeAt(i+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function p(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function f(t,e,i){for(var n,r=[],s=e;s<i;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),r.push(p(n));return r.join("")}function m(t){for(var e,i=t.length,r=i%3,s=[],o=16383,a=0,l=i-r;a<l;a+=o)s.push(f(t,a,a+o>l?l:a+o));return 1===r?(e=t[i-1],s.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],s.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2005:function(t,e,i){"use strict";var n=i("75bd"),r=TypeError;t.exports=function(t){if(n(t))throw new r("ArrayBuffer is detached");return t}},"222b":function(t,e,i){"use strict";i("43ce")},2266:function(t,e,i){"use strict";var n=i("0366"),r=i("c65b"),s=i("825a"),o=i("0d51"),a=i("e95a"),l=i("07fa"),c=i("3a9b"),u=i("9a1f"),h=i("35a1"),d=i("2a62"),p=TypeError,f=function(t,e){this.stopped=t,this.result=e},m=f.prototype;t.exports=function(t,e,i){var g,v,b,_,y,w,S,x=i&&i.that,C=!(!i||!i.AS_ENTRIES),k=!(!i||!i.IS_RECORD),T=!(!i||!i.IS_ITERATOR),q=!(!i||!i.INTERRUPTED),E=n(e,x),M=function(t){return g&&d(g,"normal",t),new f(!0,t)},I=function(t){return C?(s(t),q?E(t[0],t[1],M):E(t[0],t[1])):q?E(t,M):E(t)};if(k)g=t.iterator;else if(T)g=t;else{if(v=h(t),!v)throw new p(o(t)+" is not iterable");if(a(v)){for(b=0,_=l(t);_>b;b++)if(y=I(t[b]),y&&c(m,y))return y;return new f(!1)}g=u(t,v)}w=k?t.next:g.next;while(!(S=r(w,g)).done){try{y=I(S.value)}catch(A){d(g,"throw",A)}if("object"==typeof y&&y&&c(m,y))return y}return new f(!1)}},2382:function(t,e,i){"use strict";i("910d")},"23cb":function(t,e,i){"use strict";var n=i("5926"),r=Math.max,s=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):s(i,e)}},"23e7":function(t,e,i){"use strict";var n=i("cfe9"),r=i("06cf").f,s=i("9112"),o=i("cb2d"),a=i("6374"),l=i("e893"),c=i("94ca");t.exports=function(t,e){var i,u,h,d,p,f,m=t.target,g=t.global,v=t.stat;if(u=g?n:v?n[m]||a(m,{}):n[m]&&n[m].prototype,u)for(h in e){if(p=e[h],t.dontCallGetSet?(f=r(u,h),d=f&&f.value):d=u[h],i=c(g?h:m+(v?".":"#")+h,t.forced),!i&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(t.sham||d&&d.sham)&&s(p,"sham",!0),o(u,h,p,t)}}},2410:function(t,e,i){"use strict";i("e216")},"241c":function(t,e,i){"use strict";var n=i("ca84"),r=i("7839"),s=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},"249d":function(t,e,i){"use strict";var n=i("23e7"),r=i("41f6");r&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return r(this,arguments.length?arguments[0]:void 0,!0)}})},"271a":function(t,e,i){"use strict";var n=i("cb2d"),r=i("e330"),s=i("577e"),o=i("d6d6"),a=URLSearchParams,l=a.prototype,c=r(l.getAll),u=r(l.has),h=new a("a=1");!h.has("a",2)&&h.has("a",void 0)||n(l,"has",(function(t){var e=arguments.length,i=e<2?void 0:arguments[1];if(e&&void 0===i)return u(this,t);var n=c(this,t);o(e,1);var r=s(i),a=0;while(a<n.length)if(n[a++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},2834:function(t,e,i){"use strict";var n=i("ebb5"),r=i("e330"),s=i("59ed"),o=i("dfb9"),a=n.aTypedArray,l=n.getTypedArrayConstructor,c=n.exportTypedArrayMethod,u=r(n.TypedArrayPrototype.sort);c("toSorted",(function(t){void 0!==t&&s(t);var e=a(this),i=o(l(e),e);return u(i,t)}))},"292e":function(t,e,i){"use strict";i("d673")},"2a07":function(t,e,i){"use strict";var n=i("cfe9"),r=i("9adc");t.exports=function(t){if(r){try{return n.process.getBuiltinModule(t)}catch(e){}try{return Function('return require("'+t+'")')()}catch(e){}}}},"2a62":function(t,e,i){"use strict";var n=i("c65b"),r=i("825a"),s=i("dc4a");t.exports=function(t,e,i){var o,a;r(t);try{if(o=s(t,"return"),!o){if("throw"===e)throw i;return i}o=n(o,t)}catch(l){a=!0,o=l}if("throw"===e)throw i;if(a)throw o;return r(o),i}},"2abd":function(t,e,i){"use strict";i("7779")},"2ba4":function(t,e,i){"use strict";var n=i("40d5"),r=Function.prototype,s=r.apply,o=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(s):function(){return o.apply(s,arguments)})},"2c66":function(t,e,i){"use strict";var n=i("83ab"),r=i("edd0"),s=i("75bd"),o=ArrayBuffer.prototype;n&&!("detached"in o)&&r(o,"detached",{configurable:!0,get:function(){return s(this)}})},"2ef0":function(t,e,i){(function(t,n){var r;
2
+ /**
3
+ * @license
4
+ * Lodash <https://lodash.com/>
5
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
6
+ * Released under MIT license <https://lodash.com/license>
7
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
8
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
9
+ */(function(){var s,o="4.17.21",a=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",u="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",f=1,m=2,g=4,v=1,b=2,_=1,y=2,w=4,S=8,x=16,C=32,k=64,T=128,q=256,E=512,M=30,I="...",A=800,N=16,$=1,D=2,R=3,P=1/0,O=9007199254740991,L=17976931348623157e292,B=NaN,j=4294967295,z=j-1,F=j>>>1,V=[["ary",T],["bind",_],["bindKey",y],["curry",S],["curryRight",x],["flip",E],["partial",C],["partialRight",k],["rearg",q]],H="[object Arguments]",U="[object Array]",Q="[object AsyncFunction]",W="[object Boolean]",Y="[object Date]",K="[object DOMException]",X="[object Error]",G="[object Function]",Z="[object GeneratorFunction]",J="[object Map]",tt="[object Number]",et="[object Null]",it="[object Object]",nt="[object Promise]",rt="[object Proxy]",st="[object RegExp]",ot="[object Set]",at="[object String]",lt="[object Symbol]",ct="[object Undefined]",ut="[object WeakMap]",ht="[object WeakSet]",dt="[object ArrayBuffer]",pt="[object DataView]",ft="[object Float32Array]",mt="[object Float64Array]",gt="[object Int8Array]",vt="[object Int16Array]",bt="[object Int32Array]",_t="[object Uint8Array]",yt="[object Uint8ClampedArray]",wt="[object Uint16Array]",St="[object Uint32Array]",xt=/\b__p \+= '';/g,Ct=/\b(__p \+=) '' \+/g,kt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tt=/&(?:amp|lt|gt|quot|#39);/g,qt=/[&<>"']/g,Et=RegExp(Tt.source),Mt=RegExp(qt.source),It=/<%-([\s\S]+?)%>/g,At=/<%([\s\S]+?)%>/g,Nt=/<%=([\s\S]+?)%>/g,$t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dt=/^\w*$/,Rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pt=/[\\^$.*+?()[\]{}|]/g,Ot=RegExp(Pt.source),Lt=/^\s+/,Bt=/\s/,jt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ft=/,? & /,Vt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ht=/[()=,{}\[\]\/\s]/,Ut=/\\(\\)?/g,Qt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wt=/\w*$/,Yt=/^[-+]0x[0-9a-f]+$/i,Kt=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,Gt=/^0o[0-7]+$/i,Zt=/^(?:0|[1-9]\d*)$/,Jt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,te=/($^)/,ee=/['\n\r\u2028\u2029\\]/g,ie="\\ud800-\\udfff",ne="\\u0300-\\u036f",re="\\ufe20-\\ufe2f",se="\\u20d0-\\u20ff",oe=ne+re+se,ae="\\u2700-\\u27bf",le="a-z\\xdf-\\xf6\\xf8-\\xff",ce="\\xac\\xb1\\xd7\\xf7",ue="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",he="\\u2000-\\u206f",de=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="A-Z\\xc0-\\xd6\\xd8-\\xde",fe="\\ufe0e\\ufe0f",me=ce+ue+he+de,ge="['’]",ve="["+ie+"]",be="["+me+"]",_e="["+oe+"]",ye="\\d+",we="["+ae+"]",Se="["+le+"]",xe="[^"+ie+me+ye+ae+le+pe+"]",Ce="\\ud83c[\\udffb-\\udfff]",ke="(?:"+_e+"|"+Ce+")",Te="[^"+ie+"]",qe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Me="["+pe+"]",Ie="\\u200d",Ae="(?:"+Se+"|"+xe+")",Ne="(?:"+Me+"|"+xe+")",$e="(?:"+ge+"(?:d|ll|m|re|s|t|ve))?",De="(?:"+ge+"(?:D|LL|M|RE|S|T|VE))?",Re=ke+"?",Pe="["+fe+"]?",Oe="(?:"+Ie+"(?:"+[Te,qe,Ee].join("|")+")"+Pe+Re+")*",Le="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Be="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",je=Pe+Re+Oe,ze="(?:"+[we,qe,Ee].join("|")+")"+je,Fe="(?:"+[Te+_e+"?",_e,qe,Ee,ve].join("|")+")",Ve=RegExp(ge,"g"),He=RegExp(_e,"g"),Ue=RegExp(Ce+"(?="+Ce+")|"+Fe+je,"g"),Qe=RegExp([Me+"?"+Se+"+"+$e+"(?="+[be,Me,"$"].join("|")+")",Ne+"+"+De+"(?="+[be,Me+Ae,"$"].join("|")+")",Me+"?"+Ae+"+"+$e,Me+"+"+De,Be,Le,ye,ze].join("|"),"g"),We=RegExp("["+Ie+ie+oe+fe+"]"),Ye=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ke=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xe=-1,Ge={};Ge[ft]=Ge[mt]=Ge[gt]=Ge[vt]=Ge[bt]=Ge[_t]=Ge[yt]=Ge[wt]=Ge[St]=!0,Ge[H]=Ge[U]=Ge[dt]=Ge[W]=Ge[pt]=Ge[Y]=Ge[X]=Ge[G]=Ge[J]=Ge[tt]=Ge[it]=Ge[st]=Ge[ot]=Ge[at]=Ge[ut]=!1;var Ze={};Ze[H]=Ze[U]=Ze[dt]=Ze[pt]=Ze[W]=Ze[Y]=Ze[ft]=Ze[mt]=Ze[gt]=Ze[vt]=Ze[bt]=Ze[J]=Ze[tt]=Ze[it]=Ze[st]=Ze[ot]=Ze[at]=Ze[lt]=Ze[_t]=Ze[yt]=Ze[wt]=Ze[St]=!0,Ze[X]=Ze[G]=Ze[ut]=!1;var Je={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},ti={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ei={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ii={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ni=parseFloat,ri=parseInt,si="object"==typeof t&&t&&t.Object===Object&&t,oi="object"==typeof self&&self&&self.Object===Object&&self,ai=si||oi||Function("return this")(),li=e&&!e.nodeType&&e,ci=li&&"object"==typeof n&&n&&!n.nodeType&&n,ui=ci&&ci.exports===li,hi=ui&&si.process,di=function(){try{var t=ci&&ci.require&&ci.require("util").types;return t||hi&&hi.binding&&hi.binding("util")}catch(e){}}(),pi=di&&di.isArrayBuffer,fi=di&&di.isDate,mi=di&&di.isMap,gi=di&&di.isRegExp,vi=di&&di.isSet,bi=di&&di.isTypedArray;function _i(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}function yi(t,e,i,n){var r=-1,s=null==t?0:t.length;while(++r<s){var o=t[r];e(n,o,i(o),t)}return n}function wi(t,e){var i=-1,n=null==t?0:t.length;while(++i<n)if(!1===e(t[i],i,t))break;return t}function Si(t,e){var i=null==t?0:t.length;while(i--)if(!1===e(t[i],i,t))break;return t}function xi(t,e){var i=-1,n=null==t?0:t.length;while(++i<n)if(!e(t[i],i,t))return!1;return!0}function Ci(t,e){var i=-1,n=null==t?0:t.length,r=0,s=[];while(++i<n){var o=t[i];e(o,i,t)&&(s[r++]=o)}return s}function ki(t,e){var i=null==t?0:t.length;return!!i&&Oi(t,e,0)>-1}function Ti(t,e,i){var n=-1,r=null==t?0:t.length;while(++n<r)if(i(e,t[n]))return!0;return!1}function qi(t,e){var i=-1,n=null==t?0:t.length,r=Array(n);while(++i<n)r[i]=e(t[i],i,t);return r}function Ei(t,e){var i=-1,n=e.length,r=t.length;while(++i<n)t[r+i]=e[i];return t}function Mi(t,e,i,n){var r=-1,s=null==t?0:t.length;n&&s&&(i=t[++r]);while(++r<s)i=e(i,t[r],r,t);return i}function Ii(t,e,i,n){var r=null==t?0:t.length;n&&r&&(i=t[--r]);while(r--)i=e(i,t[r],r,t);return i}function Ai(t,e){var i=-1,n=null==t?0:t.length;while(++i<n)if(e(t[i],i,t))return!0;return!1}var Ni=zi("length");function $i(t){return t.split("")}function Di(t){return t.match(Vt)||[]}function Ri(t,e,i){var n;return i(t,(function(t,i,r){if(e(t,i,r))return n=i,!1})),n}function Pi(t,e,i,n){var r=t.length,s=i+(n?1:-1);while(n?s--:++s<r)if(e(t[s],s,t))return s;return-1}function Oi(t,e,i){return e===e?fn(t,e,i):Pi(t,Bi,i)}function Li(t,e,i,n){var r=i-1,s=t.length;while(++r<s)if(n(t[r],e))return r;return-1}function Bi(t){return t!==t}function ji(t,e){var i=null==t?0:t.length;return i?Ui(t,e)/i:B}function zi(t){return function(e){return null==e?s:e[t]}}function Fi(t){return function(e){return null==t?s:t[e]}}function Vi(t,e,i,n,r){return r(t,(function(t,r,s){i=n?(n=!1,t):e(i,t,r,s)})),i}function Hi(t,e){var i=t.length;t.sort(e);while(i--)t[i]=t[i].value;return t}function Ui(t,e){var i,n=-1,r=t.length;while(++n<r){var o=e(t[n]);o!==s&&(i=i===s?o:i+o)}return i}function Qi(t,e){var i=-1,n=Array(t);while(++i<t)n[i]=e(i);return n}function Wi(t,e){return qi(e,(function(e){return[e,t[e]]}))}function Yi(t){return t?t.slice(0,bn(t)+1).replace(Lt,""):t}function Ki(t){return function(e){return t(e)}}function Xi(t,e){return qi(e,(function(e){return t[e]}))}function Gi(t,e){return t.has(e)}function Zi(t,e){var i=-1,n=t.length;while(++i<n&&Oi(e,t[i],0)>-1);return i}function Ji(t,e){var i=t.length;while(i--&&Oi(e,t[i],0)>-1);return i}function tn(t,e){var i=t.length,n=0;while(i--)t[i]===e&&++n;return n}var en=Fi(Je),nn=Fi(ti);function rn(t){return"\\"+ii[t]}function sn(t,e){return null==t?s:t[e]}function on(t){return We.test(t)}function an(t){return Ye.test(t)}function ln(t){var e,i=[];while(!(e=t.next()).done)i.push(e.value);return i}function cn(t){var e=-1,i=Array(t.size);return t.forEach((function(t,n){i[++e]=[n,t]})),i}function un(t,e){return function(i){return t(e(i))}}function hn(t,e){var i=-1,n=t.length,r=0,s=[];while(++i<n){var o=t[i];o!==e&&o!==p||(t[i]=p,s[r++]=i)}return s}function dn(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=t})),i}function pn(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=[t,t]})),i}function fn(t,e,i){var n=i-1,r=t.length;while(++n<r)if(t[n]===e)return n;return-1}function mn(t,e,i){var n=i+1;while(n--)if(t[n]===e)return n;return n}function gn(t){return on(t)?yn(t):Ni(t)}function vn(t){return on(t)?wn(t):$i(t)}function bn(t){var e=t.length;while(e--&&Bt.test(t.charAt(e)));return e}var _n=Fi(ei);function yn(t){var e=Ue.lastIndex=0;while(Ue.test(t))++e;return e}function wn(t){return t.match(Ue)||[]}function Sn(t){return t.match(Qe)||[]}var xn=function t(e){e=null==e?ai:Cn.defaults(ai.Object(),e,Cn.pick(ai,Ke));var i=e.Array,n=e.Date,r=e.Error,Bt=e.Function,Vt=e.Math,ie=e.Object,ne=e.RegExp,re=e.String,se=e.TypeError,oe=i.prototype,ae=Bt.prototype,le=ie.prototype,ce=e["__core-js_shared__"],ue=ae.toString,he=le.hasOwnProperty,de=0,pe=function(){var t=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),fe=le.toString,me=ue.call(ie),ge=ai._,ve=ne("^"+ue.call(he).replace(Pt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),be=ui?e.Buffer:s,_e=e.Symbol,ye=e.Uint8Array,we=be?be.allocUnsafe:s,Se=un(ie.getPrototypeOf,ie),xe=ie.create,Ce=le.propertyIsEnumerable,ke=oe.splice,Te=_e?_e.isConcatSpreadable:s,qe=_e?_e.iterator:s,Ee=_e?_e.toStringTag:s,Me=function(){try{var t=Wo(ie,"defineProperty");return t({},"",{}),t}catch(e){}}(),Ie=e.clearTimeout!==ai.clearTimeout&&e.clearTimeout,Ae=n&&n.now!==ai.Date.now&&n.now,Ne=e.setTimeout!==ai.setTimeout&&e.setTimeout,$e=Vt.ceil,De=Vt.floor,Re=ie.getOwnPropertySymbols,Pe=be?be.isBuffer:s,Oe=e.isFinite,Le=oe.join,Be=un(ie.keys,ie),je=Vt.max,ze=Vt.min,Fe=n.now,Ue=e.parseInt,Qe=Vt.random,We=oe.reverse,Ye=Wo(e,"DataView"),Je=Wo(e,"Map"),ti=Wo(e,"Promise"),ei=Wo(e,"Set"),ii=Wo(e,"WeakMap"),si=Wo(ie,"create"),oi=ii&&new ii,li={},ci=Na(Ye),hi=Na(Je),di=Na(ti),Ni=Na(ei),$i=Na(ii),Fi=_e?_e.prototype:s,fn=Fi?Fi.valueOf:s,yn=Fi?Fi.toString:s;function wn(t){if(ku(t)&&!lu(t)&&!(t instanceof qn)){if(t instanceof Tn)return t;if(he.call(t,"__wrapped__"))return Da(t)}return new Tn(t)}var xn=function(){function t(){}return function(e){if(!Cu(e))return{};if(xe)return xe(e);t.prototype=e;var i=new t;return t.prototype=s,i}}();function kn(){}function Tn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=s}function qn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=j,this.__views__=[]}function En(){var t=new qn(this.__wrapped__);return t.__actions__=no(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=no(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=no(this.__views__),t}function Mn(){if(this.__filtered__){var t=new qn(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function In(){var t=this.__wrapped__.value(),e=this.__dir__,i=lu(t),n=e<0,r=i?t.length:0,s=Zo(0,r,this.__views__),o=s.start,a=s.end,l=a-o,c=n?a:o-1,u=this.__iteratees__,h=u.length,d=0,p=ze(l,this.__takeCount__);if(!i||!n&&r==l&&p==l)return Ls(t,this.__actions__);var f=[];t:while(l--&&d<p){c+=e;var m=-1,g=t[c];while(++m<h){var v=u[m],b=v.iteratee,_=v.type,y=b(g);if(_==D)g=y;else if(!y){if(_==$)continue t;break t}}f[d++]=g}return f}function An(t){var e=-1,i=null==t?0:t.length;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}function Nn(){this.__data__=si?si(null):{},this.size=0}function $n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Dn(t){var e=this.__data__;if(si){var i=e[t];return i===h?s:i}return he.call(e,t)?e[t]:s}function Rn(t){var e=this.__data__;return si?e[t]!==s:he.call(e,t)}function Pn(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=si&&e===s?h:e,this}function On(t){var e=-1,i=null==t?0:t.length;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}function Ln(){this.__data__=[],this.size=0}function Bn(t){var e=this.__data__,i=ur(e,t);if(i<0)return!1;var n=e.length-1;return i==n?e.pop():ke.call(e,i,1),--this.size,!0}function jn(t){var e=this.__data__,i=ur(e,t);return i<0?s:e[i][1]}function zn(t){return ur(this.__data__,t)>-1}function Fn(t,e){var i=this.__data__,n=ur(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this}function Vn(t){var e=-1,i=null==t?0:t.length;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}function Hn(){this.size=0,this.__data__={hash:new An,map:new(Je||On),string:new An}}function Un(t){var e=Uo(this,t)["delete"](t);return this.size-=e?1:0,e}function Qn(t){return Uo(this,t).get(t)}function Wn(t){return Uo(this,t).has(t)}function Yn(t,e){var i=Uo(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this}function Kn(t){var e=-1,i=null==t?0:t.length;this.__data__=new Vn;while(++e<i)this.add(t[e])}function Xn(t){return this.__data__.set(t,h),this}function Gn(t){return this.__data__.has(t)}function Zn(t){var e=this.__data__=new On(t);this.size=e.size}function Jn(){this.__data__=new On,this.size=0}function tr(t){var e=this.__data__,i=e["delete"](t);return this.size=e.size,i}function er(t){return this.__data__.get(t)}function ir(t){return this.__data__.has(t)}function nr(t,e){var i=this.__data__;if(i instanceof On){var n=i.__data__;if(!Je||n.length<a-1)return n.push([t,e]),this.size=++i.size,this;i=this.__data__=new Vn(n)}return i.set(t,e),this.size=i.size,this}function rr(t,e){var i=lu(t),n=!i&&au(t),r=!i&&!n&&pu(t),s=!i&&!n&&!r&&ju(t),o=i||n||r||s,a=o?Qi(t.length,re):[],l=a.length;for(var c in t)!e&&!he.call(t,c)||o&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||oa(c,l))||a.push(c);return a}function sr(t){var e=t.length;return e?t[vs(0,e-1)]:s}function or(t,e){return Ma(no(t),gr(e,0,t.length))}function ar(t){return Ma(no(t))}function lr(t,e,i){(i!==s&&!ru(t[e],i)||i===s&&!(e in t))&&fr(t,e,i)}function cr(t,e,i){var n=t[e];he.call(t,e)&&ru(n,i)&&(i!==s||e in t)||fr(t,e,i)}function ur(t,e){var i=t.length;while(i--)if(ru(t[i][0],e))return i;return-1}function hr(t,e,i,n){return Sr(t,(function(t,r,s){e(n,t,i(t),s)})),n}function dr(t,e){return t&&ro(e,Sh(e),t)}function pr(t,e){return t&&ro(e,xh(e),t)}function fr(t,e,i){"__proto__"==e&&Me?Me(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function mr(t,e){var n=-1,r=e.length,o=i(r),a=null==t;while(++n<r)o[n]=a?s:gh(t,e[n]);return o}function gr(t,e,i){return t===t&&(i!==s&&(t=t<=i?t:i),e!==s&&(t=t>=e?t:e)),t}function vr(t,e,i,n,r,o){var a,l=e&f,c=e&m,u=e&g;if(i&&(a=r?i(t,n,r,o):i(t)),a!==s)return a;if(!Cu(t))return t;var h=lu(t);if(h){if(a=ea(t),!l)return no(t,a)}else{var d=Go(t),p=d==G||d==Z;if(pu(t))return Ws(t,l);if(d==it||d==H||p&&!r){if(a=c||p?{}:ia(t),!l)return c?oo(t,pr(a,t)):so(t,dr(a,t))}else{if(!Ze[d])return r?t:{};a=na(t,d,l)}}o||(o=new Zn);var v=o.get(t);if(v)return v;o.set(t,a),Ou(t)?t.forEach((function(n){a.add(vr(n,e,i,n,t,o))})):Tu(t)&&t.forEach((function(n,r){a.set(r,vr(n,e,i,r,t,o))}));var b=u?c?jo:Bo:c?xh:Sh,_=h?s:b(t);return wi(_||t,(function(n,r){_&&(r=n,n=t[r]),cr(a,r,vr(n,e,i,r,t,o))})),a}function br(t){var e=Sh(t);return function(i){return _r(i,t,e)}}function _r(t,e,i){var n=i.length;if(null==t)return!n;t=ie(t);while(n--){var r=i[n],o=e[r],a=t[r];if(a===s&&!(r in t)||!o(a))return!1}return!0}function yr(t,e,i){if("function"!=typeof t)throw new se(c);return ka((function(){t.apply(s,i)}),e)}function wr(t,e,i,n){var r=-1,s=ki,o=!0,l=t.length,c=[],u=e.length;if(!l)return c;i&&(e=qi(e,Ki(i))),n?(s=Ti,o=!1):e.length>=a&&(s=Gi,o=!1,e=new Kn(e));t:while(++r<l){var h=t[r],d=null==i?h:i(h);if(h=n||0!==h?h:0,o&&d===d){var p=u;while(p--)if(e[p]===d)continue t;c.push(h)}else s(e,d,n)||c.push(h)}return c}wn.templateSettings={escape:It,evaluate:At,interpolate:Nt,variable:"",imports:{_:wn}},wn.prototype=kn.prototype,wn.prototype.constructor=wn,Tn.prototype=xn(kn.prototype),Tn.prototype.constructor=Tn,qn.prototype=xn(kn.prototype),qn.prototype.constructor=qn,An.prototype.clear=Nn,An.prototype["delete"]=$n,An.prototype.get=Dn,An.prototype.has=Rn,An.prototype.set=Pn,On.prototype.clear=Ln,On.prototype["delete"]=Bn,On.prototype.get=jn,On.prototype.has=zn,On.prototype.set=Fn,Vn.prototype.clear=Hn,Vn.prototype["delete"]=Un,Vn.prototype.get=Qn,Vn.prototype.has=Wn,Vn.prototype.set=Yn,Kn.prototype.add=Kn.prototype.push=Xn,Kn.prototype.has=Gn,Zn.prototype.clear=Jn,Zn.prototype["delete"]=tr,Zn.prototype.get=er,Zn.prototype.has=ir,Zn.prototype.set=nr;var Sr=co(Ar),xr=co(Nr,!0);function Cr(t,e){var i=!0;return Sr(t,(function(t,n,r){return i=!!e(t,n,r),i})),i}function kr(t,e,i){var n=-1,r=t.length;while(++n<r){var o=t[n],a=e(o);if(null!=a&&(l===s?a===a&&!Bu(a):i(a,l)))var l=a,c=o}return c}function Tr(t,e,i,n){var r=t.length;i=Yu(i),i<0&&(i=-i>r?0:r+i),n=n===s||n>r?r:Yu(n),n<0&&(n+=r),n=i>n?0:Ku(n);while(i<n)t[i++]=e;return t}function qr(t,e){var i=[];return Sr(t,(function(t,n,r){e(t,n,r)&&i.push(t)})),i}function Er(t,e,i,n,r){var s=-1,o=t.length;i||(i=sa),r||(r=[]);while(++s<o){var a=t[s];e>0&&i(a)?e>1?Er(a,e-1,i,n,r):Ei(r,a):n||(r[r.length]=a)}return r}var Mr=uo(),Ir=uo(!0);function Ar(t,e){return t&&Mr(t,e,Sh)}function Nr(t,e){return t&&Ir(t,e,Sh)}function $r(t,e){return Ci(e,(function(e){return wu(t[e])}))}function Dr(t,e){e=Vs(e,t);var i=0,n=e.length;while(null!=t&&i<n)t=t[Aa(e[i++])];return i&&i==n?t:s}function Rr(t,e,i){var n=e(t);return lu(t)?n:Ei(n,i(t))}function Pr(t){return null==t?t===s?ct:et:Ee&&Ee in ie(t)?Yo(t):_a(t)}function Or(t,e){return t>e}function Lr(t,e){return null!=t&&he.call(t,e)}function Br(t,e){return null!=t&&e in ie(t)}function jr(t,e,i){return t>=ze(e,i)&&t<je(e,i)}function zr(t,e,n){var r=n?Ti:ki,o=t[0].length,a=t.length,l=a,c=i(a),u=1/0,h=[];while(l--){var d=t[l];l&&e&&(d=qi(d,Ki(e))),u=ze(d.length,u),c[l]=!n&&(e||o>=120&&d.length>=120)?new Kn(l&&d):s}d=t[0];var p=-1,f=c[0];t:while(++p<o&&h.length<u){var m=d[p],g=e?e(m):m;if(m=n||0!==m?m:0,!(f?Gi(f,g):r(h,g,n))){l=a;while(--l){var v=c[l];if(!(v?Gi(v,g):r(t[l],g,n)))continue t}f&&f.push(g),h.push(m)}}return h}function Fr(t,e,i,n){return Ar(t,(function(t,r,s){e(n,i(t),r,s)})),n}function Vr(t,e,i){e=Vs(e,t),t=wa(t,e);var n=null==t?t:t[Aa(sl(e))];return null==n?s:_i(n,t,i)}function Hr(t){return ku(t)&&Pr(t)==H}function Ur(t){return ku(t)&&Pr(t)==dt}function Qr(t){return ku(t)&&Pr(t)==Y}function Wr(t,e,i,n,r){return t===e||(null==t||null==e||!ku(t)&&!ku(e)?t!==t&&e!==e:Yr(t,e,i,n,Wr,r))}function Yr(t,e,i,n,r,s){var o=lu(t),a=lu(e),l=o?U:Go(t),c=a?U:Go(e);l=l==H?it:l,c=c==H?it:c;var u=l==it,h=c==it,d=l==c;if(d&&pu(t)){if(!pu(e))return!1;o=!0,u=!1}if(d&&!u)return s||(s=new Zn),o||ju(t)?Ro(t,e,i,n,r,s):Po(t,e,l,i,n,r,s);if(!(i&v)){var p=u&&he.call(t,"__wrapped__"),f=h&&he.call(e,"__wrapped__");if(p||f){var m=p?t.value():t,g=f?e.value():e;return s||(s=new Zn),r(m,g,i,n,s)}}return!!d&&(s||(s=new Zn),Oo(t,e,i,n,r,s))}function Kr(t){return ku(t)&&Go(t)==J}function Xr(t,e,i,n){var r=i.length,o=r,a=!n;if(null==t)return!o;t=ie(t);while(r--){var l=i[r];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}while(++r<o){l=i[r];var c=l[0],u=t[c],h=l[1];if(a&&l[2]){if(u===s&&!(c in t))return!1}else{var d=new Zn;if(n)var p=n(u,h,c,t,e,d);if(!(p===s?Wr(h,u,v|b,n,d):p))return!1}}return!0}function Gr(t){if(!Cu(t)||ha(t))return!1;var e=wu(t)?ve:Xt;return e.test(Na(t))}function Zr(t){return ku(t)&&Pr(t)==st}function Jr(t){return ku(t)&&Go(t)==ot}function ts(t){return ku(t)&&xu(t.length)&&!!Ge[Pr(t)]}function es(t){return"function"==typeof t?t:null==t?Id:"object"==typeof t?lu(t)?as(t[0],t[1]):os(t):Vd(t)}function is(t){if(!pa(t))return Be(t);var e=[];for(var i in ie(t))he.call(t,i)&&"constructor"!=i&&e.push(i);return e}function ns(t){if(!Cu(t))return ba(t);var e=pa(t),i=[];for(var n in t)("constructor"!=n||!e&&he.call(t,n))&&i.push(n);return i}function rs(t,e){return t<e}function ss(t,e){var n=-1,r=uu(t)?i(t.length):[];return Sr(t,(function(t,i,s){r[++n]=e(t,i,s)})),r}function os(t){var e=Qo(t);return 1==e.length&&e[0][2]?ma(e[0][0],e[0][1]):function(i){return i===t||Xr(i,t,e)}}function as(t,e){return la(t)&&fa(e)?ma(Aa(t),e):function(i){var n=gh(i,t);return n===s&&n===e?bh(i,t):Wr(e,n,v|b)}}function ls(t,e,i,n,r){t!==e&&Mr(e,(function(o,a){if(r||(r=new Zn),Cu(o))cs(t,e,a,i,ls,n,r);else{var l=n?n(xa(t,a),o,a+"",t,e,r):s;l===s&&(l=o),lr(t,a,l)}}),xh)}function cs(t,e,i,n,r,o,a){var l=xa(t,i),c=xa(e,i),u=a.get(c);if(u)lr(t,i,u);else{var h=o?o(l,c,i+"",t,e,a):s,d=h===s;if(d){var p=lu(c),f=!p&&pu(c),m=!p&&!f&&ju(c);h=c,p||f||m?lu(l)?h=l:hu(l)?h=no(l):f?(d=!1,h=Ws(c,!0)):m?(d=!1,h=Zs(c,!0)):h=[]:Du(c)||au(c)?(h=l,au(l)?h=Gu(l):Cu(l)&&!wu(l)||(h=ia(c))):d=!1}d&&(a.set(c,h),r(h,c,n,o,a),a["delete"](c)),lr(t,i,h)}}function us(t,e){var i=t.length;if(i)return e+=e<0?i:0,oa(e,i)?t[e]:s}function hs(t,e,i){e=e.length?qi(e,(function(t){return lu(t)?function(e){return Dr(e,1===t.length?t[0]:t)}:t})):[Id];var n=-1;e=qi(e,Ki(Ho()));var r=ss(t,(function(t,i,r){var s=qi(e,(function(e){return e(t)}));return{criteria:s,index:++n,value:t}}));return Hi(r,(function(t,e){return to(t,e,i)}))}function ds(t,e){return ps(t,e,(function(e,i){return bh(t,i)}))}function ps(t,e,i){var n=-1,r=e.length,s={};while(++n<r){var o=e[n],a=Dr(t,o);i(a,o)&&xs(s,Vs(o,t),a)}return s}function fs(t){return function(e){return Dr(e,t)}}function ms(t,e,i,n){var r=n?Li:Oi,s=-1,o=e.length,a=t;t===e&&(e=no(e)),i&&(a=qi(t,Ki(i)));while(++s<o){var l=0,c=e[s],u=i?i(c):c;while((l=r(a,u,l,n))>-1)a!==t&&ke.call(a,l,1),ke.call(t,l,1)}return t}function gs(t,e){var i=t?e.length:0,n=i-1;while(i--){var r=e[i];if(i==n||r!==s){var s=r;oa(r)?ke.call(t,r,1):Rs(t,r)}}return t}function vs(t,e){return t+De(Qe()*(e-t+1))}function bs(t,e,n,r){var s=-1,o=je($e((e-t)/(n||1)),0),a=i(o);while(o--)a[r?o:++s]=t,t+=n;return a}function _s(t,e){var i="";if(!t||e<1||e>O)return i;do{e%2&&(i+=t),e=De(e/2),e&&(t+=t)}while(e);return i}function ys(t,e){return Ta(ya(t,e,Id),t+"")}function ws(t){return sr(zh(t))}function Ss(t,e){var i=zh(t);return Ma(i,gr(e,0,i.length))}function xs(t,e,i,n){if(!Cu(t))return t;e=Vs(e,t);var r=-1,o=e.length,a=o-1,l=t;while(null!=l&&++r<o){var c=Aa(e[r]),u=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(r!=a){var h=l[c];u=n?n(h,c,l):s,u===s&&(u=Cu(h)?h:oa(e[r+1])?[]:{})}cr(l,c,u),l=l[c]}return t}var Cs=oi?function(t,e){return oi.set(t,e),t}:Id,ks=Me?function(t,e){return Me(t,"toString",{configurable:!0,enumerable:!1,value:Td(e),writable:!0})}:Id;function Ts(t){return Ma(zh(t))}function qs(t,e,n){var r=-1,s=t.length;e<0&&(e=-e>s?0:s+e),n=n>s?s:n,n<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;var o=i(s);while(++r<s)o[r]=t[r+e];return o}function Es(t,e){var i;return Sr(t,(function(t,n,r){return i=e(t,n,r),!i})),!!i}function Ms(t,e,i){var n=0,r=null==t?n:t.length;if("number"==typeof e&&e===e&&r<=F){while(n<r){var s=n+r>>>1,o=t[s];null!==o&&!Bu(o)&&(i?o<=e:o<e)?n=s+1:r=s}return r}return Is(t,e,Id,i)}function Is(t,e,i,n){var r=0,o=null==t?0:t.length;if(0===o)return 0;e=i(e);var a=e!==e,l=null===e,c=Bu(e),u=e===s;while(r<o){var h=De((r+o)/2),d=i(t[h]),p=d!==s,f=null===d,m=d===d,g=Bu(d);if(a)var v=n||m;else v=u?m&&(n||p):l?m&&p&&(n||!f):c?m&&p&&!f&&(n||!g):!f&&!g&&(n?d<=e:d<e);v?r=h+1:o=h}return ze(o,z)}function As(t,e){var i=-1,n=t.length,r=0,s=[];while(++i<n){var o=t[i],a=e?e(o):o;if(!i||!ru(a,l)){var l=a;s[r++]=0===o?0:o}}return s}function Ns(t){return"number"==typeof t?t:Bu(t)?B:+t}function $s(t){if("string"==typeof t)return t;if(lu(t))return qi(t,$s)+"";if(Bu(t))return yn?yn.call(t):"";var e=t+"";return"0"==e&&1/t==-P?"-0":e}function Ds(t,e,i){var n=-1,r=ki,s=t.length,o=!0,l=[],c=l;if(i)o=!1,r=Ti;else if(s>=a){var u=e?null:Mo(t);if(u)return dn(u);o=!1,r=Gi,c=new Kn}else c=e?[]:l;t:while(++n<s){var h=t[n],d=e?e(h):h;if(h=i||0!==h?h:0,o&&d===d){var p=c.length;while(p--)if(c[p]===d)continue t;e&&c.push(d),l.push(h)}else r(c,d,i)||(c!==l&&c.push(d),l.push(h))}return l}function Rs(t,e){return e=Vs(e,t),t=wa(t,e),null==t||delete t[Aa(sl(e))]}function Ps(t,e,i,n){return xs(t,e,i(Dr(t,e)),n)}function Os(t,e,i,n){var r=t.length,s=n?r:-1;while((n?s--:++s<r)&&e(t[s],s,t));return i?qs(t,n?0:s,n?s+1:r):qs(t,n?s+1:0,n?r:s)}function Ls(t,e){var i=t;return i instanceof qn&&(i=i.value()),Mi(e,(function(t,e){return e.func.apply(e.thisArg,Ei([t],e.args))}),i)}function Bs(t,e,n){var r=t.length;if(r<2)return r?Ds(t[0]):[];var s=-1,o=i(r);while(++s<r){var a=t[s],l=-1;while(++l<r)l!=s&&(o[s]=wr(o[s]||a,t[l],e,n))}return Ds(Er(o,1),e,n)}function js(t,e,i){var n=-1,r=t.length,o=e.length,a={};while(++n<r){var l=n<o?e[n]:s;i(a,t[n],l)}return a}function zs(t){return hu(t)?t:[]}function Fs(t){return"function"==typeof t?t:Id}function Vs(t,e){return lu(t)?t:la(t,e)?[t]:Ia(Ju(t))}var Hs=ys;function Us(t,e,i){var n=t.length;return i=i===s?n:i,!e&&i>=n?t:qs(t,e,i)}var Qs=Ie||function(t){return ai.clearTimeout(t)};function Ws(t,e){if(e)return t.slice();var i=t.length,n=we?we(i):new t.constructor(i);return t.copy(n),n}function Ys(t){var e=new t.constructor(t.byteLength);return new ye(e).set(new ye(t)),e}function Ks(t,e){var i=e?Ys(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}function Xs(t){var e=new t.constructor(t.source,Wt.exec(t));return e.lastIndex=t.lastIndex,e}function Gs(t){return fn?ie(fn.call(t)):{}}function Zs(t,e){var i=e?Ys(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function Js(t,e){if(t!==e){var i=t!==s,n=null===t,r=t===t,o=Bu(t),a=e!==s,l=null===e,c=e===e,u=Bu(e);if(!l&&!u&&!o&&t>e||o&&a&&c&&!l&&!u||n&&a&&c||!i&&c||!r)return 1;if(!n&&!o&&!u&&t<e||u&&i&&r&&!n&&!o||l&&i&&r||!a&&r||!c)return-1}return 0}function to(t,e,i){var n=-1,r=t.criteria,s=e.criteria,o=r.length,a=i.length;while(++n<o){var l=Js(r[n],s[n]);if(l){if(n>=a)return l;var c=i[n];return l*("desc"==c?-1:1)}}return t.index-e.index}function eo(t,e,n,r){var s=-1,o=t.length,a=n.length,l=-1,c=e.length,u=je(o-a,0),h=i(c+u),d=!r;while(++l<c)h[l]=e[l];while(++s<a)(d||s<o)&&(h[n[s]]=t[s]);while(u--)h[l++]=t[s++];return h}function io(t,e,n,r){var s=-1,o=t.length,a=-1,l=n.length,c=-1,u=e.length,h=je(o-l,0),d=i(h+u),p=!r;while(++s<h)d[s]=t[s];var f=s;while(++c<u)d[f+c]=e[c];while(++a<l)(p||s<o)&&(d[f+n[a]]=t[s++]);return d}function no(t,e){var n=-1,r=t.length;e||(e=i(r));while(++n<r)e[n]=t[n];return e}function ro(t,e,i,n){var r=!i;i||(i={});var o=-1,a=e.length;while(++o<a){var l=e[o],c=n?n(i[l],t[l],l,i,t):s;c===s&&(c=t[l]),r?fr(i,l,c):cr(i,l,c)}return i}function so(t,e){return ro(t,Ko(t),e)}function oo(t,e){return ro(t,Xo(t),e)}function ao(t,e){return function(i,n){var r=lu(i)?yi:hr,s=e?e():{};return r(i,t,Ho(n,2),s)}}function lo(t){return ys((function(e,i){var n=-1,r=i.length,o=r>1?i[r-1]:s,a=r>2?i[2]:s;o=t.length>3&&"function"==typeof o?(r--,o):s,a&&aa(i[0],i[1],a)&&(o=r<3?s:o,r=1),e=ie(e);while(++n<r){var l=i[n];l&&t(e,l,n,o)}return e}))}function co(t,e){return function(i,n){if(null==i)return i;if(!uu(i))return t(i,n);var r=i.length,s=e?r:-1,o=ie(i);while(e?s--:++s<r)if(!1===n(o[s],s,o))break;return i}}function uo(t){return function(e,i,n){var r=-1,s=ie(e),o=n(e),a=o.length;while(a--){var l=o[t?a:++r];if(!1===i(s[l],l,s))break}return e}}function ho(t,e,i){var n=e&_,r=mo(t);function s(){var e=this&&this!==ai&&this instanceof s?r:t;return e.apply(n?i:this,arguments)}return s}function po(t){return function(e){e=Ju(e);var i=on(e)?vn(e):s,n=i?i[0]:e.charAt(0),r=i?Us(i,1).join(""):e.slice(1);return n[t]()+r}}function fo(t){return function(e){return Mi(wd(Yh(e).replace(Ve,"")),t,"")}}function mo(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var i=xn(t.prototype),n=t.apply(i,e);return Cu(n)?n:i}}function go(t,e,n){var r=mo(t);function o(){var a=arguments.length,l=i(a),c=a,u=Vo(o);while(c--)l[c]=arguments[c];var h=a<3&&l[0]!==u&&l[a-1]!==u?[]:hn(l,u);if(a-=h.length,a<n)return qo(t,e,_o,o.placeholder,s,l,h,s,s,n-a);var d=this&&this!==ai&&this instanceof o?r:t;return _i(d,this,l)}return o}function vo(t){return function(e,i,n){var r=ie(e);if(!uu(e)){var o=Ho(i,3);e=Sh(e),i=function(t){return o(r[t],t,r)}}var a=t(e,i,n);return a>-1?r[o?e[a]:a]:s}}function bo(t){return Lo((function(e){var i=e.length,n=i,r=Tn.prototype.thru;t&&e.reverse();while(n--){var o=e[n];if("function"!=typeof o)throw new se(c);if(r&&!a&&"wrapper"==Fo(o))var a=new Tn([],!0)}n=a?n:i;while(++n<i){o=e[n];var l=Fo(o),u="wrapper"==l?zo(o):s;a=u&&ua(u[0])&&u[1]==(T|S|C|q)&&!u[4].length&&1==u[9]?a[Fo(u[0])].apply(a,u[3]):1==o.length&&ua(o)?a[l]():a.thru(o)}return function(){var t=arguments,n=t[0];if(a&&1==t.length&&lu(n))return a.plant(n).value();var r=0,s=i?e[r].apply(this,t):n;while(++r<i)s=e[r].call(this,s);return s}}))}function _o(t,e,n,r,o,a,l,c,u,h){var d=e&T,p=e&_,f=e&y,m=e&(S|x),g=e&E,v=f?s:mo(t);function b(){var s=arguments.length,_=i(s),y=s;while(y--)_[y]=arguments[y];if(m)var w=Vo(b),S=tn(_,w);if(r&&(_=eo(_,r,o,m)),a&&(_=io(_,a,l,m)),s-=S,m&&s<h){var x=hn(_,w);return qo(t,e,_o,b.placeholder,n,_,x,c,u,h-s)}var C=p?n:this,k=f?C[t]:t;return s=_.length,c?_=Sa(_,c):g&&s>1&&_.reverse(),d&&u<s&&(_.length=u),this&&this!==ai&&this instanceof b&&(k=v||mo(k)),k.apply(C,_)}return b}function yo(t,e){return function(i,n){return Fr(i,t,e(n),{})}}function wo(t,e){return function(i,n){var r;if(i===s&&n===s)return e;if(i!==s&&(r=i),n!==s){if(r===s)return n;"string"==typeof i||"string"==typeof n?(i=$s(i),n=$s(n)):(i=Ns(i),n=Ns(n)),r=t(i,n)}return r}}function So(t){return Lo((function(e){return e=qi(e,Ki(Ho())),ys((function(i){var n=this;return t(e,(function(t){return _i(t,n,i)}))}))}))}function xo(t,e){e=e===s?" ":$s(e);var i=e.length;if(i<2)return i?_s(e,t):e;var n=_s(e,$e(t/gn(e)));return on(e)?Us(vn(n),0,t).join(""):n.slice(0,t)}function Co(t,e,n,r){var s=e&_,o=mo(t);function a(){var e=-1,l=arguments.length,c=-1,u=r.length,h=i(u+l),d=this&&this!==ai&&this instanceof a?o:t;while(++c<u)h[c]=r[c];while(l--)h[c++]=arguments[++e];return _i(d,s?n:this,h)}return a}function ko(t){return function(e,i,n){return n&&"number"!=typeof n&&aa(e,i,n)&&(i=n=s),e=Wu(e),i===s?(i=e,e=0):i=Wu(i),n=n===s?e<i?1:-1:Wu(n),bs(e,i,n,t)}}function To(t){return function(e,i){return"string"==typeof e&&"string"==typeof i||(e=Xu(e),i=Xu(i)),t(e,i)}}function qo(t,e,i,n,r,o,a,l,c,u){var h=e&S,d=h?a:s,p=h?s:a,f=h?o:s,m=h?s:o;e|=h?C:k,e&=~(h?k:C),e&w||(e&=~(_|y));var g=[t,e,r,f,d,m,p,l,c,u],v=i.apply(s,g);return ua(t)&&Ca(v,g),v.placeholder=n,qa(v,t,e)}function Eo(t){var e=Vt[t];return function(t,i){if(t=Xu(t),i=null==i?0:ze(Yu(i),292),i&&Oe(t)){var n=(Ju(t)+"e").split("e"),r=e(n[0]+"e"+(+n[1]+i));return n=(Ju(r)+"e").split("e"),+(n[0]+"e"+(+n[1]-i))}return e(t)}}var Mo=ei&&1/dn(new ei([,-0]))[1]==P?function(t){return new ei(t)}:Ld;function Io(t){return function(e){var i=Go(e);return i==J?cn(e):i==ot?pn(e):Wi(e,t(e))}}function Ao(t,e,i,n,r,o,a,l){var u=e&y;if(!u&&"function"!=typeof t)throw new se(c);var h=n?n.length:0;if(h||(e&=~(C|k),n=r=s),a=a===s?a:je(Yu(a),0),l=l===s?l:Yu(l),h-=r?r.length:0,e&k){var d=n,p=r;n=r=s}var f=u?s:zo(t),m=[t,e,i,n,r,d,p,o,a,l];if(f&&va(m,f),t=m[0],e=m[1],i=m[2],n=m[3],r=m[4],l=m[9]=m[9]===s?u?0:t.length:je(m[9]-h,0),!l&&e&(S|x)&&(e&=~(S|x)),e&&e!=_)g=e==S||e==x?go(t,e,l):e!=C&&e!=(_|C)||r.length?_o.apply(s,m):Co(t,e,i,n);else var g=ho(t,e,i);var v=f?Cs:Ca;return qa(v(g,m),t,e)}function No(t,e,i,n){return t===s||ru(t,le[i])&&!he.call(n,i)?e:t}function $o(t,e,i,n,r,o){return Cu(t)&&Cu(e)&&(o.set(e,t),ls(t,e,s,$o,o),o["delete"](e)),t}function Do(t){return Du(t)?s:t}function Ro(t,e,i,n,r,o){var a=i&v,l=t.length,c=e.length;if(l!=c&&!(a&&c>l))return!1;var u=o.get(t),h=o.get(e);if(u&&h)return u==e&&h==t;var d=-1,p=!0,f=i&b?new Kn:s;o.set(t,e),o.set(e,t);while(++d<l){var m=t[d],g=e[d];if(n)var _=a?n(g,m,d,e,t,o):n(m,g,d,t,e,o);if(_!==s){if(_)continue;p=!1;break}if(f){if(!Ai(e,(function(t,e){if(!Gi(f,e)&&(m===t||r(m,t,i,n,o)))return f.push(e)}))){p=!1;break}}else if(m!==g&&!r(m,g,i,n,o)){p=!1;break}}return o["delete"](t),o["delete"](e),p}function Po(t,e,i,n,r,s,o){switch(i){case pt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case dt:return!(t.byteLength!=e.byteLength||!s(new ye(t),new ye(e)));case W:case Y:case tt:return ru(+t,+e);case X:return t.name==e.name&&t.message==e.message;case st:case at:return t==e+"";case J:var a=cn;case ot:var l=n&v;if(a||(a=dn),t.size!=e.size&&!l)return!1;var c=o.get(t);if(c)return c==e;n|=b,o.set(t,e);var u=Ro(a(t),a(e),n,r,s,o);return o["delete"](t),u;case lt:if(fn)return fn.call(t)==fn.call(e)}return!1}function Oo(t,e,i,n,r,o){var a=i&v,l=Bo(t),c=l.length,u=Bo(e),h=u.length;if(c!=h&&!a)return!1;var d=c;while(d--){var p=l[d];if(!(a?p in e:he.call(e,p)))return!1}var f=o.get(t),m=o.get(e);if(f&&m)return f==e&&m==t;var g=!0;o.set(t,e),o.set(e,t);var b=a;while(++d<c){p=l[d];var _=t[p],y=e[p];if(n)var w=a?n(y,_,p,e,t,o):n(_,y,p,t,e,o);if(!(w===s?_===y||r(_,y,i,n,o):w)){g=!1;break}b||(b="constructor"==p)}if(g&&!b){var S=t.constructor,x=e.constructor;S==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof S&&S instanceof S&&"function"==typeof x&&x instanceof x||(g=!1)}return o["delete"](t),o["delete"](e),g}function Lo(t){return Ta(ya(t,s,Ya),t+"")}function Bo(t){return Rr(t,Sh,Ko)}function jo(t){return Rr(t,xh,Xo)}var zo=oi?function(t){return oi.get(t)}:Ld;function Fo(t){var e=t.name+"",i=li[e],n=he.call(li,e)?i.length:0;while(n--){var r=i[n],s=r.func;if(null==s||s==t)return r.name}return e}function Vo(t){var e=he.call(wn,"placeholder")?wn:t;return e.placeholder}function Ho(){var t=wn.iteratee||Ad;return t=t===Ad?es:t,arguments.length?t(arguments[0],arguments[1]):t}function Uo(t,e){var i=t.__data__;return ca(e)?i["string"==typeof e?"string":"hash"]:i.map}function Qo(t){var e=Sh(t),i=e.length;while(i--){var n=e[i],r=t[n];e[i]=[n,r,fa(r)]}return e}function Wo(t,e){var i=sn(t,e);return Gr(i)?i:s}function Yo(t){var e=he.call(t,Ee),i=t[Ee];try{t[Ee]=s;var n=!0}catch(o){}var r=fe.call(t);return n&&(e?t[Ee]=i:delete t[Ee]),r}var Ko=Re?function(t){return null==t?[]:(t=ie(t),Ci(Re(t),(function(e){return Ce.call(t,e)})))}:Wd,Xo=Re?function(t){var e=[];while(t)Ei(e,Ko(t)),t=Se(t);return e}:Wd,Go=Pr;function Zo(t,e,i){var n=-1,r=i.length;while(++n<r){var s=i[n],o=s.size;switch(s.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=ze(e,t+o);break;case"takeRight":t=je(t,e-o);break}}return{start:t,end:e}}function Jo(t){var e=t.match(zt);return e?e[1].split(Ft):[]}function ta(t,e,i){e=Vs(e,t);var n=-1,r=e.length,s=!1;while(++n<r){var o=Aa(e[n]);if(!(s=null!=t&&i(t,o)))break;t=t[o]}return s||++n!=r?s:(r=null==t?0:t.length,!!r&&xu(r)&&oa(o,r)&&(lu(t)||au(t)))}function ea(t){var e=t.length,i=new t.constructor(e);return e&&"string"==typeof t[0]&&he.call(t,"index")&&(i.index=t.index,i.input=t.input),i}function ia(t){return"function"!=typeof t.constructor||pa(t)?{}:xn(Se(t))}function na(t,e,i){var n=t.constructor;switch(e){case dt:return Ys(t);case W:case Y:return new n(+t);case pt:return Ks(t,i);case ft:case mt:case gt:case vt:case bt:case _t:case yt:case wt:case St:return Zs(t,i);case J:return new n;case tt:case at:return new n(t);case st:return Xs(t);case ot:return new n;case lt:return Gs(t)}}function ra(t,e){var i=e.length;if(!i)return t;var n=i-1;return e[n]=(i>1?"& ":"")+e[n],e=e.join(i>2?", ":" "),t.replace(jt,"{\n/* [wrapped with "+e+"] */\n")}function sa(t){return lu(t)||au(t)||!!(Te&&t&&t[Te])}function oa(t,e){var i=typeof t;return e=null==e?O:e,!!e&&("number"==i||"symbol"!=i&&Zt.test(t))&&t>-1&&t%1==0&&t<e}function aa(t,e,i){if(!Cu(i))return!1;var n=typeof e;return!!("number"==n?uu(i)&&oa(e,i.length):"string"==n&&e in i)&&ru(i[e],t)}function la(t,e){if(lu(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!Bu(t))||(Dt.test(t)||!$t.test(t)||null!=e&&t in ie(e))}function ca(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function ua(t){var e=Fo(t),i=wn[e];if("function"!=typeof i||!(e in qn.prototype))return!1;if(t===i)return!0;var n=zo(i);return!!n&&t===n[0]}function ha(t){return!!pe&&pe in t}(Ye&&Go(new Ye(new ArrayBuffer(1)))!=pt||Je&&Go(new Je)!=J||ti&&Go(ti.resolve())!=nt||ei&&Go(new ei)!=ot||ii&&Go(new ii)!=ut)&&(Go=function(t){var e=Pr(t),i=e==it?t.constructor:s,n=i?Na(i):"";if(n)switch(n){case ci:return pt;case hi:return J;case di:return nt;case Ni:return ot;case $i:return ut}return e});var da=ce?wu:Yd;function pa(t){var e=t&&t.constructor,i="function"==typeof e&&e.prototype||le;return t===i}function fa(t){return t===t&&!Cu(t)}function ma(t,e){return function(i){return null!=i&&(i[t]===e&&(e!==s||t in ie(i)))}}function ga(t){var e=jc(t,(function(t){return i.size===d&&i.clear(),t})),i=e.cache;return e}function va(t,e){var i=t[1],n=e[1],r=i|n,s=r<(_|y|T),o=n==T&&i==S||n==T&&i==q&&t[7].length<=e[8]||n==(T|q)&&e[7].length<=e[8]&&i==S;if(!s&&!o)return t;n&_&&(t[2]=e[2],r|=i&_?0:w);var a=e[3];if(a){var l=t[3];t[3]=l?eo(l,a,e[4]):a,t[4]=l?hn(t[3],p):e[4]}return a=e[5],a&&(l=t[5],t[5]=l?io(l,a,e[6]):a,t[6]=l?hn(t[5],p):e[6]),a=e[7],a&&(t[7]=a),n&T&&(t[8]=null==t[8]?e[8]:ze(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r,t}function ba(t){var e=[];if(null!=t)for(var i in ie(t))e.push(i);return e}function _a(t){return fe.call(t)}function ya(t,e,n){return e=je(e===s?t.length-1:e,0),function(){var r=arguments,s=-1,o=je(r.length-e,0),a=i(o);while(++s<o)a[s]=r[e+s];s=-1;var l=i(e+1);while(++s<e)l[s]=r[s];return l[e]=n(a),_i(t,this,l)}}function wa(t,e){return e.length<2?t:Dr(t,qs(e,0,-1))}function Sa(t,e){var i=t.length,n=ze(e.length,i),r=no(t);while(n--){var o=e[n];t[n]=oa(o,i)?r[o]:s}return t}function xa(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var Ca=Ea(Cs),ka=Ne||function(t,e){return ai.setTimeout(t,e)},Ta=Ea(ks);function qa(t,e,i){var n=e+"";return Ta(t,ra(n,$a(Jo(n),i)))}function Ea(t){var e=0,i=0;return function(){var n=Fe(),r=N-(n-i);if(i=n,r>0){if(++e>=A)return arguments[0]}else e=0;return t.apply(s,arguments)}}function Ma(t,e){var i=-1,n=t.length,r=n-1;e=e===s?n:e;while(++i<e){var o=vs(i,r),a=t[o];t[o]=t[i],t[i]=a}return t.length=e,t}var Ia=ga((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Rt,(function(t,i,n,r){e.push(n?r.replace(Ut,"$1"):i||t)})),e}));function Aa(t){if("string"==typeof t||Bu(t))return t;var e=t+"";return"0"==e&&1/t==-P?"-0":e}function Na(t){if(null!=t){try{return ue.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function $a(t,e){return wi(V,(function(i){var n="_."+i[0];e&i[1]&&!ki(t,n)&&t.push(n)})),t.sort()}function Da(t){if(t instanceof qn)return t.clone();var e=new Tn(t.__wrapped__,t.__chain__);return e.__actions__=no(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Ra(t,e,n){e=(n?aa(t,e,n):e===s)?1:je(Yu(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];var o=0,a=0,l=i($e(r/e));while(o<r)l[a++]=qs(t,o,o+=e);return l}function Pa(t){var e=-1,i=null==t?0:t.length,n=0,r=[];while(++e<i){var s=t[e];s&&(r[n++]=s)}return r}function Oa(){var t=arguments.length;if(!t)return[];var e=i(t-1),n=arguments[0],r=t;while(r--)e[r-1]=arguments[r];return Ei(lu(n)?no(n):[n],Er(e,1))}var La=ys((function(t,e){return hu(t)?wr(t,Er(e,1,hu,!0)):[]})),Ba=ys((function(t,e){var i=sl(e);return hu(i)&&(i=s),hu(t)?wr(t,Er(e,1,hu,!0),Ho(i,2)):[]})),ja=ys((function(t,e){var i=sl(e);return hu(i)&&(i=s),hu(t)?wr(t,Er(e,1,hu,!0),s,i):[]}));function za(t,e,i){var n=null==t?0:t.length;return n?(e=i||e===s?1:Yu(e),qs(t,e<0?0:e,n)):[]}function Fa(t,e,i){var n=null==t?0:t.length;return n?(e=i||e===s?1:Yu(e),e=n-e,qs(t,0,e<0?0:e)):[]}function Va(t,e){return t&&t.length?Os(t,Ho(e,3),!0,!0):[]}function Ha(t,e){return t&&t.length?Os(t,Ho(e,3),!0):[]}function Ua(t,e,i,n){var r=null==t?0:t.length;return r?(i&&"number"!=typeof i&&aa(t,e,i)&&(i=0,n=r),Tr(t,e,i,n)):[]}function Qa(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var r=null==i?0:Yu(i);return r<0&&(r=je(n+r,0)),Pi(t,Ho(e,3),r)}function Wa(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var r=n-1;return i!==s&&(r=Yu(i),r=i<0?je(n+r,0):ze(r,n-1)),Pi(t,Ho(e,3),r,!0)}function Ya(t){var e=null==t?0:t.length;return e?Er(t,1):[]}function Ka(t){var e=null==t?0:t.length;return e?Er(t,P):[]}function Xa(t,e){var i=null==t?0:t.length;return i?(e=e===s?1:Yu(e),Er(t,e)):[]}function Ga(t){var e=-1,i=null==t?0:t.length,n={};while(++e<i){var r=t[e];n[r[0]]=r[1]}return n}function Za(t){return t&&t.length?t[0]:s}function Ja(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var r=null==i?0:Yu(i);return r<0&&(r=je(n+r,0)),Oi(t,e,r)}function tl(t){var e=null==t?0:t.length;return e?qs(t,0,-1):[]}var el=ys((function(t){var e=qi(t,zs);return e.length&&e[0]===t[0]?zr(e):[]})),il=ys((function(t){var e=sl(t),i=qi(t,zs);return e===sl(i)?e=s:i.pop(),i.length&&i[0]===t[0]?zr(i,Ho(e,2)):[]})),nl=ys((function(t){var e=sl(t),i=qi(t,zs);return e="function"==typeof e?e:s,e&&i.pop(),i.length&&i[0]===t[0]?zr(i,s,e):[]}));function rl(t,e){return null==t?"":Le.call(t,e)}function sl(t){var e=null==t?0:t.length;return e?t[e-1]:s}function ol(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var r=n;return i!==s&&(r=Yu(i),r=r<0?je(n+r,0):ze(r,n-1)),e===e?mn(t,e,r):Pi(t,Bi,r,!0)}function al(t,e){return t&&t.length?us(t,Yu(e)):s}var ll=ys(cl);function cl(t,e){return t&&t.length&&e&&e.length?ms(t,e):t}function ul(t,e,i){return t&&t.length&&e&&e.length?ms(t,e,Ho(i,2)):t}function hl(t,e,i){return t&&t.length&&e&&e.length?ms(t,e,s,i):t}var dl=Lo((function(t,e){var i=null==t?0:t.length,n=mr(t,e);return gs(t,qi(e,(function(t){return oa(t,i)?+t:t})).sort(Js)),n}));function pl(t,e){var i=[];if(!t||!t.length)return i;var n=-1,r=[],s=t.length;e=Ho(e,3);while(++n<s){var o=t[n];e(o,n,t)&&(i.push(o),r.push(n))}return gs(t,r),i}function fl(t){return null==t?t:We.call(t)}function ml(t,e,i){var n=null==t?0:t.length;return n?(i&&"number"!=typeof i&&aa(t,e,i)?(e=0,i=n):(e=null==e?0:Yu(e),i=i===s?n:Yu(i)),qs(t,e,i)):[]}function gl(t,e){return Ms(t,e)}function vl(t,e,i){return Is(t,e,Ho(i,2))}function bl(t,e){var i=null==t?0:t.length;if(i){var n=Ms(t,e);if(n<i&&ru(t[n],e))return n}return-1}function _l(t,e){return Ms(t,e,!0)}function yl(t,e,i){return Is(t,e,Ho(i,2),!0)}function wl(t,e){var i=null==t?0:t.length;if(i){var n=Ms(t,e,!0)-1;if(ru(t[n],e))return n}return-1}function Sl(t){return t&&t.length?As(t):[]}function xl(t,e){return t&&t.length?As(t,Ho(e,2)):[]}function Cl(t){var e=null==t?0:t.length;return e?qs(t,1,e):[]}function kl(t,e,i){return t&&t.length?(e=i||e===s?1:Yu(e),qs(t,0,e<0?0:e)):[]}function Tl(t,e,i){var n=null==t?0:t.length;return n?(e=i||e===s?1:Yu(e),e=n-e,qs(t,e<0?0:e,n)):[]}function ql(t,e){return t&&t.length?Os(t,Ho(e,3),!1,!0):[]}function El(t,e){return t&&t.length?Os(t,Ho(e,3)):[]}var Ml=ys((function(t){return Ds(Er(t,1,hu,!0))})),Il=ys((function(t){var e=sl(t);return hu(e)&&(e=s),Ds(Er(t,1,hu,!0),Ho(e,2))})),Al=ys((function(t){var e=sl(t);return e="function"==typeof e?e:s,Ds(Er(t,1,hu,!0),s,e)}));function Nl(t){return t&&t.length?Ds(t):[]}function $l(t,e){return t&&t.length?Ds(t,Ho(e,2)):[]}function Dl(t,e){return e="function"==typeof e?e:s,t&&t.length?Ds(t,s,e):[]}function Rl(t){if(!t||!t.length)return[];var e=0;return t=Ci(t,(function(t){if(hu(t))return e=je(t.length,e),!0})),Qi(e,(function(e){return qi(t,zi(e))}))}function Pl(t,e){if(!t||!t.length)return[];var i=Rl(t);return null==e?i:qi(i,(function(t){return _i(e,s,t)}))}var Ol=ys((function(t,e){return hu(t)?wr(t,e):[]})),Ll=ys((function(t){return Bs(Ci(t,hu))})),Bl=ys((function(t){var e=sl(t);return hu(e)&&(e=s),Bs(Ci(t,hu),Ho(e,2))})),jl=ys((function(t){var e=sl(t);return e="function"==typeof e?e:s,Bs(Ci(t,hu),s,e)})),zl=ys(Rl);function Fl(t,e){return js(t||[],e||[],cr)}function Vl(t,e){return js(t||[],e||[],xs)}var Hl=ys((function(t){var e=t.length,i=e>1?t[e-1]:s;return i="function"==typeof i?(t.pop(),i):s,Pl(t,i)}));function Ul(t){var e=wn(t);return e.__chain__=!0,e}function Ql(t,e){return e(t),t}function Wl(t,e){return e(t)}var Yl=Lo((function(t){var e=t.length,i=e?t[0]:0,n=this.__wrapped__,r=function(e){return mr(e,t)};return!(e>1||this.__actions__.length)&&n instanceof qn&&oa(i)?(n=n.slice(i,+i+(e?1:0)),n.__actions__.push({func:Wl,args:[r],thisArg:s}),new Tn(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(s),t}))):this.thru(r)}));function Kl(){return Ul(this)}function Xl(){return new Tn(this.value(),this.__chain__)}function Gl(){this.__values__===s&&(this.__values__=Qu(this.value()));var t=this.__index__>=this.__values__.length,e=t?s:this.__values__[this.__index__++];return{done:t,value:e}}function Zl(){return this}function Jl(t){var e,i=this;while(i instanceof kn){var n=Da(i);n.__index__=0,n.__values__=s,e?r.__wrapped__=n:e=n;var r=n;i=i.__wrapped__}return r.__wrapped__=t,e}function tc(){var t=this.__wrapped__;if(t instanceof qn){var e=t;return this.__actions__.length&&(e=new qn(this)),e=e.reverse(),e.__actions__.push({func:Wl,args:[fl],thisArg:s}),new Tn(e,this.__chain__)}return this.thru(fl)}function ec(){return Ls(this.__wrapped__,this.__actions__)}var ic=ao((function(t,e,i){he.call(t,i)?++t[i]:fr(t,i,1)}));function nc(t,e,i){var n=lu(t)?xi:Cr;return i&&aa(t,e,i)&&(e=s),n(t,Ho(e,3))}function rc(t,e){var i=lu(t)?Ci:qr;return i(t,Ho(e,3))}var sc=vo(Qa),oc=vo(Wa);function ac(t,e){return Er(gc(t,e),1)}function lc(t,e){return Er(gc(t,e),P)}function cc(t,e,i){return i=i===s?1:Yu(i),Er(gc(t,e),i)}function uc(t,e){var i=lu(t)?wi:Sr;return i(t,Ho(e,3))}function hc(t,e){var i=lu(t)?Si:xr;return i(t,Ho(e,3))}var dc=ao((function(t,e,i){he.call(t,i)?t[i].push(e):fr(t,i,[e])}));function pc(t,e,i,n){t=uu(t)?t:zh(t),i=i&&!n?Yu(i):0;var r=t.length;return i<0&&(i=je(r+i,0)),Lu(t)?i<=r&&t.indexOf(e,i)>-1:!!r&&Oi(t,e,i)>-1}var fc=ys((function(t,e,n){var r=-1,s="function"==typeof e,o=uu(t)?i(t.length):[];return Sr(t,(function(t){o[++r]=s?_i(e,t,n):Vr(t,e,n)})),o})),mc=ao((function(t,e,i){fr(t,i,e)}));function gc(t,e){var i=lu(t)?qi:ss;return i(t,Ho(e,3))}function vc(t,e,i,n){return null==t?[]:(lu(e)||(e=null==e?[]:[e]),i=n?s:i,lu(i)||(i=null==i?[]:[i]),hs(t,e,i))}var bc=ao((function(t,e,i){t[i?0:1].push(e)}),(function(){return[[],[]]}));function _c(t,e,i){var n=lu(t)?Mi:Vi,r=arguments.length<3;return n(t,Ho(e,4),i,r,Sr)}function yc(t,e,i){var n=lu(t)?Ii:Vi,r=arguments.length<3;return n(t,Ho(e,4),i,r,xr)}function wc(t,e){var i=lu(t)?Ci:qr;return i(t,zc(Ho(e,3)))}function Sc(t){var e=lu(t)?sr:ws;return e(t)}function xc(t,e,i){e=(i?aa(t,e,i):e===s)?1:Yu(e);var n=lu(t)?or:Ss;return n(t,e)}function Cc(t){var e=lu(t)?ar:Ts;return e(t)}function kc(t){if(null==t)return 0;if(uu(t))return Lu(t)?gn(t):t.length;var e=Go(t);return e==J||e==ot?t.size:is(t).length}function Tc(t,e,i){var n=lu(t)?Ai:Es;return i&&aa(t,e,i)&&(e=s),n(t,Ho(e,3))}var qc=ys((function(t,e){if(null==t)return[];var i=e.length;return i>1&&aa(t,e[0],e[1])?e=[]:i>2&&aa(e[0],e[1],e[2])&&(e=[e[0]]),hs(t,Er(e,1),[])})),Ec=Ae||function(){return ai.Date.now()};function Mc(t,e){if("function"!=typeof e)throw new se(c);return t=Yu(t),function(){if(--t<1)return e.apply(this,arguments)}}function Ic(t,e,i){return e=i?s:e,e=t&&null==e?t.length:e,Ao(t,T,s,s,s,s,e)}function Ac(t,e){var i;if("function"!=typeof e)throw new se(c);return t=Yu(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=s),i}}var Nc=ys((function(t,e,i){var n=_;if(i.length){var r=hn(i,Vo(Nc));n|=C}return Ao(t,n,e,i,r)})),$c=ys((function(t,e,i){var n=_|y;if(i.length){var r=hn(i,Vo($c));n|=C}return Ao(e,n,t,i,r)}));function Dc(t,e,i){e=i?s:e;var n=Ao(t,S,s,s,s,s,s,e);return n.placeholder=Dc.placeholder,n}function Rc(t,e,i){e=i?s:e;var n=Ao(t,x,s,s,s,s,s,e);return n.placeholder=Rc.placeholder,n}function Pc(t,e,i){var n,r,o,a,l,u,h=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new se(c);function m(e){var i=n,o=r;return n=r=s,h=e,a=t.apply(o,i),a}function g(t){return h=t,l=ka(_,e),d?m(t):a}function v(t){var i=t-u,n=t-h,r=e-i;return p?ze(r,o-n):r}function b(t){var i=t-u,n=t-h;return u===s||i>=e||i<0||p&&n>=o}function _(){var t=Ec();if(b(t))return y(t);l=ka(_,v(t))}function y(t){return l=s,f&&n?m(t):(n=r=s,a)}function w(){l!==s&&Qs(l),h=0,n=u=r=l=s}function S(){return l===s?a:y(Ec())}function x(){var t=Ec(),i=b(t);if(n=arguments,r=this,u=t,i){if(l===s)return g(u);if(p)return Qs(l),l=ka(_,e),m(u)}return l===s&&(l=ka(_,e)),a}return e=Xu(e)||0,Cu(i)&&(d=!!i.leading,p="maxWait"in i,o=p?je(Xu(i.maxWait)||0,e):o,f="trailing"in i?!!i.trailing:f),x.cancel=w,x.flush=S,x}var Oc=ys((function(t,e){return yr(t,1,e)})),Lc=ys((function(t,e,i){return yr(t,Xu(e)||0,i)}));function Bc(t){return Ao(t,E)}function jc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new se(c);var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],s=i.cache;if(s.has(r))return s.get(r);var o=t.apply(this,n);return i.cache=s.set(r,o)||s,o};return i.cache=new(jc.Cache||Vn),i}function zc(t){if("function"!=typeof t)throw new se(c);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Fc(t){return Ac(2,t)}jc.Cache=Vn;var Vc=Hs((function(t,e){e=1==e.length&&lu(e[0])?qi(e[0],Ki(Ho())):qi(Er(e,1),Ki(Ho()));var i=e.length;return ys((function(n){var r=-1,s=ze(n.length,i);while(++r<s)n[r]=e[r].call(this,n[r]);return _i(t,this,n)}))})),Hc=ys((function(t,e){var i=hn(e,Vo(Hc));return Ao(t,C,s,e,i)})),Uc=ys((function(t,e){var i=hn(e,Vo(Uc));return Ao(t,k,s,e,i)})),Qc=Lo((function(t,e){return Ao(t,q,s,s,s,e)}));function Wc(t,e){if("function"!=typeof t)throw new se(c);return e=e===s?e:Yu(e),ys(t,e)}function Yc(t,e){if("function"!=typeof t)throw new se(c);return e=null==e?0:je(Yu(e),0),ys((function(i){var n=i[e],r=Us(i,0,e);return n&&Ei(r,n),_i(t,this,r)}))}function Kc(t,e,i){var n=!0,r=!0;if("function"!=typeof t)throw new se(c);return Cu(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),Pc(t,e,{leading:n,maxWait:e,trailing:r})}function Xc(t){return Ic(t,1)}function Gc(t,e){return Hc(Fs(e),t)}function Zc(){if(!arguments.length)return[];var t=arguments[0];return lu(t)?t:[t]}function Jc(t){return vr(t,g)}function tu(t,e){return e="function"==typeof e?e:s,vr(t,g,e)}function eu(t){return vr(t,f|g)}function iu(t,e){return e="function"==typeof e?e:s,vr(t,f|g,e)}function nu(t,e){return null==e||_r(t,e,Sh(e))}function ru(t,e){return t===e||t!==t&&e!==e}var su=To(Or),ou=To((function(t,e){return t>=e})),au=Hr(function(){return arguments}())?Hr:function(t){return ku(t)&&he.call(t,"callee")&&!Ce.call(t,"callee")},lu=i.isArray,cu=pi?Ki(pi):Ur;function uu(t){return null!=t&&xu(t.length)&&!wu(t)}function hu(t){return ku(t)&&uu(t)}function du(t){return!0===t||!1===t||ku(t)&&Pr(t)==W}var pu=Pe||Yd,fu=fi?Ki(fi):Qr;function mu(t){return ku(t)&&1===t.nodeType&&!Du(t)}function gu(t){if(null==t)return!0;if(uu(t)&&(lu(t)||"string"==typeof t||"function"==typeof t.splice||pu(t)||ju(t)||au(t)))return!t.length;var e=Go(t);if(e==J||e==ot)return!t.size;if(pa(t))return!is(t).length;for(var i in t)if(he.call(t,i))return!1;return!0}function vu(t,e){return Wr(t,e)}function bu(t,e,i){i="function"==typeof i?i:s;var n=i?i(t,e):s;return n===s?Wr(t,e,s,i):!!n}function _u(t){if(!ku(t))return!1;var e=Pr(t);return e==X||e==K||"string"==typeof t.message&&"string"==typeof t.name&&!Du(t)}function yu(t){return"number"==typeof t&&Oe(t)}function wu(t){if(!Cu(t))return!1;var e=Pr(t);return e==G||e==Z||e==Q||e==rt}function Su(t){return"number"==typeof t&&t==Yu(t)}function xu(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=O}function Cu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ku(t){return null!=t&&"object"==typeof t}var Tu=mi?Ki(mi):Kr;function qu(t,e){return t===e||Xr(t,e,Qo(e))}function Eu(t,e,i){return i="function"==typeof i?i:s,Xr(t,e,Qo(e),i)}function Mu(t){return $u(t)&&t!=+t}function Iu(t){if(da(t))throw new r(l);return Gr(t)}function Au(t){return null===t}function Nu(t){return null==t}function $u(t){return"number"==typeof t||ku(t)&&Pr(t)==tt}function Du(t){if(!ku(t)||Pr(t)!=it)return!1;var e=Se(t);if(null===e)return!0;var i=he.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&ue.call(i)==me}var Ru=gi?Ki(gi):Zr;function Pu(t){return Su(t)&&t>=-O&&t<=O}var Ou=vi?Ki(vi):Jr;function Lu(t){return"string"==typeof t||!lu(t)&&ku(t)&&Pr(t)==at}function Bu(t){return"symbol"==typeof t||ku(t)&&Pr(t)==lt}var ju=bi?Ki(bi):ts;function zu(t){return t===s}function Fu(t){return ku(t)&&Go(t)==ut}function Vu(t){return ku(t)&&Pr(t)==ht}var Hu=To(rs),Uu=To((function(t,e){return t<=e}));function Qu(t){if(!t)return[];if(uu(t))return Lu(t)?vn(t):no(t);if(qe&&t[qe])return ln(t[qe]());var e=Go(t),i=e==J?cn:e==ot?dn:zh;return i(t)}function Wu(t){if(!t)return 0===t?t:0;if(t=Xu(t),t===P||t===-P){var e=t<0?-1:1;return e*L}return t===t?t:0}function Yu(t){var e=Wu(t),i=e%1;return e===e?i?e-i:e:0}function Ku(t){return t?gr(Yu(t),0,j):0}function Xu(t){if("number"==typeof t)return t;if(Bu(t))return B;if(Cu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Cu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Yi(t);var i=Kt.test(t);return i||Gt.test(t)?ri(t.slice(2),i?2:8):Yt.test(t)?B:+t}function Gu(t){return ro(t,xh(t))}function Zu(t){return t?gr(Yu(t),-O,O):0===t?t:0}function Ju(t){return null==t?"":$s(t)}var th=lo((function(t,e){if(pa(e)||uu(e))ro(e,Sh(e),t);else for(var i in e)he.call(e,i)&&cr(t,i,e[i])})),eh=lo((function(t,e){ro(e,xh(e),t)})),ih=lo((function(t,e,i,n){ro(e,xh(e),t,n)})),nh=lo((function(t,e,i,n){ro(e,Sh(e),t,n)})),rh=Lo(mr);function sh(t,e){var i=xn(t);return null==e?i:dr(i,e)}var oh=ys((function(t,e){t=ie(t);var i=-1,n=e.length,r=n>2?e[2]:s;r&&aa(e[0],e[1],r)&&(n=1);while(++i<n){var o=e[i],a=xh(o),l=-1,c=a.length;while(++l<c){var u=a[l],h=t[u];(h===s||ru(h,le[u])&&!he.call(t,u))&&(t[u]=o[u])}}return t})),ah=ys((function(t){return t.push(s,$o),_i(qh,s,t)}));function lh(t,e){return Ri(t,Ho(e,3),Ar)}function ch(t,e){return Ri(t,Ho(e,3),Nr)}function uh(t,e){return null==t?t:Mr(t,Ho(e,3),xh)}function hh(t,e){return null==t?t:Ir(t,Ho(e,3),xh)}function dh(t,e){return t&&Ar(t,Ho(e,3))}function ph(t,e){return t&&Nr(t,Ho(e,3))}function fh(t){return null==t?[]:$r(t,Sh(t))}function mh(t){return null==t?[]:$r(t,xh(t))}function gh(t,e,i){var n=null==t?s:Dr(t,e);return n===s?i:n}function vh(t,e){return null!=t&&ta(t,e,Lr)}function bh(t,e){return null!=t&&ta(t,e,Br)}var _h=yo((function(t,e,i){null!=e&&"function"!=typeof e.toString&&(e=fe.call(e)),t[e]=i}),Td(Id)),yh=yo((function(t,e,i){null!=e&&"function"!=typeof e.toString&&(e=fe.call(e)),he.call(t,e)?t[e].push(i):t[e]=[i]}),Ho),wh=ys(Vr);function Sh(t){return uu(t)?rr(t):is(t)}function xh(t){return uu(t)?rr(t,!0):ns(t)}function Ch(t,e){var i={};return e=Ho(e,3),Ar(t,(function(t,n,r){fr(i,e(t,n,r),t)})),i}function kh(t,e){var i={};return e=Ho(e,3),Ar(t,(function(t,n,r){fr(i,n,e(t,n,r))})),i}var Th=lo((function(t,e,i){ls(t,e,i)})),qh=lo((function(t,e,i,n){ls(t,e,i,n)})),Eh=Lo((function(t,e){var i={};if(null==t)return i;var n=!1;e=qi(e,(function(e){return e=Vs(e,t),n||(n=e.length>1),e})),ro(t,jo(t),i),n&&(i=vr(i,f|m|g,Do));var r=e.length;while(r--)Rs(i,e[r]);return i}));function Mh(t,e){return Ah(t,zc(Ho(e)))}var Ih=Lo((function(t,e){return null==t?{}:ds(t,e)}));function Ah(t,e){if(null==t)return{};var i=qi(jo(t),(function(t){return[t]}));return e=Ho(e),ps(t,i,(function(t,i){return e(t,i[0])}))}function Nh(t,e,i){e=Vs(e,t);var n=-1,r=e.length;r||(r=1,t=s);while(++n<r){var o=null==t?s:t[Aa(e[n])];o===s&&(n=r,o=i),t=wu(o)?o.call(t):o}return t}function $h(t,e,i){return null==t?t:xs(t,e,i)}function Dh(t,e,i,n){return n="function"==typeof n?n:s,null==t?t:xs(t,e,i,n)}var Rh=Io(Sh),Ph=Io(xh);function Oh(t,e,i){var n=lu(t),r=n||pu(t)||ju(t);if(e=Ho(e,4),null==i){var s=t&&t.constructor;i=r?n?new s:[]:Cu(t)&&wu(s)?xn(Se(t)):{}}return(r?wi:Ar)(t,(function(t,n,r){return e(i,t,n,r)})),i}function Lh(t,e){return null==t||Rs(t,e)}function Bh(t,e,i){return null==t?t:Ps(t,e,Fs(i))}function jh(t,e,i,n){return n="function"==typeof n?n:s,null==t?t:Ps(t,e,Fs(i),n)}function zh(t){return null==t?[]:Xi(t,Sh(t))}function Fh(t){return null==t?[]:Xi(t,xh(t))}function Vh(t,e,i){return i===s&&(i=e,e=s),i!==s&&(i=Xu(i),i=i===i?i:0),e!==s&&(e=Xu(e),e=e===e?e:0),gr(Xu(t),e,i)}function Hh(t,e,i){return e=Wu(e),i===s?(i=e,e=0):i=Wu(i),t=Xu(t),jr(t,e,i)}function Uh(t,e,i){if(i&&"boolean"!=typeof i&&aa(t,e,i)&&(e=i=s),i===s&&("boolean"==typeof e?(i=e,e=s):"boolean"==typeof t&&(i=t,t=s)),t===s&&e===s?(t=0,e=1):(t=Wu(t),e===s?(e=t,t=0):e=Wu(e)),t>e){var n=t;t=e,e=n}if(i||t%1||e%1){var r=Qe();return ze(t+r*(e-t+ni("1e-"+((r+"").length-1))),e)}return vs(t,e)}var Qh=fo((function(t,e,i){return e=e.toLowerCase(),t+(i?Wh(e):e)}));function Wh(t){return yd(Ju(t).toLowerCase())}function Yh(t){return t=Ju(t),t&&t.replace(Jt,en).replace(He,"")}function Kh(t,e,i){t=Ju(t),e=$s(e);var n=t.length;i=i===s?n:gr(Yu(i),0,n);var r=i;return i-=e.length,i>=0&&t.slice(i,r)==e}function Xh(t){return t=Ju(t),t&&Mt.test(t)?t.replace(qt,nn):t}function Gh(t){return t=Ju(t),t&&Ot.test(t)?t.replace(Pt,"\\$&"):t}var Zh=fo((function(t,e,i){return t+(i?"-":"")+e.toLowerCase()})),Jh=fo((function(t,e,i){return t+(i?" ":"")+e.toLowerCase()})),td=po("toLowerCase");function ed(t,e,i){t=Ju(t),e=Yu(e);var n=e?gn(t):0;if(!e||n>=e)return t;var r=(e-n)/2;return xo(De(r),i)+t+xo($e(r),i)}function id(t,e,i){t=Ju(t),e=Yu(e);var n=e?gn(t):0;return e&&n<e?t+xo(e-n,i):t}function nd(t,e,i){t=Ju(t),e=Yu(e);var n=e?gn(t):0;return e&&n<e?xo(e-n,i)+t:t}function rd(t,e,i){return i||null==e?e=0:e&&(e=+e),Ue(Ju(t).replace(Lt,""),e||0)}function sd(t,e,i){return e=(i?aa(t,e,i):e===s)?1:Yu(e),_s(Ju(t),e)}function od(){var t=arguments,e=Ju(t[0]);return t.length<3?e:e.replace(t[1],t[2])}var ad=fo((function(t,e,i){return t+(i?"_":"")+e.toLowerCase()}));function ld(t,e,i){return i&&"number"!=typeof i&&aa(t,e,i)&&(e=i=s),i=i===s?j:i>>>0,i?(t=Ju(t),t&&("string"==typeof e||null!=e&&!Ru(e))&&(e=$s(e),!e&&on(t))?Us(vn(t),0,i):t.split(e,i)):[]}var cd=fo((function(t,e,i){return t+(i?" ":"")+yd(e)}));function ud(t,e,i){return t=Ju(t),i=null==i?0:gr(Yu(i),0,t.length),e=$s(e),t.slice(i,i+e.length)==e}function hd(t,e,i){var n=wn.templateSettings;i&&aa(t,e,i)&&(e=s),t=Ju(t),e=ih({},e,n,No);var o,a,l=ih({},e.imports,n.imports,No),c=Sh(l),h=Xi(l,c),d=0,p=e.interpolate||te,f="__p += '",m=ne((e.escape||te).source+"|"+p.source+"|"+(p===Nt?Qt:te).source+"|"+(e.evaluate||te).source+"|$","g"),g="//# sourceURL="+(he.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xe+"]")+"\n";t.replace(m,(function(e,i,n,r,s,l){return n||(n=r),f+=t.slice(d,l).replace(ee,rn),i&&(o=!0,f+="' +\n__e("+i+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),d=l+e.length,e})),f+="';\n";var v=he.call(e,"variable")&&e.variable;if(v){if(Ht.test(v))throw new r(u)}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(xt,""):f).replace(Ct,"$1").replace(kt,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var b=Sd((function(){return Bt(c,g+"return "+f).apply(s,h)}));if(b.source=f,_u(b))throw b;return b}function dd(t){return Ju(t).toLowerCase()}function pd(t){return Ju(t).toUpperCase()}function fd(t,e,i){if(t=Ju(t),t&&(i||e===s))return Yi(t);if(!t||!(e=$s(e)))return t;var n=vn(t),r=vn(e),o=Zi(n,r),a=Ji(n,r)+1;return Us(n,o,a).join("")}function md(t,e,i){if(t=Ju(t),t&&(i||e===s))return t.slice(0,bn(t)+1);if(!t||!(e=$s(e)))return t;var n=vn(t),r=Ji(n,vn(e))+1;return Us(n,0,r).join("")}function gd(t,e,i){if(t=Ju(t),t&&(i||e===s))return t.replace(Lt,"");if(!t||!(e=$s(e)))return t;var n=vn(t),r=Zi(n,vn(e));return Us(n,r).join("")}function vd(t,e){var i=M,n=I;if(Cu(e)){var r="separator"in e?e.separator:r;i="length"in e?Yu(e.length):i,n="omission"in e?$s(e.omission):n}t=Ju(t);var o=t.length;if(on(t)){var a=vn(t);o=a.length}if(i>=o)return t;var l=i-gn(n);if(l<1)return n;var c=a?Us(a,0,l).join(""):t.slice(0,l);if(r===s)return c+n;if(a&&(l+=c.length-l),Ru(r)){if(t.slice(l).search(r)){var u,h=c;r.global||(r=ne(r.source,Ju(Wt.exec(r))+"g")),r.lastIndex=0;while(u=r.exec(h))var d=u.index;c=c.slice(0,d===s?l:d)}}else if(t.indexOf($s(r),l)!=l){var p=c.lastIndexOf(r);p>-1&&(c=c.slice(0,p))}return c+n}function bd(t){return t=Ju(t),t&&Et.test(t)?t.replace(Tt,_n):t}var _d=fo((function(t,e,i){return t+(i?" ":"")+e.toUpperCase()})),yd=po("toUpperCase");function wd(t,e,i){return t=Ju(t),e=i?s:e,e===s?an(t)?Sn(t):Di(t):t.match(e)||[]}var Sd=ys((function(t,e){try{return _i(t,s,e)}catch(i){return _u(i)?i:new r(i)}})),xd=Lo((function(t,e){return wi(e,(function(e){e=Aa(e),fr(t,e,Nc(t[e],t))})),t}));function Cd(t){var e=null==t?0:t.length,i=Ho();return t=e?qi(t,(function(t){if("function"!=typeof t[1])throw new se(c);return[i(t[0]),t[1]]})):[],ys((function(i){var n=-1;while(++n<e){var r=t[n];if(_i(r[0],this,i))return _i(r[1],this,i)}}))}function kd(t){return br(vr(t,f))}function Td(t){return function(){return t}}function qd(t,e){return null==t||t!==t?e:t}var Ed=bo(),Md=bo(!0);function Id(t){return t}function Ad(t){return es("function"==typeof t?t:vr(t,f))}function Nd(t){return os(vr(t,f))}function $d(t,e){return as(t,vr(e,f))}var Dd=ys((function(t,e){return function(i){return Vr(i,t,e)}})),Rd=ys((function(t,e){return function(i){return Vr(t,i,e)}}));function Pd(t,e,i){var n=Sh(e),r=$r(e,n);null!=i||Cu(e)&&(r.length||!n.length)||(i=e,e=t,t=this,r=$r(e,Sh(e)));var s=!(Cu(i)&&"chain"in i)||!!i.chain,o=wu(t);return wi(r,(function(i){var n=e[i];t[i]=n,o&&(t.prototype[i]=function(){var e=this.__chain__;if(s||e){var i=t(this.__wrapped__),r=i.__actions__=no(this.__actions__);return r.push({func:n,args:arguments,thisArg:t}),i.__chain__=e,i}return n.apply(t,Ei([this.value()],arguments))})})),t}function Od(){return ai._===this&&(ai._=ge),this}function Ld(){}function Bd(t){return t=Yu(t),ys((function(e){return us(e,t)}))}var jd=So(qi),zd=So(xi),Fd=So(Ai);function Vd(t){return la(t)?zi(Aa(t)):fs(t)}function Hd(t){return function(e){return null==t?s:Dr(t,e)}}var Ud=ko(),Qd=ko(!0);function Wd(){return[]}function Yd(){return!1}function Kd(){return{}}function Xd(){return""}function Gd(){return!0}function Zd(t,e){if(t=Yu(t),t<1||t>O)return[];var i=j,n=ze(t,j);e=Ho(e),t-=j;var r=Qi(n,e);while(++i<t)e(i);return r}function Jd(t){return lu(t)?qi(t,Aa):Bu(t)?[t]:no(Ia(Ju(t)))}function tp(t){var e=++de;return Ju(t)+e}var ep=wo((function(t,e){return t+e}),0),ip=Eo("ceil"),np=wo((function(t,e){return t/e}),1),rp=Eo("floor");function sp(t){return t&&t.length?kr(t,Id,Or):s}function op(t,e){return t&&t.length?kr(t,Ho(e,2),Or):s}function ap(t){return ji(t,Id)}function lp(t,e){return ji(t,Ho(e,2))}function cp(t){return t&&t.length?kr(t,Id,rs):s}function up(t,e){return t&&t.length?kr(t,Ho(e,2),rs):s}var hp=wo((function(t,e){return t*e}),1),dp=Eo("round"),pp=wo((function(t,e){return t-e}),0);function fp(t){return t&&t.length?Ui(t,Id):0}function mp(t,e){return t&&t.length?Ui(t,Ho(e,2)):0}return wn.after=Mc,wn.ary=Ic,wn.assign=th,wn.assignIn=eh,wn.assignInWith=ih,wn.assignWith=nh,wn.at=rh,wn.before=Ac,wn.bind=Nc,wn.bindAll=xd,wn.bindKey=$c,wn.castArray=Zc,wn.chain=Ul,wn.chunk=Ra,wn.compact=Pa,wn.concat=Oa,wn.cond=Cd,wn.conforms=kd,wn.constant=Td,wn.countBy=ic,wn.create=sh,wn.curry=Dc,wn.curryRight=Rc,wn.debounce=Pc,wn.defaults=oh,wn.defaultsDeep=ah,wn.defer=Oc,wn.delay=Lc,wn.difference=La,wn.differenceBy=Ba,wn.differenceWith=ja,wn.drop=za,wn.dropRight=Fa,wn.dropRightWhile=Va,wn.dropWhile=Ha,wn.fill=Ua,wn.filter=rc,wn.flatMap=ac,wn.flatMapDeep=lc,wn.flatMapDepth=cc,wn.flatten=Ya,wn.flattenDeep=Ka,wn.flattenDepth=Xa,wn.flip=Bc,wn.flow=Ed,wn.flowRight=Md,wn.fromPairs=Ga,wn.functions=fh,wn.functionsIn=mh,wn.groupBy=dc,wn.initial=tl,wn.intersection=el,wn.intersectionBy=il,wn.intersectionWith=nl,wn.invert=_h,wn.invertBy=yh,wn.invokeMap=fc,wn.iteratee=Ad,wn.keyBy=mc,wn.keys=Sh,wn.keysIn=xh,wn.map=gc,wn.mapKeys=Ch,wn.mapValues=kh,wn.matches=Nd,wn.matchesProperty=$d,wn.memoize=jc,wn.merge=Th,wn.mergeWith=qh,wn.method=Dd,wn.methodOf=Rd,wn.mixin=Pd,wn.negate=zc,wn.nthArg=Bd,wn.omit=Eh,wn.omitBy=Mh,wn.once=Fc,wn.orderBy=vc,wn.over=jd,wn.overArgs=Vc,wn.overEvery=zd,wn.overSome=Fd,wn.partial=Hc,wn.partialRight=Uc,wn.partition=bc,wn.pick=Ih,wn.pickBy=Ah,wn.property=Vd,wn.propertyOf=Hd,wn.pull=ll,wn.pullAll=cl,wn.pullAllBy=ul,wn.pullAllWith=hl,wn.pullAt=dl,wn.range=Ud,wn.rangeRight=Qd,wn.rearg=Qc,wn.reject=wc,wn.remove=pl,wn.rest=Wc,wn.reverse=fl,wn.sampleSize=xc,wn.set=$h,wn.setWith=Dh,wn.shuffle=Cc,wn.slice=ml,wn.sortBy=qc,wn.sortedUniq=Sl,wn.sortedUniqBy=xl,wn.split=ld,wn.spread=Yc,wn.tail=Cl,wn.take=kl,wn.takeRight=Tl,wn.takeRightWhile=ql,wn.takeWhile=El,wn.tap=Ql,wn.throttle=Kc,wn.thru=Wl,wn.toArray=Qu,wn.toPairs=Rh,wn.toPairsIn=Ph,wn.toPath=Jd,wn.toPlainObject=Gu,wn.transform=Oh,wn.unary=Xc,wn.union=Ml,wn.unionBy=Il,wn.unionWith=Al,wn.uniq=Nl,wn.uniqBy=$l,wn.uniqWith=Dl,wn.unset=Lh,wn.unzip=Rl,wn.unzipWith=Pl,wn.update=Bh,wn.updateWith=jh,wn.values=zh,wn.valuesIn=Fh,wn.without=Ol,wn.words=wd,wn.wrap=Gc,wn.xor=Ll,wn.xorBy=Bl,wn.xorWith=jl,wn.zip=zl,wn.zipObject=Fl,wn.zipObjectDeep=Vl,wn.zipWith=Hl,wn.entries=Rh,wn.entriesIn=Ph,wn.extend=eh,wn.extendWith=ih,Pd(wn,wn),wn.add=ep,wn.attempt=Sd,wn.camelCase=Qh,wn.capitalize=Wh,wn.ceil=ip,wn.clamp=Vh,wn.clone=Jc,wn.cloneDeep=eu,wn.cloneDeepWith=iu,wn.cloneWith=tu,wn.conformsTo=nu,wn.deburr=Yh,wn.defaultTo=qd,wn.divide=np,wn.endsWith=Kh,wn.eq=ru,wn.escape=Xh,wn.escapeRegExp=Gh,wn.every=nc,wn.find=sc,wn.findIndex=Qa,wn.findKey=lh,wn.findLast=oc,wn.findLastIndex=Wa,wn.findLastKey=ch,wn.floor=rp,wn.forEach=uc,wn.forEachRight=hc,wn.forIn=uh,wn.forInRight=hh,wn.forOwn=dh,wn.forOwnRight=ph,wn.get=gh,wn.gt=su,wn.gte=ou,wn.has=vh,wn.hasIn=bh,wn.head=Za,wn.identity=Id,wn.includes=pc,wn.indexOf=Ja,wn.inRange=Hh,wn.invoke=wh,wn.isArguments=au,wn.isArray=lu,wn.isArrayBuffer=cu,wn.isArrayLike=uu,wn.isArrayLikeObject=hu,wn.isBoolean=du,wn.isBuffer=pu,wn.isDate=fu,wn.isElement=mu,wn.isEmpty=gu,wn.isEqual=vu,wn.isEqualWith=bu,wn.isError=_u,wn.isFinite=yu,wn.isFunction=wu,wn.isInteger=Su,wn.isLength=xu,wn.isMap=Tu,wn.isMatch=qu,wn.isMatchWith=Eu,wn.isNaN=Mu,wn.isNative=Iu,wn.isNil=Nu,wn.isNull=Au,wn.isNumber=$u,wn.isObject=Cu,wn.isObjectLike=ku,wn.isPlainObject=Du,wn.isRegExp=Ru,wn.isSafeInteger=Pu,wn.isSet=Ou,wn.isString=Lu,wn.isSymbol=Bu,wn.isTypedArray=ju,wn.isUndefined=zu,wn.isWeakMap=Fu,wn.isWeakSet=Vu,wn.join=rl,wn.kebabCase=Zh,wn.last=sl,wn.lastIndexOf=ol,wn.lowerCase=Jh,wn.lowerFirst=td,wn.lt=Hu,wn.lte=Uu,wn.max=sp,wn.maxBy=op,wn.mean=ap,wn.meanBy=lp,wn.min=cp,wn.minBy=up,wn.stubArray=Wd,wn.stubFalse=Yd,wn.stubObject=Kd,wn.stubString=Xd,wn.stubTrue=Gd,wn.multiply=hp,wn.nth=al,wn.noConflict=Od,wn.noop=Ld,wn.now=Ec,wn.pad=ed,wn.padEnd=id,wn.padStart=nd,wn.parseInt=rd,wn.random=Uh,wn.reduce=_c,wn.reduceRight=yc,wn.repeat=sd,wn.replace=od,wn.result=Nh,wn.round=dp,wn.runInContext=t,wn.sample=Sc,wn.size=kc,wn.snakeCase=ad,wn.some=Tc,wn.sortedIndex=gl,wn.sortedIndexBy=vl,wn.sortedIndexOf=bl,wn.sortedLastIndex=_l,wn.sortedLastIndexBy=yl,wn.sortedLastIndexOf=wl,wn.startCase=cd,wn.startsWith=ud,wn.subtract=pp,wn.sum=fp,wn.sumBy=mp,wn.template=hd,wn.times=Zd,wn.toFinite=Wu,wn.toInteger=Yu,wn.toLength=Ku,wn.toLower=dd,wn.toNumber=Xu,wn.toSafeInteger=Zu,wn.toString=Ju,wn.toUpper=pd,wn.trim=fd,wn.trimEnd=md,wn.trimStart=gd,wn.truncate=vd,wn.unescape=bd,wn.uniqueId=tp,wn.upperCase=_d,wn.upperFirst=yd,wn.each=uc,wn.eachRight=hc,wn.first=Za,Pd(wn,function(){var t={};return Ar(wn,(function(e,i){he.call(wn.prototype,i)||(t[i]=e)})),t}(),{chain:!1}),wn.VERSION=o,wi(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){wn[t].placeholder=wn})),wi(["drop","take"],(function(t,e){qn.prototype[t]=function(i){i=i===s?1:je(Yu(i),0);var n=this.__filtered__&&!e?new qn(this):this.clone();return n.__filtered__?n.__takeCount__=ze(i,n.__takeCount__):n.__views__.push({size:ze(i,j),type:t+(n.__dir__<0?"Right":"")}),n},qn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),wi(["filter","map","takeWhile"],(function(t,e){var i=e+1,n=i==$||i==R;qn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ho(t,3),type:i}),e.__filtered__=e.__filtered__||n,e}})),wi(["head","last"],(function(t,e){var i="take"+(e?"Right":"");qn.prototype[t]=function(){return this[i](1).value()[0]}})),wi(["initial","tail"],(function(t,e){var i="drop"+(e?"":"Right");qn.prototype[t]=function(){return this.__filtered__?new qn(this):this[i](1)}})),qn.prototype.compact=function(){return this.filter(Id)},qn.prototype.find=function(t){return this.filter(t).head()},qn.prototype.findLast=function(t){return this.reverse().find(t)},qn.prototype.invokeMap=ys((function(t,e){return"function"==typeof t?new qn(this):this.map((function(i){return Vr(i,t,e)}))})),qn.prototype.reject=function(t){return this.filter(zc(Ho(t)))},qn.prototype.slice=function(t,e){t=Yu(t);var i=this;return i.__filtered__&&(t>0||e<0)?new qn(i):(t<0?i=i.takeRight(-t):t&&(i=i.drop(t)),e!==s&&(e=Yu(e),i=e<0?i.dropRight(-e):i.take(e-t)),i)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(j)},Ar(qn.prototype,(function(t,e){var i=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),r=wn[n?"take"+("last"==e?"Right":""):e],o=n||/^find/.test(e);r&&(wn.prototype[e]=function(){var e=this.__wrapped__,a=n?[1]:arguments,l=e instanceof qn,c=a[0],u=l||lu(e),h=function(t){var e=r.apply(wn,Ei([t],a));return n&&d?e[0]:e};u&&i&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,p=!!this.__actions__.length,f=o&&!d,m=l&&!p;if(!o&&u){e=m?e:new qn(this);var g=t.apply(e,a);return g.__actions__.push({func:Wl,args:[h],thisArg:s}),new Tn(g,d)}return f&&m?t.apply(this,a):(g=this.thru(h),f?n?g.value()[0]:g.value():g)})})),wi(["pop","push","shift","sort","splice","unshift"],(function(t){var e=oe[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);wn.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var r=this.value();return e.apply(lu(r)?r:[],t)}return this[i]((function(i){return e.apply(lu(i)?i:[],t)}))}})),Ar(qn.prototype,(function(t,e){var i=wn[e];if(i){var n=i.name+"";he.call(li,n)||(li[n]=[]),li[n].push({name:e,func:i})}})),li[_o(s,y).name]=[{name:"wrapper",func:s}],qn.prototype.clone=En,qn.prototype.reverse=Mn,qn.prototype.value=In,wn.prototype.at=Yl,wn.prototype.chain=Kl,wn.prototype.commit=Xl,wn.prototype.next=Gl,wn.prototype.plant=Jl,wn.prototype.reverse=tc,wn.prototype.toJSON=wn.prototype.valueOf=wn.prototype.value=ec,wn.prototype.first=wn.prototype.head,qe&&(wn.prototype[qe]=Zl),wn},Cn=xn();ai._=Cn,r=function(){return Cn}.call(e,i,e,n),r===s||(n.exports=r)}).call(this)}).call(this,i("c8ba"),i("62e4")(t))},3511:function(t,e,i){"use strict";var n=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw n("Maximum allowed index exceeded");return t}},"35a1":function(t,e,i){"use strict";var n=i("f5df"),r=i("dc4a"),s=i("7234"),o=i("3f8c"),a=i("b622"),l=a("iterator");t.exports=function(t){if(!s(t))return r(t,l)||r(t,"@@iterator")||o[n(t)]}},"36f2":function(t,e,i){"use strict";var n,r,s,o,a=i("cfe9"),l=i("2a07"),c=i("dbe5"),u=a.structuredClone,h=a.ArrayBuffer,d=a.MessageChannel,p=!1;if(c)p=function(t){u(t,{transfer:[t]})};else if(h)try{d||(n=l("worker_threads"),n&&(d=n.MessageChannel)),d&&(r=new d,s=new h(2),o=function(t){r.port1.postMessage(null,[t])},2===s.byteLength&&(o(s),0===s.byteLength&&(p=o)))}catch(f){}t.exports=p},"37e8":function(t,e,i){"use strict";var n=i("83ab"),r=i("aed9"),s=i("9bf2"),o=i("825a"),a=i("fc6a"),l=i("df75");e.f=n&&!r?Object.defineProperties:function(t,e){o(t);var i,n=a(e),r=l(e),c=r.length,u=0;while(c>u)s.f(t,i=r[u++],n[i]);return t}},"384f":function(t,e,i){"use strict";var n=i("e330"),r=i("5388"),s=i("cb27"),o=s.Set,a=s.proto,l=n(a.forEach),c=n(a.keys),u=c(new o).next;t.exports=function(t,e,i){return i?r({iterator:c(t),next:u},e):l(t,e)}},"395e":function(t,e,i){"use strict";var n=i("dc19"),r=i("cb27").has,s=i("8e16"),o=i("7f65"),a=i("5388"),l=i("2a62");t.exports=function(t){var e=n(this),i=o(t);if(s(e)<i.size)return!1;var c=i.getIterator();return!1!==a(c,(function(t){if(!r(e,t))return l(c,"normal",!1)}))}},"3a34":function(t,e,i){"use strict";var n=i("83ab"),r=i("e8b5"),s=TypeError,o=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(r(t)&&!o(t,"length").writable)throw new s("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,i){"use strict";var n=i("e330");t.exports=n({}.isPrototypeOf)},"3bbe":function(t,e,i){"use strict";var n=i("1787"),r=String,s=TypeError;t.exports=function(t){if(n(t))return t;throw new s("Can't set "+r(t)+" as a prototype")}},"3c5d":function(t,e,i){"use strict";var n=i("cfe9"),r=i("c65b"),s=i("ebb5"),o=i("07fa"),a=i("182d"),l=i("7b0b"),c=i("d039"),u=n.RangeError,h=n.Int8Array,d=h&&h.prototype,p=d&&d.set,f=s.aTypedArray,m=s.exportTypedArrayMethod,g=!c((function(){var t=new Uint8ClampedArray(2);return r(p,t,{length:1,0:3},1),3!==t[1]})),v=g&&s.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));m("set",(function(t){f(this);var e=a(arguments.length>1?arguments[1]:void 0,1),i=l(t);if(g)return r(p,this,i,e);var n=this.length,s=o(i),c=0;if(s+e>n)throw new u("Wrong length");while(c<s)this[e+c]=i[c++]}),!g||v)},"3ecc":function(t,e,i){},"3f8c":function(t,e,i){"use strict";t.exports={}},"40d5":function(t,e,i){"use strict";var n=i("d039");t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"40e9":function(t,e,i){"use strict";var n=i("23e7"),r=i("41f6");r&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return r(this,arguments.length?arguments[0]:void 0,!1)}})},"41f6":function(t,e,i){"use strict";var n=i("cfe9"),r=i("e330"),s=i("7282"),o=i("0b25"),a=i("2005"),l=i("b620"),c=i("36f2"),u=i("dbe5"),h=n.structuredClone,d=n.ArrayBuffer,p=n.DataView,f=Math.min,m=d.prototype,g=p.prototype,v=r(m.slice),b=s(m,"resizable","get"),_=s(m,"maxByteLength","get"),y=r(g.getInt8),w=r(g.setInt8);t.exports=(u||c)&&function(t,e,i){var n,r=l(t),s=void 0===e?r:o(e),m=!b||!b(t);if(a(t),u&&(t=h(t,{transfer:[t]}),r===s&&(i||m)))return t;if(r>=s&&(!i||m))n=v(t,0,s);else{var g=i&&!m&&_?{maxByteLength:_(t)}:void 0;n=new d(s,g);for(var S=new p(t),x=new p(n),C=f(s,r),k=0;k<C;k++)w(x,k,y(S,k))}return u||c(t),n}},4362:function(t,e,i){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,n="/";e.cwd=function(){return n},e.chdir=function(e){t||(t=i("df7c")),n=t.resolve(e,n)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"43ce":function(t,e,i){},"44ad":function(t,e,i){"use strict";var n=i("e330"),r=i("d039"),s=i("c6b6"),o=Object,a=n("".split);t.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===s(t)?a(t,""):o(t)}:o},4581:function(t,e,i){"use strict";e["a"]=null},4625:function(t,e,i){"use strict";var n=i("c6b6"),r=i("e330");t.exports=function(t){if("Function"===n(t))return r(t)}},"46c4":function(t,e,i){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},4754:function(t,e,i){"use strict";t.exports=function(t,e){return{value:t,done:e}}},"485a":function(t,e,i){"use strict";var n=i("c65b"),r=i("1626"),s=i("861d"),o=TypeError;t.exports=function(t,e){var i,a;if("string"===e&&r(i=t.toString)&&!s(a=n(i,t)))return a;if(r(i=t.valueOf)&&!s(a=n(i,t)))return a;if("string"!==e&&r(i=t.toString)&&!s(a=n(i,t)))return a;throw new o("Can't convert object to primitive value")}},"4b11":function(t,e,i){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"4b7d":function(t,e,i){"use strict";i("bc19")},"4d64":function(t,e,i){"use strict";var n=i("fc6a"),r=i("23cb"),s=i("07fa"),o=function(t){return function(e,i,o){var a=n(e),l=s(a);if(0===l)return!t&&-1;var c,u=r(o,l);if(t&&i!==i){while(l>u)if(c=a[u++],c!==c)return!0}else for(;l>u;u++)if((t||u in a)&&a[u]===i)return t||u||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},"4e3b":function(t,e,i){"use strict";i("e431")},"4e3e":function(t,e,i){"use strict";i("7d54")},"4ea1":function(t,e,i){"use strict";var n=i("d429"),r=i("ebb5"),s=i("bcbf"),o=i("5926"),a=i("f495"),l=r.aTypedArray,c=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();u("with",{with:function(t,e){var i=l(this),r=o(t),u=s(i)?a(e):+e;return n(i,c(i),r,u)}}["with"],!h)},"50c4":function(t,e,i){"use strict";var n=i("5926"),r=Math.min;t.exports=function(t){var e=n(t);return e>0?r(e,9007199254740991):0}},"510c":function(t,e,i){"use strict";i("f2a6")},"531a":function(t,e,i){"use strict";i("7936")},5338:function(t,e,i){"use strict";i("e772")},5377:function(t,e,i){"use strict";var n=i("cfe9"),r=i("83ab"),s=i("edd0"),o=i("ad6d"),a=i("d039"),l=n.RegExp,c=l.prototype,u=r&&a((function(){var t=!0;try{l(".","d")}catch(u){t=!1}var e={},i="",n=t?"dgimsy":"gimsy",r=function(t,n){Object.defineProperty(e,t,{get:function(){return i+=n,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(s.hasIndices="d"),s)r(o,s[o]);var a=Object.getOwnPropertyDescriptor(c,"flags").get.call(e);return a!==n||i!==n}));u&&s(c,"flags",{configurable:!0,get:o})},5388:function(t,e,i){"use strict";var n=i("c65b");t.exports=function(t,e,i){var r,s,o=i?t:t.iterator,a=t.next;while(!(r=n(a,o)).done)if(s=e(r.value),void 0!==s)return s}},5494:function(t,e,i){"use strict";var n=i("83ab"),r=i("e330"),s=i("edd0"),o=URLSearchParams.prototype,a=r(o.forEach);n&&!("size"in o)&&s(o,"size",{get:function(){var t=0;return a(this,(function(){t++})),t},configurable:!0,enumerable:!0})},5692:function(t,e,i){"use strict";var n=i("c6cd");t.exports=function(t,e){return n[t]||(n[t]=e||{})}},"56ef":function(t,e,i){"use strict";var n=i("d066"),r=i("e330"),s=i("241c"),o=i("7418"),a=i("825a"),l=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=s.f(a(t)),i=o.f;return i?l(e,i(t)):e}},"577e":function(t,e,i){"use strict";var n=i("f5df"),r=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},5926:function(t,e,i){"use strict";var n=i("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},"59ed":function(t,e,i){"use strict";var n=i("1626"),r=i("0d51"),s=TypeError;t.exports=function(t){if(n(t))return t;throw new s(r(t)+" is not a function")}},"5c6c":function(t,e,i){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,i){"use strict";var n=i("83ab"),r=i("1a2d"),s=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=r(s,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&o(s,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},6374:function(t,e,i){"use strict";var n=i("cfe9"),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},"655d":function(t,e,i){},"68df":function(t,e,i){"use strict";var n=i("dc19"),r=i("8e16"),s=i("384f"),o=i("7f65");t.exports=function(t){var e=n(this),i=o(t);return!(r(e)>i.size)&&!1!==s(e,(function(t){if(!i.includes(t))return!1}),!0)}},6964:function(t,e,i){"use strict";var n=i("cb2d");t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},"69f3":function(t,e,i){"use strict";var n,r,s,o=i("cdce"),a=i("cfe9"),l=i("861d"),c=i("9112"),u=i("1a2d"),h=i("c6cd"),d=i("f772"),p=i("d012"),f="Object already initialized",m=a.TypeError,g=a.WeakMap,v=function(t){return s(t)?r(t):n(t,{})},b=function(t){return function(e){var i;if(!l(e)||(i=r(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return i}};if(o||h.state){var _=h.state||(h.state=new g);_.get=_.get,_.has=_.has,_.set=_.set,n=function(t,e){if(_.has(t))throw new m(f);return e.facade=t,_.set(t,e),e},r=function(t){return _.get(t)||{}},s=function(t){return _.has(t)}}else{var y=d("state");p[y]=!0,n=function(t,e){if(u(t,y))throw new m(f);return e.facade=t,c(t,y,e),e},r=function(t){return u(t,y)?t[y]:{}},s=function(t){return u(t,y)}}t.exports={set:n,get:r,has:s,enforce:v,getterFor:b}},"6ce5":function(t,e,i){"use strict";var n=i("df7e"),r=i("ebb5"),s=r.aTypedArray,o=r.exportTypedArrayMethod,a=r.getTypedArrayConstructor;o("toReversed",(function(){return n(s(this),a(this))}))},"6f19":function(t,e,i){"use strict";var n=i("9112"),r=i("0d26"),s=i("b980"),o=Error.captureStackTrace;t.exports=function(t,e,i,a){s&&(o?o(t,e):n(t,"stack",r(i,a)))}},7145:function(t,e,i){"use strict";i("f949")},7156:function(t,e,i){"use strict";var n=i("1626"),r=i("861d"),s=i("d2bb");t.exports=function(t,e,i){var o,a;return s&&n(o=e.constructor)&&o!==i&&r(a=o.prototype)&&a!==i.prototype&&s(t,a),t}},7234:function(t,e,i){"use strict";t.exports=function(t){return null===t||void 0===t}},7282:function(t,e,i){"use strict";var n=i("e330"),r=i("59ed");t.exports=function(t,e,i){try{return n(r(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(s){}}},"72c3":function(t,e,i){"use strict";var n=i("23e7"),r=i("e9bc"),s=i("dad2");n({target:"Set",proto:!0,real:!0,forced:!s("union")},{union:r})},7418:function(t,e,i){"use strict";e.f=Object.getOwnPropertySymbols},7504:function(t,e,i){},"75bd":function(t,e,i){"use strict";var n=i("cfe9"),r=i("4625"),s=i("b620"),o=n.ArrayBuffer,a=o&&o.prototype,l=a&&r(a.slice);t.exports=function(t){if(0!==s(t))return!1;if(!l)return!1;try{return l(t,0,0),!1}catch(e){return!0}}},"76d6":function(t,e,i){"use strict";i("d866")},"775a":function(t,e,i){},7779:function(t,e,i){},7839:function(t,e,i){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7917:function(t,e,i){"use strict";var n=i("c532");function r(t,e,i,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}n["a"].inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n["a"].toJSONObject(this.config),code:this.code,status:this.status}}});const s=r.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{o[t]={value:t}}),Object.defineProperties(r,o),Object.defineProperty(s,"isAxiosError",{value:!0}),r.from=(t,e,i,o,a,l)=>{const c=Object.create(s);return n["a"].toFlatObject(t,c,(function(t){return t!==Error.prototype}),t=>"isAxiosError"!==t),r.call(c,t.message,e,i,o,a),c.cause=t,c.name=t.name,l&&Object.assign(c,l),c},e["a"]=r},7936:function(t,e,i){},"79a4":function(t,e,i){"use strict";var n=i("23e7"),r=i("d039"),s=i("953b"),o=i("dad2"),a=!o("intersection")||r((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));n({target:"Set",proto:!0,real:!0,forced:a},{intersection:s})},"7b0b":function(t,e,i){"use strict";var n=i("1d80"),r=Object;t.exports=function(t){return r(n(t))}},"7c1c":function(t,e,i){},"7c73":function(t,e,i){"use strict";var n,r=i("825a"),s=i("37e8"),o=i("7839"),a=i("d012"),l=i("1be4"),c=i("cc12"),u=i("f772"),h=">",d="<",p="prototype",f="script",m=u("IE_PROTO"),g=function(){},v=function(t){return d+f+h+t+d+"/"+f+h},b=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},_=function(){var t,e=c("iframe"),i="java"+f+":";return e.style.display="none",l.appendChild(e),e.src=String(i),t=e.contentWindow.document,t.open(),t.write(v("document.F=Object")),t.close(),t.F},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}y="undefined"!=typeof document?document.domain&&n?b(n):_():b(n);var t=o.length;while(t--)delete y[p][o[t]];return y()};a[m]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(g[p]=r(t),i=new g,g[p]=null,i[m]=t):i=y(),void 0===e?i:s.f(i,e)}},"7d54":function(t,e,i){"use strict";var n=i("23e7"),r=i("2266"),s=i("59ed"),o=i("825a"),a=i("46c4");n({target:"Iterator",proto:!0,real:!0},{forEach:function(t){o(this),s(t);var e=a(this),i=0;r(e,(function(e){t(e,i++)}),{IS_RECORD:!0})}})},"7f65":function(t,e,i){"use strict";var n=i("59ed"),r=i("825a"),s=i("c65b"),o=i("5926"),a=i("46c4"),l="Invalid size",c=RangeError,u=TypeError,h=Math.max,d=function(t,e){this.set=t,this.size=h(e,0),this.has=n(t.has),this.keys=n(t.keys)};d.prototype={getIterator:function(){return a(r(s(this.keys,this.set)))},includes:function(t){return s(this.has,this.set,t)}},t.exports=function(t){r(t);var e=+t.size;if(e!==e)throw new u(l);var i=o(e);if(i<0)throw new c(l);return new d(t,i)}},"825a":function(t,e,i){"use strict";var n=i("861d"),r=String,s=TypeError;t.exports=function(t){if(n(t))return t;throw new s(r(t)+" is not an object")}},"83ab":function(t,e,i){"use strict";var n=i("d039");t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,i){"use strict";var n=i("cb27"),r=i("384f"),s=n.Set,o=n.add;t.exports=function(t){var e=new s;return r(t,(function(t){o(e,t)})),e}},8418:function(t,e,i){"use strict";var n=i("83ab"),r=i("9bf2"),s=i("5c6c");t.exports=function(t,e,i){n?r.f(t,e,s(0,i)):t[e]=i}},8558:function(t,e,i){"use strict";var n=i("cfe9"),r=i("b5db"),s=i("c6b6"),o=function(t){return r.slice(0,t.length)===t};t.exports=function(){return o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===s(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"}()},"861d":function(t,e,i){"use strict";var n=i("1626");t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},"88a7":function(t,e,i){"use strict";var n=i("cb2d"),r=i("e330"),s=i("577e"),o=i("d6d6"),a=URLSearchParams,l=a.prototype,c=r(l.append),u=r(l["delete"]),h=r(l.forEach),d=r([].push),p=new a("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&n(l,"delete",(function(t){var e=arguments.length,i=e<2?void 0:arguments[1];if(e&&void 0===i)return u(this,t);var n=[];h(this,(function(t,e){d(n,{key:e,value:t})})),o(e,1);var r,a=s(t),l=s(i),p=0,f=0,m=!1,g=n.length;while(p<g)r=n[p++],m||r.key===a?(m=!0,u(this,r.key)):f++;while(f<g)r=n[f++],r.key===a&&r.value===l||c(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},8925:function(t,e,i){"use strict";var n=i("e330"),r=i("1626"),s=i("c6cd"),o=n(Function.toString);r(s.inspectSource)||(s.inspectSource=function(t){return o(t)}),t.exports=s.inspectSource},"8a6c":function(t,e,i){},"8b00":function(t,e,i){"use strict";var n=i("23e7"),r=i("68df"),s=i("dad2");n({target:"Set",proto:!0,real:!0,forced:!s("isSubsetOf")},{isSubsetOf:r})},"8bbf":function(e,i){e.exports=t},"8e16":function(t,e,i){"use strict";var n=i("7282"),r=i("cb27");t.exports=n(r.proto,"size","get")||function(t){return t.size}},"907a":function(t,e,i){"use strict";var n=i("ebb5"),r=i("07fa"),s=i("5926"),o=n.aTypedArray,a=n.exportTypedArrayMethod;a("at",(function(t){var e=o(this),i=r(e),n=s(t),a=n>=0?n:i+n;return a<0||a>=i?void 0:e[a]}))},"90e3":function(t,e,i){"use strict";var n=i("e330"),r=0,s=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++r+s,36)}},"910d":function(t,e,i){"use strict";var n=i("23e7"),r=i("c65b"),s=i("59ed"),o=i("825a"),a=i("46c4"),l=i("c5cc"),c=i("9bdd"),u=i("c430"),h=l((function(){var t,e,i,n=this.iterator,s=this.predicate,a=this.next;while(1){if(t=o(r(a,n)),e=this.done=!!t.done,e)return;if(i=t.value,c(n,s,[i,this.counter++],!0))return i}}));n({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(t){return o(this),s(t),new h(a(this),{predicate:t})}})},9112:function(t,e,i){"use strict";var n=i("83ab"),r=i("9bf2"),s=i("5c6c");t.exports=n?function(t,e,i){return r.f(t,e,s(1,i))}:function(t,e,i){return t[e]=i,t}},9152:function(t,e){
10
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
11
+ e.read=function(t,e,i,n,r){var s,o,a=8*r-n-1,l=(1<<a)-1,c=l>>1,u=-7,h=i?r-1:0,d=i?-1:1,p=t[e+h];for(h+=d,s=p&(1<<-u)-1,p>>=-u,u+=a;u>0;s=256*s+t[e+h],h+=d,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=n;u>0;o=256*o+t[e+h],h+=d,u-=8);if(0===s)s=1-c;else{if(s===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),s-=c}return(p?-1:1)*o*Math.pow(2,s-n)},e.write=function(t,e,i,n,r,s){var o,a,l,c=8*s-r-1,u=(1<<c)-1,h=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,f=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),e+=o+h>=1?d/l:d*Math.pow(2,1-h),e*l>=2&&(o++,l/=2),o+h>=u?(a=0,o=u):o+h>=1?(a=(e*l-1)*Math.pow(2,r),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),o=0));r>=8;t[i+p]=255&a,p+=f,a/=256,r-=8);for(o=o<<r|a,c+=r;c>0;t[i+p]=255&o,p+=f,o/=256,c-=8);t[i+p-f]|=128*m}},"93dc":function(t,e){t.exports=function(t,e,i){var n;if("function"===typeof t.exports?(n=t.exports.extendOptions,n[e]=t.exports.options[e]):n=t.options,void 0===n[e])n[e]=i;else{var r=n[e];for(var s in i)void 0===r[s]&&(r[s]=i[s])}}},9485:function(t,e,i){"use strict";var n=i("23e7"),r=i("2266"),s=i("59ed"),o=i("825a"),a=i("46c4"),l=TypeError;n({target:"Iterator",proto:!0,real:!0},{reduce:function(t){o(this),s(t);var e=a(this),i=arguments.length<2,n=i?void 0:arguments[1],c=0;if(r(e,(function(e){i?(i=!1,n=e):n=t(n,e,c),c++}),{IS_RECORD:!0}),i)throw new l("Reduce of empty iterator with no initial value");return n}})},"94ca":function(t,e,i){"use strict";var n=i("d039"),r=i("1626"),s=/#|\.prototype\./,o=function(t,e){var i=l[a(t)];return i===u||i!==c&&(r(e)?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(s,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},"953b":function(t,e,i){"use strict";var n=i("dc19"),r=i("cb27"),s=i("8e16"),o=i("7f65"),a=i("384f"),l=i("5388"),c=r.Set,u=r.add,h=r.has;t.exports=function(t){var e=n(this),i=o(t),r=new c;return s(e)>i.size?l(i.getIterator(),(function(t){h(e,t)&&u(r,t)})):a(e,(function(t){i.includes(t)&&u(r,t)})),r}},"965b":function(t,e,i){"use strict";i("3ecc")},"986a":function(t,e,i){"use strict";var n=i("ebb5"),r=i("a258").findLast,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("findLast",(function(t){return r(s(this),t,arguments.length>1?arguments[1]:void 0)}))},9961:function(t,e,i){"use strict";var n=i("dc19"),r=i("cb27"),s=i("83b9"),o=i("7f65"),a=i("5388"),l=r.add,c=r.has,u=r.remove;t.exports=function(t){var e=n(this),i=o(t).getIterator(),r=s(e);return a(i,(function(t){c(e,t)?u(r,t):l(r,t)})),r}},"9a1f":function(t,e,i){"use strict";var n=i("c65b"),r=i("59ed"),s=i("825a"),o=i("0d51"),a=i("35a1"),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?a(t):e;if(r(i))return s(n(i,t));throw new l(o(t)+" is not iterable")}},"9a9a":function(t,e,i){"use strict";i("a732")},"9adc":function(t,e,i){"use strict";var n=i("8558");t.exports="NODE"===n},"9bdd":function(t,e,i){"use strict";var n=i("825a"),r=i("2a62");t.exports=function(t,e,i,s){try{return s?e(n(i)[0],i[1]):e(i)}catch(o){r(t,"throw",o)}}},"9bf2":function(t,e,i){"use strict";var n=i("83ab"),r=i("0cfb"),s=i("aed9"),o=i("825a"),a=i("a04b"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";e.f=n?s?function(t,e,i){if(o(t),e=a(e),o(i),"function"===typeof t&&"prototype"===e&&"value"in i&&p in i&&!i[p]){var n=u(t,e);n&&n[p]&&(t[e]=i.value,i={configurable:d in i?i[d]:n[d],enumerable:h in i?i[h]:n[h],writable:!1})}return c(t,e,i)}:c:function(t,e,i){if(o(t),e=a(e),o(i),r)try{return c(t,e,i)}catch(n){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},"9d4a":function(t,e,i){"use strict";i("9485")},"9f8a":function(t,e,i){"use strict";i("7c1c")},a04b:function(t,e,i){"use strict";var n=i("c04e"),r=i("d9b5");t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}},a258:function(t,e,i){"use strict";var n=i("0366"),r=i("44ad"),s=i("7b0b"),o=i("07fa"),a=function(t){var e=1===t;return function(i,a,l){var c,u,h=s(i),d=r(h),p=o(d),f=n(a,l);while(p-- >0)if(c=d[p],u=f(c,p,h),u)switch(t){case 0:return c;case 1:return p}return e?-1:void 0}};t.exports={findLast:a(0),findLastIndex:a(1)}},a4e7:function(t,e,i){"use strict";var n=i("23e7"),r=i("395e"),s=i("dad2");n({target:"Set",proto:!0,real:!0,forced:!s("isSupersetOf")},{isSupersetOf:r})},a573:function(t,e,i){"use strict";i("ab43")},a5f7:function(t,e,i){"use strict";var n=i("dc19"),r=i("cb27"),s=i("83b9"),o=i("8e16"),a=i("7f65"),l=i("384f"),c=i("5388"),u=r.has,h=r.remove;t.exports=function(t){var e=n(this),i=a(t),r=s(e);return o(e)<=i.size?l(e,(function(t){i.includes(t)&&h(r,t)})):c(i.getIterator(),(function(t){u(e,t)&&h(r,t)})),r}},a640:function(t,e,i){"use strict";var n=i("d039");t.exports=function(t,e){var i=[][t];return!!i&&n((function(){i.call(null,e||function(){return 1},1)}))}},a732:function(t,e,i){"use strict";var n=i("23e7"),r=i("2266"),s=i("59ed"),o=i("825a"),a=i("46c4");n({target:"Iterator",proto:!0,real:!0},{some:function(t){o(this),s(t);var e=a(this),i=0;return r(e,(function(e,n){if(t(e,i++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},aa47:function(t,e,i){"use strict";
12
+ /**!
13
+ * Sortable 1.10.2
14
+ * @author RubaXa <trash@rubaxa.org>
15
+ * @author owenm <owen23355@gmail.com>
16
+ * @license MIT
17
+ */
18
+ function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},s.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},n=Object.keys(i);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter((function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})))),n.forEach((function(e){r(t,e,i[e])}))}return t}function a(t,e){if(null==t)return{};var i,n,r={},s=Object.keys(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||(r[i]=t[i]);return r}function l(t,e){if(null==t)return{};var i,n,r=a(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function c(t){return u(t)||h(t)||d()}function u(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}function h(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}i.r(e),i.d(e,"MultiDrag",(function(){return Le})),i.d(e,"Sortable",(function(){return Zt})),i.d(e,"Swap",(function(){return Te}));var p="1.10.2";function f(t){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var m=f(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),g=f(/Edge/i),v=f(/firefox/i),b=f(/safari/i)&&!f(/chrome/i)&&!f(/android/i),_=f(/iP(ad|od|hone)/i),y=f(/chrome/i)&&f(/android/i),w={capture:!1,passive:!1};function S(t,e,i){t.addEventListener(e,i,!m&&w)}function x(t,e,i){t.removeEventListener(e,i,!m&&w)}function C(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(i){return!1}return!1}}function k(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function T(t,e,i,n){if(t){i=i||document;do{if(null!=e&&(">"===e[0]?t.parentNode===i&&C(t,e):C(t,e))||n&&t===i)return t;if(t===i)break}while(t=k(t))}return null}var q,E=/\s+/g;function M(t,e,i){if(t&&e)if(t.classList)t.classList[i?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(E," ").replace(" "+e+" "," ");t.className=(n+(i?" "+e:"")).replace(E," ")}}function I(t,e,i){var n=t&&t.style;if(n){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=i+("string"===typeof i?"":"px")}}function A(t,e){var i="";if("string"===typeof t)i=t;else do{var n=I(t,"transform");n&&"none"!==n&&(i=n+" "+i)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(i)}function N(t,e,i){if(t){var n=t.getElementsByTagName(e),r=0,s=n.length;if(i)for(;r<s;r++)i(n[r],r);return n}return[]}function $(){var t=document.scrollingElement;return t||document.documentElement}function D(t,e,i,n,r){if(t.getBoundingClientRect||t===window){var s,o,a,l,c,u,h;if(t!==window&&t!==$()?(s=t.getBoundingClientRect(),o=s.top,a=s.left,l=s.bottom,c=s.right,u=s.height,h=s.width):(o=0,a=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,h=window.innerWidth),(e||i)&&t!==window&&(r=r||t.parentNode,!m))do{if(r&&r.getBoundingClientRect&&("none"!==I(r,"transform")||i&&"static"!==I(r,"position"))){var d=r.getBoundingClientRect();o-=d.top+parseInt(I(r,"border-top-width")),a-=d.left+parseInt(I(r,"border-left-width")),l=o+s.height,c=a+s.width;break}}while(r=r.parentNode);if(n&&t!==window){var p=A(r||t),f=p&&p.a,g=p&&p.d;p&&(o/=g,a/=f,h/=f,u/=g,l=o+u,c=a+h)}return{top:o,left:a,bottom:l,right:c,width:h,height:u}}}function R(t,e,i){var n=z(t,!0),r=D(t)[e];while(n){var s=D(n)[i],o=void 0;if(o="top"===i||"left"===i?r>=s:r<=s,!o)return n;if(n===$())break;n=z(n,!1)}return!1}function P(t,e,i){var n=0,r=0,s=t.children;while(r<s.length){if("none"!==s[r].style.display&&s[r]!==Zt.ghost&&s[r]!==Zt.dragged&&T(s[r],i.draggable,t,!1)){if(n===e)return s[r];n++}r++}return null}function O(t,e){var i=t.lastElementChild;while(i&&(i===Zt.ghost||"none"===I(i,"display")||e&&!C(i,e)))i=i.previousElementSibling;return i||null}function L(t,e){var i=0;if(!t||!t.parentNode)return-1;while(t=t.previousElementSibling)"TEMPLATE"===t.nodeName.toUpperCase()||t===Zt.clone||e&&!C(t,e)||i++;return i}function B(t){var e=0,i=0,n=$();if(t)do{var r=A(t),s=r.a,o=r.d;e+=t.scrollLeft*s,i+=t.scrollTop*o}while(t!==n&&(t=t.parentNode));return[e,i]}function j(t,e){for(var i in t)if(t.hasOwnProperty(i))for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[i][n])return Number(i);return-1}function z(t,e){if(!t||!t.getBoundingClientRect)return $();var i=t,n=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var r=I(i);if(i.clientWidth<i.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!i.getBoundingClientRect||i===document.body)return $();if(n||e)return i;n=!0}}}while(i=i.parentNode);return $()}function F(t,e){if(t&&e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function V(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function H(t,e){return function(){if(!q){var i=arguments,n=this;1===i.length?t.call(n,i[0]):t.apply(n,i),q=setTimeout((function(){q=void 0}),e)}}}function U(){clearTimeout(q),q=void 0}function Q(t,e,i){t.scrollLeft+=e,t.scrollTop+=i}function W(t){var e=window.Polymer,i=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}function Y(t,e){I(t,"position","absolute"),I(t,"top",e.top),I(t,"left",e.left),I(t,"width",e.width),I(t,"height",e.height)}function K(t){I(t,"position",""),I(t,"top",""),I(t,"left",""),I(t,"width",""),I(t,"height","")}var X="Sortable"+(new Date).getTime();function G(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){var t=[].slice.call(this.el.children);t.forEach((function(t){if("none"!==I(t,"display")&&t!==Zt.ghost){e.push({target:t,rect:D(t)});var i=o({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=A(t,!0);n&&(i.top-=n.f,i.left-=n.e)}t.fromRect=i}}))}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(j(e,{target:t}),1)},animateAll:function(i){var n=this;if(!this.options.animation)return clearTimeout(t),void("function"===typeof i&&i());var r=!1,s=0;e.forEach((function(t){var e=0,i=t.target,o=i.fromRect,a=D(i),l=i.prevFromRect,c=i.prevToRect,u=t.rect,h=A(i,!0);h&&(a.top-=h.f,a.left-=h.e),i.toRect=a,i.thisAnimationDuration&&V(l,a)&&!V(o,a)&&(u.top-a.top)/(u.left-a.left)===(o.top-a.top)/(o.left-a.left)&&(e=J(u,l,c,n.options)),V(a,o)||(i.prevFromRect=o,i.prevToRect=a,e||(e=n.options.animation),n.animate(i,u,a,e)),e&&(r=!0,s=Math.max(s,e),clearTimeout(i.animationResetTimer),i.animationResetTimer=setTimeout((function(){i.animationTime=0,i.prevFromRect=null,i.fromRect=null,i.prevToRect=null,i.thisAnimationDuration=null}),e),i.thisAnimationDuration=e)})),clearTimeout(t),r?t=setTimeout((function(){"function"===typeof i&&i()}),s):"function"===typeof i&&i(),e=[]},animate:function(t,e,i,n){if(n){I(t,"transition",""),I(t,"transform","");var r=A(this.el),s=r&&r.a,o=r&&r.d,a=(e.left-i.left)/(s||1),l=(e.top-i.top)/(o||1);t.animatingX=!!a,t.animatingY=!!l,I(t,"transform","translate3d("+a+"px,"+l+"px,0)"),Z(t),I(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),I(t,"transform","translate3d(0,0,0)"),"number"===typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){I(t,"transition",""),I(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}}function Z(t){return t.offsetWidth}function J(t,e,i,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))*n.animation}var tt=[],et={initializeByDefault:!0},it={mount:function(t){for(var e in et)et.hasOwnProperty(e)&&!(e in t)&&(t[e]=et[e]);tt.push(t)},pluginEvent:function(t,e,i){var n=this;this.eventCanceled=!1,i.cancel=function(){n.eventCanceled=!0};var r=t+"Global";tt.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][r]&&e[n.pluginName][r](o({sortable:e},i)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](o({sortable:e},i)))}))},initializePlugins:function(t,e,i,n){for(var r in tt.forEach((function(n){var r=n.pluginName;if(t.options[r]||n.initializeByDefault){var o=new n(t,e,t.options);o.sortable=t,o.options=t.options,t[r]=o,s(i,o.defaults)}})),t.options)if(t.options.hasOwnProperty(r)){var o=this.modifyOption(t,r,t.options[r]);"undefined"!==typeof o&&(t.options[r]=o)}},getEventProperties:function(t,e){var i={};return tt.forEach((function(n){"function"===typeof n.eventProperties&&s(i,n.eventProperties.call(e[n.pluginName],t))})),i},modifyOption:function(t,e,i){var n;return tt.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"===typeof r.optionListeners[e]&&(n=r.optionListeners[e].call(t[r.pluginName],i))})),n}};function nt(t){var e=t.sortable,i=t.rootEl,n=t.name,r=t.targetEl,s=t.cloneEl,a=t.toEl,l=t.fromEl,c=t.oldIndex,u=t.newIndex,h=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,f=t.putSortable,v=t.extraEventProperties;if(e=e||i&&i[X],e){var b,_=e.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||m||g?(b=document.createEvent("Event"),b.initEvent(n,!0,!0)):b=new CustomEvent(n,{bubbles:!0,cancelable:!0}),b.to=a||i,b.from=l||i,b.item=r||i,b.clone=s,b.oldIndex=c,b.newIndex=u,b.oldDraggableIndex=h,b.newDraggableIndex=d,b.originalEvent=p,b.pullMode=f?f.lastPutMode:void 0;var w=o({},v,it.getEventProperties(n,e));for(var S in w)b[S]=w[S];i&&i.dispatchEvent(b),_[y]&&_[y].call(e,b)}}var rt=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.evt,r=l(i,["evt"]);it.pluginEvent.bind(Zt)(t,e,o({dragEl:ot,parentEl:at,ghostEl:lt,rootEl:ct,nextEl:ut,lastDownEl:ht,cloneEl:dt,cloneHidden:pt,dragStarted:Tt,putSortable:_t,activeSortable:Zt.active,originalEvent:n,oldIndex:ft,oldDraggableIndex:gt,newIndex:mt,newDraggableIndex:vt,hideGhostForTarget:Yt,unhideGhostForTarget:Kt,cloneNowHidden:function(){pt=!0},cloneNowShown:function(){pt=!1},dispatchSortableEvent:function(t){st({sortable:e,name:t,originalEvent:n})}},r))};function st(t){nt(o({putSortable:_t,cloneEl:dt,targetEl:ot,rootEl:ct,oldIndex:ft,oldDraggableIndex:gt,newIndex:mt,newDraggableIndex:vt},t))}var ot,at,lt,ct,ut,ht,dt,pt,ft,mt,gt,vt,bt,_t,yt,wt,St,xt,Ct,kt,Tt,qt,Et,Mt,It,At=!1,Nt=!1,$t=[],Dt=!1,Rt=!1,Pt=[],Ot=!1,Lt=[],Bt="undefined"!==typeof document,jt=_,zt=g||m?"cssFloat":"float",Ft=Bt&&!y&&!_&&"draggable"in document.createElement("div"),Vt=function(){if(Bt){if(m)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ht=function(t,e){var i=I(t),n=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=P(t,0,e),s=P(t,1,e),o=r&&I(r),a=s&&I(s),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+D(r).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+D(s).width;if("flex"===i.display)return"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal";if("grid"===i.display)return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&o["float"]&&"none"!==o["float"]){var u="left"===o["float"]?"left":"right";return!s||"both"!==a.clear&&a.clear!==u?"horizontal":"vertical"}return r&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=n&&"none"===i[zt]||s&&"none"===i[zt]&&l+c>n)?"vertical":"horizontal"},Ut=function(t,e,i){var n=i?t.left:t.top,r=i?t.right:t.bottom,s=i?t.width:t.height,o=i?e.left:e.top,a=i?e.right:e.bottom,l=i?e.width:e.height;return n===o||r===a||n+s/2===o+l/2},Qt=function(t,e){var i;return $t.some((function(n){if(!O(n)){var r=D(n),s=n[X].options.emptyInsertThreshold,o=t>=r.left-s&&t<=r.right+s,a=e>=r.top-s&&e<=r.bottom+s;return s&&o&&a?i=n:void 0}})),i},Wt=function(t){function e(t,i){return function(n,r,s,o){var a=n.options.group.name&&r.options.group.name&&n.options.group.name===r.options.group.name;if(null==t&&(i||a))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"===typeof t)return e(t(n,r,s,o),i)(n,r,s,o);var l=(i?n:r).options.group.name;return!0===t||"string"===typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var i={},r=t.group;r&&"object"==n(r)||(r={name:r}),i.name=r.name,i.checkPull=e(r.pull,!0),i.checkPut=e(r.put),i.revertClone=r.revertClone,t.group=i},Yt=function(){!Vt&&lt&&I(lt,"display","none")},Kt=function(){!Vt&&lt&&I(lt,"display","")};Bt&&document.addEventListener("click",(function(t){if(Nt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Nt=!1,!1}),!0);var Xt=function(t){if(ot){t=t.touches?t.touches[0]:t;var e=Qt(t.clientX,t.clientY);if(e){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[X]._onDragOver(i)}}},Gt=function(t){ot&&ot.parentNode[X]._isOutsideThisEl(t.target)};function Zt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=s({},e),t[X]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ht(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.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!==Zt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var n in it.initializePlugins(this,t,i),i)!(n in e)&&(e[n]=i[n]);for(var r in Wt(e),this)"_"===r.charAt(0)&&"function"===typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&Ft,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?S(t,"pointerdown",this._onTapStart):(S(t,"mousedown",this._onTapStart),S(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(S(t,"dragover",this),S(t,"dragenter",this)),$t.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),s(this,G())}function Jt(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function te(t,e,i,n,r,s,o,a){var l,c,u=t[X],h=u.options.onMove;return!window.CustomEvent||m||g?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=i,l.draggedRect=n,l.related=r||e,l.relatedRect=s||D(e),l.willInsertAfter=a,l.originalEvent=o,t.dispatchEvent(l),h&&(c=h.call(u,l,o)),c}function ee(t){t.draggable=!1}function ie(){Ot=!1}function ne(t,e,i){var n=D(O(i.el,i.options.draggable)),r=10;return e?t.clientX>n.right+r||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+r}function re(t,e,i,n,r,s,o,a){var l=n?t.clientY:t.clientX,c=n?i.height:i.width,u=n?i.top:i.left,h=n?i.bottom:i.right,d=!1;if(!o)if(a&&Mt<c*r){if(!Dt&&(1===Et?l>u+c*s/2:l<h-c*s/2)&&(Dt=!0),Dt)d=!0;else if(1===Et?l<u+Mt:l>h-Mt)return-Et}else if(l>u+c*(1-r)/2&&l<h-c*(1-r)/2)return se(e);return d=d||o,d&&(l<u+c*s/2||l>h-c*s/2)?l>u+c/2?1:-1:0}function se(t){return L(ot)<L(t)?1:-1}function oe(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,n=0;while(i--)n+=e.charCodeAt(i);return n.toString(36)}function ae(t){Lt.length=0;var e=t.getElementsByTagName("input"),i=e.length;while(i--){var n=e[i];n.checked&&Lt.push(n)}}function le(t){return setTimeout(t,0)}function ce(t){return clearTimeout(t)}Zt.prototype={constructor:Zt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(qt=null)},_getDirection:function(t,e){return"function"===typeof this.options.direction?this.options.direction.call(this,t,e,ot):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,n=this.options,r=n.preventOnFilter,s=t.type,o=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,a=(o||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,c=n.filter;if(ae(i),!ot&&!(/mousedown|pointerdown/.test(s)&&0!==t.button||n.disabled)&&!l.isContentEditable&&(a=T(a,n.draggable,i,!1),(!a||!a.animated)&&ht!==a)){if(ft=L(a),gt=L(a,n.draggable),"function"===typeof c){if(c.call(this,t,a,this))return st({sortable:e,rootEl:l,name:"filter",targetEl:a,toEl:i,fromEl:i}),rt("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=T(l,n.trim(),i,!1),n)return st({sortable:e,rootEl:n,name:"filter",targetEl:a,fromEl:i,toEl:i}),rt("filter",e,{evt:t}),!0})),c))return void(r&&t.cancelable&&t.preventDefault());n.handle&&!T(l,n.handle,i,!1)||this._prepareDragStart(t,o,a)}}},_prepareDragStart:function(t,e,i){var n,r=this,s=r.el,o=r.options,a=s.ownerDocument;if(i&&!ot&&i.parentNode===s){var l=D(i);if(ct=s,ot=i,at=ot.parentNode,ut=ot.nextSibling,ht=i,bt=o.group,Zt.dragged=ot,yt={target:ot,clientX:(e||t).clientX,clientY:(e||t).clientY},Ct=yt.clientX-l.left,kt=yt.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,ot.style["will-change"]="all",n=function(){rt("delayEnded",r,{evt:t}),Zt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!v&&r.nativeDraggable&&(ot.draggable=!0),r._triggerDragStart(t,e),st({sortable:r,name:"choose",originalEvent:t}),M(ot,o.chosenClass,!0))},o.ignore.split(",").forEach((function(t){N(ot,t.trim(),ee)})),S(a,"dragover",Xt),S(a,"mousemove",Xt),S(a,"touchmove",Xt),S(a,"mouseup",r._onDrop),S(a,"touchend",r._onDrop),S(a,"touchcancel",r._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ot.draggable=!0),rt("delayStart",this,{evt:t}),!o.delay||o.delayOnTouchOnly&&!e||this.nativeDraggable&&(g||m))n();else{if(Zt.eventCanceled)return void this._onDrop();S(a,"mouseup",r._disableDelayedDrag),S(a,"touchend",r._disableDelayedDrag),S(a,"touchcancel",r._disableDelayedDrag),S(a,"mousemove",r._delayedDragTouchMoveHandler),S(a,"touchmove",r._delayedDragTouchMoveHandler),o.supportPointer&&S(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(n,o.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ot&&ee(ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;x(t,"mouseup",this._disableDelayedDrag),x(t,"touchend",this._disableDelayedDrag),x(t,"touchcancel",this._disableDelayedDrag),x(t,"mousemove",this._delayedDragTouchMoveHandler),x(t,"touchmove",this._delayedDragTouchMoveHandler),x(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?S(document,"pointermove",this._onTouchMove):S(document,e?"touchmove":"mousemove",this._onTouchMove):(S(ot,"dragend",this),S(ct,"dragstart",this._onDragStart));try{document.selection?le((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(i){}},_dragStarted:function(t,e){if(At=!1,ct&&ot){rt("dragStarted",this,{evt:e}),this.nativeDraggable&&S(document,"dragover",Gt);var i=this.options;!t&&M(ot,i.dragClass,!1),M(ot,i.ghostClass,!0),Zt.active=this,t&&this._appendGhost(),st({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(wt){this._lastX=wt.clientX,this._lastY=wt.clientY,Yt();var t=document.elementFromPoint(wt.clientX,wt.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(wt.clientX,wt.clientY),t===e)break;e=t}if(ot.parentNode[X]._isOutsideThisEl(t),e)do{if(e[X]){var i=void 0;if(i=e[X]._onDragOver({clientX:wt.clientX,clientY:wt.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Kt()}},_onTouchMove:function(t){if(yt){var e=this.options,i=e.fallbackTolerance,n=e.fallbackOffset,r=t.touches?t.touches[0]:t,s=lt&&A(lt,!0),o=lt&&s&&s.a,a=lt&&s&&s.d,l=jt&&It&&B(It),c=(r.clientX-yt.clientX+n.x)/(o||1)+(l?l[0]-Pt[0]:0)/(o||1),u=(r.clientY-yt.clientY+n.y)/(a||1)+(l?l[1]-Pt[1]:0)/(a||1);if(!Zt.active&&!At){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(lt){s?(s.e+=c-(St||0),s.f+=u-(xt||0)):s={a:1,b:0,c:0,d:1,e:c,f:u};var h="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");I(lt,"webkitTransform",h),I(lt,"mozTransform",h),I(lt,"msTransform",h),I(lt,"transform",h),St=c,xt=u,wt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!lt){var t=this.options.fallbackOnBody?document.body:ct,e=D(ot,!0,jt,!0,t),i=this.options;if(jt){It=t;while("static"===I(It,"position")&&"none"===I(It,"transform")&&It!==document)It=It.parentNode;It!==document.body&&It!==document.documentElement?(It===document&&(It=$()),e.top+=It.scrollTop,e.left+=It.scrollLeft):It=$(),Pt=B(It)}lt=ot.cloneNode(!0),M(lt,i.ghostClass,!1),M(lt,i.fallbackClass,!0),M(lt,i.dragClass,!0),I(lt,"transition",""),I(lt,"transform",""),I(lt,"box-sizing","border-box"),I(lt,"margin",0),I(lt,"top",e.top),I(lt,"left",e.left),I(lt,"width",e.width),I(lt,"height",e.height),I(lt,"opacity","0.8"),I(lt,"position",jt?"absolute":"fixed"),I(lt,"zIndex","100000"),I(lt,"pointerEvents","none"),Zt.ghost=lt,t.appendChild(lt),I(lt,"transform-origin",Ct/parseInt(lt.style.width)*100+"% "+kt/parseInt(lt.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,n=t.dataTransfer,r=i.options;rt("dragStart",this,{evt:t}),Zt.eventCanceled?this._onDrop():(rt("setupClone",this),Zt.eventCanceled||(dt=W(ot),dt.draggable=!1,dt.style["will-change"]="",this._hideClone(),M(dt,this.options.chosenClass,!1),Zt.clone=dt),i.cloneId=le((function(){rt("clone",i),Zt.eventCanceled||(i.options.removeCloneOnHide||ct.insertBefore(dt,ot),i._hideClone(),st({sortable:i,name:"clone"}))})),!e&&M(ot,r.dragClass,!0),e?(Nt=!0,i._loopId=setInterval(i._emulateDragOver,50)):(x(document,"mouseup",i._onDrop),x(document,"touchend",i._onDrop),x(document,"touchcancel",i._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(i,n,ot)),S(document,"drop",i),I(ot,"transform","translateZ(0)")),At=!0,i._dragStartId=le(i._dragStarted.bind(i,e,t)),S(document,"selectstart",i),Tt=!0,b&&I(document.body,"user-select","none"))},_onDragOver:function(t){var e,i,n,r,s=this.el,a=t.target,l=this.options,c=l.group,u=Zt.active,h=bt===c,d=l.sort,p=_t||u,f=this,m=!1;if(!Ot){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=T(a,l.draggable,s,!0),N("dragOver"),Zt.eventCanceled)return m;if(ot.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||f._ignoreWhileAnimating===a)return P(!1);if(Nt=!1,u&&!l.disabled&&(h?d||(n=!ct.contains(ot)):_t===this||(this.lastPutMode=bt.checkPull(this,u,ot,t))&&c.checkPut(this,u,ot,t))){if(r="vertical"===this._getDirection(t,a),e=D(ot),N("dragOverValid"),Zt.eventCanceled)return m;if(n)return at=ct,$(),this._hideClone(),N("revert"),Zt.eventCanceled||(ut?ct.insertBefore(ot,ut):ct.appendChild(ot)),P(!0);var g=O(s,l.draggable);if(!g||ne(t,r,this)&&!g.animated){if(g===ot)return P(!1);if(g&&s===t.target&&(a=g),a&&(i=D(a)),!1!==te(ct,s,ot,e,a,i,t,!!a))return $(),s.appendChild(ot),at=s,B(),P(!0)}else if(a.parentNode===s){i=D(a);var v,b,_=0,y=ot.parentNode!==s,w=!Ut(ot.animated&&ot.toRect||e,a.animated&&a.toRect||i,r),S=r?"top":"left",x=R(a,"top","top")||R(ot,"top","top"),C=x?x.scrollTop:void 0;if(qt!==a&&(v=i[S],Dt=!1,Rt=!w&&l.invertSwap||y),_=re(t,a,i,r,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Rt,qt===a),0!==_){var k=L(ot);do{k-=_,b=at.children[k]}while(b&&("none"===I(b,"display")||b===lt))}if(0===_||b===a)return P(!1);qt=a,Et=_;var q=a.nextElementSibling,E=!1;E=1===_;var A=te(ct,s,ot,e,a,i,t,E);if(!1!==A)return 1!==A&&-1!==A||(E=1===A),Ot=!0,setTimeout(ie,30),$(),E&&!q?s.appendChild(ot):a.parentNode.insertBefore(ot,E?q:a),x&&Q(x,0,C-x.scrollTop),at=ot.parentNode,void 0===v||Rt||(Mt=Math.abs(v-D(a)[S])),B(),P(!0)}if(s.contains(ot))return P(!1)}return!1}function N(l,c){rt(l,f,o({evt:t,isOwner:h,axis:r?"vertical":"horizontal",revert:n,dragRect:e,targetRect:i,canSort:d,fromSortable:p,target:a,completed:P,onMove:function(i,n){return te(ct,s,ot,e,i,D(i),t,n)},changed:B},c))}function $(){N("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function P(e){return N("dragOverCompleted",{insertion:e}),e&&(h?u._hideClone():u._showClone(f),f!==p&&(M(ot,_t?_t.options.ghostClass:u.options.ghostClass,!1),M(ot,l.ghostClass,!0)),_t!==f&&f!==Zt.active?_t=f:f===Zt.active&&_t&&(_t=null),p===f&&(f._ignoreWhileAnimating=a),f.animateAll((function(){N("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===ot&&!ot.animated||a===s&&!a.animated)&&(qt=null),l.dragoverBubble||t.rootEl||a===document||(ot.parentNode[X]._isOutsideThisEl(t.target),!e&&Xt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function B(){mt=L(ot),vt=L(ot,l.draggable),st({sortable:f,name:"change",toEl:s,newIndex:mt,newDraggableIndex:vt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){x(document,"mousemove",this._onTouchMove),x(document,"touchmove",this._onTouchMove),x(document,"pointermove",this._onTouchMove),x(document,"dragover",Xt),x(document,"mousemove",Xt),x(document,"touchmove",Xt)},_offUpEvents:function(){var t=this.el.ownerDocument;x(t,"mouseup",this._onDrop),x(t,"touchend",this._onDrop),x(t,"pointerup",this._onDrop),x(t,"touchcancel",this._onDrop),x(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;mt=L(ot),vt=L(ot,i.draggable),rt("drop",this,{evt:t}),at=ot&&ot.parentNode,mt=L(ot),vt=L(ot,i.draggable),Zt.eventCanceled||(At=!1,Rt=!1,Dt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ce(this.cloneId),ce(this._dragStartId),this.nativeDraggable&&(x(document,"drop",this),x(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),b&&I(document.body,"user-select",""),I(ot,"transform",""),t&&(Tt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),lt&&lt.parentNode&&lt.parentNode.removeChild(lt),(ct===at||_t&&"clone"!==_t.lastPutMode)&&dt&&dt.parentNode&&dt.parentNode.removeChild(dt),ot&&(this.nativeDraggable&&x(ot,"dragend",this),ee(ot),ot.style["will-change"]="",Tt&&!At&&M(ot,_t?_t.options.ghostClass:this.options.ghostClass,!1),M(ot,this.options.chosenClass,!1),st({sortable:this,name:"unchoose",toEl:at,newIndex:null,newDraggableIndex:null,originalEvent:t}),ct!==at?(mt>=0&&(st({rootEl:at,name:"add",toEl:at,fromEl:ct,originalEvent:t}),st({sortable:this,name:"remove",toEl:at,originalEvent:t}),st({rootEl:at,name:"sort",toEl:at,fromEl:ct,originalEvent:t}),st({sortable:this,name:"sort",toEl:at,originalEvent:t})),_t&&_t.save()):mt!==ft&&mt>=0&&(st({sortable:this,name:"update",toEl:at,originalEvent:t}),st({sortable:this,name:"sort",toEl:at,originalEvent:t})),Zt.active&&(null!=mt&&-1!==mt||(mt=ft,vt=gt),st({sortable:this,name:"end",toEl:at,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){rt("nulling",this),ct=ot=at=lt=ut=dt=ht=pt=yt=wt=Tt=mt=vt=ft=gt=qt=Et=_t=bt=Zt.dragged=Zt.ghost=Zt.clone=Zt.active=null,Lt.forEach((function(t){t.checked=!0})),Lt.length=St=xt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ot&&(this._onDragOver(t),Jt(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],i=this.el.children,n=0,r=i.length,s=this.options;n<r;n++)t=i[n],T(t,s.draggable,this.el,!1)&&e.push(t.getAttribute(s.dataIdAttr)||oe(t));return e},sort:function(t){var e={},i=this.el;this.toArray().forEach((function(t,n){var r=i.children[n];T(r,this.options.draggable,i,!1)&&(e[t]=r)}),this),t.forEach((function(t){e[t]&&(i.removeChild(e[t]),i.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return T(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(void 0===e)return i[t];var n=it.modifyOption(this,t,e);i[t]="undefined"!==typeof n?n:e,"group"===t&&Wt(i)},destroy:function(){rt("destroy",this);var t=this.el;t[X]=null,x(t,"mousedown",this._onTapStart),x(t,"touchstart",this._onTapStart),x(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(x(t,"dragover",this),x(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),$t.splice($t.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!pt){if(rt("hideClone",this),Zt.eventCanceled)return;I(dt,"display","none"),this.options.removeCloneOnHide&&dt.parentNode&&dt.parentNode.removeChild(dt),pt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(pt){if(rt("showClone",this),Zt.eventCanceled)return;ct.contains(ot)&&!this.options.group.revertClone?ct.insertBefore(dt,ot):ut?ct.insertBefore(dt,ut):ct.appendChild(dt),this.options.group.revertClone&&this.animate(ot,dt),I(dt,"display",""),pt=!1}}else this._hideClone()}},Bt&&S(document,"touchmove",(function(t){(Zt.active||At)&&t.cancelable&&t.preventDefault()})),Zt.utils={on:S,off:x,css:I,find:N,is:function(t,e){return!!T(t,e,t,!1)},extend:F,throttle:H,closest:T,toggleClass:M,clone:W,index:L,nextTick:le,cancelNextTick:ce,detectDirection:Ht,getChild:P},Zt.get=function(t){return t[X]},Zt.mount=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Zt.utils=o({},Zt.utils,t.utils)),it.mount(t)}))},Zt.create=function(t,e){return new Zt(t,e)},Zt.version=p;var ue,he,de,pe,fe,me,ge=[],ve=!1;function be(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):this.options.supportPointer?S(document,"pointermove",this._handleFallbackAutoScroll):e.touches?S(document,"touchmove",this._handleFallbackAutoScroll):S(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?x(document,"dragover",this._handleAutoScroll):(x(document,"pointermove",this._handleFallbackAutoScroll),x(document,"touchmove",this._handleFallbackAutoScroll),x(document,"mousemove",this._handleFallbackAutoScroll)),ye(),_e(),U()},nulling:function(){fe=he=ue=ve=me=de=pe=null,ge.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var i=this,n=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,s=document.elementFromPoint(n,r);if(fe=t,e||g||m||b){Se(t,this.options,s,e);var o=z(s,!0);!ve||me&&n===de&&r===pe||(me&&ye(),me=setInterval((function(){var s=z(document.elementFromPoint(n,r),!0);s!==o&&(o=s,_e()),Se(t,i.options,s,e)}),10),de=n,pe=r)}else{if(!this.options.bubbleScroll||z(s,!0)===$())return void _e();Se(t,this.options,z(s,!1),!1)}}},s(t,{pluginName:"scroll",initializeByDefault:!0})}function _e(){ge.forEach((function(t){clearInterval(t.pid)})),ge=[]}function ye(){clearInterval(me)}var we,Se=H((function(t,e,i,n){if(e.scroll){var r,s=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,c=$(),u=!1;he!==i&&(he=i,_e(),ue=e.scroll,r=e.scrollFn,!0===ue&&(ue=z(i,!0)));var h=0,d=ue;do{var p=d,f=D(p),m=f.top,g=f.bottom,v=f.left,b=f.right,_=f.width,y=f.height,w=void 0,S=void 0,x=p.scrollWidth,C=p.scrollHeight,k=I(p),T=p.scrollLeft,q=p.scrollTop;p===c?(w=_<x&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),S=y<C&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(w=_<x&&("auto"===k.overflowX||"scroll"===k.overflowX),S=y<C&&("auto"===k.overflowY||"scroll"===k.overflowY));var E=w&&(Math.abs(b-s)<=a&&T+_<x)-(Math.abs(v-s)<=a&&!!T),M=S&&(Math.abs(g-o)<=a&&q+y<C)-(Math.abs(m-o)<=a&&!!q);if(!ge[h])for(var A=0;A<=h;A++)ge[A]||(ge[A]={});ge[h].vx==E&&ge[h].vy==M&&ge[h].el===p||(ge[h].el=p,ge[h].vx=E,ge[h].vy=M,clearInterval(ge[h].pid),0==E&&0==M||(u=!0,ge[h].pid=setInterval(function(){n&&0===this.layer&&Zt.active._onTouchMove(fe);var e=ge[this.layer].vy?ge[this.layer].vy*l:0,i=ge[this.layer].vx?ge[this.layer].vx*l:0;"function"===typeof r&&"continue"!==r.call(Zt.dragged.parentNode[X],i,e,t,fe,ge[this.layer].el)||Q(ge[this.layer].el,i,e)}.bind({layer:h}),24))),h++}while(e.bubbleScroll&&d!==c&&(d=z(d,!1)));ve=u}}),30),xe=function(t){var e=t.originalEvent,i=t.putSortable,n=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,o=t.hideGhostForTarget,a=t.unhideGhostForTarget;if(e){var l=i||r;o();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);a(),l&&!l.el.contains(u)&&(s("spill"),this.onSpill({dragEl:n,putSortable:i}))}};function Ce(){}function ke(){}function Te(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;we=e},dragOverValid:function(t){var e=t.completed,i=t.target,n=t.onMove,r=t.activeSortable,s=t.changed,o=t.cancel;if(r.options.swap){var a=this.sortable.el,l=this.options;if(i&&i!==a){var c=we;!1!==n(i)?(M(i,l.swapClass,!0),we=i):we=null,c&&c!==we&&M(c,l.swapClass,!1)}s(),e(!0),o()}},drop:function(t){var e=t.activeSortable,i=t.putSortable,n=t.dragEl,r=i||this.sortable,s=this.options;we&&M(we,s.swapClass,!1),we&&(s.swap||i&&i.options.swap)&&n!==we&&(r.captureAnimationState(),r!==e&&e.captureAnimationState(),qe(n,we),r.animateAll(),r!==e&&e.animateAll())},nulling:function(){we=null}},s(t,{pluginName:"swap",eventProperties:function(){return{swapItem:we}}})}function qe(t,e){var i,n,r=t.parentNode,s=e.parentNode;r&&s&&!r.isEqualNode(e)&&!s.isEqualNode(t)&&(i=L(t),n=L(e),r.isEqualNode(s)&&i<n&&n++,r.insertBefore(e,r.children[i]),s.insertBefore(t,s.children[n]))}Ce.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var n=P(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:xe},s(Ce,{pluginName:"revertOnSpill"}),ke.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,n=i||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:xe},s(ke,{pluginName:"removeOnSpill"});var Ee,Me,Ie,Ae,Ne,$e=[],De=[],Re=!1,Pe=!1,Oe=!1;function Le(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?S(document,"pointerup",this._deselectMultiDrag):(S(document,"mouseup",this._deselectMultiDrag),S(document,"touchend",this._deselectMultiDrag)),S(document,"keydown",this._checkKeyDown),S(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,i){var n="";$e.length&&Me===t?$e.forEach((function(t,e){n+=(e?", ":"")+t.textContent})):n=i.textContent,e.setData("Text",n)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;Ie=e},delayEnded:function(){this.isMultiDrag=~$e.indexOf(Ie)},setupClone:function(t){var e=t.sortable,i=t.cancel;if(this.isMultiDrag){for(var n=0;n<$e.length;n++)De.push(W($e[n])),De[n].sortableIndex=$e[n].sortableIndex,De[n].draggable=!1,De[n].style["will-change"]="",M(De[n],this.options.selectedClass,!1),$e[n]===Ie&&M(De[n],this.options.chosenClass,!1);e._hideClone(),i()}},clone:function(t){var e=t.sortable,i=t.rootEl,n=t.dispatchSortableEvent,r=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||$e.length&&Me===e&&(je(!0,i),n("clone"),r()))},showClone:function(t){var e=t.cloneNowShown,i=t.rootEl,n=t.cancel;this.isMultiDrag&&(je(!1,i),De.forEach((function(t){I(t,"display","")})),e(),Ne=!1,n())},hideClone:function(t){var e=this,i=(t.sortable,t.cloneNowHidden),n=t.cancel;this.isMultiDrag&&(De.forEach((function(t){I(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),i(),Ne=!0,n())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&Me&&Me.multiDrag._deselectMultiDrag(),$e.forEach((function(t){t.sortableIndex=L(t)})),$e=$e.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),Oe=!0},dragStarted:function(t){var e=this,i=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){$e.forEach((function(t){t!==Ie&&I(t,"position","absolute")}));var n=D(Ie,!1,!0,!0);$e.forEach((function(t){t!==Ie&&Y(t,n)})),Pe=!0,Re=!0}i.animateAll((function(){Pe=!1,Re=!1,e.options.animation&&$e.forEach((function(t){K(t)})),e.options.sort&&ze()}))}},dragOver:function(t){var e=t.target,i=t.completed,n=t.cancel;Pe&&~$e.indexOf(e)&&(i(!1),n())},revert:function(t){var e=t.fromSortable,i=t.rootEl,n=t.sortable,r=t.dragRect;$e.length>1&&($e.forEach((function(t){n.addAnimationState({target:t,rect:Pe?D(t):r}),K(t),t.fromRect=r,e.removeAnimationState(t)})),Pe=!1,Be(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(t){var e=t.sortable,i=t.isOwner,n=t.insertion,r=t.activeSortable,s=t.parentEl,o=t.putSortable,a=this.options;if(n){if(i&&r._hideClone(),Re=!1,a.animation&&$e.length>1&&(Pe||!i&&!r.options.sort&&!o)){var l=D(Ie,!1,!0,!0);$e.forEach((function(t){t!==Ie&&(Y(t,l),s.appendChild(t))})),Pe=!0}if(!i)if(Pe||ze(),$e.length>1){var c=Ne;r._showClone(e),r.options.animation&&!Ne&&c&&De.forEach((function(t){r.addAnimationState({target:t,rect:Ae}),t.fromRect=Ae,t.thisAnimationDuration=null}))}else r._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,i=t.isOwner,n=t.activeSortable;if($e.forEach((function(t){t.thisAnimationDuration=null})),n.options.animation&&!i&&n.multiDrag.isMultiDrag){Ae=s({},e);var r=A(Ie,!0);Ae.top-=r.f,Ae.left-=r.e}},dragOverAnimationComplete:function(){Pe&&(Pe=!1,ze())},drop:function(t){var e=t.originalEvent,i=t.rootEl,n=t.parentEl,r=t.sortable,s=t.dispatchSortableEvent,o=t.oldIndex,a=t.putSortable,l=a||this.sortable;if(e){var c=this.options,u=n.children;if(!Oe)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),M(Ie,c.selectedClass,!~$e.indexOf(Ie)),~$e.indexOf(Ie))$e.splice($e.indexOf(Ie),1),Ee=null,nt({sortable:r,rootEl:i,name:"deselect",targetEl:Ie,originalEvt:e});else{if($e.push(Ie),nt({sortable:r,rootEl:i,name:"select",targetEl:Ie,originalEvt:e}),e.shiftKey&&Ee&&r.el.contains(Ee)){var h,d,p=L(Ee),f=L(Ie);if(~p&&~f&&p!==f)for(f>p?(d=p,h=f):(d=f,h=p+1);d<h;d++)~$e.indexOf(u[d])||(M(u[d],c.selectedClass,!0),$e.push(u[d]),nt({sortable:r,rootEl:i,name:"select",targetEl:u[d],originalEvt:e}))}else Ee=Ie;Me=l}if(Oe&&this.isMultiDrag){if((n[X].options.sort||n!==i)&&$e.length>1){var m=D(Ie),g=L(Ie,":not(."+this.options.selectedClass+")");if(!Re&&c.animation&&(Ie.thisAnimationDuration=null),l.captureAnimationState(),!Re&&(c.animation&&(Ie.fromRect=m,$e.forEach((function(t){if(t.thisAnimationDuration=null,t!==Ie){var e=Pe?D(t):m;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),ze(),$e.forEach((function(t){u[g]?n.insertBefore(t,u[g]):n.appendChild(t),g++})),o===L(Ie))){var v=!1;$e.forEach((function(t){t.sortableIndex===L(t)||(v=!0)})),v&&s("update")}$e.forEach((function(t){K(t)})),l.animateAll()}Me=l}(i===n||a&&"clone"!==a.lastPutMode)&&De.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=Oe=!1,De.length=0},destroyGlobal:function(){this._deselectMultiDrag(),x(document,"pointerup",this._deselectMultiDrag),x(document,"mouseup",this._deselectMultiDrag),x(document,"touchend",this._deselectMultiDrag),x(document,"keydown",this._checkKeyDown),x(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(("undefined"===typeof Oe||!Oe)&&Me===this.sortable&&(!t||!T(t.target,this.options.draggable,this.sortable.el,!1))&&(!t||0===t.button))while($e.length){var e=$e[0];M(e,this.options.selectedClass,!1),$e.shift(),nt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[X];e&&e.options.multiDrag&&!~$e.indexOf(t)&&(Me&&Me!==e&&(Me.multiDrag._deselectMultiDrag(),Me=e),M(t,e.options.selectedClass,!0),$e.push(t))},deselect:function(t){var e=t.parentNode[X],i=$e.indexOf(t);e&&e.options.multiDrag&&~i&&(M(t,e.options.selectedClass,!1),$e.splice(i,1))}},eventProperties:function(){var t=this,e=[],i=[];return $e.forEach((function(n){var r;e.push({multiDragElement:n,index:n.sortableIndex}),r=Pe&&n!==Ie?-1:Pe?L(n,":not(."+t.options.selectedClass+")"):L(n),i.push({multiDragElement:n,index:r})})),{items:c($e),clones:[].concat(De),oldIndicies:e,newIndicies:i}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function Be(t,e){$e.forEach((function(i,n){var r=e.children[i.sortableIndex+(t?Number(n):0)];r?e.insertBefore(i,r):e.appendChild(i)}))}function je(t,e){De.forEach((function(i,n){var r=e.children[i.sortableIndex+(t?Number(n):0)];r?e.insertBefore(i,r):e.appendChild(i)}))}function ze(){$e.forEach((function(t){t!==Ie&&t.parentNode&&t.parentNode.removeChild(t)}))}Zt.mount(new be),Zt.mount(ke,Ce),e["default"]=Zt},ab36:function(t,e,i){"use strict";var n=i("861d"),r=i("9112");t.exports=function(t,e){n(e)&&"cause"in e&&r(t,"cause",e.cause)}},ab43:function(t,e,i){"use strict";var n=i("23e7"),r=i("d024"),s=i("c430");n({target:"Iterator",proto:!0,real:!0,forced:s},{map:r})},ad6d:function(t,e,i){"use strict";var n=i("825a");t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},ae93:function(t,e,i){"use strict";var n,r,s,o=i("d039"),a=i("1626"),l=i("861d"),c=i("7c73"),u=i("e163"),h=i("cb2d"),d=i("b622"),p=i("c430"),f=d("iterator"),m=!1;[].keys&&(s=[].keys(),"next"in s?(r=u(u(s)),r!==Object.prototype&&(n=r)):m=!0);var g=!l(n)||o((function(){var t={};return n[f].call(t)!==t}));g?n={}:p&&(n=c(n)),a(n[f])||h(n,f,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},aeb0:function(t,e,i){"use strict";var n=i("9bf2").f;t.exports=function(t,e,i){i in t||n(t,i,{configurable:!0,get:function(){return e[i]},set:function(t){e[i]=t}})}},aed9:function(t,e,i){"use strict";var n=i("83ab"),r=i("d039");t.exports=n&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},af4e:function(t,e,i){"use strict";i("775a")},b41c:function(t,e,i){},b42e:function(t,e,i){"use strict";var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},b4bc:function(t,e,i){"use strict";var n=i("dc19"),r=i("cb27").has,s=i("8e16"),o=i("7f65"),a=i("384f"),l=i("5388"),c=i("2a62");t.exports=function(t){var e=n(this),i=o(t);if(s(e)<=i.size)return!1!==a(e,(function(t){if(i.includes(t))return!1}),!0);var u=i.getIterator();return!1!==l(u,(function(t){if(r(e,t))return c(u,"normal",!1)}))}},b5db:function(t,e,i){"use strict";var n=i("cfe9"),r=n.navigator,s=r&&r.userAgent;t.exports=s?String(s):""},b620:function(t,e,i){"use strict";var n=i("cfe9"),r=i("7282"),s=i("c6b6"),o=n.ArrayBuffer,a=n.TypeError;t.exports=o&&r(o.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==s(t))throw new a("ArrayBuffer expected");return t.byteLength}},b622:function(t,e,i){"use strict";var n=i("cfe9"),r=i("5692"),s=i("1a2d"),o=i("90e3"),a=i("04f8"),l=i("fdbf"),c=n.Symbol,u=r("wks"),h=l?c["for"]||c:c&&c.withoutSetter||o;t.exports=function(t){return s(u,t)||(u[t]=a&&s(c,t)?c[t]:h("Symbol."+t)),u[t]}},b639:function(t,e,i){"use strict";(function(t){
19
+ /*!
20
+ * The buffer module from node.js, for the browser.
21
+ *
22
+ * @author Feross Aboukhadijeh <http://feross.org>
23
+ * @license MIT
24
+ */
25
+ var n=i("1fb5"),r=i("9152"),s=i("e3db");function o(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=c.prototype):(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,i){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(t,e,i);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}return u(this,t,e,i)}function u(t,e,i,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?g(t,e,i,n):"string"===typeof e?f(t,e,i):v(t,e)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e,i,n){return h(e),e<=0?l(t,e):void 0!==i?"string"===typeof n?l(t,e).fill(i,n):l(t,e).fill(i):l(t,e)}function p(t,e){if(h(e),t=l(t,e<0?0:0|b(e)),!c.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function f(t,e,i){if("string"===typeof i&&""!==i||(i="utf8"),!c.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|y(e,i);t=l(t,n);var r=t.write(e,i);return r!==n&&(t=t.slice(0,r)),t}function m(t,e){var i=e.length<0?0:0|b(e.length);t=l(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function g(t,e,i,n){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n),c.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=c.prototype):t=m(t,e),t}function v(t,e){if(c.isBuffer(e)){var i=0|b(e.length);return t=l(t,i),0===t.length?t:(e.copy(t,0,0,i),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):m(t,e);if("Buffer"===e.type&&s(e.data))return m(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),c.alloc(+t)}function y(t,e){if(c.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return J(t).length;default:if(n)return X(t).length;e=(""+e).toLowerCase(),n=!0}}function w(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return O(this,e,i);case"utf8":case"utf-8":return N(this,e,i);case"ascii":return R(this,e,i);case"latin1":case"binary":return P(this,e,i);case"base64":return A(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function S(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function x(t,e,i,n,r){if(0===t.length)return-1;if("string"===typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"===typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:C(t,e,i,n,r);if("number"===typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):C(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function C(t,e,i,n,r){var s,o=1,a=t.length,l=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,l/=2,i/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var u=-1;for(s=i;s<a;s++)if(c(t,s)===c(e,-1===u?0:s-u)){if(-1===u&&(u=s),s-u+1===l)return u*o}else-1!==u&&(s-=s-u),u=-1}else for(i+l>a&&(i=a-l),s=i;s>=0;s--){for(var h=!0,d=0;d<l;d++)if(c(t,s+d)!==c(e,d)){h=!1;break}if(h)return s}return-1}function k(t,e,i,n){i=Number(i)||0;var r=t.length-i;n?(n=Number(n),n>r&&(n=r)):n=r;var s=e.length;if(s%2!==0)throw new TypeError("Invalid hex string");n>s/2&&(n=s/2);for(var o=0;o<n;++o){var a=parseInt(e.substr(2*o,2),16);if(isNaN(a))return o;t[i+o]=a}return o}function T(t,e,i,n){return tt(X(e,t.length-i),t,i,n)}function q(t,e,i,n){return tt(G(e),t,i,n)}function E(t,e,i,n){return q(t,e,i,n)}function M(t,e,i,n){return tt(J(e),t,i,n)}function I(t,e,i,n){return tt(Z(e,t.length-i),t,i,n)}function A(t,e,i){return 0===e&&i===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,i))}function N(t,e,i){i=Math.min(t.length,i);var n=[],r=e;while(r<i){var s,o,a,l,c=t[r],u=null,h=c>239?4:c>223?3:c>191?2:1;if(r+h<=i)switch(h){case 1:c<128&&(u=c);break;case 2:s=t[r+1],128===(192&s)&&(l=(31&c)<<6|63&s,l>127&&(u=l));break;case 3:s=t[r+1],o=t[r+2],128===(192&s)&&128===(192&o)&&(l=(15&c)<<12|(63&s)<<6|63&o,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:s=t[r+1],o=t[r+2],a=t[r+3],128===(192&s)&&128===(192&o)&&128===(192&a)&&(l=(15&c)<<18|(63&s)<<12|(63&o)<<6|63&a,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),r+=h}return D(n)}e.Buffer=c,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,i){return u(null,t,e,i)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,i){return d(null,t,e,i)},c.allocUnsafe=function(t){return p(null,t)},c.allocUnsafeSlow=function(t){return p(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,r=0,s=Math.min(i,n);r<s;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!s(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=c.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var o=t[i];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,r),r+=o.length}return n},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)S(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)S(this,e,e+3),S(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)S(this,e,e+7),S(this,e+1,e+6),S(this,e+2,e+5),S(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?N(this,0,t):w.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,i,n,r){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,r>>>=0,this===t)return 0;for(var s=r-n,o=i-e,a=Math.min(s,o),l=this.slice(n,r),u=t.slice(e,i),h=0;h<a;++h)if(l[h]!==u[h]){s=l[h],o=u[h];break}return s<o?-1:o<s?1:0},c.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},c.prototype.indexOf=function(t,e,i){return x(this,t,e,i,!0)},c.prototype.lastIndexOf=function(t,e,i){return x(this,t,e,i,!1)},c.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"===typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return k(this,t,e,i);case"utf8":case"utf-8":return T(this,t,e,i);case"ascii":return q(this,t,e,i);case"latin1":case"binary":return E(this,t,e,i);case"base64":return M(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,i);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;function D(t){var e=t.length;if(e<=$)return String.fromCharCode.apply(String,t);var i="",n=0;while(n<e)i+=String.fromCharCode.apply(String,t.slice(n,n+=$));return i}function R(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(127&t[r]);return n}function P(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(t[r]);return n}function O(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var r="",s=e;s<i;++s)r+=K(t[s]);return r}function L(t,e,i){for(var n=t.slice(e,i),r="",s=0;s<n.length;s+=2)r+=String.fromCharCode(n[s]+256*n[s+1]);return r}function B(t,e,i){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,i,n,r,s){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<s)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function z(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,s=Math.min(t.length-i,2);r<s;++r)t[i+r]=(e&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function F(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,s=Math.min(t.length-i,4);r<s;++r)t[i+r]=e>>>8*(n?r:3-r)&255}function V(t,e,i,n,r,s){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function H(t,e,i,n,s){return s||V(t,e,i,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,i,n,23,4),i+4}function U(t,e,i,n,s){return s||V(t,e,i,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)i=this.subarray(t,e),i.__proto__=c.prototype;else{var r=e-t;i=new c(r,void 0);for(var s=0;s<r;++s)i[s]=this[s+t]}return i},c.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||B(t,e,this.length);var n=this[t],r=1,s=0;while(++s<e&&(r*=256))n+=this[t+s]*r;return n},c.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||B(t,e,this.length);var n=this[t+--e],r=1;while(e>0&&(r*=256))n+=this[t+--e]*r;return n},c.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||B(t,e,this.length);var n=this[t],r=1,s=0;while(++s<e&&(r*=256))n+=this[t+s]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||B(t,e,this.length);var n=e,r=1,s=this[t+--n];while(n>0&&(r*=256))s+=this[t+--n]*r;return r*=128,s>=r&&(s-=Math.pow(2,8*e)),s},c.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||B(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||B(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||B(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){var r=Math.pow(2,8*i)-1;j(this,t,e,i,r,0)}var s=1,o=0;this[e]=255&t;while(++o<i&&(s*=256))this[e+o]=t/s&255;return e+i},c.prototype.writeUIntBE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){var r=Math.pow(2,8*i)-1;j(this,t,e,i,r,0)}var s=i-1,o=1;this[e+s]=255&t;while(--s>=0&&(o*=256))this[e+s]=t/o&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):z(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):F(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);j(this,t,e,i,r-1,-r)}var s=0,o=1,a=0;this[e]=255&t;while(++s<i&&(o*=256))t<0&&0===a&&0!==this[e+s-1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);j(this,t,e,i,r-1,-r)}var s=i-1,o=1,a=0;this[e+s]=255&t;while(--s>=0&&(o*=256))t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):z(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):F(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return H(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return H(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return U(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return U(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var r,s=n-i;if(this===t&&i<e&&e<n)for(r=s-1;r>=0;--r)t[r+e]=this[r+i];else if(s<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<s;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+s),e);return s},c.prototype.fill=function(t,e,i,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,i=this.length):"string"===typeof i&&(n=i,i=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;var s;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"===typeof t)for(s=e;s<i;++s)this[s]=t;else{var o=c.isBuffer(t)?t:X(new c(t,n).toString()),a=o.length;for(s=0;s<i-e;++s)this[s+e]=o[s%a]}return this};var Q=/[^+\/0-9A-Za-z-_]/g;function W(t){if(t=Y(t).replace(Q,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function K(t){return t<16?"0"+t.toString(16):t.toString(16)}function X(t,e){var i;e=e||1/0;for(var n=t.length,r=null,s=[],o=0;o<n;++o){if(i=t.charCodeAt(o),i>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&s.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;s.push(i)}else if(i<2048){if((e-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return s}function G(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function Z(t,e){for(var i,n,r,s=[],o=0;o<t.length;++o){if((e-=2)<0)break;i=t.charCodeAt(o),n=i>>8,r=i%256,s.push(r),s.push(n)}return s}function J(t){return n.toByteArray(W(t))}function tt(t,e,i,n){for(var r=0;r<n;++r){if(r+i>=e.length||r>=t.length)break;e[r+i]=t[r]}return r}function et(t){return t!==t}}).call(this,i("c8ba"))},b76a:function(t,e,i){(function(e,n){t.exports=n(i("aa47"))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s="fb15")}({"01f9":function(t,e,i){"use strict";var n=i("2d00"),r=i("5ca1"),s=i("2aba"),o=i("32e9"),a=i("84f2"),l=i("41a0"),c=i("7f20"),u=i("38fd"),h=i("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",f="keys",m="values",g=function(){return this};t.exports=function(t,e,i,v,b,_,y){l(i,e,v);var w,S,x,C=function(t){if(!d&&t in E)return E[t];switch(t){case f:return function(){return new i(this,t)};case m:return function(){return new i(this,t)}}return function(){return new i(this,t)}},k=e+" Iterator",T=b==m,q=!1,E=t.prototype,M=E[h]||E[p]||b&&E[b],I=M||C(b),A=b?T?C("entries"):I:void 0,N="Array"==e&&E.entries||M;if(N&&(x=u(N.call(new t)),x!==Object.prototype&&x.next&&(c(x,k,!0),n||"function"==typeof x[h]||o(x,h,g))),T&&M&&M.name!==m&&(q=!0,I=function(){return M.call(this)}),n&&!y||!d&&!q&&E[h]||o(E,h,I),a[e]=I,a[k]=g,b)if(w={values:T?I:C(m),keys:_?I:C(f),entries:A},y)for(S in w)S in E||s(E,S,w[S]);else r(r.P+r.F*(d||q),e,w);return w}},"02f4":function(t,e,i){var n=i("4588"),r=i("be13");t.exports=function(t){return function(e,i){var s,o,a=String(r(e)),l=n(i),c=a.length;return l<0||l>=c?t?"":void 0:(s=a.charCodeAt(l),s<55296||s>56319||l+1===c||(o=a.charCodeAt(l+1))<56320||o>57343?t?a.charAt(l):s:t?a.slice(l,l+2):o-56320+(s-55296<<10)+65536)}}},"0390":function(t,e,i){"use strict";var n=i("02f4")(!0);t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},"0bfb":function(t,e,i){"use strict";var n=i("cb7c");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,i){var n=i("ce10"),r=i("e11e");t.exports=Object.keys||function(t){return n(t,r)}},1495:function(t,e,i){var n=i("86cc"),r=i("cb7c"),s=i("0d58");t.exports=i("9e1e")?Object.defineProperties:function(t,e){r(t);var i,o=s(e),a=o.length,l=0;while(a>l)n.f(t,i=o[l++],e[i]);return t}},"214f":function(t,e,i){"use strict";i("b0c5");var n=i("2aba"),r=i("32e9"),s=i("79e5"),o=i("be13"),a=i("2b4c"),l=i("520a"),c=a("species"),u=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}();t.exports=function(t,e,i){var d=a(t),p=!s((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),f=p?!s((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[c]=function(){return i}),i[d](""),!e})):void 0;if(!p||!f||"replace"===t&&!u||"split"===t&&!h){var m=/./[d],g=i(o,d,""[t],(function(t,e,i,n,r){return e.exec===l?p&&!r?{done:!0,value:m.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),v=g[0],b=g[1];n(String.prototype,t,v),r(RegExp.prototype,d,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,i){var n=i("d3f4"),r=i("7726").document,s=n(r)&&n(r.createElement);t.exports=function(t){return s?r.createElement(t):{}}},"23c6":function(t,e,i){var n=i("2d95"),r=i("2b4c")("toStringTag"),s="Arguments"==n(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(i){}};t.exports=function(t){var e,i,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=o(e=Object(t),r))?i:s?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,i){var n=i("7726"),r=i("32e9"),s=i("69a8"),o=i("ca5a")("src"),a=i("fa5b"),l="toString",c=(""+a).split(l);i("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,i,a){var l="function"==typeof i;l&&(s(i,"name")||r(i,"name",e)),t[e]!==i&&(l&&(s(i,o)||r(i,o,t[e]?""+t[e]:c.join(String(e)))),t===n?t[e]=i:a?t[e]?t[e]=i:r(t,e,i):(delete t[e],r(t,e,i)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[o]||a.call(this)}))},"2aeb":function(t,e,i){var n=i("cb7c"),r=i("1495"),s=i("e11e"),o=i("613b")("IE_PROTO"),a=function(){},l="prototype",c=function(){var t,e=i("230e")("iframe"),n=s.length,r="<",o=">";e.style.display="none",i("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+o+"document.F=Object"+r+"/script"+o),t.close(),c=t.F;while(n--)delete c[l][s[n]];return c()};t.exports=Object.create||function(t,e){var i;return null!==t?(a[l]=n(t),i=new a,a[l]=null,i[o]=t):i=c(),void 0===e?i:r(i,e)}},"2b4c":function(t,e,i){var n=i("5537")("wks"),r=i("ca5a"),s=i("7726").Symbol,o="function"==typeof s,a=t.exports=function(t){return n[t]||(n[t]=o&&s[t]||(o?s:r)("Symbol."+t))};a.store=n},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},"2fdb":function(t,e,i){"use strict";var n=i("5ca1"),r=i("d2c8"),s="includes";n(n.P+n.F*i("5147")(s),"String",{includes:function(t){return!!~r(this,t,s).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,i){var n=i("86cc"),r=i("4630");t.exports=i("9e1e")?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},"38fd":function(t,e,i){var n=i("69a8"),r=i("4bf8"),s=i("613b")("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},"41a0":function(t,e,i){"use strict";var n=i("2aeb"),r=i("4630"),s=i("7f20"),o={};i("32e9")(o,i("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,i){t.prototype=n(o,{next:r(1,i)}),s(t,e+" Iterator")}},"456d":function(t,e,i){var n=i("4bf8"),r=i("0d58");i("5eda")("keys",(function(){return function(t){return r(n(t))}}))},4588:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,i){var n=i("be13");t.exports=function(t){return Object(n(t))}},5147:function(t,e,i){var n=i("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,!"/./"[t](e)}catch(r){}}return!0}},"520a":function(t,e,i){"use strict";var n=i("0bfb"),r=RegExp.prototype.exec,s=String.prototype.replace,o=r,a="lastIndex",l=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[a]||0!==e[a]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(o=function(t){var e,i,o,u,h=this;return c&&(i=new RegExp("^"+h.source+"$(?!\\s)",n.call(h))),l&&(e=h[a]),o=r.call(h,t),l&&o&&(h[a]=h.global?o.index+o[0].length:e),c&&o&&o.length>1&&s.call(o[0],i,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o}),t.exports=o},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,i){var n=i("8378"),r=i("7726"),s="__core-js_shared__",o=r[s]||(r[s]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,i){var n=i("7726"),r=i("8378"),s=i("32e9"),o=i("2aba"),a=i("9b43"),l="prototype",c=function(t,e,i){var u,h,d,p,f=t&c.F,m=t&c.G,g=t&c.S,v=t&c.P,b=t&c.B,_=m?n:g?n[e]||(n[e]={}):(n[e]||{})[l],y=m?r:r[e]||(r[e]={}),w=y[l]||(y[l]={});for(u in m&&(i=e),i)h=!f&&_&&void 0!==_[u],d=(h?_:i)[u],p=b&&h?a(d,n):v&&"function"==typeof d?a(Function.call,d):d,_&&o(_,u,d,t&c.U),y[u]!=d&&s(y,u,p),v&&w[u]!=d&&(w[u]=d)};n.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5eda":function(t,e,i){var n=i("5ca1"),r=i("8378"),s=i("79e5");t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],o={};o[t]=e(i),n(n.S+n.F*s((function(){i(1)})),"Object",o)}},"5f1b":function(t,e,i){"use strict";var n=i("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var i=t.exec;if("function"===typeof i){var s=i.call(t,e);if("object"!==typeof s)throw new TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,i){var n=i("5537")("keys"),r=i("ca5a");t.exports=function(t){return n[t]||(n[t]=r(t))}},"626a":function(t,e,i){var n=i("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},6762:function(t,e,i){"use strict";var n=i("5ca1"),r=i("c366")(!0);n(n.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i("9c6c")("includes")},6821:function(t,e,i){var n=i("626a"),r=i("be13");t.exports=function(t){return n(r(t))}},"69a8":function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},"6a99":function(t,e,i){var n=i("d3f4");t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,i){"use strict";var n=i("0d58"),r=i("2621"),s=i("52a7"),o=i("4bf8"),a=i("626a"),l=Object.assign;t.exports=!l||i("79e5")((function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=l({},t)[i]||Object.keys(l({},e)).join("")!=n}))?function(t,e){var i=o(t),l=arguments.length,c=1,u=r.f,h=s.f;while(l>c){var d,p=a(arguments[c++]),f=u?n(p).concat(u(p)):n(p),m=f.length,g=0;while(m>g)h.call(p,d=f[g++])&&(i[d]=p[d])}return i}:l},7726:function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},"77f1":function(t,e,i){var n=i("4588"),r=Math.max,s=Math.min;t.exports=function(t,e){return t=n(t),t<0?r(t+e,0):s(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7f20":function(t,e,i){var n=i("86cc").f,r=i("69a8"),s=i("2b4c")("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,s)&&n(t,s,{configurable:!0,value:e})}},8378:function(t,e){var i=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=i)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,i){var n=i("cb7c"),r=i("c69a"),s=i("6a99"),o=Object.defineProperty;e.f=i("9e1e")?Object.defineProperty:function(t,e,i){if(n(t),e=s(e,!0),n(i),r)try{return o(t,e,i)}catch(a){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},"9b43":function(t,e,i){var n=i("d8e8");t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,i){var n=i("2b4c")("unscopables"),r=Array.prototype;void 0==r[n]&&i("32e9")(r,n,{}),t.exports=function(t){r[n][t]=!0}},"9def":function(t,e,i){var n=i("4588"),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},"9e1e":function(t,e,i){t.exports=!i("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,i){e.exports=t},a481:function(t,e,i){"use strict";var n=i("cb7c"),r=i("4bf8"),s=i("9def"),o=i("4588"),a=i("0390"),l=i("5f1b"),c=Math.max,u=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,f=function(t){return void 0===t?t:String(t)};i("214f")("replace",2,(function(t,e,i,m){return[function(n,r){var s=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,s,r):i.call(String(s),n,r)},function(t,e){var r=m(i,t,this,e);if(r.done)return r.value;var h=n(t),d=String(this),p="function"===typeof e;p||(e=String(e));var v=h.global;if(v){var b=h.unicode;h.lastIndex=0}var _=[];while(1){var y=l(h,d);if(null===y)break;if(_.push(y),!v)break;var w=String(y[0]);""===w&&(h.lastIndex=a(d,s(h.lastIndex),b))}for(var S="",x=0,C=0;C<_.length;C++){y=_[C];for(var k=String(y[0]),T=c(u(o(y.index),d.length),0),q=[],E=1;E<y.length;E++)q.push(f(y[E]));var M=y.groups;if(p){var I=[k].concat(q,T,d);void 0!==M&&I.push(M);var A=String(e.apply(void 0,I))}else A=g(k,d,T,q,M,e);T>=x&&(S+=d.slice(x,T)+A,x=T+k.length)}return S+d.slice(x)}];function g(t,e,n,s,o,a){var l=n+t.length,c=s.length,u=p;return void 0!==o&&(o=r(o),u=d),i.call(a,u,(function(i,r){var a;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":a=o[r.slice(1,-1)];break;default:var u=+r;if(0===u)return i;if(u>c){var d=h(u/10);return 0===d?i:d<=c?void 0===s[d-1]?r.charAt(1):s[d-1]+r.charAt(1):i}a=s[u-1]}return void 0===a?"":a}))}}))},aae3:function(t,e,i){var n=i("d3f4"),r=i("2d95"),s=i("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==r(t))}},ac6a:function(t,e,i){for(var n=i("cadf"),r=i("0d58"),s=i("2aba"),o=i("7726"),a=i("32e9"),l=i("84f2"),c=i("2b4c"),u=c("iterator"),h=c("toStringTag"),d=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=r(p),m=0;m<f.length;m++){var g,v=f[m],b=p[v],_=o[v],y=_&&_.prototype;if(y&&(y[u]||a(y,u,d),y[h]||a(y,h,v),l[v]=d,b))for(g in n)y[g]||s(y,g,n[g],!0)}},b0c5:function(t,e,i){"use strict";var n=i("520a");i("5ca1")({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,i){var n=i("6821"),r=i("9def"),s=i("77f1");t.exports=function(t){return function(e,i,o){var a,l=n(e),c=r(l.length),u=s(o,c);if(t&&i!=i){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===i)return t||u||0;return!t&&-1}}},c649:function(t,e,i){"use strict";(function(t){i.d(e,"c",(function(){return c})),i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return r})),i.d(e,"d",(function(){return l}));i("a481");function n(){return"undefined"!==typeof window?window.console:t.console}var r=n();function s(t){var e=Object.create(null);return function(i){var n=e[i];return n||(e[i]=t(i))}}var o=/-(\w)/g,a=s((function(t){return t.replace(o,(function(t,e){return e?e.toUpperCase():""}))}));function l(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,i){var n=0===i?t.children[0]:t.children[i-1].nextSibling;t.insertBefore(e,n)}}).call(this,i("c8ba"))},c69a:function(t,e,i){t.exports=!i("9e1e")&&!i("79e5")((function(){return 7!=Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(n){"object"===typeof window&&(i=window)}t.exports=i},ca5a:function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},cadf:function(t,e,i){"use strict";var n=i("9c6c"),r=i("d53b"),s=i("84f2"),o=i("6821");t.exports=i("01f9")(Array,"Array",(function(t,e){this._t=o(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])}),"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},cb7c:function(t,e,i){var n=i("d3f4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,i){var n=i("69a8"),r=i("6821"),s=i("c366")(!1),o=i("613b")("IE_PROTO");t.exports=function(t,e){var i,a=r(t),l=0,c=[];for(i in a)i!=o&&n(a,i)&&c.push(i);while(e.length>l)n(a,i=e[l++])&&(~s(c,i)||c.push(i));return c}},d2c8:function(t,e,i){var n=i("aae3"),r=i("be13");t.exports=function(t,e,i){if(n(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(r(t))}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,i){"use strict";var n=i("5ca1"),r=i("9def"),s=i("d2c8"),o="startsWith",a=""[o];n(n.P+n.F*i("5147")(o),"String",{startsWith:function(t){var e=s(this,t,o),i=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return a?a.call(e,n,i):e.slice(i,i+n.length)===n}})},f6fd:function(t,e){(function(t){var e="currentScript",i=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(n){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(t in i)if(i[t].src==e||"interactive"==i[t].readyState)return i[t];return null}}})})(document)},f751:function(t,e,i){var n=i("5ca1");n(n.S+n.F,"Object",{assign:i("7333")})},fa5b:function(t,e,i){t.exports=i("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,i){var n=i("7726").document;t.exports=n&&n.documentElement},fb15:function(t,e,i){"use strict";var n;(i.r(e),"undefined"!==typeof window)&&(i("f6fd"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=n[1]));i("f751"),i("f559"),i("ac6a"),i("cadf"),i("456d");function r(t){if(Array.isArray(t))return t}function s(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,s=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)if(i.push(o.value),e&&i.length===e)break}catch(l){r=!0,s=l}finally{try{n||null==a["return"]||a["return"]()}finally{if(r)throw s}}return i}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function a(t,e){if(t){if("string"===typeof t)return o(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,e):void 0}}function l(){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 c(t,e){return r(t)||s(t,e)||a(t,e)||l()}i("6762"),i("2fdb");function u(t){if(Array.isArray(t))return o(t)}function h(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(t){return u(t)||h(t)||a(t)||d()}var f=i("a352"),m=i.n(f),g=i("c649");function v(t,e,i){return void 0===i||(t=t||{},t[e]=i),t}function b(t,e){return t.map((function(t){return t.elm})).indexOf(e)}function _(t,e,i,n){if(!t)return[];var r=t.map((function(t){return t.elm})),s=e.length-n,o=p(e).map((function(t,e){return e>=s?r.length:r.indexOf(t)}));return i?o.filter((function(t){return-1!==t})):o}function y(t,e){var i=this;this.$nextTick((function(){return i.$emit(t.toLowerCase(),e)}))}function w(t){var e=this;return function(i){null!==e.realList&&e["onDrag"+t](i),y.call(e,t,i)}}function S(t){return["transition-group","TransitionGroup"].includes(t)}function x(t){if(!t||1!==t.length)return!1;var e=c(t,1),i=e[0].componentOptions;return!!i&&S(i.tag)}function C(t,e,i){return t[i]||(e[i]?e[i]():void 0)}function k(t,e,i){var n=0,r=0,s=C(e,i,"header");s&&(n=s.length,t=t?[].concat(p(s),p(t)):p(s));var o=C(e,i,"footer");return o&&(r=o.length,t=t?[].concat(p(t),p(o)):p(o)),{children:t,headerOffset:n,footerOffset:r}}function T(t,e){var i=null,n=function(t,e){i=v(i,t,e)},r=Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,i){return e[i]=t[i],e}),{});if(n("attrs",r),!e)return i;var s=e.on,o=e.props,a=e.attrs;return n("on",s),n("props",o),Object.assign(i.attrs,a),i}var q=["Start","Add","Remove","Update","End"],E=["Choose","Unchoose","Sort","Filter","Clone"],M=["Move"].concat(q,E).map((function(t){return"on"+t})),I=null,A={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},N={name:"draggable",inheritAttrs:!1,props:A,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=x(e);var i=k(e,this.$slots,this.$scopedSlots),n=i.children,r=i.headerOffset,s=i.footerOffset;this.headerOffset=r,this.footerOffset=s;var o=T(this.$attrs,this.componentData);return t(this.getTag(),o,n)},created:function(){null!==this.list&&null!==this.value&&g["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&g["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&g["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};q.forEach((function(i){e["on"+i]=w.call(t,i)})),E.forEach((function(i){e["on"+i]=y.bind(t,i)}));var i=Object.keys(this.$attrs).reduce((function(e,i){return e[Object(g["a"])(i)]=t.$attrs[i],e}),{}),n=Object.assign({},this.options,i,e,{onMove:function(e,i){return t.onDragMove(e,i)}});!("draggable"in n)&&(n.draggable=">*"),this._sortable=new m.a(this.rootContainer,n),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var i=Object(g["a"])(e);-1===M.indexOf(i)&&this._sortable.option(i,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=_(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=b(this.getChildrenNodes()||[],t);if(-1===e)return null;var i=this.realList[e];return{index:e,element:i}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&S(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=p(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,p(t))};this.alterList(e)},updatePosition:function(t,e){var i=function(i){return i.splice(e,0,i.splice(t,1)[0])};this.alterList(i)},getRelatedContextFromMoveEvent:function(t){var e=t.to,i=t.related,n=this.getUnderlyingPotencialDraggableComponent(e);if(!n)return{component:n};var r=n.realList,s={list:r,component:n};if(e!==i&&r&&n.getUnderlyingVm){var o=n.getUnderlyingVm(i);if(o)return Object.assign(o,s)}return s},getVmIndex:function(t){var e=this.visibleIndexes,i=e.length;return t>i-1?i:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){var e=this.getChildrenNodes();e[t].data=null;var i=this.getComponent();i.children=[],i.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),I=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(g["d"])(t.item);var i=this.getVmIndex(t.newIndex);this.spliceList(i,0,e),this.computeIndexes();var n={element:e,newIndex:i};this.emitChanges({added:n})}},onDragRemove:function(t){if(Object(g["c"])(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var i={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:i})}else Object(g["d"])(t.clone)},onDragUpdate:function(t){Object(g["d"])(t.item),Object(g["c"])(t.from,t.item,t.oldIndex);var e=this.context.index,i=this.getVmIndex(t.newIndex);this.updatePosition(e,i);var n={element:this.context.element,oldIndex:e,newIndex:i};this.emitChanges({moved:n})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var i=p(e.to.children).filter((function(t){return"none"!==t.style["display"]})),n=i.indexOf(e.related),r=t.component.getVmIndex(n),s=-1!==i.indexOf(I);return s||!e.willInsertAfter?r:r+1},onDragMove:function(t,e){var i=this.move;if(!i||!this.realList)return!0;var n=this.getRelatedContextFromMoveEvent(t),r=this.context,s=this.computeFutureIndex(n,t);Object.assign(r,{futureIndex:s});var o=Object.assign({},t,{relatedContext:n,draggedContext:r});return i(o,e)},onDragEnd:function(){this.computeIndexes(),I=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",N);var $=N;e["default"]=$}})["default"]}))},b980:function(t,e,i){"use strict";var n=i("d039"),r=i("5c6c");t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},bc19:function(t,e,i){},bcbf:function(t,e,i){"use strict";var n=i("f5df");t.exports=function(t){var e=n(t);return"BigInt64Array"===e||"BigUint64Array"===e}},bf2f:function(t,e,i){},c04e:function(t,e,i){"use strict";var n=i("c65b"),r=i("861d"),s=i("d9b5"),o=i("dc4a"),a=i("485a"),l=i("b622"),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||s(t))return t;var i,l=o(t,u);if(l){if(void 0===e&&(e="default"),i=n(l,t,e),!r(i)||s(i))return i;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},c0a8:function(t){t.exports=JSON.parse('{"a":"1.22.10"}')},c1a1:function(t,e,i){"use strict";var n=i("23e7"),r=i("b4bc"),s=i("dad2");n({target:"Set",proto:!0,real:!0,forced:!s("isDisjointFrom")},{isDisjointFrom:r})},c430:function(t,e,i){"use strict";t.exports=!1},c532:function(t,e,i){"use strict";(function(t,n){var r=i("1d2b");const{toString:s}=Object.prototype,{getPrototypeOf:o}=Object,a=(t=>e=>{const i=s.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),l=t=>(t=t.toLowerCase(),e=>a(e)===t),c=t=>e=>typeof e===t,{isArray:u}=Array,h=c("undefined");function d(t){return null!==t&&!h(t)&&null!==t.constructor&&!h(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const p=l("ArrayBuffer");function f(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer),e}const m=c("string"),g=c("function"),v=c("number"),b=t=>null!==t&&"object"===typeof t,_=t=>!0===t||!1===t,y=t=>{if("object"!==a(t))return!1;const e=o(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},w=l("Date"),S=l("File"),x=l("Blob"),C=l("FileList"),k=t=>b(t)&&g(t.pipe),T=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||g(t.append)&&("formdata"===(e=a(t))||"object"===e&&g(t.toString)&&"[object FormData]"===t.toString()))},q=l("URLSearchParams"),[E,M,I,A]=["ReadableStream","Request","Response","Headers"].map(l),N=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $(t,e,{allOwnKeys:i=!1}={}){if(null===t||"undefined"===typeof t)return;let n,r;if("object"!==typeof t&&(t=[t]),u(t))for(n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else{const r=i?Object.getOwnPropertyNames(t):Object.keys(t),s=r.length;let o;for(n=0;n<s;n++)o=r[n],e.call(null,t[o],o,t)}}function D(t,e){e=e.toLowerCase();const i=Object.keys(t);let n,r=i.length;while(r-- >0)if(n=i[r],e===n.toLowerCase())return n;return null}const R=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:t)(),P=t=>!h(t)&&t!==R;function O(){const{caseless:t}=P(this)&&this||{},e={},i=(i,n)=>{const r=t&&D(e,n)||n;y(e[r])&&y(i)?e[r]=O(e[r],i):y(i)?e[r]=O({},i):u(i)?e[r]=i.slice():e[r]=i};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&$(arguments[n],i);return e}const L=(t,e,i,{allOwnKeys:n}={})=>($(e,(e,n)=>{i&&g(e)?t[n]=Object(r["a"])(e,i):t[n]=e},{allOwnKeys:n}),t),B=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),j=(t,e,i,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),i&&Object.assign(t.prototype,i)},z=(t,e,i,n)=>{let r,s,a;const l={};if(e=e||{},null==t)return e;do{r=Object.getOwnPropertyNames(t),s=r.length;while(s-- >0)a=r[s],n&&!n(a,t,e)||l[a]||(e[a]=t[a],l[a]=!0);t=!1!==i&&o(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},F=(t,e,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;const n=t.indexOf(e,i);return-1!==n&&n===i},V=t=>{if(!t)return null;if(u(t))return t;let e=t.length;if(!v(e))return null;const i=new Array(e);while(e-- >0)i[e]=t[e];return i},H=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&o(Uint8Array)),U=(t,e)=>{const i=t&&t[Symbol.iterator],n=i.call(t);let r;while((r=n.next())&&!r.done){const i=r.value;e.call(t,i[0],i[1])}},Q=(t,e)=>{let i;const n=[];while(null!==(i=t.exec(e)))n.push(i);return n},W=l("HTMLFormElement"),Y=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,i){return e.toUpperCase()+i})),K=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),X=l("RegExp"),G=(t,e)=>{const i=Object.getOwnPropertyDescriptors(t),n={};$(i,(i,r)=>{let s;!1!==(s=e(i,r,t))&&(n[r]=s||i)}),Object.defineProperties(t,n)},Z=t=>{G(t,(e,i)=>{if(g(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const n=t[i];g(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))})},J=(t,e)=>{const i={},n=t=>{t.forEach(t=>{i[t]=!0})};return u(t)?n(t):n(String(t).split(e)),i},tt=()=>{},et=(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,it="abcdefghijklmnopqrstuvwxyz",nt="0123456789",rt={DIGIT:nt,ALPHA:it,ALPHA_DIGIT:it+it.toUpperCase()+nt},st=(t=16,e=rt.ALPHA_DIGIT)=>{let i="";const{length:n}=e;while(t--)i+=e[Math.random()*n|0];return i};function ot(t){return!!(t&&g(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])}const at=t=>{const e=new Array(10),i=(t,n)=>{if(b(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const r=u(t)?[]:{};return $(t,(t,e)=>{const s=i(t,n+1);!h(s)&&(r[e]=s)}),e[n]=void 0,r}}return t};return i(t,0)},lt=l("AsyncFunction"),ct=t=>t&&(b(t)||g(t))&&g(t.then)&&g(t.catch),ut=((t,e)=>t?setImmediate:e?((t,e)=>(R.addEventListener("message",({source:i,data:n})=>{i===R&&n===t&&e.length&&e.shift()()},!1),i=>{e.push(i),R.postMessage(t,"*")}))("axios@"+Math.random(),[]):t=>setTimeout(t))("function"===typeof setImmediate,g(R.postMessage)),ht="undefined"!==typeof queueMicrotask?queueMicrotask.bind(R):"undefined"!==typeof n&&n.nextTick||ut;e["a"]={isArray:u,isArrayBuffer:p,isBuffer:d,isFormData:T,isArrayBufferView:f,isString:m,isNumber:v,isBoolean:_,isObject:b,isPlainObject:y,isReadableStream:E,isRequest:M,isResponse:I,isHeaders:A,isUndefined:h,isDate:w,isFile:S,isBlob:x,isRegExp:X,isFunction:g,isStream:k,isURLSearchParams:q,isTypedArray:H,isFileList:C,forEach:$,merge:O,extend:L,trim:N,stripBOM:B,inherits:j,toFlatObject:z,kindOf:a,kindOfTest:l,endsWith:F,toArray:V,forEachEntry:U,matchAll:Q,isHTMLForm:W,hasOwnProperty:K,hasOwnProp:K,reduceDescriptors:G,freezeMethods:Z,toObjectSet:J,toCamelCase:Y,noop:tt,toFiniteNumber:et,findKey:D,global:R,isContextDefined:P,ALPHABET:rt,generateString:st,isSpecCompliantForm:ot,toJSONObject:at,isAsyncFn:lt,isThenable:ct,setImmediate:ut,asap:ht}}).call(this,i("c8ba"),i("4362"))},c5cc:function(t,e,i){"use strict";var n=i("c65b"),r=i("7c73"),s=i("9112"),o=i("6964"),a=i("b622"),l=i("69f3"),c=i("dc4a"),u=i("ae93").IteratorPrototype,h=i("4754"),d=i("2a62"),p=a("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",g=l.set,v=function(t){var e=l.getterFor(t?m:f);return o(r(u),{next:function(){var i=e(this);if(t)return i.nextHandler();try{var n=i.done?void 0:i.nextHandler();return h(n,i.done)}catch(r){throw i.done=!0,r}},return:function(){var i=e(this),r=i.iterator;if(i.done=!0,t){var s=c(r,"return");return s?n(s,r):h(void 0,!0)}if(i.inner)try{d(i.inner.iterator,"normal")}catch(o){return d(r,"throw",o)}return r&&d(r,"normal"),h(void 0,!0)}})},b=v(!0),_=v(!1);s(_,p,"Iterator Helper"),t.exports=function(t,e){var i=function(i,n){n?(n.iterator=i.iterator,n.next=i.next):n=i,n.type=e?m:f,n.nextHandler=t,n.counter=0,n.done=!1,g(this,n)};return i.prototype=e?b:_,i}},c65b:function(t,e,i){"use strict";var n=i("40d5"),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(t,e,i){"use strict";var n=i("e330"),r=n({}.toString),s=n("".slice);t.exports=function(t){return s(r(t),8,-1)}},c6cd:function(t,e,i){"use strict";var n=i("c430"),r=i("cfe9"),s=i("6374"),o="__core-js_shared__",a=t.exports=r[o]||s(o,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},c6e9:function(t,e,i){"use strict";i("7504")},c73d:function(t,e,i){"use strict";var n=i("23e7"),r=i("cfe9"),s=i("edd0"),o=i("83ab"),a=TypeError,l=Object.defineProperty,c=r.self!==r;try{if(o){var u=Object.getOwnPropertyDescriptor(r,"self");!c&&u&&u.get&&u.enumerable||s(r,"self",{get:function(){return r},set:function(t){if(this!==r)throw new a("Illegal invocation");l(r,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else n({global:!0,simple:!0,forced:c},{self:r})}catch(h){}},c8ba:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(n){"object"===typeof window&&(i=window)}t.exports=i},ca84:function(t,e,i){"use strict";var n=i("e330"),r=i("1a2d"),s=i("fc6a"),o=i("4d64").indexOf,a=i("d012"),l=n([].push);t.exports=function(t,e){var i,n=s(t),c=0,u=[];for(i in n)!r(a,i)&&r(n,i)&&l(u,i);while(e.length>c)r(n,i=e[c++])&&(~o(u,i)||l(u,i));return u}},cb27:function(t,e,i){"use strict";var n=i("e330"),r=Set.prototype;t.exports={Set:Set,add:n(r.add),has:n(r.has),remove:n(r["delete"]),proto:r}},cb2d:function(t,e,i){"use strict";var n=i("1626"),r=i("9bf2"),s=i("13d2"),o=i("6374");t.exports=function(t,e,i,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(n(i)&&s(i,c,a),a.global)l?t[e]=i:o(e,i);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(u){}l?t[e]=i:r.f(t,e,{value:i,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},cc12:function(t,e,i){"use strict";var n=i("cfe9"),r=i("861d"),s=n.document,o=r(s)&&r(s.createElement);t.exports=function(t){return o?s.createElement(t):{}}},cdce:function(t,e,i){"use strict";var n=i("cfe9"),r=i("1626"),s=n.WeakMap;t.exports=r(s)&&/native code/.test(String(s))},cfe9:function(t,e,i){"use strict";(function(e){var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,i("c8ba"))},d012:function(t,e,i){"use strict";t.exports={}},d024:function(t,e,i){"use strict";var n=i("c65b"),r=i("59ed"),s=i("825a"),o=i("46c4"),a=i("c5cc"),l=i("9bdd"),c=a((function(){var t=this.iterator,e=s(n(this.next,t)),i=this.done=!!e.done;if(!i)return l(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return s(this),r(t),new c(o(this),{mapper:t})}},d039:function(t,e,i){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},d05c:function(t,e,i){"use strict";i("ed84")},d066:function(t,e,i){"use strict";var n=i("cfe9"),r=i("1626"),s=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?s(n[t]):n[t]&&n[t][e]}},d1e7:function(t,e,i){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);e.f=s?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},d2bb:function(t,e,i){"use strict";var n=i("7282"),r=i("861d"),s=i("1d80"),o=i("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{t=n(Object.prototype,"__proto__","set"),t(i,[]),e=i instanceof Array}catch(a){}return function(i,n){return s(i),o(n),r(i)?(e?t(i,n):i.__proto__=n,i):i}}():void 0)},d429:function(t,e,i){"use strict";var n=i("07fa"),r=i("5926"),s=RangeError;t.exports=function(t,e,i,o){var a=n(t),l=r(i),c=l<0?a+l:l;if(c>=a||c<0)throw new s("Incorrect index");for(var u=new e(a),h=0;h<a;h++)u[h]=h===c?o:t[h];return u}},d58f:function(t,e,i){"use strict";var n=i("59ed"),r=i("7b0b"),s=i("44ad"),o=i("07fa"),a=TypeError,l="Reduce of empty array with no initial value",c=function(t){return function(e,i,c,u){var h=r(e),d=s(h),p=o(h);if(n(i),0===p&&c<2)throw new a(l);var f=t?p-1:0,m=t?-1:1;if(c<2)while(1){if(f in d){u=d[f],f+=m;break}if(f+=m,t?f<0:p<=f)throw new a(l)}for(;t?f>=0:p>f;f+=m)f in d&&(u=i(u,d[f],f,h));return u}};t.exports={left:c(!1),right:c(!0)}},d673:function(t,e,i){},d6d6:function(t,e,i){"use strict";var n=TypeError;t.exports=function(t,e){if(t<e)throw new n("Not enough arguments");return t}},d866:function(t,e,i){"use strict";var n=i("23e7"),r=i("2266"),s=i("59ed"),o=i("825a"),a=i("46c4");n({target:"Iterator",proto:!0,real:!0},{every:function(t){o(this),s(t);var e=a(this),i=0;return!r(e,(function(e,n){if(!t(e,i++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},d9ad:function(t,e,i){"use strict";i("ddae")},d9b5:function(t,e,i){"use strict";var n=i("d066"),r=i("1626"),s=i("3a9b"),o=i("fdbf"),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return r(e)&&s(e.prototype,a(t))}},d9e2:function(t,e,i){"use strict";var n=i("23e7"),r=i("cfe9"),s=i("2ba4"),o=i("e5cb"),a="WebAssembly",l=r[a],c=7!==new Error("e",{cause:7}).cause,u=function(t,e){var i={};i[t]=o(t,e,c),n({global:!0,constructor:!0,arity:1,forced:c},i)},h=function(t,e){if(l&&l[t]){var i={};i[t]=o(a+"."+t,e,c),n({target:a,stat:!0,constructor:!0,arity:1,forced:c},i)}};u("Error",(function(t){return function(e){return s(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return s(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return s(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return s(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return s(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return s(t,this,arguments)}})),u("URIError",(function(t){return function(e){return s(t,this,arguments)}})),h("CompileError",(function(t){return function(e){return s(t,this,arguments)}})),h("LinkError",(function(t){return function(e){return s(t,this,arguments)}})),h("RuntimeError",(function(t){return function(e){return s(t,this,arguments)}}))},dad2:function(t,e,i){"use strict";var n=i("d066"),r=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};t.exports=function(t){var e=n("Set");try{(new e)[t](r(0));try{return(new e)[t](r(-1)),!1}catch(i){return!0}}catch(s){return!1}}},dbe5:function(t,e,i){"use strict";var n=i("cfe9"),r=i("d039"),s=i("1212"),o=i("8558"),a=n.structuredClone;t.exports=!!a&&!r((function(){if("DENO"===o&&s>92||"NODE"===o&&s>94||"BROWSER"===o&&s>97)return!1;var t=new ArrayBuffer(8),e=a(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},dc19:function(t,e,i){"use strict";var n=i("cb27").has;t.exports=function(t){return n(t),t}},dc4a:function(t,e,i){"use strict";var n=i("59ed"),r=i("7234");t.exports=function(t,e){var i=t[e];return r(i)?void 0:n(i)}},ddae:function(t,e,i){},df75:function(t,e,i){"use strict";var n=i("ca84"),r=i("7839");t.exports=Object.keys||function(t){return n(t,r)}},df7c:function(t,e,i){(function(t){function i(t,e){for(var i=0,n=t.length-1;n>=0;n--){var r=t[n];"."===r?t.splice(n,1):".."===r?(t.splice(n,1),i++):i&&(t.splice(n,1),i--)}if(e)for(;i--;i)t.unshift("..");return t}function n(t){"string"!==typeof t&&(t+="");var e,i=0,n=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){i=e+1;break}}else-1===n&&(r=!1,n=e+1);return-1===n?"":t.slice(i,n)}function r(t,e){if(t.filter)return t.filter(e);for(var i=[],n=0;n<t.length;n++)e(t[n],n,t)&&i.push(t[n]);return i}e.resolve=function(){for(var e="",n=!1,s=arguments.length-1;s>=-1&&!n;s--){var o=s>=0?arguments[s]:t.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,n="/"===o.charAt(0))}return e=i(r(e.split("/"),(function(t){return!!t})),!n).join("/"),(n?"/":"")+e||"."},e.normalize=function(t){var n=e.isAbsolute(t),o="/"===s(t,-1);return t=i(r(t.split("/"),(function(t){return!!t})),!n).join("/"),t||n||(t="."),t&&o&&(t+="/"),(n?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,i){function n(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var i=t.length-1;i>=0;i--)if(""!==t[i])break;return e>i?[]:t.slice(e,i-e+1)}t=e.resolve(t).substr(1),i=e.resolve(i).substr(1);for(var r=n(t.split("/")),s=n(i.split("/")),o=Math.min(r.length,s.length),a=o,l=0;l<o;l++)if(r[l]!==s[l]){a=l;break}var c=[];for(l=a;l<r.length;l++)c.push("..");return c=c.concat(s.slice(a)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),i=47===e,n=-1,r=!0,s=t.length-1;s>=1;--s)if(e=t.charCodeAt(s),47===e){if(!r){n=s;break}}else r=!1;return-1===n?i?"/":".":i&&1===n?"/":t.slice(0,n)},e.basename=function(t,e){var i=n(t);return e&&i.substr(-1*e.length)===e&&(i=i.substr(0,i.length-e.length)),i},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,i=0,n=-1,r=!0,s=0,o=t.length-1;o>=0;--o){var a=t.charCodeAt(o);if(47!==a)-1===n&&(r=!1,n=o+1),46===a?-1===e?e=o:1!==s&&(s=1):-1!==e&&(s=-1);else if(!r){i=o+1;break}}return-1===e||-1===n||0===s||1===s&&e===n-1&&e===i+1?"":t.slice(e,n)};var s="b"==="ab".substr(-1)?function(t,e,i){return t.substr(e,i)}:function(t,e,i){return e<0&&(e=t.length+e),t.substr(e,i)}}).call(this,i("4362"))},df7e:function(t,e,i){"use strict";var n=i("07fa");t.exports=function(t,e){for(var i=n(t),r=new e(i),s=0;s<i;s++)r[s]=t[i-s-1];return r}},dfb9:function(t,e,i){"use strict";var n=i("07fa");t.exports=function(t,e,i){var r=0,s=arguments.length>2?i:n(e),o=new t(s);while(s>r)o[r]=e[r++];return o}},e163:function(t,e,i){"use strict";var n=i("1a2d"),r=i("1626"),s=i("7b0b"),o=i("f772"),a=i("e177"),l=o("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=s(t);if(n(e,l))return e[l];var i=e.constructor;return r(i)&&e instanceof i?i.prototype:e instanceof c?u:null}},e177:function(t,e,i){"use strict";var n=i("d039");t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e216:function(t,e,i){},e261:function(t,e,i){"use strict";i("655d")},e330:function(t,e,i){"use strict";var n=i("40d5"),r=Function.prototype,s=r.call,o=n&&r.bind.bind(s,s);t.exports=n?o:function(t){return function(){return s.apply(t,arguments)}}},e391:function(t,e,i){"use strict";var n=i("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},e3db:function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},e431:function(t,e,i){},e467:function(t,e,i){"use strict";(function(t){var n=i("c532"),r=i("7917"),s=i("4581");function o(t){return n["a"].isPlainObject(t)||n["a"].isArray(t)}function a(t){return n["a"].endsWith(t,"[]")?t.slice(0,-2):t}function l(t,e,i){return t?t.concat(e).map((function(t,e){return t=a(t),!i&&e?"["+t+"]":t})).join(i?".":""):e}function c(t){return n["a"].isArray(t)&&!t.some(o)}const u=n["a"].toFlatObject(n["a"],{},null,(function(t){return/^is[A-Z]/.test(t)}));function h(e,i,h){if(!n["a"].isObject(e))throw new TypeError("target must be an object");i=i||new(s["a"]||FormData),h=n["a"].toFlatObject(h,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!n["a"].isUndefined(e[t])}));const d=h.metaTokens,p=h.visitor||_,f=h.dots,m=h.indexes,g=h.Blob||"undefined"!==typeof Blob&&Blob,v=g&&n["a"].isSpecCompliantForm(i);if(!n["a"].isFunction(p))throw new TypeError("visitor must be a function");function b(e){if(null===e)return"";if(n["a"].isDate(e))return e.toISOString();if(!v&&n["a"].isBlob(e))throw new r["a"]("Blob is not supported. Use a Buffer instead.");return n["a"].isArrayBuffer(e)||n["a"].isTypedArray(e)?v&&"function"===typeof Blob?new Blob([e]):t.from(e):e}function _(t,e,r){let s=t;if(t&&!r&&"object"===typeof t)if(n["a"].endsWith(e,"{}"))e=d?e:e.slice(0,-2),t=JSON.stringify(t);else if(n["a"].isArray(t)&&c(t)||(n["a"].isFileList(t)||n["a"].endsWith(e,"[]"))&&(s=n["a"].toArray(t)))return e=a(e),s.forEach((function(t,r){!n["a"].isUndefined(t)&&null!==t&&i.append(!0===m?l([e],r,f):null===m?e:e+"[]",b(t))})),!1;return!!o(t)||(i.append(l(r,e,f),b(t)),!1)}const y=[],w=Object.assign(u,{defaultVisitor:_,convertValue:b,isVisitable:o});function S(t,e){if(!n["a"].isUndefined(t)){if(-1!==y.indexOf(t))throw Error("Circular reference detected in "+e.join("."));y.push(t),n["a"].forEach(t,(function(t,r){const s=!(n["a"].isUndefined(t)||null===t)&&p.call(i,t,n["a"].isString(r)?r.trim():r,e,w);!0===s&&S(t,e?e.concat(r):[r])})),y.pop()}}if(!n["a"].isObject(e))throw new TypeError("data must be an object");return S(e),i}e["a"]=h}).call(this,i("b639").Buffer)},e5cb:function(t,e,i){"use strict";var n=i("d066"),r=i("1a2d"),s=i("9112"),o=i("3a9b"),a=i("d2bb"),l=i("e893"),c=i("aeb0"),u=i("7156"),h=i("e391"),d=i("ab36"),p=i("6f19"),f=i("83ab"),m=i("c430");t.exports=function(t,e,i,g){var v="stackTraceLimit",b=g?2:1,_=t.split("."),y=_[_.length-1],w=n.apply(null,_);if(w){var S=w.prototype;if(!m&&r(S,"cause")&&delete S.cause,!i)return w;var x=n("Error"),C=e((function(t,e){var i=h(g?e:t,void 0),n=g?new w(t):new w;return void 0!==i&&s(n,"message",i),p(n,C,n.stack,2),this&&o(S,this)&&u(n,this,C),arguments.length>b&&d(n,arguments[b]),n}));if(C.prototype=S,"Error"!==y?a?a(C,x):l(C,x,{name:!0}):f&&v in w&&(c(C,w,v),c(C,w,"prepareStackTrace")),l(C,w),!m)try{S.name!==y&&s(S,"name",y),S.constructor=C}catch(k){}return C}}},e5e6:function(t,e,i){"use strict";i("b41c")},e772:function(t,e,i){},e893:function(t,e,i){"use strict";var n=i("1a2d"),r=i("56ef"),s=i("06cf"),o=i("9bf2");t.exports=function(t,e,i){for(var a=r(e),l=o.f,c=s.f,u=0;u<a.length;u++){var h=a[u];n(t,h)||i&&n(i,h)||l(t,h,c(e,h))}}},e8b5:function(t,e,i){"use strict";var n=i("c6b6");t.exports=Array.isArray||function(t){return"Array"===n(t)}},e95a:function(t,e,i){"use strict";var n=i("b622"),r=i("3f8c"),s=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[s]===t)}},e9bc:function(t,e,i){"use strict";var n=i("dc19"),r=i("cb27").add,s=i("83b9"),o=i("7f65"),a=i("5388");t.exports=function(t){var e=n(this),i=o(t).getIterator(),l=s(e);return a(i,(function(t){r(l,t)})),l}},e9f5:function(t,e,i){"use strict";var n=i("23e7"),r=i("cfe9"),s=i("19aa"),o=i("825a"),a=i("1626"),l=i("e163"),c=i("edd0"),u=i("8418"),h=i("d039"),d=i("1a2d"),p=i("b622"),f=i("ae93").IteratorPrototype,m=i("83ab"),g=i("c430"),v="constructor",b="Iterator",_=p("toStringTag"),y=TypeError,w=r[b],S=g||!a(w)||w.prototype!==f||!h((function(){w({})})),x=function(){if(s(this,f),l(this)===f)throw new y("Abstract class Iterator not directly constructable")},C=function(t,e){m?c(f,t,{configurable:!0,get:function(){return e},set:function(e){if(o(this),this===f)throw new y("You can't redefine this property");d(this,t)?this[t]=e:u(this,t,e)}}):f[t]=e};d(f,_)||C(_,b),!S&&d(f,v)&&f[v]!==Object||C(v,x),x.prototype=f,n({global:!0,constructor:!0,forced:S},{Iterator:x})},ebb5:function(t,e,i){"use strict";var n,r,s,o=i("4b11"),a=i("83ab"),l=i("cfe9"),c=i("1626"),u=i("861d"),h=i("1a2d"),d=i("f5df"),p=i("0d51"),f=i("9112"),m=i("cb2d"),g=i("edd0"),v=i("3a9b"),b=i("e163"),_=i("d2bb"),y=i("b622"),w=i("90e3"),S=i("69f3"),x=S.enforce,C=S.get,k=l.Int8Array,T=k&&k.prototype,q=l.Uint8ClampedArray,E=q&&q.prototype,M=k&&b(k),I=T&&b(T),A=Object.prototype,N=l.TypeError,$=y("toStringTag"),D=w("TYPED_ARRAY_TAG"),R="TypedArrayConstructor",P=o&&!!_&&"Opera"!==d(l.opera),O=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},B={BigInt64Array:8,BigUint64Array:8},j=function(t){if(!u(t))return!1;var e=d(t);return"DataView"===e||h(L,e)||h(B,e)},z=function(t){var e=b(t);if(u(e)){var i=C(e);return i&&h(i,R)?i[R]:z(e)}},F=function(t){if(!u(t))return!1;var e=d(t);return h(L,e)||h(B,e)},V=function(t){if(F(t))return t;throw new N("Target is not a typed array")},H=function(t){if(c(t)&&(!_||v(M,t)))return t;throw new N(p(t)+" is not a typed array constructor")},U=function(t,e,i,n){if(a){if(i)for(var r in L){var s=l[r];if(s&&h(s.prototype,t))try{delete s.prototype[t]}catch(o){try{s.prototype[t]=e}catch(c){}}}I[t]&&!i||m(I,t,i?e:P&&T[t]||e,n)}},Q=function(t,e,i){var n,r;if(a){if(_){if(i)for(n in L)if(r=l[n],r&&h(r,t))try{delete r[t]}catch(s){}if(M[t]&&!i)return;try{return m(M,t,i?e:P&&M[t]||e)}catch(s){}}for(n in L)r=l[n],!r||r[t]&&!i||m(r,t,e)}};for(n in L)r=l[n],s=r&&r.prototype,s?x(s)[R]=r:P=!1;for(n in B)r=l[n],s=r&&r.prototype,s&&(x(s)[R]=r);if((!P||!c(M)||M===Function.prototype)&&(M=function(){throw new N("Incorrect invocation")},P))for(n in L)l[n]&&_(l[n],M);if((!P||!I||I===A)&&(I=M.prototype,P))for(n in L)l[n]&&_(l[n].prototype,I);if(P&&b(E)!==I&&_(E,I),a&&!h(I,$))for(n in O=!0,g(I,$,{configurable:!0,get:function(){return u(this)?this[D]:void 0}}),L)l[n]&&f(l[n],D,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:O&&D,aTypedArray:V,aTypedArrayConstructor:H,exportTypedArrayMethod:U,exportTypedArrayStaticMethod:Q,getTypedArrayConstructor:z,isView:j,isTypedArray:F,TypedArray:M,TypedArrayPrototype:I}},ecdd:function(t,e,i){},ed84:function(t,e,i){},edd0:function(t,e,i){"use strict";var n=i("13d2"),r=i("9bf2");t.exports=function(t,e,i){return i.get&&n(i.get,e,{getter:!0}),i.set&&n(i.set,e,{setter:!0}),r.f(t,e,i)}},f2a6:function(t,e,i){},f495:function(t,e,i){"use strict";var n=i("c04e"),r=TypeError;t.exports=function(t){var e=n(t,"number");if("number"==typeof e)throw new r("Can't convert number to bigint");return BigInt(e)}},f559:function(t,e,i){"use strict";i("8a6c")},f5df:function(t,e,i){"use strict";var n=i("00ee"),r=i("1626"),s=i("c6b6"),o=i("b622"),a=o("toStringTag"),l=Object,c="Arguments"===s(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(i){}};t.exports=n?s:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=u(e=l(t),a))?i:c?s(e):"Object"===(n=s(e))&&r(e.callee)?"Arguments":n}},f665:function(t,e,i){"use strict";var n=i("23e7"),r=i("2266"),s=i("59ed"),o=i("825a"),a=i("46c4");n({target:"Iterator",proto:!0,real:!0},{find:function(t){o(this),s(t);var e=a(this),i=0;return r(e,(function(e,n){if(t(e,i++))return n(e)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},f772:function(t,e,i){"use strict";var n=i("5692"),r=i("90e3"),s=n("keys");t.exports=function(t){return s[t]||(s[t]=r(t))}},f8cd:function(t,e,i){"use strict";var n=i("5926"),r=RangeError;t.exports=function(t){var e=n(t);if(e<0)throw new r("The argument can't be less than 0");return e}},f949:function(t,e,i){},fb15:function(t,e,i){"use strict";i.r(e);var n={};if(i.r(n),i.d(n,"hasBrowserEnv",(function(){return k})),i.d(n,"hasStandardBrowserWebWorkerEnv",(function(){return E})),i.d(n,"hasStandardBrowserEnv",(function(){return q})),i.d(n,"navigator",(function(){return T})),i.d(n,"origin",(function(){return M})),"undefined"!==typeof window){var r=window.document.currentScript,s=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);s&&(i.p=s[1])}i("0643"),i("4e3e");var o=function(){var t=this,e=t._self._c;return e("div",[e("q-btn",{attrs:{dense:"",flat:"",icon:"style",label:"版本資訊",color:t.btnColor||"white"},on:{click:t.showModel}}),e("q-dialog",{attrs:{persistent:""},on:{"before-show":t.getBaseInfo},model:{value:t.poupSwch.isShow,callback:function(e){t.$set(t.poupSwch,"isShow",e)},expression:"poupSwch.isShow"}},[e("q-card",{staticClass:"bg-grey-2",staticStyle:{width:"1200px","max-width":"90vw"}},[e("q-toolbar",{staticClass:"bg-light-blue-10 text-white"},[e("q-toolbar-title",[e("span",{staticClass:"text-weight-bold"},[t._v("版本更新資訊")])]),e("q-btn",{attrs:{flat:"",round:"",dense:"",icon:"close"},on:{click:t.close}})],1),e("q-card-section",{staticClass:"q-pa-lg",attrs:{horizontal:""}},[e("q-card-section",{staticClass:"bg-white",staticStyle:{width:"500px"}},[e("q-table",{attrs:{data:t.sysVer.result,grid:"","row-key":"index","wrap-cells":"",separator:"cell",flat:"",bordered:"",dense:"",pagination:t.pagination},on:{"update:pagination":function(e){t.pagination=e}},scopedSlots:t._u([{key:"item",fn:function(i){return[e("div",{staticClass:"full-width q-mb-xs"},[e("q-card",{staticClass:"verCard",class:{selectedCard:t.verSn==i.row.verSn},attrs:{flat:"",bordered:""},on:{click:function(e){return t.setDetailInfo(i.row)}}},[e("q-card-section",{staticClass:"row items-center q-pa-sm"},[e("q-avatar",{attrs:{rounded:"",color:i.row.isRelease?"orange-8":"grey-6","text-color":"white"}},[i.row.isRelease?e("span",[t._v("正")]):e("span",[t._v("測")])]),e("section",{staticClass:"q-ml-md"},[e("span",[t._v("版本號:"+t._s(i.row.verNo))]),e("span",{staticClass:"text-grey-7",staticStyle:{"font-size":"10px"}},[e("div",[e("span",[t._v("測試機發布時間:")]),e("span",[t._v(" "+t._s(i.row.createTime))])]),i.row.isRelease?e("div",[e("span",[t._v("正式機發布時間:")]),e("span",[t._v(t._s(i.row.releaseTime||"-"))])]):t._e()])])],1)],1)],1)]}},{key:"bottom",fn:function(){return[e("div",{staticClass:"full-width flex flex-center q-mt-md"},[e("q-pagination",{attrs:{color:"light-blue-9",max:t.sysVer.totalPages,"direction-links":!0,"boundary-links":!0,"max-pages":6},on:{input:t.changePage},model:{value:t.pagination.pageNumber,callback:function(e){t.$set(t.pagination,"pageNumber",e)},expression:"pagination.pageNumber"}})],1)]},proxy:!0}])})],1),e("q-separator",{attrs:{vertical:""}}),e("q-card-section",{staticClass:"full-width bg-white"},[t.detailInfo.length?e("div",[e("q-table",{staticClass:"versionInfo-header-table",attrs:{data:t.detailInfo,columns:t.columns,"row-key":"index","wrap-cells":"","rows-per-page-options":[0],separator:"cell",flat:"",bordered:""},scopedSlots:t._u([{key:"body-cell-funcPath",fn:function(i){return[e("q-td",{staticStyle:{width:"400px"},attrs:{align:"left"}},[t._v(" "+t._s(i.value)+" ")])]}},{key:"body-cell-description",fn:function(i){return[e("q-td",{staticStyle:{"white-space":"pre-line"},attrs:{align:"left"}},[t._v(" "+t._s(i.value)+" ")])]}}],null,!1,2066871052)})],1):e("div",{staticClass:"text-h5 text-grey-6 flex flex-center fit"},[t._v(" 未選擇版本資訊 ")])]),e("q-inner-loading",{attrs:{showing:t.showLoaging}},[e("q-spinner-hourglass",{attrs:{size:"50px",color:"primary"}})],1)],1)],1)],1)],1)},a=[],l=i("c532"),c=i("1d2b"),u=i("e467");function h(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function d(t,e){this._pairs=[],t&&Object(u["a"])(t,this,e)}const p=d.prototype;p.append=function(t,e){this._pairs.push([t,e])},p.toString=function(t){const e=t?function(e){return t.call(this,e,h)}:h;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var f=d;function m(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function g(t,e,i){if(!e)return t;const n=i&&i.encode||m;l["a"].isFunction(i)&&(i={serialize:i});const r=i&&i.serialize;let s;if(s=r?r(e,i):l["a"].isURLSearchParams(e)?e.toString():new f(e,i).toString(n),s){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}class v{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l["a"].forEach(this.handlers,(function(e){null!==e&&t(e)}))}}var b=v,_=i("7917"),y={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},w="undefined"!==typeof URLSearchParams?URLSearchParams:f,S="undefined"!==typeof FormData?FormData:null,x="undefined"!==typeof Blob?Blob:null,C={isBrowser:!0,classes:{URLSearchParams:w,FormData:S,Blob:x},protocols:["http","https","file","blob","url","data"]};const k="undefined"!==typeof window&&"undefined"!==typeof document,T="object"===typeof navigator&&navigator||void 0,q=k&&(!T||["ReactNative","NativeScript","NS"].indexOf(T.product)<0),E=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),M=k&&window.location.href||"http://localhost";var I={...n,...C};function A(t,e){return Object(u["a"])(t,new I.classes.URLSearchParams,Object.assign({visitor:function(t,e,i,n){return I.isNode&&l["a"].isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}function N(t){return l["a"].matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}function $(t){const e={},i=Object.keys(t);let n;const r=i.length;let s;for(n=0;n<r;n++)s=i[n],e[s]=t[s];return e}function D(t){function e(t,i,n,r){let s=t[r++];if("__proto__"===s)return!0;const o=Number.isFinite(+s),a=r>=t.length;if(s=!s&&l["a"].isArray(n)?n.length:s,a)return l["a"].hasOwnProp(n,s)?n[s]=[n[s],i]:n[s]=i,!o;n[s]&&l["a"].isObject(n[s])||(n[s]=[]);const c=e(t,i,n[s],r);return c&&l["a"].isArray(n[s])&&(n[s]=$(n[s])),!o}if(l["a"].isFormData(t)&&l["a"].isFunction(t.entries)){const i={};return l["a"].forEachEntry(t,(t,n)=>{e(N(t),n,i,0)}),i}return null}var R=D;function P(t,e,i){if(l["a"].isString(t))try{return(e||JSON.parse)(t),l["a"].trim(t)}catch(n){if("SyntaxError"!==n.name)throw n}return(i||JSON.stringify)(t)}const O={transitional:y,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const i=e.getContentType()||"",n=i.indexOf("application/json")>-1,r=l["a"].isObject(t);r&&l["a"].isHTMLForm(t)&&(t=new FormData(t));const s=l["a"].isFormData(t);if(s)return n?JSON.stringify(R(t)):t;if(l["a"].isArrayBuffer(t)||l["a"].isBuffer(t)||l["a"].isStream(t)||l["a"].isFile(t)||l["a"].isBlob(t)||l["a"].isReadableStream(t))return t;if(l["a"].isArrayBufferView(t))return t.buffer;if(l["a"].isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return A(t,this.formSerializer).toString();if((o=l["a"].isFileList(t))||i.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Object(u["a"])(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||n?(e.setContentType("application/json",!1),P(t)):t}],transformResponse:[function(t){const e=this.transitional||O.transitional,i=e&&e.forcedJSONParsing,n="json"===this.responseType;if(l["a"].isResponse(t)||l["a"].isReadableStream(t))return t;if(t&&l["a"].isString(t)&&(i&&!this.responseType||n)){const i=e&&e.silentJSONParsing,s=!i&&n;try{return JSON.parse(t)}catch(r){if(s){if("SyntaxError"===r.name)throw _["a"].from(r,_["a"].ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:I.classes.FormData,Blob:I.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l["a"].forEach(["delete","get","head","post","put","patch"],t=>{O.headers[t]={}});var L=O;const B=l["a"].toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var j=t=>{const e={};let i,n,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),i=t.substring(0,r).trim().toLowerCase(),n=t.substring(r+1).trim(),!i||e[i]&&B[i]||("set-cookie"===i?e[i]?e[i].push(n):e[i]=[n]:e[i]=e[i]?e[i]+", "+n:n)})),e};const z=Symbol("internals");function F(t){return t&&String(t).trim().toLowerCase()}function V(t){return!1===t||null==t?t:l["a"].isArray(t)?t.map(V):String(t)}function H(t){const e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;while(n=i.exec(t))e[n[1]]=n[2];return e}const U=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Q(t,e,i,n,r){return l["a"].isFunction(n)?n.call(this,e,i):(r&&(e=i),l["a"].isString(e)?l["a"].isString(n)?-1!==e.indexOf(n):l["a"].isRegExp(n)?n.test(e):void 0:void 0)}function W(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function Y(t,e){const i=l["a"].toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+i,{value:function(t,i,r){return this[n].call(this,e,t,i,r)},configurable:!0})})}class K{constructor(t){t&&this.set(t)}set(t,e,i){const n=this;function r(t,e,i){const r=F(e);if(!r)throw new Error("header name must be a non-empty string");const s=l["a"].findKey(n,r);(!s||void 0===n[s]||!0===i||void 0===i&&!1!==n[s])&&(n[s||e]=V(t))}const s=(t,e)=>l["a"].forEach(t,(t,i)=>r(t,i,e));if(l["a"].isPlainObject(t)||t instanceof this.constructor)s(t,e);else if(l["a"].isString(t)&&(t=t.trim())&&!U(t))s(j(t),e);else if(l["a"].isHeaders(t))for(const[o,a]of t.entries())r(a,o,i);else null!=t&&r(e,t,i);return this}get(t,e){if(t=F(t),t){const i=l["a"].findKey(this,t);if(i){const t=this[i];if(!e)return t;if(!0===e)return H(t);if(l["a"].isFunction(e))return e.call(this,t,i);if(l["a"].isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=F(t),t){const i=l["a"].findKey(this,t);return!(!i||void 0===this[i]||e&&!Q(this,this[i],i,e))}return!1}delete(t,e){const i=this;let n=!1;function r(t){if(t=F(t),t){const r=l["a"].findKey(i,t);!r||e&&!Q(i,i[r],r,e)||(delete i[r],n=!0)}}return l["a"].isArray(t)?t.forEach(r):r(t),n}clear(t){const e=Object.keys(this);let i=e.length,n=!1;while(i--){const r=e[i];t&&!Q(this,this[r],r,t,!0)||(delete this[r],n=!0)}return n}normalize(t){const e=this,i={};return l["a"].forEach(this,(n,r)=>{const s=l["a"].findKey(i,r);if(s)return e[s]=V(n),void delete e[r];const o=t?W(r):String(r).trim();o!==r&&delete e[r],e[o]=V(n),i[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return l["a"].forEach(this,(i,n)=>{null!=i&&!1!==i&&(e[n]=t&&l["a"].isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(t=>i.set(t)),i}static accessor(t){const e=this[z]=this[z]={accessors:{}},i=e.accessors,n=this.prototype;function r(t){const e=F(t);i[e]||(Y(n,t),i[e]=!0)}return l["a"].isArray(t)?t.forEach(r):r(t),this}}K.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l["a"].reduceDescriptors(K.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[i]=t}}}),l["a"].freezeMethods(K);var X=K;function G(t,e){const i=this||L,n=e||i,r=X.from(n.headers);let s=n.data;return l["a"].forEach(t,(function(t){s=t.call(i,s,r.normalize(),e?e.status:void 0)})),r.normalize(),s}function Z(t){return!(!t||!t.__CANCEL__)}function J(t,e,i){_["a"].call(this,null==t?"canceled":t,_["a"].ERR_CANCELED,e,i),this.name="CanceledError"}l["a"].inherits(J,_["a"],{__CANCEL__:!0});var tt=J,et=i("4581");function it(t,e,i){const n=i.config.validateStatus;i.status&&n&&!n(i.status)?e(new _["a"]("Request failed with status code "+i.status,[_["a"].ERR_BAD_REQUEST,_["a"].ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):t(i)}function nt(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function rt(t,e){t=t||10;const i=new Array(t),n=new Array(t);let r,s=0,o=0;return e=void 0!==e?e:1e3,function(a){const l=Date.now(),c=n[o];r||(r=l),i[s]=a,n[s]=l;let u=o,h=0;while(u!==s)h+=i[u++],u%=t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),l-r<e)return;const d=c&&l-c;return d?Math.round(1e3*h/d):void 0}}var st=rt;function ot(t,e){let i,n,r=0,s=1e3/e;const o=(e,s=Date.now())=>{r=s,i=null,n&&(clearTimeout(n),n=null),t.apply(null,e)},a=(...t)=>{const e=Date.now(),a=e-r;a>=s?o(t,e):(i=t,n||(n=setTimeout(()=>{n=null,o(i)},s-a)))},l=()=>i&&o(i);return[a,l]}var at=ot;const lt=(t,e,i=3)=>{let n=0;const r=st(50,250);return at(i=>{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-n,l=r(a),c=s<=o;n=s;const u={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&c?(o-s)/l:void 0,event:i,lengthComputable:null!=o,[e?"download":"upload"]:!0};t(u)},i)},ct=(t,e)=>{const i=null!=t;return[n=>e[0]({lengthComputable:i,total:t,loaded:n}),e[1]]},ut=t=>(...e)=>l["a"].asap(()=>t(...e));var ht=I.hasStandardBrowserEnv?((t,e)=>i=>(i=new URL(i,I.origin),t.protocol===i.protocol&&t.host===i.host&&(e||t.port===i.port)))(new URL(I.origin),I.navigator&&/(msie|trident)/i.test(I.navigator.userAgent)):()=>!0,dt=I.hasStandardBrowserEnv?{write(t,e,i,n,r,s){const o=[t+"="+encodeURIComponent(e)];l["a"].isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),l["a"].isString(n)&&o.push("path="+n),l["a"].isString(r)&&o.push("domain="+r),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pt(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ft(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function mt(t,e){return t&&!pt(e)?ft(t,e):e}const gt=t=>t instanceof X?{...t}:t;function vt(t,e){e=e||{};const i={};function n(t,e,i,n){return l["a"].isPlainObject(t)&&l["a"].isPlainObject(e)?l["a"].merge.call({caseless:n},t,e):l["a"].isPlainObject(e)?l["a"].merge({},e):l["a"].isArray(e)?e.slice():e}function r(t,e,i,r){return l["a"].isUndefined(e)?l["a"].isUndefined(t)?void 0:n(void 0,t,i,r):n(t,e,i,r)}function s(t,e){if(!l["a"].isUndefined(e))return n(void 0,e)}function o(t,e){return l["a"].isUndefined(e)?l["a"].isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(i,r,s){return s in e?n(i,r):s in t?n(void 0,i):void 0}const c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(t,e,i)=>r(gt(t),gt(e),i,!0)};return l["a"].forEach(Object.keys(Object.assign({},t,e)),(function(n){const s=c[n]||r,o=s(t[n],e[n],n);l["a"].isUndefined(o)&&s!==a||(i[n]=o)})),i}var bt=t=>{const e=vt({},t);let i,{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:c}=e;if(e.headers=a=X.from(a),e.url=g(mt(e.baseURL,e.url),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),l["a"].isFormData(n))if(I.hasStandardBrowserEnv||I.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(i=a.getContentType())){const[t,...e]=i?i.split(";").map(t=>t.trim()).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(I.hasStandardBrowserEnv&&(r&&l["a"].isFunction(r)&&(r=r(e)),r||!1!==r&&ht(e.url))){const t=s&&o&&dt.read(o);t&&a.set(s,t)}return e};const _t="undefined"!==typeof XMLHttpRequest;var yt=_t&&function(t){return new Promise((function(e,i){const n=bt(t);let r=n.data;const s=X.from(n.headers).normalize();let o,a,c,u,h,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=n;function m(){u&&u(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function v(){if(!g)return;const n=X.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),r=d&&"text"!==d&&"json"!==d?g.response:g.responseText,s={data:r,status:g.status,statusText:g.statusText,headers:n,config:t,request:g};it((function(t){e(t),m()}),(function(t){i(t),m()}),s),g=null}g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(v)},g.onabort=function(){g&&(i(new _["a"]("Request aborted",_["a"].ECONNABORTED,t,g)),g=null)},g.onerror=function(){i(new _["a"]("Network Error",_["a"].ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const r=n.transitional||y;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),i(new _["a"](e,r.clarifyTimeoutError?_["a"].ETIMEDOUT:_["a"].ECONNABORTED,t,g)),g=null},void 0===r&&s.setContentType(null),"setRequestHeader"in g&&l["a"].forEach(s.toJSON(),(function(t,e){g.setRequestHeader(e,t)})),l["a"].isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),d&&"json"!==d&&(g.responseType=n.responseType),f&&([c,h]=lt(f,!0),g.addEventListener("progress",c)),p&&g.upload&&([a,u]=lt(p),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(o=e=>{g&&(i(!e||e.type?new tt(null,t,g):e),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const b=nt(n.url);b&&-1===I.protocols.indexOf(b)?i(new _["a"]("Unsupported protocol "+b+":",_["a"].ERR_BAD_REQUEST,t)):g.send(r||null)}))};const wt=(t,e)=>{const{length:i}=t=t?t.filter(Boolean):[];if(e||i){let i,n=new AbortController;const r=function(t){if(!i){i=!0,o();const e=t instanceof Error?t:this.reason;n.abort(e instanceof _["a"]?e:new tt(e instanceof Error?e.message:e))}};let s=e&&setTimeout(()=>{s=null,r(new _["a"](`timeout ${e} of ms exceeded`,_["a"].ETIMEDOUT))},e);const o=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(r):t.removeEventListener("abort",r)}),t=null)};t.forEach(t=>t.addEventListener("abort",r));const{signal:a}=n;return a.unsubscribe=()=>l["a"].asap(o),a}};var St=wt;const xt=function*(t,e){let i=t.byteLength;if(!e||i<e)return void(yield t);let n,r=0;while(r<i)n=r+e,yield t.slice(r,n),r=n},Ct=async function*(t,e){for await(const i of kt(t))yield*xt(i,e)},kt=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:i}=await e.read();if(t)break;yield i}}finally{await e.cancel()}},Tt=(t,e,i,n)=>{const r=Ct(t,e);let s,o=0,a=t=>{s||(s=!0,n&&n(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await r.next();if(e)return a(),void t.close();let s=n.byteLength;if(i){let t=o+=s;i(t)}t.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel(t){return a(t),r.return()}},{highWaterMark:2})},qt="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Et=qt&&"function"===typeof ReadableStream,Mt=qt&&("function"===typeof TextEncoder?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),It=(t,...e)=>{try{return!!t(...e)}catch(i){return!1}},At=Et&&It(()=>{let t=!1;const e=new Request(I.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Nt=65536,$t=Et&&It(()=>l["a"].isReadableStream(new Response("").body)),Dt={stream:$t&&(t=>t.body)};qt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Dt[e]&&(Dt[e]=l["a"].isFunction(t[e])?t=>t[e]():(t,i)=>{throw new _["a"](`Response type '${e}' is not supported`,_["a"].ERR_NOT_SUPPORT,i)})})})(new Response);const Rt=async t=>{if(null==t)return 0;if(l["a"].isBlob(t))return t.size;if(l["a"].isSpecCompliantForm(t)){const e=new Request(I.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return l["a"].isArrayBufferView(t)||l["a"].isArrayBuffer(t)?t.byteLength:(l["a"].isURLSearchParams(t)&&(t+=""),l["a"].isString(t)?(await Mt(t)).byteLength:void 0)},Pt=async(t,e)=>{const i=l["a"].toFiniteNumber(t.getContentLength());return null==i?Rt(e):i};var Ot=qt&&(async t=>{let{url:e,method:i,data:n,signal:r,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:h,withCredentials:d="same-origin",fetchOptions:p}=bt(t);u=u?(u+"").toLowerCase():"text";let f,m=St([r,s&&s.toAbortSignal()],o);const g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let v;try{if(c&&At&&"get"!==i&&"head"!==i&&0!==(v=await Pt(h,n))){let t,i=new Request(e,{method:"POST",body:n,duplex:"half"});if(l["a"].isFormData(n)&&(t=i.headers.get("content-type"))&&h.setContentType(t),i.body){const[t,e]=ct(v,lt(ut(c)));n=Tt(i.body,Nt,t,e)}}l["a"].isString(d)||(d=d?"include":"omit");const r="credentials"in Request.prototype;f=new Request(e,{...p,signal:m,method:i.toUpperCase(),headers:h.normalize().toJSON(),body:n,duplex:"half",credentials:r?d:void 0});let s=await fetch(f);const o=$t&&("stream"===u||"response"===u);if($t&&(a||o&&g)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=s[e]});const e=l["a"].toFiniteNumber(s.headers.get("content-length")),[i,n]=a&&ct(e,lt(ut(a),!0))||[];s=new Response(Tt(s.body,Nt,i,()=>{n&&n(),g&&g()}),t)}u=u||"text";let b=await Dt[l["a"].findKey(Dt,u)||"text"](s,t);return!o&&g&&g(),await new Promise((e,i)=>{it(e,i,{data:b,headers:X.from(s.headers),status:s.status,statusText:s.statusText,config:t,request:f})})}catch(b){if(g&&g(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new _["a"]("Network Error",_["a"].ERR_NETWORK,t,f),{cause:b.cause||b});throw _["a"].from(b,b&&b.code,t,f)}});const Lt={http:et["a"],xhr:yt,fetch:Ot};l["a"].forEach(Lt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(i){}Object.defineProperty(t,"adapterName",{value:e})}});const Bt=t=>"- "+t,jt=t=>l["a"].isFunction(t)||null===t||!1===t;var zt={getAdapter:t=>{t=l["a"].isArray(t)?t:[t];const{length:e}=t;let i,n;const r={};for(let s=0;s<e;s++){let e;if(i=t[s],n=i,!jt(i)&&(n=Lt[(e=String(i)).toLowerCase()],void 0===n))throw new _["a"](`Unknown adapter '${e}'`);if(n)break;r[e||"#"+s]=n}if(!n){const t=Object.entries(r).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let i=e?t.length>1?"since :\n"+t.map(Bt).join("\n"):" "+Bt(t[0]):"as no adapter specified";throw new _["a"]("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:Lt};function Ft(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new tt(null,t)}function Vt(t){Ft(t),t.headers=X.from(t.headers),t.data=G.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=zt.getAdapter(t.adapter||L.adapter);return e(t).then((function(e){return Ft(t),e.data=G.call(t,t.transformResponse,e),e.headers=X.from(e.headers),e}),(function(e){return Z(e)||(Ft(t),e&&e.response&&(e.response.data=G.call(t,t.transformResponse,e.response),e.response.headers=X.from(e.response.headers))),Promise.reject(e)}))}const Ht="1.7.9",Ut={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ut[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Qt={};function Wt(t,e,i){if("object"!==typeof t)throw new _["a"]("options must be an object",_["a"].ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let r=n.length;while(r-- >0){const s=n[r],o=e[s];if(o){const e=t[s],i=void 0===e||o(e,s,t);if(!0!==i)throw new _["a"]("option "+s+" must be "+i,_["a"].ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new _["a"]("Unknown option "+s,_["a"].ERR_BAD_OPTION)}}Ut.transitional=function(t,e,i){function n(t,e){return"[Axios v"+Ht+"] Transitional option '"+t+"'"+e+(i?". "+i:"")}return(i,r,s)=>{if(!1===t)throw new _["a"](n(r," has been removed"+(e?" in "+e:"")),_["a"].ERR_DEPRECATED);return e&&!Qt[r]&&(Qt[r]=!0,console.warn(n(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,r,s)}},Ut.spelling=function(t){return(e,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};var Yt={assertOptions:Wt,validators:Ut};const Kt=Yt.validators;class Xt{constructor(t){this.defaults=t,this.interceptors={request:new b,response:new b}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const e=t.stack?t.stack.replace(/^.+\n/,""):"";try{i.stack?e&&!String(i.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(i.stack+="\n"+e):i.stack=e}catch(n){}}throw i}}_request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=vt(this.defaults,e);const{transitional:i,paramsSerializer:n,headers:r}=e;void 0!==i&&Yt.assertOptions(i,{silentJSONParsing:Kt.transitional(Kt.boolean),forcedJSONParsing:Kt.transitional(Kt.boolean),clarifyTimeoutError:Kt.transitional(Kt.boolean)},!1),null!=n&&(l["a"].isFunction(n)?e.paramsSerializer={serialize:n}:Yt.assertOptions(n,{encode:Kt.function,serialize:Kt.function},!0)),Yt.assertOptions(e,{baseUrl:Kt.spelling("baseURL"),withXsrfToken:Kt.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let s=r&&l["a"].merge(r.common,r[e.method]);r&&l["a"].forEach(["delete","get","head","post","put","patch","common"],t=>{delete r[t]}),e.headers=X.concat(s,r);const o=[];let a=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let h,d=0;if(!a){const t=[Vt.bind(this),void 0];t.unshift.apply(t,o),t.push.apply(t,c),h=t.length,u=Promise.resolve(e);while(d<h)u=u.then(t[d++],t[d++]);return u}h=o.length;let p=e;d=0;while(d<h){const t=o[d++],e=o[d++];try{p=t(p)}catch(f){e.call(this,f);break}}try{u=Vt.call(this,p)}catch(f){return Promise.reject(f)}d=0,h=c.length;while(d<h)u=u.then(c[d++],c[d++]);return u}getUri(t){t=vt(this.defaults,t);const e=mt(t.baseURL,t.url);return g(e,t.params,t.paramsSerializer)}}l["a"].forEach(["delete","get","head","options"],(function(t){Xt.prototype[t]=function(e,i){return this.request(vt(i||{},{method:t,url:e,data:(i||{}).data}))}})),l["a"].forEach(["post","put","patch"],(function(t){function e(e){return function(i,n,r){return this.request(vt(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}Xt.prototype[t]=e(),Xt.prototype[t+"Form"]=e(!0)}));var Gt=Xt;class Zt{constructor(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const i=this;this.promise.then(t=>{if(!i._listeners)return;let e=i._listeners.length;while(e-- >0)i._listeners[e](t);i._listeners=null}),this.promise.then=t=>{let e;const n=new Promise(t=>{i.subscribe(t),e=t}).then(t);return n.cancel=function(){i.unsubscribe(e)},n},t((function(t,n,r){i.reason||(i.reason=new tt(t,n,r),e(i.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;const e=new Zt((function(e){t=e}));return{token:e,cancel:t}}}var Jt=Zt;function te(t){return function(e){return t.apply(null,e)}}function ee(t){return l["a"].isObject(t)&&!0===t.isAxiosError}const ie={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ie).forEach(([t,e])=>{ie[e]=t});var ne=ie;function re(t){const e=new Gt(t),i=Object(c["a"])(Gt.prototype.request,e);return l["a"].extend(i,Gt.prototype,e,{allOwnKeys:!0}),l["a"].extend(i,e,null,{allOwnKeys:!0}),i.create=function(e){return re(vt(t,e))},i}const se=re(L);se.Axios=Gt,se.CanceledError=tt,se.CancelToken=Jt,se.isCancel=Z,se.VERSION=Ht,se.toFormData=u["a"],se.AxiosError=_["a"],se.Cancel=se.CanceledError,se.all=function(t){return Promise.all(t)},se.spread=te,se.isAxiosError=ee,se.mergeConfig=vt,se.AxiosHeaders=X,se.formToJSON=t=>R(l["a"].isHTMLForm(t)?new FormData(t):t),se.getAdapter=zt.getAdapter,se.HttpStatusCode=ne,se.default=se;var oe=se,ae={props:["label","btnColor","token"],name:"versionInfo",data(){return{detailInfo:[],verSn:null,poupSwch:{isShow:!1},pagination:{rowsPerPage:5,pageNumber:1,pageSize:5},sysVer:{},showLoaging:!1}},computed:{columns(){return[{name:"funcPath",label:"功能選單路徑",field:"funcPath",align:"center",headerClasses:"bg-light-blue-9 text-white theader"},{name:"description",label:"描述",field:"description",align:"center",headerClasses:"bg-light-blue-9 text-white theader"}]},fjuBaseApi(){let t=location.hostname;return"localhost"==t||"140.136.240.22"==t||"sf446lab.fju.edu.tw"==t||"sf446lab2.fju.edu.tw"==t?"https://api-gateway-dev.fju.edu.tw/FjuBase/api":"https://travellerLink.fju.edu.tw/FjuBase/api"}},methods:{async getBaseInfo(){},async changePage(){const t=oe.create({baseURL:this.fjuBaseApi});t.defaults.headers.common["Authorization"]="Bearer "+this.token,this.showLoaging=!0;let e=await t.get("/Account/SysVersion",{params:this.pagination});this.sysVer=e.data.result,this.showLoaging=!1},async showModel(){this.poupSwch.isShow=!0,this.changePage()},setDetailInfo(t){this.detailInfo=t.detailInfo,this.verSn=t.verSn},close(){this.poupSwch.isShow=!1,this.pagination.pageNumber=1,this.detailInfo=[],this.verSn=null}}},le=ae;i("7145"),i("292e");function ce(t,e,i,n,r,s,o,a){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),o?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}i("14d9");var ue=i("8bbf"),he=i.n(ue);i("a573");const de={xs:18,sm:24,md:32,lg:38,xl:46};function pe(t){return{props:{size:String},computed:{sizeStyle(){if(void 0!==this.size)return{fontSize:this.size in t?t[this.size]+"px":this.size}}}}}var fe=pe(de),me={props:{tag:{type:String,default:"div"}}};i("c73d");const ge="undefined"===typeof window;let ve,be=!1,_e=ge,ye=!1;function we(t,e){const i=/(edge|edga|edgios)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome|crios)[\/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(firefox|fxios)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:i[5]||i[3]||i[1]||"",version:i[2]||i[4]||"0",versionNumber:i[4]||i[2]||"0",platform:e[0]||""}}function Se(t){return/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]}const xe=!1===ge&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Ce(t){ve={is:{...t}},delete t.mac,delete t.desktop;const e=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(t,{mobile:!0,ios:!0,platform:e,[e]:!0})}function ke(t){const e=t.toLowerCase(),i=Se(e),n=we(e,i),r={};n.browser&&(r[n.browser]=!0,r.version=n.version,r.versionNumber=parseInt(n.versionNumber,10)),n.platform&&(r[n.platform]=!0);const s=r.android||r.ios||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"];return!0===s||e.indexOf("mobile")>-1?(r.mobile=!0,r.edga||r.edgios?(r.edge=!0,n.browser="edge"):r.crios?(r.chrome=!0,n.browser="chrome"):r.fxios&&(r.firefox=!0,n.browser="firefox")):r.desktop=!0,(r.ipod||r.ipad||r.iphone)&&(r.ios=!0),r["windows phone"]&&(r.winphone=!0,delete r["windows phone"]),(r.chrome||r.opr||r.safari||r.vivaldi||!0===r.mobile&&!0!==r.ios&&!0!==s)&&(r.webkit=!0),(r.rv||r.iemobile)&&(n.browser="ie",r.ie=!0),(r.safari&&r.blackberry||r.bb)&&(n.browser="blackberry",r.blackberry=!0),r.safari&&r.playbook&&(n.browser="playbook",r.playbook=!0),r.opr&&(n.browser="opera",r.opera=!0),r.safari&&r.android&&(n.browser="android",r.android=!0),r.safari&&r.kindle&&(n.browser="kindle",r.kindle=!0),r.safari&&r.silk&&(n.browser="silk",r.silk=!0),r.vivaldi&&(n.browser="vivaldi",r.vivaldi=!0),r.name=n.browser,r.platform=n.platform,!1===ge&&(e.indexOf("electron")>-1?r.electron=!0:document.location.href.indexOf("-extension://")>-1?r.bex=!0:(void 0!==window.Capacitor?(r.capacitor=!0,r.nativeMobile=!0,r.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(r.cordova=!0,r.nativeMobile=!0,r.nativeMobileWrapper="cordova"),!0===xe&&!0===r.mac&&(!0===r.desktop&&!0===r.safari||!0===r.nativeMobile&&!0!==r.android&&!0!==r.ios&&!0!==r.ipad)&&Ce(r)),be=void 0===r.nativeMobile&&void 0===r.electron&&null!==document.querySelector("[data-server-rendered]"),!0===be&&(_e=!0)),r}const Te=!0!==ge?navigator.userAgent||navigator.vendor||window.opera:"",qe={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Ee=!1===ge?{userAgent:Te,is:ke(Te),has:{touch:xe,webStorage:(()=>{try{if(window.localStorage)return!0}catch(t){}return!1})()},within:{iframe:window.self!==window.top}}:qe,Me={install(t,e){!0===ge?e.server.push((t,e)=>{t.platform=this.parseSSR(e.ssr)}):!0===be?(Object.assign(this,Ee,ve,qe),e.takeover.push(t=>{_e=be=!1,Object.assign(t.platform,Ee),ve=void 0}),he.a.util.defineReactive(t,"platform",this)):(Object.assign(this,Ee),t.platform=this)}};!0===ge?Me.parseSSR=t=>{const e=t.req.headers["user-agent"]||t.req.headers["User-Agent"]||"";return{...Ee,userAgent:e,is:ke(e)}}:ye=!0===Ee.is.ios&&-1===window.navigator.vendor.toLowerCase().indexOf("apple");var Ie=Me;function Ae(t,e,i){if(!0===ge)return i;const n="__qcache_"+e;return void 0===t[n]?t[n]=i:t[n]}function Ne(t,e,i){if(!0===ge)return i();const n="__qcache_"+e;return void 0===t[n]?t[n]=i():t[n]}function $e(t,e){return{data(){const i={},n=this[t];for(const t in n)i[t]=n[t];return{[e]:i}},watch:{[t](t,i){const n=this[e];if(void 0!==i)for(const e in i)void 0===t[e]&&this.$delete(n,e);for(const e in t)n[e]!==t[e]&&this.$set(n,e,t[e])}}}}var De=$e("$listeners","qListeners");function Re(t,e,i){return void 0!==t.$scopedSlots[e]?t.$scopedSlots[e]():i}function Pe(t,e,i){return void 0!==t.$scopedSlots[e]?[].concat(t.$scopedSlots[e]()):i}function Oe(t,e,i){return void 0!==e.$scopedSlots[i]?t.concat(e.$scopedSlots[i]()):t}function Le(t,e,i){if(void 0===e.$scopedSlots[i])return t;const n=e.$scopedSlots[i]();return void 0!==t?t.concat(n):n}const Be="0 0 24 24",je=t=>t,ze=t=>"ionicons "+t,Fe={"mdi-":t=>"mdi "+t,"icon-":je,"bt-":t=>"bt "+t,"eva-":t=>"eva "+t,"ion-md":ze,"ion-ios":ze,"ion-logo":ze,"iconfont ":je,"ti-":t=>"themify-icon "+t,"bi-":t=>"bootstrap-icons "+t},Ve={o_:"-outlined",r_:"-round",s_:"-sharp"},He={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Ue=new RegExp("^("+Object.keys(Fe).join("|")+")"),Qe=new RegExp("^("+Object.keys(Ve).join("|")+")"),We=new RegExp("^("+Object.keys(He).join("|")+")"),Ye=/^[Mm]\s?[-+]?\.?\d/,Ke=/^img:/,Xe=/^svguse:/,Ge=/^ion-/,Ze=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var Je=he.a.extend({name:"QIcon",mixins:[De,fe,me],props:{tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},computed:{classes(){return"q-icon"+(!0===this.left?" on-left":"")+(!0===this.right?" on-right":"")+(void 0!==this.color?" text-"+this.color:"")},type(){let t,e=this.name;if("none"===e||!e)return{none:!0};if(void 0!==this.$q.iconMapFn){const t=this.$q.iconMapFn(e);if(void 0!==t){if(void 0===t.icon)return{cls:t.cls,content:void 0!==t.content?t.content:" "};if(e=t.icon,"none"===e||!e)return{none:!0}}}if(!0===Ye.test(e)){const[t,i=Be]=e.split("|");return{svg:!0,viewBox:i,nodes:t.split("&&").map(t=>{const[e,i,n]=t.split("@@");return this.$createElement("path",{attrs:{d:e,transform:n},style:i})})}}if(!0===Ke.test(e))return{img:!0,src:e.substring(4)};if(!0===Xe.test(e)){const[t,i=Be]=e.split("|");return{svguse:!0,src:t.substring(7),viewBox:i}}let i=" ";const n=e.match(Ue);if(null!==n)t=Fe[n[1]](e);else if(!0===Ze.test(e))t=e;else if(!0===Ge.test(e))t=`ionicons ion-${!0===this.$q.platform.is.ios?"ios":"md"}${e.substr(3)}`;else if(!0===We.test(e)){t="notranslate material-symbols";const n=e.match(We);null!==n&&(e=e.substring(6),t+=He[n[1]]),i=e}else{t="notranslate material-icons";const n=e.match(Qe);null!==n&&(e=e.substring(2),t+=Ve[n[1]]),i=e}return{cls:t,content:i}}},render(t){const e={class:this.classes,style:this.sizeStyle,on:{...this.qListeners},attrs:{"aria-hidden":"true",role:"presentation"}};return!0===this.type.none?t(this.tag,e,Re(this,"default")):!0===this.type.img?t("span",e,Oe([t("img",{attrs:{src:this.type.src}})],this,"default")):!0===this.type.svg?t("span",e,Oe([t("svg",{attrs:{viewBox:this.type.viewBox||"0 0 24 24",focusable:"false"}},this.type.nodes)],this,"default")):!0===this.type.svguse?t("span",e,Oe([t("svg",{attrs:{viewBox:this.type.viewBox,focusable:"false"}},[t("use",{attrs:{"xlink:href":this.type.src}})])],this,"default")):(void 0!==this.type.cls&&(e.class+=" "+this.type.cls),t(this.tag,e,Oe([this.type.content],this,"default")))}}),ti={mixins:[De],props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{cSize(){return this.size in de?de[this.size]+"px":this.size},classes(){if(this.color)return"text-"+this.color}}},ei=he.a.extend({name:"QSpinner",mixins:[ti],props:{thickness:{type:Number,default:5}},render(t){return t("svg",{staticClass:"q-spinner q-spinner-mat",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"25 25 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":this.thickness,"stroke-miterlimit":"10"}})])}});i("13d5");const ii={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},ni=Object.keys(ii);var ri={props:{align:{type:String,validator:t=>ni.includes(t)}},computed:{alignClass(){const t=void 0===this.align?!0===this.vertical?"stretch":"left":this.align;return`${!0===this.vertical?"items":"justify"}-${ii[t]}`}}};function si(t,e){const i=t.style;Object.keys(e).forEach(t=>{i[t]=e[t]})}function oi(t){const e=typeof t;if("function"===e&&(t=t()),"string"===e)try{t=document.querySelector(t)}catch(i){}return t!==Object(t)?null:!0===t._isVue&&void 0!==t.$el?t.$el:t}function ai(t,e){if(void 0===t||!0===t.contains(e))return!0;for(let i=t.nextElementSibling;null!==i;i=i.nextElementSibling)if(i.contains(e))return!0;return!1}function li(t){return t===document.documentElement||null===t?document.body:t}const ci={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{var ui=Object.defineProperty({},"passive",{get(){Object.assign(ci,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,ui),window.removeEventListener("qtest",null,ui)}catch(ap){}function hi(){}function di(t){return 0===t.button}function pi(t){return t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]?t=t.changedTouches[0]:t.targetTouches&&t.targetTouches[0]&&(t=t.targetTouches[0]),{top:t.clientY,left:t.clientX}}function fi(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const e=[];let i=t.target;while(i){if(e.push(i),"HTML"===i.tagName)return e.push(document),e.push(window),e;i=i.parentElement}}function mi(t){t.stopPropagation()}function gi(t){!1!==t.cancelable&&t.preventDefault()}function vi(t){!1!==t.cancelable&&t.preventDefault(),t.stopPropagation()}function bi(t){if(vi(t),"mousedown"===t.type){const e=i=>{i.target===t.target&&vi(i),document.removeEventListener("click",e,ci.notPassiveCapture)};document.addEventListener("click",e,ci.notPassiveCapture)}}function _i(t,e){if(void 0===t||!0===e&&!0===t.__dragPrevented)return;const i=!0===e?t=>{t.__dragPrevented=!0,t.addEventListener("dragstart",gi,ci.notPassiveCapture)}:t=>{delete t.__dragPrevented,t.removeEventListener("dragstart",gi,ci.notPassiveCapture)};t.querySelectorAll("a, img").forEach(i)}function yi(t,{bubbles:e=!1,cancelable:i=!1}={}){try{return new CustomEvent(t,{bubbles:e,cancelable:i})}catch(ap){const r=document.createEvent("Event");return r.initEvent(t,e,i),r}}function wi(t,e,i){const n=`__q_${e}_evt`;t[n]=void 0!==t[n]?t[n].concat(i):i,i.forEach(e=>{e[0].addEventListener(e[1],t[e[2]],ci[e[3]])})}function Si(t,e){const i=`__q_${e}_evt`;void 0!==t[i]&&(t[i].forEach(e=>{e[0].removeEventListener(e[1],t[e[2]],ci[e[3]])}),t[i]=void 0)}let xi=!1;function Ci(t){return!0===xi||t!==Object(t)||!0===t.isComposing||!0===t.qKeyEvent}function ki(t,e){return!0!==Ci(t)&&[].concat(e).includes(t.keyCode)}var Ti=function(t,e=250){let i,n=!1;return function(){return!1===n&&(n=!0,setTimeout(()=>{n=!1},e),i=t.apply(this,arguments)),i}},qi=i("c0a8"),Ei=function(t,e=250,i){let n;function r(){const r=arguments,s=()=>{n=void 0,!0!==i&&t.apply(this,r)};clearTimeout(n),!0===i&&void 0===n&&t.apply(this,r),n=setTimeout(s,e)}return r.cancel=()=>{clearTimeout(n)},r};const{passive:Mi}=ci;i("2382");const Ii=()=>!0;function Ai(t){return"string"===typeof t&&""!==t&&"/"!==t&&"#/"!==t}function Ni(t){return!0===t.startsWith("#")&&(t=t.substr(1)),!1===t.startsWith("/")&&(t="/"+t),!0===t.endsWith("/")&&(t=t.substr(0,t.length-1)),"#"+t}function $i(t){if(!1===t.backButtonExit)return()=>!1;if("*"===t.backButtonExit)return Ii;const e=["#/"];return!0===Array.isArray(t.backButtonExit)&&e.push(...t.backButtonExit.filter(Ai).map(Ni)),()=>e.includes(window.location.hash)}var Di={__history:[],add:hi,remove:hi,install(t){if(!0===ge)return;const{cordova:e,capacitor:i}=Ee.is;if(!0!==e&&!0!==i)return;const n=t[!0===e?"cordova":"capacitor"];if(void 0!==n&&!1===n.backButton)return;if(!0===i&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=t=>{void 0===t.condition&&(t.condition=Ii),this.__history.push(t)},this.remove=t=>{const e=this.__history.indexOf(t);e>=0&&this.__history.splice(e,1)};const r=$i(Object.assign({backButtonExit:!0},n)),s=()=>{if(this.__history.length){const t=this.__history[this.__history.length-1];!0===t.condition()&&(this.__history.pop(),t.handler())}else!0===r()?navigator.app.exitApp():window.history.back()};!0===e?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",s,!1)}):window.Capacitor.Plugins.App.addListener("backButton",s)}},Ri={isoName:"en-us",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:function(t){return t?`Expand "${t}"`:"Expand"},collapse:function(t){return t?`Collapse "${t}"`:"Collapse"}},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:function(t){return 1===t?"1 record selected.":(0===t?"No":t)+" records selected."},recordsPerPage:"Records per page:",allRows:"All",pagination:function(t,e,i){return t+"-"+e+" of "+i},columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function Pi(){if(!0===ge)return;const t=navigator.language||navigator.languages[0]||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage;return t?t.toLowerCase():void 0}const Oi={getLocale:Pi,install(t,e,i){const n=i||Ri;this.set=(e=Ri,i)=>{const n={...e,rtl:!0===e.rtl,getLocale:Pi};if(!0===ge){if(void 0===i)return void console.error("SSR ERROR: second param required: Quasar.lang.set(lang, ssrContext)");const t=!0===n.rtl?"rtl":"ltr",e=`lang=${n.isoName} dir=${t}`;n.set=i.$q.lang.set,i.Q_HTML_ATTRS=void 0!==i.Q_PREV_LANG?i.Q_HTML_ATTRS.replace(i.Q_PREV_LANG,e):e,i.Q_PREV_LANG=e,i.$q.lang=n}else{if(!1===be){const t=document.documentElement;t.setAttribute("dir",!0===n.rtl?"rtl":"ltr"),t.setAttribute("lang",n.isoName)}n.set=this.set,t.lang=this.props=n,this.isoName=n.isoName,this.nativeName=n.nativeName}},!0===ge?(e.server.push((t,e)=>{t.lang={},t.lang.set=t=>{this.set(t,e.ssr)},t.lang.set(n)}),this.isoName=n.isoName,this.nativeName=n.nativeName,this.props=n):(he.a.util.defineReactive(t,"lang",{}),this.set(n))}};var Li=Oi;i("d9e2");const Bi=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function ji({r:t,g:e,b:i,a:n}){const r=void 0!==n;if(t=Math.round(t),e=Math.round(e),i=Math.round(i),t>255||e>255||i>255||r&&n>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return n=r?(256|Math.round(255*n/100)).toString(16).slice(1):"","#"+(i|e<<8|t<<16|1<<24).toString(16).slice(1)+n}function zi({r:t,g:e,b:i,a:n}){return`rgb${void 0!==n?"a":""}(${t},${e},${i}${void 0!==n?","+n/100:""})`}function Fi(t){if("string"!==typeof t)throw new TypeError("Expected a string");t=t.replace(/^#/,""),3===t.length?t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:4===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);const e=parseInt(t,16);return t.length>6?{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:Math.round((255&e)/2.55)}:{r:e>>16,g:e>>8&255,b:255&e}}function Vi({h:t,s:e,v:i,a:n}){let r,s,o;e/=100,i/=100,t/=360;const a=Math.floor(6*t),l=6*t-a,c=i*(1-e),u=i*(1-l*e),h=i*(1-(1-l)*e);switch(a%6){case 0:r=i,s=h,o=c;break;case 1:r=u,s=i,o=c;break;case 2:r=c,s=i,o=h;break;case 3:r=c,s=u,o=i;break;case 4:r=h,s=c,o=i;break;case 5:r=i,s=c,o=u;break}return{r:Math.round(255*r),g:Math.round(255*s),b:Math.round(255*o),a:n}}function Hi({r:t,g:e,b:i,a:n}){const r=Math.max(t,e,i),s=Math.min(t,e,i),o=r-s,a=0===r?0:o/r,l=r/255;let c;switch(r){case s:c=0;break;case t:c=e-i+o*(e<i?6:0),c/=6*o;break;case e:c=i-t+2*o,c/=6*o;break;case i:c=t-e+4*o,c/=6*o;break}return{h:Math.round(360*c),s:Math.round(100*a),v:Math.round(100*l),a:n}}function Ui(t){if("string"!==typeof t)throw new TypeError("Expected a string");const e=t.replace(/ /g,""),i=Bi.exec(e);if(null===i)return Fi(e);const n={r:Math.min(255,parseInt(i[2],10)),g:Math.min(255,parseInt(i[3],10)),b:Math.min(255,parseInt(i[4],10))};if(i[1]){const t=parseFloat(i[5]);n.a=100*Math.min(1,!0===isNaN(t)?1:t)}return n}function Qi(t){if("string"!==typeof t&&(!t||void 0===t.r))throw new TypeError("Expected a string or a {r, g, b} object as color");const e="string"===typeof t?Ui(t):t,i=e.r/255,n=e.g/255,r=e.b/255,s=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),o=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),a=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4);return.2126*s+.7152*o+.0722*a}const Wi={version:qi["a"],config:{}};function Yi(t,e,i,n){!0===i.modifiers.stop&&mi(t);const r=i.modifiers.color;let s=i.modifiers.center;s=!0===s||!0===n;const o=document.createElement("span"),a=document.createElement("span"),l=pi(t),{left:c,top:u,width:h,height:d}=e.getBoundingClientRect(),p=Math.sqrt(h*h+d*d),f=p/2,m=(h-p)/2+"px",g=s?m:l.left-c-f+"px",v=(d-p)/2+"px",b=s?v:l.top-u-f+"px";a.className="q-ripple__inner",si(a,{height:p+"px",width:p+"px",transform:`translate3d(${g},${b},0) scale3d(.2,.2,1)`,opacity:0}),o.className="q-ripple"+(r?" text-"+r:""),o.setAttribute("dir","ltr"),o.appendChild(a),e.appendChild(o);const _=()=>{o.remove(),clearTimeout(y)};i.abort.push(_);let y=setTimeout(()=>{a.classList.add("q-ripple__inner--enter"),a.style.transform=`translate3d(${m},${v},0) scale3d(1,1,1)`,a.style.opacity=.2,y=setTimeout(()=>{a.classList.remove("q-ripple__inner--enter"),a.classList.add("q-ripple__inner--leave"),a.style.opacity=0,y=setTimeout(()=>{o.remove(),i.abort.splice(i.abort.indexOf(_),1)},275)},250)},50)}function Ki(t,{modifiers:e,value:i,arg:n}){const r=Object.assign({},Wi.config.ripple,e,i);t.modifiers={early:!0===r.early,stop:!0===r.stop,center:!0===r.center,color:r.color||n,keyCodes:[].concat(r.keyCodes||13)}}function Xi(t){const e=t.__qripple;void 0!==e&&(e.abort.forEach(t=>{t()}),Si(e,"main"),delete t._qripple)}var Gi={name:"ripple",inserted(t,e){void 0!==t.__qripple&&(Xi(t),t.__qripple_destroyed=!0);const i={enabled:!1!==e.value,modifiers:{},abort:[],start(e){!0===i.enabled&&!0!==e.qSkipRipple&&(!0!==Ee.is.ie||e.clientX>=0)&&e.type===(!0===i.modifiers.early?"pointerdown":"click")&&Yi(e,t,i,!0===e.qKeyEvent)},keystart:Ti(e=>{!0===i.enabled&&!0!==e.qSkipRipple&&!0===ki(e,i.modifiers.keyCodes)&&e.type==="key"+(!0===i.modifiers.early?"down":"up")&&Yi(e,t,i,!0)},300)};Ki(i,e),t.__qripple=i,wi(i,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},update(t,e){const i=t.__qripple;void 0!==i&&e.oldValue!==e.value&&(i.enabled=!1!==e.value,!0===i.enabled&&Object(e.value)===e.value&&Ki(i,e))},unbind(t){void 0===t.__qripple_destroyed?Xi(t):delete t.__qripple_destroyed}},Zi={directives:{Ripple:Gi},props:{ripple:{type:[Boolean,Object],default:!0}}};const Ji=/\/?$/;function tn(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in e)if(!(i in t)||String(t[i])!==String(e[i]))return!1;return!0}function en(t,e){for(const i in e)if(!(i in t))return!1;return!0}function nn(t,e){return!!e&&(t.path&&e.path?t.path.replace(Ji,"")===e.path.replace(Ji,"")&&t.hash===e.hash&&tn(t.query,e.query):"string"===typeof t.name&&t.name===e.name&&t.hash===e.hash&&!0===tn(t.query,e.query)&&!0===tn(t.params,e.params))}function rn(t,e){return 0===t.path.replace(Ji,"/").indexOf(e.path.replace(Ji,"/"))&&("string"!==typeof e.hash||e.hash.length<2||t.hash===e.hash)&&!0===en(t.query,e.query)}const sn={to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};var on={props:sn,computed:{hasHrefLink(){return!0!==this.disable&&void 0!==this.href},hasRouterLinkProps(){return void 0!==this.$router&&!0!==this.disable&&!0!==this.hasHrefLink&&void 0!==this.to&&null!==this.to&&""!==this.to},resolvedLink(){return!0===this.hasRouterLinkProps?this.__getLink(this.to,this.append):null},hasRouterLink(){return null!==this.resolvedLink},hasLink(){return!0===this.hasHrefLink||!0===this.hasRouterLink},linkTag(){return"a"===this.type||!0===this.hasLink?"a":this.tag||this.fallbackTag||"div"},linkAttrs(){return!0===this.hasHrefLink?{href:this.href,target:this.target}:!0===this.hasRouterLink?{href:this.resolvedLink.href,target:this.target}:{}},linkIsActive(){return!0===this.hasRouterLink&&rn(this.$route,this.resolvedLink.route)},linkIsExactActive(){return!0===this.hasRouterLink&&nn(this.$route,this.resolvedLink.route)},linkClass(){return!0===this.hasRouterLink?!0===this.linkIsExactActive?` ${this.exactActiveClass} ${this.activeClass}`:!0===this.exact?"":!0===this.linkIsActive?" "+this.activeClass:"":""}},methods:{__getLink(t,e){try{return!0===e?this.$router.resolve(t,this.$route,!0):this.$router.resolve(t)}catch(i){}return null},__navigateToRouterLink(t,{returnRouterError:e,to:i,replace:n=this.replace,append:r}={}){if(!0===this.disable)return t.preventDefault(),Promise.resolve(!1);if(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||void 0!==t.button&&0!==t.button||"_blank"===this.target)return Promise.resolve(!1);t.preventDefault();const s=void 0===i?this.resolvedLink:this.__getLink(i,r);if(null===s)return Promise[!0===e?"reject":"resolve"](!1);const o=this.$router[!0===n?"replace":"push"](s.location);return!0===e?o:o.catch(()=>{})},__navigateOnClick(t){if(!0===this.hasRouterLink){const e=e=>this.__navigateToRouterLink(t,e);this.$emit("click",t,e),!1===t.navigate&&t.preventDefault(),!0!==t.defaultPrevented&&e()}else this.$emit("click",t)}}};const an={none:0,xs:4,sm:8,md:16,lg:24,xl:32},ln=["button","submit","reset"],cn=/[^\s]\/[^\s]/,un=["flat","outline","push","unelevated"],hn=(t,e)=>!0===t.flat?"flat":!0===t.outline?"outline":!0===t.push?"push":!0===t.unelevated?"unelevated":e;var dn={mixins:[De,Zi,on,ri,pe({xs:8,sm:10,md:14,lg:20,xl:24})],props:{type:{type:String,default:"button"},to:[Object,String],replace:Boolean,append:Boolean,label:[Number,String],icon:String,iconRight:String,...un.reduce((t,e)=>(t[e]=Boolean)&&t,{}),square:Boolean,round:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],align:{default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},computed:{style(){if(!1===this.fab&&!1===this.fabMini)return this.sizeStyle},isRounded(){return!0===this.rounded||!0===this.fab||!0===this.fabMini},isActionable(){return!0!==this.disable&&!0!==this.loading},computedTabIndex(){return!0===this.isActionable?this.tabindex||0:-1},design(){return hn(this,"standard")},attrs(){const t={tabindex:this.computedTabIndex};return!0===this.hasLink?Object.assign(t,this.linkAttrs):!0===ln.includes(this.type)&&(t.type=this.type),"a"===this.linkTag?(!0===this.disable?t["aria-disabled"]="true":void 0===t.href&&(t.role="button"),!0!==this.hasRouterLink&&!0===cn.test(this.type)&&(t.type=this.type)):!0===this.disable&&(t.disabled="",t["aria-disabled"]="true"),!0===this.loading&&void 0!==this.percentage&&(t.role="progressbar",t["aria-valuemin"]=0,t["aria-valuemax"]=100,t["aria-valuenow"]=this.percentage),t},classes(){let t;void 0!==this.color?t=!0===this.flat||!0===this.outline?"text-"+(this.textColor||this.color):`bg-${this.color} text-${this.textColor||"white"}`:this.textColor&&(t="text-"+this.textColor);const e=!0===this.round?"round":"rectangle"+(!0===this.isRounded?" q-btn--rounded":!0===this.square?" q-btn--square":"");return`q-btn--${this.design} q-btn--${e}`+(void 0!==t?" "+t:"")+(!0===this.isActionable?" q-btn--actionable q-focusable q-hoverable":!0===this.disable?" disabled":"")+(!0===this.fab?" q-btn--fab":!0===this.fabMini?" q-btn--fab-mini":"")+(!0===this.noCaps?" q-btn--no-uppercase":"")+(!0===this.noWrap?"":" q-btn--wrap")+(!0===this.dense?" q-btn--dense":"")+(!0===this.stretch?" no-border-radius self-stretch":"")+(!0===this.glossy?" glossy":"")},innerClasses(){return this.alignClass+(!0===this.stack?" column":" row")+(!0===this.noWrap?" no-wrap text-no-wrap":"")+(!0===this.loading?" q-btn__content--hidden":"")},wrapperStyle(){if(void 0!==this.padding)return{padding:this.padding.split(/\s+/).map(t=>t in an?an[t]+"px":t).join(" "),minWidth:"0",minHeight:"0"}}}};const{passiveCapture:pn}=ci;let fn=void 0,mn=void 0,gn=void 0;const vn={role:"img","aria-hidden":"true"};var bn=he.a.extend({name:"QBtn",mixins:[dn],props:{percentage:Number,darkPercentage:Boolean},computed:{hasLabel(){return void 0!==this.label&&null!==this.label&&""!==this.label},computedRipple(){return!1!==this.ripple&&{keyCodes:!0===this.hasLink?[13,32]:[13],...!0===this.ripple?{}:this.ripple}},percentageStyle(){const t=Math.max(0,Math.min(100,this.percentage));if(t>0)return{transition:"transform 0.6s",transform:`translateX(${t-100}%)`}},onEvents(){if(!0===this.loading)return{mousedown:this.__onLoadingEvt,touchstart:this.__onLoadingEvt,click:this.__onLoadingEvt,keydown:this.__onLoadingEvt,keyup:this.__onLoadingEvt};if(!0===this.isActionable){const t={...this.qListeners,click:this.click,keydown:this.__onKeydown,mousedown:this.__onMousedown};return!0===this.$q.platform.has.touch&&(t[(void 0===t.touchstart?"&":"")+"touchstart"]=this.__onTouchstart),t}return{click:vi}},directives(){if(!0!==this.disable&&!1!==this.ripple)return[{name:"ripple",value:this.computedRipple,modifiers:{center:this.round}}]}},methods:{click(t){if(void 0!==t){if(!0===t.defaultPrevented)return;const e=document.activeElement;if("submit"===this.type&&(!0===this.$q.platform.is.ie&&(t.clientX<0||t.clientY<0)||e!==document.body&&!1===this.$el.contains(e)&&!1===e.contains(this.$el))){this.$el.focus();const t=()=>{document.removeEventListener("keydown",vi,!0),document.removeEventListener("keyup",t,pn),void 0!==this.$el&&this.$el.removeEventListener("blur",t,pn)};document.addEventListener("keydown",vi,!0),document.addEventListener("keyup",t,pn),this.$el.addEventListener("blur",t,pn)}}this.__navigateOnClick(t)},__onKeydown(t){this.$emit("keydown",t),!0===ki(t,[13,32])&&(mn!==this.$el&&(void 0!==mn&&this.__cleanup(),!0!==t.defaultPrevented&&(this.$el.focus(),mn=this.$el,this.$el.classList.add("q-btn--active"),document.addEventListener("keyup",this.__onPressEnd,!0),this.$el.addEventListener("blur",this.__onPressEnd,pn))),vi(t))},__onTouchstart(t){if(this.$emit("touchstart",t),fn!==this.$el&&(void 0!==fn&&this.__cleanup(),!0!==t.defaultPrevented)){fn=this.$el;const e=this.touchTargetEl=t.target;e.addEventListener("touchcancel",this.__onPressEnd,pn),e.addEventListener("touchend",this.__onPressEnd,pn)}this.avoidMouseRipple=!0,clearTimeout(this.mouseTimer),this.mouseTimer=setTimeout(()=>{this.avoidMouseRipple=!1},200)},__onMousedown(t){t.qSkipRipple=!0===this.avoidMouseRipple,this.$emit("mousedown",t),gn!==this.$el&&(void 0!==gn&&this.__cleanup(),!0!==t.defaultPrevented&&(gn=this.$el,this.$el.classList.add("q-btn--active"),document.addEventListener("mouseup",this.__onPressEnd,pn)))},__onPressEnd(t){if(void 0===t||"blur"!==t.type||document.activeElement!==this.$el){if(void 0!==t&&"keyup"===t.type){if(mn===this.$el&&!0===ki(t,[13,32])){const e=new MouseEvent("click",t);e.qKeyEvent=!0,!0===t.defaultPrevented&&gi(e),!0===t.cancelBubble&&mi(e),this.$el.dispatchEvent(e),vi(t),t.qKeyEvent=!0}this.$emit("keyup",t)}this.__cleanup()}},__cleanup(t){const e=this.$refs.blurTarget;if(!0===t||fn!==this.$el&&gn!==this.$el||void 0===e||e===document.activeElement||!0!==this.$el.contains(document.activeElement)||(e.setAttribute("tabindex",-1),e.focus()),fn===this.$el){const t=this.touchTargetEl;t.removeEventListener("touchcancel",this.__onPressEnd,pn),t.removeEventListener("touchend",this.__onPressEnd,pn),fn=this.touchTargetEl=void 0}gn===this.$el&&(document.removeEventListener("mouseup",this.__onPressEnd,pn),gn=void 0),mn===this.$el&&(document.removeEventListener("keyup",this.__onPressEnd,!0),void 0!==this.$el&&this.$el.removeEventListener("blur",this.__onPressEnd,pn),mn=void 0),void 0!==this.$el&&this.$el.classList.remove("q-btn--active")},__onLoadingEvt(t){vi(t),t.qSkipRipple=!0}},beforeDestroy(){this.__cleanup(!0)},render(t){let e=[];void 0!==this.icon&&e.push(t(Je,{attrs:vn,props:{name:this.icon,left:!1===this.stack&&!0===this.hasLabel}})),!0===this.hasLabel&&e.push(t("span",{staticClass:"block"},[this.label])),e=Oe(e,this,"default"),void 0!==this.iconRight&&!1===this.round&&e.push(t(Je,{attrs:vn,props:{name:this.iconRight,right:!1===this.stack&&!0===this.hasLabel}}));const i=[t("span",{staticClass:"q-focus-helper",ref:"blurTarget"})];return!0===this.loading&&void 0!==this.percentage&&i.push(t("span",{staticClass:"q-btn__progress absolute-full overflow-hidden",class:!0===this.darkPercentage?"q-btn__progress--dark":""},[t("span",{staticClass:"q-btn__progress-indicator fit block",style:this.percentageStyle})])),i.push(t("span",{staticClass:"q-btn__wrapper col row q-anchor--skip",style:this.wrapperStyle},[t("span",{staticClass:"q-btn__content text-center col items-center q-anchor--skip",class:this.innerClasses},e)])),null!==this.loading&&i.push(t("transition",{props:{name:"q-transition--fade"}},!0===this.loading?[t("span",{key:"loading",staticClass:"absolute-full flex flex-center"},void 0!==this.$scopedSlots.loading?this.$scopedSlots.loading():[t(ei)])]:void 0)),t(!0===this.hasLink||"a"===this.type?"a":"button",{staticClass:"q-btn q-btn-item non-selectable no-outline",class:this.classes,style:this.style,attrs:this.attrs,on:this.onEvents,directives:this.directives},i)}}),_n={methods:{__addHistory(){this.__historyEntry={condition:()=>!0===this.hideOnRouteChange,handler:this.hide},Di.add(this.__historyEntry)},__removeHistory(){void 0!==this.__historyEntry&&(Di.remove(this.__historyEntry),this.__historyEntry=void 0)}},beforeDestroy(){!0===this.showing&&this.__removeHistory()}},yn={created(){this.__tickFnList=[],this.__timeoutFnList=[]},deactivated(){this.__tickFnList.forEach(t=>{t.removeTick()}),this.__timeoutFnList.forEach(t=>{t.removeTimeout()})},beforeDestroy(){this.__tickFnList.forEach(t=>{t.removeTick()}),this.__tickFnList=void 0,this.__timeoutFnList.forEach(t=>{t.removeTimeout()}),this.__timeoutFnList=void 0},methods:{__useTick(t,e){const i={removeTick(){i.fn=void 0},registerTick:t=>{i.fn=t,this.$nextTick(()=>{i.fn===t&&(!1===this._isDestroyed&&i.fn(),i.fn=void 0)})}};this.__tickFnList.push(i),this[t]=i.registerTick,void 0!==e&&(this[e]=i.removeTick)},__useTimeout(t,e){const i={removeTimeout(){clearTimeout(i.timer)},registerTimeout:(t,e)=>{clearTimeout(i.timer),!1===this._isDestroyed&&(i.timer=setTimeout(t,e))}};this.__timeoutFnList.push(i),this[t]=i.registerTimeout,void 0!==e&&(this[e]=i.removeTimeout)}}},wn={mixins:[De],props:{value:{type:Boolean,default:void 0}},data(){return{showing:!1}},watch:{value(t){this.__processModelChange(t)},$route(){!0===this.hideOnRouteChange&&!0===this.showing&&this.hide()}},methods:{toggle(t){this[!0===this.showing?"hide":"show"](t)},show(t){!0===this.disable||void 0!==this.__showCondition&&!0!==this.__showCondition(t)||(void 0!==this.qListeners.input&&!1===ge&&(this.$emit("input",!0),this.payload=t,this.$nextTick(()=>{this.payload===t&&(this.payload=void 0)})),void 0!==this.value&&void 0!==this.qListeners.input&&!0!==ge||this.__processShow(t))},__processShow(t){!0!==this.showing&&(void 0!==this.__preparePortal&&this.__preparePortal(),this.showing=!0,this.$emit("before-show",t),void 0!==this.__show?this.__show(t):this.$emit("show",t))},hide(t){!0!==this.disable&&(void 0!==this.qListeners.input&&!1===ge&&(this.$emit("input",!1),this.payload=t,this.$nextTick(()=>{this.payload===t&&(this.payload=void 0)})),void 0!==this.value&&void 0!==this.qListeners.input&&!0!==ge||this.__processHide(t))},__processHide(t){!1!==this.showing&&(this.showing=!1,this.$emit("before-hide",t),void 0!==this.__hide?this.__hide(t):this.$emit("hide",t))},__processModelChange(t){!0===this.disable&&!0===t?void 0!==this.qListeners.input&&this.$emit("input",!1):!0===t!==this.showing&&this["__process"+(!0===t?"Show":"Hide")](this.payload)}}};let Sn=[],xn=[];function Cn(t){xn=xn.filter(e=>e!==t)}function kn(t){Cn(t),xn.push(t)}function Tn(t){Cn(t),0===xn.length&&Sn.length>0&&(Sn[Sn.length-1](),Sn=[])}function qn(t){0===xn.length?t():Sn.push(t)}function En(t){Sn=Sn.filter(e=>e!==t)}function Mn(t,e){do{if("QMenu"===t.$options.name){if(t.hide(e),!0===t.separateClosePopup)return t.$parent}else if(void 0!==t.__renderPortal)return void 0!==t.$parent&&"QPopupProxy"===t.$parent.$options.name?(t.hide(e),t.$parent):t;t=t.$parent}while(void 0!==t&&(void 0===t.$el.contains||!0!==t.$el.contains(e.target)))}function In(t,e,i){while(0!==i&&void 0!==t){if(void 0!==t.__renderPortal){if(i--,"QMenu"===t.$options.name){t=Mn(t,e);continue}t.hide(e)}t=t.$parent}}function An(t){while(void 0!==t){if("QGlobalDialog"===t.$options.name)return!0;if("QDialog"===t.$options.name)return!1;t=t.$parent}return!1}const Nn={inheritAttrs:!1,props:{contentClass:[Array,String,Object],contentStyle:[Array,String,Object]},methods:{__showPortal(t){if(!0===t)return Tn(this.focusObj),void(this.__portalIsAccessible=!0);if(this.__portalIsAccessible=!1,!0!==this.__portalIsActive)if(this.__portalIsActive=!0,void 0===this.focusObj&&(this.focusObj={}),kn(this.focusObj),void 0!==this.$q.fullscreen&&!0===this.$q.fullscreen.isCapable){const t=()=>{if(void 0===this.__portal)return;const t=li(this.$q.fullscreen.activeEl);this.__portal.$el.parentElement!==t&&t.contains(this.$el)===(!1===this.__onGlobalDialog)&&t.appendChild(this.__portal.$el)};this.unwatchFullscreen=this.$watch("$q.fullscreen.activeEl",Ei(t,50)),!1!==this.__onGlobalDialog&&!0!==this.$q.fullscreen.isActive||t()}else void 0!==this.__portal&&!1===this.__onGlobalDialog&&document.body.appendChild(this.__portal.$el)},__hidePortal(t){this.__portalIsAccessible=!1,!0===t&&(this.__portalIsActive=!1,Tn(this.focusObj),void 0!==this.__portal&&(void 0!==this.unwatchFullscreen&&(this.unwatchFullscreen(),this.unwatchFullscreen=void 0),!1===this.__onGlobalDialog&&(this.__portal.$destroy(),this.__portal.$el.remove()),this.__portal=void 0))},__preparePortal(){void 0===this.__portal&&(this.__portal=!0===this.__onGlobalDialog?{$el:this.$el,$refs:this.$refs}:new he.a({name:"QPortal",parent:this,inheritAttrs:!1,render:t=>this.__renderPortal(t),components:this.$options.components,directives:this.$options.directives}).$mount())}},render(t){if(!0===this.__onGlobalDialog)return this.__renderPortal(t);void 0!==this.__portal&&this.__portal.$forceUpdate()},beforeDestroy(){this.__hidePortal(!0)}};!1===ge&&(Nn.created=function(){this.__onGlobalDialog=An(this.$parent)});var $n=Nn;const Dn=!0===ge?[]:[null,document,document.body,document.scrollingElement,document.documentElement];let Rn;function Pn(){if(!0===ge)return!1;if(void 0===Rn){const t=document.createElement("div"),e=document.createElement("div");Object.assign(t.style,{direction:"rtl",width:"1px",height:"1px",overflow:"auto"}),Object.assign(e.style,{width:"1000px",height:"1px"}),t.appendChild(e),document.body.appendChild(t),t.scrollLeft=-1e3,Rn=t.scrollLeft>=0,t.remove()}return Rn}function On(t,e){let i=oi(e);if(null===i){if(t!==Object(t)||"function"!==typeof t.closest)return window;i=t.closest(".scroll,.scroll-y,.overflow-auto")}return Dn.includes(i)?window:i}function Ln(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}const Bn=Ln;function jn(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}function zn(t,e,i=0){const n=void 0===arguments[3]?performance.now():arguments[3],r=Ln(t);i<=0?r!==e&&Vn(t,e):requestAnimationFrame(s=>{const o=s-n,a=r+(e-r)/Math.max(o,i)*o;Vn(t,a),a!==e&&zn(t,e,i-o,s)})}function Fn(t,e,i=0){const n=void 0===arguments[3]?performance.now():arguments[3],r=jn(t);i<=0?r!==e&&Hn(t,e):requestAnimationFrame(s=>{const o=s-n,a=r+(e-r)/Math.max(o,i)*o;Hn(t,a),a!==e&&Fn(t,e,i-o,s)})}function Vn(t,e){t!==window?t.scrollTop=e:window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,e)}function Hn(t,e){t!==window?t.scrollLeft=e:window.scrollTo(e,window.pageYOffset||window.scrollY||document.body.scrollTop||0)}function Un(t,e,i){i?zn(t,e,i):Vn(t,e)}function Qn(t,e,i){i?Fn(t,e,i):Hn(t,e)}let Wn;function Yn(){if(void 0!==Wn)return Wn;const t=document.createElement("p"),e=document.createElement("div");si(t,{width:"100%",height:"200px"}),si(e,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);const i=t.offsetWidth;e.style.overflow="scroll";let n=t.offsetWidth;return i===n&&(n=e.clientWidth),e.remove(),Wn=i-n,Wn}function Kn(t,e=!0){return!(!t||t.nodeType!==Node.ELEMENT_NODE)&&(e?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"])))}let Xn,Gn,Zn,Jn,tr,er,ir,nr=0,rr=!1;function sr(t){or(t)&&vi(t)}function or(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const e=fi(t),i=t.shiftKey&&!t.deltaX,n=!i&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),r=i||n?t.deltaY:t.deltaX;for(let s=0;s<e.length;s++){const t=e[s];if(Kn(t,n))return n?r<0&&0===t.scrollTop||r>0&&t.scrollTop+t.clientHeight===t.scrollHeight:r<0&&0===t.scrollLeft||r>0&&t.scrollLeft+t.clientWidth===t.scrollWidth}return!0}function ar(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function lr(t){!0!==rr&&(rr=!0,requestAnimationFrame(()=>{rr=!1;const{height:e}=t.target,{clientHeight:i,scrollTop:n}=document.scrollingElement;void 0!==Zn&&e===window.innerHeight||(Zn=i-e,document.scrollingElement.scrollTop=n),n>Zn&&(document.scrollingElement.scrollTop-=Math.ceil((n-Zn)/8))}))}function cr(t){const e=document.body,i=void 0!==window.visualViewport;if("add"===t){const t=window.getComputedStyle(e).overflowY;Xn=jn(window),Gn=Bn(window),Jn=e.style.left,tr=e.style.top,er=window.location.href,e.style.left=`-${Xn}px`,e.style.top=`-${Gn}px`,"hidden"!==t&&("scroll"===t||e.scrollHeight>window.innerHeight)&&e.classList.add("q-body--force-scrollbar"),e.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===Ee.is.ios&&(!0===i?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",lr,ci.passiveCapture),window.visualViewport.addEventListener("scroll",lr,ci.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ar,ci.passiveCapture))}!0===Ee.is.desktop&&!0===Ee.is.mac&&window[t+"EventListener"]("wheel",sr,ci.notPassive),"remove"===t&&(!0===Ee.is.ios&&(!0===i?(window.visualViewport.removeEventListener("resize",lr,ci.passiveCapture),window.visualViewport.removeEventListener("scroll",lr,ci.passiveCapture)):window.removeEventListener("scroll",ar,ci.passiveCapture)),e.classList.remove("q-body--prevent-scroll"),e.classList.remove("q-body--force-scrollbar"),document.qScrollPrevented=!1,e.style.left=Jn,e.style.top=tr,window.location.href===er&&window.scrollTo(Xn,Gn),Zn=void 0)}function ur(t){let e="add";if(!0===t){if(nr++,void 0!==ir)return clearTimeout(ir),void(ir=void 0);if(nr>1)return}else{if(0===nr)return;if(nr--,nr>0)return;if(e="remove",!0===Ee.is.ios&&!0===Ee.is.nativeMobile)return clearTimeout(ir),void(ir=setTimeout(()=>{cr(e),ir=void 0},100))}cr(e)}var hr={methods:{__preventScroll(t){t===this.preventedScroll||void 0===this.preventedScroll&&!0!==t||(this.preventedScroll=t,ur(t))}}};const dr={"aria-hidden":"true"},pr={tabindex:0,type:"button","aria-hidden":!1,role:null};var fr=$e("$attrs","qAttrs"),mr={props:{transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"}},computed:{transitionProps(){const t="q-transition--"+(this.transitionShow||this.defaultTransitionShow),e="q-transition--"+(this.transitionHide||this.defaultTransitionHide);return{appear:!0,enterClass:t+"-enter",enterActiveClass:t+"-enter-active",enterToClass:t+"-enter-to",leaveClass:e+"-leave",leaveActiveClass:e+"-leave-active",leaveToClass:e+"-leave-to"}}}};const gr=[];let vr=!1;var br={__install(){this.__installed=!0,window.addEventListener("keydown",t=>{vr=27===t.keyCode}),window.addEventListener("blur",()=>{!0===vr&&(vr=!1)}),window.addEventListener("keyup",t=>{!0===vr&&(vr=!1,0!==gr.length&&!0===ki(t,27)&&gr[gr.length-1].fn(t))})},register(t,e){!0===t.$q.platform.is.desktop&&(!0!==this.__installed&&this.__install(),gr.push({comp:t,fn:e}))},pop(t){if(!0===t.$q.platform.is.desktop){const e=gr.findIndex(e=>e.comp===t);e>-1&&gr.splice(e,1)}}};let _r=0;const yr={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},wr={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Sr={...dr,tabindex:-1};var xr=he.a.extend({name:"QDialog",mixins:[fr,mr,_n,yn,wn,$n,hr],props:{persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,position:{type:String,default:"standard",validator:t=>"standard"===t||["top","bottom","left","right"].includes(t)},transitionShow:String,transitionHide:String},data(){return{animating:!1}},watch:{maximized(t){!0===this.showing&&this.__updateMaximized(t)},useBackdrop(t){this.__preventScroll(t),this.__preventFocusout(t)}},computed:{classes(){return`q-dialog__inner--${!0===this.maximized?"maximized":"minimized"} q-dialog__inner--${this.position} ${yr[this.position]}`+(!0===this.animating?" q-dialog__inner--animating":"")+(!0===this.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===this.fullHeight?" q-dialog__inner--fullheight":"")+(!0===this.square?" q-dialog__inner--square":"")},defaultTransitionShow(){return wr[this.position][0]},defaultTransitionHide(){return wr[this.position][1]},useBackdrop(){return!0===this.showing&&!0!==this.seamless},hideOnRouteChange(){return!0!==this.persistent&&!0!==this.noRouteDismiss&&!0!==this.seamless},onEvents(){const t={...this.qListeners,input:mi,"popup-show":mi,"popup-hide":mi};return!0===this.autoClose&&(t.click=this.__onAutoClose),t},attrs(){return{role:"dialog","aria-modal":!0===this.useBackdrop?"true":"false",...this.qAttrs}}},methods:{focus(t){qn(()=>{let e=this.__getInnerNode();void 0!==e&&!0!==e.contains(document.activeElement)&&(e=(""!==t?e.querySelector(t):null)||e.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||e.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||e.querySelector("[autofocus], [data-autofocus]")||e,e.focus({preventScroll:!0}))})},shake(t){t&&"function"===typeof t.focus?t.focus({preventScroll:!0}):this.focus(),this.$emit("shake");const e=this.__getInnerNode();void 0!==e&&(e.classList.remove("q-animate--scale"),e.classList.add("q-animate--scale"),clearTimeout(this.shakeTimeout),this.shakeTimeout=setTimeout(()=>{e.classList.remove("q-animate--scale")},170))},__getInnerNode(){return void 0!==this.__portal&&void 0!==this.__portal.$refs?this.__portal.$refs.inner:void 0},__show(t){this.__addHistory(),this.__refocusTarget=!0!==Ee.is.mobile&&!1===this.noRefocus&&null!==document.activeElement?document.activeElement:void 0,this.$el.dispatchEvent(yi("popup-show",{bubbles:!0})),this.__updateMaximized(this.maximized),br.register(this,t=>{!0!==this.seamless&&(!0===this.persistent||!0===this.noEscDismiss?!0!==this.maximized&&!0!==this.noShake&&this.shake():(this.$emit("escape-key"),this.hide(t)))}),this.__showPortal(),this.animating=!0,!0!==this.noFocus?(null!==document.activeElement&&document.activeElement.blur(),this.__registerTick(this.focus)):this.__removeTick(),this.__registerTimeout(()=>{if(!0===this.$q.platform.is.ios){if(!0!==this.seamless&&document.activeElement){const{top:t,bottom:e}=document.activeElement.getBoundingClientRect(),{innerHeight:i}=window,n=void 0!==window.visualViewport?window.visualViewport.height:i;t>0&&e>n/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-n,e>=i?1/0:Math.ceil(document.scrollingElement.scrollTop+e-n/2))),document.activeElement.scrollIntoView()}this.__portal.$el.click()}this.animating=!1,this.__showPortal(!0),this.$emit("show",t)},300)},__hide(t){this.__removeTick(),this.__removeHistory(),this.__cleanup(!0),this.__hidePortal(),this.animating=!0,void 0!==this.__refocusTarget&&null!==this.__refocusTarget&&(((t&&0===t.type.indexOf("key")?this.__refocusTarget.closest('[tabindex]:not([tabindex^="-"])'):void 0)||this.__refocusTarget).focus(),this.__refocusTarget=void 0),this.$el.dispatchEvent(yi("popup-hide",{bubbles:!0})),this.__registerTimeout(()=>{this.__hidePortal(!0),this.animating=!1,this.$emit("hide",t)},300)},__cleanup(t){clearTimeout(this.shakeTimeout),!0!==t&&!0!==this.showing||(br.pop(this),this.__updateMaximized(!1),!0!==this.seamless&&(this.__preventScroll(!1),this.__preventFocusout(!1)))},__updateMaximized(t){!0===t?!0!==this.isMaximized&&(_r<1&&document.body.classList.add("q-body--dialog"),_r++,this.isMaximized=!0):!0===this.isMaximized&&(_r<2&&document.body.classList.remove("q-body--dialog"),_r--,this.isMaximized=!1)},__preventFocusout(t){if(!0===this.$q.platform.is.desktop){const e=(!0===t?"add":"remove")+"EventListener";document.body[e]("focusin",this.__onFocusChange)}},__onAutoClose(t){this.hide(t),void 0!==this.qListeners.click&&this.$emit("click",t)},__onBackdropClick(t){!0!==this.persistent&&!0!==this.noBackdropDismiss?this.hide(t):!0!==this.noShake&&this.shake(t.relatedTarget)},__onFocusChange(t){!0!==this.allowFocusOutside&&!0===this.__portalIsAccessible&&!0!==ai(this.__portal.$el,t.target)&&this.focus('[tabindex]:not([tabindex="-1"])')},__renderPortal(t){return t("div",{staticClass:"q-dialog fullscreen no-pointer-events q-dialog--"+(!0===this.useBackdrop?"modal":"seamless"),class:this.contentClass,style:this.contentStyle,attrs:this.attrs},[t("transition",{props:{name:"q-transition--fade"}},!0===this.useBackdrop?[t("div",{staticClass:"q-dialog__backdrop fixed-full",attrs:Sr,on:Ae(this,"bkdrop",{[this.backdropEvt]:this.__onBackdropClick})})]:null),t("transition",{props:{...this.transitionProps}},[!0===this.showing?t("div",{ref:"inner",staticClass:"q-dialog__inner flex no-pointer-events",class:this.classes,attrs:{tabindex:-1},on:this.onEvents},Re(this,"default")):null])])}},created(){this.__useTick("__registerTick","__removeTick"),this.__useTimeout("__registerTimeout"),this.backdropEvt=!0===this.$q.platform.is.ios||this.$q.platform.is.safari?"click":"focusin"},mounted(){this.__processModelChange(this.value)},beforeDestroy(){this.__cleanup(),this.__refocusTarget=void 0}}),Cr={props:{dark:{type:Boolean,default:null}},computed:{isDark(){return null===this.dark?this.$q.dark.isActive:this.dark}}},kr=he.a.extend({name:"QCard",mixins:[De,Cr,me],props:{square:Boolean,flat:Boolean,bordered:Boolean},computed:{classes(){return"q-card"+(!0===this.isDark?" q-card--dark q-dark":"")+(!0===this.bordered?" q-card--bordered":"")+(!0===this.square?" q-card--square no-border-radius":"")+(!0===this.flat?" q-card--flat no-shadow":"")}},render(t){return t(this.tag,{class:this.classes,on:{...this.qListeners}},Re(this,"default"))}});const Tr={role:"toolbar"};var qr=he.a.extend({name:"QToolbar",mixins:[De],props:{inset:Boolean},render(t){return t("div",{staticClass:"q-toolbar row no-wrap items-center",class:this.inset?"q-toolbar--inset":null,attrs:Tr,on:{...this.qListeners}},Re(this,"default"))}}),Er=he.a.extend({name:"QToolbarTitle",mixins:[De],props:{shrink:Boolean},computed:{classes(){return"q-toolbar__title ellipsis"+(!0===this.shrink?" col-shrink":"")}},render(t){return t("div",{class:this.classes,on:{...this.qListeners}},Re(this,"default"))}}),Mr=he.a.extend({name:"QCardSection",mixins:[De,me],props:{horizontal:Boolean},computed:{classes(){return"q-card__section q-card__section--"+(!0===this.horizontal?"horiz row no-wrap":"vert")}},render(t){return t(this.tag,{class:this.classes,on:{...this.qListeners}},Re(this,"default"))}}),Ir={computed:{marginalsScope(){return{pagination:this.computedPagination,pagesNumber:this.pagesNumber,isFirstPage:this.isFirstPage,isLastPage:this.isLastPage,firstPage:this.firstPage,prevPage:this.prevPage,nextPage:this.nextPage,lastPage:this.lastPage,inFullscreen:this.inFullscreen,toggleFullscreen:this.toggleFullscreen}}},methods:{__getTopDiv(t){const e=this.$scopedSlots.top,i=this.$scopedSlots["top-left"],n=this.$scopedSlots["top-right"],r=this.$scopedSlots["top-selection"],s=!0===this.hasSelectionMode&&void 0!==r&&this.rowsSelectedNumber>0,o="q-table__top relative-position row items-center";if(void 0!==e)return t("div",{staticClass:o},[e(this.marginalsScope)]);let a;return!0===s?a=r(this.marginalsScope).slice():(a=[],void 0!==i?a.push(t("div",{staticClass:"q-table__control"},[i(this.marginalsScope)])):this.title&&a.push(t("div",{staticClass:"q-table__control"},[t("div",{staticClass:"q-table__title",class:this.titleClass},this.title)]))),void 0!==n&&(a.push(t("div",{staticClass:"q-table__separator col"})),a.push(t("div",{staticClass:"q-table__control"},[n(this.marginalsScope)]))),0!==a.length?t("div",{staticClass:o},a):void 0}}},Ar={props:{name:String},computed:{formAttrs(){return{type:"hidden",name:this.name,value:this.value}}},methods:{__injectFormInput(t,e,i){t[e](this.$createElement("input",{staticClass:"hidden",class:i,attrs:this.formAttrs,domProps:this.formDomProps}))}}};const Nr={props:{name:String},computed:{nameProp(){return this.name||this.for}}};var $r=pe({xs:30,sm:35,md:40,lg:50,xl:60}),Dr={computed:{__refocusTargetEl(){if(!0!==this.disable)return this.$createElement("span",{ref:"refocusTarget",staticClass:"no-outline",attrs:{tabindex:-1}})}},methods:{__refocusTarget(t){void 0!==t&&0===t.type.indexOf("key")?document.activeElement!==this.$el&&!0===this.$el.contains(document.activeElement)&&this.$el.focus():void 0!==t&&!0!==this.$el.contains(t.target)||void 0===this.$refs.refocusTarget||this.$refs.refocusTarget.focus()}}},Rr={mixins:[Cr,$r,Ar,Dr],props:{value:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:t=>"tf"===t||"ft"===t},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},computed:{isTrue(){return!0===this.modelIsArray?this.index>-1:this.value===this.trueValue},isFalse(){return!0===this.modelIsArray?-1===this.index:this.value===this.falseValue},isIndeterminate(){return!1===this.isTrue&&!1===this.isFalse},index(){if(!0===this.modelIsArray)return this.value.indexOf(this.val)},modelIsArray(){return void 0!==this.val&&Array.isArray(this.value)},computedTabindex(){return!0===this.disable?-1:this.tabindex||0},classes(){return`q-${this.type} cursor-pointer no-outline row inline no-wrap items-center`+(!0===this.disable?" disabled":"")+(!0===this.isDark?` q-${this.type}--dark`:"")+(!0===this.dense?` q-${this.type}--dense`:"")+(!0===this.leftLabel?" reverse":"")},innerClass(){const t=!0===this.isTrue?"truthy":!0===this.isFalse?"falsy":"indet",e=void 0===this.color||!0!==this.keepColor&&("toggle"===this.type?!0!==this.isTrue:!0===this.isFalse)?"":" text-"+this.color;return`q-${this.type}__inner--${t}${e}`},formAttrs(){const t={type:"checkbox"};return void 0!==this.name&&Object.assign(t,{checked:this.isTrue,name:this.name,value:!0===this.modelIsArray?this.val:this.trueValue}),t},attrs(){const t={tabindex:this.computedTabindex,role:"toggle"===this.type?"switch":"checkbox","aria-label":this.label,"aria-checked":!0===this.isIndeterminate?"mixed":!0===this.isTrue?"true":"false"};return!0===this.disable&&(t["aria-disabled"]="true"),t}},methods:{toggle(t){void 0!==t&&(vi(t),this.__refocusTarget(t)),!0!==this.disable&&this.$emit("input",this.__getNextValue(),t)},__getNextValue(){if(!0===this.modelIsArray){if(!0===this.isTrue){const t=this.value.slice();return t.splice(this.index,1),t}return this.value.concat([this.val])}if(!0===this.isTrue){if("ft"!==this.toggleOrder||!1===this.toggleIndeterminate)return this.falseValue}else{if(!0!==this.isFalse)return"ft"!==this.toggleOrder?this.trueValue:this.falseValue;if("ft"===this.toggleOrder||!1===this.toggleIndeterminate)return this.trueValue}return this.indeterminateValue},__onKeydown(t){13!==t.keyCode&&32!==t.keyCode||vi(t)},__onKeyup(t){13!==t.keyCode&&32!==t.keyCode||this.toggle(t)}},render(t){const e=this.__getInner(t);!0!==this.disable&&this.__injectFormInput(e,"unshift",`q-${this.type}__native absolute q-ma-none q-pa-none`);const i=[t("div",{staticClass:`q-${this.type}__inner relative-position non-selectable`,class:this.innerClass,style:this.sizeStyle,attrs:{"aria-hidden":"true"}},e)];void 0!==this.__refocusTargetEl&&i.push(this.__refocusTargetEl);const n=void 0!==this.label?Oe([this.label],this,"default"):Re(this,"default");return void 0!==n&&i.push(t("div",{staticClass:`q-${this.type}__label q-anchor--skip`},n)),t("div",{class:this.classes,attrs:this.attrs,on:Ae(this,"inpExt",{click:this.toggle,keydown:this.__onKeydown,keyup:this.__onKeyup})},i)}},Pr=he.a.extend({name:"QCheckbox",mixins:[Rr],computed:{computedIcon(){return!0===this.isTrue?this.checkedIcon:!0===this.isIndeterminate?this.indeterminateIcon:this.uncheckedIcon}},methods:{__getInner(t){return void 0!==this.computedIcon?[t("div",{key:"icon",staticClass:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t(Je,{staticClass:"q-checkbox__icon",props:{name:this.computedIcon}})])]:[t("div",{key:"svg",staticClass:"q-checkbox__bg absolute"},[t("svg",{staticClass:"q-checkbox__svg fit absolute-full",attrs:{focusable:"false",viewBox:"0 0 24 24"}},[t("path",{staticClass:"q-checkbox__truthy",attrs:{fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}}),t("path",{staticClass:"q-checkbox__indet",attrs:{d:"M4,14H20V10H4"}})])])]}},created(){this.type="checkbox"}}),Or=he.a.extend({name:"QTh",mixins:[De],props:{props:Object,autoWidth:Boolean},render(t){const e={...this.qListeners};if(void 0===this.props)return t("th",{on:e,class:!0===this.autoWidth?"q-table--col-auto-width":null},Re(this,"default"));let i,n;const r=this.$vnode.key;if(r){if(i=this.props.colsMap[r],void 0===i)return}else i=this.props.col;if(!0===i.sortable){const e="right"===i.align?"unshift":"push";n=Pe(this,"default",[]),n[e](t(Je,{props:{name:this.$q.iconSet.table.arrowUp},staticClass:i.__iconClass}))}else n=Re(this,"default");const s=!0===i.sortable?{click:t=>{this.props.sort(i),this.$emit("click",t)}}:{};return t("th",{on:{...e,...s},style:i.headerStyle,class:i.__thClass+(!0===this.autoWidth?" q-table--col-auto-width":"")},n)}});function Lr(t,e,i,n){return Object.defineProperty(t,e,{get:i,set:n,enumerable:!0}),t}var Br={computed:{headerSelectedValue(){return!0===this.someRowsSelected?null:this.allRowsSelected}},methods:{__getTHead(t){const e=this.__getTHeadTR(t);return!0===this.loading&&void 0===this.$scopedSlots.loading&&e.push(t("tr",{staticClass:"q-table__progress"},[t("th",{staticClass:"relative-position",attrs:{colspan:this.computedColspan}},this.__getProgress(t))])),t("thead",e)},__getTHeadTR(t){const e=this.$scopedSlots.header,i=this.$scopedSlots["header-cell"];if(void 0!==e)return e(this.__getHeaderScope({header:!0})).slice();const n=this.computedCols.map(e=>{const n=this.$scopedSlots["header-cell-"+e.name],r=void 0!==n?n:i,s=this.__getHeaderScope({col:e});return void 0!==r?r(s):t(Or,{key:e.name,props:{props:s}},e.label)});if(!0===this.singleSelection&&!0!==this.grid)n.unshift(t("th",{staticClass:"q-table--col-auto-width"},[" "]));else if(!0===this.multipleSelection){const e=this.$scopedSlots["header-selection"],i=void 0!==e?e(this.__getHeaderScope({})):[t(Pr,{props:{color:this.color,value:this.headerSelectedValue,dark:this.isDark,dense:this.dense},on:Ae(this,"inp",{input:this.__onMultipleSelectionSet})})];n.unshift(t("th",{staticClass:"q-table--col-auto-width"},i))}return[t("tr",{style:this.tableHeaderStyle,class:this.tableHeaderClass},n)]},__getHeaderScope(t){return Object.assign(t,{cols:this.computedCols,sort:this.sort,colsMap:this.computedColsMap,color:this.color,dark:this.isDark,dense:this.dense}),!0===this.multipleSelection&&(Lr(t,"selected",()=>this.headerSelectedValue,this.__onMultipleSelectionSet),t.partialSelected=this.someRowsSelected,t.multipleSelect=!0),t},__onMultipleSelectionSet(t){!0===this.someRowsSelected&&(t=!1),this.__updateSelection(this.computedRows.map(this.getRowKey),this.computedRows,t)}}},jr={methods:{__getTBodyTR(t,e,i,n){const r=this.getRowKey(e),s=this.isRowSelected(r);if(void 0!==i)return i(this.__getBodyScope({key:r,row:e,pageIndex:n,__trClass:s?"selected":""}));const o=this.$scopedSlots["body-cell"],a=this.computedCols.map(i=>{const s=this.$scopedSlots["body-cell-"+i.name],a=void 0!==s?s:o;return void 0!==a?a(this.__getBodyCellScope({key:r,row:e,pageIndex:n,col:i})):t("td",{class:i.__tdClass(e),style:i.__tdStyle(e)},this.getCellValue(i,e))});if(!0===this.hasSelectionMode){const i=this.$scopedSlots["body-selection"],o=void 0!==i?i(this.__getBodySelectionScope({key:r,row:e,pageIndex:n})):[t(Pr,{props:{value:s,color:this.color,dark:this.isDark,dense:this.dense},on:{input:(t,i)=>{this.__updateSelection([r],[e],t,i)}}})];a.unshift(t("td",{staticClass:"q-table--col-auto-width"},o))}const l={key:r,class:{selected:s},on:{}};return void 0!==this.qListeners["row-click"]&&(l.class["cursor-pointer"]=!0,l.on.click=t=>{this.$emit("row-click",t,e,n)}),void 0!==this.qListeners["row-dblclick"]&&(l.class["cursor-pointer"]=!0,l.on.dblclick=t=>{this.$emit("row-dblclick",t,e,n)}),void 0!==this.qListeners["row-contextmenu"]&&(l.class["cursor-pointer"]=!0,l.on.contextmenu=t=>{this.$emit("row-contextmenu",t,e,n)}),t("tr",l,a)},__getTBody(t){const e=this.$scopedSlots.body,i=this.$scopedSlots["top-row"],n=this.$scopedSlots["bottom-row"];let r=this.computedRows.map((i,n)=>this.__getTBodyTR(t,i,e,n));return void 0!==i&&(r=i({cols:this.computedCols}).concat(r)),void 0!==n&&(r=r.concat(n({cols:this.computedCols}))),t("tbody",r)},__getVirtualTBodyTR(t){const e=this.$scopedSlots.body;return i=>this.__getTBodyTR(t,i.item,e,i.index)},__getBodyScope(t){return this.__injectBodyCommonScope(t),t.cols=t.cols.map(e=>Lr({...e},"value",()=>this.getCellValue(e,t.row))),t},__getBodyCellScope(t){return this.__injectBodyCommonScope(t),Lr(t,"value",()=>this.getCellValue(t.col,t.row))},__getBodySelectionScope(t){return this.__injectBodyCommonScope(t),t},__injectBodyCommonScope(t){Object.assign(t,{cols:this.computedCols,colsMap:this.computedColsMap,sort:this.sort,rowIndex:this.firstRowIndex+t.pageIndex,color:this.color,dark:this.isDark,dense:this.dense}),!0===this.hasSelectionMode&&Lr(t,"selected",()=>this.isRowSelected(t.key),(e,i)=>{this.__updateSelection([t.key],[t.row],e,i)}),Lr(t,"expand",()=>this.isRowExpanded(t.key),e=>{this.__updateExpanded(t.key,e)})},getCellValue(t,e){const i="function"===typeof t.field?t.field(e):e[t.field];return void 0!==t.format?t.format(i,e):i}}};i("fffc"),i("9a9a");const zr=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Fr=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Vr=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Hr=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,Ur=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,Qr={date:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),time:t=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),fulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),timeOrFulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(t),email:t=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),hexColor:t=>zr.test(t),hexaColor:t=>Fr.test(t),hexOrHexaColor:t=>Vr.test(t),rgbColor:t=>Hr.test(t),rgbaColor:t=>Ur.test(t),rgbOrRgbaColor:t=>Hr.test(t)||Ur.test(t),hexOrRgbColor:t=>zr.test(t)||Hr.test(t),hexaOrRgbaColor:t=>Fr.test(t)||Ur.test(t),anyColor:t=>Vr.test(t)||Hr.test(t)||Ur.test(t)};const Wr=[!0,!1,"ondemand"];var Yr={props:{value:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],validator:t=>Wr.includes(t)}},data(){return{isDirty:null,innerError:!1,innerErrorMessage:void 0}},watch:{value(){this.__validateIfNeeded()},disable(t){!0===t?this.__resetValidation():this.__validateIfNeeded(!0)},reactiveRules:{handler(t){!0===t?void 0===this.unwatchRules&&(this.unwatchRules=this.$watch("rules",()=>{this.__validateIfNeeded(!0)})):void 0!==this.unwatchRules&&(this.unwatchRules(),this.unwatchRules=void 0)},immediate:!0},focused(t){!0===t?null===this.isDirty&&(this.isDirty=!1):!1===this.isDirty&&(this.isDirty=!0,!0===this.hasActiveRules&&"ondemand"!==this.lazyRules&&!1===this.innerLoading&&this.debouncedValidate())},hasError(t){const e=document.getElementById(this.targetUid);null!==e&&e.setAttribute("aria-invalid",!0===t)}},computed:{hasRules(){return void 0!==this.rules&&null!==this.rules&&this.rules.length>0},hasActiveRules(){return!0!==this.disable&&!0===this.hasRules},hasError(){return!0===this.error||!0===this.innerError},computedErrorMessage(){return"string"===typeof this.errorMessage&&this.errorMessage.length>0?this.errorMessage:this.innerErrorMessage}},created(){this.debouncedValidate=Ei(this.validate,0)},mounted(){this.validateIndex=0},beforeDestroy(){void 0!==this.unwatchRules&&this.unwatchRules(),this.debouncedValidate.cancel()},methods:{resetValidation(){this.isDirty=null,this.__resetValidation()},validate(t=this.value){if(!0!==this.hasActiveRules)return!0;const e=++this.validateIndex,i=!0!==this.innerLoading?()=>!0!==this.isDirty&&(this.isDirty=!0):()=>{},n=(t,e)=>{!0===t&&i(),this.innerError!==t&&(this.innerError=t);const n=e||void 0;this.innerErrorMessage!==n&&(this.innerErrorMessage=n),!1!==this.innerLoading&&(this.innerLoading=!1)},r=[];for(let s=0;s<this.rules.length;s++){const e=this.rules[s];let i;if("function"===typeof e?i=e(t,Qr):"string"===typeof e&&void 0!==Qr[e]&&(i=Qr[e](t)),!1===i||"string"===typeof i)return n(!0,i),!1;!0!==i&&void 0!==i&&r.push(i)}return 0===r.length?(n(!1),!0):(!0!==this.innerLoading&&(this.innerLoading=!0),Promise.all(r).then(t=>{if(void 0===t||!1===Array.isArray(t)||0===t.length)return e===this.validateIndex&&n(!1),!0;const i=t.find(t=>!1===t||"string"===typeof t);return e===this.validateIndex&&n(void 0!==i,i),void 0===i},t=>(e===this.validateIndex&&(console.error(t),n(!0)),!1)))},__resetValidation(){this.debouncedValidate.cancel(),this.validateIndex++,this.innerLoading=!1,this.innerError=!1,this.innerErrorMessage=void 0},__validateIfNeeded(t){!0===this.hasActiveRules&&"ondemand"!==this.lazyRules&&(!0===this.isDirty||!0!==this.lazyRules&&!0!==t)&&this.debouncedValidate()}}};i("2c66"),i("249d"),i("40e9"),i("907a"),i("986a"),i("1d02"),i("3c5d"),i("6ce5"),i("2834"),i("4ea1");let Kr,Xr=0;const Gr=new Array(256);for(let lp=0;lp<256;lp++)Gr[lp]=(lp+256).toString(16).substr(1);const Zr=(()=>{const t="undefined"!==typeof crypto?crypto:"undefined"!==typeof window?window.msCrypto:void 0;if(void 0!==t){if(void 0!==t.randomBytes)return t.randomBytes;if(void 0!==t.getRandomValues)return e=>{var i=new Uint8Array(e);return t.getRandomValues(i),i}}return t=>{const e=[];for(let i=t;i>0;i--)e.push(Math.floor(256*Math.random()));return e}})(),Jr=4096;var ts=function(){(void 0===Kr||Xr+16>Jr)&&(Xr=0,Kr=Zr(Jr));const t=Array.prototype.slice.call(Kr,Xr,Xr+=16);return t[6]=15&t[6]|64,t[8]=63&t[8]|128,Gr[t[0]]+Gr[t[1]]+Gr[t[2]]+Gr[t[3]]+"-"+Gr[t[4]]+Gr[t[5]]+"-"+Gr[t[6]]+Gr[t[7]]+"-"+Gr[t[8]]+Gr[t[9]]+"-"+Gr[t[10]]+Gr[t[11]]+Gr[t[12]]+Gr[t[13]]+Gr[t[14]]+Gr[t[15]]};function es(t){return void 0===t?"f_"+ts():t}var is=he.a.extend({name:"QField",mixins:[Cr,Yr,fr],inheritAttrs:!1,props:{label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String],maxValues:[Number,String]},data(){return{focused:!1,targetUid:es(this.for),innerLoading:!1}},watch:{for(t){this.targetUid=es(t)}},computed:{editable(){return!0!==this.disable&&!0!==this.readonly},hasValue(){const t=void 0===this.__getControl?this.value:this.innerValue;return void 0!==t&&null!==t&&(""+t).length>0},computedCounter(){if(!1!==this.counter){const t="string"===typeof this.value||"number"===typeof this.value?(""+this.value).length:!0===Array.isArray(this.value)?this.value.length:0,e=void 0!==this.maxlength?this.maxlength:this.maxValues;return t+(void 0!==e?" / "+e:"")}},floatingLabel(){return!0===this.stackLabel||!0===this.focused||"number"===typeof this.inputValue||"string"===typeof this.inputValue&&this.inputValue.length>0||!0!==this.hideSelected&&!0===this.hasValue&&("number"!==this.type||!1===isNaN(this.value))||void 0!==this.displayValue&&null!==this.displayValue&&(""+this.displayValue).length>0},shouldRenderBottom(){return!0===this.bottomSlots||void 0!==this.hint||!0===this.hasRules||!0===this.counter||null!==this.error},classes(){return{[this.fieldClass]:void 0!==this.fieldClass,["q-field--"+this.styleType]:!0,"q-field--rounded":this.rounded,"q-field--square":this.square,"q-field--focused":!0===this.focused,"q-field--highlighted":!0===this.focused||!0===this.hasError,"q-field--float":this.floatingLabel,"q-field--labeled":this.hasLabel,"q-field--dense":this.dense,"q-field--item-aligned q-item-type":this.itemAligned,"q-field--dark":this.isDark,"q-field--auto-height":void 0===this.__getControl,"q-field--with-bottom":!0!==this.hideBottomSpace&&!0===this.shouldRenderBottom,"q-field--error":this.hasError,"q-field--readonly":!0===this.readonly&&!0!==this.disable,"q-field--disabled":!0===this.disable}},styleType(){return!0===this.filled?"filled":!0===this.outlined?"outlined":!0===this.borderless?"borderless":this.standout?"standout":"standard"},contentClass(){const t=[];if(!0===this.hasError)t.push("text-negative");else{if("string"===typeof this.standout&&this.standout.length>0&&!0===this.focused)return this.standout;void 0!==this.color&&t.push("text-"+this.color)}return void 0!==this.bgColor&&t.push("bg-"+this.bgColor),t},hasLabel(){return!0===this.labelSlot||void 0!==this.label},labelClass(){if(void 0!==this.labelColor&&!0!==this.hasError)return"text-"+this.labelColor},controlSlotScope(){return{id:this.targetUid,field:this.$el,editable:this.editable,focused:this.focused,floatingLabel:this.floatingLabel,value:this.value,emitValue:this.__emitValue}},bottomSlotScope(){return{id:this.targetUid,field:this.$el,editable:this.editable,focused:this.focused,value:this.value,errorMessage:this.computedErrorMessage}},attrs(){const t={for:this.targetUid};return!0===this.disable?t["aria-disabled"]="true":!0===this.readonly&&(t["aria-readonly"]="true"),t}},methods:{focus(){qn(this.__focus)},blur(){En(this.__focus);const t=document.activeElement;null!==t&&this.$el.contains(t)&&t.blur()},__focus(){const t=document.activeElement;let e=this.$refs.target;void 0===e||null!==t&&t.id===this.targetUid||(!0===e.hasAttribute("tabindex")||(e=e.querySelector("[tabindex]")),null!==e&&e!==t&&e.focus({preventScroll:!0}))},__getContent(t){const e=[];return void 0!==this.$scopedSlots.prepend&&e.push(t("div",{staticClass:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",on:this.slotsEvents},this.$scopedSlots.prepend())),e.push(t("div",{staticClass:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},this.__getControlContainer(t))),!0===this.hasError&&!1===this.noErrorIcon&&e.push(this.__getInnerAppendNode(t,"error",[t(Je,{props:{name:this.$q.iconSet.field.error,color:"negative"}})])),!0===this.loading||!0===this.innerLoading?e.push(this.__getInnerAppendNode(t,"inner-loading-append",void 0!==this.$scopedSlots.loading?this.$scopedSlots.loading():[t(ei,{props:{color:this.color}})])):!0===this.clearable&&!0===this.hasValue&&!0===this.editable&&e.push(this.__getInnerAppendNode(t,"inner-clearable-append",[t(Je,{staticClass:"q-field__focusable-action",props:{tag:"button",name:this.clearIcon||this.$q.iconSet.field.clear},attrs:pr,on:this.clearableEvents})])),void 0!==this.$scopedSlots.append&&e.push(t("div",{staticClass:"q-field__append q-field__marginal row no-wrap items-center",key:"append",on:this.slotsEvents},this.$scopedSlots.append())),void 0!==this.__getInnerAppend&&e.push(this.__getInnerAppendNode(t,"inner-append",this.__getInnerAppend(t))),void 0!==this.__getControlChild&&e.push(this.__getControlChild(t)),e},__getControlContainer(t){const e=[];return void 0!==this.prefix&&null!==this.prefix&&e.push(t("div",{staticClass:"q-field__prefix no-pointer-events row items-center"},[this.prefix])),!0===this.hasShadow&&void 0!==this.__getShadowControl&&e.push(this.__getShadowControl(t)),void 0!==this.__getControl?e.push(this.__getControl(t)):void 0!==this.$scopedSlots.rawControl?e.push(this.$scopedSlots.rawControl()):void 0!==this.$scopedSlots.control&&e.push(t("div",{ref:"target",staticClass:"q-field__native row",attrs:{tabindex:-1,...this.qAttrs,"data-autofocus":this.autofocus||void 0}},this.$scopedSlots.control(this.controlSlotScope))),!0===this.hasLabel&&e.push(t("div",{staticClass:"q-field__label no-pointer-events absolute ellipsis",class:this.labelClass},[Re(this,"label",this.label)])),void 0!==this.suffix&&null!==this.suffix&&e.push(t("div",{staticClass:"q-field__suffix no-pointer-events row items-center"},[this.suffix])),e.concat(void 0!==this.__getDefaultSlot?this.__getDefaultSlot(t):Re(this,"default"))},__getBottom(t){let e,i;!0===this.hasError?(i="q--slot-error",void 0!==this.$scopedSlots.error?e=this.$scopedSlots.error(this.bottomSlotScope):void 0!==this.computedErrorMessage&&(e=[t("div",{attrs:{role:"alert"}},[this.computedErrorMessage])],i=this.computedErrorMessage)):!0===this.hideHint&&!0!==this.focused||(i="q--slot-hint",void 0!==this.$scopedSlots.hint?e=this.$scopedSlots.hint(this.bottomSlotScope):void 0!==this.hint&&(e=[t("div",[this.hint])],i=this.hint));const n=!0===this.counter||void 0!==this.$scopedSlots.counter;if(!0===this.hideBottomSpace&&!1===n&&void 0===e)return;const r=t("div",{key:i,staticClass:"q-field__messages col"},e);return t("div",{staticClass:"q-field__bottom row items-start q-field__bottom--"+(!0!==this.hideBottomSpace?"animated":"stale"),on:{click:gi}},[!0===this.hideBottomSpace?r:t("transition",{props:{name:"q-transition--field-message"}},[r]),!0===n?t("div",{staticClass:"q-field__counter"},void 0!==this.$scopedSlots.counter?this.$scopedSlots.counter():[this.computedCounter]):null])},__getInnerAppendNode(t,e,i){return null===i?null:t("div",{staticClass:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip",key:e},i)},__onControlPopupShow(t){void 0!==t&&mi(t),this.$emit("popup-show",t),this.hasPopupOpen=!0,this.__onControlFocusin(t)},__onControlPopupHide(t){void 0!==t&&mi(t),this.$emit("popup-hide",t),this.hasPopupOpen=!1,this.__onControlFocusout(t)},__onControlFocusin(t){clearTimeout(this.focusoutTimer),!0===this.editable&&!1===this.focused&&(this.focused=!0,this.$emit("focus",t))},__onControlFocusout(t,e){clearTimeout(this.focusoutTimer),this.focusoutTimer=setTimeout(()=>{(!0!==document.hasFocus()||!0!==this.hasPopupOpen&&void 0!==this.$refs&&void 0!==this.$refs.control&&!1===this.$refs.control.contains(document.activeElement))&&(!0===this.focused&&(this.focused=!1,this.$emit("blur",t)),void 0!==e&&e())})},__clearValue(t){if(vi(t),!0!==this.$q.platform.is.mobile){const t=this.$refs.target||this.$el;t.focus()}else!0===this.$el.contains(document.activeElement)&&document.activeElement.blur();"file"===this.type&&(this.$refs.input.value=null),this.$emit("input",null),this.$emit("clear",this.value),this.$nextTick(()=>{this.resetValidation(),!0!==this.$q.platform.is.mobile&&(this.isDirty=!1)})},__emitValue(t){this.$emit("input",t)}},render(t){void 0!==this.__onPreRender&&this.__onPreRender(),void 0!==this.__onPostRender&&this.$nextTick(this.__onPostRender);const e=void 0===this.__getControl&&void 0===this.$scopedSlots.control?{...this.qAttrs,"data-autofocus":this.autofocus||void 0,...this.attrs}:this.attrs;return t("label",{staticClass:"q-field q-validation-component row no-wrap items-start",class:this.classes,attrs:e},[void 0!==this.$scopedSlots.before?t("div",{staticClass:"q-field__before q-field__marginal row no-wrap items-center",on:this.slotsEvents},this.$scopedSlots.before()):null,t("div",{staticClass:"q-field__inner relative-position col self-stretch"},[t("div",{ref:"control",staticClass:"q-field__control relative-position row no-wrap",class:this.contentClass,attrs:{tabindex:-1},on:this.controlEvents},this.__getContent(t)),!0===this.shouldRenderBottom?this.__getBottom(t):null]),void 0!==this.$scopedSlots.after?t("div",{staticClass:"q-field__after q-field__marginal row no-wrap items-center",on:this.slotsEvents},this.$scopedSlots.after()):null])},created(){void 0!==this.__onPreRender&&this.__onPreRender(),this.slotsEvents={click:gi},this.clearableEvents={click:this.__clearValue},this.controlEvents=void 0!==this.__getControlEvents?this.__getControlEvents():{focusin:this.__onControlFocusin,focusout:this.__onControlFocusout,"popup-show":this.__onControlPopupShow,"popup-hide":this.__onControlPopupHide}},mounted(){!0===be&&void 0===this.for&&(this.targetUid=es()),!0===this.autofocus&&this.focus()},activated(){!0===this.shouldActivate&&!0===this.autofocus&&this.focus()},deactivated(){this.shouldActivate=!0},beforeDestroy(){clearTimeout(this.focusoutTimer)}}),ns=he.a.extend({name:"QChip",mixins:[Zi,Cr,pe({xs:8,sm:10,md:14,lg:20,xl:24})],model:{event:"remove"},props:{dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,value:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean},computed:{classes(){const t=!0===this.outline&&this.color||this.textColor;return{["bg-"+this.color]:!1===this.outline&&void 0!==this.color,[`text-${t} q-chip--colored`]:t,disabled:this.disable,"q-chip--dense":this.dense,"q-chip--outline":this.outline,"q-chip--selected":this.selected,"q-chip--clickable cursor-pointer non-selectable q-hoverable":this.isClickable,"q-chip--square":this.square,"q-chip--dark q-dark":this.isDark}},hasLeftIcon(){return!0===this.selected||void 0!==this.icon},leftIcon(){return!0===this.selected?this.iconSelected||this.$q.iconSet.chip.selected:this.icon},removeIcon(){return this.iconRemove||this.$q.iconSet.chip.remove},isClickable(){return!1===this.disable&&(!0===this.clickable||null!==this.selected)},attrs(){const t=!0===this.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:this.tabindex||0},e={...t,role:"button","aria-hidden":"false","aria-label":this.removeAriaLabel||this.$q.lang.label.remove};return{chip:t,remove:e}}},methods:{__onKeyup(t){13===t.keyCode&&this.__onClick(t)},__onClick(t){this.disable||(this.$emit("update:selected",!this.selected),this.$emit("click",t))},__onRemove(t){void 0!==t.keyCode&&13!==t.keyCode||(vi(t),!this.disable&&this.$emit("remove",!1))},__getContent(t){const e=[];!0===this.isClickable&&e.push(t("div",{staticClass:"q-focus-helper"})),!0===this.hasLeftIcon&&e.push(t(Je,{staticClass:"q-chip__icon q-chip__icon--left",props:{name:this.leftIcon}}));const i=void 0!==this.label?[t("div",{staticClass:"ellipsis"},[this.label])]:void 0;return e.push(t("div",{staticClass:"q-chip__content col row no-wrap items-center q-anchor--skip"},Le(i,this,"default"))),this.iconRight&&e.push(t(Je,{staticClass:"q-chip__icon q-chip__icon--right",props:{name:this.iconRight}})),!0===this.removable&&e.push(t(Je,{staticClass:"q-chip__icon q-chip__icon--remove cursor-pointer",props:{name:this.removeIcon},attrs:this.attrs.remove,on:Ae(this,"non",{click:this.__onRemove,keyup:this.__onRemove})})),e}},render(t){if(!1===this.value)return;const e={staticClass:"q-chip row inline no-wrap items-center",class:this.classes,style:this.sizeStyle};return!0===this.isClickable&&Object.assign(e,{attrs:this.attrs.chip,on:Ae(this,"click",{click:this.__onClick,keyup:this.__onKeyup}),directives:Ae(this,"dir#"+this.ripple,[{name:"ripple",value:this.ripple}])}),t("div",e,this.__getContent(t))}}),rs=he.a.extend({name:"QItem",mixins:[Cr,on,me,De],props:{active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},computed:{isActionable(){return!0===this.clickable||!0===this.hasLink||"label"===this.tag},isClickable(){return!0!==this.disable&&!0===this.isActionable},classes(){return"q-item q-item-type row no-wrap"+(!0===this.dense?" q-item--dense":"")+(!0===this.isDark?" q-item--dark":"")+(!0===this.hasLink&&null===this.active?this.linkClass:!0===this.active?` q-item--active${void 0!==this.activeClass?" "+this.activeClass:""} `:"")+(!0===this.disable?" disabled":"")+(!0===this.isClickable?" q-item--clickable q-link cursor-pointer "+(!0===this.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===this.focused?" q-manual-focusable--focused":""):"")},style(){if(void 0!==this.insetLevel){const t=!0===this.$q.lang.rtl?"Right":"Left";return{["padding"+t]:16+56*this.insetLevel+"px"}}},onEvents(){return{...this.qListeners,click:this.__onClick,keyup:this.__onKeyup}}},methods:{__onClick(t){!0===this.isClickable&&(void 0!==this.$refs.blurTarget&&(!0!==t.qKeyEvent&&document.activeElement===this.$el?this.$refs.blurTarget.focus():document.activeElement===this.$refs.blurTarget&&this.$el.focus()),this.__navigateOnClick(t))},__onKeyup(t){if(!0===this.isClickable&&!0===ki(t,13)){vi(t),t.qKeyEvent=!0;const e=new MouseEvent("click",t);e.qKeyEvent=!0,this.$el.dispatchEvent(e)}this.$emit("keyup",t)},__getContent(t){const e=Pe(this,"default",[]);return!0===this.isClickable&&e.unshift(t("div",{staticClass:"q-focus-helper",attrs:{tabindex:-1},ref:"blurTarget"})),e}},render(t){const e={class:this.classes,style:this.style,attrs:{role:"listitem"},on:this.onEvents};return!0===this.isClickable?(e.attrs.tabindex=this.tabindex||"0",Object.assign(e.attrs,this.linkAttrs)):!0===this.isActionable&&(e.attrs["aria-disabled"]="true"),t(this.linkTag,e,this.__getContent(t))}}),ss=he.a.extend({name:"QItemSection",mixins:[De],props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},computed:{classes(){const t=this.avatar||this.side||this.thumbnail;return{"q-item__section--top":this.top,"q-item__section--avatar":this.avatar,"q-item__section--thumbnail":this.thumbnail,"q-item__section--side":t,"q-item__section--nowrap":this.noWrap,"q-item__section--main":!t,["justify-"+(this.top?"start":"center")]:!0}}},render(t){return t("div",{staticClass:"q-item__section column",class:this.classes,on:{...this.qListeners}},Re(this,"default"))}}),os=he.a.extend({name:"QItemLabel",mixins:[De],props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},computed:{classes(){return{"q-item__label--overline text-overline":this.overline,"q-item__label--caption text-caption":this.caption,"q-item__label--header":this.header,ellipsis:1===parseInt(this.lines,10)}},style(){if(void 0!==this.lines&&parseInt(this.lines,10)>1)return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":this.lines}}},render(t){return t("div",{staticClass:"q-item__label",style:this.style,class:this.classes,on:{...this.qListeners}},Re(this,"default"))}});function as(){if(void 0!==window.getSelection){const t=window.getSelection();void 0!==t.empty?t.empty():void 0!==t.removeAllRanges&&(t.removeAllRanges(),!0!==Ie.is.mobile&&t.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}var ls={props:{target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean},watch:{contextMenu(t){void 0!==this.anchorEl&&(this.__unconfigureAnchorEl(),this.__configureAnchorEl(t))},target(){void 0!==this.anchorEl&&this.__unconfigureAnchorEl(),this.__pickAnchorEl()},noParentEvent(t){void 0!==this.anchorEl&&(!0===t?this.__unconfigureAnchorEl():this.__configureAnchorEl())}},methods:{__showCondition(t){return void 0!==this.anchorEl&&(void 0===t||(void 0===t.touches||t.touches.length<=1))},__contextClick(t){this.hide(t),this.$nextTick(()=>{this.show(t)}),gi(t)},__toggleKey(t){!0===ki(t,13)&&this.toggle(t)},__mobileCleanup(t){this.anchorEl.classList.remove("non-selectable"),clearTimeout(this.touchTimer),!0===this.showing&&void 0!==t&&as()},__mobilePrevent:gi,__mobileTouch(t){if(this.__mobileCleanup(t),!0!==this.__showCondition(t))return;this.hide(t),this.anchorEl.classList.add("non-selectable");const e=t.target;wi(this,"anchor",[[e,"touchmove","__mobileCleanup","passive"],[e,"touchend","__mobileCleanup","passive"],[e,"touchcancel","__mobileCleanup","passive"],[this.anchorEl,"contextmenu","__mobilePrevent","notPassive"]]),this.touchTimer=setTimeout(()=>{this.show(t)},300)},__unconfigureAnchorEl(){Si(this,"anchor")},__configureAnchorEl(t=this.contextMenu){if(!0===this.noParentEvent||void 0===this.anchorEl)return;let e;e=!0===t?!0===this.$q.platform.is.mobile?[[this.anchorEl,"touchstart","__mobileTouch","passive"]]:[[this.anchorEl,"click","hide","passive"],[this.anchorEl,"contextmenu","__contextClick","notPassive"]]:[[this.anchorEl,"click","toggle","passive"],[this.anchorEl,"keyup","__toggleKey","passive"]],wi(this,"anchor",e)},__setAnchorEl(t){this.anchorEl=t;while(this.anchorEl.classList.contains("q-anchor--skip"))this.anchorEl=this.anchorEl.parentNode;this.__configureAnchorEl()},__pickAnchorEl(){!1===this.target||""===this.target||null===this.parentEl?this.anchorEl=void 0:!0===this.target?this.__setAnchorEl(this.parentEl):(this.anchorEl=oi(this.target)||void 0,void 0!==this.anchorEl?this.__configureAnchorEl():console.error(`Anchor: target "${this.target}" not found`,this))},__changeScrollEvent(t,e){const i=(void 0!==e?"add":"remove")+"EventListener",n=void 0!==e?e:this.__scrollFn;t!==window&&t[i]("scroll",n,ci.passive),window[i]("scroll",n,ci.passive),this.__scrollFn=e}},created(){"function"===typeof this.__configureScrollTarget&&"function"===typeof this.__unconfigureScrollTarget&&(this.noParentEventWatcher=this.$watch("noParentEvent",()=>{void 0!==this.__scrollTarget&&(this.__unconfigureScrollTarget(),this.__configureScrollTarget())}))},mounted(){this.parentEl=this.$el.parentNode,this.__pickAnchorEl(),!0===this.value&&void 0===this.anchorEl&&this.$emit("input",!1)},beforeDestroy(){clearTimeout(this.touchTimer),void 0!==this.noParentEventWatcher&&this.noParentEventWatcher(),void 0!==this.__anchorCleanup&&this.__anchorCleanup(),this.__unconfigureAnchorEl()}};function cs(t){for(let e=t;null!==e;e=e.parentNode)if(void 0!==e.__vue__)return e.__vue__}function us(t,e){if(null===t||null===e)return null;for(let i=t;void 0!==i;i=i.$parent)if(i===e)return!0;return!1}let hs;const{notPassiveCapture:ds,passiveCapture:ps}=ci,fs={click:[],focus:[]};function ms(t){while(null!==(t=t.nextElementSibling))if(t.classList.contains("q-dialog--modal"))return!0;return!1}function gs(t,e){for(let i=t.length-1;i>=0;i--)if(void 0===t[i](e))return}function vs(t){clearTimeout(hs),"focusin"===t.type&&(!0===Ee.is.ie&&t.target===document.body||!0===t.target.hasAttribute("tabindex"))?hs=setTimeout(()=>{gs(fs.focus,t)},!0===Ee.is.ie?500:200):gs(fs.click,t)}var bs={name:"click-outside",bind(t,{value:e,arg:i},n){const r=n.componentInstance||n.context,s={trigger:e,toggleEl:i,handler(e){const i=e.target;if(!0!==e.qClickOutside&&!0===document.body.contains(i)&&8!==i.nodeType&&i!==document.documentElement&&!1===i.classList.contains("no-pointer-events")&&!0!==ms(t)&&(void 0===s.toggleEl||!1===s.toggleEl.contains(i))&&(i===document.body||!1===us(cs(i),r)))return e.qClickOutside=!0,s.trigger(e)}};t.__qclickoutside&&(t.__qclickoutside_old=t.__qclickoutside),t.__qclickoutside=s,0===fs.click.length&&(document.addEventListener("mousedown",vs,ds),document.addEventListener("touchstart",vs,ds),document.addEventListener("focusin",vs,ps)),fs.click.push(s.handler),s.timerFocusin=setTimeout(()=>{fs.focus.push(s.handler)},500)},update(t,{value:e,oldValue:i,arg:n}){const r=t.__qclickoutside;e!==i&&(r.trigger=e),n!==r.arg&&(r.toggleEl=n)},unbind(t){const e=t.__qclickoutside_old||t.__qclickoutside;if(void 0!==e){clearTimeout(e.timerFocusin);const i=fs.click.findIndex(t=>t===e.handler),n=fs.focus.findIndex(t=>t===e.handler);i>-1&&fs.click.splice(i,1),n>-1&&fs.focus.splice(n,1),0===fs.click.length&&(clearTimeout(hs),document.removeEventListener("mousedown",vs,ds),document.removeEventListener("touchstart",vs,ds),document.removeEventListener("focusin",vs,ps)),delete t[t.__qclickoutside_old?"__qclickoutside_old":"__qclickoutside"]}}};let _s,ys;function ws(t){const e=t.split(" ");return 2===e.length&&(!0!==["top","center","bottom"].includes(e[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(e[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function Ss(t){return!t||2===t.length&&("number"===typeof t[0]&&"number"===typeof t[1])}const xs={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function Cs(t,e){const i=t.split(" ");return{vertical:i[0],horizontal:xs[`${i[1]}#${!0===e?"rtl":"ltr"}`]}}function ks(t,e){let{top:i,left:n,right:r,bottom:s,width:o,height:a}=t.getBoundingClientRect();return void 0!==e&&(i-=e[1],n-=e[0],s+=e[1],r+=e[0],o+=e[0],a+=e[1]),{top:i,bottom:s,height:a,left:n,right:r,width:o,middle:n+(r-n)/2,center:i+(s-i)/2}}function Ts(t,e,i){let{top:n,left:r}=t.getBoundingClientRect();return n+=e.top,r+=e.left,void 0!==i&&(n+=i[1],r+=i[0]),{top:n,bottom:n+1,height:1,left:r,right:r+1,width:1,middle:r,center:n}}function qs(t){return{top:0,center:t.offsetHeight/2,bottom:t.offsetHeight,left:0,middle:t.offsetWidth/2,right:t.offsetWidth}}function Es(t,e,i){return{top:t[i.anchorOrigin.vertical]-e[i.selfOrigin.vertical],left:t[i.anchorOrigin.horizontal]-e[i.selfOrigin.horizontal]}}function Ms(t){if(!0===Ee.is.ios&&void 0!==window.visualViewport){const t=document.body.style,{offsetLeft:e,offsetTop:i}=window.visualViewport;e!==_s&&(t.setProperty("--q-pe-left",e+"px"),_s=e),i!==ys&&(t.setProperty("--q-pe-top",i+"px"),ys=i)}const{scrollLeft:e,scrollTop:i}=t.el,n=void 0===t.absoluteOffset?ks(t.anchorEl,!0===t.cover?[0,0]:t.offset):Ts(t.anchorEl,t.absoluteOffset,t.offset);let r={maxHeight:t.maxHeight,maxWidth:t.maxWidth,visibility:"visible"};!0!==t.fit&&!0!==t.cover||(r.minWidth=n.width+"px",!0===t.cover&&(r.minHeight=n.height+"px")),Object.assign(t.el.style,r);const s=qs(t.el);let o=Es(n,s,t);if(void 0===t.absoluteOffset||void 0===t.offset)Is(o,n,s,t.anchorOrigin,t.selfOrigin);else{const{top:e,left:i}=o;Is(o,n,s,t.anchorOrigin,t.selfOrigin);let r=!1;if(o.top!==e){r=!0;const e=2*t.offset[1];n.center=n.top-=e,n.bottom-=e+2}if(o.left!==i){r=!0;const e=2*t.offset[0];n.middle=n.left-=e,n.right-=e+2}!0===r&&(o=Es(n,s,t),Is(o,n,s,t.anchorOrigin,t.selfOrigin))}r={top:o.top+"px",left:o.left+"px"},void 0!==o.maxHeight&&(r.maxHeight=o.maxHeight+"px",n.height>o.maxHeight&&(r.minHeight=r.maxHeight)),void 0!==o.maxWidth&&(r.maxWidth=o.maxWidth+"px",n.width>o.maxWidth&&(r.minWidth=r.maxWidth)),Object.assign(t.el.style,r),t.el.scrollTop!==i&&(t.el.scrollTop=i),t.el.scrollLeft!==e&&(t.el.scrollLeft=e)}function Is(t,e,i,n,r){const s=i.bottom,o=i.right,a=Yn(),l=window.innerHeight-a,c=document.body.clientWidth;if(t.top<0||t.top+s>l)if("center"===r.vertical)t.top=e[n.vertical]>l/2?Math.max(0,l-s):0,t.maxHeight=Math.min(s,l);else if(e[n.vertical]>l/2){const i=Math.min(l,"center"===n.vertical?e.center:n.vertical===r.vertical?e.bottom:e.top);t.maxHeight=Math.min(s,i),t.top=Math.max(0,i-s)}else t.top=Math.max(0,"center"===n.vertical?e.center:n.vertical===r.vertical?e.top:e.bottom),t.maxHeight=Math.min(s,l-t.top);if(t.left<0||t.left+o>c)if(t.maxWidth=Math.min(o,c),"middle"===r.horizontal)t.left=e[n.horizontal]>c/2?Math.max(0,c-o):0;else if(e[n.horizontal]>c/2){const i=Math.min(c,"middle"===n.horizontal?e.middle:n.horizontal===r.horizontal?e.right:e.left);t.maxWidth=Math.min(o,i),t.left=Math.max(0,i-t.maxWidth)}else t.left=Math.max(0,"middle"===n.horizontal?e.middle:n.horizontal===r.horizontal?e.left:e.right),t.maxWidth=Math.min(o,c-t.left)}["left","middle","right"].forEach(t=>{xs[t+"#ltr"]=t,xs[t+"#rtl"]=t});var As=he.a.extend({name:"QMenu",mixins:[fr,Cr,ls,yn,wn,$n,mr],directives:{ClickOutside:bs},props:{persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ws},self:{type:String,validator:ws},offset:{type:Array,validator:Ss},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},computed:{anchorOrigin(){return Cs(this.anchor||(!0===this.cover?"center middle":"bottom start"),this.$q.lang.rtl)},selfOrigin(){return!0===this.cover?this.anchorOrigin:Cs(this.self||"top start",this.$q.lang.rtl)},menuClass(){return(!0===this.square?" q-menu--square":"")+(!0===this.isDark?" q-menu--dark q-dark":"")},hideOnRouteChange(){return!0!==this.persistent&&!0!==this.noRouteDismiss},onEvents(){const t={...this.qListeners,input:mi,"popup-show":mi,"popup-hide":mi};return!0===this.autoClose&&(t.click=this.__onAutoClose),t},attrs(){return{tabindex:-1,role:"menu",...this.qAttrs}}},methods:{focus(){qn(()=>{let t=void 0!==this.__portal&&void 0!==this.__portal.$refs?this.__portal.$refs.inner:void 0;void 0!==t&&!0!==t.contains(document.activeElement)&&(t=t.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||t.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||t.querySelector("[autofocus], [data-autofocus]")||t,t.focus({preventScroll:!0}))})},__show(t){if(this.__refocusTarget=!0!==Ee.is.mobile&&!1===this.noRefocus&&null!==document.activeElement?document.activeElement:void 0,br.register(this,t=>{!0!==this.persistent&&(this.$emit("escape-key"),this.hide(t))}),this.__showPortal(),this.__configureScrollTarget(),this.absoluteOffset=void 0,void 0!==t&&(this.touchPosition||this.contextMenu)){const e=pi(t);if(void 0!==e.left){const{top:t,left:i}=this.anchorEl.getBoundingClientRect();this.absoluteOffset={left:e.left-i,top:e.top-t}}}void 0===this.unwatch&&(this.unwatch=this.$watch(()=>this.$q.screen.width+"|"+this.$q.screen.height+"|"+this.self+"|"+this.anchor+"|"+this.$q.lang.rtl,this.updatePosition)),this.$el.dispatchEvent(yi("popup-show",{bubbles:!0})),!0!==this.noFocus&&null!==document.activeElement&&document.activeElement.blur(),this.__registerTick(()=>{this.updatePosition(),!0!==this.noFocus&&this.focus()}),this.__registerTimeout(()=>{!0===this.$q.platform.is.ios&&(this.__avoidAutoClose=this.autoClose,this.__portal.$el.click()),this.updatePosition(),this.__showPortal(!0),this.$emit("show",t)},300)},__hide(t){this.__removeTick(),this.__anchorCleanup(!0),this.__hidePortal(),void 0===this.__refocusTarget||null===this.__refocusTarget||void 0!==t&&!0===t.qClickOutside||(((t&&0===t.type.indexOf("key")?this.__refocusTarget.closest('[tabindex]:not([tabindex^="-"])'):void 0)||this.__refocusTarget).focus(),this.__refocusTarget=void 0),this.$el.dispatchEvent(yi("popup-hide",{bubbles:!0})),this.__registerTimeout(()=>{this.__hidePortal(!0),this.$emit("hide",t)},300)},__anchorCleanup(t){this.absoluteOffset=void 0,void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0),!0!==t&&!0!==this.showing||(br.pop(this),this.__unconfigureScrollTarget())},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__changeScrollEvent(this.__scrollTarget),this.__scrollTarget=void 0)},__configureScrollTarget(){void 0===this.anchorEl&&void 0===this.scrollTarget||(this.__scrollTarget=On(this.anchorEl,this.scrollTarget),this.__changeScrollEvent(this.__scrollTarget,this.updatePosition))},__onAutoClose(t){!0!==this.__avoidAutoClose?(Mn(this,t),void 0!==this.qListeners.click&&this.$emit("click",t)):this.__avoidAutoClose=!1},updatePosition(){if(void 0===this.anchorEl||void 0===this.__portal)return;const t=this.__portal.$el;8!==t.nodeType?Ms({el:t,offset:this.offset,anchorEl:this.anchorEl,anchorOrigin:this.anchorOrigin,selfOrigin:this.selfOrigin,absoluteOffset:this.absoluteOffset,fit:this.fit,cover:this.cover,maxHeight:this.maxHeight,maxWidth:this.maxWidth}):setTimeout(this.updatePosition,25)},__onClickOutside(t){if(!0!==this.persistent&&!0===this.showing){const e=t.target.classList;return Mn(this,t),("touchstart"===t.type||e.contains("q-dialog__backdrop"))&&bi(t),!0}},__renderPortal(t){return t("transition",{props:{...this.transitionProps}},[!0===this.showing?t("div",{ref:"inner",staticClass:"q-menu q-position-engine scroll"+this.menuClass,class:this.contentClass,style:this.contentStyle,attrs:this.attrs,on:this.onEvents,directives:[{name:"click-outside",value:this.__onClickOutside,arg:this.anchorEl}]},Re(this,"default")):null])}},created(){this.__useTick("__registerTick","__removeTick"),this.__useTimeout("__registerTimeout")},mounted(){this.__processModelChange(this.value)},beforeDestroy(){this.__refocusTarget=void 0,!0===this.showing&&void 0!==this.anchorEl&&this.anchorEl.dispatchEvent(yi("popup-hide",{bubbles:!0}))}});i("5377"),i("1e70"),i("79a4"),i("c1a1"),i("8b00"),i("a4e7"),i("1e5a"),i("72c3");const Ns="function"===typeof Map,$s="function"===typeof Set,Ds="function"===typeof ArrayBuffer;function Rs(t,e){if(t===e)return!0;if(null!==t&&null!==e&&"object"===typeof t&&"object"===typeof e){if(t.constructor!==e.constructor)return!1;let i,n;if(t.constructor===Array){if(i=t.length,i!==e.length)return!1;for(n=i;0!==n--;)if(!0!==Rs(t[n],e[n]))return!1;return!0}if(!0===Ns&&t.constructor===Map){if(t.size!==e.size)return!1;let i=t.entries();n=i.next();while(!0!==n.done){if(!0!==e.has(n.value[0]))return!1;n=i.next()}i=t.entries(),n=i.next();while(!0!==n.done){if(!0!==Rs(n.value[1],e.get(n.value[0])))return!1;n=i.next()}return!0}if(!0===$s&&t.constructor===Set){if(t.size!==e.size)return!1;const i=t.entries();n=i.next();while(!0!==n.done){if(!0!==e.has(n.value[0]))return!1;n=i.next()}return!0}if(!0===Ds&&null!=t.buffer&&t.buffer.constructor===ArrayBuffer){if(i=t.length,i!==e.length)return!1;for(n=i;0!==n--;)if(t[n]!==e[n])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const r=Object.keys(t).filter(e=>void 0!==t[e]);if(i=r.length,i!==Object.keys(e).filter(t=>void 0!==e[t]).length)return!1;for(n=i;0!==n--;){const i=r[n];if(!0!==Rs(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Ps(t){return null!==t&&"object"===typeof t&&!0!==Array.isArray(t)}function Os(t){return"[object Date]"===Object.prototype.toString.call(t)}function Ls(t){return"number"===typeof t&&isFinite(t)}function Bs(t){return t.charAt(0).toUpperCase()+t.slice(1)}function js(t,e,i){return i<=e?e:Math.min(i,Math.max(e,t))}function zs(t,e,i){if(i<=e)return e;const n=i-e+1;let r=e+(t-e)%n;return r<e&&(r=n+r),0===r?0:r}function Fs(t,e=2,i="0"){if(void 0===t||null===t)return t;const n=""+t;return n.length>=e?n:new Array(e-n.length+1).join(i)+n}i("9d4a");const Vs=1e3,Hs=["start","center","end","start-force","center-force","end-force"],Us=Array.prototype.filter;function Qs(t,e){return t+e}function Ws(t,e,i,n,r,s,o,a){const l=t===window?document.scrollingElement||document.documentElement:t,c=!0===r?"offsetWidth":"offsetHeight",u={scrollStart:0,scrollViewSize:-o-a,scrollMaxSize:0,offsetStart:-o,offsetEnd:-a};if(!0===r?(t===window?(u.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,u.scrollViewSize+=document.documentElement.clientWidth):(u.scrollStart=l.scrollLeft,u.scrollViewSize+=l.clientWidth),u.scrollMaxSize=l.scrollWidth,!0===s&&(u.scrollStart=(!0===Pn()?u.scrollMaxSize-u.scrollViewSize:0)-u.scrollStart)):(t===window?(u.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,u.scrollViewSize+=document.documentElement.clientHeight):(u.scrollStart=l.scrollTop,u.scrollViewSize+=l.clientHeight),u.scrollMaxSize=l.scrollHeight),void 0!==i)for(let h=i.previousElementSibling;null!==h;h=h.previousElementSibling)!1===h.classList.contains("q-virtual-scroll--skip")&&(u.offsetStart+=h[c]);if(void 0!==n)for(let h=n.nextElementSibling;null!==h;h=h.nextElementSibling)!1===h.classList.contains("q-virtual-scroll--skip")&&(u.offsetEnd+=h[c]);if(e!==t){const i=l.getBoundingClientRect(),n=e.getBoundingClientRect();!0===r?(u.offsetStart+=n.left-i.left,u.offsetEnd-=n.width):(u.offsetStart+=n.top-i.top,u.offsetEnd-=n.height),t!==window&&(u.offsetStart+=u.scrollStart),u.offsetEnd+=u.scrollMaxSize-u.offsetStart}return u}function Ys(t,e,i,n){"end"===e&&(e=(t===window?document.body:t)[!0===i?"scrollWidth":"scrollHeight"]),t===window?!0===i?(!0===n&&(e=(!0===Pn()?document.body.scrollWidth-document.documentElement.clientWidth:0)-e),window.scrollTo(e,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,e):!0===i?(!0===n&&(e=(!0===Pn()?t.scrollWidth-t.offsetWidth:0)-e),t.scrollLeft=e):t.scrollTop=e}function Ks(t,e,i,n){if(i>=n)return 0;const r=e.length,s=Math.floor(i/Vs),o=Math.floor((n-1)/Vs)+1;let a=t.slice(s,o).reduce(Qs,0);return i%Vs!==0&&(a-=e.slice(s*Vs,i).reduce(Qs,0)),n%Vs!==0&&n!==r&&(a-=e.slice(n,o*Vs).reduce(Qs,0)),a}const Xs={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]};function Gs(t,e){void 0===Gs.isSupported&&(Gs.isSupported=void 0!==window.getComputedStyle(document.body).overflowAnchor),!1!==Gs.isSupported&&void 0!==t&&(cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(void 0===t)return;const i=t.children||[];Us.call(i,t=>t.dataset&&void 0!==t.dataset.qVsAnchor).forEach(t=>{delete t.dataset.qVsAnchor});const n=i[e];n&&n.dataset&&(n.dataset.qVsAnchor="")}))}const Zs=Object.keys(Xs);var Js={props:{virtualScrollHorizontal:Boolean,...Xs},data(){return{virtualScrollSliceRange:{from:0,to:0}}},watch:{needsSliceRecalc(){this.__setVirtualScrollSize()},needsReset(){this.reset()}},computed:{needsReset(){return["virtualScrollItemSizeComputed","virtualScrollHorizontal"].map(t=>this[t]).join(";")},needsSliceRecalc(){return this.needsReset+";"+["virtualScrollSliceRatioBefore","virtualScrollSliceRatioAfter"].map(t=>this[t]).join(";")},colspanAttr(){return void 0!==this.tableColspan?{colspan:this.tableColspan}:{colspan:100}},virtualScrollItemSizeComputed(){return this.virtualScrollItemSize}},methods:{reset(){this.__resetVirtualScroll(this.prevToIndex,!0)},refresh(t){this.__resetVirtualScroll(void 0===t?this.prevToIndex:t)},scrollTo(t,e){const i=this.__getVirtualScrollTarget();if(void 0===i||null===i||8===i.nodeType)return;const n=Ws(i,this.__getVirtualScrollEl(),this.$refs.before,this.$refs.after,this.virtualScrollHorizontal,this.$q.lang.rtl,this.virtualScrollStickySizeStart,this.virtualScrollStickySizeEnd);this.__scrollViewSize!==n.scrollViewSize&&this.__setVirtualScrollSize(n.scrollViewSize),this.__setVirtualScrollSliceRange(i,n,Math.min(this.virtualScrollLength-1,Math.max(0,parseInt(t,10)||0)),0,Hs.indexOf(e)>-1?e:this.prevToIndex>-1&&t>this.prevToIndex?"end":"start")},__onVirtualScrollEvt(){const t=this.__getVirtualScrollTarget();if(void 0===t||null===t||8===t.nodeType)return;const e=Ws(t,this.__getVirtualScrollEl(),this.$refs.before,this.$refs.after,this.virtualScrollHorizontal,this.$q.lang.rtl,this.virtualScrollStickySizeStart,this.virtualScrollStickySizeEnd),i=this.virtualScrollLength-1,n=e.scrollMaxSize-e.offsetStart-e.offsetEnd-this.virtualScrollPaddingAfter;if(this.prevScrollStart===e.scrollStart)return;if(e.scrollMaxSize<=0)return void this.__setVirtualScrollSliceRange(t,e,0,0);this.__scrollViewSize!==e.scrollViewSize&&this.__setVirtualScrollSize(e.scrollViewSize),this.__updateVirtualScrollSizes(this.virtualScrollSliceRange.from);const r=Math.floor(e.scrollMaxSize-Math.max(e.scrollViewSize,e.offsetEnd)-Math.min(this.virtualScrollSizes[i],e.scrollViewSize/2));if(r>0&&Math.ceil(e.scrollStart)>=r)return void this.__setVirtualScrollSliceRange(t,e,i,e.scrollMaxSize-e.offsetEnd-this.virtualScrollSizesAgg.reduce(Qs,0));let s=0,o=e.scrollStart-e.offsetStart,a=o;if(o<=n&&o+e.scrollViewSize>=this.virtualScrollPaddingBefore)o-=this.virtualScrollPaddingBefore,s=this.virtualScrollSliceRange.from,a=o;else for(let l=0;o>=this.virtualScrollSizesAgg[l]&&s<i;l++)o-=this.virtualScrollSizesAgg[l],s+=Vs;while(o>0&&s<i)o-=this.virtualScrollSizes[s],o>-e.scrollViewSize?(s++,a=o):a=this.virtualScrollSizes[s]+o;this.__setVirtualScrollSliceRange(t,e,s,a)},__setVirtualScrollSliceRange(t,e,i,n,r){const s="string"===typeof r&&r.indexOf("-force")>-1,o=!0===s?r.replace("-force",""):r,a=void 0!==o?o:"start";let l=Math.max(0,i-this.virtualScrollSliceSizeComputed[a]),c=l+this.virtualScrollSliceSizeComputed.total;c>this.virtualScrollLength&&(c=this.virtualScrollLength,l=Math.max(0,c-this.virtualScrollSliceSizeComputed.total)),this.prevScrollStart=e.scrollStart;const u=l!==this.virtualScrollSliceRange.from||c!==this.virtualScrollSliceRange.to;if(!1===u&&void 0===o)return void this.__emitScroll(i);const{activeElement:h}=document,d=this.$refs.content;!0===u&&void 0!==d&&d!==h&&!0===d.contains(h)&&(d.addEventListener("focusout",this.__onBlurRefocusFn),setTimeout(()=>{void 0!==d&&d.removeEventListener("focusout",this.__onBlurRefocusFn)})),Gs(d,i-l);const p=void 0!==o?this.virtualScrollSizes.slice(l,i).reduce(Qs,0):0;if(!0===u){const t=c>=this.virtualScrollSliceRange.from&&l<=this.virtualScrollSliceRange.to?this.virtualScrollSliceRange.to:c;this.virtualScrollSliceRange={from:l,to:t},this.virtualScrollPaddingBefore=Ks(this.virtualScrollSizesAgg,this.virtualScrollSizes,0,l),this.virtualScrollPaddingAfter=Ks(this.virtualScrollSizesAgg,this.virtualScrollSizes,this.virtualScrollSliceRange.to,this.virtualScrollLength),requestAnimationFrame(()=>{this.virtualScrollSliceRange.to!==c&&this.prevScrollStart===e.scrollStart&&(this.virtualScrollSliceRange={from:this.virtualScrollSliceRange.from,to:c},this.virtualScrollPaddingAfter=Ks(this.virtualScrollSizesAgg,this.virtualScrollSizes,c,this.virtualScrollLength))})}requestAnimationFrame(()=>{if(this.prevScrollStart!==e.scrollStart)return;!0===u&&this.__updateVirtualScrollSizes(l);const r=this.virtualScrollSizes.slice(l,i).reduce(Qs,0),a=r+e.offsetStart+this.virtualScrollPaddingBefore,c=a+this.virtualScrollSizes[i];let h=a+n;if(void 0!==o){const t=r-p,n=e.scrollStart+t;h=!0!==s&&n<a&&c<n+e.scrollViewSize?n:"end"===o?c-e.scrollViewSize:a-("start"===o?0:Math.round((e.scrollViewSize-this.virtualScrollSizes[i])/2))}this.prevScrollStart=h,Ys(t,h,this.virtualScrollHorizontal,this.$q.lang.rtl),this.__emitScroll(i)})},__updateVirtualScrollSizes(t){const e=this.$refs.content;if(void 0!==e){const i=Us.call(e.children||[],t=>t.classList&&!1===t.classList.contains("q-virtual-scroll--skip")),n=i.length,r=!0===this.virtualScrollHorizontal?t=>t.getBoundingClientRect().width:t=>t.offsetHeight;let s,o,a=t;for(let t=0;t<n;){s=r(i[t]),t++;while(t<n&&!0===i[t].classList.contains("q-virtual-scroll--with-prev"))s+=r(i[t]),t++;o=s-this.virtualScrollSizes[a],0!==o&&(this.virtualScrollSizes[a]+=o,this.virtualScrollSizesAgg[Math.floor(a/Vs)]+=o),a++}}},__resetVirtualScroll(t,e){const i=1*this.virtualScrollItemSizeComputed;!0!==e&&!1!==Array.isArray(this.virtualScrollSizes)||(this.virtualScrollSizes=[]);const n=this.virtualScrollSizes.length;this.virtualScrollSizes.length=this.virtualScrollLength;for(let s=this.virtualScrollLength-1;s>=n;s--)this.virtualScrollSizes[s]=i;const r=Math.floor((this.virtualScrollLength-1)/Vs);this.virtualScrollSizesAgg=[];for(let s=0;s<=r;s++){let t=0;const e=Math.min((s+1)*Vs,this.virtualScrollLength);for(let i=s*Vs;i<e;i++)t+=this.virtualScrollSizes[i];this.virtualScrollSizesAgg.push(t)}this.prevToIndex=-1,this.prevScrollStart=void 0,this.virtualScrollPaddingBefore=Ks(this.virtualScrollSizesAgg,this.virtualScrollSizes,0,this.virtualScrollSliceRange.from),this.virtualScrollPaddingAfter=Ks(this.virtualScrollSizesAgg,this.virtualScrollSizes,this.virtualScrollSliceRange.to,this.virtualScrollLength),t>=0?(this.__updateVirtualScrollSizes(this.virtualScrollSliceRange.from),this.$nextTick(()=>{this.scrollTo(t)})):this.__onVirtualScrollEvt()},__setVirtualScrollSize(t){if(void 0===t&&"undefined"!==typeof window){const e=this.__getVirtualScrollTarget();void 0!==e&&null!==e&&8!==e.nodeType&&(t=Ws(e,this.__getVirtualScrollEl(),this.$refs.before,this.$refs.after,this.virtualScrollHorizontal,this.$q.lang.rtl,this.virtualScrollStickySizeStart,this.virtualScrollStickySizeEnd).scrollViewSize)}this.__scrollViewSize=t;const e=parseFloat(this.virtualScrollSliceRatioBefore)||0,i=parseFloat(this.virtualScrollSliceRatioAfter)||0,n=1+e+i,r=void 0===t||t<=0?1:Math.ceil(t/this.virtualScrollItemSizeComputed),s=Math.max(1,r,Math.ceil((this.virtualScrollSliceSize>0?this.virtualScrollSliceSize:10)/n));this.virtualScrollSliceSizeComputed={total:Math.ceil(s*n),start:Math.ceil(s*e),center:Math.ceil(s*(.5+e)),end:Math.ceil(s*(1+e)),view:r}},__padVirtualScroll(t,e,i){const n=!0===this.virtualScrollHorizontal?"width":"height",r={["--q-virtual-scroll-item-"+n]:this.virtualScrollItemSizeComputed+"px"};return["tbody"===e?t(e,{staticClass:"q-virtual-scroll__padding",key:"before",ref:"before"},[t("tr",[t("td",{style:{[n]:this.virtualScrollPaddingBefore+"px",...r},attrs:this.colspanAttr})])]):t(e,{staticClass:"q-virtual-scroll__padding",key:"before",ref:"before",style:{[n]:this.virtualScrollPaddingBefore+"px",...r}}),t(e,{staticClass:"q-virtual-scroll__content",key:"content",ref:"content",attrs:{tabindex:-1}},i),"tbody"===e?t(e,{staticClass:"q-virtual-scroll__padding",key:"after",ref:"after"},[t("tr",[t("td",{style:{[n]:this.virtualScrollPaddingAfter+"px",...r},attrs:this.colspanAttr})])]):t(e,{staticClass:"q-virtual-scroll__padding",key:"after",ref:"after",style:{[n]:this.virtualScrollPaddingAfter+"px",...r}})]},__emitScroll(t){this.prevToIndex!==t&&(void 0!==this.qListeners["virtual-scroll"]&&this.$emit("virtual-scroll",{index:t,from:this.virtualScrollSliceRange.from,to:this.virtualScrollSliceRange.to-1,direction:t<this.prevToIndex?"decrease":"increase",ref:this}),this.prevToIndex=t)},__onBlurRefocusFn(){void 0!==this.$refs.content&&this.$refs.content.focus()}},created(){this.__setVirtualScrollSize()},activated(){if(!0!==this.shouldActivate)return;const t=this.__getVirtualScrollTarget();void 0!==this.prevScrollStart&&void 0!==t&&null!==t&&8!==t.nodeType?Ys(t,this.prevScrollStart,this.virtualScrollHorizontal,this.$q.lang.rtl):this.scrollTo(this.prevToIndex)},deactivated(){this.shouldActivate=!0},beforeMount(){this.__onVirtualScrollEvt=Ei(this.__onVirtualScrollEvt,!0===this.$q.platform.is.ios?120:35),this.__setVirtualScrollSize()},beforeDestroy(){this.__onVirtualScrollEvt.cancel()}};const to=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,eo=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,io=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,no=/[a-z0-9_ -]$/i;var ro={methods:{__onComposition(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.qComposing)return;t.target.qComposing=!1,this.__onInput(t)}else if("compositionupdate"===t.type&&!0!==t.target.qComposing&&"string"===typeof t.data){const e=!0===Ee.is.firefox?!1===no.test(t.data):!0===to.test(t.data)||!0===eo.test(t.data)||!0===io.test(t.data);!0===e&&(t.target.qComposing=!0)}}}};const so=t=>["add","add-unique","toggle"].includes(t),oo=".*+?^${}()|[]\\";var ao=he.a.extend({name:"QSelect",mixins:[is,Js,ro,Nr,De],props:{value:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueSanitize:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsSanitize:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:so},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,behavior:{type:String,validator:t=>["default","menu","dialog"].includes(t),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0}},data(){return{menu:!1,dialog:!1,optionIndex:-1,inputValue:"",dialogFieldFocused:!1}},watch:{innerValue:{handler(t){this.innerValueCache=t,!0===this.useInput&&!0===this.fillInput&&!0!==this.multiple&&!0!==this.innerLoading&&(!0!==this.dialog&&!0!==this.menu||!0!==this.hasValue)&&(!0!==this.userInputValue&&this.__resetInputValue(),!0!==this.dialog&&!0!==this.menu||this.filter(""))},immediate:!0},fillInput(){this.__resetInputValue()},menu(t){this.__updateMenu(t)},virtualScrollLength(t,e){!0===this.menu&&!1===this.innerLoading&&(this.__resetVirtualScroll(-1,!0),this.$nextTick(()=>{!0===this.menu&&!1===this.innerLoading&&(t>e?this.__resetVirtualScroll():this.__updateMenu(!0))}))}},computed:{isOptionsDark(){return null===this.optionsDark?this.isDark:this.optionsDark},virtualScrollLength(){return Array.isArray(this.options)?this.options.length:0},fieldClass(){return`q-select q-field--auto-height q-select--with${!0!==this.useInput?"out":""}-input q-select--with${!0!==this.useChips?"out":""}-chips q-select--`+(!0===this.multiple?"multiple":"single")},computedInputClass(){return!0===this.hideSelected||0===this.innerValue.length?this.inputClass:void 0===this.inputClass?"q-field__input--padding":[this.inputClass,"q-field__input--padding"]},menuContentClass(){return(!0===this.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(this.popupContentClass?" "+this.popupContentClass:"")},innerValue(){const t=!0===this.mapOptions&&!0!==this.multiple,e=void 0===this.value||null===this.value&&!0!==t?[]:!0===this.multiple&&Array.isArray(this.value)?this.value:[this.value];if(!0===this.mapOptions&&!0===Array.isArray(this.options)){const i=!0===this.mapOptions&&void 0!==this.innerValueCache?this.innerValueCache:[],n=e.map(t=>this.__getOption(t,i));return null===this.value&&!0===t?n.filter(t=>null!==t):n}return e},noOptions(){return 0===this.virtualScrollLength},selectedString(){return this.innerValue.map(t=>this.getOptionLabel(t)).join(", ")},ariaCurrentValue(){return void 0!==this.displayValue?this.displayValue:this.selectedString},sanitizeFn(){return!0===this.optionsSanitize?()=>!0:t=>void 0!==t&&null!==t&&!0===t.sanitize},displayAsText(){return!0===this.displayValueSanitize||void 0===this.displayValue&&(!0===this.optionsSanitize||this.innerValue.some(this.sanitizeFn))},computedTabindex(){return!0===this.focused?this.tabindex:-1},selectedScope(){return this.innerValue.map((t,e)=>({index:e,opt:t,sanitize:this.sanitizeFn(t),selected:!0,removeAtIndex:this.__removeAtIndexAndFocus,toggleOption:this.toggleOption,tabindex:this.computedTabindex}))},optionScope(){if(0===this.virtualScrollLength)return[];const{from:t,to:e}=this.virtualScrollSliceRange,{options:i,optionEls:n}=this.__optionScopeCache;return this.options.slice(t,e).map((e,r)=>{const s=this.isOptionDisabled(e),o=t+r,a={clickable:!0,active:!1,activeClass:this.computedOptionsSelectedClass,manualFocus:!0,focused:!1,disable:s,tabindex:-1,dense:this.optionsDense,dark:this.isOptionsDark},l={role:"option",id:`${this.targetUid}_${o}`};!0!==s&&(!0===this.isOptionSelected(e)&&(a.active=!0),l["aria-selected"]=!0===a.active?"true":"false",this.optionIndex===o&&(a.focused=!0));const c={click:()=>{this.toggleOption(e)}};!0===this.$q.platform.is.desktop&&(c.mousemove=()=>{!0===this.menu&&this.setOptionIndex(o)});const u={index:o,opt:e,sanitize:this.sanitizeFn(e),selected:a.active,focused:a.focused,toggleOption:this.toggleOption,setOptionIndex:this.setOptionIndex,itemProps:a,itemAttrs:l};return void 0!==i[r]&&!0===Rs(u,i[r])||(i[r]=u,n[r]=void 0),{...u,itemEvents:c}})},dropdownArrowIcon(){return void 0!==this.dropdownIcon?this.dropdownIcon:this.$q.iconSet.arrow.dropdown},squaredMenu(){return!1===this.optionsCover&&!0!==this.outlined&&!0!==this.standout&&!0!==this.borderless&&!0!==this.rounded},computedOptionsSelectedClass(){return void 0!==this.optionsSelectedClass?this.optionsSelectedClass:void 0!==this.color?"text-"+this.color:""},innerOptionsValue(){return this.innerValue.map(t=>this.getOptionValue(t))},getOptionValue(){return this.__getPropValueFn("optionValue","value")},getOptionLabel(){return this.__getPropValueFn("optionLabel","label")},isOptionDisabled(){const t=this.__getPropValueFn("optionDisable","disable");return(...e)=>!0===t.apply(null,e)},inputControlEvents(){const t={input:this.__onInput,change:this.__onChange,keydown:this.__onTargetKeydown,keyup:this.__onTargetAutocomplete,keypress:this.__onTargetKeypress,focus:this.__selectInputText,click:t=>{!0===this.hasDialog&&mi(t)}};return t.compositionstart=t.compositionupdate=t.compositionend=this.__onComposition,t},virtualScrollItemSizeComputed(){return void 0===this.virtualScrollItemSize?!0===this.optionsDense?24:48:this.virtualScrollItemSize},comboboxAttrs(){const t={tabindex:this.tabindex,role:"combobox","aria-label":this.label,"aria-readonly":!0===this.readonly?"true":"false","aria-autocomplete":!0===this.useInput?"list":"none","aria-expanded":!0===this.menu?"true":"false","aria-controls":this.targetUid+"_lb"};return this.optionIndex>=0&&(t["aria-activedescendant"]=`${this.targetUid}_${this.optionIndex}`),t},listboxAttrs(){return{id:this.targetUid+"_lb",role:"listbox","aria-multiselectable":!0===this.multiple?"true":"false"}}},methods:{getEmittingOptionValue(t){return!0===this.emitValue?this.getOptionValue(t):t},removeAtIndex(t){if(t>-1&&t<this.innerValue.length)if(!0===this.multiple){const e=this.value.slice();this.$emit("remove",{index:t,value:e.splice(t,1)[0]}),this.$emit("input",e)}else this.$emit("input",null)},__removeAtIndexAndFocus(t){this.removeAtIndex(t),this.__focus()},add(t,e){const i=this.getEmittingOptionValue(t);if(!0!==this.multiple)return!0===this.fillInput&&this.updateInputValue(this.getOptionLabel(t),!0,!0),void this.$emit("input",i);if(0===this.innerValue.length)return this.$emit("add",{index:0,value:i}),void this.$emit("input",!0===this.multiple?[i]:i);if(!0===e&&!0===this.isOptionSelected(t))return;if(void 0!==this.maxValues&&this.value.length>=this.maxValues)return;const n=this.value.slice();this.$emit("add",{index:n.length,value:i}),n.push(i),this.$emit("input",n)},toggleOption(t,e){if(!0!==this.editable||void 0===t||!0===this.isOptionDisabled(t))return;const i=this.getOptionValue(t);if(!0!==this.multiple)return!0!==e&&(this.updateInputValue(!0===this.fillInput?this.getOptionLabel(t):"",!0,!0),this.dialogFieldFocused=!1,document.activeElement.blur(),this.hidePopup()),void 0!==this.$refs.target&&this.$refs.target.focus(),void(0!==this.innerValue.length&&!0===Rs(this.getOptionValue(this.innerValue[0]),i)||this.$emit("input",!0===this.emitValue?i:t));if((!0!==this.hasDialog||!0===this.dialogFieldFocused)&&this.__focus(),this.__selectInputText(),0===this.innerValue.length){const e=!0===this.emitValue?i:t;return this.$emit("add",{index:0,value:e}),void this.$emit("input",!0===this.multiple?[e]:e)}const n=this.value.slice(),r=this.innerOptionsValue.findIndex(t=>Rs(t,i));if(r>-1)this.$emit("remove",{index:r,value:n.splice(r,1)[0]});else{if(void 0!==this.maxValues&&n.length>=this.maxValues)return;const e=!0===this.emitValue?i:t;this.$emit("add",{index:n.length,value:e}),n.push(e)}this.$emit("input",n)},setOptionIndex(t){if(!0!==this.$q.platform.is.desktop)return;const e=t>-1&&t<this.virtualScrollLength?t:-1;this.optionIndex!==e&&(this.optionIndex=e)},moveOptionSelection(t=1,e){if(!0===this.menu){let i=this.optionIndex;do{i=zs(i+t,-1,this.virtualScrollLength-1)}while(-1!==i&&i!==this.optionIndex&&!0===this.isOptionDisabled(this.options[i]));this.optionIndex!==i&&(cancelAnimationFrame(this.moveAnimationFrame),this.moveAnimationFrame=requestAnimationFrame(()=>{this.setOptionIndex(i),this.scrollTo(i),!0!==e&&!0===this.useInput&&!0===this.fillInput&&this.__setInputValue(i>=0?this.getOptionLabel(this.options[i]):this.defaultInputValue)}))}},__getOption(t,e){const i=e=>Rs(this.getOptionValue(e),t);return this.options.find(i)||e.find(i)||t},__getPropValueFn(t,e){const i=void 0!==this[t]?this[t]:e;return"function"===typeof i?i:t=>null!==t&&"object"===typeof t&&i in t?t[i]:t},isOptionSelected(t){const e=this.getOptionValue(t);return void 0!==this.innerOptionsValue.find(t=>Rs(t,e))},__selectInputText(t){!0===this.useInput&&void 0!==this.$refs.target&&(void 0===t||this.$refs.target===t.target&&t.target.value===this.selectedString)&&this.$refs.target.select()},__onTargetKeyup(t){!0===ki(t,27)&&!0===this.menu&&(mi(t),this.hidePopup(),this.__resetInputValue()),this.$emit("keyup",t)},__onTargetAutocomplete(t){const{value:e}=t.target;if(void 0===t.keyCode)if(t.target.value="",clearTimeout(this.inputTimer),this.__resetInputValue(),"string"===typeof e&&e.length>0){const t=e.toLocaleLowerCase(),i=e=>{const i=this.options.find(i=>e(i).toLocaleLowerCase()===t);return void 0!==i&&(-1===this.innerValue.indexOf(i)?this.toggleOption(i):this.hidePopup(),!0)},n=t=>{!0!==i(this.getOptionValue)&&!0!==i(this.getOptionLabel)&&!0!==t&&this.filter(e,!0,()=>n(!0))};n()}else this.__clearValue(t);else this.__onTargetKeyup(t)},__onTargetKeypress(t){this.$emit("keypress",t)},__onTargetKeydown(t){if(this.$emit("keydown",t),!0===Ci(t))return;const e=this.inputValue.length>0&&(void 0!==this.newValueMode||void 0!==this.qListeners["new-value"]),i=!0!==t.shiftKey&&!0!==this.multiple&&(this.optionIndex>-1||!0===e);if(27===t.keyCode)return void gi(t);if(9===t.keyCode&&!1===i)return void this.__closeMenu();if(void 0===t.target||t.target.id!==this.targetUid)return;if(40===t.keyCode&&!0!==this.innerLoading&&!1===this.menu)return vi(t),void this.showPopup();if(8===t.keyCode&&!0!==this.hideSelected&&0===this.inputValue.length)return void(!0===this.multiple&&Array.isArray(this.value)?this.removeAtIndex(this.value.length-1):!0!==this.multiple&&null!==this.value&&this.$emit("input",null));35!==t.keyCode&&36!==t.keyCode||"string"===typeof this.inputValue&&0!==this.inputValue.length||(vi(t),this.optionIndex=-1,this.moveOptionSelection(36===t.keyCode?1:-1,this.multiple)),33!==t.keyCode&&34!==t.keyCode||void 0===this.virtualScrollSliceSizeComputed||(vi(t),this.optionIndex=Math.max(-1,Math.min(this.virtualScrollLength,this.optionIndex+(33===t.keyCode?-1:1)*this.virtualScrollSliceSizeComputed.view)),this.moveOptionSelection(33===t.keyCode?1:-1,this.multiple)),38!==t.keyCode&&40!==t.keyCode||(vi(t),this.moveOptionSelection(38===t.keyCode?-1:1,this.multiple));const n=this.virtualScrollLength;if((void 0===this.searchBuffer||this.searchBufferExp<Date.now())&&(this.searchBuffer=""),n>0&&!0!==this.useInput&&void 0!==t.key&&1===t.key.length&&!1===t.altKey&&!1===t.ctrlKey&&!1===t.metaKey&&(32!==t.keyCode||this.searchBuffer.length>0)){!0!==this.menu&&this.showPopup(t);const e=t.key.toLocaleLowerCase(),i=1===this.searchBuffer.length&&this.searchBuffer[0]===e;this.searchBufferExp=Date.now()+1500,!1===i&&(vi(t),this.searchBuffer+=e);const r=new RegExp("^"+this.searchBuffer.split("").map(t=>oo.indexOf(t)>-1?"\\"+t:t).join(".*"),"i");let s=this.optionIndex;if(!0===i||s<0||!0!==r.test(this.getOptionLabel(this.options[s])))do{s=zs(s+1,-1,n-1)}while(s!==this.optionIndex&&(!0===this.isOptionDisabled(this.options[s])||!0!==r.test(this.getOptionLabel(this.options[s]))));this.optionIndex!==s&&this.$nextTick(()=>{this.setOptionIndex(s),this.scrollTo(s),s>=0&&!0===this.useInput&&!0===this.fillInput&&this.__setInputValue(this.getOptionLabel(this.options[s]))})}else if(13===t.keyCode||32===t.keyCode&&!0!==this.useInput&&""===this.searchBuffer||9===t.keyCode&&!1!==i)if(9!==t.keyCode&&vi(t),this.optionIndex>-1&&this.optionIndex<n)this.toggleOption(this.options[this.optionIndex]);else{if(!0===e){const t=(t,e)=>{if(e){if(!0!==so(e))return}else e=this.newValueMode;void 0!==t&&null!==t&&(this.updateInputValue("",!0!==this.multiple,!0),this["toggle"===e?"toggleOption":"add"](t,"add-unique"===e),!0!==this.multiple&&(void 0!==this.$refs.target&&this.$refs.target.focus(),this.hidePopup()))};if(void 0!==this.qListeners["new-value"]?this.$emit("new-value",this.inputValue,t):t(this.inputValue),!0!==this.multiple)return}!0===this.menu?this.__closeMenu():!0!==this.innerLoading&&this.showPopup()}},__getVirtualScrollEl(){return!0===this.hasDialog?this.$refs.menuContent:void 0!==this.$refs.menu&&void 0!==this.$refs.menu.__portal?this.$refs.menu.__portal.$el:void 0},__getVirtualScrollTarget(){return this.__getVirtualScrollEl()},__getSelection(t){return!0===this.hideSelected?[]:void 0!==this.$scopedSlots["selected-item"]?this.selectedScope.map(t=>this.$scopedSlots["selected-item"](t)).slice():void 0!==this.$scopedSlots.selected?[].concat(this.$scopedSlots.selected()):!0===this.useChips?this.selectedScope.map((e,i)=>t(ns,{key:"rem#"+i,props:{removable:!0===this.editable&&!0!==this.isOptionDisabled(e.opt),dense:!0,textColor:this.color,tabindex:this.computedTabindex},on:Ae(this,"rem#"+i,{remove(){e.removeAtIndex(i)}})},[t("span",{staticClass:"ellipsis",domProps:{[!0===e.sanitize?"textContent":"innerHTML"]:this.getOptionLabel(e.opt)}})])):[t("span",{domProps:{[this.displayAsText?"textContent":"innerHTML"]:this.ariaCurrentValue}})]},__getControl(t,e){const i=this.__getSelection(t),n=!0===e||!0!==this.dialog||!0!==this.hasDialog;if(!0===this.useInput)i.push(this.__getInput(t,e,n));else if(!0===this.editable){const r=!0===n?this.comboboxAttrs:void 0;i.push(t("input",{ref:!0===n?"target":void 0,key:"d_t",staticClass:"q-select__focus-target",attrs:{id:!0===n?this.targetUid:void 0,readonly:!0,"data-autofocus":(!0===e?!0===n:this.autofocus)||void 0,...r},on:Ae(this,"f-tget",{keydown:this.__onTargetKeydown,keyup:this.__onTargetKeyup,keypress:this.__onTargetKeypress})})),!0===n&&"string"===typeof this.autocomplete&&this.autocomplete.length>0&&i.push(t("input",{key:"autoinp",staticClass:"q-select__autocomplete-input",domProps:{value:this.ariaCurrentValue},attrs:{autocomplete:this.autocomplete,tabindex:-1},on:Ae(this,"autoinp",{keyup:this.__onTargetAutocomplete})}))}if(void 0!==this.nameProp&&!0!==this.disable&&this.innerOptionsValue.length>0){const e=this.innerOptionsValue.map(e=>t("option",{attrs:{value:e,selected:!0}}));i.push(t("select",{staticClass:"hidden",attrs:{name:this.nameProp,multiple:this.multiple}},e))}const r=!0===this.useInput||!0!==n?void 0:this.qAttrs;return t("div",{staticClass:"q-field__native row items-center",attrs:r},i)},__getOptions(t){if(!0!==this.menu)return;if(!0===this.noOptions)return void 0!==this.$scopedSlots["no-option"]?this.$scopedSlots["no-option"]({inputValue:this.inputValue}):void 0;void 0!==this.$scopedSlots.option&&this.__optionScopeCache.optionSlot!==this.$scopedSlots.option&&(this.__optionScopeCache.optionSlot=this.$scopedSlots.option,this.__optionScopeCache.optionEls=[]);const e=void 0!==this.$scopedSlots.option?this.$scopedSlots.option:e=>t(rs,{key:e.index,props:e.itemProps,attrs:e.itemAttrs,on:e.itemEvents},[t(ss,[t(os,{domProps:{[!0===e.sanitize?"textContent":"innerHTML"]:this.getOptionLabel(e.opt)}})])]),{optionEls:i}=this.__optionScopeCache;let n=this.__padVirtualScroll(t,"div",this.optionScope.map((t,n)=>(void 0===i[n]&&(i[n]=e(t)),i[n])));return void 0!==this.$scopedSlots["before-options"]&&(n=this.$scopedSlots["before-options"]().concat(n)),Oe(n,this,"after-options")},__getInnerAppend(t){return!0!==this.loading&&!0!==this.innerLoadingIndicator&&!0!==this.hideDropdownIcon?[t(Je,{staticClass:"q-select__dropdown-icon"+(!0===this.menu?" rotate-180":""),props:{name:this.dropdownArrowIcon}})]:null},__getInput(t,e,i){const n=!0===i?{...this.comboboxAttrs,...this.qAttrs}:void 0,r={ref:!0===i?"target":void 0,key:"i_t",staticClass:"q-field__input q-placeholder col",style:this.inputStyle,class:this.computedInputClass,domProps:{value:void 0!==this.inputValue?this.inputValue:""},attrs:{type:"search",...n,id:!0===i?this.targetUid:void 0,maxlength:this.maxlength,autocomplete:this.autocomplete,"data-autofocus":(!0===e?!0===i:this.autofocus)||void 0,disabled:!0===this.disable,readonly:!0===this.readonly},on:this.inputControlEvents};return!0!==e&&!0===this.hasDialog&&(r.staticClass+=" no-pointer-events"),t("input",r)},__onChange(t){this.__onComposition(t)},__onInput(t){clearTimeout(this.inputTimer),t&&t.target&&!0===t.target.qComposing||(this.__setInputValue(t.target.value||""),this.userInputValue=!0,this.defaultInputValue=this.inputValue,!0===this.focused||!0===this.hasDialog&&!0!==this.dialogFieldFocused||this.__focus(),void 0!==this.qListeners.filter&&(this.inputTimer=setTimeout(()=>{this.filter(this.inputValue)},this.inputDebounce)))},__setInputValue(t){this.inputValue!==t&&(this.inputValue=t,this.$emit("input-value",t))},updateInputValue(t,e,i){this.userInputValue=!0!==i,!0===this.useInput&&(this.__setInputValue(t),!0!==e&&!0===i||(this.defaultInputValue=t),!0!==e&&this.filter(t))},filter(t,e,i){if(void 0===this.qListeners.filter||!0!==e&&!0!==this.focused)return;!0===this.innerLoading?this.$emit("filter-abort"):(this.innerLoading=!0,this.innerLoadingIndicator=!0),""!==t&&!0!==this.multiple&&this.innerValue.length>0&&!0!==this.userInputValue&&t===this.getOptionLabel(this.innerValue[0])&&(t="");const n=setTimeout(()=>{!0===this.menu&&(this.menu=!1)},10);clearTimeout(this.filterId),this.filterId=n,this.$emit("filter",t,(t,r)=>{!0!==e&&!0!==this.focused||this.filterId!==n||(clearTimeout(this.filterId),"function"===typeof t&&t(),this.innerLoadingIndicator=!1,this.$nextTick(()=>{this.innerLoading=!1,!0===this.editable&&(!0===e?!0===this.menu&&this.hidePopup():!0===this.menu?this.__updateMenu(!0):(this.menu=!0,!0===this.hasDialog&&(this.dialog=!0))),"function"===typeof r&&this.$nextTick(()=>{r(this)}),"function"===typeof i&&this.$nextTick(()=>{i(this)})}))},()=>{!0===this.focused&&this.filterId===n&&(clearTimeout(this.filterId),this.innerLoading=!1,this.innerLoadingIndicator=!1),!0===this.menu&&(this.menu=!1)})},__getControlEvents(){const t=t=>{this.__onControlFocusout(t,()=>{this.__resetInputValue(),this.__closeMenu()})};return{focusin:this.__onControlFocusin,focusout:t,"popup-show":this.__onControlPopupShow,"popup-hide":e=>{void 0!==e&&mi(e),this.$emit("popup-hide",e),this.hasPopupOpen=!1,t(e)},click:t=>{if(gi(t),!0!==this.hasDialog&&!0===this.menu)return this.__closeMenu(),void(void 0!==this.$refs.target&&this.$refs.target.focus());this.showPopup(t)}}},__getControlChild(t){if(!1!==this.editable&&(!0===this.dialog||!0!==this.noOptions||void 0!==this.$scopedSlots["no-option"]))return this["__get"+(!0===this.hasDialog?"Dialog":"Menu")](t)},__getMenu(t){return t(As,{key:"menu",ref:"menu",props:{value:this.menu,fit:!0!==this.menuShrink,cover:!0===this.optionsCover&&!0!==this.noOptions&&!0!==this.useInput,anchor:this.menuAnchor,self:this.menuSelf,offset:this.menuOffset,contentClass:this.menuContentClass,contentStyle:this.popupContentStyle,dark:this.isOptionsDark,noParentEvent:!0,noRefocus:!0,noFocus:!0,square:this.squaredMenu,transitionShow:this.transitionShow,transitionHide:this.transitionHide,separateClosePopup:!0},attrs:this.listboxAttrs,on:Ae(this,"menu",{"&scroll":this.__onVirtualScrollEvt,"before-hide":this.__closeMenu,show:this.__onMenuShow})},this.__getOptions(t))},__onMenuShow(){this.__setVirtualScrollSize()},__onDialogFieldFocus(t){mi(t),void 0!==this.$refs.target&&this.$refs.target.focus(),this.dialogFieldFocused=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)},__onDialogFieldBlur(t){mi(t),this.$nextTick(()=>{this.dialogFieldFocused=!1})},__getDialog(t){const e=[t(is,{staticClass:"col-auto "+this.fieldClass,props:{...this.$props,for:this.targetUid,dark:this.isOptionsDark,square:!0,filled:!0,itemAligned:!1,loading:this.innerLoadingIndicator,stackLabel:this.inputValue.length>0},on:{...this.qListeners,focus:this.__onDialogFieldFocus,blur:this.__onDialogFieldBlur},scopedSlots:{...this.$scopedSlots,rawControl:()=>this.__getControl(t,!0),before:void 0,after:void 0}})];return!0===this.menu&&e.push(t("div",{key:"virtMenu",ref:"menuContent",staticClass:"col scroll",class:this.menuContentClass,style:this.popupContentStyle,attrs:this.listboxAttrs,on:Ae(this,"virtMenu",{click:gi,"&scroll":this.__onVirtualScrollEvt})},this.__getOptions(t))),t(xr,{key:"dialog",ref:"dialog",props:{value:this.dialog,dark:this.isOptionsDark,position:!0===this.useInput?"top":void 0,transitionShow:this.transitionShowComputed,transitionHide:this.transitionHide},on:Ae(this,"dialog",{"before-hide":this.__onDialogBeforeHide,hide:this.__onDialogHide,show:this.__onDialogShow})},[t("div",{staticClass:"q-select__dialog"+(!0===this.isOptionsDark?" q-select__dialog--dark q-dark":"")+(!0===this.dialogFieldFocused?" q-select__dialog--focused":"")},e)])},__onDialogBeforeHide(){!0===this.useInput&&!0!==this.$q.platform.is.desktop||(this.$refs.dialog.__refocusTarget=this.$el.querySelector(".q-field__native > [tabindex]:last-child")),this.focused=!1,this.dialogFieldFocused=!1},__onDialogHide(t){!0!==this.$q.platform.is.desktop&&document.activeElement.blur(),this.hidePopup(),!1===this.focused&&this.$emit("blur",t),this.__resetInputValue()},__onDialogShow(){const t=document.activeElement;null!==t&&t.id===this.targetUid||this.$refs.target===t||void 0===this.$refs.target||this.$refs.target.focus(),this.__setVirtualScrollSize()},__closeMenu(){void 0!==this.__optionScopeCache&&(this.__optionScopeCache.optionEls=[]),!0!==this.dialog&&(this.optionIndex=-1,!0===this.menu&&(this.menu=!1),!1===this.focused&&(clearTimeout(this.filterId),this.filterId=void 0,!0===this.innerLoading&&(this.$emit("filter-abort"),this.innerLoading=!1,this.innerLoadingIndicator=!1)))},showPopup(t){!0===this.editable&&(!0===this.hasDialog?(this.__onControlFocusin(t),this.dialog=!0,this.$nextTick(()=>{this.__focus()})):this.__focus(),void 0!==this.qListeners.filter?this.filter(this.inputValue):!0===this.noOptions&&void 0===this.$scopedSlots["no-option"]||(this.menu=!0))},hidePopup(){this.dialog=!1,this.__closeMenu()},__resetInputValue(){!0===this.useInput&&this.updateInputValue(!0!==this.multiple&&!0===this.fillInput&&this.innerValue.length>0&&this.getOptionLabel(this.innerValue[0])||"",!0,!0)},__updateMenu(t){let e=-1;if(!0===t){if(this.innerValue.length>0){const t=this.getOptionValue(this.innerValue[0]);e=this.options.findIndex(e=>Rs(this.getOptionValue(e),t))}this.__resetVirtualScroll(e)}this.setOptionIndex(e)},__onPreRender(){this.hasDialog=(!0===this.$q.platform.is.mobile||"dialog"===this.behavior)&&("menu"!==this.behavior&&(!0!==this.useInput||(void 0!==this.$scopedSlots["no-option"]||void 0!==this.qListeners.filter||!1===this.noOptions))),this.transitionShowComputed=!0===this.hasDialog&&!0===this.useInput&&!0===this.$q.platform.is.ios?"fade":this.transitionShow},__onPostRender(){!1===this.dialog&&void 0!==this.$refs.menu&&this.$refs.menu.updatePosition()},updateMenuPosition(){this.__onPostRender()}},beforeMount(){this.__optionScopeCache={optionSlot:this.$scopedSlots.option,options:[],optionEls:[]}},beforeDestroy(){this.__optionScopeCache=void 0,clearTimeout(this.inputTimer)}});const lo="q-table__bottom row items-center";var co={props:{hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean},computed:{navIcon(){const t=[this.iconFirstPage||this.$q.iconSet.table.firstPage,this.iconPrevPage||this.$q.iconSet.table.prevPage,this.iconNextPage||this.$q.iconSet.table.nextPage,this.iconLastPage||this.$q.iconSet.table.lastPage];return!0===this.$q.lang.rtl?t.reverse():t}},methods:{__getBottomDiv(t){if(!0===this.hideBottom)return;if(!0===this.nothingToDisplay){if(!0===this.hideNoData)return;const e=!0===this.loading?this.loadingLabel||this.$q.lang.table.loading:this.filter?this.noResultsLabel||this.$q.lang.table.noResults:this.noDataLabel||this.$q.lang.table.noData,i=this.$scopedSlots["no-data"],n=void 0!==i?[i({message:e,icon:this.$q.iconSet.table.warning,filter:this.filter})]:[t(Je,{staticClass:"q-table__bottom-nodata-icon",props:{name:this.$q.iconSet.table.warning}}),e];return t("div",{staticClass:lo+" q-table__bottom--nodata"},n)}const e=this.$scopedSlots.bottom;if(void 0!==e)return t("div",{staticClass:lo},[e(this.marginalsScope)]);const i=!0!==this.hideSelectedBanner&&!0===this.hasSelectionMode&&this.rowsSelectedNumber>0?[t("div",{staticClass:"q-table__control"},[t("div",[(this.selectedRowsLabel||this.$q.lang.table.selectedRecords)(this.rowsSelectedNumber)])])]:[];return!0!==this.hidePagination?t("div",{staticClass:lo+" justify-end"},this.__getPaginationDiv(t,i)):i.length>0?t("div",{staticClass:lo},i):void 0},__getPaginationDiv(t,e){let i;const{rowsPerPage:n}=this.computedPagination,r=this.paginationLabel||this.$q.lang.table.pagination,s=this.$scopedSlots.pagination,o=this.rowsPerPageOptions.length>1;if(e.push(t("div",{staticClass:"q-table__separator col"})),!0===o&&e.push(t("div",{staticClass:"q-table__control"},[t("span",{staticClass:"q-table__bottom-item"},[this.rowsPerPageLabel||this.$q.lang.table.recordsPerPage]),t(ao,{staticClass:"q-table__select inline q-table__bottom-item",props:{color:this.color,value:n,options:this.computedRowsPerPageOptions,displayValue:0===n?this.$q.lang.table.allRows:n,dark:this.isDark,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0},on:Ae(this,"pgSize",{input:t=>{this.setPagination({page:1,rowsPerPage:t.value})}})})])),void 0!==s)i=s(this.marginalsScope);else if(i=[t("span",0!==n?{staticClass:"q-table__bottom-item"}:{},[n?r(this.firstRowIndex+1,Math.min(this.lastRowIndex,this.computedRowsNumber),this.computedRowsNumber):r(1,this.filteredSortedRowsNumber,this.computedRowsNumber)])],0!==n&&this.pagesNumber>1){const e={color:this.color,round:!0,dense:!0,flat:!0};!0===this.dense&&(e.size="sm"),this.pagesNumber>2&&i.push(t(bn,{key:"pgFirst",props:{...e,icon:this.navIcon[0],disable:this.isFirstPage},on:Ae(this,"pgFirst",{click:this.firstPage})})),i.push(t(bn,{key:"pgPrev",props:{...e,icon:this.navIcon[1],disable:this.isFirstPage},on:Ae(this,"pgPrev",{click:this.prevPage})}),t(bn,{key:"pgNext",props:{...e,icon:this.navIcon[2],disable:this.isLastPage},on:Ae(this,"pgNext",{click:this.nextPage})})),this.pagesNumber>2&&i.push(t(bn,{key:"pgLast",props:{...e,icon:this.navIcon[3],disable:this.isLastPage},on:Ae(this,"pgLast",{click:this.lastPage})}))}return e.push(t("div",{staticClass:"q-table__control"},i)),e}}};const uo={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},ho={xs:2,sm:4,md:8,lg:16,xl:24};var po=he.a.extend({name:"QSeparator",mixins:[Cr,De],props:{spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},computed:{orientation(){return!0===this.vertical?"vertical":"horizontal"},classPrefix(){return" q-separator--"+this.orientation},insetClass(){return!1!==this.inset?`${this.classPrefix}-${uo[this.inset]}`:""},classes(){return`q-separator${this.classPrefix}${this.insetClass}`+(void 0!==this.color?" bg-"+this.color:"")+(!0===this.isDark?" q-separator--dark":"")},style(){const t={};if(void 0!==this.size&&(t[!0===this.vertical?"width":"height"]=this.size),!1!==this.spaced){const e=!0===this.spaced?ho.md+"px":this.spaced in ho?ho[this.spaced]+"px":this.spaced,i=!0===this.vertical?["Left","Right"]:["Top","Bottom"];t["margin"+i[0]]=t["margin"+i[1]]=e}return t},attrs(){return{"aria-orientation":this.orientation}}},render(t){return t("hr",{staticClass:"q-separator",class:this.classes,style:this.style,attrs:this.attrs,on:{...this.qListeners}})}}),fo={methods:{__getGridHeader(t){const e=!0===this.gridHeader?[t("table",{staticClass:"q-table"},[this.__getTHead(t)])]:!0===this.loading&&void 0===this.$scopedSlots.loading?this.__getProgress(t):void 0;return t("div",{staticClass:"q-table__middle"},e)},__getGridBody(t){const e=void 0!==this.$scopedSlots.item?this.$scopedSlots.item:e=>{const i=e.cols.map(e=>t("div",{staticClass:"q-table__grid-item-row"},[t("div",{staticClass:"q-table__grid-item-title"},[e.label]),t("div",{staticClass:"q-table__grid-item-value"},[e.value])]));if(!0===this.hasSelectionMode){const n=this.$scopedSlots["body-selection"],r=void 0!==n?n(e):[t(Pr,{props:{value:e.selected,color:this.color,dark:this.isDark,dense:this.dense},on:{input:(t,i)=>{this.__updateSelection([e.key],[e.row],t,i)}}})];i.unshift(t("div",{staticClass:"q-table__grid-item-row"},r),t(po,{props:{dark:this.isDark}}))}const n={staticClass:"q-table__grid-item-card"+this.cardDefaultClass,class:this.cardClass,style:this.cardStyle,on:{}};return void 0===this.qListeners["row-click"]&&void 0===this.qListeners["row-dblclick"]||(n.staticClass+=" cursor-pointer"),void 0!==this.qListeners["row-click"]&&(n.on.click=t=>{this.$emit("row-click",t,e.row,e.pageIndex)}),void 0!==this.qListeners["row-dblclick"]&&(n.on.dblclick=t=>{this.$emit("row-dblclick",t,e.row,e.pageIndex)}),t("div",{staticClass:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3",class:!0===e.selected?"q-table__grid-item--selected":""},[t("div",n,i)])};return t("div",{staticClass:"q-table__grid-content row",class:this.cardContainerClass,style:this.cardContainerStyle},this.computedRows.map((t,i)=>e(this.__getBodyScope({key:this.getRowKey(t),row:t,pageIndex:i}))))}}},mo=he.a.extend({name:"QList",mixins:[De,Cr],props:{bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},computed:{classes(){return"q-list"+(!0===this.bordered?" q-list--bordered":"")+(!0===this.dense?" q-list--dense":"")+(!0===this.separator?" q-list--separator":"")+(!0===this.isDark?" q-list--dark":"")+(!0===this.padding?" q-list--padding":"")}},render(t){return t(this.tag,{class:this.classes,on:{...this.qListeners}},Re(this,"default"))}}),go=he.a.extend({name:"QMarkupTable",mixins:[Cr,De],props:{dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:t=>["horizontal","vertical","cell","none"].includes(t)},wrapCells:Boolean},computed:{classes(){return`q-table--${this.separator}-separator`+(!0===this.isDark?" q-table--dark q-table__card--dark q-dark":"")+(!0===this.dense?" q-table--dense":"")+(!0===this.flat?" q-table--flat":"")+(!0===this.bordered?" q-table--bordered":"")+(!0===this.square?" q-table--square":"")+(!1===this.wrapCells?" q-table--no-wrap":"")}},render(t){return t("div",{staticClass:"q-markup-table q-table__container q-table__card",class:this.classes,on:{...this.qListeners}},[t("table",{staticClass:"q-table"},Re(this,"default"))])}}),vo=function(t,e,i){return t("div",{...e,staticClass:"q-table__middle"+(void 0!==e.staticClass?" "+e.staticClass:"")},[t("table",{staticClass:"q-table"},i)])};const bo={list:mo,table:go};var _o=he.a.extend({name:"QVirtualScroll",mixins:[fr,De,Js],props:{type:{type:String,default:"list",validator:t=>["list","table","__qtable"].includes(t)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},computed:{virtualScrollLength(){return this.itemsSize>=0&&void 0!==this.itemsFn?parseInt(this.itemsSize,10):Array.isArray(this.items)?this.items.length:0},virtualScrollScope(){if(0===this.virtualScrollLength)return[];const t=(t,e)=>({index:this.virtualScrollSliceRange.from+e,item:t});return void 0===this.itemsFn?this.items.slice(this.virtualScrollSliceRange.from,this.virtualScrollSliceRange.to).map(t):this.itemsFn(this.virtualScrollSliceRange.from,this.virtualScrollSliceRange.to-this.virtualScrollSliceRange.from).map(t)},classes(){return"q-virtual-scroll q-virtual-scroll"+(!0===this.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==this.scrollTarget?"":" scroll")},attrs(){return void 0!==this.scrollTarget?void 0:{tabindex:0}}},watch:{virtualScrollLength(){this.__resetVirtualScroll()},scrollTarget(){this.__unconfigureScrollTarget(),this.__configureScrollTarget()}},methods:{__getVirtualScrollEl(){return this.$el},__getVirtualScrollTarget(){return this.__scrollTarget},__configureScrollTarget(){this.__scrollTarget=On(this.$el,this.scrollTarget),this.__scrollTarget.addEventListener("scroll",this.__onVirtualScrollEvt,ci.passive)},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__scrollTarget.removeEventListener("scroll",this.__onVirtualScrollEvt,ci.passive),this.__scrollTarget=void 0)}},beforeMount(){this.__resetVirtualScroll()},mounted(){this.__configureScrollTarget()},activated(){this.__configureScrollTarget()},deactivated(){this.__unconfigureScrollTarget()},beforeDestroy(){this.__unconfigureScrollTarget()},render(t){if(void 0===this.$scopedSlots.default)return void console.error("QVirtualScroll: default scoped slot is required for rendering",this);let e=this.__padVirtualScroll(t,"list"===this.type?"div":"tbody",this.virtualScrollScope.map(this.$scopedSlots.default));return void 0!==this.$scopedSlots.before&&(e=this.$scopedSlots.before().concat(e)),e=Oe(e,this,"after"),"__qtable"===this.type?vo(t,{staticClass:this.classes},e):t(bo[this.type],{class:this.classes,attrs:this.attrs,props:this.qAttrs,on:{...this.qListeners}},e)}});function yo(t,e,i){return{transform:!0===e?`translateX(${!0===i.lang.rtl?"-":""}100%) scale3d(${-t},1,1)`:`scale3d(${t},1,1)`}}var wo=he.a.extend({name:"QLinearProgress",mixins:[De,Cr,pe({xs:2,sm:4,md:6,lg:10,xl:14})],props:{value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,instantFeedback:Boolean},computed:{motion(){return!0===this.indeterminate||!0===this.query},widthReverse(){return this.reverse!==this.query},classes(){return"q-linear-progress"+(void 0!==this.color?" text-"+this.color:"")+(!0===this.reverse||!0===this.query?" q-linear-progress--reverse":"")+(!0===this.rounded?" rounded-borders":"")},trackStyle(){return yo(void 0!==this.buffer?this.buffer:1,this.widthReverse,this.$q)},transitionSuffix(){return`with${!0===this.instantFeedback?"out":""}-transition`},trackClass(){return"q-linear-progress__track absolute-full q-linear-progress__track--"+this.transitionSuffix+" q-linear-progress__track--"+(!0===this.isDark?"dark":"light")+(void 0!==this.trackColor?" bg-"+this.trackColor:"")},modelStyle(){return yo(!0===this.motion?1:this.value,this.widthReverse,this.$q)},modelClasses(){return"q-linear-progress__model absolute-full q-linear-progress__model--"+this.transitionSuffix+` q-linear-progress__model--${!0===this.motion?"in":""}determinate`},stripeStyle(){return{width:100*this.value+"%"}},stripeClass(){return"q-linear-progress__stripe q-linear-progress__stripe--"+this.transitionSuffix+" absolute-"+(!0===this.reverse?"right":"left")},attrs(){return{role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===this.indeterminate?void 0:this.value}}},render(t){const e=[t("div",{style:this.trackStyle,class:this.trackClass}),t("div",{style:this.modelStyle,class:this.modelClasses})];return!0===this.stripe&&!1===this.motion&&e.push(t("div",{style:this.stripeStyle,class:this.stripeClass})),t("div",{style:this.sizeStyle,class:this.classes,attrs:this.attrs,on:{...this.qListeners}},Oe(e,this,"default"))}});function So(t,e){return new Date(t)-new Date(e)}var xo={props:{sortMethod:{type:Function,default(t,e,i){const n=this.colList.find(t=>t.name===e);if(void 0===n||void 0===n.field)return t;const r=!0===i?-1:1,s="function"===typeof n.field?t=>n.field(t):t=>t[n.field];return t.sort((t,e)=>{let i=s(t),o=s(e);return null===i||void 0===i?-1*r:null===o||void 0===o?1*r:void 0!==n.sort?n.sort(i,o,t,e)*r:!0===Ls(i)&&!0===Ls(o)?(i-o)*r:!0===Os(i)&&!0===Os(o)?So(i,o)*r:"boolean"===typeof i&&"boolean"===typeof o?(i-o)*r:([i,o]=[i,o].map(t=>(t+"").toLocaleString().toLowerCase()),i<o?-1*r:i===o?0:r)})}},columnSortOrder:{type:String,validator:t=>"ad"===t||"da"===t,default:"ad"}},computed:{columnToSort(){const{sortBy:t}=this.computedPagination;if(t)return this.colList.find(e=>e.name===t)||null}},methods:{sort(t){let e=this.columnSortOrder;if(!0===Ps(t))t.sortOrder&&(e=t.sortOrder),t=t.name;else{const i=this.colList.find(e=>e.name===t);void 0!==i&&i.sortOrder&&(e=i.sortOrder)}let{sortBy:i,descending:n}=this.computedPagination;i!==t?(i=t,n="da"===e):!0===this.binaryStateSort?n=!n:!0===n?"ad"===e?i=null:n=!1:"ad"===e?n=!0:i=null,this.setPagination({sortBy:i,descending:n,page:1})}}},Co={props:{filter:[String,Object],filterMethod:{type:Function,default(t,e,i=this.computedCols,n=this.getCellValue){const r=e?e.toLowerCase():"";return t.filter(t=>i.some(e=>{const i=n(e,t)+"",s="undefined"===i||"null"===i?"":i.toLowerCase();return-1!==s.indexOf(r)}))}}},watch:{filter:{handler(){this.$nextTick(()=>{this.setPagination({page:1},!0)})},deep:!0}}};function ko(t,e){for(const i in e)if(e[i]!==t[i])return!1;return!0}function To(t){return t.page<1&&(t.page=1),void 0!==t.rowsPerPage&&t.rowsPerPage<1&&(t.rowsPerPage=0),t}var qo={props:{pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]}},computed:{computedPagination(){const t=void 0!==this.qListeners["update:pagination"]?{...this.innerPagination,...this.pagination}:this.innerPagination;return To(t)},firstRowIndex(){const{page:t,rowsPerPage:e}=this.computedPagination;return(t-1)*e},lastRowIndex(){const{page:t,rowsPerPage:e}=this.computedPagination;return t*e},isFirstPage(){return 1===this.computedPagination.page},pagesNumber(){return 0===this.computedPagination.rowsPerPage?1:Math.max(1,Math.ceil(this.computedRowsNumber/this.computedPagination.rowsPerPage))},isLastPage(){return 0===this.lastRowIndex||this.computedPagination.page>=this.pagesNumber},computedRowsPerPageOptions(){const t=this.rowsPerPageOptions.includes(this.innerPagination.rowsPerPage)?this.rowsPerPageOptions:[this.innerPagination.rowsPerPage].concat(this.rowsPerPageOptions);return t.map(t=>({label:0===t?this.$q.lang.table.allRows:""+t,value:t}))}},watch:{pagesNumber(t,e){if(t===e)return;const i=this.computedPagination.page;t&&!i?this.setPagination({page:1}):t<i&&this.setPagination({page:t})}},methods:{__sendServerRequest(t){this.requestServerInteraction({pagination:t,filter:this.filter})},setPagination(t,e){const i=To({...this.computedPagination,...t});ko(this.computedPagination,i)?!0===this.isServerSide&&!0===e&&this.__sendServerRequest(i):!0!==this.isServerSide?void 0!==this.pagination&&void 0!==this.qListeners["update:pagination"]?this.$emit("update:pagination",i):this.innerPagination=i:this.__sendServerRequest(i)},firstPage(){this.setPagination({page:1})},prevPage(){const{page:t}=this.computedPagination;t>1&&this.setPagination({page:t-1})},nextPage(){const{page:t,rowsPerPage:e}=this.computedPagination;this.lastRowIndex>0&&t*e<this.computedRowsNumber&&this.setPagination({page:t+1})},lastPage(){this.setPagination({page:this.pagesNumber})}},created(){void 0!==this.qListeners["update:pagination"]&&this.$emit("update:pagination",{...this.computedPagination})}},Eo=(i("76d6"),{props:{selection:{type:String,default:"none",validator:t=>["single","multiple","none"].includes(t)},selected:{type:Array,default:()=>[]}},computed:{selectedKeys(){const t={};return this.selected.map(this.getRowKey).forEach(e=>{t[e]=!0}),t},hasSelectionMode(){return"none"!==this.selection},singleSelection(){return"single"===this.selection},multipleSelection(){return"multiple"===this.selection},allRowsSelected(){return this.computedRows.length>0&&this.computedRows.every(t=>!0===this.selectedKeys[this.getRowKey(t)])},someRowsSelected(){return!0!==this.allRowsSelected&&this.computedRows.some(t=>!0===this.selectedKeys[this.getRowKey(t)])},rowsSelectedNumber(){return this.selected.length}},methods:{isRowSelected(t){return!0===this.selectedKeys[t]},clearSelection(){this.$emit("update:selected",[])},__updateSelection(t,e,i,n){this.$emit("selection",{rows:e,added:i,keys:t,evt:n});const r=!0===this.singleSelection?!0===i?e:[]:!0===i?this.selected.concat(e):this.selected.filter(e=>!1===t.includes(this.getRowKey(e)));this.$emit("update:selected",r)}}});function Mo(t){return Array.isArray(t)?t.slice():[]}var Io={props:{expanded:Array},data(){return{innerExpanded:Mo(this.expanded)}},watch:{expanded(t){this.innerExpanded=Mo(t)}},methods:{isRowExpanded(t){return this.innerExpanded.includes(t)},setExpanded(t){void 0!==this.expanded?this.$emit("update:expanded",t):this.innerExpanded=t},__updateExpanded(t,e){const i=this.innerExpanded.slice(),n=i.indexOf(t);!0===e?-1===n&&(i.push(t),this.setExpanded(i)):-1!==n&&(i.splice(n,1),this.setExpanded(i))}}},Ao={props:{visibleColumns:Array},computed:{colList(){if(void 0!==this.columns)return this.columns;const t=this.data[0];return void 0!==t?Object.keys(t).map(e=>({name:e,label:e.toUpperCase(),field:e,align:Ls(t[e])?"right":"left",sortable:!0})):[]},computedCols(){const{sortBy:t,descending:e}=this.computedPagination,i=void 0!==this.visibleColumns?this.colList.filter(t=>!0===t.required||!0===this.visibleColumns.includes(t.name)):this.colList;return i.map(i=>{const n=i.align||"right",r="text-"+n;return{...i,align:n,__iconClass:"q-table__sort-icon q-table__sort-icon--"+n,__thClass:r+(void 0!==i.headerClasses?" "+i.headerClasses:"")+(!0===i.sortable?" sortable":"")+(i.name===t?" sorted "+(!0===e?"sort-desc":""):""),__tdStyle:void 0!==i.style?"function"!==typeof i.style?()=>i.style:i.style:()=>null,__tdClass:void 0!==i.classes?"function"!==typeof i.classes?()=>r+" "+i.classes:t=>r+" "+i.classes(t):()=>r}})},computedColsMap(){const t={};return this.computedCols.forEach(e=>{t[e.name]=e}),t},computedColspan(){return void 0!==this.tableColspan?this.tableColspan:this.computedCols.length+(!0===this.hasSelectionMode?1:0)}}};let No=0;var $o={props:{fullscreen:Boolean,noRouteFullscreenExit:Boolean},data(){return{inFullscreen:!1}},watch:{$route(){!0!==this.noRouteFullscreenExit&&this.exitFullscreen()},fullscreen(t){this.inFullscreen!==t&&this.toggleFullscreen()},inFullscreen(t){this.$emit("update:fullscreen",t),this.$emit("fullscreen",t)}},methods:{toggleFullscreen(){!0===this.inFullscreen?this.exitFullscreen():this.setFullscreen()},setFullscreen(){!0!==this.inFullscreen&&(this.inFullscreen=!0,this.container=this.$el.parentNode,this.container.replaceChild(this.fullscreenFillerNode,this.$el),document.body.appendChild(this.$el),No++,1===No&&document.body.classList.add("q-body--fullscreen-mixin"),this.__historyFullscreen={handler:this.exitFullscreen},Di.add(this.__historyFullscreen))},exitFullscreen(){!0===this.inFullscreen&&(void 0!==this.__historyFullscreen&&(Di.remove(this.__historyFullscreen),this.__historyFullscreen=void 0),this.container.replaceChild(this.$el,this.fullscreenFillerNode),this.inFullscreen=!1,No=Math.max(0,No-1),0===No&&(document.body.classList.remove("q-body--fullscreen-mixin"),void 0!==this.$el.scrollIntoView&&setTimeout(()=>{this.$el.scrollIntoView()})))}},beforeMount(){this.fullscreenFillerNode=document.createElement("span")},mounted(){!0===this.fullscreen&&this.setFullscreen()},beforeDestroy(){this.exitFullscreen()}};const Do={};Zs.forEach(t=>{Do[t]={}});var Ro=he.a.extend({name:"QTable",mixins:[Cr,De,$o,Ir,Br,jr,co,fo,xo,Co,qo,Eo,Io,Ao],props:{data:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,binaryStateSort:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:t=>["horizontal","vertical","cell","none"].includes(t)},wrapCells:Boolean,virtualScroll:Boolean,...Do,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object]},data(){return{innerPagination:Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:this.rowsPerPageOptions.length>0?this.rowsPerPageOptions[0]:5},this.pagination)}},watch:{needsReset(){!0===this.hasVirtScroll&&void 0!==this.$refs.virtScroll&&this.$refs.virtScroll.reset()}},computed:{getRowKey(){return"function"===typeof this.rowKey?this.rowKey:t=>t[this.rowKey]},hasVirtScroll(){return!0!==this.grid&&!0===this.virtualScroll},needsReset(){return["tableStyle","tableClass","tableHeaderStyle","tableHeaderClass","__containerClass"].map(t=>this[t]).join(";")},filteredSortedRows(){let t=this.data;if(!0===this.isServerSide||0===t.length)return t;const{sortBy:e,descending:i}=this.computedPagination;return this.filter&&(t=this.filterMethod(t,this.filter,this.computedCols,this.getCellValue)),void 0!==this.columnToSort&&(t=this.sortMethod(this.data===t?t.slice():t,e,i)),t},filteredSortedRowsNumber(){return this.filteredSortedRows.length},computedRows(){let t=this.filteredSortedRows;if(!0===this.isServerSide)return t;const{rowsPerPage:e}=this.computedPagination;return 0!==e&&(0===this.firstRowIndex&&this.data!==t?t.length>this.lastRowIndex&&(t=t.slice(0,this.lastRowIndex)):t=t.slice(this.firstRowIndex,this.lastRowIndex)),t},computedRowsNumber(){return!0===this.isServerSide?this.computedPagination.rowsNumber||0:this.filteredSortedRowsNumber},nothingToDisplay(){return 0===this.computedRows.length},isServerSide(){return void 0!==this.computedPagination.rowsNumber},cardDefaultClass(){return" q-table__card"+(!0===this.isDark?" q-table__card--dark q-dark":"")+(!0===this.square?" q-table--square":"")+(!0===this.flat?" q-table--flat":"")+(!0===this.bordered?" q-table--bordered":"")},__containerClass(){return`q-table__container q-table--${this.separator}-separator column no-wrap`+(!0===this.grid?" q-table--grid":this.cardDefaultClass)+(!0===this.isDark?" q-table--dark":"")+(!0===this.dense?" q-table--dense":"")+(!1===this.wrapCells?" q-table--no-wrap":"")+(!0===this.inFullscreen?" fullscreen scroll":"")},containerClass(){return this.__containerClass+(!0===this.loading?" q-table--loading":"")},virtProps(){const t={};return Zs.forEach(e=>{t[e]=this[e]}),void 0===t.virtualScrollItemSize&&(t.virtualScrollItemSize=!0===this.dense?28:48),t}},render(t){const e=[this.__getTopDiv(t)],i={staticClass:this.containerClass};return!0===this.grid?e.push(this.__getGridHeader(t)):Object.assign(i,{class:this.cardClass,style:this.cardStyle}),e.push(this.__getBody(t),this.__getBottomDiv(t)),!0===this.loading&&void 0!==this.$scopedSlots.loading&&e.push(this.$scopedSlots.loading()),t("div",i,e)},methods:{requestServerInteraction(t={}){this.$nextTick(()=>{this.$emit("request",{pagination:t.pagination||this.computedPagination,filter:t.filter||this.filter,getCellValue:this.getCellValue})})},resetVirtualScroll(){!0===this.hasVirtScroll&&this.$refs.virtScroll.reset()},__getBody(t){if(!0===this.grid)return this.__getGridBody(t);const e=!0!==this.hideHeader?this.__getTHead(t):null;if(!0===this.hasVirtScroll){const i=this.$scopedSlots["top-row"],n=this.$scopedSlots["bottom-row"],r={default:this.__getVirtualTBodyTR(t)};if(void 0!==i){const n=t("tbody",i({cols:this.computedCols}));r.before=null===e?()=>[n]:()=>[e].concat(n)}else null!==e&&(r.before=()=>e);return void 0!==n&&(r.after=()=>t("tbody",n({cols:this.computedCols}))),t(_o,{ref:"virtScroll",props:{...this.virtProps,items:this.computedRows,type:"__qtable",tableColspan:this.computedColspan},on:Ae(this,"vs",{"virtual-scroll":this.__onVScroll}),class:this.tableClass,style:this.tableStyle,scopedSlots:r})}return vo(t,{staticClass:"scroll",class:this.tableClass,style:this.tableStyle},[e,this.__getTBody(t)])},scrollTo(t,e){if(void 0!==this.$refs.virtScroll)return void this.$refs.virtScroll.scrollTo(t,e);t=parseInt(t,10);const i=this.$el.querySelector(`tbody tr:nth-of-type(${t+1})`);if(null!==i){const e=this.$el.querySelector(".q-table__middle.scroll"),n=i.offsetTop-this.virtualScrollStickySizeStart,r=n<e.scrollTop?"decrease":"increase";e.scrollTop=n,this.$emit("virtual-scroll",{index:t,from:0,to:this.pagination.rowsPerPage-1,direction:r})}},__onVScroll(t){this.$emit("virtual-scroll",t)},__getProgress(t){return[t(wo,{staticClass:"q-table__linear-progress",props:{color:this.color,dark:this.isDark,indeterminate:!0,trackColor:"transparent"}})]}}}),Po=he.a.extend({name:"QAvatar",mixins:[De,fe],props:{fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},computed:{classes(){return{["bg-"+this.color]:this.color,[`text-${this.textColor} q-chip--colored`]:this.textColor,"q-avatar--square":this.square,"rounded-borders":this.rounded}},contentStyle(){if(this.fontSize)return{fontSize:this.fontSize}}},render(t){const e=void 0!==this.icon?[t(Je,{props:{name:this.icon}})]:void 0;return t("div",{staticClass:"q-avatar",style:this.sizeStyle,class:this.classes,on:{...this.qListeners}},[t("div",{staticClass:"q-avatar__content row flex-center overflow-hidden",style:this.contentStyle},Le(e,this,"default"))])}});function Oo(t,e,i,n){const r=[];return t.forEach(t=>{!0===n(t)?r.push(t):e.push({failedPropValidation:i,file:t})}),r}function Lo(t){t&&t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),vi(t)}Boolean;const Bo={computed:{formDomProps(){if("file"===this.type)try{const t="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(this.value)===this.value&&("length"in this.value?Array.from(this.value):[this.value]).forEach(e=>{t.items.add(e)}),{files:t.files}}catch(ap){return{files:void 0}}}}},jo={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},zo={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},Fo=Object.keys(zo);Fo.forEach(t=>{zo[t].regex=new RegExp(zo[t].pattern)});const Vo=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Fo.join("")+"])|(.)","g"),Ho=/[.*+?^${}()|[\]\\]/g,Uo=String.fromCharCode(1);var Qo={props:{mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean},watch:{type(){this.__updateMaskInternals()},autogrow(){this.__updateMaskInternals()},mask(t){if(void 0!==t)this.__updateMaskValue(this.innerValue,!0);else{const t=this.__unmask(this.innerValue);this.__updateMaskInternals(),this.value!==t&&this.$emit("input",t)}},fillMask(){!0===this.hasMask&&this.__updateMaskValue(this.innerValue,!0)},reverseFillMask(){!0===this.hasMask&&this.__updateMaskValue(this.innerValue,!0)},unmaskedValue(){!0===this.hasMask&&this.__updateMaskValue(this.innerValue)}},methods:{__getInitialMaskedValue(){if(this.__updateMaskInternals(),!0===this.hasMask){const t=this.__mask(this.__unmask(this.value));return!1!==this.fillMask?this.__fillWithMask(t):t}return this.value},__getPaddedMaskMarked(t){if(t<this.maskMarked.length)return this.maskMarked.slice(-t);let e=this.maskMarked,i="";const n=e.indexOf(Uo);if(n>-1){for(let n=t-e.length;n>0;n--)i+=Uo;e=e.slice(0,n)+i+e.slice(n)}return e},__updateMaskInternals(){if(this.hasMask=void 0!==this.mask&&this.mask.length>0&&(!0===this.autogrow||["textarea","text","search","url","tel","password"].includes(this.type)),!1===this.hasMask)return this.computedUnmask=void 0,this.maskMarked="",void(this.maskReplaced="");const t=void 0===jo[this.mask]?this.mask:jo[this.mask],e="string"===typeof this.fillMask&&this.fillMask.length>0?this.fillMask.slice(0,1):"_",i=e.replace(Ho,"\\$&"),n=[],r=[],s=[];let o=!0===this.reverseFillMask,a="",l="";t.replace(Vo,(t,e,i,c,u)=>{if(void 0!==c){const t=zo[c];s.push(t),l=t.negate,!0===o&&(r.push("(?:"+l+"+)?("+t.pattern+"+)?(?:"+l+"+)?("+t.pattern+"+)?"),o=!1),r.push("(?:"+l+"+)?("+t.pattern+")?")}else if(void 0!==i)a="\\"+("\\"===i?"":i),s.push(i),n.push("([^"+a+"]+)?"+a+"?");else{const t=void 0!==e?e:u;a="\\"===t?"\\\\\\\\":t.replace(Ho,"\\\\$&"),s.push(t),n.push("([^"+a+"]+)?"+a+"?")}});const c=new RegExp("^"+n.join("")+"("+(""===a?".":"[^"+a+"]")+"+)?"+(""===a?"":"["+a+"]*")+"$"),u=r.length-1,h=r.map((t,e)=>0===e&&!0===this.reverseFillMask?new RegExp("^"+i+"*"+t):e===u?new RegExp("^"+t+"("+(""===l?".":l)+"+)?"+(!0===this.reverseFillMask?"$":i+"*")):new RegExp("^"+t));this.computedMask=s,this.computedUnmask=t=>{const e=c.exec(!0===this.reverseFillMask?t:t.slice(0,s.length+1));null!==e&&(t=e.slice(1).join(""));const i=[],n=h.length;for(let r=0,s=t;r<n;r++){const t=h[r].exec(s);if(null===t)break;s=s.slice(t.shift().length),i.push(...t)}return i.length>0?i.join(""):t},this.maskMarked=s.map(t=>"string"===typeof t?t:Uo).join(""),this.maskReplaced=this.maskMarked.split(Uo).join(e)},__updateMaskValue(t,e,i){const n=this.$refs.input,r=n.selectionEnd,s=n.value.length-r,o=this.__unmask(t);!0===e&&this.__updateMaskInternals();const a=this.__mask(o),l=!1!==this.fillMask?this.__fillWithMask(a):a,c=this.innerValue!==l;n.value!==l&&(n.value=l),!0===c&&(this.innerValue=l),document.activeElement===n&&this.$nextTick(()=>{if(l!==this.maskReplaced)if("insertFromPaste"!==i||!0===this.reverseFillMask)if(["deleteContentBackward","deleteContentForward"].indexOf(i)>-1){const t=!0===this.reverseFillMask?0===r?l.length>a.length?1:0:Math.max(0,l.length-(l===this.maskReplaced?0:Math.min(a.length,s)+1))+1:r;n.setSelectionRange(t,t,"forward")}else if(!0===this.reverseFillMask)if(!0===c){const t=Math.max(0,l.length-(l===this.maskReplaced?0:Math.min(a.length,s+1)));1===t&&1===r?n.setSelectionRange(t,t,"forward"):this.__moveCursorRightReverse(n,t)}else{const t=l.length-s;n.setSelectionRange(t,t,"backward")}else if(!0===c){const t=Math.max(0,this.maskMarked.indexOf(Uo),Math.min(a.length,r)-1);this.__moveCursorRight(n,t)}else{const t=r-1;this.__moveCursorRight(n,t)}else{const t=n.selectionEnd;let e=r-1;for(let i=this.__pastedTextStart;i<=e&&i<t;i++)this.maskMarked[i]!==Uo&&e++;this.__moveCursorRight(n,e)}else{const t=!0===this.reverseFillMask?this.maskReplaced.length:0;n.setSelectionRange(t,t,"forward")}});const u=!0===this.unmaskedValue?this.__unmask(l):l;String(this.value)!==u&&this.__emitValue(u,!0)},__moveCursorForPaste(t,e,i){const n=this.__mask(this.__unmask(t.value));e=Math.max(0,this.maskMarked.indexOf(Uo),Math.min(n.length,e)),this.__pastedTextStart=e,t.setSelectionRange(e,i,"forward")},__moveCursorLeft(t,e){const i=-1===this.maskMarked.slice(e-1).indexOf(Uo);let n=Math.max(0,e-1);for(;n>=0;n--)if(this.maskMarked[n]===Uo){e=n,!0===i&&e++;break}if(n<0&&void 0!==this.maskMarked[e]&&this.maskMarked[e]!==Uo)return this.__moveCursorRight(t,0);e>=0&&t.setSelectionRange(e,e,"backward")},__moveCursorRight(t,e){const i=t.value.length;let n=Math.min(i,e+1);for(;n<=i;n++){if(this.maskMarked[n]===Uo){e=n;break}this.maskMarked[n-1]===Uo&&(e=n)}if(n>i&&void 0!==this.maskMarked[e-1]&&this.maskMarked[e-1]!==Uo)return this.__moveCursorLeft(t,i);t.setSelectionRange(e,e,"forward")},__moveCursorLeftReverse(t,e){const i=this.__getPaddedMaskMarked(t.value.length);let n=Math.max(0,e-1);for(;n>=0;n--){if(i[n-1]===Uo){e=n;break}if(i[n]===Uo&&(e=n,0===n))break}if(n<0&&void 0!==i[e]&&i[e]!==Uo)return this.__moveCursorRightReverse(t,0);e>=0&&t.setSelectionRange(e,e,"backward")},__moveCursorRightReverse(t,e){const i=t.value.length,n=this.__getPaddedMaskMarked(i),r=-1===n.slice(0,e+1).indexOf(Uo);let s=Math.min(i,e+1);for(;s<=i;s++)if(n[s-1]===Uo){e=s,e>0&&!0===r&&e--;break}if(s>i&&void 0!==n[e-1]&&n[e-1]!==Uo)return this.__moveCursorLeftReverse(t,i);t.setSelectionRange(e,e,"forward")},__onMaskedClick(t){void 0!==this.qListeners.click&&this.$emit("click",t),this.__selectionAnchor=void 0},__onMaskedKeydown(t){if(void 0!==this.qListeners.keydown&&this.$emit("keydown",t),!0===Ci(t))return;const e=this.$refs.input,i=e.selectionStart,n=e.selectionEnd;if(t.shiftKey||(this.__selectionAnchor=void 0),37===t.keyCode||39===t.keyCode){t.shiftKey&&void 0===this.__selectionAnchor&&(this.__selectionAnchor="forward"===e.selectionDirection?i:n);const r=this["__moveCursor"+(39===t.keyCode?"Right":"Left")+(!0===this.reverseFillMask?"Reverse":"")];if(t.preventDefault(),r(e,this.__selectionAnchor===i?n:i),t.shiftKey){const t=this.__selectionAnchor,i=e.selectionStart;e.setSelectionRange(Math.min(t,i),Math.max(t,i),"forward")}}else 8===t.keyCode&&!0!==this.reverseFillMask&&i===n?(this.__moveCursorLeft(e,i),e.setSelectionRange(e.selectionStart,n,"backward")):46===t.keyCode&&!0===this.reverseFillMask&&i===n&&(this.__moveCursorRightReverse(e,n),e.setSelectionRange(i,e.selectionEnd,"forward"));this.$emit("keydown",t)},__mask(t){if(void 0===t||null===t||""===t)return"";if(!0===this.reverseFillMask)return this.__maskReverse(t);const e=this.computedMask;let i=0,n="";for(let r=0;r<e.length;r++){const s=t[i],o=e[r];if("string"===typeof o)n+=o,s===o&&i++;else{if(void 0===s||!o.regex.test(s))return n;n+=void 0!==o.transform?o.transform(s):s,i++}}return n},__maskReverse(t){const e=this.computedMask,i=this.maskMarked.indexOf(Uo);let n=t.length-1,r="";for(let s=e.length-1;s>=0&&n>-1;s--){const o=e[s];let a=t[n];if("string"===typeof o)r=o+r,a===o&&n--;else{if(void 0===a||!o.regex.test(a))return r;do{r=(void 0!==o.transform?o.transform(a):a)+r,n--,a=t[n]}while(i===s&&void 0!==a&&o.regex.test(a))}}return r},__unmask(t){return"string"!==typeof t||void 0===this.computedUnmask?"number"===typeof t?this.computedUnmask(""+t):t:this.computedUnmask(t)},__fillWithMask(t){return this.maskReplaced.length-t.length<=0?t:!0===this.reverseFillMask&&t.length>0?this.maskReplaced.slice(0,-t.length)+t:t+this.maskReplaced.slice(t.length)}}},Wo=he.a.extend({name:"QInput",mixins:[is,Qo,ro,Nr,Bo,De],props:{value:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},watch:{value(t){if(!0===this.hasMask){if(!0===this.stopValueWatcher&&(this.stopValueWatcher=!1,String(t)===this.emitCachedValue))return;this.__updateMaskValue(t)}else this.innerValue!==t&&(this.innerValue=t,"number"===this.type&&!0===this.hasOwnProperty("tempValue")&&(!0===this.typedNumber?this.typedNumber=!1:delete this.tempValue));!0===this.autogrow&&this.$nextTick(this.__adjustHeight)},type(){this.$refs.input&&(this.$refs.input.value=this.value)},autogrow(t){if(!0===t)this.$nextTick(this.__adjustHeight);else if(this.qAttrs.rows>0&&void 0!==this.$refs.input){const t=this.$refs.input;t.style.height="auto"}},dense(){!0===this.autogrow&&this.$nextTick(this.__adjustHeight)}},data(){return{innerValue:this.__getInitialMaskedValue()}},computed:{isTextarea(){return"textarea"===this.type||!0===this.autogrow},isTypeText(){return!0===this.isTextarea||["text","search","url","tel","password"].includes(this.type)},fieldClass(){return"q-"+(!0===this.isTextarea?"textarea":"input")+(!0===this.autogrow?" q-textarea--autogrow":"")},hasShadow(){return"file"!==this.type&&"string"===typeof this.shadowText&&this.shadowText.length>0},onEvents(){const t={...this.qListeners,input:this.__onInput,paste:this.__onPaste,change:this.__onChange,blur:this.__onFinishEditing,focus:mi};return t.compositionstart=t.compositionupdate=t.compositionend=this.__onComposition,!0===this.hasMask&&(t.keydown=this.__onMaskedKeydown,t.click=this.__onMaskedClick),!0===this.autogrow&&(t.animationend=this.__onAnimationend),t},inputAttrs(){const t={tabindex:0,"data-autofocus":this.autofocus||void 0,rows:"textarea"===this.type?6:void 0,"aria-label":this.label,name:this.nameProp,...this.qAttrs,id:this.targetUid,type:this.type,maxlength:this.maxlength,disabled:!0===this.disable,readonly:!0===this.readonly};return!0===this.autogrow&&(t.rows=1),t}},methods:{focus(){qn(()=>{const t=document.activeElement;void 0===this.$refs.input||this.$refs.input===t||null!==t&&t.id===this.targetUid||this.$refs.input.focus({preventScroll:!0})})},select(){void 0!==this.$refs.input&&this.$refs.input.select()},getNativeElement(){return this.$refs.input},__onPaste(t){if(!0===this.hasMask&&!0!==this.reverseFillMask){const e=t.target;this.__moveCursorForPaste(e,e.selectionStart,e.selectionEnd)}this.$emit("paste",t)},__onInput(t){if(!t||!t.target||!0===t.target.qComposing)return;if("file"===this.type)return void this.$emit("input",t.target.files);const e=t.target.value;if(!0===this.hasMask)this.__updateMaskValue(e,!1,t.inputType);else if(this.__emitValue(e),!0===this.isTypeText&&t.target===document.activeElement){const{selectionStart:i,selectionEnd:n}=t.target;void 0!==i&&void 0!==n&&this.$nextTick(()=>{t.target===document.activeElement&&0===e.indexOf(t.target.value)&&t.target.setSelectionRange(i,n)})}!0===this.autogrow&&this.__adjustHeight()},__onAnimationend(t){void 0!==this.qListeners.animationend&&this.$emit("animationend",t),this.__adjustHeight()},__emitValue(t,e){this.emitValueFn=()=>{"number"!==this.type&&!0===this.hasOwnProperty("tempValue")&&delete this.tempValue,this.value!==t&&this.emitCachedValue!==t&&(this.emitCachedValue=t,!0===e&&(this.stopValueWatcher=!0),this.$emit("input",t),this.$nextTick(()=>{this.emitCachedValue===t&&(this.emitCachedValue=NaN)})),this.emitValueFn=void 0},"number"===this.type&&(this.typedNumber=!0,this.tempValue=t),void 0!==this.debounce?(clearTimeout(this.emitTimer),this.tempValue=t,this.emitTimer=setTimeout(this.emitValueFn,this.debounce)):this.emitValueFn()},__adjustHeight(){requestAnimationFrame(()=>{const t=this.$refs.input;if(void 0!==t){const e=t.parentNode.style,{scrollTop:i}=t,{overflowY:n,maxHeight:r}=!0===this.$q.platform.is.firefox?{}:window.getComputedStyle(t),s=void 0!==n&&"scroll"!==n;!0===s&&(t.style.overflowY="hidden"),e.marginBottom=t.scrollHeight-1+"px",t.style.height="1px",t.style.height=t.scrollHeight+"px",!0===s&&(t.style.overflowY=parseInt(r,10)<t.scrollHeight?"auto":"hidden"),e.marginBottom="",t.scrollTop=i}})},__onChange(t){this.__onComposition(t),clearTimeout(this.emitTimer),void 0!==this.emitValueFn&&this.emitValueFn(),this.$emit("change",t)},__onFinishEditing(t){void 0!==t&&mi(t),clearTimeout(this.emitTimer),void 0!==this.emitValueFn&&this.emitValueFn(),this.typedNumber=!1,this.stopValueWatcher=!1,delete this.tempValue,"file"!==this.type&&setTimeout(()=>{void 0!==this.$refs.input&&(this.$refs.input.value=void 0!==this.innerValue?this.innerValue:"")})},__getCurValue(){return!0===this.hasOwnProperty("tempValue")?this.tempValue:void 0!==this.innerValue?this.innerValue:""},__getShadowControl(t){return t("div",{staticClass:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===this.isTextarea?"":" text-no-wrap")},[t("span",{staticClass:"invisible"},this.__getCurValue()),t("span",this.shadowText)])},__getControl(t){return t(!0===this.isTextarea?"textarea":"input",{ref:"input",staticClass:"q-field__native q-placeholder",style:this.inputStyle,class:this.inputClass,attrs:this.inputAttrs,on:this.onEvents,domProps:"file"!==this.type?{value:this.__getCurValue()}:this.formDomProps})}},created(){this.emitCachedValue=NaN},mounted(){!0===this.autogrow&&this.__adjustHeight()},beforeDestroy(){this.__onFinishEditing()}});function Yo(t,e){return[!0,!1].includes(t)?t:e}var Ko=he.a.extend({name:"QPagination",mixins:[Cr,De],props:{value:{type:Number,required:!0},min:{type:[Number,String],default:1},max:{type:[Number,String],required:!0},maxPages:{type:[Number,String],default:0,validator:t=>("string"===typeof t?parseInt(t,10):t)>=0},inputStyle:[Array,String,Object],inputClass:[Array,String,Object],size:String,disable:Boolean,input:Boolean,iconPrev:String,iconNext:String,iconFirst:String,iconLast:String,toFn:Function,boundaryLinks:{type:Boolean,default:null},boundaryNumbers:{type:Boolean,default:null},directionLinks:{type:Boolean,default:null},ellipses:{type:Boolean,default:null},ripple:{type:[Boolean,Object],default:null},round:Boolean,rounded:Boolean,flat:Boolean,outline:Boolean,unelevated:Boolean,push:Boolean,glossy:Boolean,color:{type:String,default:"primary"},textColor:String,activeDesign:{type:String,default:"",values:t=>""===t||un.includes(t)},activeColor:String,activeTextColor:String,padding:{type:String,default:"3px 2px"}},data(){return{newPage:null}},watch:{min(){this.model=this.value},max(){this.model=this.value}},computed:{model:{get(){return this.value},set(t){if(t=parseInt(t,10),this.disable||isNaN(t))return;const e=js(t,this.__min,this.__max);this.$emit("input",e)}},inputPlaceholder(){return this.model+" / "+this.__max},__min(){return parseInt(this.min,10)},__max(){return parseInt(this.max,10)},__maxPages(){return parseInt(this.maxPages,10)},__boundaryLinks(){return Yo(this.boundaryLinks,this.input)},__boundaryNumbers(){return Yo(this.boundaryNumbers,!this.input)},__directionLinks(){return Yo(this.directionLinks,this.input)},__ellipses(){return Yo(this.ellipses,!this.input)},__btnDesign(){return hn(this,"flat")},__btnActiveDesign(){const t={[this.__btnDesign]:!1};return""!==this.activeDesign&&(t[this.activeDesign]=!0),t},icons(){const t=[this.iconFirst||this.$q.iconSet.pagination.first,this.iconPrev||this.$q.iconSet.pagination.prev,this.iconNext||this.$q.iconSet.pagination.next,this.iconLast||this.$q.iconSet.pagination.last];return!0===this.$q.lang.rtl?t.reverse():t},attrs(){const t={role:"navigation"};return!0===this.disable&&(t["aria-disabled"]="true"),t},btnProps(){return{[this.__btnDesign]:!0,round:this.round,rounded:this.rounded,padding:this.padding,color:this.color,textColor:this.textColor,size:this.size,ripple:null===this.ripple||this.ripple}},activeBtnProps(){return{...this.__btnActiveDesign,color:this.activeColor||this.color,textColor:this.activeTextColor||this.textColor}},btnConfig(){let t=Math.max(this.__maxPages,1+(this.__ellipses?2:0)+(this.__boundaryNumbers?2:0));const e={pgFrom:this.__min,pgTo:this.__max,ellipsesStart:!1,ellipsesEnd:!1,boundaryStart:!1,boundaryEnd:!1,marginalStyle:{minWidth:Math.max(2,String(this.__max).length)+"em"}};return this.__maxPages&&t<this.__max-this.__min+1&&(t=1+2*Math.floor(t/2),e.pgFrom=Math.max(this.__min,Math.min(this.__max-t+1,this.value-Math.floor(t/2))),e.pgTo=Math.min(this.__max,e.pgFrom+t-1),this.__boundaryNumbers&&(e.boundaryStart=!0,e.pgFrom++),this.__ellipses&&e.pgFrom>this.__min+(this.__boundaryNumbers?1:0)&&(e.ellipsesStart=!0,e.pgFrom++),this.__boundaryNumbers&&(e.boundaryEnd=!0,e.pgTo--),this.__ellipses&&e.pgTo<this.__max-(this.__boundaryNumbers?1:0)&&(e.ellipsesEnd=!0,e.pgTo--)),e},inputEvents(){const t=()=>{this.model=this.newPage,this.newPage=null};return{input:t=>{this.newPage=t},keyup:e=>{!0===ki(e,13)&&t()},blur:t}}},methods:{set(t){this.model=t},setByOffset(t){this.model=this.model+t},__getBtn(t,e,i,n,r){return e.props={...this.btnProps,...i},e.attrs={"aria-label":n,"aria-current":"false",...e.attrs},!0===r&&(Object.assign(e.props,this.activeBtnProps),e.attrs["aria-current"]="true"),void 0!==n&&(void 0!==this.toFn?e.props.to=this.toFn(n):e.on={click:()=>{this.set(n)}}),t(bn,e)}},render(t){const e=[],i=[];let n;if(!0===this.__boundaryLinks&&(e.push(this.__getBtn(t,{key:"bls"},{disable:this.disable||this.value<=this.__min,icon:this.icons[0]},this.__min)),i.unshift(this.__getBtn(t,{key:"ble"},{disable:this.disable||this.value>=this.__max,icon:this.icons[3]},this.__max))),!0===this.__directionLinks&&(e.push(this.__getBtn(t,{key:"bdp"},{disable:this.disable||this.value<=this.__min,icon:this.icons[1]},this.value-1)),i.unshift(this.__getBtn(t,{key:"bdn"},{disable:this.disable||this.value>=this.__max,icon:this.icons[2]},this.value+1))),!0!==this.input){n=[];const{pgFrom:r,pgTo:s,marginalStyle:o}=this.btnConfig;if(!0===this.btnConfig.boundaryStart){const i=this.__min===this.value;e.push(this.__getBtn(t,{key:"bns",style:o},{disable:this.disable,label:this.__min},this.__min,i))}if(!0===this.btnConfig.boundaryEnd){const e=this.__max===this.value;i.unshift(this.__getBtn(t,{key:"bne",style:o},{disable:this.disable,label:this.__max},this.__max,e))}!0===this.btnConfig.ellipsesStart&&e.push(this.__getBtn(t,{key:"bes",style:o},{disable:this.disable,label:"…",ripple:!1},r-1)),!0===this.btnConfig.ellipsesEnd&&i.unshift(this.__getBtn(t,{key:"bee",style:o},{disable:this.disable,label:"…",ripple:!1},s+1));for(let e=r;e<=s;e++)n.push(this.__getBtn(t,{key:"bpg"+e,style:o},{disable:this.disable,label:e},e,e===this.value))}return t("div",{staticClass:"q-pagination row no-wrap items-center",class:{disabled:this.disable},attrs:this.attrs,on:{...this.qListeners}},[t("div",{staticClass:"q-pagination__content row no-wrap items-center"},[...e,t("div",{staticClass:"q-pagination__middle row justify-center",on:!0===this.input?Ae(this,"stop",{input:mi}):null},!0===this.input?[t(Wo,{staticClass:"inline",style:{width:this.inputPlaceholder.length/1.5+"em"},props:{type:"number",dense:!0,value:this.newPage,disable:this.disable,dark:this.isDark,borderless:!0,inputClass:this.inputClass,inputStyle:this.inputStyle},attrs:{placeholder:this.inputPlaceholder,min:this.__min,max:this.__max},on:{...this.inputEvents}})]:n),...i])])}}),Xo=he.a.extend({name:"QTd",mixins:[De],props:{props:Object,autoWidth:Boolean,noHover:Boolean},computed:{classes(){return"q-td"+(!0===this.autoWidth?" q-table--col-auto-width":"")+(!0===this.noHover?" q-td--no-hover":"")+" "}},render(t){const e=this.qListeners;if(void 0===this.props)return t("td",{on:e,class:this.classes},Re(this,"default"));const i=this.$vnode.key,n=void 0!==this.props.colsMap&&i?this.props.colsMap[i]:this.props.col;if(void 0===n)return;const r=this.props.row;return t("td",{on:e,style:n.__tdStyle(r),class:this.classes+n.__tdClass(r)},Re(this,"default"))}}),Go=he.a.extend({name:"QInnerLoading",mixins:[De,Cr,mr],props:{showing:Boolean,color:String,size:{type:[String,Number],default:42},label:String,labelClass:String,labelStyle:[String,Array,Object]},computed:{classes(){return"q-inner-loading absolute-full column flex-center"+(!0===this.isDark?" q-inner-loading--dark":"")},labelClasses(){return"q-inner-loading__label"+(void 0!==this.labelClass?" "+this.labelClass:"")}},methods:{__getInner(t){const e=[t(ei,{props:{size:this.size,color:this.color}})];return void 0!==this.label&&e.push(t("div",{class:this.labelClasses,style:this.labelStyle},[this.label])),e},__getContent(t){return!0===this.showing?[t("div",{staticClass:this.classes,on:{...this.qListeners}},void 0!==this.$scopedSlots.default?this.$scopedSlots.default():this.__getInner(t))]:void 0}},render(t){return t("transition",{props:{...this.transitionProps}},this.__getContent(t))}}),Zo=he.a.extend({name:"QSpinnerHourglass",mixins:[ti],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"}},[t("g",[t("path",{staticClass:"glass",attrs:{fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"10",d:"M58.4,51.7c-0.9-0.9-1.4-2-1.4-2.3s0.5-0.4,1.4-1.4 C70.8,43.8,79.8,30.5,80,15.5H70H30H20c0.2,15,9.2,28.1,21.6,32.3c0.9,0.9,1.4,1.2,1.4,1.5s-0.5,1.6-1.4,2.5 C29.2,56.1,20.2,69.5,20,85.5h10h40h10C79.8,69.5,70.8,55.9,58.4,51.7z"}}),t("clipPath",{attrs:{id:"uil-hourglass-clip1"}},[t("rect",{staticClass:"clip",attrs:{x:"15",y:"20",width:"70",height:"25"}},[t("animate",{attrs:{attributeName:"height",from:"25",to:"0",dur:"1s",repeatCount:"indefinite",values:"25;0;0",keyTimes:"0;0.5;1"}}),t("animate",{attrs:{attributeName:"y",from:"20",to:"45",dur:"1s",repeatCount:"indefinite",values:"20;45;45",keyTimes:"0;0.5;1"}})])]),t("clipPath",{attrs:{id:"uil-hourglass-clip2"}},[t("rect",{staticClass:"clip",attrs:{x:"15",y:"55",width:"70",height:"25"}},[t("animate",{attrs:{attributeName:"height",from:"0",to:"25",dur:"1s",repeatCount:"indefinite",values:"0;25;25",keyTimes:"0;0.5;1"}}),t("animate",{attrs:{attributeName:"y",from:"80",to:"55",dur:"1s",repeatCount:"indefinite",values:"80;55;55",keyTimes:"0;0.5;1"}})])]),t("path",{staticClass:"sand",attrs:{d:"M29,23c3.1,11.4,11.3,19.5,21,19.5S67.9,34.4,71,23H29z","clip-path":"url(#uil-hourglass-clip1)",fill:"currentColor"}}),t("path",{staticClass:"sand",attrs:{d:"M71.6,78c-3-11.6-11.5-20-21.5-20s-18.5,8.4-21.5,20H71.6z","clip-path":"url(#uil-hourglass-clip2)",fill:"currentColor"}}),t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",repeatCount:"indefinite",dur:"1s",values:"0 50 50;0 50 50;180 50 50",keyTimes:"0;0.7;1"}})])])}}),Jo=i("93dc"),ta=i.n(Jo),ea=ce(le,o,a,!1,null,"75f34d4d",null),ia=ea.exports;ta()(ea,"components",{QBtn:bn,QDialog:xr,QCard:kr,QToolbar:qr,QToolbarTitle:Er,QCardSection:Mr,QTable:Ro,QAvatar:Po,QPagination:Ko,QSeparator:po,QTd:Xo,QInnerLoading:Go,QSpinnerHourglass:Zo});var na=function(){var t=this,e=t._self._c;return e("div",{staticClass:"newWrap"},[e("q-card",{attrs:{flat:""}},[e("q-card-section",[e("div",{staticClass:"text-h4"},[t._v(t._s(t.headerTitle||"最新消息"))]),e("div",{staticClass:"text-subtitle"},[t._v(t._s(t.headerDescription||"Breaking News"))]),e("q-separator",{staticClass:"q-mt-sm",class:t.bgColorSty,staticStyle:{"padding-top":"2px"}})],1),e("q-card-section",[e("q-table",{attrs:{data:t.annouMain.result,columns:t.columns,pagination:t.pagination,loading:t.showLoaging,"wrap-cells":"",bordered:"",flat:"","row-key":"index"},on:{"update:pagination":function(e){t.pagination=e}},scopedSlots:t._u([{key:"top",fn:function(){return[e("q-select",{staticStyle:{width:"180px"},attrs:{outlined:"",dense:"",options:t.annType,label:"公告類型","map-options":"","emit-value":"",clearable:""},model:{value:t.searchInfo.AnnounceType,callback:function(e){t.$set(t.searchInfo,"AnnounceType",e)},expression:"searchInfo.AnnounceType"}}),e("q-input",{staticClass:"q-ml-xs",staticStyle:{width:"300px"},attrs:{outlined:"",dense:"",label:"公告主旨"},model:{value:t.searchInfo.Title,callback:function(e){t.$set(t.searchInfo,"Title",e)},expression:"searchInfo.Title"}}),e("q-input",{staticClass:"q-ml-xs",staticStyle:{width:"160px"},attrs:{label:"時間(開始)",dense:"",outlined:""},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{staticClass:"cursor-pointer",attrs:{name:"event"}},[e("q-popup-proxy",{attrs:{cover:"","transition-show":"scale","transition-hide":"scale"}},[e("q-date",{attrs:{mask:"YYYY-MM-DD",color:t.colorSty||"light-blue-10"},model:{value:t.searchInfo.StartDate,callback:function(e){t.$set(t.searchInfo,"StartDate",e)},expression:"searchInfo.StartDate"}},[e("div",{staticClass:"row items-center justify-end"},[e("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{label:"Close",color:t.colorSty||"primary",flat:""}})],1)])],1)],1)]},proxy:!0}]),model:{value:t.searchInfo.StartDate,callback:function(e){t.$set(t.searchInfo,"StartDate",e)},expression:"searchInfo.StartDate"}}),e("q-input",{staticClass:"q-ml-xs",staticStyle:{width:"160px"},attrs:{label:"時間(結束)",dense:"",outlined:""},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{staticClass:"cursor-pointer",attrs:{name:"event"}},[e("q-popup-proxy",{attrs:{cover:"","transition-show":"scale","transition-hide":"scale"}},[e("q-date",{attrs:{mask:"YYYY-MM-DD",color:t.colorSty||"light-blue-10"},model:{value:t.searchInfo.EndDate,callback:function(e){t.$set(t.searchInfo,"EndDate",e)},expression:"searchInfo.EndDate"}},[e("div",{staticClass:"row items-center justify-end"},[e("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{label:"Close",color:t.colorSty||"primary",flat:""}})],1)])],1)],1)]},proxy:!0}]),model:{value:t.searchInfo.EndDate,callback:function(e){t.$set(t.searchInfo,"EndDate",e)},expression:"searchInfo.EndDate"}}),e("q-btn",{staticClass:"q-ml-xs",attrs:{icon:"search",color:t.colorSty||"light-blue-10"},on:{click:t.changePage}})]},proxy:!0},{key:"loading",fn:function(){return[e("q-inner-loading",{attrs:{showing:"",color:"primary"}})]},proxy:!0},{key:"header-cell",fn:function(i){return[e("q-th",{attrs:{props:i}},[e("sortTableHeader",{attrs:{info:i.col,pSet:t.pagination},on:{setDescending:function(e){t.pagination.descending=e},setSortBy:function(e){t.pagination.sortBy=e},changePage:t.changePage}})],1)]}},{key:"body-cell-effectDate",fn:function(i){return[e("q-td",{staticClass:"cursor-pointer",attrs:{align:"center"}},[t._v(" "+t._s(t.showCreateTime(i.value))+" ")])]}},{key:"body-cell-title",fn:function(i){return[e("q-td",{staticClass:"cursor-pointer",attrs:{align:"left"},on:{click:function(e){return t.showAnnouModel(i.row)}}},[i.row.isPinned?e("q-chip",{attrs:{color:"primary",square:"",size:"sm","text-color":"white",label:"置頂"}}):t._e(),e("span",[t._v(" "+t._s(i.value)+" ")])],1)]}},{key:"bottom",fn:function(){return[e("div",{staticClass:"col-12 row justify-center q-my-sm"},[e("q-pagination",{attrs:{color:t.colorSty||"light-blue-10",max:t.annouMain.totalPages,"direction-links":!0,"boundary-links":!0,"max-pages":6},on:{input:t.changePage},model:{value:t.pagination.pageNumber,callback:function(e){t.$set(t.pagination,"pageNumber",e)},expression:"pagination.pageNumber"}})],1)]},proxy:!0}])})],1),e("q-dialog",{attrs:{persistent:""},model:{value:t.showModel,callback:function(e){t.showModel=e},expression:"showModel"}},[e("q-card",{staticClass:"newsContent"},[e("q-bar",{class:t.bgColorSty},[e("q-space"),e("q-btn",{attrs:{dense:"",flat:"",icon:"close",color:"white"},on:{click:t.closeModel}},[e("q-tooltip",[t._v("Close")])],1)],1),e("q-card-section",{staticStyle:{"max-height":"85vh"}},[e("q-card-section",[e("div",{staticClass:"text-h5"},[t._v(t._s(t.viewInfo.title))]),e("div",{staticStyle:{"font-size":"15px",color:"#979797","min-width":"90px"}},[t._v(" "+t._s(t.showCreateTime(t.viewInfo.effectDate))+" ")]),e("q-separator",{staticClass:"q-mt-sm",class:t.bgColorSty,staticStyle:{"padding-top":"2px"}})],1),t.otherLcIds.length?e("q-card-section",[e("q-select",{attrs:{dense:"",outlined:"",options:t.otherLcIds,"option-label":"lcIdCNa",prefix:"其他語言:",clearable:""},on:{input:t.changeLc},model:{value:t.selectLc,callback:function(e){t.selectLc=e},expression:"selectLc"}})],1):t._e(),t.viewInfo.attachments&&t.viewInfo.attachments.length>0?e("q-card",{staticClass:"q-mx-md",attrs:{flat:"",bordered:""}},[e("q-card-section",{staticClass:"q-pa-sm text-right bg-grey-2"},t._l(t.viewInfo.attachments,(function(i,n){return e("q-chip",{key:n,attrs:{label:i.fileName,square:"",clickable:"",color:"primary","text-color":"white",icon:"download"},on:{click:function(e){return t.onClick(i)}}})})),1)],1):t._e()],1),e("q-card-section",[e("q-scroll-area",{staticClass:"q-px-lg q-py-md",staticStyle:{height:"500px"},attrs:{visible:""}},[e("div",{staticClass:"q-mx-sm",domProps:{innerHTML:t._s(t.viewInfo.announceData)}})])],1)],1)],1)],1)],1)},ra=[];i("88a7"),i("271a"),i("5494");let sa,oa,aa=0,la={},ca={};const ua={group:"__default_quasar_group__",delay:0,message:!1,spinnerSize:80,spinnerColor:"white",messageColor:"white",backgroundColor:"black",spinner:ei,customClass:""},ha={...ua};function da(t){if(t&&void 0!==t.group&&void 0!==ca[t.group])return Object.assign(ca[t.group],t);const e=!0===Ps(t)&&!0===t.ignoreDefaults?{...ua,...t}:{...ha,...t};return ca[e.group]=e,e}const pa={isActive:!1,show(t){if(!0===ge)return;la=da(t);const{group:e}=la;return la.customClass+=" text-"+la.backgroundColor,this.isActive=!0,void 0!==sa?(la.uid=aa,sa.$forceUpdate()):(la.uid=++aa,clearTimeout(oa),oa=setTimeout(()=>{oa=void 0;const t=document.createElement("div");document.body.appendChild(t),sa=new he.a({name:"QLoading",devtools:{hide:!0},beforeCreate(){void 0===this._routerRoot&&(this._routerRoot={})},el:t,mounted(){ur(!0)},render:t=>t("transition",{props:{name:"q-transition--fade",appear:!0},on:Ae(this,"tr",{"after-leave":()=>{!0!==this.isActive&&void 0!==sa&&(ur(!1),sa.$destroy(),sa.$el.remove(),sa=void 0)}})},[!0===this.isActive?t("div",{staticClass:"q-loading fullscreen column flex-center z-max",key:la.uid,class:la.customClass.trim()},[t(la.spinner,{props:{color:la.spinnerColor,size:la.spinnerSize}}),la.message&&t("div",{class:"text-"+la.messageColor,domProps:{[!0===la.sanitize?"textContent":"innerHTML"]:la.message}})||void 0]):null])})},la.delay)),t=>{void 0!==t&&Object(t)===t?this.show({...t,group:e}):this.hide(e)}},hide(t){if(!0===this.isActive){if(void 0===t)ca={};else{if(void 0===ca[t])return;{delete ca[t];const e=Object.keys(ca);if(0!==e.length){const t=e[e.length-1];return void this.show({group:t})}}}void 0!==oa&&(clearTimeout(oa),oa=void 0),this.isActive=!1}},setDefaults(t){!0===Ps(t)&&Object.assign(ha,t)},install({$q:t,cfg:{loading:e}}){this.setDefaults(e),t.loading=this}};!1===ge&&he.a.util.defineReactive(pa,"isActive",pa.isActive);var fa=pa,ma=function(){var t=this,e=t._self._c;return"edit"!==t.info.name?e("div",[e("div",{on:{click:t.sortCurrent}},[e("span",{staticClass:"q-mr-xs",domProps:{textContent:t._s(t.info.label)}}),e("q-icon",{staticClass:"q-mb-xs",attrs:{name:t.setIcon()}})],1)]):e("div",{domProps:{textContent:t._s(t.info.label)}})},ga=[],va={name:"sortTableHeader",props:["info","pSet"],methods:{sortCurrent(){this.pSet.sortBy==this.info.name?this.$emit("setDescending",!this.pSet.descending):(this.$emit("setSortBy",this.info.name),this.$emit("setDescending",!1),this.pSet.descending=!1),this.$emit("changePage")},setIcon(){if(this.info.name!==this.pSet.sortBy)return"";switch(this.pSet.descending){case null:return"";case!1:return"fas fa-sort-amount-up";case!0:return"fas fa-sort-amount-down";default:break}}}},ba=va,_a=ce(ba,ma,ga,!1,null,null,null),ya=_a.exports;ta()(_a,"components",{QIcon:Je});var wa={props:["token","colorSty","headerTitle","headerDescription"],name:"Announcement",components:{sortTableHeader:ya},data(){return{searchInfo:{},annType:[],pagination:{sortBy:null,pageNumber:1,pageSize:10,rowsPerPage:10},options:{},showModel:!1,annouContent:{},viewInfo:{attachments:[]},otherLcIds:[],selectLc:[],annouMain:{},showLoaging:!1}},computed:{columns(){return[{name:"effectDate",align:"center",label:"日期",field:"effectDate",headerClasses:this.bgColorSty+" text-white table-header-date"},{name:"announceCNa",align:"center",label:"公告類型",field:"announceCNa",headerClasses:this.bgColorSty+" text-white table-header-date"},{name:"title",label:"主旨",field:"title",align:"left",headerClasses:this.bgColorSty+" text-white"}]},bgColorSty(){return this.colorSty?"bg-"+this.colorSty:"bg-light-blue-10"},fjuBaseApi(){let t=location.hostname;return"localhost"==t||"140.136.240.22"==t||"sf446lab.fju.edu.tw"==t||"sf446lab2.fju.edu.tw"==t?"https://api-gateway-dev.fju.edu.tw/FjuBase/api":"https://travellerLink.fju.edu.tw/FjuBase/api"},annApi(){const t=oe.create({baseURL:this.fjuBaseApi});return t.defaults.headers.common["Authorization"]="Bearer "+this.token,t}},methods:{async changePage(){this.showLoaging=!0;let t=Object.assign({},this.searchInfo,this.pagination),e=await this.annApi.get("/Announcement/InEffectPagedList",{params:t});this.annouMain=e.data.result,this.showLoaging=!1},async getAnnType(){let t=await this.annApi.get("/RefAnnounceType/DDL");this.annType=t.data.result.result},showAnnouModel(t){this.annouContent=t,this.viewInfo.title=t.title,this.viewInfo.announceData=t.announceData,this.viewInfo.attachments=t.attachments||[],this.viewInfo.effectDate=t.effectDate,this.otherLcIds=t.otherLcIds,this.showModel=!0},closeModel(){this.showModel=!1,this.viewInfo={},this.otherLcIds=[],this.selectLc=[]},showCreateTime(t){return t?t.substring(0,10):""},async changeLc(t){if(this.showLoaging=!0,t){this.viewInfo.title=t.title,this.viewInfo.announceData=t.announceData,this.viewInfo.attachments=t.attachments||[],this.viewInfo.effectDate=t.effectDate;let e={AnnouncementSn:this.annouContent.announcementSn,LcId:t.lcId},i=await this.annApi.get("/Announcement/InEffectAttachments",{params:e});this.viewInfo.attachments=i.data.result.result||[],this.showLoaging=!1}else this.viewInfo.title=this.annouContent.title,this.viewInfo.announceData=this.annouContent.announceData,this.viewInfo.attachments=this.annouContent.attachments||[],this.viewInfo.effectDate=this.annouContent.effectDate,this.showLoaging=!1},async onClick(t){const e={AnnouncementSn:this.annouContent.announcementSn,LcId:t.lcId,AttachmentSn:t.attachmentSn,fileName:t.fileName};fa.show({message:"檔案下載中"});let i=await this.annApi.get("/Announcement/DownloadSystemAttachments",{params:e,"Content-Type":"application/json",responseType:"blob"});const n=new Blob([i.data],{type:i.data.type}),r=document.createElement("a"),s=window.URL.createObjectURL(n);r.href=s,r.download=e.fileName,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(s),fa.hide()}},mounted(){this.getAnnType(),this.changePage()}},Sa=wa,xa=(i("af4e"),i("c6e9"),he.a.extend({name:"QPopupProxy",mixins:[fr,De,ls],props:{breakpoint:{type:[String,Number],default:450}},data(){const t=parseInt(this.breakpoint,10);return{type:this.$q.screen.width<t||this.$q.screen.height<t?"dialog":"menu"}},computed:{parsedBreakpoint(){return parseInt(this.breakpoint,10)},onEvents(){return{...this.qListeners,hide:this.__onHide}}},watch:{"$q.screen.width"(t){!0!==this.$refs.popup.showing&&this.__updateType(t,this.$q.screen.height,this.parsedBreakpoint)},"$q.screen.height"(t){!0!==this.$refs.popup.showing&&this.__updateType(this.$q.screen.width,t,this.parsedBreakpoint)},breakpoint(t){!0!==this.$refs.popup.showing&&this.__updateType(this.$q.screen.width,this.$q.screen.height,parseInt(t,10))}},methods:{toggle(t){this.$refs.popup.toggle(t)},show(t){this.$refs.popup.show(t)},hide(t){this.$refs.popup.hide(t)},__onHide(t){this.__updateType(this.$q.screen.width,this.$q.screen.height,this.parsedBreakpoint),this.$emit("hide",t)},__updateType(t,e,i){const n=t<i||e<i?"dialog":"menu";this.type!==n&&(this.type=n)}},render(t){const e=Re(this,"default"),i="menu"===this.type&&void 0!==e&&void 0!==e[0]&&void 0!==e[0].componentOptions&&void 0!==e[0].componentOptions.Ctor&&void 0!==e[0].componentOptions.Ctor.sealedOptions&&["QDate","QTime","QCarousel","QColor"].includes(e[0].componentOptions.Ctor.sealedOptions.name)?{cover:!0,maxHeight:"99vh"}:{},n={ref:"popup",props:{...i,...this.qAttrs},on:this.onEvents};let r;return"dialog"===this.type?r=xr:(r=As,n.props.target=this.target,n.props.contextMenu=this.contextMenu,n.props.noParentEvent=!0,n.props.separateClosePopup=!0),t(r,n,e)}}));const Ca=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function ka(t,e,i){return"[object Date]"===Object.prototype.toString.call(t)&&(i=t.getDate(),e=t.getMonth()+1,t=t.getFullYear()),Na($a(t,e,i))}function Ta(t,e,i){return Da(Aa(t,e,i))}function qa(t){return 0===Ma(t)}function Ea(t,e){return e<=6?31:e<=11||qa(t)?30:29}function Ma(t){const e=Ca.length;let i,n,r,s,o,a=Ca[0];if(t<a||t>=Ca[e-1])throw new Error("Invalid Jalaali year "+t);for(o=1;o<e;o+=1){if(i=Ca[o],n=i-a,t<i)break;a=i}return s=t-a,n-s<6&&(s=s-n+33*Ra(n+4,33)),r=Pa(Pa(s+1,33)-1,4),-1===r&&(r=4),r}function Ia(t,e){const i=Ca.length,n=t+621;let r,s,o,a,l,c=-14,u=Ca[0];if(t<u||t>=Ca[i-1])throw new Error("Invalid Jalaali year "+t);for(l=1;l<i;l+=1){if(r=Ca[l],s=r-u,t<r)break;c=c+8*Ra(s,33)+Ra(Pa(s,33),4),u=r}a=t-u,c=c+8*Ra(a,33)+Ra(Pa(a,33)+3,4),4===Pa(s,33)&&s-a===4&&(c+=1);const h=Ra(n,4)-Ra(3*(Ra(n,100)+1),4)-150,d=20+c-h;return e||(s-a<6&&(a=a-s+33*Ra(s+4,33)),o=Pa(Pa(a+1,33)-1,4),-1===o&&(o=4)),{leap:o,gy:n,march:d}}function Aa(t,e,i){const n=Ia(t,!0);return $a(n.gy,3,n.march)+31*(e-1)-Ra(e,7)*(e-7)+i-1}function Na(t){const e=Da(t).gy;let i,n,r,s=e-621;const o=Ia(s,!1),a=$a(e,3,o.march);if(r=t-a,r>=0){if(r<=185)return n=1+Ra(r,31),i=Pa(r,31)+1,{jy:s,jm:n,jd:i};r-=186}else s-=1,r+=179,1===o.leap&&(r+=1);return n=7+Ra(r,30),i=Pa(r,30)+1,{jy:s,jm:n,jd:i}}function $a(t,e,i){let n=Ra(1461*(t+Ra(e-8,6)+100100),4)+Ra(153*Pa(e+9,12)+2,5)+i-34840408;return n=n-Ra(3*Ra(t+100100+Ra(e-8,6),100),4)+752,n}function Da(t){let e=4*t+139361631;e=e+4*Ra(3*Ra(4*t+183187720,146097),4)-3908;const i=5*Ra(Pa(e,1461),4)+308,n=Ra(Pa(i,153),5)+1,r=Pa(Ra(i,153),12)+1,s=Ra(e,1461)-100100+Ra(8-r,6);return{gy:s,gm:r,gd:n}}function Ra(t,e){return~~(t/e)}function Pa(t,e){return t-~~(t/e)*e}const Oa=["gregorian","persian"];var La={mixins:[Cr,Ar,De],props:{value:{required:!0},mask:{type:String},locale:Object,calendar:{type:String,validator:t=>Oa.includes(t),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},computed:{computedMask(){return this.__getMask()},computedLocale(){return this.__getLocale()},editable(){return!0!==this.disable&&!0!==this.readonly},computedColor(){return this.color||"primary"},computedTextColor(){return this.textColor||"white"},computedTabindex(){return!0===this.editable?0:-1},headerClass(){const t=[];return void 0!==this.color&&t.push("bg-"+this.color),void 0!==this.textColor&&t.push("text-"+this.textColor),t.join(" ")}},methods:{__getLocale(){return void 0!==this.locale?{...this.$q.lang.date,...this.locale}:this.$q.lang.date},__getCurrentDate(t){const e=new Date,i=!0===t?null:0;if("persian"===this.calendar){const t=ka(e);return{year:t.jy,month:t.jm,day:t.jd}}return{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:i,minute:i,second:i,millisecond:i}},__getCurrentTime(){const t=new Date;return{hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}},__getDayHash(t){return t.year+"/"+Fs(t.month)+"/"+Fs(t.day)}}};const Ba=864e5,ja=36e5,za=6e4,Fa="YYYY-MM-DDTHH:mm:ss.SSSZ",Va=/\[((?:[^\]\\]|\\]|\\)*)\]|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,Ha=/(\[[^\]]*\])|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,Ua={};function Qa(t,e){const i="("+e.days.join("|")+")",n=t+i;if(void 0!==Ua[n])return Ua[n];const r="("+e.daysShort.join("|")+")",s="("+e.months.join("|")+")",o="("+e.monthsShort.join("|")+")",a={};let l=0;const c=t.replace(Ha,t=>{switch(l++,t){case"YY":return a.YY=l,"(-?\\d{1,2})";case"YYYY":return a.YYYY=l,"(-?\\d{1,4})";case"M":return a.M=l,"(\\d{1,2})";case"MM":return a.M=l,"(\\d{2})";case"MMM":return a.MMM=l,o;case"MMMM":return a.MMMM=l,s;case"D":return a.D=l,"(\\d{1,2})";case"Do":return a.D=l++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return a.D=l,"(\\d{2})";case"H":return a.H=l,"(\\d{1,2})";case"HH":return a.H=l,"(\\d{2})";case"h":return a.h=l,"(\\d{1,2})";case"hh":return a.h=l,"(\\d{2})";case"m":return a.m=l,"(\\d{1,2})";case"mm":return a.m=l,"(\\d{2})";case"s":return a.s=l,"(\\d{1,2})";case"ss":return a.s=l,"(\\d{2})";case"S":return a.S=l,"(\\d{1})";case"SS":return a.S=l,"(\\d{2})";case"SSS":return a.S=l,"(\\d{3})";case"A":return a.A=l,"(AM|PM)";case"a":return a.a=l,"(am|pm)";case"aa":return a.aa=l,"(a\\.m\\.|p\\.m\\.)";case"ddd":return r;case"dddd":return i;case"Q":case"d":case"E":return"(\\d{1})";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"w":return"(\\d{1,2})";case"ww":return"(\\d{2})";case"Z":return a.Z=l,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return a.ZZ=l,"(Z|[+-]\\d{2}\\d{2})";case"X":return a.X=l,"(-?\\d+)";case"x":return a.x=l,"(-?\\d{4,})";default:return l--,"["===t[0]&&(t=t.substring(1,t.length-1)),t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),u={map:a,regex:new RegExp("^"+c)};return Ua[n]=u,u}function Wa(t,e){return void 0!==t?t:void 0!==e?e.date:Ri.date}function Ya(t,e=""){const i=t>0?"-":"+",n=Math.abs(t),r=Math.floor(n/60),s=n%60;return i+Fs(r)+e+Fs(s)}function Ka(t,e,i){let n=t.getFullYear(),r=t.getMonth();const s=t.getDate();return void 0!==e.year&&(n+=i*e.year,delete e.year),void 0!==e.month&&(r+=i*e.month,delete e.month),t.setDate(1),t.setMonth(2),t.setFullYear(n),t.setMonth(r),t.setDate(Math.min(s,wl(t))),void 0!==e.date&&(t.setDate(t.getDate()+i*e.date),delete e.date),t}function Xa(t,e,i){const n=void 0!==e.year?e.year:t[`get${i}FullYear`](),r=void 0!==e.month?e.month-1:t[`get${i}Month`](),s=new Date(n,r+1,0).getDate(),o=Math.min(s,void 0!==e.date?e.date:t[`get${i}Date`]());return t[`set${i}Date`](1),t[`set${i}Month`](2),t[`set${i}FullYear`](n),t[`set${i}Month`](r),t[`set${i}Date`](o),delete e.year,delete e.month,delete e.date,t}function Ga(t,e,i){const n=Za(e),r=new Date(t),s=void 0!==n.year||void 0!==n.month||void 0!==n.date?Ka(r,n,i):r;for(const o in n){const t=Bs(o);s["set"+t](s["get"+t]()+i*n[o])}return s}function Za(t){const e={...t};return void 0!==t.years&&(e.year=t.years,delete e.years),void 0!==t.months&&(e.month=t.months,delete e.months),void 0!==t.days&&(e.date=t.days,delete e.days),void 0!==t.day&&(e.date=t.day,delete e.day),void 0!==t.hour&&(e.hours=t.hour,delete e.hour),void 0!==t.minute&&(e.minutes=t.minute,delete e.minute),void 0!==t.second&&(e.seconds=t.second,delete e.second),void 0!==t.millisecond&&(e.milliseconds=t.millisecond,delete e.millisecond),e}function Ja(t,e,i){const n=Za(e),r=!0===i?"UTC":"",s=new Date(t),o=void 0!==n.year||void 0!==n.month||void 0!==n.date?Xa(s,n,r):s;for(const a in n){const t=a.charAt(0).toUpperCase()+a.slice(1);o[`set${r}${t}`](n[a])}return o}function tl(t,e,i){const n=el(t,e,i),r=new Date(n.year,null===n.month?null:n.month-1,null===n.day?1:n.day,n.hour,n.minute,n.second,n.millisecond),s=r.getTimezoneOffset();return null===n.timezoneOffset||n.timezoneOffset===s?r:Ga(r,{minutes:n.timezoneOffset-s},1)}function el(t,e,i,n,r){const s={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(void 0!==r&&Object.assign(s,r),void 0===t||null===t||""===t||"string"!==typeof t)return s;void 0===e&&(e=Fa);const o=Wa(i,Li.props),a=o.months,l=o.monthsShort,{regex:c,map:u}=Qa(e,o),h=t.match(c);if(null===h)return s;let d="";if(void 0!==u.X||void 0!==u.x){const t=parseInt(h[void 0!==u.X?u.X:u.x],10);if(!0===isNaN(t)||t<0)return s;const e=new Date(t*(void 0!==u.X?1e3:1));s.year=e.getFullYear(),s.month=e.getMonth()+1,s.day=e.getDate(),s.hour=e.getHours(),s.minute=e.getMinutes(),s.second=e.getSeconds(),s.millisecond=e.getMilliseconds()}else{if(void 0!==u.YYYY)s.year=parseInt(h[u.YYYY],10);else if(void 0!==u.YY){const t=parseInt(h[u.YY],10);s.year=t<0?t:2e3+t}if(void 0!==u.M){if(s.month=parseInt(h[u.M],10),s.month<1||s.month>12)return s}else void 0!==u.MMM?s.month=l.indexOf(h[u.MMM])+1:void 0!==u.MMMM&&(s.month=a.indexOf(h[u.MMMM])+1);if(void 0!==u.D){if(s.day=parseInt(h[u.D],10),null===s.year||null===s.month||s.day<1)return s;const t="persian"!==n?new Date(s.year,s.month,0).getDate():Ea(s.year,s.month);if(s.day>t)return s}void 0!==u.H?s.hour=parseInt(h[u.H],10)%24:void 0!==u.h&&(s.hour=parseInt(h[u.h],10)%12,(u.A&&"PM"===h[u.A]||u.a&&"pm"===h[u.a]||u.aa&&"p.m."===h[u.aa])&&(s.hour+=12),s.hour=s.hour%24),void 0!==u.m&&(s.minute=parseInt(h[u.m],10)%60),void 0!==u.s&&(s.second=parseInt(h[u.s],10)%60),void 0!==u.S&&(s.millisecond=parseInt(h[u.S],10)*10**(3-h[u.S].length)),void 0===u.Z&&void 0===u.ZZ||(d=void 0!==u.Z?h[u.Z].replace(":",""):h[u.ZZ],s.timezoneOffset=("+"===d[0]?-1:1)*(60*d.slice(1,3)+1*d.slice(3,5)))}return s.dateHash=Fs(s.year,6)+"/"+Fs(s.month)+"/"+Fs(s.day),s.timeHash=Fs(s.hour)+":"+Fs(s.minute)+":"+Fs(s.second)+d,s}function il(t){return"number"===typeof t||!1===isNaN(Date.parse(t))}function nl(t,e){return Ja(new Date,t,e)}function rl(t){const e=new Date(t).getDay();return 0===e?7:e}function sl(t){const e=new Date(t.getFullYear(),t.getMonth(),t.getDate());e.setDate(e.getDate()-(e.getDay()+6)%7+3);const i=new Date(e.getFullYear(),0,4);i.setDate(i.getDate()-(i.getDay()+6)%7+3);const n=e.getTimezoneOffset()-i.getTimezoneOffset();e.setHours(e.getHours()-n);const r=(e-i)/(7*Ba);return 1+Math.floor(r)}function ol(t){return 1e4*t.getFullYear()+100*t.getMonth()+t.getDate()}function al(t,e){const i=new Date(t);return!0===e?ol(i):i.getTime()}function ll(t,e,i,n={}){const r=al(e,n.onlyDate),s=al(i,n.onlyDate),o=al(t,n.onlyDate);return(o>r||!0===n.inclusiveFrom&&o===r)&&(o<s||!0===n.inclusiveTo&&o===s)}function cl(t,e){return Ga(t,e,1)}function ul(t,e){return Ga(t,e,-1)}function hl(t,e,i){const n=new Date(t),r="set"+(!0===i?"UTC":"");switch(e){case"year":case"years":n[r+"Month"](0);case"month":case"months":n[r+"Date"](1);case"day":case"days":case"date":n[r+"Hours"](0);case"hour":case"hours":n[r+"Minutes"](0);case"minute":case"minutes":n[r+"Seconds"](0);case"second":case"seconds":n[r+"Milliseconds"](0)}return n}function dl(t,e,i){const n=new Date(t),r="set"+(!0===i?"UTC":"");switch(e){case"year":case"years":n[r+"Month"](11);case"month":case"months":n[r+"Date"](wl(n));case"day":case"days":case"date":n[r+"Hours"](23);case"hour":case"hours":n[r+"Minutes"](59);case"minute":case"minutes":n[r+"Seconds"](59);case"second":case"seconds":n[r+"Milliseconds"](999)}return n}function pl(t){let e=new Date(t);return Array.prototype.slice.call(arguments,1).forEach(t=>{e=Math.max(e,new Date(t))}),e}function fl(t){let e=new Date(t);return Array.prototype.slice.call(arguments,1).forEach(t=>{e=Math.min(e,new Date(t))}),e}function ml(t,e,i){return(t.getTime()-t.getTimezoneOffset()*za-(e.getTime()-e.getTimezoneOffset()*za))/i}function gl(t,e,i="days"){const n=new Date(t),r=new Date(e);switch(i){case"years":case"year":return n.getFullYear()-r.getFullYear();case"months":case"month":return 12*(n.getFullYear()-r.getFullYear())+n.getMonth()-r.getMonth();case"days":case"day":case"date":return ml(hl(n,"day"),hl(r,"day"),Ba);case"hours":case"hour":return ml(hl(n,"hour"),hl(r,"hour"),ja);case"minutes":case"minute":return ml(hl(n,"minute"),hl(r,"minute"),za);case"seconds":case"second":return ml(hl(n,"second"),hl(r,"second"),1e3)}}function vl(t){return gl(t,hl(t,"year"),"days")+1}function bl(t){return!0===Os(t)?"date":"number"===typeof t?"number":"string"}function _l(t,e,i){const n=new Date(t);if(e){const t=new Date(e);if(n<t)return t}if(i){const t=new Date(i);if(n>t)return t}return n}function yl(t,e,i){const n=new Date(t),r=new Date(e);if(void 0===i)return n.getTime()===r.getTime();switch(i){case"second":case"seconds":if(n.getSeconds()!==r.getSeconds())return!1;case"minute":case"minutes":if(n.getMinutes()!==r.getMinutes())return!1;case"hour":case"hours":if(n.getHours()!==r.getHours())return!1;case"day":case"days":case"date":if(n.getDate()!==r.getDate())return!1;case"month":case"months":if(n.getMonth()!==r.getMonth())return!1;case"year":case"years":if(n.getFullYear()!==r.getFullYear())return!1;break;default:throw new Error("date isSameDate unknown unit "+i)}return!0}function wl(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function Sl(t){if(t>=11&&t<=13)return t+"th";switch(t%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"}const xl={YY(t,e,i){const n=this.YYYY(t,e,i)%100;return n>=0?Fs(n):"-"+Fs(Math.abs(n))},YYYY(t,e,i){return void 0!==i&&null!==i?i:t.getFullYear()},M(t){return t.getMonth()+1},MM(t){return Fs(t.getMonth()+1)},MMM(t,e){return e.monthsShort[t.getMonth()]},MMMM(t,e){return e.months[t.getMonth()]},Q(t){return Math.ceil((t.getMonth()+1)/3)},Qo(t){return Sl(this.Q(t))},D(t){return t.getDate()},Do(t){return Sl(t.getDate())},DD(t){return Fs(t.getDate())},DDD(t){return vl(t)},DDDD(t){return Fs(vl(t),3)},d(t){return t.getDay()},dd(t,e){return this.dddd(t,e).slice(0,2)},ddd(t,e){return e.daysShort[t.getDay()]},dddd(t,e){return e.days[t.getDay()]},E(t){return t.getDay()||7},w(t){return sl(t)},ww(t){return Fs(sl(t))},H(t){return t.getHours()},HH(t){return Fs(t.getHours())},h(t){const e=t.getHours();return 0===e?12:e>12?e%12:e},hh(t){return Fs(this.h(t))},m(t){return t.getMinutes()},mm(t){return Fs(t.getMinutes())},s(t){return t.getSeconds()},ss(t){return Fs(t.getSeconds())},S(t){return Math.floor(t.getMilliseconds()/100)},SS(t){return Fs(Math.floor(t.getMilliseconds()/10))},SSS(t){return Fs(t.getMilliseconds(),3)},A(t){return this.H(t)<12?"AM":"PM"},a(t){return this.H(t)<12?"am":"pm"},aa(t){return this.H(t)<12?"a.m.":"p.m."},Z(t,e,i,n){const r=void 0===n||null===n?t.getTimezoneOffset():n;return Ya(r,":")},ZZ(t,e,i,n){const r=void 0===n||null===n?t.getTimezoneOffset():n;return Ya(r)},X(t){return Math.floor(t.getTime()/1e3)},x(t){return t.getTime()}};function Cl(t,e,i,n,r){if(0!==t&&!t||t===1/0||t===-1/0)return;const s=new Date(t);if(isNaN(s))return;void 0===e&&(e=Fa);const o=Wa(i,Li.props);return e.replace(Va,(t,e)=>t in xl?xl[t](s,o,n,r):void 0===e?t:e.split("\\]").join("]"))}function kl(t){return!0===Os(t)?new Date(t.getTime()):t}var Tl={isValid:il,extractDate:tl,buildDate:nl,getDayOfWeek:rl,getWeekOfYear:sl,isBetweenDates:ll,addToDate:cl,subtractFromDate:ul,adjustDate:Ja,startOfDate:hl,endOfDate:dl,getMaxDate:pl,getMinDate:fl,getDateDiff:gl,getDayOfYear:vl,inferDateFormat:bl,getDateBetween:_l,isSameDate:yl,daysInMonth:wl,formatDate:Cl,clone:kl};const ql=20,El=["Calendar","Years","Months"],Ml=t=>El.includes(t),Il=t=>/^-?[\d]+\/[0-1]\d$/.test(t),Al=" — ";var Nl=he.a.extend({name:"QDate",mixins:[La],props:{multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:Il},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:Il},navigationMaxYearMonth:{type:String,validator:Il},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:Ml}},data(){const t=this.__getMask(),e=this.__getLocale(),i=this.__getViewModel(t,e),n=i.year,r=!0===this.$q.lang.rtl?"right":"left";return{view:this.defaultView,monthDirection:r,yearDirection:r,startYear:n-n%ql-(n<0?ql:0),editRange:void 0,innerMask:t,innerLocale:e,viewModel:i}},watch:{value(t){if(this.lastEmitValue===t)this.lastEmitValue=0;else{const t=this.__getViewModel(this.innerMask,this.innerLocale);this.__updateViewModel(t.year,t.month,t)}},view(){void 0!==this.$refs.blurTarget&&!0===this.$el.contains(document.activeElement)&&this.$refs.blurTarget.focus()},"viewModel.year"(t){this.$emit("navigation",{year:t,month:this.viewModel.month})},"viewModel.month"(t){this.$emit("navigation",{year:this.viewModel.year,month:t})},computedMask(t){this.__updateValue(t,this.innerLocale,"mask"),this.innerMask=t},computedLocale(t){this.__updateValue(this.innerMask,t,"locale"),this.innerLocale=t}},computed:{classes(){const t=!0===this.landscape?"landscape":"portrait";return`q-date q-date--${t} q-date--${t}-${!0===this.minimal?"minimal":"standard"}`+(!0===this.isDark?" q-date--dark q-dark":"")+(!0===this.bordered?" q-date--bordered":"")+(!0===this.square?" q-date--square no-border-radius":"")+(!0===this.flat?" q-date--flat no-shadow":"")+(!0===this.disable?" disabled":!0===this.readonly?" q-date--readonly":"")},isImmediate(){return!0===this.emitImmediately&&!0!==this.multiple&&!0!==this.range},normalizedModel(){return!0===Array.isArray(this.value)?this.value:null!==this.value&&void 0!==this.value?[this.value]:[]},daysModel(){return this.normalizedModel.filter(t=>"string"===typeof t).map(t=>this.__decodeString(t,this.innerMask,this.innerLocale)).filter(t=>null!==t.dateHash&&null!==t.day&&null!==t.month&&null!==t.year)},rangeModel(){const t=t=>this.__decodeString(t,this.innerMask,this.innerLocale);return this.normalizedModel.filter(t=>!0===Ps(t)&&void 0!==t.from&&void 0!==t.to).map(e=>({from:t(e.from),to:t(e.to)})).filter(t=>null!==t.from.dateHash&&null!==t.to.dateHash&&t.from.dateHash<t.to.dateHash)},getNativeDateFn(){return"persian"!==this.calendar?t=>new Date(t.year,t.month-1,t.day):t=>{const e=Ta(t.year,t.month,t.day);return new Date(e.gy,e.gm-1,e.gd)}},encodeObjectFn(){return"persian"===this.calendar?this.__getDayHash:(t,e,i)=>Cl(new Date(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond),void 0===e?this.innerMask:e,void 0===i?this.innerLocale:i,t.year,t.timezoneOffset)},daysInModel(){return this.daysModel.length+this.rangeModel.reduce((t,e)=>t+1+gl(this.getNativeDateFn(e.to),this.getNativeDateFn(e.from)),0)},headerTitle(){if(void 0!==this.title&&null!==this.title&&this.title.length>0)return this.title;if(void 0!==this.editRange){const t=this.editRange.init,e=this.getNativeDateFn(t);return this.innerLocale.daysShort[e.getDay()]+", "+this.innerLocale.monthsShort[t.month-1]+" "+t.day+Al+"?"}if(0===this.daysInModel)return Al;if(this.daysInModel>1)return`${this.daysInModel} ${this.innerLocale.pluralDay}`;const t=this.daysModel[0],e=this.getNativeDateFn(t);return!0===isNaN(e.valueOf())?Al:void 0!==this.innerLocale.headerTitle?this.innerLocale.headerTitle(e,t):this.innerLocale.daysShort[e.getDay()]+", "+this.innerLocale.monthsShort[t.month-1]+" "+t.day},headerSubtitle(){if(void 0!==this.subtitle&&null!==this.subtitle&&this.subtitle.length>0)return this.subtitle;if(0===this.daysInModel)return Al;if(this.daysInModel>1){const t=this.minSelectedModel,e=this.maxSelectedModel,i=this.innerLocale.monthsShort;return i[t.month-1]+(t.year!==e.year?" "+t.year+Al+i[e.month-1]+" ":t.month!==e.month?Al+i[e.month-1]:"")+" "+e.year}return this.daysModel[0].year},minSelectedModel(){const t=this.daysModel.concat(this.rangeModel.map(t=>t.from)).sort((t,e)=>t.year-e.year||t.month-e.month);return t[0]},maxSelectedModel(){const t=this.daysModel.concat(this.rangeModel.map(t=>t.to)).sort((t,e)=>e.year-t.year||e.month-t.month);return t[0]},dateArrow(){const t=[this.$q.iconSet.datetime.arrowLeft,this.$q.iconSet.datetime.arrowRight];return!0===this.$q.lang.rtl?t.reverse():t},computedFirstDayOfWeek(){return void 0!==this.firstDayOfWeek?Number(this.firstDayOfWeek):this.innerLocale.firstDayOfWeek},daysOfWeek(){const t=this.innerLocale.daysShort,e=this.computedFirstDayOfWeek;return e>0?t.slice(e,7).concat(t.slice(0,e)):t},daysInMonth(){const t=this.viewModel;return"persian"!==this.calendar?new Date(t.year,t.month,0).getDate():Ea(t.year,t.month)},today(){return this.__getCurrentDate()},evtColor(){return"function"===typeof this.eventColor?this.eventColor:()=>this.eventColor},minNav(){if(void 0!==this.navigationMinYearMonth){const t=this.navigationMinYearMonth.split("/");return{year:parseInt(t[0],10),month:parseInt(t[1],10)}}},maxNav(){if(void 0!==this.navigationMaxYearMonth){const t=this.navigationMaxYearMonth.split("/");return{year:parseInt(t[0],10),month:parseInt(t[1],10)}}},navBoundaries(){const t={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return void 0!==this.minNav&&this.minNav.year>=this.viewModel.year&&(t.year.prev=!1,this.minNav.year===this.viewModel.year&&this.minNav.month>=this.viewModel.month&&(t.month.prev=!1)),void 0!==this.maxNav&&this.maxNav.year<=this.viewModel.year&&(t.year.next=!1,this.maxNav.year===this.viewModel.year&&this.maxNav.month<=this.viewModel.month&&(t.month.next=!1)),t},daysMap(){const t={};return this.daysModel.forEach(e=>{const i=this.__getMonthHash(e);void 0===t[i]&&(t[i]=[]),t[i].push(e.day)}),t},rangeMap(){const t={};return this.rangeModel.forEach(e=>{const i=this.__getMonthHash(e.from),n=this.__getMonthHash(e.to);if(void 0===t[i]&&(t[i]=[]),t[i].push({from:e.from.day,to:i===n?e.to.day:void 0,range:e}),i<n){let i;const{year:r,month:s}=e.from,o=s<12?{year:r,month:s+1}:{year:r+1,month:1};while((i=this.__getMonthHash(o))<=n)void 0===t[i]&&(t[i]=[]),t[i].push({from:void 0,to:i===n?e.to.day:void 0,range:e}),o.month++,o.month>12&&(o.year++,o.month=1)}}),t},rangeView(){if(void 0===this.editRange)return;const{init:t,initHash:e,final:i,finalHash:n}=this.editRange,[r,s]=e<=n?[t,i]:[i,t],o=this.__getMonthHash(r),a=this.__getMonthHash(s);if(o!==this.viewMonthHash&&a!==this.viewMonthHash)return;const l={};return o===this.viewMonthHash?(l.from=r.day,l.includeFrom=!0):l.from=1,a===this.viewMonthHash?(l.to=s.day,l.includeTo=!0):l.to=this.daysInMonth,l},viewMonthHash(){return this.__getMonthHash(this.viewModel)},selectionDaysMap(){const t={};if(void 0===this.options){for(let e=1;e<=this.daysInMonth;e++)t[e]=!0;return t}const e="function"===typeof this.options?this.options:t=>this.options.includes(t);for(let i=1;i<=this.daysInMonth;i++){const n=this.viewMonthHash+"/"+Fs(i);t[i]=e(n)}return t},eventDaysMap(){const t={};if(void 0===this.events)for(let e=1;e<=this.daysInMonth;e++)t[e]=!1;else{const e="function"===typeof this.events?this.events:t=>this.events.includes(t);for(let i=1;i<=this.daysInMonth;i++){const n=this.viewMonthHash+"/"+Fs(i);t[i]=!0===e(n)&&this.evtColor(n)}}return t},viewDays(){let t,e;const{year:i,month:n}=this.viewModel;if("persian"!==this.calendar)t=new Date(i,n-1,1),e=new Date(i,n-1,0).getDate();else{const r=Ta(i,n,1);t=new Date(r.gy,r.gm-1,r.gd);let s=n-1,o=i;0===s&&(s=12,o--),e=Ea(o,s)}return{days:t.getDay()-this.computedFirstDayOfWeek-1,endDay:e}},days(){const t=[],{days:e,endDay:i}=this.viewDays,n=e<0?e+7:e;if(n<6)for(let o=i-n;o<=i;o++)t.push({i:o,fill:!0});const r=t.length;for(let o=1;o<=this.daysInMonth;o++){const e={i:o,event:this.eventDaysMap[o],classes:[]};!0===this.selectionDaysMap[o]&&(e.in=!0,e.flat=!0),t.push(e)}if(void 0!==this.daysMap[this.viewMonthHash]&&this.daysMap[this.viewMonthHash].forEach(e=>{const i=r+e-1;Object.assign(t[i],{selected:!0,unelevated:!0,flat:!1,color:this.computedColor,textColor:this.computedTextColor})}),void 0!==this.rangeMap[this.viewMonthHash]&&this.rangeMap[this.viewMonthHash].forEach(e=>{if(void 0!==e.from){const i=r+e.from-1,n=r+(e.to||this.daysInMonth)-1;for(let r=i;r<=n;r++)Object.assign(t[r],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor});Object.assign(t[i],{rangeFrom:!0,flat:!1}),void 0!==e.to&&Object.assign(t[n],{rangeTo:!0,flat:!1})}else if(void 0!==e.to){const i=r+e.to-1;for(let n=r;n<=i;n++)Object.assign(t[n],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor});Object.assign(t[i],{flat:!1,rangeTo:!0})}else{const i=r+this.daysInMonth-1;for(let n=r;n<=i;n++)Object.assign(t[n],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor})}}),void 0!==this.rangeView){const e=r+this.rangeView.from-1,i=r+this.rangeView.to-1;for(let n=e;n<=i;n++)t[n].color=this.computedColor,t[n].editRange=!0;!0===this.rangeView.includeFrom&&(t[e].editRangeFrom=!0),!0===this.rangeView.includeTo&&(t[i].editRangeTo=!0)}this.viewModel.year===this.today.year&&this.viewModel.month===this.today.month&&(t[r+this.today.day-1].today=!0);const s=t.length%7;if(s>0){const e=7-s;for(let i=1;i<=e;i++)t.push({i:i,fill:!0})}return t.forEach(t=>{let e="q-date__calendar-item ";!0===t.fill?e+="q-date__calendar-item--fill":(e+="q-date__calendar-item--"+(!0===t.in?"in":"out"),void 0!==t.range&&(e+=" q-date__range"+(!0===t.rangeTo?"-to":!0===t.rangeFrom?"-from":"")),!0===t.editRange&&(e+=` q-date__edit-range${!0===t.editRangeFrom?"-from":""}${!0===t.editRangeTo?"-to":""}`),void 0===t.range&&!0!==t.editRange||(e+=" text-"+t.color)),t.classes=e}),t},attrs(){return!0===this.disable?{"aria-disabled":"true"}:!0===this.readonly?{"aria-readonly":"true"}:void 0}},methods:{setToday(){const t=this.today,e=this.daysMap[this.__getMonthHash(t)];void 0!==e&&!1!==e.includes(t.day)||this.__addToModel(t),this.setCalendarTo(this.today.year,this.today.month)},setView(t){!0===Ml(t)&&(this.view=t)},offsetCalendar(t,e){["month","year"].includes(t)&&this["__goTo"+("month"===t?"Month":"Year")](!0===e?-1:1)},setCalendarTo(t,e){this.view="Calendar",this.__updateViewModel(t,e)},setEditingRange(t,e){if(!1===this.range||!t)return void(this.editRange=void 0);const i=Object.assign({...this.viewModel},t),n=void 0!==e?Object.assign({...this.viewModel},e):i;this.editRange={init:i,initHash:this.__getDayHash(i),final:n,finalHash:this.__getDayHash(n)},this.setCalendarTo(i.year,i.month)},__getMask(){return"persian"===this.calendar?"YYYY/MM/DD":this.mask},__decodeString(t,e,i){return el(t,e,i,this.calendar,{hour:0,minute:0,second:0,millisecond:0})},__getViewModel(t,e){const i=!0===Array.isArray(this.value)?this.value:this.value?[this.value]:[];if(0===i.length)return this.__getDefaultViewModel();const n=this.__decodeString(void 0!==i[0].from?i[0].from:i[0],t,e);return null===n.dateHash?this.__getDefaultViewModel():n},__getDefaultViewModel(){let t,e;if(void 0!==this.defaultYearMonth){const i=this.defaultYearMonth.split("/");t=parseInt(i[0],10),e=parseInt(i[1],10)}else{const i=void 0!==this.today?this.today:this.__getCurrentDate();t=i.year,e=i.month}return{year:t,month:e,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:t+"/"+Fs(e)+"/01"}},__getHeader(t){if(!0!==this.minimal)return t("div",{staticClass:"q-date__header",class:this.headerClass},[t("div",{staticClass:"relative-position"},[t("transition",{props:{name:"q-transition--fade"}},[t("div",{key:"h-yr-"+this.headerSubtitle,staticClass:"q-date__header-subtitle q-date__header-link",class:"Years"===this.view?"q-date__header-link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:Ae(this,"vY",{click:()=>{this.view="Years"},keyup:t=>{13===t.keyCode&&(this.view="Years")}})},[this.headerSubtitle])])]),t("div",{staticClass:"q-date__header-title relative-position flex no-wrap"},[t("div",{staticClass:"relative-position col"},[t("transition",{props:{name:"q-transition--fade"}},[t("div",{key:"h-sub"+this.headerTitle,staticClass:"q-date__header-title-label q-date__header-link",class:"Calendar"===this.view?"q-date__header-link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:Ae(this,"vC",{click:()=>{this.view="Calendar"},keyup:t=>{13===t.keyCode&&(this.view="Calendar")}})},[this.headerTitle])])]),!0===this.todayBtn?t(bn,{staticClass:"q-date__header-today self-start",props:{icon:this.$q.iconSet.datetime.today,flat:!0,size:"sm",round:!0,tabindex:this.computedTabindex},on:Ae(this,"today",{click:this.setToday})}):null])])},__getNavigation(t,{label:e,view:i,key:n,dir:r,goTo:s,boundaries:o,cls:a}){return[t("div",{staticClass:"row items-center q-date__arrow"},[t(bn,{props:{round:!0,dense:!0,size:"sm",flat:!0,icon:this.dateArrow[0],tabindex:this.computedTabindex,disable:!1===o.prev},on:Ae(this,"go-#"+i,{click(){s(-1)}})})]),t("div",{staticClass:"relative-position overflow-hidden flex flex-center"+a},[t("transition",{props:{name:"q-transition--jump-"+r}},[t("div",{key:n},[t(bn,{props:{flat:!0,dense:!0,noCaps:!0,label:e,tabindex:this.computedTabindex},on:Ae(this,"view#"+i,{click:()=>{this.view=i}})})])])]),t("div",{staticClass:"row items-center q-date__arrow"},[t(bn,{props:{round:!0,dense:!0,size:"sm",flat:!0,icon:this.dateArrow[1],tabindex:this.computedTabindex,disable:!1===o.next},on:Ae(this,"go+#"+i,{click(){s(1)}})})])]},__getCalendarView(t){return[t("div",{key:"calendar-view",staticClass:"q-date__view q-date__calendar"},[t("div",{staticClass:"q-date__navigation row items-center no-wrap"},this.__getNavigation(t,{label:this.innerLocale.months[this.viewModel.month-1],view:"Months",key:this.viewModel.month,dir:this.monthDirection,goTo:this.__goToMonth,boundaries:this.navBoundaries.month,cls:" col"}).concat(this.__getNavigation(t,{label:this.viewModel.year,view:"Years",key:this.viewModel.year,dir:this.yearDirection,goTo:this.__goToYear,boundaries:this.navBoundaries.year,cls:""}))),t("div",{staticClass:"q-date__calendar-weekdays row items-center no-wrap"},this.daysOfWeek.map(e=>t("div",{staticClass:"q-date__calendar-item"},[t("div",[e])]))),t("div",{staticClass:"q-date__calendar-days-container relative-position overflow-hidden"},[t("transition",{props:{name:"q-transition--slide-"+this.monthDirection}},[t("div",{key:this.viewMonthHash,staticClass:"q-date__calendar-days fit"},this.days.map(e=>t("div",{staticClass:e.classes},[!0===e.in?t(bn,{staticClass:!0===e.today?"q-date__today":null,props:{dense:!0,flat:e.flat,unelevated:e.unelevated,color:e.color,textColor:e.textColor,label:e.i,tabindex:this.computedTabindex},on:Ae(this,"day#"+e.i,{click:()=>{this.__onDayClick(e.i)},mouseover:()=>{this.__onDayMouseover(e.i)}})},!1!==e.event?[t("div",{staticClass:"q-date__event bg-"+e.event})]:null):t("div",[e.i])])))])])])]},__getMonthsView(t){const e=this.viewModel.year===this.today.year,i=t=>void 0!==this.minNav&&this.viewModel.year===this.minNav.year&&this.minNav.month>t||void 0!==this.maxNav&&this.viewModel.year===this.maxNav.year&&this.maxNav.month<t,n=this.innerLocale.monthsShort.map((n,r)=>{const s=this.viewModel.month===r+1;return t("div",{staticClass:"q-date__months-item flex flex-center"},[t(bn,{staticClass:!0===e&&this.today.month===r+1?"q-date__today":null,props:{flat:!0!==s,label:n,unelevated:s,color:!0===s?this.computedColor:null,textColor:!0===s?this.computedTextColor:null,tabindex:this.computedTabindex,disable:i(r+1)},on:Ae(this,"month#"+r,{click:()=>{this.__setMonth(r+1)}})})])});return!0===this.yearsInMonthView&&n.unshift(t("div",{staticClass:"row no-wrap full-width"},[this.__getNavigation(t,{label:this.viewModel.year,view:"Years",key:this.viewModel.year,dir:this.yearDirection,goTo:this.__goToYear,boundaries:this.navBoundaries.year,cls:" col"})])),t("div",{key:"months-view",staticClass:"q-date__view q-date__months flex flex-center"},n)},__getYearsView(t){const e=this.startYear,i=e+ql,n=[],r=t=>void 0!==this.minNav&&this.minNav.year>t||void 0!==this.maxNav&&this.maxNav.year<t;for(let s=e;s<=i;s++){const e=this.viewModel.year===s;n.push(t("div",{staticClass:"q-date__years-item flex flex-center"},[t(bn,{key:"yr"+s,staticClass:this.today.year===s?"q-date__today":null,props:{flat:!e,label:s,dense:!0,unelevated:e,color:!0===e?this.computedColor:null,textColor:!0===e?this.computedTextColor:null,tabindex:this.computedTabindex,disable:r(s)},on:Ae(this,"yr#"+s,{click:()=>{this.__setYear(s)}})})]))}return t("div",{staticClass:"q-date__view q-date__years flex flex-center"},[t("div",{staticClass:"col-auto"},[t(bn,{props:{round:!0,dense:!0,flat:!0,icon:this.dateArrow[0],tabindex:this.computedTabindex,disable:r(e)},on:Ae(this,"y-",{click:()=>{this.startYear-=ql}})})]),t("div",{staticClass:"q-date__years-content col self-stretch row items-center"},n),t("div",{staticClass:"col-auto"},[t(bn,{props:{round:!0,dense:!0,flat:!0,icon:this.dateArrow[1],tabindex:this.computedTabindex,disable:r(i)},on:Ae(this,"y+",{click:()=>{this.startYear+=ql}})})])])},__goToMonth(t){let e=this.viewModel.year,i=Number(this.viewModel.month)+t;13===i?(i=1,e++):0===i&&(i=12,e--),this.__updateViewModel(e,i),!0===this.isImmediate&&this.__emitImmediately("month")},__goToYear(t){const e=Number(this.viewModel.year)+t;this.__updateViewModel(e,this.viewModel.month),!0===this.isImmediate&&this.__emitImmediately("year")},__setYear(t){this.__updateViewModel(t,this.viewModel.month),this.view="Years"===this.defaultView?"Months":"Calendar",!0===this.isImmediate&&this.__emitImmediately("year")},__setMonth(t){this.__updateViewModel(this.viewModel.year,t),this.view="Calendar",!0===this.isImmediate&&this.__emitImmediately("month")},__getMonthHash(t){return t.year+"/"+Fs(t.month)},__toggleDate(t,e){const i=this.daysMap[e],n=void 0!==i&&!0===i.includes(t.day)?this.__removeFromModel:this.__addToModel;n(t)},__getShortDate(t){return{year:t.year,month:t.month,day:t.day}},__onDayClick(t){const e={...this.viewModel,day:t};if(!1!==this.range)if(void 0===this.editRange){const i=this.days.find(e=>!0!==e.fill&&e.i===t);if(void 0!==i.range)return void this.__removeFromModel({target:e,from:i.range.from,to:i.range.to});if(!0===i.selected)return void this.__removeFromModel(e);const n=this.__getDayHash(e);this.editRange={init:e,initHash:n,final:e,finalHash:n},this.$emit("range-start",this.__getShortDate(e))}else{const t=this.editRange.initHash,i=this.__getDayHash(e),n=t<=i?{from:this.editRange.init,to:e}:{from:e,to:this.editRange.init};this.editRange=void 0,this.__addToModel(t===i?e:{target:e,...n}),this.$emit("range-end",{from:this.__getShortDate(n.from),to:this.__getShortDate(n.to)})}else this.__toggleDate(e,this.viewMonthHash)},__onDayMouseover(t){if(void 0!==this.editRange){const e={...this.viewModel,day:t};Object.assign(this.editRange,{final:e,finalHash:this.__getDayHash(e)})}},__updateViewModel(t,e,i){if(void 0!==this.minNav&&t<=this.minNav.year&&(t=this.minNav.year,e<this.minNav.month&&(e=this.minNav.month)),void 0!==this.maxNav&&t>=this.maxNav.year&&(t=this.maxNav.year,e>this.maxNav.month&&(e=this.maxNav.month)),void 0!==i){const{hour:t,minute:e,second:n,millisecond:r,timezoneOffset:s,timeHash:o}=i;Object.assign(this.viewModel,{hour:t,minute:e,second:n,millisecond:r,timezoneOffset:s,timeHash:o})}const n=t+"/"+Fs(e)+"/01";n!==this.viewModel.dateHash&&(this.monthDirection=this.viewModel.dateHash<n===(!0!==this.$q.lang.rtl)?"left":"right",t!==this.viewModel.year&&(this.yearDirection=this.monthDirection),this.$nextTick(()=>{this.startYear=t-t%ql-(t<0?ql:0),Object.assign(this.viewModel,{year:t,month:e,day:1,dateHash:n})}))},__emitValue(t,e,i){const n=null!==t&&1===t.length&&!1===this.multiple?t[0]:t;this.lastEmitValue=n;const{reason:r,details:s}=this.__getEmitParams(e,i);this.$emit("input",n,r,s)},__emitImmediately(t){const e=void 0!==this.daysModel[0]&&null!==this.daysModel[0].dateHash?{...this.daysModel[0]}:{...this.viewModel};this.$nextTick(()=>{e.year=this.viewModel.year,e.month=this.viewModel.month;const i="persian"!==this.calendar?new Date(e.year,e.month,0).getDate():Ea(e.year,e.month);e.day=Math.min(Math.max(1,e.day),i);const n=this.__encodeEntry(e);this.lastEmitValue=n;const{details:r}=this.__getEmitParams("",e);this.$emit("input",n,t,r)})},__getEmitParams(t,e){return void 0!==e.from?{reason:t+"-range",details:{...this.__getShortDate(e.target),from:this.__getShortDate(e.from),to:this.__getShortDate(e.to),changed:!0}}:{reason:t+"-day",details:{...this.__getShortDate(e),changed:!0}}},__encodeEntry(t,e,i){return void 0!==t.from?{from:this.encodeObjectFn(t.from,e,i),to:this.encodeObjectFn(t.to,e,i)}:this.encodeObjectFn(t,e,i)},__addToModel(t){let e;if(!0===this.multiple)if(void 0!==t.from){const i=this.__getDayHash(t.from),n=this.__getDayHash(t.to),r=this.daysModel.filter(t=>t.dateHash<i||t.dateHash>n),s=this.rangeModel.filter(({from:t,to:e})=>e.dateHash<i||t.dateHash>n);e=r.concat(s).concat(t).map(t=>this.__encodeEntry(t))}else{const i=this.normalizedModel.slice();i.push(this.__encodeEntry(t)),e=i}else e=this.__encodeEntry(t);this.__emitValue(e,"add",t)},__removeFromModel(t){if(!0===this.noUnset)return;let e=null;if(!0===this.multiple&&!0===Array.isArray(this.value)){const i=this.__encodeEntry(t);e=void 0!==t.from?this.value.filter(t=>void 0===t.from||t.from!==i.from&&t.to!==i.to):this.value.filter(t=>t!==i),0===e.length&&(e=null)}this.__emitValue(e,"remove",t)},__updateValue(t,e,i){const n=this.daysModel.concat(this.rangeModel).map(i=>this.__encodeEntry(i,t,e)).filter(t=>void 0!==t.from?null!==t.from.dateHash&&null!==t.to.dateHash:null!==t.dateHash);this.$emit("input",(!0===this.multiple?n:n[0])||null,i)}},render(t){const e=[t("div",{staticClass:"q-date__content col relative-position"},[t("transition",{props:{name:"q-transition--fade"}},[this[`__get${this.view}View`](t)])])],i=Re(this,"default");return void 0!==i&&e.push(t("div",{staticClass:"q-date__actions"},i)),void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(e,"push"),t("div",{class:this.classes,attrs:this.attrs,on:{...this.qListeners}},[this.__getHeader(t),t("div",{staticClass:"q-date__main col column",attrs:{tabindex:-1},ref:"blurTarget"},e)])}});const $l={role:"toolbar"};var Dl=he.a.extend({name:"QBar",mixins:[De,Cr],props:{dense:Boolean},computed:{classes(){return`q-bar--${!0===this.dense?"dense":"standard"} q-bar--`+(!0===this.isDark?"dark":"light")}},render(t){return t("div",{staticClass:"q-bar row no-wrap items-center",class:this.classes,attrs:$l,on:{...this.qListeners}},Re(this,"default"))}}),Rl=he.a.extend({name:"QSpace",mixins:[De],render(t){return t("div",{staticClass:"q-space",on:{...this.qListeners}})}});const Pl={role:"tooltip"};var Ol=he.a.extend({name:"QTooltip",mixins:[ls,yn,wn,$n,mr],props:{maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:ws},self:{type:String,default:"top middle",validator:ws},offset:{type:Array,default:()=>[14,14],validator:Ss},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0}},computed:{anchorOrigin(){return Cs(this.anchor,this.$q.lang.rtl)},selfOrigin(){return Cs(this.self,this.$q.lang.rtl)},hideOnRouteChange(){return!0!==this.persistent}},methods:{__show(t){this.__showPortal(),this.__registerTick(()=>{this.observer=new MutationObserver(()=>this.updatePosition()),this.observer.observe(this.__portal.$el,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),this.updatePosition(),this.__configureScrollTarget()}),void 0===this.unwatch&&(this.unwatch=this.$watch(()=>this.$q.screen.width+"|"+this.$q.screen.height+"|"+this.self+"|"+this.anchor+"|"+this.$q.lang.rtl,this.updatePosition)),this.__registerTimeout(()=>{this.__showPortal(!0),this.$emit("show",t)},300)},__hide(t){this.__removeTick(),this.__anchorCleanup(),this.__hidePortal(),this.__registerTimeout(()=>{this.__hidePortal(!0),this.$emit("hide",t)},300)},__anchorCleanup(){void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0),void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0),this.__unconfigureScrollTarget(),Si(this,"tooltipTemp")},updatePosition(){if(void 0===this.anchorEl||void 0===this.__portal)return;const t=this.__portal.$el;8!==t.nodeType?Ms({el:t,offset:this.offset,anchorEl:this.anchorEl,anchorOrigin:this.anchorOrigin,selfOrigin:this.selfOrigin,maxHeight:this.maxHeight,maxWidth:this.maxWidth}):setTimeout(this.updatePosition,25)},__delayShow(t){if(!0===this.$q.platform.is.mobile){as(),document.body.classList.add("non-selectable");const t=this.anchorEl,e=["touchmove","touchcancel","touchend","click"].map(e=>[t,e,"__delayHide","passiveCapture"]);wi(this,"tooltipTemp",e)}this.__registerTimeout(()=>{this.show(t)},this.delay)},__delayHide(t){!0===this.$q.platform.is.mobile&&(Si(this,"tooltipTemp"),as(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),this.__registerTimeout(()=>{this.hide(t)},this.hideDelay)},__configureAnchorEl(){if(!0===this.noParentEvent||void 0===this.anchorEl)return;const t=!0===this.$q.platform.is.mobile?[[this.anchorEl,"touchstart","__delayShow","passive"]]:[[this.anchorEl,"mouseenter","__delayShow","passive"],[this.anchorEl,"mouseleave","__delayHide","passive"]];wi(this,"anchor",t)},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__changeScrollEvent(this.__scrollTarget),this.__scrollTarget=void 0)},__configureScrollTarget(){if(void 0!==this.anchorEl||void 0!==this.scrollTarget){this.__scrollTarget=On(this.anchorEl,this.scrollTarget);const t=!0===this.noParentEvent?this.updatePosition:this.hide;this.__changeScrollEvent(this.__scrollTarget,t)}},__renderPortal(t){return t("transition",{props:{...this.transitionProps}},[!0===this.showing?t("div",{staticClass:"q-tooltip q-tooltip--style q-position-engine no-pointer-events",class:this.contentClass,style:this.contentStyle,attrs:Pl},Re(this,"default")):null])}},created(){this.__useTick("__registerTick","__removeTick"),this.__useTimeout("__registerTimeout")},mounted(){this.__processModelChange(this.value)}}),Ll={data(){return{canRender:!_e}},mounted(){!1===this.canRender&&(this.canRender=!0)}},Bl=he.a.extend({name:"QResizeObserver",mixins:[Ll],props:{debounce:{type:[String,Number],default:100}},data(){return!0===this.hasObserver?{}:{url:!0===this.$q.platform.is.ie?null:"about:blank"}},methods:{trigger(t){!0===t||0===this.debounce||"0"===this.debounce?this.__emit():null===this.timer&&(this.timer=setTimeout(this.__emit,this.debounce))},__emit(){if(null!==this.timer&&(clearTimeout(this.timer),this.timer=null),!this.$el||!this.$el.parentNode)return;const t=this.$el.parentNode,e={width:t.offsetWidth,height:t.offsetHeight};e.width===this.size.width&&e.height===this.size.height||(this.size=e,this.$emit("resize",this.size))},__cleanup(){void 0!==this.curDocView&&(void 0!==this.curDocView.removeEventListener&&this.curDocView.removeEventListener("resize",this.trigger,ci.passive),this.curDocView=void 0)},__onObjLoad(){this.__cleanup(),this.$el.contentDocument&&(this.curDocView=this.$el.contentDocument.defaultView,this.curDocView.addEventListener("resize",this.trigger,ci.passive)),this.__emit()}},render(t){if(!1!==this.canRender&&!0!==this.hasObserver)return t("object",{style:this.style,attrs:{tabindex:-1,type:"text/html",data:this.url,"aria-hidden":"true"},on:Ae(this,"load",{load:this.__onObjLoad})})},beforeCreate(){this.size={width:-1,height:-1},!0!==ge&&(this.hasObserver="undefined"!==typeof ResizeObserver,!0!==this.hasObserver&&(this.style=(this.$q.platform.is.ie?"visibility:hidden;":"")+"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;"))},mounted(){if(this.timer=null,!0===this.hasObserver)return this.observer=new ResizeObserver(this.trigger),this.observer.observe(this.$el.parentNode),void this.__emit();!0===this.$q.platform.is.ie?(this.url="about:blank",this.__emit()):this.__onObjLoad()},beforeDestroy(){clearTimeout(this.timer),!0!==this.hasObserver?this.__cleanup():void 0!==this.observer&&this.$el.parentNode&&this.observer.unobserve(this.$el.parentNode)}});const{passive:jl}=ci;var zl=he.a.extend({name:"QScrollObserver",props:{debounce:[String,Number],horizontal:Boolean,scrollTarget:{default:void 0}},render:hi,data(){return{pos:0,dir:!0===this.horizontal?"right":"down",dirChanged:!1,dirChangePos:0}},watch:{scrollTarget(){this.__unconfigureScrollTarget(),this.__configureScrollTarget()},"$q.lang.rtl"(){this.__emit()}},methods:{getPosition(){return{position:this.pos,direction:this.dir,directionChanged:this.dirChanged,inflexionPosition:this.dirChangePos}},trigger(t){if(!0===t||0===this.debounce||"0"===this.debounce)this.__emit();else if(void 0===this.clearTimer){const[t,e]=this.debounce?[setTimeout(this.__emit,this.debounce),clearTimeout]:[requestAnimationFrame(this.__emit),cancelAnimationFrame];this.clearTimer=()=>{e(t),this.clearTimer=void 0}}},__emit(){void 0!==this.clearTimer&&this.clearTimer();const t=!0===this.horizontal?jn:Bn,e=Math.max(0,t(this.__scrollTarget)),i=e-this.pos,n=!0===this.horizontal?i<0?"left":"right":i<0?"up":"down";this.dirChanged=this.dir!==n,this.dirChanged&&(this.dir=n,this.dirChangePos=this.pos),this.pos=e,this.$emit("scroll",this.getPosition())},__configureScrollTarget(){this.__scrollTarget=On(this.$el.parentNode,this.scrollTarget),this.__scrollTarget.addEventListener("scroll",this.trigger,jl),this.trigger(!0)},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__scrollTarget.removeEventListener("scroll",this.trigger,jl),this.__scrollTarget=void 0)}},mounted(){this.__configureScrollTarget()},beforeDestroy(){void 0!==this.clearTimer&&this.clearTimer(),this.__unconfigureScrollTarget()}});const Fl=["left","right","up","down","horizontal","vertical"],Vl={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0,all:!0},Hl=["INPUT","TEXTAREA"];function Ul(t){const e={};return Fl.forEach(i=>{t[i]&&(e[i]=!0)}),0===Object.keys(e).length?Vl:(!0===e.horizontal&&(e.left=e.right=!0),!0===e.vertical&&(e.up=e.down=!0),!0===e.left&&!0===e.right&&(e.horizontal=!0),!0===e.up&&!0===e.down&&(e.vertical=!0),!0===e.horizontal&&!0===e.vertical&&(e.all=!0),e)}function Ql(t,e){return void 0===e.event&&void 0!==t.target&&!0!==t.target.draggable&&"function"===typeof e.handler&&!1===Hl.includes(t.target.nodeName.toUpperCase())&&(void 0===t.qClonedBy||-1===t.qClonedBy.indexOf(e.uid))}function Wl(t,e,i){const n=pi(t);let r,s=n.left-e.event.x,o=n.top-e.event.y,a=Math.abs(s),l=Math.abs(o);const c=e.direction;!0===c.horizontal&&!0!==c.vertical?r=s<0?"left":"right":!0!==c.horizontal&&!0===c.vertical?r=o<0?"up":"down":!0===c.up&&o<0?(r="up",a>l&&(!0===c.left&&s<0?r="left":!0===c.right&&s>0&&(r="right"))):!0===c.down&&o>0?(r="down",a>l&&(!0===c.left&&s<0?r="left":!0===c.right&&s>0&&(r="right"))):!0===c.left&&s<0?(r="left",a<l&&(!0===c.up&&o<0?r="up":!0===c.down&&o>0&&(r="down"))):!0===c.right&&s>0&&(r="right",a<l&&(!0===c.up&&o<0?r="up":!0===c.down&&o>0&&(r="down")));let u=!1;if(void 0===r&&!1===i){if(!0===e.event.isFirst||void 0===e.event.lastDir)return{};r=e.event.lastDir,u=!0,"left"===r||"right"===r?(n.left-=s,a=0,s=0):(n.top-=o,l=0,o=0)}return{synthetic:u,payload:{evt:t,touch:!0!==e.event.mouse,mouse:!0===e.event.mouse,position:n,direction:r,isFirst:e.event.isFirst,isFinal:!0===i,duration:Date.now()-e.event.time,distance:{x:a,y:l},offset:{x:s,y:o},delta:{x:n.left-e.event.lastX,y:n.top-e.event.lastY}}}}function Yl(t){const e=t.__qtouchpan;void 0!==e&&(void 0!==e.event&&e.end(),Si(e,"main"),Si(e,"temp"),!0===Ee.is.firefox&&_i(t,!1),void 0!==e.styleCleanup&&e.styleCleanup(),delete t.__qtouchpan)}let Kl=0;var Xl={name:"touch-pan",bind(t,{value:e,modifiers:i}){if(void 0!==t.__qtouchpan&&(Yl(t),t.__qtouchpan_destroyed=!0),!0!==i.mouse&&!0!==Ee.has.touch)return;function n(t,e){!0===i.mouse&&!0===e?vi(t):(!0===i.stop&&mi(t),!0===i.prevent&&gi(t))}const r={uid:"qvtp_"+Kl++,handler:e,modifiers:i,direction:Ul(i),noop:hi,mouseStart(t){Ql(t,r)&&di(t)&&(wi(r,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),r.start(t,!0))},touchStart(t){if(Ql(t,r)){const e=t.target;wi(r,"temp",[[e,"touchmove","move","notPassiveCapture"],[e,"touchcancel","end","passiveCapture"],[e,"touchend","end","passiveCapture"]]),r.start(t)}},start(e,n){!0===Ee.is.firefox&&_i(t,!0),r.lastEvt=e;const s=pi(e);if(!0===n||!0===i.stop){if(!0!==r.direction.all&&(!0!==n||!0!==r.modifiers.mouseAllDir&&!0!==r.modifiers.mousealldir)){const t=e.type.indexOf("mouse")>-1?new MouseEvent(e.type,e):new TouchEvent(e.type,e);!0===e.defaultPrevented&&gi(t),!0===e.cancelBubble&&mi(t),t.qClonedBy=void 0===e.qClonedBy?[r.uid]:e.qClonedBy.concat(r.uid),t.qKeyEvent=e.qKeyEvent,t.qClickOutside=e.qClickOutside,r.initialEvent={target:e.target,event:t}}mi(e)}r.event={x:s.left,y:s.top,time:Date.now(),mouse:!0===n,detected:!1,isFirst:!0,isFinal:!1,lastX:s.left,lastY:s.top}},move(t){if(void 0===r.event)return;r.lastEvt=t;const e=!0===r.event.mouse,i=()=>{let i;n(t,e),!0!==r.modifiers.preserveCursor&&!0!==r.modifiers.preservecursor&&(i=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),!0===e&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),as(),r.styleCleanup=t=>{if(r.styleCleanup=void 0,void 0!==i&&(document.documentElement.style.cursor=i),document.body.classList.remove("non-selectable"),!0===e){const e=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==t?setTimeout(()=>{e(),t()},50):e()}else void 0!==t&&t()}};if(!0===r.event.detected){!0!==r.event.isFirst&&n(t,r.event.mouse);const{payload:e,synthetic:s}=Wl(t,r,!1);return void(void 0!==e&&(!1===r.handler(e)?r.end(t):(void 0===r.styleCleanup&&!0===r.event.isFirst&&i(),r.event.lastX=e.position.left,r.event.lastY=e.position.top,r.event.lastDir=!0===s?void 0:e.direction,r.event.isFirst=!1)))}if(!0===r.direction.all||!0===e&&(!0===r.modifiers.mouseAllDir||!0===r.modifiers.mousealldir))return i(),r.event.detected=!0,void r.move(t);const s=pi(t),o=s.left-r.event.x,a=s.top-r.event.y,l=Math.abs(o),c=Math.abs(a);l!==c&&(!0===r.direction.horizontal&&l>c||!0===r.direction.vertical&&l<c||!0===r.direction.up&&l<c&&a<0||!0===r.direction.down&&l<c&&a>0||!0===r.direction.left&&l>c&&o<0||!0===r.direction.right&&l>c&&o>0?(r.event.detected=!0,r.move(t)):r.end(t,!0))},end(e,i){if(void 0!==r.event){if(Si(r,"temp"),!0===Ee.is.firefox&&_i(t,!1),!0===i)void 0!==r.styleCleanup&&r.styleCleanup(),!0!==r.event.detected&&void 0!==r.initialEvent&&r.initialEvent.target.dispatchEvent(r.initialEvent.event);else if(!0===r.event.detected){!0===r.event.isFirst&&r.handler(Wl(void 0===e?r.lastEvt:e,r).payload);const{payload:t}=Wl(void 0===e?r.lastEvt:e,r,!0),i=()=>{r.handler(t)};void 0!==r.styleCleanup?r.styleCleanup(i):i()}r.event=void 0,r.initialEvent=void 0,r.lastEvt=void 0}}};t.__qtouchpan=r,!0===i.mouse&&wi(r,"main",[[t,"mousedown","mouseStart","passive"+(!0===i.mouseCapture||!0===i.mousecapture?"Capture":"")]]),!0===Ee.has.touch&&wi(r,"main",[[t,"touchstart","touchStart","passive"+(!0===i.capture?"Capture":"")],[t,"touchmove","noop","notPassiveCapture"]])},update(t,{oldValue:e,value:i}){const n=t.__qtouchpan;void 0!==n&&e!==i&&("function"!==typeof i&&n.end(),n.handler=i)},unbind(t){void 0===t.__qtouchpan_destroyed?Yl(t):delete t.__qtouchpan_destroyed}};const Gl=t=>t>=250?50:Math.ceil(t/5),Zl=["vertical","horizontal"],Jl={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}};var tc=he.a.extend({name:"QScrollArea",mixins:[Cr],directives:{TouchPan:Xl},props:{thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},horizontal:Boolean,tabindex:[String,Number]},data(){return{tempShowing:!1,panning:!1,hover:!1,container:{vertical:0,horizontal:0},scroll:{vertical:{position:0,size:0},horizontal:{position:0,size:0}}}},computed:{classes(){return"q-scrollarea"+(!0===this.isDark?" q-scrollarea--dark":"")},verticalScrollPercentage(){const t=this.scroll.vertical.size-this.container.vertical;if(t<=0)return 0;const e=js(this.scroll.vertical.position/t,0,1);return Math.round(1e4*e)/1e4},horizontalScrollPercentage(){const t=this.scroll.horizontal.size-this.container.horizontal;if(t<=0)return 0;const e=js(Math.abs(this.scroll.horizontal.position)/t,0,1);return Math.round(1e4*e)/1e4},verticalThumbHidden(){return!0!==(null===this.visible?this.hover:this.visible)&&!1===this.tempShowing&&!1===this.panning||this.scroll.vertical.size<=this.container.vertical+1},horizontalThumbHidden(){return!0!==(null===this.visible?this.hover:this.visible)&&!1===this.tempShowing&&!1===this.panning||this.scroll.horizontal.size<=this.container.horizontal+1},verticalThumbStart(){return this.verticalScrollPercentage*(this.container.vertical-this.verticalThumbSize)},horizontalThumbStart(){return this.horizontalScrollPercentage*(this.container.horizontal-this.horizontalThumbSize)},verticalThumbSize(){return Math.round(js(this.container.vertical*this.container.vertical/this.scroll.vertical.size,Gl(this.container.vertical),this.container.vertical))},horizontalThumbSize(){return Math.round(js(this.container.horizontal*this.container.horizontal/this.scroll.horizontal.size,Gl(this.container.horizontal),this.container.horizontal))},verticalStyle(){return{...this.thumbStyle,...this.verticalThumbStyle,top:this.verticalThumbStart+"px",height:this.verticalThumbSize+"px"}},horizontalStyle(){return{...this.thumbStyle,...this.horizontalThumbStyle,[!0===this.$q.lang.rtl?"right":"left"]:this.horizontalThumbStart+"px",width:this.horizontalThumbSize+"px"}},verticalThumbClass(){return"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(!0===this.verticalThumbHidden?" q-scrollarea__thumb--invisible":"")},horizontalThumbClass(){return"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(!0===this.horizontalThumbHidden?" q-scrollarea__thumb--invisible":"")},verticalBarClass(){return"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(!0===this.verticalThumbHidden?" q-scrollarea__bar--invisible":"")},horizontalBarClass(){return"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(!0===this.horizontalThumbHidden?" q-scrollarea__bar--invisible":"")},scrollComputed(){return{vertical:{...this.scroll.vertical,percentage:this.verticalScrollPercentage,thumbHidden:this.verticalThumbHidden,thumbStart:this.verticalThumbStart,thumbSize:this.verticalThumbSize,style:this.verticalStyle,thumbClass:this.verticalThumbClass,barClass:this.verticalBarClass},horizontal:{...this.scroll.horizontal,percentage:this.horizontalScrollPercentage,thumbHidden:this.horizontalThumbHidden,thumbStart:this.horizontalThumbStart,thumbSize:this.horizontalThumbSize,style:this.horizontalStyle,thumbClass:this.horizontalThumbClass,barClass:this.horizontalBarClass}}},mainStyle(){return!0===this.verticalThumbHidden&&!0===this.horizontalThumbHidden?this.contentStyle:this.contentActiveStyle},verticalThumbDirectives(){return[{name:"touch-pan",modifiers:{vertical:!0,prevent:!0,mouse:!0,mouseAllDir:!0},value:t=>{this.__panThumb(t,"vertical")}}]},horizontalThumbDirectives(){return[{name:"touch-pan",modifiers:{horizontal:!0,prevent:!0,mouse:!0,mouseAllDir:!0},value:t=>{this.__panThumb(t,"horizontal")}}]},scrollAttrs(){if(void 0!==this.tabindex)return{tabindex:this.tabindex}}},watch:{"$q.lang.rtl"(t){this.setScrollPosition("horizontal",Math.abs(this.scroll.horizontal.position)*(!0===t?-1:1))}},methods:{getScrollTarget(){return this.$refs.target},getScroll(){const t={};return Zl.forEach(e=>{const i=this.scrollComputed[e];t[e+"Position"]=i.position,t[e+"Percentage"]=i.percentage,t[e+"Size"]=i.size,t[e+"ContainerSize"]=this.container[e]}),t},getScrollPosition(t){return"both"===t?{top:this.scroll.vertical.position,left:this.scroll.horizontal.position}:(!0!==Zl.includes(t)&&(t=!0===this.horizontal?"horizontal":"vertical"),this.scroll[t].position)},getScrollPercentage(t){return"both"===t?{top:this.verticalScrollPercentage,left:this.horizontalScrollPercentage}:(!0!==Zl.includes(t)&&(t=!0===this.horizontal?"horizontal":"vertical"),this[t+"ScrollPercentage"])},setScrollPosition(t,e,i){if(!1===Zl.includes(t)){if(!0===isNaN(t))return void console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");[t,e,i]=[!0===this.horizontal?"horizontal":"vertical",t,e]}const n="vertical"===t?Un:Qn;n(this.$refs.target,e,i)},setScrollPercentage(t,e,i){if(!1===Zl.includes(t)){if(!0===isNaN(t))return void console.error("[QScrollArea]: wrong first param of setScrollPercentage (vertical/horizontal)");[t,e,i]=[!0===this.horizontal?"horizontal":"vertical",t,e]}this.setScrollPosition(t,e*(this.scroll[t].size-this.container[t])*("horizontal"===t&&!0===this.$q.lang.rtl?-1:1),i)},__updateContainer({height:t,width:e}){let i=!1;this.container.vertical!==t&&(this.container.vertical=t,i=!0),this.container.horizontal!==e&&(this.container.horizontal=e,i=!0),!0===i&&this.__startTimer()},__updateVerticalScroll({position:t}){this.scroll.vertical.position!==t&&(this.scroll.vertical.position=t,this.__startTimer())},__updateHorizontalScroll({position:t}){this.scroll.horizontal.position!==t&&(this.scroll.horizontal.position=t,this.__startTimer())},__updateScrollSize({height:t,width:e}){let i=!1;this.scroll.horizontal.size!==e&&(this.scroll.horizontal.size=e,i=!0),this.scroll.vertical.size!==t&&(this.scroll.vertical.size=t,i=!0),!0===i&&this.__startTimer()},__panThumb(t,e){const i=this.scrollComputed[e];if(!0===t.isFinal){if(!0!==this.panning)return;this.panning=!1}else if(!0===t.isFirst){if(!0===i.thumbHidden)return;this.refPos=i.position,this.panning=!0}else if(!0!==this.panning)return;const n=Jl[e],r=this.container[e],s=(i.size-r)/(r-i.thumbSize),o=t.distance[n.dist],a=this.refPos+(t.direction===n.dir?1:-1)*o*s;this.__setScroll(a,e)},__mouseDown(t,e){const i=this.scrollComputed[e];if(!0!==i.thumbHidden){const n=t[Jl[e].offset];if(n<i.thumbStart||n>i.thumbStart+i.thumbSize){const t=n-i.thumbSize/2;this.__setScroll(t/this.container[e]*i.size,e)}const r="vertical"===e?this.$refs.verticalThumb:this.$refs.horizontalThumb;void 0!==r&&r.dispatchEvent(new MouseEvent(t.type,t))}},__verticalMouseDown(t){this.__mouseDown(t,"vertical")},__horizontalMouseDown(t){this.__mouseDown(t,"horizontal")},__startTimer(){!0===this.tempShowing?clearTimeout(this.timer):this.tempShowing=!0,this.timer=setTimeout(()=>{this.tempShowing=!1},this.delay),void 0!==this.$listeners.scroll&&this.__emitScroll()},__setScroll(t,e){this.$refs.target[Jl[e].scroll]=t},__mouseEnter(){this.hover=!0},__mouseLeave(){this.hover=!1}},render(t){return t("div",{class:this.classes,on:Ae(this,"desk",{mouseenter:this.__mouseEnter,mouseleave:this.__mouseLeave})},[t("div",{ref:"target",staticClass:"q-scrollarea__container scroll relative-position fit hide-scrollbar",attrs:this.scrollAttrs},[t("div",{staticClass:"q-scrollarea__content absolute",style:this.mainStyle},Oe([t(Bl,{props:{debounce:0},on:Ae(this,"resizeIn",{resize:this.__updateScrollSize})})],this,"default")),t(zl,{on:Ae(this,"scrollV",{scroll:this.__updateVerticalScroll})}),t(zl,{props:{horizontal:!0},on:Ae(this,"scrollH",{scroll:this.__updateHorizontalScroll})})]),t(Bl,{props:{debounce:0},on:Ae(this,"resizeOut",{resize:this.__updateContainer})}),t("div",{class:this.verticalBarClass,style:[this.barStyle,this.verticalBarStyle],attrs:dr,on:Ae(this,"barV",{mousedown:this.__verticalMouseDown})}),t("div",{class:this.horizontalBarClass,style:[this.barStyle,this.horizontalBarStyle],attrs:dr,on:Ae(this,"barH",{mousedown:this.__horizontalMouseDown})}),t("div",{ref:"verticalThumb",class:this.verticalThumbClass,style:this.verticalStyle,attrs:dr,directives:this.verticalThumbDirectives}),t("div",{ref:"horizontalThumb",class:this.horizontalThumbClass,style:this.horizontalStyle,attrs:dr,directives:this.horizontalThumbDirectives})])},created(){this.__emitScroll=Ei(()=>{const t=this.getScroll();t.ref=this,this.$emit("scroll",t)},0)},activated(){if(void 0===this.__scrollPosition)return;const t=this.getScrollTarget();void 0!==t&&(Qn(t,this.__scrollPosition.left),Un(t,this.__scrollPosition.top))},deactivated(){this.__scrollPosition=this.getScrollPosition("both")},beforeDestroy(){this.__emitScroll.cancel(),clearTimeout(this.timer)}});function ec(t){if(!1===t)return 0;if(!0===t||void 0===t)return 1;const e=parseInt(t,10);return isNaN(e)?0:e}function ic(t){const e=t.__qclosepopup;void 0!==e&&(t.removeEventListener("click",e.handler),t.removeEventListener("keyup",e.handlerKey),delete t.__qclosepopup)}var nc={name:"close-popup",bind(t,{value:e},i){void 0!==t.__qclosepopup&&(ic(t),t.__qclosepopup_destroyed=!0);const n={depth:ec(e),handler(t){0!==n.depth&&setTimeout(()=>{In(i.componentInstance||i.context,t,n.depth)})},handlerKey(t){!0===ki(t,13)&&n.handler(t)}};t.__qclosepopup=n,t.addEventListener("click",n.handler),t.addEventListener("keyup",n.handlerKey)},update(t,{value:e,oldValue:i}){void 0!==t.__qclosepopup&&e!==i&&(t.__qclosepopup.depth=ec(e))},unbind(t){void 0===t.__qclosepopup_destroyed?ic(t):delete t.__qclosepopup_destroyed}},rc=ce(Sa,na,ra,!1,null,"5045c0ca",null),sc=rc.exports;ta()(rc,"components",{QCard:kr,QCardSection:Mr,QSeparator:po,QTable:Ro,QSelect:ao,QInput:Wo,QIcon:Je,QPopupProxy:xa,QDate:Nl,QBtn:bn,QInnerLoading:Go,QTh:Or,QTd:Xo,QChip:ns,QPagination:Ko,QDialog:xr,QBar:Dl,QSpace:Rl,QTooltip:Ol,QScrollArea:tc}),ta()(rc,"directives",{ClosePopup:nc});var oc=function(){var t=this,e=t._self._c;return e("div",[e("transition",{attrs:{name:"fade"}},[t.isShow?e("div",{style:t.postitCss()},[e("q-card",{attrs:{flat:"",bordered:""}},[e("q-bar",{style:t.barColorBg,on:{mousedown:function(e){return t.onclickArea(e)},mouseup:function(e){t.conMove=!1}}},[e("q-space")],1),e("q-card-section",{staticClass:"bg-grey-3 q-py-sm flex items-center justify-between"},[e("span",{staticClass:"text-h6"},[t._t("header",(function(){return[t._v("標題主旨")]}))],2),e("q-btn",{attrs:{dense:"",size:"xs",icon:"close",color:"blue-grey-3",unelevated:"",rounded:""},on:{click:t.close}},[e("q-tooltip",[t._v("關閉")])],1)],1),e("q-separator"),e("q-scroll-area",{style:t.mainStyle},[e("q-card-section",[t._t("main")],2)],1)],1)],1):t._e()])],1)},ac=[],lc={props:["isShow","boxw","boxh","px","py","barColor"],name:"moveCard",data(){return{postits:{x:0,y:0,z:10},startMousePos:{x:0,y:0},conMove:!1}},computed:{barColorBg(){return{backgroundColor:this.barColor||"#37474f",cursor:"move"}},mainStyle(){let t=this.boxh;return t||(t=100),{height:t-100+"px",maxHeight:"calc(100vh - 84px)"}}},methods:{postitCss(){return{left:this.postits.x+"px",top:this.postits.y+"px",zIndex:this.postits.z+9999,position:"fixed",width:this.boxw+"px"||"300px",maxWidth:"100vw",height:this.boxh+"px"||"500px",maxHeight:"100vh",overflow:"auto"}},onclickArea(t){this.conMove=!0,this.startMousePos.x=t.offsetX,this.startMousePos.y=t.offsetY,this.move()},move(){window.onmousemove=t=>{this.conMove&&(this.postits.x=t.pageX-this.startMousePos.x,this.postits.y=t.pageY-this.startMousePos.y)}},close(){this.postits={x:this.px||0,y:this.py||0,z:10},this.$emit("close")}},created(){this.postits={x:this.px||0,y:this.py||0,z:10}}},cc=lc,uc=(i("0897"),ce(cc,oc,ac,!1,null,"20bbbcc0",null)),hc=uc.exports;ta()(uc,"components",{QCard:kr,QBar:Dl,QSpace:Rl,QCardSection:Mr,QBtn:bn,QTooltip:Ol,QSeparator:po,QScrollArea:tc});var dc=function(){var t=this,e=t._self._c;return e("div",[e("q-btn",{attrs:{dense:"",flat:"",icon:"autorenew",label:"系統切換",color:t.btnColor||"white"},on:{click:t.showModel}}),e("q-dialog",{attrs:{persistent:""},on:{"before-show":t.getBaseInfo},model:{value:t.poupSwch.isShow,callback:function(e){t.$set(t.poupSwch,"isShow",e)},expression:"poupSwch.isShow"}},[e("q-card",{staticStyle:{width:"500px","max-width":"90vw"}},[e("q-toolbar",{staticClass:"bg-light-blue-10 text-white"},[e("q-toolbar-title",[e("span",{staticClass:"text-weight-bold"},[t._v("系統切換列表")])]),e("q-btn",{attrs:{flat:"",round:"",dense:"",icon:"close"},on:{click:t.close}})],1),e("q-tabs",{staticClass:"text-grey bg-white",attrs:{dense:"","active-color":"primary","indicator-color":"primary",align:"justify","narrow-indicator":""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabsName,(function(t,i){return e("q-tab",{key:i,attrs:{name:t,label:t}})})),1),e("q-separator"),e("q-tab-panels",{staticClass:"bg-grey-4",attrs:{animated:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabPanelsContent,(function(i){return e("q-tab-panel",{key:i.systemSn,attrs:{name:i.name}},[e("q-card-section",{staticClass:"q-pa-none",staticStyle:{height:"500px",overflow:"auto"}},t._l(i.list,(function(i){return e("div",{key:i.systemSn},[e("q-card",{staticClass:"swSysCard",attrs:{flat:"",bordered:""},on:{click:function(e){return t.switchOutSystem(i)}}},[e("q-card-section",{staticClass:"row items-center q-pa-sm"},[e("q-avatar",{attrs:{rounded:"",color:"blue-9","text-color":"white"}},[e("q-icon",{attrs:{name:i.iconUrl,size:"34px"}})],1),e("section",{staticClass:"q-ml-md"},[e("span",{staticClass:"text-grey-6",staticStyle:{"font-size":"10px"}},[e("div",[e("span",[t._v("系統類別:")]),e("span",[t._v(" "+t._s(i.systemGroupCNa))])])]),e("div",{staticClass:"text-h6 systemName"},[t._v(t._s(i.systemName))])])],1)],1)],1)})),0)],1)})),1),e("q-inner-loading",{attrs:{showing:t.showLoaging}},[e("q-spinner-hourglass",{attrs:{size:"50px",color:"primary"}})],1)],1)],1)],1)},pc=[],fc=i("2ef0"),mc=i.n(fc),gc={props:["btnColor","token","refToken"],name:"switchSys",data(){return{tab:"mails",poupSwch:{isShow:!1},sysList:[],showLoaging:!1}},computed:{fjuBaseApi(){let t=location.hostname;return"localhost"==t||"140.136.240.22"==t||"sf446lab.fju.edu.tw"==t||"sf446lab2.fju.edu.tw"==t?"https://api-gateway-dev.fju.edu.tw/FjuBase/api":"https://travellerLink.fju.edu.tw/FjuBase/api"},api(){const t=oe.create({baseURL:this.fjuBaseApi});return t.defaults.headers.common["Authorization"]="Bearer "+this.token,t},tabsName(){let t=this.sysList.map(t=>t.systemGroupCNa);return mc.a.uniq(t)},tabPanelsContent(){const t=mc.a.groupBy(this.sysList,"systemGroupCNa"),e=mc.a.map(t,(t,e)=>({name:e,list:t}));return e}},methods:{async getBaseInfo(){},async getSysInfo(){this.showLoaging=!0;let t=await this.api.get("Account/GetUserInfo"),{systemInfos:e}=t.data.result,i=[];for(let n in e)i.push(e[n]);this.sysList=i,this.tab=this.tabsName[0],this.showLoaging=!1},async showModel(){this.poupSwch.isShow=!0,this.getSysInfo()},async switchOutSystem(t){this.showLoaging=!0;let e=await this.api.post(`Account/ChangeSystem?refreshToken=${this.refToken}&systemSn=${t.systemSn}`),{refresh_token:i,auth_token:n}=e.data.result;25==t.systemSn?(window.open(`${t.uri}?auth_token=${n}&refresh_token=${i}`,"_blank"),this.showLoaging=!1):(window.location.href=`${t.uri}?auth_token=${n}&refresh_token=${i}`,this.showLoaging=!1)},close(){this.poupSwch.isShow=!1}}},vc=gc;i("9f8a");function bc(t,e,i){const n=!0===i?["left","right"]:["top","bottom"];return`absolute-${!0===e?n[0]:n[1]}${t?" text-"+t:""}`}const _c=["left","center","right","justify"],yc=()=>({matchedLen:0,queryDiff:9999,hrefLen:0,exact:!1,redirected:!0});function wc(t,e){for(const i in t)if(t[i]!==e[i])return!1;return!0}var Sc=he.a.extend({name:"QTabs",mixins:[yn,De],provide(){return{$tabs:this}},props:{value:[Number,String],align:{type:String,default:"center",validator:t=>_c.includes(t)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String},data(){return{scrollable:!1,leftArrow:!0,rightArrow:!1,justify:!1,tabNameList:[],currentModel:this.value,hasFocus:!1,avoidRouteWatcher:!1}},watch:{isRTL(){this.__localUpdateArrows()},value(t){this.__updateModel({name:t,setCurrent:!0,skipEmit:!0})},outsideArrows(){this.__recalculateScroll()},arrowsEnabled(t){this.__localUpdateArrows=!0===t?this.__updateArrowsFn:hi,this.__recalculateScroll()}},computed:{tabProps(){return{activeClass:this.activeClass,activeColor:this.activeColor,activeBgColor:this.activeBgColor,indicatorClass:bc(this.indicatorColor,this.switchIndicator,this.vertical),narrowIndicator:this.narrowIndicator,inlineLabel:this.inlineLabel,noCaps:this.noCaps}},hasActiveTab(){return this.tabNameList.some(t=>t.name===this.currentModel)},arrowsEnabled(){return!0===this.$q.platform.is.desktop||!0===this.mobileArrows},alignClass(){const t=!0===this.scrollable?"left":!0===this.justify?"justify":this.align;return"q-tabs__content--align-"+t},classes(){return`q-tabs row no-wrap items-center q-tabs--${!0===this.scrollable?"":"not-"}scrollable q-tabs--`+(!0===this.vertical?"vertical":"horizontal")+" q-tabs__arrows--"+(!0===this.arrowsEnabled&&!0===this.outsideArrows?"outside":"inside")+(!0===this.dense?" q-tabs--dense":"")+(!0===this.shrink?" col-shrink":"")+(!0===this.stretch?" self-stretch":"")},innerClass(){return"q-tabs__content row no-wrap items-center self-stretch hide-scrollbar relative-position "+this.alignClass+(void 0!==this.contentClass?" "+this.contentClass:"")+(!0===this.$q.platform.is.mobile?" scroll":"")},domProps(){return!0===this.vertical?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}},isRTL(){return!0!==this.vertical&&!0===this.$q.lang.rtl},rtlPosCorrection(){return!1===Pn()&&!0===this.isRTL},posFn(){return!0===this.rtlPosCorrection?{get:t=>Math.abs(t.scrollLeft),set:(t,e)=>{t.scrollLeft=-e}}:!0===this.vertical?{get:t=>t.scrollTop,set:(t,e)=>{t.scrollTop=e}}:{get:t=>t.scrollLeft,set:(t,e)=>{t.scrollLeft=e}}},onEvents(){return{input:mi,...this.qListeners,focusin:this.__onFocusin,focusout:this.__onFocusout}}},methods:{__updateModel({name:t,setCurrent:e,skipEmit:i}){this.currentModel!==t&&(!0!==i&&void 0!==this.qListeners.input&&this.$emit("input",t),!0!==e&&void 0!==this.qListeners.input||(this.__animate(this.currentModel,t),this.currentModel=t))},__recalculateScroll(){this.__registerScrollTick(()=>{this.__updateContainer({width:this.$el.offsetWidth,height:this.$el.offsetHeight})})},__updateContainer(t){if(void 0===this.domProps||!this.$refs.content)return;const e=t[this.domProps.container],i=Math.min(this.$refs.content[this.domProps.scroll],Array.prototype.reduce.call(this.$refs.content.children,(t,e)=>t+(e[this.domProps.content]||0),0)),n=e>0&&i>e;this.scrollable!==n&&(this.scrollable=n),!0===n&&this.__registerUpdateArrowsTick(this.__localUpdateArrows);const r=e<parseInt(this.breakpoint,10);this.justify!==r&&(this.justify=r)},__animate(t,e){const i=void 0!==t&&null!==t&&""!==t?this.tabVmList.find(e=>e.name===t):null,n=void 0!==e&&null!==e&&""!==e?this.tabVmList.find(t=>t.name===e):null;if(i&&n){const t=i.$refs.tabIndicator,e=n.$refs.tabIndicator;clearTimeout(this.animateTimer),t.style.transition="none",t.style.transform="none",e.style.transition="none",e.style.transform="none";const r=t.getBoundingClientRect(),s=e.getBoundingClientRect();e.style.transform=!0===this.vertical?`translate3d(0,${r.top-s.top}px,0) scale3d(1,${s.height?r.height/s.height:1},1)`:`translate3d(${r.left-s.left}px,0,0) scale3d(${s.width?r.width/s.width:1},1,1)`,this.__registerAnimateTick(()=>{this.animateTimer=setTimeout(()=>{e.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",e.style.transform="none"},70)})}n&&!0===this.scrollable&&this.__scrollToTabEl(n.$el)},__scrollToTabEl(t){const e=this.$refs.content,{left:i,width:n,top:r,height:s}=e.getBoundingClientRect(),o=t.getBoundingClientRect();let a=!0===this.vertical?o.top-r:o.left-i;if(a<0)return e[!0===this.vertical?"scrollTop":"scrollLeft"]+=Math.floor(a),void this.__localUpdateArrows();a+=!0===this.vertical?o.height-s:o.width-n,a>0&&(e[!0===this.vertical?"scrollTop":"scrollLeft"]+=Math.ceil(a),this.__localUpdateArrows())},__updateArrowsFn(){const t=this.$refs.content;if(null!==t){const e=t.getBoundingClientRect(),i=!0===this.vertical?t.scrollTop:Math.abs(t.scrollLeft);!0===this.isRTL?(this.leftArrow=Math.ceil(i+e.width)<t.scrollWidth-1,this.rightArrow=i>0):(this.leftArrow=i>0,this.rightArrow=!0===this.vertical?Math.ceil(i+e.height)<t.scrollHeight:Math.ceil(i+e.width)<t.scrollWidth)}},__animScrollTo(t){this.__stopAnimScroll(),this.scrollTimer=setInterval(()=>{!0===this.__scrollTowards(t)&&this.__stopAnimScroll()},5)},__scrollToStart(){this.__animScrollTo(!0===this.rtlPosCorrection?Number.MAX_SAFE_INTEGER:0)},__scrollToEnd(){this.__animScrollTo(!0===this.rtlPosCorrection?0:Number.MAX_SAFE_INTEGER)},__stopAnimScroll(){clearInterval(this.scrollTimer)},__onKbdNavigate(t,e){const i=Array.prototype.filter.call(this.$refs.content.children,t=>t===e||t.matches&&!0===t.matches(".q-tab.q-focusable")),n=i.length;if(0===n)return;if(36===t)return this.__scrollToTabEl(i[0]),i[0].focus(),!0;if(35===t)return this.__scrollToTabEl(i[n-1]),i[n-1].focus(),!0;const r=t===(!0===this.vertical?38:37),s=t===(!0===this.vertical?40:39),o=!0===r?-1:!0===s?1:void 0;if(void 0!==o){const t=!0===this.isRTL?-1:1,r=i.indexOf(e)+o*t;return r>=0&&r<n&&(this.__scrollToTabEl(i[r]),i[r].focus({preventScroll:!0})),!0}},__scrollTowards(t){const e=this.$refs.content,{get:i,set:n}=this.posFn;let r=!1,s=i(e);const o=t<s?-1:1;return s+=5*o,s<0?(r=!0,s=0):(-1===o&&s<=t||1===o&&s>=t)&&(r=!0,s=t),n(e,s),this.__localUpdateArrows(),r},__updateActiveRoute(){let t=null,e=yc();const i=this.tabVmList.filter(t=>!0===t.hasRouterLink),n=i.length,{query:r}=this.$route,s=Object.keys(r).length;for(let o=0;o<n;o++){const n=i[o],a=!0===n.exact;if(!0!==n[!0===a?"linkIsExactActive":"linkIsActive"]||!0===e.exact&&!0!==a)continue;const{route:l,href:c}=n.resolvedLink,{matched:u,query:h,hash:d}=l,p=void 0!==l.redirectedFrom;if(!0===a){if(!1===p){t=n.name;break}!1===e.exact&&(e=yc())}if(!1===e.redirected&&!0===p)continue;const f=Object.keys(h).length;if(!1===a&&0!==f&&!1===wc(h,r))continue;const m={exact:a,redirected:p,matchedLen:u.length,queryDiff:!0===a?0:s-f,hrefLen:c.length-d.length};m.matchedLen>e.matchedLen?(t=n.name,e=m):m.matchedLen===e.matchedLen&&(m.queryDiff<e.queryDiff||m.queryDiff===e.queryDiff&&m.hrefLen>e.hrefLen)&&(t=n.name,e=m)}null===t&&!0===this.tabVmList.some(t=>void 0===t.hasRouterLink&&t.name===this.currentModel)||this.__updateModel({name:t,setCurrent:!0})},__onFocusin(t){if(this.__removeFocusTimeout(),!0!==this.hasFocus&&this.$el&&t.target&&"function"===typeof t.target.closest){const e=t.target.closest(".q-tab");e&&!0===this.$el.contains(e)&&(this.hasFocus=!0,!0===this.scrollable&&this.__scrollToTabEl(e))}void 0!==this.qListeners.focusin&&this.$emit("focusin",t)},__onFocusout(t){this.__registerFocusTimeout(()=>{this.hasFocus=!1},30),void 0!==this.qListeners.focusout&&this.$emit("focusout",t)},__verifyRouteModel(){!1===this.avoidRouteWatcher?this.__registerScrollToTabTimeout(this.__updateActiveRoute):this.__removeScrollToTabTimeout()},__watchRoute(){if(void 0===this.unwatchRoute){const t=this.$watch(()=>this.$route.fullPath,this.__verifyRouteModel);this.unwatchRoute=()=>{t(),this.unwatchRoute=void 0}}},__registerTab(t){this.tabVmList.push(t),this.tabNameList.push(Lr({},"name",()=>t.name)),this.__recalculateScroll(),void 0===t.hasRouterLink||void 0===this.$route?this.__registerScrollToTabTimeout(()=>{if(!0===this.scrollable){const t=this.currentModel,e=void 0!==t&&null!==t&&""!==t?this.tabVmList.find(e=>e.name===t):null;e&&this.__scrollToTabEl(e.$el)}}):(this.__watchRoute(),!0===t.hasRouterLink&&this.__verifyRouteModel())},__unregisterTab(t){const e=this.tabVmList.indexOf(t);this.tabVmList.splice(e,1),this.tabNameList.splice(e,1),this.__recalculateScroll(),void 0!==this.unwatchRoute&&void 0!==t.hasRouterLink&&(!0===this.tabVmList.every(t=>void 0===t.hasRouterLink)&&this.unwatchRoute(),this.__verifyRouteModel())},__cleanup(){clearTimeout(this.animateTimer),this.__stopAnimScroll(),void 0!==this.unwatchRoute&&this.unwatchRoute()}},created(){this.__useTick("__registerScrollTick"),this.__useTick("__registerUpdateArrowsTick"),this.__useTick("__registerAnimateTick"),this.__useTimeout("__registerFocusTimeout","__removeFocusTimeout"),this.__useTimeout("__registerScrollToTabTimeout","__removeScrollToTabTimeout"),Object.assign(this,{tabVmList:[],__localUpdateArrows:!0===this.arrowsEnabled?this.__updateArrowsFn:hi})},activated(){!0===this.hadRouteWatcher&&this.__watchRoute(),this.__recalculateScroll()},deactivated(){this.hadRouteWatcher=void 0!==this.unwatchRoute,this.__cleanup()},beforeDestroy(){this.__cleanup()},render(t){const e=[t(Bl,{on:Ae(this,"resize",{resize:this.__updateContainer})}),t("div",{ref:"content",class:this.innerClass,on:!0===this.arrowsEnabled?Ae(this,"scroll",{scroll:this.__updateArrowsFn}):void 0},Re(this,"default"))];return!0===this.arrowsEnabled&&e.push(t(Je,{class:"q-tabs__arrow q-tabs__arrow--start absolute q-tab__icon"+(!0===this.leftArrow?"":" q-tabs__arrow--faded"),props:{name:this.leftIcon||this.$q.iconSet.tabs[!0===this.vertical?"up":"left"]},on:Ae(this,"onS",{"&mousedown":this.__scrollToStart,"&touchstart":this.__scrollToStart,"&mouseup":this.__stopAnimScroll,"&mouseleave":this.__stopAnimScroll,"&touchend":this.__stopAnimScroll})}),t(Je,{class:"q-tabs__arrow q-tabs__arrow--end absolute q-tab__icon"+(!0===this.rightArrow?"":" q-tabs__arrow--faded"),props:{name:this.rightIcon||this.$q.iconSet.tabs[!0===this.vertical?"down":"right"]},on:Ae(this,"onE",{"&mousedown":this.__scrollToEnd,"&touchstart":this.__scrollToEnd,"&mouseup":this.__stopAnimScroll,"&mouseleave":this.__stopAnimScroll,"&touchend":this.__stopAnimScroll})})),t("div",{class:this.classes,on:this.onEvents,attrs:{role:"tablist"}},e)}});let xc=0;var Cc=he.a.extend({name:"QTab",mixins:[Zi,De],inject:{$tabs:{default(){console.error("QTab/QRouteTab components need to be child of QTabs")}}},props:{icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>"t_"+xc++},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String},computed:{isActive(){return this.$tabs.currentModel===this.name},classes(){return"q-tab relative-position self-stretch flex flex-center text-center"+(!0===this.isActive?" q-tab--active"+(this.$tabs.tabProps.activeClass?" "+this.$tabs.tabProps.activeClass:"")+(this.$tabs.tabProps.activeColor?" text-"+this.$tabs.tabProps.activeColor:"")+(this.$tabs.tabProps.activeBgColor?" bg-"+this.$tabs.tabProps.activeBgColor:""):" q-tab--inactive")+(this.icon&&this.label&&!1===this.$tabs.tabProps.inlineLabel?" q-tab--full":"")+(!0===this.noCaps||!0===this.$tabs.tabProps.noCaps?" q-tab--no-caps":"")+(!0===this.disable?" disabled":" q-focusable q-hoverable cursor-pointer")+(void 0!==this.hasRouterLinkProps?this.linkClass:"")},innerClass(){return"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(!0===this.$tabs.tabProps.inlineLabel?"row no-wrap q-tab__content--inline":"column")+(void 0!==this.contentClass?" "+this.contentClass:"")},computedTabIndex(){return!0===this.disable||!0===this.$tabs.hasFocus||!1===this.isActive&&!0===this.$tabs.hasActiveTab?-1:this.tabindex||0},computedRipple(){return!1!==this.ripple&&Object.assign({keyCodes:[13,32],early:!0},!0===this.ripple?{}:this.ripple)},onEvents(){return{input:mi,...this.qListeners,click:this.__onClick,keydown:this.__onKeydown}},attrs(){const t={...this.linkAttrs,tabindex:this.computedTabIndex,role:"tab","aria-selected":!0===this.isActive?"true":"false"};return!0===this.disable&&(t["aria-disabled"]="true"),t}},methods:{__onClick(t,e){if(!0!==e&&void 0!==this.$refs.blurTarget&&this.$refs.blurTarget.focus({preventScroll:!0}),!0!==this.disable){if(void 0===this.hasRouterLinkProps)return this.$tabs.__updateModel({name:this.name}),void(void 0!==this.qListeners.click&&this.$emit("click",t));if(!0===this.hasRouterLink){const e=(e,i,n)=>{const{to:r,replace:s,append:o,returnRouterError:a}=!1===t.navigate?{to:e,replace:i,append:n}:e||{};let l;const c=void 0===r||o===this.append&&!0===Rs(r,this.to)?this.$tabs.avoidRouteWatcher=ts():null;return this.__navigateToRouterLink(t,{to:r,replace:s,append:o,returnRouterError:!0}).catch(t=>{l=t}).then(t=>(c===this.$tabs.avoidRouteWatcher&&(this.$tabs.avoidRouteWatcher=!1,void 0!==l&&!0!==l.message.startsWith("Avoided redundant navigation")||this.$tabs.__updateModel({name:this.name})),void 0!==l&&!0===a?Promise.reject(l):t))};return void 0!==this.qListeners.click&&this.$emit("click",t,e),!1===t.navigate&&t.preventDefault(),void(!0!==t.defaultPrevented&&e())}void 0!==this.qListeners.click&&this.$emit("click",t)}else!0===this.hasRouterLink&&vi(t)},__onKeydown(t){ki(t,[13,32])?this.__onClick(t,!0):!0!==Ci(t)&&t.keyCode>=35&&t.keyCode<=40&&!0!==t.altKey&&!0!==t.metaKey&&!0===this.$tabs.__onKbdNavigate(t.keyCode,this.$el)&&vi(t),void 0!==this.qListeners.keydown&&this.$emit("keydown",t)},__getContent(t){const e=this.$tabs.tabProps.narrowIndicator,i=[],n=t("div",{ref:"tabIndicator",staticClass:"q-tab__indicator",class:this.$tabs.tabProps.indicatorClass});void 0!==this.icon&&i.push(t(Je,{staticClass:"q-tab__icon",props:{name:this.icon}})),void 0!==this.label&&i.push(t("div",{staticClass:"q-tab__label"},[this.label])),!1!==this.alert&&i.push(void 0!==this.alertIcon?t(Je,{staticClass:"q-tab__alert-icon",props:{color:!0!==this.alert?this.alert:void 0,name:this.alertIcon}}):t("div",{staticClass:"q-tab__alert",class:!0!==this.alert?"text-"+this.alert:null})),!0===e&&i.push(n);const r=[t("div",{staticClass:"q-focus-helper",attrs:{tabindex:-1},ref:"blurTarget"}),t("div",{class:this.innerClass},Oe(i,this,"default"))];return!1===e&&r.push(n),r},__renderTab(t,e){const i={class:this.classes,attrs:this.attrs,on:this.onEvents,directives:!1===this.ripple||!0===this.disable?null:[{name:"ripple",value:this.computedRipple}]};return t(e,i,this.__getContent(t))}},mounted(){this.$tabs.__registerTab(this)},beforeDestroy(){this.$tabs.__unregisterTab(this)},render(t){return this.__renderTab(t,"div")}});function kc(t){const e=[.06,6,50];return"string"===typeof t&&t.length&&t.split(":").forEach((t,i)=>{const n=parseFloat(t);n&&(e[i]=n)}),e}function Tc(t){const e=t.__qtouchswipe;void 0!==e&&(Si(e,"main"),Si(e,"temp"),!0===Ee.is.firefox&&_i(t,!1),void 0!==e.styleCleanup&&e.styleCleanup(),delete t.__qtouchswipe)}var qc={name:"touch-swipe",bind(t,{value:e,arg:i,modifiers:n}){if(void 0!==t.__qtouchswipe&&(Tc(t),t.__qtouchswipe_destroyed=!0),!0!==n.mouse&&!0!==Ee.has.touch)return;const r=!0===n.mouseCapture||!0===n.mousecapture?"Capture":"",s={handler:e,sensitivity:kc(i),modifiers:n,direction:Ul(n),noop:hi,mouseStart(t){Ql(t,s)&&di(t)&&(wi(s,"temp",[[document,"mousemove","move","notPassive"+r],[document,"mouseup","end","notPassiveCapture"]]),s.start(t,!0))},touchStart(t){if(Ql(t,s)){const e=t.target;wi(s,"temp",[[e,"touchmove","move","notPassiveCapture"],[e,"touchcancel","end","notPassiveCapture"],[e,"touchend","end","notPassiveCapture"]]),s.start(t)}},start(e,i){!0===Ee.is.firefox&&_i(t,!0);const n=pi(e);s.event={x:n.left,y:n.top,time:Date.now(),mouse:!0===i,dir:!1}},move(t){if(void 0===s.event)return;if(!1!==s.event.dir)return void vi(t);const e=Date.now()-s.event.time;if(0===e)return;const i=pi(t),n=i.left-s.event.x,r=Math.abs(n),o=i.top-s.event.y,a=Math.abs(o);if(!0!==s.event.mouse){if(r<s.sensitivity[1]&&a<s.sensitivity[1])return void s.end(t)}else{if(""!==window.getSelection().toString())return void s.end(t);if(r<s.sensitivity[2]&&a<s.sensitivity[2])return}const l=r/e,c=a/e;!0===s.direction.vertical&&r<a&&r<100&&c>s.sensitivity[0]&&(s.event.dir=o<0?"up":"down"),!0===s.direction.horizontal&&r>a&&a<100&&l>s.sensitivity[0]&&(s.event.dir=n<0?"left":"right"),!0===s.direction.up&&r<a&&o<0&&r<100&&c>s.sensitivity[0]&&(s.event.dir="up"),!0===s.direction.down&&r<a&&o>0&&r<100&&c>s.sensitivity[0]&&(s.event.dir="down"),!0===s.direction.left&&r>a&&n<0&&a<100&&l>s.sensitivity[0]&&(s.event.dir="left"),!0===s.direction.right&&r>a&&n>0&&a<100&&l>s.sensitivity[0]&&(s.event.dir="right"),!1!==s.event.dir?(vi(t),!0===s.event.mouse&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),as(),s.styleCleanup=t=>{s.styleCleanup=void 0,document.body.classList.remove("non-selectable");const e=()=>{document.body.classList.remove("no-pointer-events--children")};!0===t?setTimeout(e,50):e()}),s.handler({evt:t,touch:!0!==s.event.mouse,mouse:s.event.mouse,direction:s.event.dir,duration:e,distance:{x:r,y:a}})):s.end(t)},end(e){void 0!==s.event&&(Si(s,"temp"),!0===Ee.is.firefox&&_i(t,!1),void 0!==s.styleCleanup&&s.styleCleanup(!0),void 0!==e&&!1!==s.event.dir&&vi(e),s.event=void 0)}};t.__qtouchswipe=s,!0===n.mouse&&wi(s,"main",[[t,"mousedown","mouseStart","passive"+r]]),!0===Ee.has.touch&&wi(s,"main",[[t,"touchstart","touchStart","passive"+(!0===n.capture?"Capture":"")],[t,"touchmove","noop","notPassiveCapture"]])},update(t,{oldValue:e,value:i}){const n=t.__qtouchswipe;void 0!==n&&e!==i&&("function"!==typeof i&&n.end(),n.handler=i)},unbind(t){void 0===t.__qtouchswipe_destroyed?Tc(t):delete t.__qtouchswipe_destroyed}};function Ec(t){return t("div",{staticClass:"q-panel scroll",attrs:{role:"tabpanel"},on:Ae(this,"stop",{input:mi})},Re(this,"default"))}const Mc=he.a.extend({render:Ec}),Ic={mixins:[De],directives:{TouchSwipe:qc},props:{value:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},data(){return{panelIndex:null,panelTransition:null}},computed:{panelDirectives(){if(!0===this.swipeable)return[{name:"touch-swipe",value:this.__swipe,modifiers:{horizontal:!0!==this.vertical,vertical:this.vertical,mouse:!0}}]},contentKey(){return"string"===typeof this.value||"number"===typeof this.value?this.value:String(this.value)},transitionPrevComputed(){return this.transitionPrev||"slide-"+(!0===this.vertical?"down":"right")},transitionNextComputed(){return this.transitionNext||"slide-"+(!0===this.vertical?"up":"left")},keepAliveProps(){return{include:this.keepAliveInclude,exclude:this.keepAliveExclude,max:this.keepAliveMax}},needsUniqueWrapper(){return void 0!==this.keepAliveInclude||void 0!==this.keepAliveExclude}},watch:{value(t,e){const i=!0===this.__isValidPanelName(t)?this.__getPanelIndex(t):-1;!0!==this.__forcedPanelTransition&&this.__updatePanelTransition(-1===i?0:i<this.__getPanelIndex(e)?-1:1),this.panelIndex!==i&&(this.panelIndex=i,this.$emit("before-transition",t,e),this.$nextTick(()=>{this.$emit("transition",t,e)}))}},methods:{next(){this.__go(1)},previous(){this.__go(-1)},goTo(t){this.$emit("input",t)},__isValidPanelName(t){return void 0!==t&&null!==t&&""!==t},__getPanelIndex(t){return this.panels.findIndex(e=>{const i=e.componentOptions.propsData;return i.name===t&&""!==i.disable&&!0!==i.disable})},__getEnabledPanels(){return this.panels.filter(t=>{const e=t.componentOptions.propsData;return""!==e.disable&&!0!==e.disable})},__updatePanelTransition(t){const e=0!==t&&!0===this.animated&&-1!==this.panelIndex?"q-transition--"+(-1===t?this.transitionPrevComputed:this.transitionNextComputed):null;this.panelTransition!==e&&(this.panelTransition=e)},__go(t,e=this.panelIndex){let i=e+t;const n=this.panels;while(i>-1&&i<n.length){const e=n[i].componentOptions;if(void 0!==e&&""!==e.propsData.disable&&!0!==e.propsData.disable)return this.__updatePanelTransition(t),this.__forcedPanelTransition=!0,this.$emit("input",n[i].componentOptions.propsData.name),void setTimeout(()=>{this.__forcedPanelTransition=!1});i+=t}!0===this.infinite&&n.length>0&&-1!==e&&e!==n.length&&this.__go(t,-1===t?n.length:-1)},__swipe(t){const e=!0===this.vertical?"up":"left";this.__go((!0===this.$q.lang.rtl?-1:1)*(t.direction===e?1:-1))},__updatePanelIndex(){const t=this.__getPanelIndex(this.value);return this.panelIndex!==t&&(this.panelIndex=t),!0},__getPanelContent(t){if(0===this.panels.length)return;const e=this.__isValidPanelName(this.value)&&this.__updatePanelIndex()&&this.panels[this.panelIndex],i=!0===this.keepAlive?[t("keep-alive",{props:this.keepAliveProps},[t(!0===this.needsUniqueWrapper?Ne(this,this.contentKey,()=>he.a.extend({name:this.contentKey,render:Ec})):Mc,{key:this.contentKey},[e])])]:[t("div",{staticClass:"q-panel scroll",key:this.contentKey,attrs:{role:"tabpanel"},on:Ae(this,"stop",{input:mi})},[e])];return!0===this.animated?[t("transition",{props:{name:this.panelTransition}},i)]:i}},render(t){return this.panels=Re(this,"default",[]).filter(t=>void 0!==t&&void 0!==t.componentOptions&&void 0!==t.componentOptions.propsData&&this.__isValidPanelName(t.componentOptions.propsData.name)),this.__renderPanels(t)}},Ac={mixins:[De],props:{name:{required:!0},disable:Boolean}};var Nc=he.a.extend({name:"QTabPanels",mixins:[Cr,Ic],computed:{classes(){return"q-tab-panels q-panel-parent"+(!0===this.isDark?" q-tab-panels--dark q-dark":"")}},methods:{__renderPanels(t){return t("div",{class:this.classes,directives:this.panelDirectives,on:{...this.qListeners}},this.__getPanelContent(t))}}});const $c={role:"tabpanel"};var Dc=he.a.extend({name:"QTabPanel",mixins:[Ac],render(t){return t("div",{staticClass:"q-tab-panel",attrs:$c,on:{...this.qListeners}},Re(this,"default"))}}),Rc=ce(vc,dc,pc,!1,null,"2b98803b",null),Pc=Rc.exports;ta()(Rc,"components",{QBtn:bn,QDialog:xr,QCard:kr,QToolbar:qr,QToolbarTitle:Er,QTabs:Sc,QTab:Cc,QSeparator:po,QTabPanels:Nc,QTabPanel:Dc,QCardSection:Mr,QAvatar:Po,QIcon:Je,QInnerLoading:Go,QSpinnerHourglass:Zo});var Oc=function(){var t=this;t._self._c;return t._m(0)},Lc=[function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"rabbit"}),e("div",{staticClass:"clouds"})])}],Bc={name:"rabbit"},jc=Bc,zc=(i("1a3f"),ce(jc,Oc,Lc,!1,null,"3027ec14",null)),Fc=zc.exports,Vc=function(){var t=this,e=t._self._c;return e("div",[e("q-btn",{class:{"full-width":t.isFullWidth},attrs:{dense:t.btnDense,icon:"account_tree",label:t.btnLabel,color:t.btnColor},on:{click:t.showModel}}),e("q-dialog",{attrs:{persistent:""},on:{"before-show":t.getBaseInfo},model:{value:t.poupSwch.isShow,callback:function(e){t.$set(t.poupSwch,"isShow",e)},expression:"poupSwch.isShow"}},[e("q-card",{staticClass:"bg-grey-2",staticStyle:{width:"1300px","max-width":"90vw"}},[e("q-toolbar",{staticClass:"bg-light-blue-10 text-white"},[e("q-toolbar-title",[e("span",{staticClass:"text-weight-bold"},[t._v("簽核流程模板設定")])]),e("q-btn",{attrs:{flat:"",round:"",dense:"",icon:"close"},on:{click:t.close}})],1),e("q-card-section",{staticClass:"q-pa-lg"},[e("q-table",{staticStyle:{"min-height":"570px"},attrs:{data:t.flowTempList.items,"row-key":"index",flat:"",bordered:"",dense:"",pagination:t.pagination,columns:t.columns},on:{"update:pagination":function(e){t.pagination=e}},scopedSlots:t._u([{key:"top",fn:function(){return[e("q-td",{staticClass:"q-ma-sm full-width",attrs:{align:"center"}},[e("q-input",{attrs:{"bg-color":"white",outlined:"",dense:"",label:"模板名稱"},scopedSlots:t._u([{key:"after",fn:function(){return[e("q-btn",{staticClass:"q-mr-sm",attrs:{icon:"search",color:"blue-10",label:"搜尋"},on:{click:t.onSearch}}),e("q-btn",{attrs:{color:"blue-10",icon:"account_tree",label:"新增簽核流程"},on:{click:t.openCreateModel}})]},proxy:!0}]),model:{value:t.searchInfo.name,callback:function(e){t.$set(t.searchInfo,"name",e)},expression:"searchInfo.name"}})],1)]},proxy:!0},{key:"body-cell-name",fn:function(i){return[e("q-td",{attrs:{align:"center"}},[e("div",{staticClass:"ellipsis",staticStyle:{width:"150px"}},[t._v(" "+t._s(i.value)+" ")])])]}},{key:"body-cell-description",fn:function(i){return[e("q-td",{attrs:{align:"center"}},[e("q-input",{attrs:{type:"textarea",borderless:"",autogrow:"",readonly:"",dense:"","bg-color":"transparent"},model:{value:i.value,callback:function(e){t.$set(i,"value",e)},expression:"props.value"}})],1)]}},{key:"body-cell-authorizeType",fn:function(i){return[e("q-td",{attrs:{align:"center"}},[0==i.value?e("span",[t._v("公開")]):t._e(),1==i.value?e("span",[t._v("自己使用")]):t._e(),2==i.value?e("span",[t._v("程式使用")]):t._e(),3==i.value?e("span",[t._v("單位共用")]):t._e(),4==i.value?e("span",[t._v("系統共用")]):t._e()])]}},{key:"body-cell-createDate",fn:function(i){return[e("q-td",{attrs:{align:"center"}},[t._v(" "+t._s(t.showTime(i.value))+" ")])]}},{key:"body-cell-modifyDate",fn:function(i){return[e("q-td",{attrs:{align:"center"}},[t._v(" "+t._s(t.showTime(i.value)||"無")+" ")])]}},{key:"body-cell-edit",fn:function(i){return[e("q-td",{attrs:{align:"center"}},[e("q-btn",{attrs:{color:"blue",icon:"edit"},on:{click:function(e){return t.openEditModal(i.row)}}}),e("q-btn",{staticClass:"q-ml-sm",attrs:{color:"red",icon:"delete"},on:{click:function(e){return t.remove(i.row.flowTemplateSn)}}})],1)]}},{key:"no-data",fn:function(){return[e("div",{staticClass:"flex flex-center full-width q-ma-md text-grey-5"},[e("q-icon",{attrs:{size:"2em",name:"sentiment_dissatisfied"}}),e("span",{staticClass:"q-ml-sm"},[t._v(" 尚無資料 ")])],1)]},proxy:!0},{key:"bottom",fn:function(){return[e("div",{staticClass:"full-width flex flex-center q-my-sm"},[e("q-pagination",{attrs:{color:"light-blue-9",max:t.flowTempList.totalPages,"direction-links":!0,"boundary-links":!0,"max-pages":6},on:{input:t.changePage},model:{value:t.pagination.pageNumber,callback:function(e){t.$set(t.pagination,"pageNumber",e)},expression:"pagination.pageNumber"}})],1)]},proxy:!0}])})],1)],1),e("create",{attrs:{prompt:t.poupSwch.create,Api:t.Api,deptInfo:t.deptInfo,identities:t.identities},on:{close:t.closeModel,update:t.updateTemp}}),e("edit",{attrs:{prompt:t.poupSwch.edit,Api:t.Api,deptInfo:t.deptInfo,data:t.settInfo,identities:t.identities,editFlowNodes:t.editFlowNodes},on:{close:t.closeModel,update:t.updateTemp}})],1)],1)},Hc=[],Uc=function(){var t=this,e=t._self._c;return e("q-dialog",{attrs:{persistent:""},on:{"before-show":t.setInit},model:{value:t.prompt,callback:function(e){t.prompt=e},expression:"prompt"}},[e("q-card",{staticClass:"bg-grey-3",staticStyle:{width:"1100px","max-width":"95vw"}},[e("q-form",{attrs:{greedy:""},on:{submit:t.onSubmit}},[e("q-toolbar",{staticClass:"bg-blue-10 text-white"},[e("q-toolbar-title",[e("span",[t._v("新增簽核流程模板")])]),e("q-btn",{attrs:{flat:"",round:"",dense:"",icon:"close"},on:{click:t.close}})],1),e("q-card-section",{attrs:{horizontal:""}},[e("q-card-section",{staticClass:"full-width"},[e("section",{staticClass:"row q-col-gutter-sm"},[e("div",{staticClass:"col-5 row q-col-gutter-sm"},[e("q-input",{staticClass:"col-12",attrs:{outlined:"","bg-color":"white",dense:"",label:"模板名稱",maxlength:"30"},model:{value:t.settInfo.name,callback:function(e){t.$set(t.settInfo,"name",e)},expression:"settInfo.name"}}),e("q-select",{staticClass:"col-12",attrs:{outlined:"","bg-color":"white",dense:"",options:t.options.authorizeType,label:"權限類型","map-options":"","emit-value":""},on:{input:function(e){t.settInfo.deptSns=[]}},model:{value:t.settInfo.authorizeType,callback:function(e){t.$set(t.settInfo,"authorizeType",e)},expression:"settInfo.authorizeType"}})],1),e("q-input",{staticClass:"col",attrs:{outlined:"","bg-color":"white",dense:"",label:"模板描述","input-style":"height:72px",maxlength:"100",type:"textarea"},model:{value:t.settInfo.description,callback:function(e){t.$set(t.settInfo,"description",e)},expression:"settInfo.description"}}),e("div",{staticClass:"col-12",staticStyle:{"min-height":"52px"}},[e("q-select",{attrs:{outlined:"","bg-color":"white",dense:"",options:t.useShareDetp,label:"共用單位","map-options":"","emit-value":"",disable:3!==t.settInfo.authorizeType,"use-chips":"","stack-label":"",multiple:"","use-input":""},on:{filter:t.filterDeptOpt},scopedSlots:t._u([{key:"option",fn:function({itemProps:i,itemEvents:n,opt:r,selected:s,toggleOption:o}){return[e("q-item",t._g(t._b({},"q-item",i,!1),n),[e("q-item-section",[e("q-item-label",[t._v(t._s(r.label))])],1),e("q-item-section",{attrs:{side:""}},[e("q-toggle",{attrs:{value:s},on:{input:function(t){return o(r.value)}}})],1)],1)]}}]),model:{value:t.settInfo.deptSns,callback:function(e){t.$set(t.settInfo,"deptSns",e)},expression:"settInfo.deptSns"}})],1)],1),e("q-separator",{attrs:{spaced:""}}),e("q-card",{attrs:{flat:"",bordered:""}},[e("q-card-section",{staticClass:"flex items-center q-py-xs"},[e("span",{staticClass:"text-h6"},[t._v("簽核流程設置")]),e("q-space"),e("q-btn",{attrs:{icon:"swap_horiz",color:"blue-9",flat:"",dense:"",label:"新增分會流程",disable:3==t.useNode.nodeType},on:{click:function(e){return t.creatNewNode({node:{label:"分會流程"},nodeType:3})}}})],1),e("q-separator"),e("q-card-section",{attrs:{horizontal:""}},[e("q-card-section",{staticStyle:{"min-width":"145px"}},[e("div",{staticClass:"text-center"},[t._v("圖示說明")]),e("q-separator",{attrs:{spaced:""}}),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"my_location",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("流程起點")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"bookmarks",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("單位")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"perm_contact_calendar",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("人員")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"attribution",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("職稱")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"switch_account",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("角色")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"account_circle",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("單位主管")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"admin_panel_settings",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("一級主管")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"supervised_user_circle",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("副校長")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"group",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("代理人")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{staticStyle:{transform:"rotate(45deg)"},attrs:{name:"push_pin",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("不可異動")])],1),e("div",{staticClass:"q-mt-md text-red-6 text-cener"},[t._v("※ 此處非按鈕 ※")])],1),e("q-separator",{attrs:{vertical:""}}),e("q-card-section",{staticClass:"q-px-xs full-width"},[e("q-scroll-area",{staticStyle:{height:"420px"},attrs:{"content-style":{width:"100%"}}},[e("q-tree",{key:t.componentKey,ref:"treeNode",staticClass:"q-mr-sm",attrs:{nodes:t.treeData,"node-key":"treeSN","label-key":"name","children-key":"children","default-expand-all":"","no-transition":"",selected:t.selected},on:{"update:selected":function(e){t.selected=e}},scopedSlots:t._u([{key:"default-header",fn:function(i){return[e("div",{staticClass:"row items-center cursor-pointer full-width",staticStyle:{"font-size":"16px"},on:{click:function(e){t.setTreeDom(Object.assign({},i.node,{form:"tree"}))}}},[e("q-icon",{staticClass:"q-mr-sm",class:["s"==i.node.nodeType?"text-blue-10":t.useNode.treeSN==i.node.treeSN?"text-warning":"text-grey-8"],attrs:{name:"s"==i.node.nodeType?"my_location":4==i.node.nodeType?"turned_in_not":3==i.node.nodeType?"swap_horiz":11==i.node.nodeType?"group":12==i.node.nodeType?"account_circle":13==i.node.nodeType?"admin_panel_settings":14==i.node.nodeType?"supervised_user_circle":i.node.signUserSn?"perm_contact_calendar":i.node.signRoleSn?"switch_account":i.node.signTitleSn?"attribution":i.node.deptSn?"bookmarks":"person",size:"22px"}}),e("div",{class:["s"==i.node.nodeType?"text-blue-10":t.useNode.treeSN==i.node.treeSN?"text-warning":"text-grey-8"]},[t._v(" "+t._s(i.node.name||"分會流程")+" ")]),e("q-space"),"s"===i.node.nodeType||i.node.isEdit?t._e():e("q-icon",{staticClass:"pinflow",attrs:{name:"push_pin",color:"red",size:"22px"}}),e("q-popup-proxy",{attrs:{"context-menu":""}},[e("q-list",{attrs:{bordered:"",separator:""}},[[1,11,12,13,14].includes(i.node.nodeType)?t._e():e("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:""},on:{click:function(e){return t.openSort(i.node)}}},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{attrs:{name:"swap_vert",color:"blue-9",size:"28px"}})],1),e("q-item-section",[e("q-item-label",[t._v("調整 - 簽核順序")])],1)],1),"s"!==i.node.nodeType?e("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:""},on:{click:function(t){i.node.isEdit=!i.node.isEdit}}},[e("q-item-section",{attrs:{avatar:""}},["s"!==i.node.nodeType?e("q-icon",{staticClass:"pinflow",attrs:{name:"push_pin",color:"red",size:"28px"}}):t._e()],1),e("q-item-section",[e("q-item-label",[i.node.isEdit?e("span",[t._v("調整 - 不可異動")]):e("span",[t._v("調整 - 可異動")])])],1)],1):t._e(),"s"!==i.node.nodeType?e("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:""},on:{click:function(e){return t.removeNode(i.node.treeSN)}}},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{attrs:{name:"remove_circle_outline",color:"red-9",size:"24px"}})],1),e("q-item-section",[e("q-item-label",[t._v("移除 - "+t._s(i.node.name))])],1)],1):t._e()],1)],1)],1)]}}])})],1)],1)],1)],1)],1),e("q-separator",{attrs:{vertical:""}}),e("q-card-section",{staticStyle:{"min-width":"420px","font-size":"16px"}},[e("section",{directives:[{name:"show",rawName:"v-show",value:!t.useNode.deptSn,expression:"!useNode.deptSn"}]},[e("div",{staticClass:"row q-col-gutter-sm q-mb-sm"},[e("div",{staticClass:"col-6"},[e("q-btn",{staticClass:"full-width",attrs:{icon:"group_add",label:"代理人",color:"blue-10",unelevated:""},on:{click:function(e){return t.createAgent({node:{label:"代理人"},nodeType:11})}}})],1),e("div",{staticClass:"col-6"},[e("q-btn",{staticClass:"full-width",attrs:{icon:"group_add",label:"單位主管",color:"blue-10",unelevated:""},on:{click:function(e){return t.createUnitHead({node:{label:"單位主管"},nodeType:12})}}})],1),e("div",{staticClass:"col-6"},[e("q-btn",{staticClass:"full-width",attrs:{icon:"group_add",label:"一級主管",color:"blue-10",unelevated:""},on:{click:function(e){return t.createTopHead({node:{label:"一級單位主管"},nodeType:13})}}})],1),e("div",{staticClass:"col-6"},[e("q-btn",{staticClass:"full-width",attrs:{icon:"group_add",label:"副校長",color:"blue-10",unelevated:""},on:{click:function(e){return t.createVicePrincipal({node:{label:"副校長"},nodeType:14})}}})],1)]),e("div",{staticClass:"q-gutter-sm q-mb-sm"},[e("q-radio",{attrs:{val:"unit",label:"單位"},model:{value:t.unitShape,callback:function(e){t.unitShape=e},expression:"unitShape"}}),e("q-radio",{attrs:{val:"titleUnit",label:"主管"},model:{value:t.unitShape,callback:function(e){t.unitShape=e},expression:"unitShape"}})],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"unit"==t.unitShape,expression:"unitShape == 'unit'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"單位搜尋"},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:t.searchDeptName,callback:function(e){t.searchDeptName=e},expression:"searchDeptName"}}),0==t.useDepts.length?e("div",{staticClass:"empEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無單位資訊")])]):e("q-scroll-area",{staticStyle:{height:"495px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useDepts,(function(i){return e("q-item",{key:i.value,attrs:{clickable:""},on:{click:function(e){return t.creatNewNode({node:i,nodeType:2})}}},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{attrs:{name:"bookmarks",color:"blue-8",size:"24px"}})],1),e("q-item-section",[t._v(t._s(i.label))])],1)})),1)],1)],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"titleUnit"==t.unitShape,expression:"unitShape == 'titleUnit'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"單位搜尋"},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:t.searchUnitMgrsName,callback:function(e){t.searchUnitMgrsName=e},expression:"searchUnitMgrsName"}}),0==t.useTitleUnit.length?e("div",{staticClass:"empEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無單位資訊")])]):e("q-scroll-area",{staticStyle:{height:"495px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useTitleUnit,(function(i){return e("q-item",{key:i.value,attrs:{clickable:""},on:{click:function(e){return t.creatFastManager(i)}}},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{attrs:{name:"bookmarks",color:"blue-8",size:"24px"}})],1),e("q-item-section",[e("q-item-label",{attrs:{caption:""}},[t._v(t._s(i.deptCna))]),e("q-item-label",[t._v(t._s(i.titleCna))])],1)],1)})),1)],1)],1)]),e("section",{directives:[{name:"show",rawName:"v-show",value:t.useNode.deptSn,expression:"useNode.deptSn"}],staticClass:"relative-position"},[e("q-inner-loading",{staticStyle:{"z-index":"10"},attrs:{showing:t.loadRolesState,label:"讀取中","label-class":"text-teal","label-style":"font-size: 1.1em"}}),e("div",{staticClass:"q-gutter-sm q-mb-sm"},[e("q-radio",{attrs:{val:"role",label:"角色"},model:{value:t.shape,callback:function(e){t.shape=e},expression:"shape"}}),e("q-radio",{attrs:{val:"member",label:"人員"},model:{value:t.shape,callback:function(e){t.shape=e},expression:"shape"}}),e("q-radio",{attrs:{val:"title",label:"職稱"},model:{value:t.shape,callback:function(e){t.shape=e},expression:"shape"}})],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"member"==t.shape,expression:"shape == 'member'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"人員搜尋"},on:{keypress:function(t){t.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:t.searchMemberName,callback:function(e){t.searchMemberName=e},expression:"searchMemberName"}}),0==t.useMember.length?e("div",{staticClass:"empTemEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無人員資訊")])]):e("q-scroll-area",{staticStyle:{height:"555px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useMember,(function(i,n){return e("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],key:n,attrs:{clickable:""},on:{click:function(e){return t.creatNewNode({node:i,nodeType:1})}}},[e("q-item-section",[t._v(t._s(i.label))]),e("q-item-section",{attrs:{side:""}},[t._v(t._s(i.titleName))])],1)})),1)],1)],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"role"==t.shape,expression:"shape == 'role'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"角色搜尋"},on:{keypress:function(t){t.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:t.searchRolesName,callback:function(e){t.searchRolesName=e},expression:"searchRolesName"}}),0==t.useRoles.length?e("div",{staticClass:"empTemEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無角色資訊")])]):e("q-scroll-area",{staticStyle:{height:"555px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useRoles,(function(i,n){return e("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],key:n,attrs:{clickable:""},on:{click:function(e){return t.creatNewNode({node:i,nodeType:1})}}},[e("q-item-section",[t._v(t._s(i.label))]),e("q-item-section",{attrs:{side:""}},[t._v(t._s(i.titleName))])],1)})),1)],1)],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"title"==t.shape,expression:"shape == 'title'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"職稱搜尋"},on:{keypress:function(t){t.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:t.searchTitleName,callback:function(e){t.searchTitleName=e},expression:"searchTitleName"}}),0==t.useTitles.length?e("div",{staticClass:"empTemEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無職稱資訊")])]):e("q-scroll-area",{staticStyle:{height:"555px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useTitles,(function(i,n){return e("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],key:n,attrs:{clickable:""},on:{click:function(e){return t.creatNewNode({node:i,nodeType:1})}}},[e("q-item-section",[t._v(t._s(i.label))]),e("q-item-section",{attrs:{side:""}},[t._v(t._s(i.titleName))])],1)})),1)],1)],1)],1)])],1),e("q-separator"),e("q-card-section",{staticClass:"text-right"},[e("q-btn",{attrs:{icon:"add",label:"創建模板",color:"blue-10",type:"submit",disable:!t.settInfo.name}})],1)],1)],1),e("sotrNode",{attrs:{prompt:t.poupSwch.sort,list:t.sortInfo},on:{closeSort:t.closeSort}})],1)},Qc=[],Wc=function(){var t=this,e=t._self._c;return e("q-dialog",{attrs:{persistent:""},on:{"before-show":t.setInit},model:{value:t.prompt,callback:function(e){t.prompt=e},expression:"prompt"}},[e("q-card",{staticClass:"bg-grey-4",staticStyle:{width:"420px","max-width":"80vw"}},[e("q-toolbar",{staticClass:"bg-light-blue-10 text-white"},[e("q-toolbar-title",[e("span",{staticClass:"text-weight-bold"},[t._v("簽核排序調整")])]),e("q-btn",{attrs:{flat:"",round:"",dense:"",icon:"close"},on:{click:t.closeSort}})],1),e("q-card-section",[e("q-scroll-area",{staticStyle:{height:"450px"},attrs:{"content-style":{width:"100%"}}},[e("draggable",t._b({attrs:{tag:"div",list:t.list},on:{start:function(e){t.drag=!0},end:function(e){t.drag=!1}}},"draggable",t.dragOptions,!1),t._l(t.list,(function(i){return e("q-item",{key:i.treeSN,staticClass:"list-group-item bg-white shadow-1"},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{staticClass:"q-mr-sm",class:[[3,4,11,12,13,14].includes(i.nodeType)||i.signRoleSn||i.signTitleSn?"text-orange-9":i.signUserSn?"text-green-7":"text-blue-9"],attrs:{name:4==i.nodeType?"turned_in_not":3==i.nodeType?"swap_horiz":11==i.nodeType?"group":12==i.nodeType?"account_circle":13==i.nodeType?"admin_panel_settings":14==i.nodeType?"supervised_user_circle":i.signUserSn?"perm_contact_calendar":i.signRoleSn?"switch_account":i.signTitleSn?"attribution":i.deptSn?"bookmarks":"person",size:"22px"}})],1),e("q-item-section",{staticStyle:{"font-size":"18px",color:"black"}},[e("div",[e("span",[t._v(t._s(i.name))]),4==i.nodeType?e("span",[t._v(" 【"+t._s(i.children[0].name)+"】 ")]):t._e()])])],1)})),1)],1)],1)],1)],1)},Yc=[],Kc=i("b76a"),Xc=i.n(Kc),Gc={name:"sotrNode",components:{draggable:Xc.a},props:["list","prompt"],computed:{dragOptions(){return{animation:200,group:"description",disabled:!1,ghostClass:"ghost"}}},methods:{setInit(){},closeSort(){this.$emit("closeSort")}}},Zc=Gc,Jc=(i("531a"),ce(Zc,Wc,Yc,!1,null,null,null)),tu=Jc.exports;ta()(Jc,"components",{QDialog:xr,QCard:kr,QToolbar:qr,QToolbarTitle:Er,QBtn:bn,QCardSection:Mr,QScrollArea:tc,QItem:rs,QItemSection:ss,QIcon:Je});var eu={name:"createflowTemplate",components:{sotrNode:tu},props:["prompt","Api","deptInfo","identities"],data(){return{searchDeptName:"",searchUnitMgrsName:"",searchMemberName:"",searchTitleName:"",searchRolesName:"",selected:null,settInfo:{authorizeType:1,deptSn:null,deptSns:[]},roles:[],members:[],titles:[],unitMgrs:[],useShareDetp:[],loadRolesState:!1,flowNodes:[],useNode:{nodeType:"s"},poupSwch:{sort:!1},sortInfo:[],sortTarget:null,componentKey:1,shape:"role",unitShape:"unit"}},computed:{options(){return{authorizeType:[{label:"公開",value:0},{label:"自己使用",value:1},{label:"單位共用",value:3}]}},treeData(){return[{children:[...this.flowNodes],nodeType:"s",name:"簽核流程",treeSN:"start"}]},useDepts(){let t=this.deptInfo.filter(t=>t.label.includes(this.searchDeptName));return t},useTitleUnit(){if(0==this.unitMgrs.length)return[];let t=this.unitMgrs.filter(t=>t.deptCna.includes(this.searchUnitMgrsName));return t},useMember(){return this.members.filter(t=>t.label.includes(this.searchMemberName))},useRoles(){return this.roles.filter(t=>t.label.includes(this.searchRolesName))},useTitles(){return this.titles.filter(t=>t.label.includes(this.searchTitleName))}},methods:{async onSubmit(){this.settInfo.name||this.$swal({title:"未輸入模板名稱",icon:"warning"});let t=Object.assign({},this.settInfo,{flowNodes:this.treeData[0].children});try{fa.show(),await this.Api.post("flowtemplates",t),fa.hide(),this.$swal({title:"建立成功",icon:"success",timer:1e3,showConfirmButton:!1}),this.$emit("update"),this.close()}catch(e){let t=e.response.data.errorMessage,i="";for(let n=0;n<t.length;n++)i+=`<li style="text-align: left">${t[n].message}</li>`;this.$swal({title:"建立失敗",icon:"error",html:`<ul style="width:auto">${i}</ul> `}),fa.hide()}},async creatNewNode(t){await this.hendleCreatNewNode(t),this.$refs.treeNode.expandAll()},hendleCreatNewNode(t){return new Promise(e=>{this.addFlowNode(t),e()})},addFlowNode(t,e){let i=this,{treeSN:n,deptSn:r,nodeType:s}=this.useNode;const o=l(t);function a(e){e.forEach(e=>{e.treeSN==n?e.children.push(o):e.children&&i.addFlowNode(t,e.children)})}function l({node:t,nodeType:e}){let n={name:t.label||null,nodeType:e||null,parallelRouteType:3==e?1:null,deptSn:2==e?t.value:null,signRoleSn:"role"==i.shape&&1==e?t.value:null,signUserSn:"member"==i.shape&&1==e?t.userSn:null,signTitleSn:i.setSignTitleSn({node:t,nodeType:e}),remark:t.remark,titleName:t.titleName,isBoss:t.isBoss,treeSN:"tree-"+(new Date).getTime(),isEdit:!1,children:[]},r={name:"分會單位",nodeType:4,parallelRouteType:3==e?1:null,deptSn:null,signRoleSn:"role"==i.shape&&1==e?t.value:null,signUserSn:"member"==i.shape&&1==e?t.userSn:null,signTitleSn:i.setSignTitleSn({node:t,nodeType:e}),remark:t.remark,titleName:t.titleName,isBoss:t.isBoss,treeSN:`tree-${(new Date).getTime()}-branchWrap`,isEdit:!1,children:[]};return 3!==i.useNode.nodeType?n:(r.children.push(n),r)}1==t.nodeType&&a(e||this.flowNodes),2==t.nodeType&&r||3==s?a(e||this.flowNodes):2!=t.nodeType||r||this.flowNodes.push(o),3!=t.nodeType||n?3==t.nodeType&&n&&a(e||this.flowNodes):this.flowNodes.push(o)},createAgent(t){const e=i(t);function i({node:t,nodeType:e}){let i={name:"代理人",nodeType:11,parallelRouteType:3==e?1:null,deptSn:null,signRoleSn:1==e?t.value:null,remark:t.remark,titleName:t.titleName,isBoss:t.isBoss,treeSN:"tree-"+(new Date).getTime(),isEdit:!1,children:[]};return i}this.flowNodes.push(e),setTimeout(()=>{this.$refs.treeNode.expandAll()},50)},createUnitHead(t){const e=i(t);function i({node:t,nodeType:e}){let i={name:"單位主管",nodeType:12,parallelRouteType:3==e?1:null,deptSn:null,signRoleSn:1==e?t.value:null,remark:t.remark,titleName:t.titleName,isBoss:t.isBoss,treeSN:"tree-"+(new Date).getTime(),isEdit:!1,children:[]};return i}this.flowNodes.push(e),setTimeout(()=>{this.$refs.treeNode.expandAll()},50)},createTopHead(t){const e=i(t);function i({node:t,nodeType:e}){let i={name:"一級單位主管",nodeType:13,parallelRouteType:3==e?1:null,deptSn:null,signRoleSn:1==e?t.value:null,remark:t.remark,titleName:t.titleName,isBoss:t.isBoss,treeSN:"tree-"+(new Date).getTime(),isEdit:!1,children:[]};return i}this.flowNodes.push(e),setTimeout(()=>{this.$refs.treeNode.expandAll()},50)},createVicePrincipal(t){const e=i(t);function i({node:t,nodeType:e}){let i={name:"副校長",nodeType:14,parallelRouteType:3==e?1:null,deptSn:null,signRoleSn:1==e?t.value:null,remark:t.remark,titleName:t.titleName,isBoss:t.isBoss,treeSN:"tree-"+(new Date).getTime(),isEdit:!1,children:[]};return i}this.flowNodes.push(e),setTimeout(()=>{this.$refs.treeNode.expandAll()},50)},async creatFastManager(t){const e=i(t);function i(){let e={name:t.deptCna,nodeType:2,deptSn:t.deptSn,treeSN:"tree-"+(new Date).getTime(),isEdit:!1,children:[{name:t.titleCna,nodeType:1,signTitleSn:t.titleSn,treeSN:`tree-${(new Date).getTime()}-title`,isEdit:!1,children:[]}]};return e}this.flowNodes.push(e),setTimeout(()=>{this.$refs.treeNode.expandAll()},50)},setSignTitleSn(t){let{node:e,nodeType:i}=t;return"member"==this.shape?1==i?e.titleSn:null:"title"==this.shape?1==i?e.value:null:void 0},async setTreeDom(t){if(!(t.signRoleSn||t.signUserSn||t.signUserSn)&&![1,4,11,12,13].includes(t.nodeType)){if(t.treeSN==this.useNode.treeSN)return this.setTreeDom({nodeType:1});if(this.useNode=t,this.shape="role",this.unitShape="unit",2!==t.nodeType)this.members=[],this.roles=[];else{this.loadRolesState=!0;try{let e=await this.Api.get(`options/depts/${t.deptSn}/members`);this.members=e.data.result;let i=await this.Api.get(`options/depts/${t.deptSn}/titles`);this.titles=i.data.result;let n=await this.Api.get(`options/depts/${t.deptSn}/roles`),{result:r}=n.data;this.roles=r,this.loadRolesState=!1}catch(e){return this.loadRolesState=!1,e}}}},removeNode(t){this.removeCircle(t,this.flowNodes)},removeCircle(t,e){let i=this;e.forEach((n,r)=>{n.treeSN==t?(e.splice(r,1),this.members=[],this.roles=[],this.titles=[],this.useNode={}):n.children&&i.removeCircle(t,n.children)}),this.checkBranchHaveItem()},checkBranchHaveItem(){this.removeBranchCircle(this.flowNodes)},removeBranchCircle(t){let e=this;t.forEach((i,n)=>{0==i.children.length&&4==i.nodeType?t.splice(n,1):i.children&&e.removeBranchCircle(i.children)})},openSort(t){this.sortTarget=t.treeSN,this.sortInfo=t.children,this.poupSwch.sort=!0},closeSort(){this.componentKey+=1,this.poupSwch.sort=!1},async fetchUnitMgr(){let t=await this.Api.get("options/bosstitles");this.unitMgrs=t.data.result},setInit(){this.fetchUnitMgr()},filterDeptOpt(t,e){e(""!==t?()=>{this.useShareDetp=this.deptInfo.filter(e=>e.label.includes(t))}:()=>{this.useShareDetp=this.deptInfo})},close(){this.componentKey=1,this.settInfo={authorizeType:1,deptSn:null,deptSns:[]},this.searchDeptName="",this.searchUnitMgrsName="",this.searchMemberName="",this.searchTitleName="",this.searchRolesName="",this.flowNodes=[],this.useShareDetp=[],this.shape="role",this.unitShape="unit",this.useNode={nodeType:"s"},this.$emit("close")}}},iu=eu,nu=(i("2abd"),he.a.extend({name:"QForm",mixins:[De],props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean},computed:{onEvents(){return{...this.qListeners,submit:this.submit,reset:this.reset}}},mounted(){this.validateIndex=0,!0===this.autofocus&&this.focus()},activated(){!0===this.shouldActivate&&!0===this.autofocus&&this.focus()},deactivated(){this.shouldActivate=!0},methods:{validate(t){const e="boolean"===typeof t?t:!0!==this.noErrorFocus,i=++this.validateIndex,n=this.getValidationComponents().filter(t=>!0!==t.disable),r=(t,e)=>{this.$emit("validation-"+(!0===t?"success":"error"),e)},s=t=>{const e=t.validate();return"function"===typeof e.then?e.then(e=>({valid:e,comp:t}),e=>({valid:!1,comp:t,err:e})):Promise.resolve({valid:e,comp:t})},o=!0===this.greedy?Promise.all(n.map(s)).then(t=>t.filter(t=>!0!==t.valid)):n.reduce((t,e)=>t.then(()=>s(e).then(t=>{if(!1===t.valid)return Promise.reject(t)})),Promise.resolve()).catch(t=>[t]);return o.then(t=>{if(void 0===t||0===t.length)return i===this.validateIndex&&r(!0),!0;if(i===this.validateIndex){const{comp:i,err:n}=t[0];if(void 0!==n&&console.error(n),r(!1,i),!0===e){const e=t.find(({comp:t})=>"function"===typeof t.focus&&!0!==t._isBeingDestroyed&&!0!==t._isDestroyed&&!0!==t._inactive);void 0!==e&&e.comp.focus()}}return!1})},resetValidation(){this.validateIndex++,this.getValidationComponents().forEach(t=>{"function"===typeof t.resetValidation&&t.resetValidation()})},submit(t){void 0!==t&&vi(t);const e=this.validateIndex+1;this.validate().then(i=>{e===this.validateIndex&&!0===i&&(void 0!==this.qListeners.submit?this.$emit("submit",t):void 0!==t&&void 0!==t.target&&"function"===typeof t.target.submit&&t.target.submit())})},reset(t){void 0!==t&&vi(t),this.$emit("reset"),this.$nextTick(()=>{this.resetValidation(),!0===this.autofocus&&!0!==this.noResetFocus&&this.focus()})},focus(){qn(()=>{if(!this.$el)return;const t=this.$el.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||this.$el.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||this.$el.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(this.$el.querySelectorAll("[tabindex]"),t=>t.tabIndex>-1);null!==t&&void 0!==t&&t.focus({preventScroll:!0})})},getValidationComponents(){return Array.prototype.map.call(this.$el.getElementsByClassName("q-validation-component"),t=>t.__vue__).filter(t=>void 0!==t&&"function"===typeof t.validate)}},render(t){return t("form",{staticClass:"q-form",on:this.onEvents},Re(this,"default"))}})),ru=he.a.extend({name:"QToggle",mixins:[Rr],props:{icon:String,iconColor:String},computed:{computedIcon(){return(!0===this.isTrue?this.checkedIcon:!0===this.isIndeterminate?this.indeterminateIcon:this.uncheckedIcon)||this.icon},computedIconColor(){if(!0===this.isTrue)return this.iconColor}},methods:{__getInner(t){return[t("div",{staticClass:"q-toggle__track"}),t("div",{staticClass:"q-toggle__thumb absolute flex flex-center no-wrap"},void 0!==this.computedIcon?[t(Je,{props:{name:this.computedIcon,color:this.computedIconColor}})]:void 0)]}},created(){this.type="toggle"}}),su=he.a.extend({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},methods:{__begin(t,e,i){void 0!==e&&(t.style.height=e+"px"),t.style.transition=`height ${this.duration}ms cubic-bezier(.25, .8, .50, 1)`,this.animating=!0,this.done=i},__end(t,e){t.style.overflowY=null,t.style.height=null,t.style.transition=null,this.__cleanup(),e!==this.lastEvent&&this.$emit(e)},__cleanup(){this.done&&this.done(),this.done=null,this.animating=!1,clearTimeout(this.timer),clearTimeout(this.timerFallback),void 0!==this.el&&this.el.removeEventListener("transitionend",this.animListener),this.animListener=null}},beforeDestroy(){this.animating&&this.__cleanup()},render(t){return t("transition",{props:{css:!1,appear:this.appear},on:Ae(this,"tr",{enter:(t,e)=>{let i=0;this.el=t,!0===this.animating?(this.__cleanup(),i=t.offsetHeight===t.scrollHeight?0:void 0):(this.lastEvent="hide",t.style.overflowY="hidden"),this.__begin(t,i,e),this.timer=setTimeout(()=>{t.style.height=t.scrollHeight+"px",this.animListener=e=>{Object(e)===e&&e.target!==t||this.__end(t,"show")},t.addEventListener("transitionend",this.animListener),this.timerFallback=setTimeout(this.animListener,1.1*this.duration)},100)},leave:(t,e)=>{let i;this.el=t,!0===this.animating?this.__cleanup():(this.lastEvent="show",t.style.overflowY="hidden",i=t.scrollHeight),this.__begin(t,i,e),this.timer=setTimeout(()=>{t.style.height=0,this.animListener=e=>{Object(e)===e&&e.target!==t||this.__end(t,"hide")},t.addEventListener("transitionend",this.animListener),this.timerFallback=setTimeout(this.animListener,1.1*this.duration)},100)}})},Re(this,"default"))}});const ou=["none","strict","leaf","leaf-filtered"];var au=he.a.extend({name:"QTree",mixins:[Cr],props:{nodes:{type:Array,required:!0},nodeKey:{type:String,required:!0},labelKey:{type:String,default:"label"},childrenKey:{type:String,default:"children"},dense:Boolean,color:String,controlColor:String,textColor:String,selectedColor:String,icon:String,tickStrategy:{type:String,default:"none",validator:t=>ou.includes(t)},ticked:Array,expanded:Array,selected:{},noSelectionUnset:Boolean,defaultExpandAll:Boolean,accordion:Boolean,filter:String,filterMethod:{type:Function,default(t,e){const i=e.toLowerCase();return t[this.labelKey]&&t[this.labelKey].toLowerCase().indexOf(i)>-1}},duration:Number,noConnectors:Boolean,noTransition:Boolean,noNodesLabel:String,noResultsLabel:String},computed:{classes(){return"q-tree q-tree--"+(!0===this.dense?"dense":"standard")+(!0===this.noConnectors?" q-tree--no-connectors":"")+(!0===this.isDark?" q-tree--dark":"")+(void 0!==this.color?" text-"+this.color:"")},hasSelection(){return void 0!==this.selected},computedIcon(){return this.icon||this.$q.iconSet.tree.icon},computedControlColor(){return this.controlColor||this.color},textColorClass(){if(void 0!==this.textColor)return"text-"+this.textColor},selectedColorClass(){const t=this.selectedColor||this.color;if(t)return"text-"+t},meta(){const t={},e=(i,n)=>{const r=i.tickStrategy||(n?n.tickStrategy:this.tickStrategy),s=i[this.nodeKey],o=i[this.childrenKey]&&i[this.childrenKey].length>0,a=!0!==i.disabled&&!0===this.hasSelection&&!1!==i.selectable,l=!0!==i.disabled&&!1!==i.expandable,c="none"!==r,u="strict"===r,h="leaf-filtered"===r,d="leaf"===r||"leaf-filtered"===r;let p=!0!==i.disabled&&!1!==i.tickable;!0===d&&!0===p&&n&&!0!==n.tickable&&(p=!1);let f=i.lazy;!0===f&&void 0!==this.lazy[s]&&!0===Array.isArray(i[this.childrenKey])&&(f=this.lazy[s]);const m={key:s,parent:n,isParent:o,lazy:f,disabled:i.disabled,link:!0!==i.disabled&&(!0===a||!0===l&&(!0===o||!0===f)),children:[],matchesFilter:!this.filter||this.filterMethod(i,this.filter),selected:s===this.selected&&!0===a,selectable:a,expanded:!0===o&&this.innerExpanded.includes(s),expandable:l,noTick:!0===i.noTick||!0!==u&&f&&"loaded"!==f,tickable:p,tickStrategy:r,hasTicking:c,strictTicking:u,leafFilteredTicking:h,leafTicking:d,ticked:(!0===u||!0!==o)&&this.innerTicked.includes(s)};if(t[s]=m,!0===o&&(m.children=i[this.childrenKey].map(t=>e(t,m)),this.filter&&(!0!==m.matchesFilter?m.matchesFilter=m.children.some(t=>t.matchesFilter):!0!==m.noTick&&!0!==m.disabled&&!0===m.tickable&&!0===h&&!0===m.children.every(t=>!0!==t.matchesFilter||!0===t.noTick||!0!==t.tickable)&&(m.tickable=!1)),!0===m.matchesFilter&&(!0!==m.noTick&&!0!==u&&!0===m.children.every(t=>t.noTick)&&(m.noTick=!0),d))){if(m.ticked=!1,m.indeterminate=m.children.some(t=>!0===t.indeterminate),m.tickable=!0===m.tickable&&m.children.some(t=>t.tickable),!0!==m.indeterminate){const t=m.children.reduce((t,e)=>!0===e.ticked?t+1:t,0);t===m.children.length?m.ticked=!0:t>0&&(m.indeterminate=!0)}!0===m.indeterminate&&(m.indeterminateNextState=m.children.every(t=>!0!==t.tickable||!0!==t.ticked))}return m};return this.nodes.forEach(t=>e(t,null)),t}},data(){return{lazy:{},innerTicked:this.ticked||[],innerExpanded:this.expanded||[]}},watch:{ticked(t){this.innerTicked=t},expanded(t){this.innerExpanded=t}},methods:{getNodeByKey(t){const e=[].reduce,i=(n,r)=>n||!r?n:!0===Array.isArray(r)?e.call(Object(r),i,n):r[this.nodeKey]===t?r:r[this.childrenKey]?i(null,r[this.childrenKey]):void 0;return i(null,this.nodes)},getTickedNodes(){return this.innerTicked.map(t=>this.getNodeByKey(t))},getExpandedNodes(){return this.innerExpanded.map(t=>this.getNodeByKey(t))},isExpanded(t){return!(!t||!this.meta[t])&&this.meta[t].expanded},collapseAll(){void 0!==this.expanded?this.$emit("update:expanded",[]):this.innerExpanded=[]},expandAll(){const t=[],e=i=>{i[this.childrenKey]&&i[this.childrenKey].length>0&&!1!==i.expandable&&!0!==i.disabled&&(t.push(i[this.nodeKey]),i[this.childrenKey].forEach(e))};this.nodes.forEach(e),void 0!==this.expanded?this.$emit("update:expanded",t):this.innerExpanded=t},setExpanded(t,e,i=this.getNodeByKey(t),n=this.meta[t]){if(n.lazy&&"loaded"!==n.lazy){if("loading"===n.lazy)return;this.$set(this.lazy,t,"loading"),!0!==Array.isArray(i[this.childrenKey])&&this.$set(i,this.childrenKey,[]),this.$emit("lazy-load",{node:i,key:t,done:e=>{this.lazy[t]="loaded",this.$set(i,this.childrenKey,!0===Array.isArray(e)?e:[]),this.$nextTick(()=>{const e=this.meta[t];e&&!0===e.isParent&&this.__setExpanded(t,!0)})},fail:()=>{this.$delete(this.lazy,t),0===i[this.childrenKey].length&&this.$delete(i,this.childrenKey)}})}else!0===n.isParent&&!0===n.expandable&&this.__setExpanded(t,e)},__setExpanded(t,e){let i=this.innerExpanded;const n=void 0!==this.expanded;if(!0===n&&(i=i.slice()),e){if(this.accordion&&this.meta[t]){const e=[];this.meta[t].parent?this.meta[t].parent.children.forEach(i=>{i.key!==t&&!0===i.expandable&&e.push(i.key)}):this.nodes.forEach(i=>{const n=i[this.nodeKey];n!==t&&e.push(n)}),e.length>0&&(i=i.filter(t=>!1===e.includes(t)))}i=i.concat([t]).filter((t,e,i)=>i.indexOf(t)===e)}else i=i.filter(e=>e!==t);!0===n?this.$emit("update:expanded",i):this.innerExpanded=i},isTicked(t){return!(!t||!this.meta[t])&&this.meta[t].ticked},setTicked(t,e){let i=this.innerTicked;const n=void 0!==this.ticked;!0===n&&(i=i.slice()),i=e?i.concat(t).filter((t,e,i)=>i.indexOf(t)===e):i.filter(e=>!1===t.includes(e)),!0===n&&this.$emit("update:ticked",i)},__getSlotScope(t,e,i){const n={tree:this,node:t,key:i,color:this.color,dark:this.isDark};return Lr(n,"expanded",()=>e.expanded,t=>{t!==e.expanded&&this.setExpanded(i,t)}),Lr(n,"ticked",()=>e.ticked,t=>{t!==e.ticked&&this.setTicked([i],t)}),n},__getChildren(t,e){return(this.filter?e.filter(t=>this.meta[t[this.nodeKey]].matchesFilter):e).map(e=>this.__getNode(t,e))},__getNodeMedia(t,e){if(void 0!==e.icon)return t(Je,{staticClass:"q-tree__icon q-mr-sm",props:{name:e.icon,color:e.iconColor}});const i=e.img||e.avatar;return i?t("img",{staticClass:`q-tree__${e.img?"img":"avatar"} q-mr-sm`,attrs:{src:i}}):void 0},__getNode(t,e){const i=e[this.nodeKey],n=this.meta[i],r=e.header&&this.$scopedSlots["header-"+e.header]||this.$scopedSlots["default-header"],s=!0===n.isParent?this.__getChildren(t,e[this.childrenKey]):[],o=s.length>0||n.lazy&&"loaded"!==n.lazy;let a=e.body&&this.$scopedSlots["body-"+e.body]||this.$scopedSlots["default-body"];const l=void 0!==r||void 0!==a?this.__getSlotScope(e,n,i):null;return void 0!==a&&(a=t("div",{staticClass:"q-tree__node-body relative-position"},[t("div",{class:this.textColorClass},[a(l)])])),t("div",{key:i,staticClass:"q-tree__node relative-position",class:{"q-tree__node--parent":o,"q-tree__node--child":!o}},[t("div",{staticClass:"q-tree__node-header relative-position row no-wrap items-center",class:{"q-tree__node--link q-hoverable q-focusable":n.link,"q-tree__node--selected":n.selected,"q-tree__node--disabled":n.disabled},attrs:{tabindex:n.link?0:-1},on:{click:t=>{this.__onClick(e,n,t)},keypress:t=>{!0!==Ci(t)&&(13===t.keyCode?this.__onClick(e,n,t,!0):32===t.keyCode&&this.__onExpandClick(e,n,t,!0))}}},[t("div",{staticClass:"q-focus-helper",attrs:{tabindex:-1},ref:"blurTarget_"+n.key}),"loading"===n.lazy?t(ei,{staticClass:"q-tree__spinner",props:{color:this.computedControlColor}}):!0===o?t(Je,{staticClass:"q-tree__arrow",class:{"q-tree__arrow--rotate":n.expanded},props:{name:this.computedIcon},on:{click:t=>{this.__onExpandClick(e,n,t)}}}):null,!0===n.hasTicking&&!0!==n.noTick?t(Pr,{staticClass:"q-tree__tickbox",props:{value:!0===n.indeterminate?null:n.ticked,color:this.computedControlColor,dark:this.isDark,dense:!0,keepColor:!0,disable:!0!==n.tickable},on:{keydown:vi,input:t=>{this.__onTickedClick(n,t)}}}):null,t("div",{staticClass:"q-tree__node-header-content col row no-wrap items-center",class:n.selected?this.selectedColorClass:this.textColorClass},[r?r(l):[this.__getNodeMedia(t,e),t("div",e[this.labelKey])]])]),!0===o?!0===this.noTransition?t("div",{staticClass:"q-tree__node-collapsible",class:this.textColorClass,directives:[{name:"show",value:n.expanded}]},[a,t("div",{staticClass:"q-tree__children",class:{"q-tree__node--disabled":n.disabled}},s)]):t(su,{props:{duration:this.duration},on:Ae(this,"slide",{show:()=>{this.$emit("after-show")},hide:()=>{this.$emit("after-hide")}})},[t("div",{staticClass:"q-tree__node-collapsible",class:this.textColorClass,directives:[{name:"show",value:n.expanded}]},[a,t("div",{staticClass:"q-tree__children",class:{"q-tree__node--disabled":n.disabled}},s)])]):a])},__blur(t){const e=this.$refs["blurTarget_"+t];void 0!==e&&e.focus()},__onClick(t,e,i,n){!0!==n&&this.__blur(e.key),this.hasSelection&&e.selectable?!1===this.noSelectionUnset?this.$emit("update:selected",e.key!==this.selected?e.key:null):e.key!==this.selected&&this.$emit("update:selected",void 0===e.key?null:e.key):this.__onExpandClick(t,e,i,n),"function"===typeof t.handler&&t.handler(t)},__onExpandClick(t,e,i,n){void 0!==i&&vi(i),!0!==n&&this.__blur(e.key),this.setExpanded(e.key,!e.expanded,t,e)},__onTickedClick(t,e){if(!0===t.indeterminate&&(e=t.indeterminateNextState),t.strictTicking)this.setTicked([t.key],e);else if(t.leafTicking){const i=[],n=t=>{t.isParent?(!0!==e&&!0!==t.noTick&&!0===t.tickable&&i.push(t.key),!0===t.leafTicking&&t.children.forEach(n)):!0===t.noTick||!0!==t.tickable||!0===t.leafFilteredTicking&&!0!==t.matchesFilter||i.push(t.key)};n(t),this.setTicked(i,e)}}},render(t){const e=this.__getChildren(t,this.nodes);return t("div",{class:this.classes},0===e.length?this.filter?this.noResultsLabel||this.$q.lang.tree.noResults:this.noNodesLabel||this.$q.lang.tree.noNodes:e)},created(){!0===this.defaultExpandAll&&this.expandAll()}}),lu=he.a.extend({name:"QRadio",mixins:[Cr,$r,Ar,Dr],props:{value:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},computed:{isTrue(){return this.value===this.val},classes(){return"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(!0===this.disable?" disabled":"")+(!0===this.isDark?" q-radio--dark":"")+(!0===this.dense?" q-radio--dense":"")+(!0===this.leftLabel?" reverse":"")},innerClass(){const t=void 0===this.color||!0!==this.keepColor&&!0!==this.isTrue?"":" text-"+this.color;return`q-radio__inner--${!0===this.isTrue?"truthy":"falsy"}${t}`},computedIcon(){return!0===this.isTrue?this.checkedIcon:this.uncheckedIcon},computedTabindex(){return!0===this.disable?-1:this.tabindex||0},formAttrs(){const t={type:"radio"};return void 0!==this.name&&Object.assign(t,{name:this.name,value:this.val}),t},formDomProps(){if(void 0!==this.name&&!0===this.isTrue)return{checked:!0}},attrs(){const t={tabindex:this.computedTabindex,role:"radio","aria-label":this.label,"aria-checked":!0===this.isTrue?"true":"false"};return!0===this.disable&&(t["aria-disabled"]="true"),t}},methods:{set(t){void 0!==t&&(vi(t),this.__refocusTarget(t)),!0!==this.disable&&!0!==this.isTrue&&this.$emit("input",this.val,t)}},render(t){const e=void 0!==this.computedIcon?[t("div",{key:"icon",staticClass:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[t(Je,{staticClass:"q-radio__icon",props:{name:this.computedIcon}})])]:[t("svg",{key:"svg",staticClass:"q-radio__bg absolute non-selectable",attrs:{focusable:"false",viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}}),t("path",{staticClass:"q-radio__check",attrs:{d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"}})])];!0!==this.disable&&this.__injectFormInput(e,"unshift","q-radio__native q-ma-none q-pa-none");const i=[t("div",{staticClass:"q-radio__inner relative-position",class:this.innerClass,style:this.sizeStyle,attrs:{"aria-hidden":"true"}},e)];void 0!==this.__refocusTargetEl&&i.push(this.__refocusTargetEl);const n=void 0!==this.label?Oe([this.label],this,"default"):Re(this,"default");return void 0!==n&&i.push(t("div",{staticClass:"q-radio__label q-anchor--skip"},n)),t("div",{class:this.classes,attrs:this.attrs,on:Ae(this,"inpExt",{click:this.set,keydown:t=>{13!==t.keyCode&&32!==t.keyCode||vi(t)},keyup:t=>{13!==t.keyCode&&32!==t.keyCode||this.set(t)}})},i)}}),cu=ce(iu,Uc,Qc,!1,null,null,null),uu=cu.exports;ta()(cu,"components",{QDialog:xr,QCard:kr,QForm:nu,QToolbar:qr,QToolbarTitle:Er,QBtn:bn,QCardSection:Mr,QSeparator:po,QInput:Wo,QSelect:ao,QItem:rs,QItemSection:ss,QItemLabel:os,QToggle:ru,QSpace:Rl,QIcon:Je,QScrollArea:tc,QTree:au,QPopupProxy:xa,QList:mo,QRadio:lu,QInnerLoading:Go}),ta()(cu,"directives",{ClosePopup:nc,Ripple:Gi});var hu=function(){var t=this,e=t._self._c;return e("q-dialog",{attrs:{persistent:""},on:{"before-show":t.setInfo},model:{value:t.prompt,callback:function(e){t.prompt=e},expression:"prompt"}},[e("q-card",{staticClass:"bg-grey-3",style:t.modelSize},[e("q-form",{attrs:{greedy:""},on:{submit:t.onSubmit}},[e("q-toolbar",{staticClass:"bg-blue-10 text-white"},[e("q-toolbar-title",[e("span",[t._v("編輯簽核流程模板")])]),e("q-btn",{attrs:{flat:"",round:"",dense:"",icon:"close"},on:{click:t.close}})],1),e("q-card-section",{attrs:{horizontal:""}},[e("q-card-section",{staticClass:"full-width"},[e("section",{staticClass:"row q-col-gutter-sm"},[e("div",{staticClass:"col-5 row q-col-gutter-sm"},[e("q-input",{staticClass:"col-12",attrs:{outlined:"","bg-color":"white",dense:"",label:"模板名稱",maxlength:"30",disable:!t.data.canEdit},model:{value:t.settInfo.name,callback:function(e){t.$set(t.settInfo,"name",e)},expression:"settInfo.name"}}),e("q-select",{staticClass:"col-12",attrs:{outlined:"","bg-color":"white",dense:"",options:t.options.authorizeType,label:"權限類型","map-options":"","emit-value":"",disable:!t.data.canEdit},on:{input:function(e){t.settInfo.deptSns=[]}},model:{value:t.settInfo.authorizeType,callback:function(e){t.$set(t.settInfo,"authorizeType",e)},expression:"settInfo.authorizeType"}})],1),e("q-input",{staticClass:"col",attrs:{outlined:"","bg-color":"white",dense:"",label:"模板描述","input-style":"height:72px",maxlength:"100",type:"textarea",disable:!t.data.canEdit},model:{value:t.settInfo.description,callback:function(e){t.$set(t.settInfo,"description",e)},expression:"settInfo.description"}}),e("div",{staticClass:"col-12",staticStyle:{"min-height":"52px"}},[e("q-select",{attrs:{outlined:"","bg-color":"white",dense:"",options:t.useShareDetp,label:"共用單位","map-options":"","emit-value":"",disable:3!==t.settInfo.authorizeType,"use-chips":"","stack-label":"",multiple:"","use-input":""},on:{filter:t.filterDeptOpt},scopedSlots:t._u([{key:"option",fn:function({itemProps:i,itemEvents:n,opt:r,selected:s,toggleOption:o}){return[e("q-item",t._g(t._b({},"q-item",i,!1),n),[e("q-item-section",[e("q-item-label",[t._v(t._s(r.label))])],1),e("q-item-section",{attrs:{side:""}},[e("q-toggle",{attrs:{value:s},on:{input:function(t){return o(r.value)}}})],1)],1)]}}]),model:{value:t.settInfo.deptSns,callback:function(e){t.$set(t.settInfo,"deptSns",e)},expression:"settInfo.deptSns"}})],1)],1),e("q-separator",{attrs:{spaced:""}}),e("q-card",{attrs:{flat:"",bordered:""}},[e("q-card-section",{staticClass:"flex items-center q-py-xs"},[e("span",{staticClass:"text-h6"},[t._v("簽核流程設置")]),e("q-space"),t.data.canEdit?e("q-btn",{attrs:{icon:"swap_horiz",color:"blue-9",flat:"",dense:"",label:"新增分會流程",disable:3==t.useNode.nodeType},on:{click:function(e){return t.creatNewNode({node:{label:"分會流程"},nodeType:3})}}}):t._e()],1),e("q-separator"),e("q-card-section",{attrs:{horizontal:""}},[e("q-card-section",{staticStyle:{"min-width":"145px"}},[e("div",{staticClass:"text-center"},[t._v("圖示說明")]),e("q-separator",{attrs:{spaced:""}}),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"my_location",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("流程起點")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"bookmarks",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("單位")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"perm_contact_calendar",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("人員")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"attribution",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("職稱")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"switch_account",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("角色")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"account_circle",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("單位主管")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"admin_panel_settings",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("一級主管")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"supervised_user_circle",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("副校長")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{attrs:{name:"group",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("代理人")])],1),e("div",{staticClass:"roleDesc"},[e("q-icon",{staticStyle:{transform:"rotate(45deg)"},attrs:{name:"push_pin",size:"20px"}}),e("span",{staticClass:"q-ml-sm"},[t._v("不可異動")])],1),e("div",{staticClass:"q-mt-md text-red-6 text-cener"},[t._v("※ 此處非按鈕 ※")])],1),e("q-separator",{attrs:{vertical:""}}),e("q-card-section",{staticClass:"q-px-xs full-width"},[e("q-scroll-area",{staticStyle:{height:"420px"},attrs:{"content-style":{width:"100%"}}},[e("q-tree",{key:t.componentKey,ref:"treeNode",staticClass:"q-mr-sm",attrs:{nodes:t.treeData,"node-key":"treeSN","label-key":"name","children-key":"children","default-expand-all":"","no-transition":"",selected:t.selected},on:{"update:selected":function(e){t.selected=e}},scopedSlots:t._u([{key:"default-header",fn:function(i){return[e("div",{staticClass:"row items-center cursor-pointer full-width",staticStyle:{"font-size":"16px"},on:{click:function(e){t.setTreeDom(Object.assign({},i.node,{form:"tree"}))}}},[e("q-icon",{staticClass:"q-mr-sm",class:["s"==i.node.nodeType?"text-blue-10":t.useNode.treeSN==i.node.treeSN?"text-warning":"text-grey-8"],attrs:{name:"s"==i.node.nodeType?"my_location":4==i.node.nodeType?"turned_in_not":3==i.node.nodeType?"swap_horiz":11==i.node.nodeType?"group":12==i.node.nodeType?"account_circle":13==i.node.nodeType?"admin_panel_settings":14==i.node.nodeType?"supervised_user_circle":i.node.signUserSn?"perm_contact_calendar":i.node.signRoleSn?"switch_account":i.node.signTitleSn?"attribution":i.node.deptSn?"bookmarks":"person",size:"22px"}}),e("div",{class:["s"==i.node.nodeType?"text-blue-10":t.useNode.treeSN==i.node.treeSN?"text-warning":"text-grey-8"]},[t._v(" "+t._s(i.node.name||"分會流程")+" ")]),e("q-space"),"s"===i.node.nodeType||i.node.isEdit?t._e():e("q-icon",{staticClass:"pinflow",attrs:{name:"push_pin",color:"red",size:"22px"}}),e("q-popup-proxy",{attrs:{"context-menu":""}},[e("q-list",{directives:[{name:"show",rawName:"v-show",value:t.data.canEdit,expression:"data.canEdit"}],attrs:{bordered:"",separator:""}},[[1,11,12,13,14].includes(i.node.nodeType)?t._e():e("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:""},on:{click:function(e){return t.openSort(i.node)}}},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{attrs:{name:"swap_vert",color:"blue-9",size:"28px"}})],1),e("q-item-section",[e("q-item-label",[t._v("調整 - 簽核順序")])],1)],1),"s"!==i.node.nodeType?e("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:""},on:{click:function(t){i.node.isEdit=!i.node.isEdit}}},[e("q-item-section",{attrs:{avatar:""}},["s"!==i.node.nodeType?e("q-icon",{staticClass:"pinflow",attrs:{name:"push_pin",color:"red",size:"28px"}}):t._e()],1),e("q-item-section",[e("q-item-label",[i.node.isEdit?e("span",[t._v("調整 - 不可異動")]):e("span",[t._v("調整 - 可異動")])])],1)],1):t._e(),"s"!==i.node.nodeType?e("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:""},on:{click:function(e){return t.removeNode(i.node.treeSN)}}},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{attrs:{name:"remove_circle_outline",color:"red-9",size:"24px"}})],1),e("q-item-section",[e("q-item-label",[t._v("移除 - "+t._s(i.node.name))])],1)],1):t._e()],1)],1)],1)]}}])})],1)],1)],1)],1)],1),e("q-separator",{attrs:{vertical:""}}),t.data.canEdit?e("q-card-section",{staticStyle:{"min-width":"420px","font-size":"16px"}},[e("section",{directives:[{name:"show",rawName:"v-show",value:!t.useNode.deptSn,expression:"!useNode.deptSn"}]},[e("div",{staticClass:"row q-col-gutter-sm q-mb-sm"},[e("div",{staticClass:"col-6"},[e("q-btn",{staticClass:"full-width",attrs:{icon:"group_add",label:"代理人",color:"blue-10",unelevated:""},on:{click:function(e){return t.createAgent({node:{label:"代理人"},nodeType:11})}}})],1),e("div",{staticClass:"col-6"},[e("q-btn",{staticClass:"full-width",attrs:{icon:"group_add",label:"單位主管",color:"blue-10",unelevated:""},on:{click:function(e){return t.createUnitHead({node:{label:"單位主管"},nodeType:12})}}})],1),e("div",{staticClass:"col-6"},[e("q-btn",{staticClass:"full-width",attrs:{icon:"group_add",label:"一級主管",color:"blue-10",unelevated:""},on:{click:function(e){return t.createTopHead({node:{label:"一級單位主管"},nodeType:13})}}})],1),e("div",{staticClass:"col-6"},[e("q-btn",{staticClass:"full-width",attrs:{icon:"group_add",label:"副校長",color:"blue-10",unelevated:""},on:{click:function(e){return t.createVicePrincipal({node:{label:"副校長"},nodeType:14})}}})],1)]),e("div",{staticClass:"q-gutter-sm q-mb-sm"},[e("q-radio",{attrs:{val:"unit",label:"單位"},model:{value:t.unitShape,callback:function(e){t.unitShape=e},expression:"unitShape"}}),e("q-radio",{attrs:{val:"titleUnit",label:"主管"},model:{value:t.unitShape,callback:function(e){t.unitShape=e},expression:"unitShape"}})],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"unit"==t.unitShape,expression:"unitShape == 'unit'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"單位搜尋"},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}],null,!1,4009527860),model:{value:t.searchDeptName,callback:function(e){t.searchDeptName=e},expression:"searchDeptName"}}),0==t.useDepts.length?e("div",{staticClass:"empEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無單位資訊")])]):e("q-scroll-area",{staticStyle:{height:"495px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useDepts,(function(i){return e("q-item",{key:i.value,attrs:{clickable:""},on:{click:function(e){return t.creatNewNode({node:i,nodeType:2})}}},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{attrs:{name:"bookmarks",color:"blue-8",size:"24px"}})],1),e("q-item-section",[t._v(t._s(i.label))])],1)})),1)],1)],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"titleUnit"==t.unitShape,expression:"unitShape == 'titleUnit'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"單位搜尋"},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}],null,!1,4009527860),model:{value:t.searchUnitMgrsName,callback:function(e){t.searchUnitMgrsName=e},expression:"searchUnitMgrsName"}}),0==t.useTitleUnit.length?e("div",{staticClass:"empEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無單位資訊")])]):e("q-scroll-area",{staticStyle:{height:"495px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useTitleUnit,(function(i){return e("q-item",{key:i.value,attrs:{clickable:""},on:{click:function(e){return t.creatFastManager(i)}}},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{attrs:{name:"bookmarks",color:"blue-8",size:"24px"}})],1),e("q-item-section",[e("q-item-label",{attrs:{caption:""}},[t._v(t._s(i.deptCna))]),e("q-item-label",[t._v(t._s(i.titleCna))])],1)],1)})),1)],1)],1)]),e("section",{directives:[{name:"show",rawName:"v-show",value:t.useNode.deptSn,expression:"useNode.deptSn"}],staticClass:"relative-position"},[e("q-inner-loading",{staticStyle:{"z-index":"10"},attrs:{showing:t.loadRolesState,label:"讀取中","label-class":"text-teal","label-style":"font-size: 1.1em"}}),e("div",{staticClass:"q-gutter-sm q-mb-sm"},[e("q-radio",{attrs:{val:"role",label:"角色"},model:{value:t.shape,callback:function(e){t.shape=e},expression:"shape"}}),e("q-radio",{attrs:{val:"member",label:"人員"},model:{value:t.shape,callback:function(e){t.shape=e},expression:"shape"}}),e("q-radio",{attrs:{val:"title",label:"職稱"},model:{value:t.shape,callback:function(e){t.shape=e},expression:"shape"}})],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"member"==t.shape,expression:"shape == 'member'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"人員搜尋"},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}],null,!1,4009527860),model:{value:t.searchMemberName,callback:function(e){t.searchMemberName=e},expression:"searchMemberName"}}),0==t.useMember.length?e("div",{staticClass:"empTemEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無人員資訊")])]):e("q-scroll-area",{staticStyle:{height:"555px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useMember,(function(i,n){return e("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],key:n,attrs:{clickable:""},on:{click:function(e){return t.creatNewNode({node:i,nodeType:1})}}},[e("q-item-section",[t._v(t._s(i.label))]),e("q-item-section",{attrs:{side:""}},[t._v(t._s(i.titleName))])],1)})),1)],1)],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"role"==t.shape,expression:"shape == 'role'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"角色搜尋"},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}],null,!1,4009527860),model:{value:t.searchRolesName,callback:function(e){t.searchRolesName=e},expression:"searchRolesName"}}),0==t.useRoles.length?e("div",{staticClass:"empTemEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無角色資訊")])]):e("q-scroll-area",{staticStyle:{height:"555px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useRoles,(function(i,n){return e("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],key:n,attrs:{clickable:""},on:{click:function(e){return t.creatNewNode({node:i,nodeType:1})}}},[e("q-item-section",[t._v(t._s(i.label))]),e("q-item-section",{attrs:{side:""}},[t._v(t._s(i.titleName))])],1)})),1)],1)],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"title"==t.shape,expression:"shape == 'title'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"職稱搜尋"},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}],null,!1,4009527860),model:{value:t.searchTitleName,callback:function(e){t.searchTitleName=e},expression:"searchTitleName"}}),0==t.useTitles.length?e("div",{staticClass:"empTemEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無職稱資訊")])]):e("q-scroll-area",{staticStyle:{height:"555px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useTitles,(function(i,n){return e("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],key:n,attrs:{clickable:""},on:{click:function(e){return t.creatNewNode({node:i,nodeType:1})}}},[e("q-item-section",[t._v(t._s(i.label))]),e("q-item-section",{attrs:{side:""}},[t._v(t._s(i.titleName))])],1)})),1)],1)],1)],1)]):t._e()],1),e("q-separator"),t.data.canEdit?e("q-card-section",{staticClass:"text-right"},[e("q-btn",{attrs:{icon:"save",label:"更新模板",color:"blue-10",type:"submit",disable:!t.settInfo.name}})],1):t._e()],1)],1),e("sotrNode",{attrs:{prompt:t.poupSwch.sort,list:t.sortInfo},on:{closeSort:t.closeSort}})],1)},du=[],pu={name:"editflowTemplate",components:{sotrNode:tu},props:["prompt","Api","deptInfo","identities","data","editFlowNodes"],data(){return{searchDeptName:"",searchUnitMgrsName:"",searchMemberName:"",searchTitleName:"",searchRolesName:"",selected:null,settInfo:{authorizeType:1,deptSn:null,deptSns:[]},roles:[],members:[],titles:[],unitMgrs:[],useShareDetp:[],loadRolesState:!1,flowNodes:[],useNode:{nodeType:"s"},poupSwch:{sort:!1},sortInfo:[],sortTarget:null,componentKey:1,shape:"role",unitShape:"unit"}},computed:{options(){return{authorizeType:[{label:"公開",value:0},{label:"自己使用",value:1},{label:"單位共用",value:3}]}},treeData(){return[{children:[...this.flowNodes],nodeType:"s",name:"簽核流程",treeSN:"start"}]},useDepts(){let t=this.deptInfo.filter(t=>t.label.includes(this.searchDeptName));return t},useTitleUnit(){if(0==this.unitMgrs.length)return[];let t=this.unitMgrs.filter(t=>t.deptCna.includes(this.searchUnitMgrsName));return t},useMember(){return this.members.filter(t=>t.label.includes(this.searchMemberName))},useRoles(){return this.roles.filter(t=>t.label.includes(this.searchRolesName))},useTitles(){return this.titles.filter(t=>t.label.includes(this.searchTitleName))},modelSize(){return this.data.canEdit?{width:"1100px",maxWidth:"95vw"}:{width:"800px",maxWidth:"95vw"}}},methods:{setInfo(){let t=this.data.depts.map(t=>t.value);this.settInfo=Object.assign({},mc.a.cloneDeep(this.data),{deptSns:t}),this.flowNodes=mc.a.cloneDeep(this.editFlowNodes),this.useShareDetp=this.deptInfo,this.fetchUnitMgr()},async onSubmit(){this.settInfo.name||this.$swal({title:"未輸入模板名稱",icon:"warning"});let t=Object.assign({},this.settInfo,{flowNodes:this.treeData[0].children});try{fa.show(),await this.Api.put("flowtemplates/"+t.flowTemplateSn,t),fa.hide(),this.$swal({title:"模板已更新",icon:"success",timer:1e3,showConfirmButton:!1}),this.$emit("update"),this.close()}catch(e){let t=e.response.data.errorMessage,i="";for(let n=0;n<t.length;n++)i+=`<li style="text-align: left">${t[n].message}</li>`;this.$swal({title:"更新失敗",icon:"error",html:`<ul style="width:auto">${i}</ul> `}),fa.hide()}},creatNewNode(t){this.addFlowNode(t),this.$refs.treeNode.expandAll()},addFlowNode(t,e){let i=this,{treeSN:n,deptSn:r,nodeType:s}=this.useNode;const o=l(t);function a(e){e.forEach(e=>{e.treeSN==n?e.children.push(o):e.children&&i.addFlowNode(t,e.children)})}function l({node:t,nodeType:e}){let n={name:t.label||null,nodeType:e||null,parallelRouteType:3==e?1:null,deptSn:2==e?t.value:null,signRoleSn:"role"==i.shape&&1==e?t.value:null,signUserSn:"member"==i.shape&&1==e?t.userSn:null,signTitleSn:i.setSignTitleSn({node:t,nodeType:e}),remark:t.remark,titleName:t.titleName,isBoss:t.isBoss,treeSN:"tree-"+(new Date).getTime(),isEdit:!1,children:[]},r={name:"分會單位",nodeType:4,parallelRouteType:3==e?1:null,deptSn:null,signRoleSn:"role"==i.shape&&1==e?t.value:null,signUserSn:"member"==i.shape&&1==e?t.userSn:null,signTitleSn:i.setSignTitleSn({node:t,nodeType:e}),remark:t.remark,titleName:t.titleName,isBoss:t.isBoss,treeSN:`tree-${(new Date).getTime()}-branchWrap`,isEdit:!1,children:[]};return 3!==i.useNode.nodeType?n:(r.children.push(n),r)}1==t.nodeType&&a(e||this.flowNodes),2==t.nodeType&&r||3==s?a(e||this.flowNodes):2!=t.nodeType||r||this.flowNodes.push(o),3!=t.nodeType||n?3==t.nodeType&&n&&a(e||this.flowNodes):this.flowNodes.push(o)},createAgent(t){const e=i(t);function i({node:t,nodeType:e}){let i={name:"代理人",nodeType:11,parallelRouteType:3==e?1:null,deptSn:null,signRoleSn:1==e?t.value:null,remark:t.remark,titleName:t.titleName,isBoss:t.isBoss,treeSN:"tree-"+(new Date).getTime(),isEdit:!1,children:[]};return i}this.flowNodes.push(e),this.$refs.treeNode.expandAll()},createUnitHead(t){const e=i(t);function i({node:t,nodeType:e}){let i={name:"單位主管",nodeType:12,parallelRouteType:3==e?1:null,deptSn:null,signRoleSn:1==e?t.value:null,remark:t.remark,titleName:t.titleName,isBoss:t.isBoss,treeSN:"tree-"+(new Date).getTime(),isEdit:!1,children:[]};return i}this.flowNodes.push(e),setTimeout(()=>{this.$refs.treeNode.expandAll()},50)},createTopHead(t){const e=i(t);function i({node:t,nodeType:e}){let i={name:"一級單位主管",nodeType:13,parallelRouteType:3==e?1:null,deptSn:null,signRoleSn:1==e?t.value:null,remark:t.remark,titleName:t.titleName,isBoss:t.isBoss,treeSN:"tree-"+(new Date).getTime(),isEdit:!1,children:[]};return i}this.flowNodes.push(e),setTimeout(()=>{this.$refs.treeNode.expandAll()},50)},createVicePrincipal(t){const e=i(t);function i({node:t,nodeType:e}){let i={name:"副校長",nodeType:14,parallelRouteType:3==e?1:null,deptSn:null,signRoleSn:1==e?t.value:null,remark:t.remark,titleName:t.titleName,isBoss:t.isBoss,treeSN:"tree-"+(new Date).getTime(),isEdit:!1,children:[]};return i}this.flowNodes.push(e),setTimeout(()=>{this.$refs.treeNode.expandAll()},50)},async creatFastManager(t){const e=i(t);function i(){let e={name:t.deptCna,nodeType:2,deptSn:t.deptSn,treeSN:"tree-"+(new Date).getTime(),isEdit:!1,children:[{name:t.titleCna,nodeType:1,signTitleSn:t.titleSn,treeSN:`tree-${(new Date).getTime()}-title`,isEdit:!1,children:[]}]};return e}this.flowNodes.push(e),setTimeout(()=>{this.$refs.treeNode.expandAll()},50)},setSignTitleSn(t){let{node:e,nodeType:i}=t;return"member"==this.shape?1==i?e.titleSn:null:"title"==this.shape?1==i?e.value:null:void 0},async setTreeDom(t){if(!(t.signRoleSn||t.signUserSn||t.signUserSn)&&![1,4,11,12,13].includes(t.nodeType)){if(t.treeSN==this.useNode.treeSN)return this.setTreeDom({nodeType:1});if(this.useNode=t,this.shape="role",this.unitShape="unit",2!==t.nodeType)this.members=[],this.roles=[];else{this.loadRolesState=!0;try{let e=await this.Api.get(`options/depts/${t.deptSn}/members`);this.members=e.data.result;let i=await this.Api.get(`options/depts/${t.deptSn}/titles`);this.titles=i.data.result;let n=await this.Api.get(`options/depts/${t.deptSn}/roles`),{result:r}=n.data;this.roles=r,this.loadRolesState=!1}catch(e){return this.loadRolesState=!1,e}}}},removeNode(t){this.removeCircle(t,this.flowNodes)},removeCircle(t,e){let i=this;e.forEach((n,r)=>{n.treeSN==t?(e.splice(r,1),this.members=[],this.roles=[],this.titles=[],this.useNode={}):n.children&&i.removeCircle(t,n.children)}),this.checkBranchHaveItem()},checkBranchHaveItem(){this.removeBranchCircle(this.flowNodes)},removeBranchCircle(t){let e=this;t.forEach((i,n)=>{0==i.children.length&&4==i.nodeType?t.splice(n,1):i.children&&e.removeBranchCircle(i.children)})},openSort(t){this.sortTarget=t.treeSN,this.sortInfo=t.children,this.poupSwch.sort=!0},closeSort(){this.componentKey+=1,this.poupSwch.sort=!1},async fetchUnitMgr(){let t=await this.Api.get("options/bosstitles");this.unitMgrs=t.data.result},filterDeptOpt(t,e){e(""!==t?()=>{this.useShareDetp=this.deptInfo.filter(e=>e.label.includes(t))}:()=>{this.useShareDetp=this.deptInfo})},close(){this.componentKey=1,this.settInfo={authorizeType:1,deptSn:null,deptSns:[]},this.searchDeptName="",this.searchUnitMgrsName="",this.searchMemberName="",this.searchTitleName="",this.searchRolesName="",this.flowNodes=[],this.useShareDetp=[],this.shape="role",this.unitShape="unit",this.useNode={nodeType:"s"},this.$emit("close")}}},fu=pu,mu=(i("4e3b"),ce(fu,hu,du,!1,null,null,null)),gu=mu.exports;ta()(mu,"components",{QDialog:xr,QCard:kr,QForm:nu,QToolbar:qr,QToolbarTitle:Er,QBtn:bn,QCardSection:Mr,QInput:Wo,QSelect:ao,QItem:rs,QItemSection:ss,QItemLabel:os,QToggle:ru,QSeparator:po,QSpace:Rl,QIcon:Je,QScrollArea:tc,QTree:au,QPopupProxy:xa,QList:mo,QRadio:lu,QInnerLoading:Go}),ta()(mu,"directives",{ClosePopup:nc,Ripple:Gi});var vu={props:{token:{type:String,default:"ey"},envType:{type:String,default:"dev"},btnColor:{type:String,default:"white"},btnDense:{type:Boolean,default:!1},btnLabel:{type:String,default:"簽核模板"},isFullWidth:{type:Boolean,default:!1}},name:"flowTemplate",components:{create:uu,edit:gu},data(){return{searchInfo:{},pagination:{rowsPerPage:10,pageNumber:1,pageSize:10},detailInfo:[],settInfo:{},poupSwch:{isShow:!1,create:!1,edit:!1},editFlowNodes:[],flowTempList:{},showLoaging:!1,deptInfo:[],identities:[]}},computed:{columns(){return[{name:"name",label:"模板名稱",field:"name",align:"center",headerClasses:"bg-light-blue-9 text-white"},{name:"description",label:"模板描述",field:"description",align:"center",headerClasses:"bg-light-blue-9 text-white"},{name:"authorizeType",label:"權限類型",field:"authorizeType",align:"center",headerClasses:"bg-light-blue-9 text-white"},{name:"createDate",label:"建立時間",field:"createDate",align:"center",headerClasses:"bg-light-blue-9 text-white"},{name:"modifyDate",label:"修改時間",field:"modifyDate",align:"center",headerClasses:"bg-light-blue-9 text-white"},{name:"edit",label:"編輯",field:"edit",align:"center",headerClasses:"bg-light-blue-9 text-white",headerStyle:"font-size:16px;height:45px"}]},projectApi(){return"dev"==this.envType?"https://api-gateway-dev.fju.edu.tw/FjuWorkFlow/api/":"test"==this.envType?"https://api-gateway-test.fju.edu.tw/FjuWorkFlow/api/":"prod"==this.envType?"https://exploreLink.fju.edu.tw/FjuWorkFlow/api/":"https://api-gateway-dev.fju.edu.tw/FjuWorkFlow/api/"},Api(){const t=oe.create({baseURL:this.projectApi});return t.defaults.headers.common["Authorization"]="Bearer "+this.token,t},getLoca(){return location.pathname.toLowerCase()}},methods:{async getBaseInfo(){},onSearch(){this.pagination.pageNumber=1,this.changePage()},async changePage(){this.showLoaging=!0;let t=Object.assign({},this.searchInfo,this.pagination),e=await this.Api.get("flowtemplates",{params:t});this.flowTempList=e.data.result,this.showLoaging=!1},async showModel(){this.poupSwch.isShow=!0,this.changePage()},showTime(t){return Tl.formatDate(t,"YYYY/MM/DD,HH時mm分ss秒")},openCreateModel(){this.poupSwch.create=!0},async openEditModal(t){fa.show({message:"模板讀取中"});try{let e=await this.Api.get("flowtemplates/"+t.flowTemplateSn),i=await this.Api.get(`flowtemplates/${t.flowTemplateSn}/flownodes`),n=[...i.data.result];this.settInfo=Object.assign({},e.data.result),this.editFlowNodes=this.editCircle(n),this.poupSwch.edit=!0,fa.hide()}catch(e){fa.hide();let t=e.response.data.errorMessage,i="";for(let n=0;n<t.length;n++)i+=`<li style="text-align: left">${t[n].message}</li>`;this.$swal({title:"讀取失敗",icon:"error",html:`<ul style="width:auto">${i}</ul> `})}},editCircle(t){let e=t;return e.forEach(t=>{t.treeSN=t.flowTemplateNodeSn,t.children&&this.editCircle(t.children)}),e},async remove(t){if(await this.alertConfirm()){fa.show();let e=this.countRemovePage();await this.Api.delete("flowtemplates/"+t).then(()=>{this.pagination.pageNumber=e,this.changePage(),this.$emit("updateTemp"),fa.hide(),this.$swal({title:"刪除成功",icon:"success",timer:1e3,showConfirmButton:!1})}).catch(t=>{fa.hide();let e=t.response.data.errorMessage,i="";for(let n=0;n<e.length;n++)i+=`<li style="text-align: left">${e[n].message}</li>`;this.$swal({title:"刪除失敗",icon:"error",html:`<ul style="width:auto">${i}</ul> `})})}},async alertConfirm(t,e){let i={title:t||"確定要刪除嗎?",text:e||null,icon:"warning",showCancelButton:!0,confirmButtonColor:"#C10015",cancelButtonColor:"#26A69A",confirmButtonText:"確定",cancelButtonText:"取消"},n=!1;return await this.$swal.fire(i).then(t=>{n=!!t.value}),n},countRemovePage(){let{pageNumber:t,pageSize:e,totalItemCount:i}=this.flowTempList,n=t;return Math.ceil((i-1)/e)<t&&n>1&&n--,n},close(){this.poupSwch.isShow=!1,this.pagination.pageNumber=1,this.detailInfo=[]},closeModel(){this.poupSwch.create=!1,this.poupSwch.edit=!1},async fetchDeptInfo(){let t=await this.Api.get("options/depts");this.deptInfo=t.data.result},async fetchIdentities(){let t=await this.Api.get("user/identities");this.identities=t.data.result},updateTemp(){this.poupSwch.create=!1,this.poupSwch.edit=!1,this.settInfo={},this.editFlowNodes=[],this.$emit("updateTemp"),this.changePage()}},async mounted(){await this.fetchDeptInfo(),await this.fetchIdentities()}},bu=vu,_u=(i("965b"),ce(bu,Vc,Hc,!1,null,null,null)),yu=_u.exports;ta()(_u,"components",{QBtn:bn,QDialog:xr,QCard:kr,QToolbar:qr,QToolbarTitle:Er,QCardSection:Mr,QTable:Ro,QTd:Xo,QInput:Wo,QIcon:Je,QPagination:Ko});var wu=function(){var t=this,e=t._self._c;return e("div",["create"==t.useType?e("q-btn",{staticClass:"full-width",attrs:{icon:t.icon||"draw",label:t.label||"創建簽核流程",color:t.btnColor||"blue-9",disable:t.disable},on:{click:t.showCreateModel}}):t._e(),"edit"==t.useType?e("q-btn",{staticClass:"full-width",attrs:{icon:t.icon||"app_registration",label:t.label||"編輯簽核流程",color:t.btnColor||"blue-9",disable:t.disable},on:{click:t.showEditModel}}):t._e(),e("q-dialog",{attrs:{persistent:""},model:{value:t.poupSwch.isShow,callback:function(e){t.$set(t.poupSwch,"isShow",e)},expression:"poupSwch.isShow"}},[e("q-card",{staticClass:"bg-grey-3",staticStyle:{width:"850px","max-width":"95vw"}},[e("q-form",{attrs:{greedy:""},on:{submit:t.onSubmit}},[e("q-toolbar",{staticClass:"bg-blue-10 text-white"},[e("q-toolbar-title",[e("span",[t._v("設置簽核流程")])]),e("q-btn",{attrs:{flat:"",round:"",dense:"",icon:"close"},on:{click:t.close}})],1),e("q-card-section",{attrs:{horizontal:""}},[e("q-card-section",{staticClass:"full-width q-pr-none"},[e("div",{staticClass:"full-width"},[e("q-card",{attrs:{flat:"",bordered:""}},[e("q-card-section",{staticClass:"flex items-center q-py-xs"},[e("span",{staticClass:"text-h6"},[t._v("簽核流程設置")]),e("q-space"),e("q-btn",{attrs:{icon:"swap_horiz",color:"blue-9",flat:"",dense:"",label:"新增分會流程",disable:3==t.useNode.nodeType},on:{click:function(e){return t.creatNewNode({node:{label:"分會流程"},nodeType:3})}}})],1),e("q-separator"),e("q-card-section",{staticClass:"q-px-xs"},[e("q-scroll-area",{staticStyle:{height:"573px"},attrs:{"content-style":{width:"100%"}}},[e("q-tree",{key:t.componentKey,ref:"treeNode",attrs:{nodes:t.treeData,"node-key":"treeSN","label-key":"name","children-key":"children","default-expand-all":"",selected:t.selected},on:{"update:selected":function(e){t.selected=e}},scopedSlots:t._u([{key:"default-header",fn:function(i){return[e("div",{staticClass:"row items-center cursor-pointer full-width",staticStyle:{"font-size":"16px"},on:{click:function(e){t.setTreeDom(Object.assign({},i.node,{form:"tree"}))}}},[e("q-icon",{staticClass:"q-mr-sm",class:["s"==i.node.nodeType?"text-blue-10":t.useNode.treeSN==i.node.treeSN?"text-warning":"text-grey-5"],attrs:{name:"s"==i.node.nodeType?"my_location":2==i.node.nodeType&&i.node.deptSn?"bookmarks":2==i.node.nodeType&&i.node.projectSn?"assignment":3==i.node.nodeType?"swap_horiz":4==i.node.nodeType?"turned_in_not":i.node.signRoleSn?"switch_account":i.node.signUserSn?"perm_contact_calendar":"person",size:"24px"}}),e("div",{class:["s"==i.node.nodeType?"text-blue-10":t.useNode.treeSN==i.node.treeSN?"text-warning":"text-grey-5"]},["s"==i.node.nodeType?e("span",[t._v(" 流程起點 ")]):t._e(),1==i.node.nodeType?e("span",{staticClass:"full-width row items-center"},[i.node.signUserName&&i.node.signRoleName?e("span",{staticClass:"row items-center"},[e("span",{staticClass:"q-mr-sm"},[t._v(t._s(i.node.signUserName))]),e("span",{staticClass:"text-pink-4"},[t._v(t._s(i.node.signRoleName))])]):e("span",[e("span",[t._v(t._s(i.node.signRoleName))]),e("span",[t._v(t._s(i.node.signUserName))])]),i.node.signTitleName||i.node.signTitleName||i.node.titleName?e("q-chip",{staticClass:"q-ml-sm",attrs:{square:"",size:"12px",dense:"","text-color":"white",color:i.node.isBoss?"blue-8":"grey-6",label:i.node.signTitleName||i.node.signTitleName||i.node.titleName}}):t._e()],1):t._e(),2==i.node.nodeType?e("span",[t._v(" "+t._s(i.node.deptName||i.node.projectName||i.node.name)+" ")]):t._e(),3==i.node.nodeType?e("span",[t._v("分會流程")]):t._e(),4==i.node.nodeType?e("span",[t._v("分會單位")]):t._e()])],1),e("q-popup-proxy",{attrs:{"context-menu":t.$q.screen.gt.xs},on:{"before-hide":t.resetUseNode}},[e("q-list",{staticClass:"bg-white",staticStyle:{"min-width":"250px"},attrs:{bordered:"",separator:""}},[e("q-item-label",{attrs:{header:""}},[t._v(" "+t._s(i.node.signUserName||i.node.signRoleName||i.node.deptName||i.node.name)+" ")]),!t.$q.screen.xs||i.node.signRoleSn||i.node.signUserSn||4===i.node.nodeType?t._e():e("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:""},on:{click:function(e){return t.openMobileSelectUnitNode(i.node)}}},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{attrs:{name:"person_add",color:"teal-8",size:"28px"}})],1),e("q-item-section",[e("q-item-label",[t._v("選擇單位 / 人員")])],1)],1),1!==i.node.nodeType?e("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:""},on:{click:function(e){return t.openSort(i.node)}}},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{attrs:{name:"swap_vert",color:"blue-9",size:"28px"}})],1),e("q-item-section",[e("q-item-label",[t._v("調整 - 簽核順序")])],1)],1):t._e(),"s"!==i.node.nodeType?e("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:""},on:{click:function(e){return t.removeNode(i.node.treeSN)}}},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{attrs:{name:"remove_circle_outline",color:"red-9",size:"24px"}})],1),e("q-item-section",[e("q-item-label",[t._v("移除 - "+t._s(i.node.signUserName||i.node.signRoleName||i.node.deptName||i.node.name)+" ")])],1)],1):t._e()],1)],1)]}}])})],1)],1)],1)],1)]),t.$q.screen.gt.xs?e("q-card-section",{staticStyle:{"min-width":"400px","font-size":"16px"}},[e("selectUnitNode",{attrs:{useNode:t.useNode,deptInfo:t.deptInfo,projectInfo:t.projectInfo,members:t.members,roles:t.roles,projectMemberInfo:t.projectMemberInfo,projectRoleInfo:t.projectRoleInfo,loadRolesState:t.loadRolesState},on:{createNode:t.handleCreateNewNode,fetchProjectInfo:t.fetchProjectInfo}})],1):t._e()],1),e("q-separator"),e("q-card-section",{staticClass:"text-right"},[e("q-btn",{attrs:{label:"確認簽核流程",color:"blue-10",type:"submit"}})],1)],1)],1),t.$q.screen.xs?e("q-dialog",{attrs:{position:"bottom"},on:{"before-hide":t.resetUseNode},model:{value:t.poupSwch.mobileSelectUnitNode,callback:function(e){t.$set(t.poupSwch,"mobileSelectUnitNode",e)},expression:"poupSwch.mobileSelectUnitNode"}},[e("q-card",{staticStyle:{width:"100vw","max-height":"80vh"}},[e("q-toolbar",{staticClass:"bg-blue-10 text-white"},[e("q-toolbar-title",{staticClass:"text-subtitle1"},[t._v("選擇單位/人員")]),e("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{flat:"",round:"",dense:"",icon:"close"}})],1),e("q-card-section",{staticClass:"q-pa-sm"},[e("selectUnitNode",{attrs:{useNode:t.useNode,deptInfo:t.deptInfo,projectInfo:t.projectInfo,members:t.members,roles:t.roles,projectMemberInfo:t.projectMemberInfo,projectRoleInfo:t.projectRoleInfo,loadRolesState:t.loadRolesState},on:{createNode:t.handleCreateNewNode,fetchProjectInfo:t.fetchProjectInfo}})],1)],1)],1):t._e(),e("sotrNode",{attrs:{prompt:t.poupSwch.sort,list:t.sortInfo},on:{closeSort:t.closeSort}})],1)],1)},Su=[],xu=function(){var t=this,e=t._self._c;return e("q-dialog",{attrs:{persistent:""},on:{"before-show":t.setInit},model:{value:t.prompt,callback:function(e){t.prompt=e},expression:"prompt"}},[e("q-card",{staticClass:"bg-grey-4",staticStyle:{width:"420px","max-width":"80vw"}},[e("q-toolbar",{staticClass:"bg-light-blue-10 text-white"},[e("q-toolbar-title",[e("span",{staticClass:"text-weight-bold"},[t._v("簽核排序調整")])]),e("q-btn",{attrs:{flat:"",round:"",dense:"",icon:"close"},on:{click:t.closeSort}})],1),e("q-card-section",[e("q-scroll-area",{staticStyle:{height:"450px"}},[e("draggable",t._b({attrs:{tag:"div",list:t.list},on:{start:function(e){t.drag=!0},end:function(e){t.drag=!1}}},"draggable",t.dragOptions,!1),t._l(t.list,(function(i){return e("q-item",{key:i.treeSN,staticClass:"list-group-item bg-white shadow-1"},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{class:[[3,4,11,12,13,14].includes(i.nodeType)||i.signRoleSn||i.signTitleSn?"text-orange-9":i.signUserSn?"text-green-7":"text-blue-9"],attrs:{name:4==i.nodeType?"turned_in_not":3==i.nodeType?"swap_horiz":11==i.nodeType?"group":12==i.nodeType?"account_circle":13==i.nodeType?"admin_panel_settings":14==i.nodeType?"supervised_user_circle":i.signUserSn?"perm_contact_calendar":i.signRoleSn?"switch_account":i.signTitleSn?"attribution":i.deptSn?"bookmarks":"person",size:"24px"}})],1),e("q-item-section",{staticStyle:{"font-size":"18px",color:"black"}},[2==i.nodeType?e("span",[t._v(t._s(i.deptName))]):t._e(),1==i.nodeType?e("span",[t._v(" "+t._s(i.signRoleName||i.signUserName)+" ")]):t._e()])],1)})),1)],1)],1)],1)],1)},Cu=[],ku={name:"sotrNode",components:{draggable:Xc.a},props:["list","prompt"],computed:{dragOptions(){return{animation:200,group:"description",disabled:!1,ghostClass:"ghost"}}},methods:{setInit(){},closeSort(){this.$emit("closeSort")}}},Tu=ku,qu=(i("e261"),ce(Tu,xu,Cu,!1,null,null,null)),Eu=qu.exports;ta()(qu,"components",{QDialog:xr,QCard:kr,QToolbar:qr,QToolbarTitle:Er,QBtn:bn,QCardSection:Mr,QScrollArea:tc,QItem:rs,QItemSection:ss,QIcon:Je});var Mu=function(){var t=this,e=t._self._c;return e("q-card",{attrs:{flat:"",bordered:""}},[e("q-tabs",{staticClass:"text-grey",attrs:{dense:"","active-color":"primary","indicator-color":"primary",align:"justify","inline-label":""},model:{value:t.unitTab,callback:function(e){t.unitTab=e},expression:"unitTab"}},[t.useNode.projectSn?t._e():e("q-tab",{staticClass:"q-py-xs",attrs:{name:"dept",label:"單位",icon:"bookmarks"}}),t.useNode.deptSn?t._e():e("q-tab",{staticClass:"q-py-xs",attrs:{name:"project",label:"計畫",icon:"assignment"}})],1),e("q-separator"),e("q-tab-panels",{model:{value:t.unitTab,callback:function(e){t.unitTab=e},expression:"unitTab"}},[e("q-tab-panel",{attrs:{name:"dept"}},[e("section",{directives:[{name:"show",rawName:"v-show",value:!t.useNode.deptSn,expression:"!useNode.deptSn"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"單位搜尋"},on:{keypress:function(t){t.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:t.searchDeptName,callback:function(e){t.searchDeptName=e},expression:"searchDeptName"}}),e("q-scroll-area",{staticStyle:{height:"525px"},attrs:{"content-style":{width:"100%"}}},[0==t.useDepts.length?e("div",{staticClass:"unitempEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無單位資訊")])]):e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useDepts,(function(i){return e("q-item",{key:i.value,attrs:{clickable:""},on:{click:function(e){return t.$emit("createNode",{node:i,nodeType:2,deptSn:i.value})}}},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{attrs:{name:"bookmarks",color:"blue-8",size:"24px"}})],1),e("q-item-section",[t._v(t._s(i.label))])],1)})),1)],1)],1),e("section",{directives:[{name:"show",rawName:"v-show",value:t.useNode.deptSn,expression:"useNode.deptSn"}],staticClass:"relative-position"},[e("q-inner-loading",{staticStyle:{"z-index":"10"},attrs:{showing:t.loadRolesState,label:"讀取中","label-class":"text-teal","label-style":"font-size: 1.1em"}}),e("div",{staticClass:"q-gutter-sm q-mb-sm"},[e("q-radio",{attrs:{val:"member",label:"人員"},model:{value:t.shape,callback:function(e){t.shape=e},expression:"shape"}}),e("q-radio",{attrs:{val:"role",label:"角色"},model:{value:t.shape,callback:function(e){t.shape=e},expression:"shape"}})],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"member"==t.shape,expression:"shape == 'member'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"人員搜尋"},on:{keypress:function(t){t.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:t.searchMemberName,callback:function(e){t.searchMemberName=e},expression:"searchMemberName"}}),0==t.useMember.length?e("div",{staticClass:"empEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無人員資訊")])]):e("q-scroll-area",{staticStyle:{height:"477px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useMember,(function(i,n){return e("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],key:n,attrs:{clickable:""},on:{click:function(e){return t.$emit("createNode",{node:i,nodeType:1})}}},[e("q-item-section",[t._v(t._s(i.label))]),e("q-item-section",{attrs:{side:""}},[t._v(t._s(i.titleName))])],1)})),1)],1)],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"role"==t.shape,expression:"shape == 'role'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"角色搜尋"},on:{keypress:function(t){t.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:t.searchRoleName,callback:function(e){t.searchRoleName=e},expression:"searchRoleName"}}),0==t.useRole.length?e("div",{staticClass:"empEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無角色資訊")])]):e("q-scroll-area",{staticStyle:{height:"477px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useRole,(function(i,n){return e("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],key:n,attrs:{clickable:""},on:{click:function(e){return t.$emit("createNode",{node:i,nodeType:1})}}},[e("q-item-section",[t._v(t._s(i.label))]),e("q-item-section",{attrs:{side:""}},[t._v(t._s(i.titleName))])],1)})),1)],1)],1)],1)]),e("q-tab-panel",{attrs:{name:"project"}},[e("section",{directives:[{name:"show",rawName:"v-show",value:!t.useNode.projectSn,expression:"!useNode.projectSn"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"計畫搜尋"},on:{keypress:function(t){t.preventDefault()}},scopedSlots:t._u([{key:"after",fn:function(){return[e("q-btn",{staticClass:"fit",attrs:{unelevated:"",color:"teal-9",icon:"search"},on:{click:function(e){return t.$emit("fetchProjectInfo",t.searchProjectName)}}})]},proxy:!0}]),model:{value:t.searchProjectName,callback:function(e){t.searchProjectName=e},expression:"searchProjectName"}}),e("q-scroll-area",{staticStyle:{height:"525px"},attrs:{"content-style":{width:"100%"}}},[0==t.projectInfo.length?e("div",{staticClass:"unitempEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無計畫資訊")])]):e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.projectInfo,(function(i){return e("q-item",{key:i.value,attrs:{clickable:""},on:{click:function(e){return t.$emit("createNode",{node:i,nodeType:2,projectSn:i.value})}}},[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{attrs:{name:"assignment",color:"blue-8",size:"24px"}})],1),e("q-item-section",[t._v(t._s(i.label))])],1)})),1)],1)],1),e("section",{directives:[{name:"show",rawName:"v-show",value:t.useNode.projectSn,expression:"useNode.projectSn"}],staticClass:"relative-position"},[e("q-inner-loading",{staticStyle:{"z-index":"10"},attrs:{showing:t.loadRolesState,label:"讀取中","label-class":"text-teal","label-style":"font-size: 1.1em"}}),e("div",{staticClass:"q-gutter-sm q-mb-sm"},[e("q-radio",{attrs:{val:"member",label:"人員"},model:{value:t.shape,callback:function(e){t.shape=e},expression:"shape"}}),e("q-radio",{attrs:{val:"role",label:"角色"},model:{value:t.shape,callback:function(e){t.shape=e},expression:"shape"}})],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"member"==t.shape,expression:"shape == 'member'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"人員搜尋"},on:{keypress:function(t){t.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:t.searchProjectMemberName,callback:function(e){t.searchProjectMemberName=e},expression:"searchProjectMemberName"}}),0==t.useProjectMemberInfo.length?e("div",{staticClass:"unitempEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無人員資訊")])]):e("q-scroll-area",{staticStyle:{height:"477px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useProjectMemberInfo,(function(i,n){return e("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],key:n,attrs:{clickable:""},on:{click:function(e){return t.$emit("createNode",{node:i,nodeType:1})}}},[e("q-item-section",[t._v(t._s(i.label))]),e("q-item-section",{attrs:{side:""}},[t._v(t._s(i.titleName))])],1)})),1)],1)],1),e("section",{directives:[{name:"show",rawName:"v-show",value:"role"==t.shape,expression:"shape == 'role'"}]},[e("q-input",{staticClass:"q-mb-sm",attrs:{outlined:"","bg-color":"white",dense:"",label:"角色搜尋"},on:{keypress:function(t){t.preventDefault()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:t.searchProjectRoleName,callback:function(e){t.searchProjectRoleName=e},expression:"searchProjectRoleName"}}),0==t.useProjectRoleInfo.length?e("div",{staticClass:"empEmpty bg-grey-2"},[e("div",{staticClass:"text-grey-5"},[t._v("無角色資訊")])]):e("q-scroll-area",{staticStyle:{height:"477px"},attrs:{"content-style":{width:"100%"}}},[e("q-list",{staticClass:"bg-white",attrs:{bordered:"",separator:""}},t._l(t.useProjectRoleInfo,(function(i,n){return e("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],key:n,attrs:{clickable:""},on:{click:function(e){return t.$emit("createNode",{node:i,nodeType:1})}}},[e("q-item-section",[t._v(t._s(i.label))]),e("q-item-section",{attrs:{side:""}},[t._v(t._s(i.titleName))])],1)})),1)],1)],1)],1)])],1)],1)},Iu=[],Au={name:"selectUnitNode",props:{useNode:{type:Object,default:()=>({})},deptInfo:{type:Array,default:()=>[]},projectInfo:{type:Array,default:()=>[]},members:{type:Array,default:()=>[]},roles:{type:Array,default:()=>[]},projectMemberInfo:{type:Array,default:()=>[]},projectRoleInfo:{type:Array,default:()=>[]},loadRolesState:{type:Boolean,default:!1}},data(){return{shape:"member",unitTab:"dept",searchDeptName:"",searchMemberName:"",searchRoleName:"",searchProjectName:"",searchProjectMemberName:"",searchProjectRoleName:""}},computed:{useDepts(){return this.deptInfo.filter(t=>t.label.includes(this.searchDeptName))},useMember(){return this.members.filter(t=>t.label.includes(this.searchMemberName))},useRole(){return this.roles.filter(t=>t.label.includes(this.searchRoleName))},useProjectMemberInfo(){return this.projectMemberInfo.filter(t=>t.label.includes(this.searchProjectMemberName))},useProjectRoleInfo(){return this.projectRoleInfo.filter(t=>t.label.includes(this.searchProjectRoleName))}},watch:{useNode(t){t.deptSn&&(this.unitTab="dept"),t.projectSn&&(this.unitTab="project"),this.shape="member"}}},Nu=Au,$u=(i("d05c"),ce(Nu,Mu,Iu,!1,null,"5c27a302",null)),Du=$u.exports;ta()($u,"components",{QCard:kr,QTabs:Sc,QTab:Cc,QSeparator:po,QTabPanels:Nc,QTabPanel:Dc,QInput:Wo,QIcon:Je,QScrollArea:tc,QList:mo,QItem:rs,QItemSection:ss,QInnerLoading:Go,QRadio:lu,QBtn:bn}),ta()($u,"directives",{Ripple:Gi});var Ru={name:"installApproved",components:{sotrNode:Eu,selectUnitNode:Du},props:["label","btnColor","disable","token","deptSn","flowTemplateSn","envType","icon","editNodes","useType","roleSn","projectSn","flowGenerateApi","modelType","customApi","customPayload"],data(){return{poupSwch:{isShow:!1,sort:!1,mobileSelectUnitNode:!1},selected:null,settInfo:{authorizeType:1,deptSn:null},roles:[],members:[],loadRolesState:!1,flowNodes:[],useNode:{},deptInfo:[],projectInfo:[],projectMemberInfo:[],projectRoleInfo:[],sortInfo:[],sortTarget:null,componentKey:1}},computed:{projectApi(){return"dev"==this.envType?"https://api-gateway-dev.fju.edu.tw/FjuWorkFlow/api/":"test"==this.envType?"https://api-gateway-test.fju.edu.tw/FjuWorkFlow/api/":"prod"==this.envType?"https://exploreLink.fju.edu.tw/FjuWorkFlow/api/":"https://api-gateway-dev.fju.edu.tw/FjuWorkFlow/api/"},Api(){const t=oe.create({baseURL:this.projectApi});return t.defaults.headers.common["Authorization"]="Bearer "+this.token,t},treeData(){return[{children:[...this.flowNodes],nodeType:"s",name:"簽核流程",treeSN:"start"}]}},methods:{async showCreateModel(){switch(this.modelType){case"busTrip":this.busTripModel();break;default:this.appointmentModel();break}},async busTripModel(){fa.show({message:"流程生成中"});try{let t=await this.Api.post(this.customApi,this.customPayload),e=[...t.data.result.data];this.flowNodes=this.editCircle(e),this.poupSwch.isShow=!0,fa.hide()}catch(t){fa.hide();let e=t.response.data.errorMessage,i="";for(let n=0;n<e.length;n++)i+=`<li style="text-align: left">${e[n].message}</li>`;this.$swal({title:"讀取失敗",icon:"error",html:`<ul style="width:auto">${i}</ul> `})}},async appointmentModel(){fa.show({message:"流程生成中"});let t=this.flowTemplateSn;-1==t&&(t=null);try{let e=await this.Api.post("flowinstances/generateflownodes",{projectSn:this.projectSn,deptSn:this.deptSn,roleSn:this.roleSn,flowTemplateSn:t}),i=[...e.data.result];this.flowNodes=this.editCircle(i),this.poupSwch.isShow=!0,fa.hide()}catch(e){fa.hide();let t=e.response.data.errorMessage,i="";for(let n=0;n<t.length;n++)i+=`<li style="text-align: left">${t[n].message}</li>`;this.$swal({title:"讀取失敗",icon:"error",html:`<ul style="width:auto">${i}</ul> `})}},showEditModel(){let t=mc.a.cloneDeep(this.editNodes);this.flowNodes=this.editCircle(t),this.poupSwch.isShow=!0},editCircle(t){let e=t;return e.forEach(t=>{t.treeSN="tree-"+ts(),t.children&&this.editCircle(t.children)}),e},async onSubmit(){switch(this.modelType){case"busTrip":this.busTripOnSubmit();break;default:await this.appointmenOnSubmit();break}},busTripOnSubmit(){this.$emit("setFlow",this.treeData[0].children),this.$swal({title:"已設置簽核流程",icon:"success",timer:1e3,showConfirmButton:!1}),this.close()},async appointmenOnSubmit(){let t=this.flowTemplateSn;-1==t&&(t=null);let e={flowTemplateSn:t,flowNodes:this.treeData[0].children,deptSn:this.deptSn,projectSn:this.projectSn};try{await this.Api.post("flowinstances/validation",e),this.$emit("setFlow",e.flowNodes),this.$swal({title:"已設置簽核流程",icon:"success",timer:1e3,showConfirmButton:!1}),this.close()}catch(i){this.alertHError("簽核流程設置錯誤",i.response.data.errorMessage)}},alertHError(t,e){let i="";for(let n=0;n<e.length;n++)i+=`<li style="text-align: left">${e[n].message}</li>`;return this.$swal.fire({icon:"error",title:t,html:`<ul style="width:auto">${i}</ul> `})},creatNewNode(t){this.addFlowNode(t),this.$refs.treeNode.expandAll()},handleCreateNewNode(t){this.creatNewNode(t),this.$q.screen.xs&&1===t.nodeType&&(this.poupSwch.mobileSelectUnitNode=!1,setTimeout(()=>{this.useNode={}},500))},resetUseNode(){this.$q.screen.xs&&!this.poupSwch.mobileSelectUnitNode&&(this.useNode={})},addFlowNode(t,e){let i=this,{treeSN:n,deptSn:r,projectSn:s,nodeType:o}=this.useNode;const a=c(t);function l(e){e.forEach(e=>{e.treeSN==n?e.children.push(a):e.children&&i.addFlowNode(t,e.children)})}function c({node:t,nodeType:e,deptSn:n,projectSn:r}){let s={nodeType:e||null,parallelRouteType:3==e?1:null,deptSn:2==e&&n||null,deptName:2==e?t.label:null,projectSn:2==e&&r||null,projectName:2==e?t.label:null,signUserSn:t.userSn||null,signUserName:1==e?t.label:null,signRoleSn:1!=e||t.userSn?null:t.value,signTitleSn:t.titleSn||null,remark:t.remark,titleName:t.titleName,isBoss:t.isBoss,treeSN:"tree-"+(new Date).getTime(),children:[]},o={name:"分會單位",nodeType:4,parallelRouteType:null,deptSn:null,deptName:null,signUserSn:null,signUserName:null,signRoleSn:null,remark:null,titleName:null,isBoss:!1,treeSN:`tree-${(new Date).getTime()}-branchWrap`,children:[]};return 3!==i.useNode.nodeType?s:(o.children.push(s),o)}1==t.nodeType&&l(e||this.flowNodes),2==t.nodeType&&r&&!s||3==o||2==t.nodeType&&!r&&s||3==o?l(e||this.flowNodes):2!=t.nodeType||r||s||this.flowNodes.push(a),3!=t.nodeType||n?3==t.nodeType&&n&&l(e||this.flowNodes):this.flowNodes.push(a)},async setTreeDom(t){if(!t.signRoleSn&&!t.signUserSn&&4!=t.nodeType){if(t.treeSN==this.useNode.treeSN)return this.setTreeDom({nodeType:1});if(this.useNode=t,2!==t.nodeType)this.members=[],this.roles=[];else if(2==t.nodeType&&t.deptSn){this.loadRolesState=!0;try{let e=await this.Api.get(`options/depts/${t.deptSn}/members`);this.members=e.data.result;let i=await this.Api.get(`options/depts/${t.deptSn}/roles`);this.roles=i.data.result,this.loadRolesState=!1}catch(e){return this.loadRolesState=!1,e}}else 2==t.nodeType&&t.projectSn&&(this.loadRolesState=!0,await this.fetchProjectMemberInfo(t.projectSn),await this.fetchProjectRoleInfo(t.projectSn),this.loadRolesState=!1)}},async openMobileSelectUnitNode(t){this.useNode.treeSN!==t.treeSN&&await this.setTreeDom(t),this.poupSwch.mobileSelectUnitNode=!0},removeNode(t){this.removeCircle(t,this.flowNodes)},removeCircle(t,e){let i=this;e.forEach((n,r)=>{n.treeSN==t?(e.splice(r,1),this.members=[],this.roles=[],this.useNode={}):n.children&&i.removeCircle(t,n.children)}),this.checkBranchHaveItem()},checkBranchHaveItem(){this.removeBranchCircle(this.flowNodes)},removeBranchCircle(t){let e=this;t.forEach((i,n)=>{null!=i.children&&0!=i.children.length||4!=i.nodeType?i.children&&e.removeBranchCircle(i.children):t.splice(n,1)})},async fetchDeptInfo(){let t=await this.Api.get("options/depts");this.deptInfo=t.data.result},async fetchProjectInfo(t){if(!t)return void this.$swal.fire({icon:"warning",title:"操作錯誤",text:"請輸入計畫名稱"});let e={name:t},i=await this.Api.get("options/projects",{params:e});this.projectInfo=i.data.result},async fetchProjectMemberInfo(t){let e=await this.Api.get(`options/projects/${t}/members`);this.projectMemberInfo=e.data.result},async fetchProjectRoleInfo(t){let e=await this.Api.get(`options/projects/${t}/roles`);this.projectRoleInfo=e.data.result},openSort(t){this.sortTarget=t.treeSN,this.sortInfo=t.children,this.poupSwch.sort=!0},closeSort(){this.componentKey+=1,this.poupSwch.sort=!1},close(){this.componentKey=1,this.settInfo={authorizeType:1,deptSn:null},this.searchDeptName="",this.searchMemberName="",this.searchRoleName="",this.flowNodes=[],this.useNode={},this.poupSwch.isShow=!1}},async mounted(){await this.fetchDeptInfo()}},Pu=Ru,Ou=(i("2410"),ce(Pu,wu,Su,!1,null,null,null)),Lu=Ou.exports;ta()(Ou,"components",{QBtn:bn,QDialog:xr,QCard:kr,QForm:nu,QToolbar:qr,QToolbarTitle:Er,QCardSection:Mr,QSpace:Rl,QSeparator:po,QScrollArea:tc,QTree:au,QIcon:Je,QChip:ns,QPopupProxy:xa,QList:mo,QItemLabel:os,QItem:rs,QItemSection:ss}),ta()(Ou,"directives",{ClosePopup:nc});var Bu=function(){var t=this,e=t._self._c;return e("div",[e("q-btn",{staticClass:"q-px-xs",attrs:{dense:"",outline:"",icon:"notifications_active",label:"系統通知",color:t.btnColor||"white"},on:{click:t.showModel}},[0!==t.countUnreadMsg?e("q-badge",{staticClass:"unreadMsgSty",attrs:{color:"red",floating:"",rounded:""}},[t._v(" "+t._s(t.countUnreadMsg)+" ")]):t._e()],1),e("q-dialog",{attrs:{persistent:""},model:{value:t.poupSwch.isShowModel,callback:function(e){t.$set(t.poupSwch,"isShowModel",e)},expression:"poupSwch.isShowModel"}},[e("q-card",{staticStyle:{width:"100%","max-width":"700px"}},[e("q-card-section",{staticClass:"row items-center q-pa-sm"},[e("div",{staticClass:"flex items-center text-indigo-9"},[e("q-icon",{staticClass:"q-mx-sm",attrs:{size:"sm",name:"notifications_active"}}),e("span",{staticClass:"sysMsgTitle"},[t._v("系統通知訊息")])],1),e("q-space"),e("q-btn",{attrs:{size:"sm",unelevated:"",dense:"",round:"",icon:"close",color:"white","text-color":"grey-7"},on:{click:t.closeModel}})],1),e("q-separator"),e("q-card-section",{staticClass:"bg-grey-2"},[e("q-card",{staticClass:"q-mb-md",attrs:{flat:"",bordered:""}},[e("q-card-section",{staticClass:"q-col-gutter-sm row"},[e("div",{staticClass:"col-12 q-col-gutter-sm row"},[e("q-input",{staticClass:"col-4",attrs:{dense:"",outlined:"",label:"標題關鍵字"},model:{value:t.searchInfo.Subject,callback:function(e){t.$set(t.searchInfo,"Subject",e)},expression:"searchInfo.Subject"}}),e("q-input",{staticClass:"col-4",attrs:{dense:"",outlined:"",label:"內文關鍵字"},model:{value:t.searchInfo.ContentText,callback:function(e){t.$set(t.searchInfo,"ContentText",e)},expression:"searchInfo.ContentText"}}),e("div",{staticClass:"col-4"},[e("div",{staticClass:"q-gutter-sm"},[e("q-option-group",{attrs:{inline:"",options:t.options.AlreadyRead,type:"radio"},model:{value:t.searchInfo.AlreadyRead,callback:function(e){t.$set(t.searchInfo,"AlreadyRead",e)},expression:"searchInfo.AlreadyRead"}})],1)]),e("div",{staticClass:"col-12"},[e("q-separator",{staticClass:"q-mb-md q-mt-sm"}),e("q-btn",{attrs:{color:"blue-7",label:"搜尋","icon-right":"search"},on:{click:t.onSearch}})],1)],1)])],1),e("q-table",{staticClass:"my-sticky-header-table",attrs:{data:t.msgList.result,columns:t.columns,"row-key":"messageSn",pagination:t.pagination,dense:"",flat:"",bordered:""},on:{"update:pagination":function(e){t.pagination=e}},scopedSlots:t._u([{key:"body",fn:function(i){return[e("q-tr",{attrs:{props:i}},[e("q-td",{key:"subject",staticStyle:{width:"360px"},attrs:{props:i}},[e("div",{staticClass:"ellipsis",staticStyle:{width:"340px"}},[t._v(" "+t._s(i.row.subject)+" ")])]),e("q-td",{key:"createTime",attrs:{props:i}},[t._v(" "+t._s(i.row.createTime)+" ")]),e("q-td",{key:"alreadyReadCna",attrs:{props:i}},[i.row.alreadyRead?e("q-badge",{attrs:{color:"grey-5"}},[t._v(" "+t._s(i.row.alreadyReadCna)+" ")]):e("q-badge",{attrs:{color:"red-5"}},[t._v(" "+t._s(i.row.alreadyReadCna)+" ")])],1),e("q-td",{key:"edit",attrs:{props:i}},[e("q-btn",{staticClass:"q-px-sm",attrs:{size:"12px",icon:"textsms",dense:"",unelevated:"",color:"orange"},on:{click:function(e){return t.openMsg(i.row)}}})],1)],1)]}},{key:"bottom",fn:function(){return[e("div",{staticClass:"q-py-sm q-mt-sm"},[e("q-pagination",{attrs:{color:"light-blue-9",max:t.msgList.totalPages,"direction-links":!0,"boundary-links":!0,"max-pages":6},on:{input:t.changePage},model:{value:t.pagination.pageNumber,callback:function(e){t.$set(t.pagination,"pageNumber",e)},expression:"pagination.pageNumber"}})],1)]},proxy:!0},{key:"no-data",fn:function(){return[e("div",{staticClass:"full-width sysNoMsg text-grey"},[t._v("目前尚無系統訊息")])]},proxy:!0}])})],1),e("transition",{attrs:{name:"msg-block",mode:"out-in"}},[t.poupSwch.isShowMsgItem?e("div",{staticClass:"absolute-full bg-grey-3 rounded-borders msgItem"},[e("div",{staticClass:"absolute-left q-pa-md fit"},[e("q-card",{attrs:{flat:"",bordered:""}},[e("q-card-section",[e("div",{staticClass:"text-subtitle1 text-indigo-8"},[t._v(" "+t._s(t.msgViewData.subject)+" ")]),e("div",{staticClass:"row items-center"},[e("q-chip",{attrs:{size:"9px"}},[t._v(t._s(t.msgViewData.createTime))])],1),e("q-separator",{staticClass:"q-my-md"}),e("q-scroll-area",{staticStyle:{height:"390px"}},[e("div",{staticClass:"q-pa-sm text-subtitle2",domProps:{innerHTML:t._s(t.msgViewData.contentText)}})])],1)],1)],1),e("div",{staticClass:"absolute-right q-pa-xs"},[e("q-btn",{attrs:{size:"sm",unelevated:"",dense:"",round:"",icon:"close",color:"grey-5"},on:{click:t.closeMsg}})],1)]):t._e()]),e("q-inner-loading",{attrs:{showing:t.loading,color:"primary"}})],1)],1),e("q-dialog",{attrs:{persistent:""},model:{value:t.poupSwch.isShowSpMsg,callback:function(e){t.$set(t.poupSwch,"isShowSpMsg",e)},expression:"poupSwch.isShowSpMsg"}},[e("q-card",{staticClass:"bg-grey-3",staticStyle:{width:"100%","max-width":"500px"}},[e("q-card-section",{staticClass:"row items-center q-pa-sm bg-white"},[e("div",{staticClass:"flex items-center text-indigo-9"},[e("q-icon",{staticClass:"q-mx-sm",attrs:{size:"sm",name:"notifications_active"}}),e("span",{staticClass:"sysMsgTitle"},[t._v("系統通知訊息")])],1),e("q-space"),e("q-btn",{attrs:{size:"sm",unelevated:"",dense:"",round:"",icon:"close",color:"white","text-color":"grey-7"},on:{click:t.closeSpMsg}})],1),e("q-separator"),e("q-card-section",{staticClass:"bg-white q-ma-lg"},[e("div",{staticClass:"text-subtitle1 text-indigo-8"},[t._v(" "+t._s(t.spMsgData.subject)+" ")]),e("div",{staticClass:"row items-center"},[e("q-chip",{attrs:{size:"9px"}},[t._v(t._s(t.spMsgData.createTime))])],1),e("q-separator",{staticClass:"q-my-md"}),e("q-scroll-area",{staticStyle:{height:"300px"}},[e("div",{staticClass:"q-pa-sm",domProps:{innerHTML:t._s(t.spMsgData.contentText)}})])],1)],1)],1)],1)},ju=[];let zu,Fu=0;const Vu={},Hu={},Uu={},Qu={},Wu=/^\s*$/,Yu=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],Ku=["top-left","top-right","bottom-left","bottom-right"],Xu={positive:{icon:t=>t.iconSet.type.positive,color:"positive"},negative:{icon:t=>t.iconSet.type.negative,color:"negative"},warning:{icon:t=>t.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:t=>t.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function Gu(t,e,i){if(!t)return th("parameter required");let n;const r={textColor:"white"};if(!0!==t.ignoreDefaults&&Object.assign(r,Vu),!1===Ps(t)&&(r.type&&Object.assign(r,Xu[r.type]),t={message:t}),Object.assign(r,Xu[t.type||r.type],t),"function"===typeof r.icon&&(r.icon=r.icon(e.$q)),r.spinner?!0===r.spinner&&(r.spinner=ei):r.spinner=!1,r.meta={hasMedia:Boolean(!1!==r.spinner||r.icon||r.avatar),hasText:Ju(r.message)||Ju(r.caption)},r.position){if(!1===Yu.includes(r.position))return th("wrong position",t)}else r.position="bottom";if(void 0===r.timeout)r.timeout=5e3;else{const e=parseInt(r.timeout,10);if(isNaN(e)||e<0)return th("wrong timeout",t);r.timeout=e}0===r.timeout?r.progress=!1:!0===r.progress&&(r.meta.progressClass="q-notification__progress"+(r.progressClass?" "+r.progressClass:""),r.meta.progressStyle={animationDuration:r.timeout+1e3+"ms"});const s=(!0===Array.isArray(t.actions)?t.actions:[]).concat(!0!==t.ignoreDefaults&&!0===Array.isArray(Vu.actions)?Vu.actions:[]).concat(void 0!==Xu[t.type]&&!0===Array.isArray(Xu[t.type].actions)?Xu[t.type].actions:[]),{closeBtn:o}=r;if(o&&s.push({label:"string"===typeof o?o:e.$q.lang.label.close}),r.actions=s.map(({handler:t,noDismiss:e,style:i,class:n,attrs:r,...s})=>({staticClass:n,style:i,props:{flat:!0,...s},attrs:r,on:{click:"function"===typeof t?()=>{t(),!0!==e&&a()}:()=>{a()}}})),void 0===r.multiLine&&(r.multiLine=r.actions.length>1),Object.assign(r.meta,{staticClass:"q-notification row items-stretch q-notification--"+(!0===r.multiLine?"multi-line":"standard")+(void 0!==r.color?" bg-"+r.color:"")+(void 0!==r.textColor?" text-"+r.textColor:"")+(void 0!==r.classes?" "+r.classes:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(!0===r.multiLine?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(!0===r.multiLine?"":" col"),leftClass:!0===r.meta.hasText?"additional":"single",attrs:{role:"alert",...r.attrs}}),!1===r.group?(r.group=void 0,r.meta.group=void 0):(void 0!==r.group&&!0!==r.group||(r.group=[r.message,r.caption,r.multiline].concat(r.actions.map(({props:t})=>`${t.label}*${t.icon}`)).join("|")),r.meta.group=r.group+"|"+r.position),0===r.actions.length?r.actions=void 0:r.meta.actionsClass="q-notification__actions row items-center "+(!0===r.multiLine?"justify-end":"col-auto")+(!0===r.meta.hasMedia?" q-notification__actions--with-media":""),void 0!==i){clearTimeout(i.notif.meta.timer),r.meta.uid=i.notif.meta.uid;const t=Uu[r.position].indexOf(i.notif);Uu[r.position][t]=r}else{const e=Hu[r.meta.group];if(void 0===e){if(r.meta.uid=Fu++,r.meta.badge=1,-1!==["left","right","center"].indexOf(r.position))Uu[r.position].splice(Math.floor(Uu[r.position].length/2),0,r);else{const t=r.position.indexOf("top")>-1?"unshift":"push";Uu[r.position][t](r)}void 0!==r.group&&(Hu[r.meta.group]=r)}else{if(clearTimeout(e.meta.timer),void 0!==r.badgePosition){if(!1===Ku.includes(r.badgePosition))return th("wrong badgePosition",t)}else r.badgePosition="top-"+(r.position.indexOf("left")>-1?"right":"left");r.meta.uid=e.meta.uid,r.meta.badge=e.meta.badge+1,r.meta.badgeClass="q-notification__badge q-notification__badge--"+r.badgePosition+(void 0!==r.badgeColor?" bg-"+r.badgeColor:"")+(void 0!==r.badgeTextColor?" text-"+r.badgeTextColor:"")+(r.badgeClass?" "+r.badgeClass:"");const i=Uu[r.position].indexOf(e);Uu[r.position][i]=Hu[r.meta.group]=r}}const a=()=>{Zu(r,e),n=void 0};return e.$forceUpdate(),r.timeout>0&&(r.meta.timer=setTimeout(()=>{a()},r.timeout+1e3)),void 0!==r.group?e=>{void 0!==e?th("trying to update a grouped one which is forbidden",t):a()}:(n={dismiss:a,config:t,notif:r},void 0===i?t=>{if(void 0!==n)if(void 0===t)n.dismiss();else{const i=Object.assign({},n.config,t,{group:!1,position:r.position});Gu(i,e,n)}}:void Object.assign(i,n))}function Zu(t,e){clearTimeout(t.meta.timer);const i=Uu[t.position].indexOf(t);if(-1!==i){void 0!==t.group&&delete Hu[t.meta.group];const n=e.$refs[""+t.meta.uid];if(n){const{width:t,height:e}=getComputedStyle(n);n.style.left=n.offsetLeft+"px",n.style.width=t,n.style.height=e}Uu[t.position].splice(i,1),e.$forceUpdate(),"function"===typeof t.onDismiss&&t.onDismiss()}}function Ju(t){return void 0!==t&&null!==t&&!0!==Wu.test(t)}function th(t,e){return console.error("Notify: "+t,e),!1}const eh={name:"QNotifications",devtools:{hide:!0},beforeCreate(){void 0===this._routerRoot&&(this._routerRoot={})},render(t){return t("div",{staticClass:"q-notifications"},Yu.map(e=>t("transition-group",{key:e,staticClass:Qu[e],tag:"div",props:{name:"q-notification--"+e,mode:"out-in"}},Uu[e].map(e=>{const{meta:i}=e,n=[];if(!0===i.hasMedia&&(!1!==e.spinner?n.push(t(e.spinner,{staticClass:"q-notification__spinner q-notification__spinner--"+i.leftClass,props:{color:e.spinnerColor,size:e.spinnerSize}})):e.icon?n.push(t(Je,{staticClass:"q-notification__icon q-notification__icon--"+i.leftClass,attrs:{role:"img"},props:{name:e.icon,color:e.iconColor,size:e.iconSize}})):e.avatar&&n.push(t(Po,{staticClass:"q-notification__avatar q-notification__avatar--"+i.leftClass},[t("img",{attrs:{src:e.avatar,"aria-hidden":"true"}})]))),!0===i.hasText){let i;const r={staticClass:"q-notification__message col"};if(!0===e.html)r.domProps={innerHTML:e.caption?`<div>${e.message}</div><div class="q-notification__caption">${e.caption}</div>`:e.message};else{const n=[e.message];i=e.caption?[t("div",n),t("div",{staticClass:"q-notification__caption"},[e.caption])]:n}n.push(t("div",r,i))}const r=[t("div",{staticClass:i.contentClass},n)];return!0===e.progress&&r.push(t("div",{key:`${i.uid}|p|${i.badge}`,staticClass:i.progressClass,style:i.progressStyle})),void 0!==e.actions&&r.push(t("div",{staticClass:i.actionsClass},e.actions.map(e=>t(bn,{...e})))),i.badge>1&&r.push(t("div",{key:`${i.uid}|${i.badge}`,staticClass:i.badgeClass,style:e.badgeStyle},[i.badge])),t("div",{ref:""+i.uid,key:i.uid,staticClass:i.staticClass,attrs:i.attrs},[t("div",{staticClass:i.wrapperClass},r)])}))))},mounted(){if(void 0!==this.$q.fullscreen&&!0===this.$q.fullscreen.isCapable){const t=()=>{const t=li(this.$q.fullscreen.activeEl);this.$el.parentElement!==t&&t.appendChild(this.$el)};this.unwatchFullscreen=this.$watch("$q.fullscreen.activeEl",Ei(t,50)),!0===this.$q.fullscreen.isActive&&t()}},beforeDestroy(){void 0!==this.unwatchFullscreen&&this.unwatchFullscreen()}};var ih,nh={setDefaults(t){!0!==ge&&!0===Ps(t)&&Object.assign(Vu,t)},registerType(t,e){!0!==ge&&!0===Ps(e)&&(Xu[t]=e)},install({$q:t}){if(t.notify=this.create=!0===ge?hi:t=>Gu(t,zu),t.notify.setDefaults=this.setDefaults,t.notify.registerType=this.registerType,void 0!==t.config.notify&&this.setDefaults(t.config.notify),!0!==ge){Yu.forEach(t=>{Uu[t]=[];const e=!0===["left","center","right"].includes(t)?"center":t.indexOf("top")>-1?"top":"bottom",i=t.indexOf("left")>-1?"start":t.indexOf("right")>-1?"end":"center",n=["left","right"].includes(t)?`items-${"left"===t?"start":"end"} justify-center`:"center"===t?"flex-center":"items-"+i;Qu[t]=`q-notifications__list q-notifications__list--${e} fixed column no-wrap ${n}`});const t=document.createElement("div");document.body.appendChild(t),zu=new he.a(eh),zu.$mount(t)}}},rh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),sh=function(t){function e(e,i){var n=this.constructor,r=this,s=n.prototype;return r=t.call(this,e)||this,r.statusCode=i,r.__proto__=s,r}return rh(e,t),e}(Error),oh=function(t){function e(e){var i=this.constructor;void 0===e&&(e="A timeout occurred.");var n=this,r=i.prototype;return n=t.call(this,e)||this,n.__proto__=r,n}return rh(e,t),e}(Error);(function(t){t[t["Trace"]=0]="Trace",t[t["Debug"]=1]="Debug",t[t["Information"]=2]="Information",t[t["Warning"]=3]="Warning",t[t["Error"]=4]="Error",t[t["Critical"]=5]="Critical",t[t["None"]=6]="None"})(ih||(ih={}));var ah=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),lh=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},ch=function(){function t(t,e,i){this.statusCode=t,this.statusText=e,this.content=i}return t}(),uh=function(){function t(){}return t.prototype.get=function(t,e){return this.send(lh({},e,{method:"GET",url:t}))},t.prototype.post=function(t,e){return this.send(lh({},e,{method:"POST",url:t}))},t.prototype.delete=function(t,e){return this.send(lh({},e,{method:"DELETE",url:t}))},t}(),hh=function(t){function e(e){var i=t.call(this)||this;return i.logger=e,i}return ah(e,t),e.prototype.send=function(t){var e=this;return new Promise((function(i,n){var r=new XMLHttpRequest;r.open(t.method,t.url,!0),r.withCredentials=!0,r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),t.headers&&Object.keys(t.headers).forEach((function(e){return r.setRequestHeader(e,t.headers[e])})),t.responseType&&(r.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=function(){r.abort()}),t.timeout&&(r.timeout=t.timeout),r.onload=function(){t.abortSignal&&(t.abortSignal.onabort=null),r.status>=200&&r.status<300?i(new ch(r.status,r.statusText,r.response||r.responseText)):n(new sh(r.statusText,r.status))},r.onerror=function(){e.logger.log(ih.Warning,"Error from HTTP request. "+r.status+": "+r.statusText),n(new sh(r.statusText,r.status))},r.ontimeout=function(){e.logger.log(ih.Warning,"Timeout from HTTP request."),n(new oh)},r.send(t.content||"")}))},e}(uh),dh=function(){function t(){}return t.write=function(e){return""+e+t.RecordSeparator},t.parse=function(e){if(e[e.length-1]!==t.RecordSeparator)throw new Error("Message is incomplete.");var i=e.split(t.RecordSeparator);return i.pop(),i},t.RecordSeparatorCode=30,t.RecordSeparator=String.fromCharCode(t.RecordSeparatorCode),t}(),ph=function(){function t(){}return t.prototype.log=function(t,e){},t.instance=new t,t}(),fh=function(t,e,i,n){return new(i||(i=Promise))((function(r,s){function o(t){try{l(n.next(t))}catch(ap){s(ap)}}function a(t){try{l(n["throw"](t))}catch(ap){s(ap)}}function l(t){t.done?r(t.value):new i((function(e){e(t.value)})).then(o,a)}l((n=n.apply(t,e||[])).next())}))},mh=function(t,e){var i,n,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(o)try{if(i=1,n&&(r=2&s[0]?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(r=o.trys,!(r=r.length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(ap){s=[6,ap],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},gh=function(){function t(){}return t.isRequired=function(t,e){if(null===t||void 0===t)throw new Error("The '"+e+"' argument is required.")},t.isIn=function(t,e,i){if(!(t in e))throw new Error("Unknown "+i+" value: "+t+".")},t}();function vh(t,e){var i=null;return Ch(t)?(i="Binary data of length "+t.byteLength,e&&(i+=". Content: '"+bh(t)+"'")):"string"===typeof t&&(i="String data of length "+t.length,e&&(i+=". Content: '"+t+"'.")),i}function bh(t){var e=new Uint8Array(t),i="";return e.forEach((function(t){var e=t<16?"0":"";i+="0x"+e+t.toString(16)+" "})),i.substr(0,i.length-1)}function _h(t,e,i,n,r,s,o){return fh(this,void 0,void 0,(function(){var a,l,c,u;return mh(this,(function(h){switch(h.label){case 0:return[4,r()];case 1:return c=h.sent(),c&&(a={},a["Authorization"]="Bearer "+c,l=a),t.log(ih.Trace,"("+e+" transport) sending data. "+vh(s,o)+"."),[4,i.post(n,{content:s,headers:l})];case 2:return u=h.sent(),t.log(ih.Trace,"("+e+" transport) request complete. Response status: "+u.statusCode+"."),[2]}}))}))}function yh(t){return void 0===t?new xh(ih.Information):null===t?ph.instance:t.log?t:new xh(t)}var wh=function(){function t(t){this.observers=[],this.cancelCallback=t}return t.prototype.next=function(t){for(var e=0,i=this.observers;e<i.length;e++){var n=i[e];n.next(t)}},t.prototype.error=function(t){for(var e=0,i=this.observers;e<i.length;e++){var n=i[e];n.error&&n.error(t)}},t.prototype.complete=function(){for(var t=0,e=this.observers;t<e.length;t++){var i=e[t];i.complete&&i.complete()}},t.prototype.subscribe=function(t){return this.observers.push(t),new Sh(this,t)},t}(),Sh=function(){function t(t,e){this.subject=t,this.observer=e}return t.prototype.dispose=function(){var t=this.subject.observers.indexOf(this.observer);t>-1&&this.subject.observers.splice(t,1),0===this.subject.observers.length&&this.subject.cancelCallback().catch((function(t){}))},t}(),xh=function(){function t(t){this.minimumLogLevel=t}return t.prototype.log=function(t,e){if(t>=this.minimumLogLevel)switch(t){case ih.Critical:case ih.Error:console.error(ih[t]+": "+e);break;case ih.Warning:console.warn(ih[t]+": "+e);break;case ih.Information:console.info(ih[t]+": "+e);break;default:console.log(ih[t]+": "+e);break}},t}();function Ch(t){return t&&"undefined"!==typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}var kh,Th=function(){function t(){}return t.prototype.writeHandshakeRequest=function(t){return dh.write(JSON.stringify(t))},t.prototype.parseHandshakeResponse=function(t){var e,i,n;if(Ch(t)){var r=new Uint8Array(t),s=r.indexOf(dh.RecordSeparatorCode);if(-1===s)throw new Error("Message is incomplete.");var o=s+1;i=String.fromCharCode.apply(null,r.slice(0,o)),n=r.byteLength>o?r.slice(o).buffer:null}else{var a=t;s=a.indexOf(dh.RecordSeparator);if(-1===s)throw new Error("Message is incomplete.");o=s+1;i=a.substring(0,o),n=a.length>o?a.substring(o):null}var l=dh.parse(i);return e=JSON.parse(l[0]),[n,e]},t}();(function(t){t[t["Invocation"]=1]="Invocation",t[t["StreamItem"]=2]="StreamItem",t[t["Completion"]=3]="Completion",t[t["StreamInvocation"]=4]="StreamInvocation",t[t["CancelInvocation"]=5]="CancelInvocation",t[t["Ping"]=6]="Ping",t[t["Close"]=7]="Close"})(kh||(kh={}));var qh,Eh,Mh=function(t,e,i,n){return new(i||(i=Promise))((function(r,s){function o(t){try{l(n.next(t))}catch(ap){s(ap)}}function a(t){try{l(n["throw"](t))}catch(ap){s(ap)}}function l(t){t.done?r(t.value):new i((function(e){e(t.value)})).then(o,a)}l((n=n.apply(t,e||[])).next())}))},Ih=function(t,e){var i,n,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(o)try{if(i=1,n&&(r=2&s[0]?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(r=o.trys,!(r=r.length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(ap){s=[6,ap],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Ah=3e4,Nh=function(){function t(t,e,i){var n=this;gh.isRequired(t,"connection"),gh.isRequired(e,"logger"),gh.isRequired(i,"protocol"),this.serverTimeoutInMilliseconds=Ah,this.logger=e,this.protocol=i,this.connection=t,this.handshakeProtocol=new Th,this.connection.onreceive=function(t){return n.processIncomingData(t)},this.connection.onclose=function(t){return n.connectionClosed(t)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.id=0}return t.create=function(e,i,n){return new t(e,i,n)},t.prototype.start=function(){return Mh(this,void 0,void 0,(function(){var t;return Ih(this,(function(e){switch(e.label){case 0:return t={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(ih.Debug,"Starting HubConnection."),this.receivedHandshakeResponse=!1,[4,this.connection.start(this.protocol.transferFormat)];case 1:return e.sent(),this.logger.log(ih.Debug,"Sending handshake request."),[4,this.connection.send(this.handshakeProtocol.writeHandshakeRequest(t))];case 2:return e.sent(),this.logger.log(ih.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.configureTimeout(),[2]}}))}))},t.prototype.stop=function(){return this.logger.log(ih.Debug,"Stopping HubConnection."),this.cleanupTimeout(),this.connection.stop()},t.prototype.stream=function(t){for(var e=this,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var r=this.createStreamInvocation(t,i),s=new wh((function(){var t=e.createCancelInvocation(r.invocationId),i=e.protocol.writeMessage(t);return delete e.callbacks[r.invocationId],e.connection.send(i)}));this.callbacks[r.invocationId]=function(t,e){e?s.error(e):t.type===kh.Completion?t.error?s.error(new Error(t.error)):s.complete():s.next(t.item)};var o=this.protocol.writeMessage(r);return this.connection.send(o).catch((function(t){s.error(t),delete e.callbacks[r.invocationId]})),s},t.prototype.send=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=this.createInvocation(t,e,!0),r=this.protocol.writeMessage(n);return this.connection.send(r)},t.prototype.invoke=function(t){for(var e=this,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var r=this.createInvocation(t,i,!1),s=new Promise((function(t,i){e.callbacks[r.invocationId]=function(e,n){if(n)i(n);else if(e.type===kh.Completion){var r=e;r.error?i(new Error(r.error)):t(r.result)}else i(new Error("Unexpected message type: "+e.type))};var n=e.protocol.writeMessage(r);e.connection.send(n).catch((function(t){i(t),delete e.callbacks[r.invocationId]}))}));return s},t.prototype.on=function(t,e){t&&e&&(t=t.toLowerCase(),this.methods[t]||(this.methods[t]=[]),-1===this.methods[t].indexOf(e)&&this.methods[t].push(e))},t.prototype.off=function(t,e){if(t){t=t.toLowerCase();var i=this.methods[t];if(i)if(e){var n=i.indexOf(e);-1!==n&&(i.splice(n,1),0===i.length&&delete this.methods[t])}else delete this.methods[t]}},t.prototype.onclose=function(t){t&&this.closedCallbacks.push(t)},t.prototype.processIncomingData=function(t){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(t=this.processHandshakeResponse(t),this.receivedHandshakeResponse=!0),t)for(var e=this.protocol.parseMessages(t,this.logger),i=0,n=e;i<n.length;i++){var r=n[i];switch(r.type){case kh.Invocation:this.invokeClientMethod(r);break;case kh.StreamItem:case kh.Completion:var s=this.callbacks[r.invocationId];null!=s&&(r.type===kh.Completion&&delete this.callbacks[r.invocationId],s(r));break;case kh.Ping:break;case kh.Close:this.logger.log(ih.Information,"Close message received from server."),this.connection.stop(r.error?new Error("Server returned an error on close: "+r.error):null);break;default:this.logger.log(ih.Warning,"Invalid message type: "+r.type);break}}this.configureTimeout()},t.prototype.processHandshakeResponse=function(t){var e,i,n;try{e=this.handshakeProtocol.parseHandshakeResponse(t),n=e[0],i=e[1]}catch(ap){var r="Error parsing handshake response: "+ap;this.logger.log(ih.Error,r);var s=new Error(r);throw this.connection.stop(s),s}if(i.error){r="Server returned handshake error: "+i.error;this.logger.log(ih.Error,r),this.connection.stop(new Error(r))}else this.logger.log(ih.Debug,"Server handshake complete.");return n},t.prototype.configureTimeout=function(){var t=this;this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout((function(){return t.serverTimeout()}),this.serverTimeoutInMilliseconds))},t.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},t.prototype.invokeClientMethod=function(t){var e=this,i=this.methods[t.target.toLowerCase()];if(i){if(i.forEach((function(i){return i.apply(e,t.arguments)})),t.invocationId){var n="Server requested a response, which is not supported in this version of the client.";this.logger.log(ih.Error,n),this.connection.stop(new Error(n))}}else this.logger.log(ih.Warning,"No client method with the name '"+t.target+"' found.")},t.prototype.connectionClosed=function(t){var e=this,i=this.callbacks;this.callbacks={},Object.keys(i).forEach((function(e){var n=i[e];n(void 0,t||new Error("Invocation canceled due to connection being closed."))})),this.cleanupTimeout(),this.closedCallbacks.forEach((function(i){return i.apply(e,[t])}))},t.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},t.prototype.createInvocation=function(t,e,i){if(i)return{arguments:e,target:t,type:kh.Invocation};var n=this.id;return this.id++,{arguments:e,invocationId:n.toString(),target:t,type:kh.Invocation}},t.prototype.createStreamInvocation=function(t,e){var i=this.id;return this.id++,{arguments:e,invocationId:i.toString(),target:t,type:kh.StreamInvocation}},t.prototype.createCancelInvocation=function(t){return{invocationId:t,type:kh.CancelInvocation}},t}();(function(t){t[t["None"]=0]="None",t[t["WebSockets"]=1]="WebSockets",t[t["ServerSentEvents"]=2]="ServerSentEvents",t[t["LongPolling"]=4]="LongPolling"})(qh||(qh={})),function(t){t[t["Text"]=1]="Text",t[t["Binary"]=2]="Binary"}(Eh||(Eh={}));var $h=function(){function t(){this.isAborted=!1}return t.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(t.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),t}(),Dh=function(t,e,i,n){return new(i||(i=Promise))((function(r,s){function o(t){try{l(n.next(t))}catch(ap){s(ap)}}function a(t){try{l(n["throw"](t))}catch(ap){s(ap)}}function l(t){t.done?r(t.value):new i((function(e){e(t.value)})).then(o,a)}l((n=n.apply(t,e||[])).next())}))},Rh=function(t,e){var i,n,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(o)try{if(i=1,n&&(r=2&s[0]?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(r=o.trys,!(r=r.length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(ap){s=[6,ap],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Ph=5e3,Oh=function(){function t(t,e,i,n,r){this.httpClient=t,this.accessTokenFactory=e||function(){return null},this.logger=i,this.pollAbort=new $h,this.logMessageContent=n,this.shutdownTimeout=r||Ph}return Object.defineProperty(t.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),t.prototype.connect=function(t,e){return Dh(this,void 0,void 0,(function(){var i,n,r,s,o;return Rh(this,(function(a){switch(a.label){case 0:if(gh.isRequired(t,"url"),gh.isRequired(e,"transferFormat"),gh.isIn(e,Eh,"transferFormat"),this.url=t,this.logger.log(ih.Trace,"(LongPolling transport) Connecting"),e===Eh.Binary&&"string"!==typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return i={abortSignal:this.pollAbort.signal,headers:{},timeout:9e4},e===Eh.Binary&&(i.responseType="arraybuffer"),[4,this.accessTokenFactory()];case 1:return n=a.sent(),this.updateHeaderToken(i,n),s=t+"&_="+Date.now(),this.logger.log(ih.Trace,"(LongPolling transport) polling: "+s),[4,this.httpClient.get(s,i)];case 2:return o=a.sent(),200!==o.statusCode?(this.logger.log(ih.Error,"(LongPolling transport) Unexpected response code: "+o.statusCode),r=new sh(o.statusText,o.statusCode),this.running=!1):this.running=!0,this.poll(this.url,i,r),[2,Promise.resolve()]}}))}))},t.prototype.updateHeaderToken=function(t,e){e?t.headers["Authorization"]="Bearer "+e:t.headers["Authorization"]&&delete t.headers["Authorization"]},t.prototype.poll=function(t,e,i){return Dh(this,void 0,void 0,(function(){var n,r,s,o;return Rh(this,(function(a){switch(a.label){case 0:a.trys.push([0,,8,9]),a.label=1;case 1:return this.running?[4,this.accessTokenFactory()]:[3,7];case 2:n=a.sent(),this.updateHeaderToken(e,n),a.label=3;case 3:return a.trys.push([3,5,,6]),r=t+"&_="+Date.now(),this.logger.log(ih.Trace,"(LongPolling transport) polling: "+r),[4,this.httpClient.get(r,e)];case 4:return s=a.sent(),204===s.statusCode?(this.logger.log(ih.Information,"(LongPolling transport) Poll terminated by server"),this.running=!1):200!==s.statusCode?(this.logger.log(ih.Error,"(LongPolling transport) Unexpected response code: "+s.statusCode),i=new sh(s.statusText,s.statusCode),this.running=!1):s.content?(this.logger.log(ih.Trace,"(LongPolling transport) data received. "+vh(s.content,this.logMessageContent)),this.onreceive&&this.onreceive(s.content)):this.logger.log(ih.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return o=a.sent(),this.running?o instanceof oh?this.logger.log(ih.Trace,"(LongPolling transport) Poll timed out, reissuing."):(i=o,this.running=!1):this.logger.log(ih.Trace,"(LongPolling transport) Poll errored after shutdown: "+o.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.stopped=!0,this.shutdownTimer&&clearTimeout(this.shutdownTimer),this.onclose&&(this.logger.log(ih.Trace,"(LongPolling transport) Firing onclose event. Error: "+(i||"<undefined>")),this.onclose(i)),this.logger.log(ih.Trace,"(LongPolling transport) Transport finished."),[7];case 9:return[2]}}))}))},t.prototype.send=function(t){return Dh(this,void 0,void 0,(function(){return Rh(this,(function(e){return this.running?[2,_h(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},t.prototype.stop=function(){return Dh(this,void 0,void 0,(function(){var t,e,i=this;return Rh(this,(function(n){switch(n.label){case 0:return n.trys.push([0,,3,4]),this.running=!1,this.logger.log(ih.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),t={headers:{}},[4,this.accessTokenFactory()];case 1:return e=n.sent(),this.updateHeaderToken(t,e),[4,this.httpClient.delete(this.url,t)];case 2:return n.sent(),this.logger.log(ih.Trace,"(LongPolling transport) DELETE request accepted."),[3,4];case 3:return this.stopped||(this.shutdownTimer=setTimeout((function(){i.logger.log(ih.Warning,"(LongPolling transport) server did not terminate after DELETE request, canceling poll."),i.pollAbort.abort()}),this.shutdownTimeout)),[7];case 4:return[2]}}))}))},t}(),Lh=function(t,e,i,n){return new(i||(i=Promise))((function(r,s){function o(t){try{l(n.next(t))}catch(ap){s(ap)}}function a(t){try{l(n["throw"](t))}catch(ap){s(ap)}}function l(t){t.done?r(t.value):new i((function(e){e(t.value)})).then(o,a)}l((n=n.apply(t,e||[])).next())}))},Bh=function(t,e){var i,n,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(o)try{if(i=1,n&&(r=2&s[0]?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(r=o.trys,!(r=r.length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(ap){s=[6,ap],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},jh=function(){function t(t,e,i,n){this.httpClient=t,this.accessTokenFactory=e||function(){return null},this.logger=i,this.logMessageContent=n}return t.prototype.connect=function(t,e){return Lh(this,void 0,void 0,(function(){var i,n=this;return Bh(this,(function(r){switch(r.label){case 0:if(gh.isRequired(t,"url"),gh.isRequired(e,"transferFormat"),gh.isIn(e,Eh,"transferFormat"),"undefined"===typeof EventSource)throw new Error("'EventSource' is not supported in your environment.");return this.logger.log(ih.Trace,"(SSE transport) Connecting"),[4,this.accessTokenFactory()];case 1:return i=r.sent(),i&&(t+=(t.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(i)),this.url=t,[2,new Promise((function(i,r){var s=!1;e!==Eh.Text&&r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));var o=new EventSource(t,{withCredentials:!0});try{o.onmessage=function(t){if(n.onreceive)try{n.logger.log(ih.Trace,"(SSE transport) data received. "+vh(t.data,n.logMessageContent)+"."),n.onreceive(t.data)}catch(e){return void(n.onclose&&n.onclose(e))}},o.onerror=function(t){var e=new Error(t.message||"Error occurred");s?n.close(e):r(e)},o.onopen=function(){n.logger.log(ih.Information,"SSE connected to "+n.url),n.eventSource=o,s=!0,i()}}catch(ap){return Promise.reject(ap)}}))]}}))}))},t.prototype.send=function(t){return Lh(this,void 0,void 0,(function(){return Bh(this,(function(e){return this.eventSource?[2,_h(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},t.prototype.stop=function(){return this.close(),Promise.resolve()},t.prototype.close=function(t){this.eventSource&&(this.eventSource.close(),this.eventSource=null,this.onclose&&this.onclose(t))},t}(),zh=function(t,e,i,n){return new(i||(i=Promise))((function(r,s){function o(t){try{l(n.next(t))}catch(ap){s(ap)}}function a(t){try{l(n["throw"](t))}catch(ap){s(ap)}}function l(t){t.done?r(t.value):new i((function(e){e(t.value)})).then(o,a)}l((n=n.apply(t,e||[])).next())}))},Fh=function(t,e){var i,n,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(o)try{if(i=1,n&&(r=2&s[0]?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(r=o.trys,!(r=r.length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(ap){s=[6,ap],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Vh=function(){function t(t,e,i){this.logger=e,this.accessTokenFactory=t||function(){return null},this.logMessageContent=i}return t.prototype.connect=function(t,e){return zh(this,void 0,void 0,(function(){var i,n=this;return Fh(this,(function(r){switch(r.label){case 0:if(gh.isRequired(t,"url"),gh.isRequired(e,"transferFormat"),gh.isIn(e,Eh,"transferFormat"),"undefined"===typeof WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return this.logger.log(ih.Trace,"(WebSockets transport) Connecting"),[4,this.accessTokenFactory()];case 1:return i=r.sent(),i&&(t+=(t.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(i)),[2,new Promise((function(i,r){t=t.replace(/^http/,"ws");var s=new WebSocket(t);e===Eh.Binary&&(s.binaryType="arraybuffer"),s.onopen=function(e){n.logger.log(ih.Information,"WebSocket connected to "+t),n.webSocket=s,i()},s.onerror=function(t){r(t.error)},s.onmessage=function(t){n.logger.log(ih.Trace,"(WebSockets transport) data received. "+vh(t.data,n.logMessageContent)+"."),n.onreceive&&n.onreceive(t.data)},s.onclose=function(t){n.logger.log(ih.Trace,"(WebSockets transport) socket closed."),n.onclose&&(!1===t.wasClean||1e3!==t.code?n.onclose(new Error("Websocket closed with status code: "+t.code+" ("+t.reason+")")):n.onclose())}}))]}}))}))},t.prototype.send=function(t){return this.webSocket&&this.webSocket.readyState===WebSocket.OPEN?(this.logger.log(ih.Trace,"(WebSockets transport) sending data. "+vh(t,this.logMessageContent)+"."),this.webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},t.prototype.stop=function(){return this.webSocket&&(this.webSocket.close(),this.webSocket=null),Promise.resolve()},t}(),Hh=function(t,e,i,n){return new(i||(i=Promise))((function(r,s){function o(t){try{l(n.next(t))}catch(ap){s(ap)}}function a(t){try{l(n["throw"](t))}catch(ap){s(ap)}}function l(t){t.done?r(t.value):new i((function(e){e(t.value)})).then(o,a)}l((n=n.apply(t,e||[])).next())}))},Uh=function(t,e){var i,n,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(o)try{if(i=1,n&&(r=2&s[0]?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(r=o.trys,!(r=r.length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(ap){s=[6,ap],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Qh=100,Wh=function(){function t(t,e){void 0===e&&(e={}),this.features={},gh.isRequired(t,"url"),this.logger=yh(e.logger),this.baseUrl=this.resolveUrl(t),e=e||{},e.accessTokenFactory=e.accessTokenFactory||function(){return null},e.logMessageContent=e.logMessageContent||!1,this.httpClient=e.httpClient||new hh(this.logger),this.connectionState=2,this.options=e}return t.prototype.start=function(t){return t=t||Eh.Binary,gh.isIn(t,Eh,"transferFormat"),this.logger.log(ih.Debug,"Starting connection with transfer format '"+Eh[t]+"'."),2!==this.connectionState?Promise.reject(new Error("Cannot start a connection that is not in the 'Disconnected' state.")):(this.connectionState=0,this.startPromise=this.startInternal(t),this.startPromise)},t.prototype.send=function(t){if(1!==this.connectionState)throw new Error("Cannot send data if the connection is not in the 'Connected' State.");return this.transport.send(t)},t.prototype.stop=function(t){return Hh(this,void 0,void 0,(function(){return Uh(this,(function(e){switch(e.label){case 0:this.connectionState=2,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.startPromise];case 2:return e.sent(),[3,4];case 3:return e.sent(),[3,4];case 4:return this.transport?(this.stopError=t,[4,this.transport.stop()]):[3,6];case 5:e.sent(),this.transport=null,e.label=6;case 6:return[2]}}))}))},t.prototype.startInternal=function(t){return Hh(this,void 0,void 0,(function(){var e,i,n,r,s,o,a,l=this;return Uh(this,(function(c){switch(c.label){case 0:e=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,c.label=1;case 1:return c.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==qh.WebSockets?[3,3]:(this.transport=this.constructTransport(qh.WebSockets),[4,this.transport.connect(e,t)]):[3,5];case 2:return c.sent(),[3,4];case 3:throw Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:i=null,n=0,r=function(){var t;return Uh(this,(function(r){switch(r.label){case 0:return[4,s.getNegotiationResponse(e)];case 1:return i=r.sent(),2===s.connectionState?[2,{value:void 0}]:(i.url&&(e=i.url),i.accessToken&&(t=i.accessToken,s.accessTokenFactory=function(){return t}),n++,[2])}}))},s=this,c.label=6;case 6:return[5,r()];case 7:if(o=c.sent(),"object"===typeof o)return[2,o.value];c.label=8;case 8:if(i.url&&n<Qh)return[3,6];c.label=9;case 9:if(n===Qh&&i.url)throw Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(e,this.options.transport,i,t)];case 10:c.sent(),c.label=11;case 11:return this.transport instanceof Oh&&(this.features.inherentKeepAlive=!0),this.transport.onreceive=this.onreceive,this.transport.onclose=function(t){return l.stopConnection(t)},this.changeState(0,1),[3,13];case 12:throw a=c.sent(),this.logger.log(ih.Error,"Failed to start the connection: "+a),this.connectionState=2,this.transport=null,a;case 13:return[2]}}))}))},t.prototype.getNegotiationResponse=function(t){return Hh(this,void 0,void 0,(function(){var e,i,n,r,s,o;return Uh(this,(function(a){switch(a.label){case 0:return[4,this.accessTokenFactory()];case 1:i=a.sent(),i&&(e={},e["Authorization"]="Bearer "+i,n=e),r=this.resolveNegotiateUrl(t),this.logger.log(ih.Debug,"Sending negotiation request: "+r),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.httpClient.post(r,{content:"",headers:n})];case 3:if(s=a.sent(),200!==s.statusCode)throw Error("Unexpected status code returned from negotiate "+s.statusCode);return[2,JSON.parse(s.content)];case 4:throw o=a.sent(),this.logger.log(ih.Error,"Failed to complete negotiation with the server: "+o),o;case 5:return[2]}}))}))},t.prototype.createConnectUrl=function(t,e){return t+(-1===t.indexOf("?")?"?":"&")+"id="+e},t.prototype.createTransport=function(t,e,i,n){return Hh(this,void 0,void 0,(function(){var r,s,o,a,l,c,u;return Uh(this,(function(h){switch(h.label){case 0:return r=this.createConnectUrl(t,i.connectionId),this.isITransport(e)?(this.logger.log(ih.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=e,[4,this.transport.connect(r,n)]):[3,2];case 1:return h.sent(),this.changeState(0,1),[2];case 2:s=i.availableTransports,o=0,a=s,h.label=3;case 3:return o<a.length?(l=a[o],this.connectionState=0,c=this.resolveTransport(l,e,n),"number"!==typeof c?[3,8]:(this.transport=this.constructTransport(c),null!==i.connectionId?[3,5]:[4,this.getNegotiationResponse(t)])):[3,9];case 4:i=h.sent(),r=this.createConnectUrl(t,i.connectionId),h.label=5;case 5:return h.trys.push([5,7,,8]),[4,this.transport.connect(r,n)];case 6:return h.sent(),this.changeState(0,1),[2];case 7:return u=h.sent(),this.logger.log(ih.Error,"Failed to start the transport '"+qh[c]+"': "+u),this.connectionState=2,i.connectionId=null,[3,8];case 8:return o++,[3,3];case 9:throw new Error("Unable to initialize any of the available transports.")}}))}))},t.prototype.constructTransport=function(t){switch(t){case qh.WebSockets:return new Vh(this.accessTokenFactory,this.logger,this.options.logMessageContent);case qh.ServerSentEvents:return new jh(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent);case qh.LongPolling:return new Oh(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent);default:throw new Error("Unknown transport: "+t+".")}},t.prototype.resolveTransport=function(t,e,i){var n=qh[t.transport];if(null===n||void 0===n)this.logger.log(ih.Debug,"Skipping transport '"+t.transport+"' because it is not supported by this client.");else{var r=t.transferFormats.map((function(t){return Eh[t]}));if(Yh(e,n))if(r.indexOf(i)>=0){if(!(n===qh.WebSockets&&"undefined"===typeof WebSocket||n===qh.ServerSentEvents&&"undefined"===typeof EventSource))return this.logger.log(ih.Debug,"Selecting transport '"+qh[n]+"'"),n;this.logger.log(ih.Debug,"Skipping transport '"+qh[n]+"' because it is not supported in your environment.'")}else this.logger.log(ih.Debug,"Skipping transport '"+qh[n]+"' because it does not support the requested transfer format '"+Eh[i]+"'.");else this.logger.log(ih.Debug,"Skipping transport '"+qh[n]+"' because it was disabled by the client.")}return null},t.prototype.isITransport=function(t){return t&&"object"===typeof t&&"connect"in t},t.prototype.changeState=function(t,e){return this.connectionState===t&&(this.connectionState=e,!0)},t.prototype.stopConnection=function(t){return Hh(this,void 0,void 0,(function(){return Uh(this,(function(e){return this.transport=null,t=this.stopError||t,t?this.logger.log(ih.Error,"Connection disconnected with error '"+t+"'."):this.logger.log(ih.Information,"Connection disconnected."),this.connectionState=2,this.onclose&&this.onclose(t),[2]}))}))},t.prototype.resolveUrl=function(t){if(0===t.lastIndexOf("https://",0)||0===t.lastIndexOf("http://",0))return t;if("undefined"===typeof window||!window||!window.document)throw new Error("Cannot resolve '"+t+"'.");var e=window.document.createElement("a");return e.href=t,this.logger.log(ih.Information,"Normalizing '"+t+"' to '"+e.href+"'."),e.href},t.prototype.resolveNegotiateUrl=function(t){var e=t.indexOf("?"),i=t.substring(0,-1===e?t.length:e);return"/"!==i[i.length-1]&&(i+="/"),i+="negotiate",i+=-1===e?"":t.substring(e),i},t}();function Yh(t,e){return!t||0!==(e&t)}var Kh="json",Xh=function(){function t(){this.name=Kh,this.version=1,this.transferFormat=Eh.Text}return t.prototype.parseMessages=function(t,e){if("string"!==typeof t)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];null===e&&(e=ph.instance);for(var i=dh.parse(t),n=[],r=0,s=i;r<s.length;r++){var o=s[r],a=JSON.parse(o);if("number"!==typeof a.type)throw new Error("Invalid payload.");switch(a.type){case kh.Invocation:this.isInvocationMessage(a);break;case kh.StreamItem:this.isStreamItemMessage(a);break;case kh.Completion:this.isCompletionMessage(a);break;case kh.Ping:break;case kh.Close:break;default:e.log(ih.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n},t.prototype.writeMessage=function(t){return dh.write(JSON.stringify(t))},t.prototype.isInvocationMessage=function(t){this.assertNotEmptyString(t.target,"Invalid payload for Invocation message."),void 0!==t.invocationId&&this.assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")},t.prototype.isStreamItemMessage=function(t){if(this.assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),void 0===t.item)throw new Error("Invalid payload for StreamItem message.")},t.prototype.isCompletionMessage=function(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this.assertNotEmptyString(t.error,"Invalid payload for Completion message."),this.assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")},t.prototype.assertNotEmptyString=function(t,e){if("string"!==typeof t||""===t)throw new Error(e)},t}(),Gh=function(){function t(){}return t.prototype.configureLogging=function(t){return gh.isRequired(t,"logging"),Zh(t)?this.logger=t:this.logger=new xh(t),this},t.prototype.withUrl=function(t,e){return gh.isRequired(t,"url"),this.url=t,this.httpConnectionOptions="object"===typeof e?e:{transport:e},this},t.prototype.withHubProtocol=function(t){return gh.isRequired(t,"protocol"),this.protocol=t,this},t.prototype.build=function(){var t=this.httpConnectionOptions||{};if(void 0===t.logger&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var e=new Wh(this.url,t);return Nh.create(e,this.logger||ph.instance,this.protocol||new Xh)},t}();function Zh(t){return void 0!==t.log}var Jh={name:"notifyMsg",props:["btnColor","token","useEnv","webTitle"],data(){return{loading:!1,searchInfo:{AlreadyRead:!1},options:{AlreadyRead:[{label:"未讀",value:!1},{label:"已讀",value:!0}]},msgList:{},pagination:{rowsPerPage:10,pageNumber:1,pageSize:10},poupSwch:{isShowModel:!1,isShowMsgItem:!1,isShowSpMsg:!1},msgViewData:{},spMsgData:{},countUnreadMsg:0,columns:[{name:"subject",label:"通知標題",field:"subject",align:"left",headerClasses:"bg-light-blue-9 trTitleSty"},{name:"createTime",label:"發布日期",field:"createTime",align:"center",headerClasses:"bg-light-blue-9 trTitleSty"},{name:"alreadyReadCna",label:"狀態",field:"alreadyReadCna",align:"center",headerClasses:"bg-light-blue-9 trTitleSty"},{name:"edit",label:"查看",field:"edit",align:"center",headerClasses:"bg-light-blue-9 trTitleSty"}]}},computed:{fjuBaseApi(){let t=location.hostname;return"localhost"==t||"140.136.240.22"==t||"sf446lab.fju.edu.tw"==t||"sf446lab2.fju.edu.tw"==t?"https://api-gateway-dev.fju.edu.tw/FjuBase/api":"https://travellerLink.fju.edu.tw/FjuBase/api"},connectionApi(){let t=location.hostname;return"localhost"==t||"140.136.240.22"==t||"sf446lab.fju.edu.tw"==t||"sf446lab2.fju.edu.tw"==t?"https://sf446lab2.fju.edu.tw/FjuBase/MessageHub":"https://fjubase-api.fju.edu.tw/MessageHub"},api(){const t=oe.create({baseURL:this.fjuBaseApi});return t.defaults.headers.common["Authorization"]="Bearer "+this.token,t},connection(){const t=(new Gh).withUrl(this.connectionApi,{withCredentials:!1,accessTokenFactory:()=>this.token}).build();return t}},methods:{async onSearch(){this.pagination.pageNumber=1,this.changePage()},async changePage(){this.loading=!0;let t=Object.assign({},this.pagination,this.searchInfo),e=await this.api.get("Message/Get",{params:t});this.msgList=e.data.result,this.loading=!1},showModel(){this.onSearch(),this.poupSwch.isShowModel=!0},closeModel(){this.poupSwch.isShowModel=!1,this.poupSwch.isShowMsgItem=!1,this.poupSwch.isShowSpMsg=!1,this.msgViewData={},this.spMsgData={},this.searchInfo={AlreadyRead:!1}},async openMsg(t){if(this.msgViewData=mc.a.cloneDeep(t),!t.alreadyRead){await this.api.put("Message/AlreadyRead/"+t.messageSn);let e=this.countRemovePage();this.pagination.pageNumber=e,setTimeout(()=>{this.changePage()},500)}this.poupSwch.isShowMsgItem=!0},closeMsg(){this.msgViewData={},this.poupSwch.isShowMsgItem=!1},openSpMsg(t){this.api.put("Message/AlreadyRead/"+t.messageSn),this.spMsgData=t,this.poupSwch.isShowSpMsg=!0},closeSpMsg(){this.spMsgData={},this.poupSwch.isShowSpMsg=!1},async onConnent(){this.connection.start().then().catch(t=>console.error(t.toString()))},async offConnent(){this.connection.stop()},async listenConnent(){this.connection.on("ReceiveUserMessage",t=>{this.setNewNotify(t.result),"dev"==this.useEnv?nh.create({message:`\n <div class="ellipsis" style="width:250px">\n <span >\n ${t.result.subject} \n </span>\n </div>\n `,icon:"notifications_active",iconColor:"yellow-10",position:"bottom-right",timeout:0,color:"white",textColor:"dark",html:!0,actions:[{label:"讀取",handler:()=>this.openSpMsg(t.result)},{label:"關閉",handler:()=>{}}]}):this.$q.notify({message:`\n <div class="ellipsis" style="width:250px">\n <span >\n ${t.result.subject} \n </span>\n </div>\n `,icon:"notifications_active",iconColor:"yellow-10",position:"bottom-right",timeout:0,color:"white",textColor:"dark",html:!0,actions:[{label:"讀取",handler:()=>this.openSpMsg(t.result)},{label:"關閉",handler:()=>{}}]})}),this.connection.on("ConnectResponse",()=>{}),this.connection.on("UpdateMessageResult",()=>{}),this.connection.on("HasUnreadMessage",t=>{this.countUnreadMsg=t.result,this.setUnReadNum(t.result)})},countRemovePage(){let{pageNumber:t,pageSize:e,totalItemCount:i}=this.msgList,n=mc.a.cloneDeep(t);return Math.ceil((i-1)/e)<t&&n>1&&n--,n},setUnReadNum(t){let e=this.webTitle||"輔大系統網站",i=0!==t?`(${t}) ${e}`:e;document.title=i},setNewNotify(t){this.$emit("setNewNotify",t)}},async mounted(){await this.onConnent(),this.listenConnent(),this.$on("offConn",()=>{this.offConnent()})}},td=Jh,ed=(i("4b7d"),i("222b"),he.a.extend({name:"QBadge",mixins:[De],props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:t=>["top","middle","bottom"].includes(t)}},computed:{style(){if(void 0!==this.align)return{verticalAlign:this.align}},classes(){const t=!0===this.outline&&this.color||this.textColor;return`q-badge flex inline items-center no-wrap q-badge--${!0===this.multiLine?"multi":"single"}-line`+(!0===this.outline?" q-badge--outline":void 0!==this.color?" bg-"+this.color:"")+(void 0!==t?" text-"+t:"")+(!0===this.floating?" q-badge--floating":"")+(!0===this.rounded?" q-badge--rounded":"")+(!0===this.transparent?" q-badge--transparent":"")},attrs(){return{role:"status","aria-label":this.label}}},render(t){return t("div",{style:this.style,class:this.classes,attrs:this.attrs,on:{...this.qListeners}},void 0!==this.label?[this.label]:Re(this,"default"))}}));const id={radio:lu,checkbox:Pr,toggle:ru},nd=Object.keys(id);var rd=he.a.extend({name:"QOptionGroup",mixins:[Cr,De],props:{value:{required:!0},options:{type:Array,validator(t){return t.every(t=>"value"in t&&"label"in t)}},name:String,type:{default:"radio",validator:t=>nd.includes(t)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},computed:{component(){return id[this.type]},model(){return Array.isArray(this.value)?this.value.slice():this.value},classes(){return"q-option-group q-gutter-x-sm"+(!0===this.inline?" q-option-group--inline":"")},attrs(){if("radio"===this.type){const t={role:"radiogroup"};return!0===this.disable&&(t["aria-disabled"]="true"),t}return{role:"group"}}},methods:{__update(t){this.$emit("input",t)}},created(){const t=Array.isArray(this.value);"radio"===this.type?t&&console.error("q-option-group: model should not be array"):!1===t&&console.error("q-option-group: model should be array in your case")},render(t){return t("div",{class:this.classes,attrs:this.attrs,on:{...this.qListeners}},this.options.map((e,i)=>{const n=void 0!==this.$scopedSlots["label-"+i]?this.$scopedSlots["label-"+i](e):void 0!==this.$scopedSlots.label?this.$scopedSlots.label(e):void 0;return t("div",[t(this.component,{props:{value:this.value,val:e.value,name:void 0===e.name?this.name:e.name,disable:this.disable||e.disable,label:void 0===n?e.label:void 0,leftLabel:void 0===e.leftLabel?this.leftLabel:e.leftLabel,color:void 0===e.color?this.color:e.color,checkedIcon:e.checkedIcon,uncheckedIcon:e.uncheckedIcon,dark:e.dark||this.isDark,size:void 0===e.size?this.size:e.size,dense:this.dense,keepColor:void 0===e.keepColor?this.keepColor:e.keepColor},on:Ae(this,"inp",{input:this.__update})},n)])}))}}),sd=he.a.extend({name:"QTr",mixins:[De],props:{props:Object,noHover:Boolean},computed:{classes(){return"q-tr"+(void 0===this.props||!0===this.props.header?"":" "+this.props.__trClass)+(!0===this.noHover?" q-tr--no-hover":"")}},render(t){return t("tr",{on:{...this.qListeners},class:this.classes},Re(this,"default"))}}),od=ce(td,Bu,ju,!1,null,null,null),ad=od.exports;ta()(od,"components",{QBtn:bn,QBadge:ed,QDialog:xr,QCard:kr,QCardSection:Mr,QIcon:Je,QSpace:Rl,QSeparator:po,QScrollArea:tc,QInput:Wo,QSelect:ao,QOptionGroup:rd,QTable:Ro,QTr:sd,QTd:Xo,QPagination:Ko,QChip:ns,QInnerLoading:Go});var ld=function(){var t=this,e=t._self._c;return e("section",{staticClass:"bgSky"},[t._m(0),e("div",{staticClass:"loginAction"},[e("svg",[e("defs",[e("g",{attrs:{id:"Cabeza",transform:"matrix(1, 0, 0, 1, 0, 0)"}},[e("path",{staticStyle:{fill:"#eeeeee","fill-opacity":"1"},attrs:{d:"M-11.45,-6.65Q-10.25 -6.4 -10.05 -5.7Q-9.9 -5.05 -10.8 -4.3Q-11.7 -3.5 -13.15 -3.05L-15.9 -2.9Q-17.05 -3.15 -17.2 -3.8Q-17.4 -4.5 -16.5 -5.3Q-15.6 -6.05 -14.1 -6.45L-11.45 -6.65M-10.55,4.25Q-9.65 5.05 -9.8 5.75Q-10 6.45 -11.15 6.65L-13.85 6.5Q-15.35 6.05 -16.25 5.25Q-17.15 4.5 -16.95 3.85Q-16.8 3.15 -15.6 2.9L-12.9 3.1Q-11.45 3.5 -10.55 4.25"}}),e("radialGradient",{attrs:{id:"RadialGradID_2",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(0.0462036, 0, 0, 0.0462036, -18.7, -0.85)",spreadMethod:"pad",cx:"0",cy:"0",r:"819.2",fx:"0",fy:"0"}},[e("stop",{staticStyle:{"stop-color":"#f70000","stop-opacity":"1"},attrs:{offset:"0"}}),e("stop",{staticStyle:{"stop-color":"#0068a0","stop-opacity":"1"},attrs:{offset:"1"}})],1),e("path",{staticStyle:{fill:"url(#RadialGradID_2)"},attrs:{d:"M5.95,-11.6L2.45 -9.3Q-2.6 -5.7 2.6 -4.45L11.7 -2.65Q18.8 -1.1 18.8 -0.05Q18.8 1 11.7 2.6L2.6 4.4Q-2.6 5.6 2.45 9.25L5.95 11.5L17.75 17.6Q28.7 23.15 28.3 23.2Q27.4 23.15 13.35 16.9L-4.8 8.9Q-5.55 8.6 -4.8 12.05Q-4.25 14.75 -5.25 13.1Q-6.05 11.75 -9.9 9.9L-14.7 7.75Q-15.1 7.55 -16.45 6.9L-18.45 5.65L-25.4 4.25Q-31.8 3.3 -32.25 2.65L-32.95 1.25L-33.3 0L-33.15 -1.5L-32.8 -3.1Q-32.55 -3.55 -29.6 -4.35L-23.45 -5.45Q-19.75 -6 -18.7 -6.7L-17.05 -7.65L-15.4 -8.2Q-10.75 -9.7 -4.7 -14.2Q-3.7 -14.75 -5 -11.5Q-6.3 -8.2 -4.8 -8.95Q-0.65 -11 13.9 -16.3Q28.25 -21.55 29.45 -21.5Q29.8 -21.5 18.3 -16.8L5.95 -11.6M-14.1,-6.45Q-15.6 -6.05 -16.5 -5.3Q-17.4 -4.5 -17.2 -3.8Q-17.05 -3.15 -15.9 -2.9L-13.15 -3.05Q-11.7 -3.5 -10.8 -4.3Q-9.9 -5.05 -10.05 -5.7Q-10.25 -6.4 -11.45 -6.65L-14.1 -6.45M-12.9,3.1L-15.6 2.9Q-16.8 3.15 -16.95 3.85Q-17.15 4.5 -16.25 5.25Q-15.35 6.05 -13.85 6.5L-11.15 6.65Q-10 6.45 -9.8 5.75Q-9.65 5.05 -10.55 4.25Q-11.45 3.5 -12.9 3.1"}})],1),e("g",{attrs:{id:"Aletas",transform:"matrix(1, 0, 0, 1, 0, 0)"}},[e("radialGradient",{attrs:{id:"RadialGradID_3",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(0.0462036, 0, 0, 0.0462036, -18.7, -0.85)",spreadMethod:"pad",cx:"0",cy:"0",r:"819.2",fx:"0",fy:"0"}},[e("stop",{staticStyle:{"stop-color":"#ffd71c","stop-opacity":"1"},attrs:{offset:"0"}}),e("stop",{staticStyle:{"stop-color":"#f70000","stop-opacity":"1"},attrs:{offset:"0.341176"}}),e("stop",{staticStyle:{"stop-color":"#0068a0","stop-opacity":"1"},attrs:{offset:"1"}})],1),e("path",{staticStyle:{fill:"url(#RadialGradID_3)"},attrs:{d:"M29.35,-60Q29.85 -60 18.25 -36.05Q6.7 -12.1 5.95 -11.6L2.45 -9.3L25.6 -22.65Q49.2 -36.25 44.5 -32.65Q18.55 -12.9 19.9 -10.6Q20.3 -9.9 23.6 -10.9L27.25 -12Q29.15 -11.65 19.9 -7.3Q10.6 -2.9 11.7 -2.65Q20 -0.8 20 0Q20 0.75 11.7 2.6L21.75 8.5Q30.15 13.5 20 10.5Q11.7 8.1 28.2 18.55L45.55 29.95Q43.5 30.4 21.45 19Q1.9 8.85 2.45 9.25L5.95 11.5Q6.7 12 17.95 36Q29.25 59.95 28.75 60L9.2 37.65Q-9.35 16.3 -9.75 20Q-10.3 24.5 -11.95 15.8Q-14.05 4.95 -15.1 4.4Q-18.8 2.55 -18.8 -0.05Q-18.8 -2.65 -15.1 -4.45Q-13.95 -5.05 -11.45 -14.5Q-9.35 -22.4 -9.1 -20Q-8.2 -11.9 10.1 -35L22.9 -51.9Q28.95 -60 29.35 -60"}})],1),e("g",{attrs:{id:"Espina",transform:"matrix(1, 0, 0, 1, 0, 0)"}},[e("radialGradient",{attrs:{id:"RadialGradID_1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(0.0462036, 0, 0, 0.0462036, -18.7, -0.85)",spreadMethod:"pad",cx:"0",cy:"0",r:"819.2",fx:"0",fy:"0"}},[e("stop",{staticStyle:{"stop-color":"#f70000","stop-opacity":"1"},attrs:{offset:"0.00784314"}}),e("stop",{staticStyle:{"stop-color":"#f99f09","stop-opacity":"1"},attrs:{offset:"0.521569"}}),e("stop",{staticStyle:{"stop-color":"#ffd71c","stop-opacity":"1"},attrs:{offset:"1"}})],1),e("path",{staticStyle:{fill:"url(#RadialGradID_1)"},attrs:{d:"M11.7,-2.65Q18.8 -1.1 18.8 -0.05Q18.8 1 11.7 2.6L2.6 4.4Q-2.6 5.6 2.45 9.25L5.95 11.5Q7.35 12.45 6.3 12.5L-1.7 9Q-7.75 6.3 -4.8 8.9Q-2.45 10.95 -7.7 8.3L-15.1 4.4Q-18.8 2.55 -18.8 -0.05Q-18.8 -2.65 -15.1 -4.45L-7.75 -8.35Q-2.5 -11 -4.8 -8.95Q-7.25 -6.7 -1.4 -9.3L6.3 -12.55Q7.35 -12.55 5.95 -11.6L2.45 -9.3Q-2.6 -5.7 2.6 -4.45L11.7 -2.65"}})],1)]),e("g",{attrs:{id:"screen"}})])])])},cd=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"sky"},[e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"}),e("div",{staticClass:"cloud"})])}],ud={name:"loginDragon",mounted(){const t=document.getElementById("screen"),e="http://www.w3.org/2000/svg",i="http://www.w3.org/1999/xlink";window.addEventListener("pointermove",t=>{c.x=t.clientX,c.y=t.clientY,d=0},!1);const n=()=>{r=window.innerWidth,s=window.innerHeight};let r,s;window.addEventListener("resize",()=>n(),!1),n();const o=(n,r)=>{const s=document.createElementNS(e,"use");l[r].use=s,s.setAttributeNS(i,"xlink:href","#"+n),s.setAttributeNS(null,"opacity",1-1/a*r),t.prepend(s)},a=60,l=[];for(let f=0;f<a;f++)l[f]={use:null,x:r/2,y:0};const c={x:r/2,y:s/2},u=Math.min(c.x,c.y)-20;let h=1+Math.random(),d=0;for(let f=1;f<a;f++)o(1===f?"Cabeza":4===f||14===f||26===f?"Aletas":"Espina",f);const p=()=>{requestAnimationFrame(p);let t=l[0];const e=Math.cos(3*h)*d*r/s,i=Math.sin(4*h)*d*s/r;t.x+=(e+c.x-t.x)/10,t.y+=(i+c.y-t.y)/10;for(let n=1;n<a;n++){let t=l[n],e=l[n-1];const i=Math.atan2(t.y-e.y,t.x-e.x);t.x+=(e.x-t.x)/4,t.y+=(e.y-t.y)/4;const r=(102-6*(1-n))/(12e3/u);t.use.setAttributeNS(null,"transform",`translate(${(e.x+t.x)/2},${(e.y+t.y)/2}) rotate(${180/Math.PI*i}) translate(0,0) scale(${r},${r})`)}d<u&&d++,h+=.003,d>60&&(c.x+=.05*(r/2-c.x),c.y+=.05*(s/2-c.y))};p()}},hd=ud,dd=(i("5338"),i("f559"),i("ffc8"),ce(hd,ld,cd,!1,null,"509721b6",null)),pd=dd.exports,fd=function(){var t=this,e=t._self._c;return e("q-drawer",{staticStyle:{"font-family":"微軟正黑體"},attrs:{value:t.leftDrawerOpen,"show-if-above":"",bordered:"","content-class":"bg-grey-2",width:t.drawerWidth||340}},[e("div",{style:`height: ${t.sideBarStyle.controlArea}px`,attrs:{id:"topControlArea"}},[e("q-img",{staticStyle:{height:"100px"},attrs:{src:t.bgImage,position:"10% 60%"}},[e("div",{staticClass:"absolute-bottom fit row"},[e("div",{staticClass:"row items-end"},[e("q-avatar",{staticClass:"q-mr-md",attrs:{size:"60px"}},[e("img",{attrs:{src:t.logoImage}})]),e("div",{staticClass:"q-mb-xs"},[e("span",{staticClass:"text-h6 row items-center"},[t._v(" "+t._s(t.userInfo.empCna)+" ")]),e("div",[t._v(" "+t._s(t.userInfo.empNo)+" ")])])],1)]),"default"==t.sidebarType?e("q-btn",{staticClass:"switchModel",attrs:{dense:"",square:"",unelevated:"",size:"12px",color:"grey-8","text-color":"white",icon:"account_tree"},on:{click:function(e){return t.changeSidebarModel("tree")}}}):e("q-btn",{staticClass:"switchModel",attrs:{dense:"",square:"",unelevated:"",size:"12px",color:"grey-8","text-color":"white",icon:"storage"},on:{click:function(e){return t.changeSidebarModel("default")}}})],1),e("q-card-section",{staticClass:"q-pb-none"},[e("q-select",{staticClass:"q-mb-sm",attrs:{"bg-color":"white",dense:"",outlined:"","emit-value":"","map-options":"",label:"目前身分","option-label":"roleName","option-value":"roleSn",options:t.userInfo.systemRoleInfos,value:t.userInfo.roleSn},on:{input:t.changeUserRole}}),t._t("c-select"),t._t("c-btn"),e("q-btn",{staticClass:"full-width",attrs:{icon:"logout",label:"登出",color:"light-blue-10",unelevated:""},on:{click:t.logout}})],2)],1),"tree"==t.sidebarType?e("q-separator",{staticClass:"q-ma-md"}):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:"tree"==t.sidebarType,expression:"sidebarType == 'tree'"}],staticClass:"q-mx-md q-mb-sm"},[e("q-input",{ref:"filter",staticClass:"q-mb-sm",attrs:{dense:"",outlined:"",label:"選單搜尋","bg-color":"white"},scopedSlots:t._u([{key:"append",fn:function(){return[""!==t.filter?e("q-icon",{staticClass:"cursor-pointer",attrs:{name:"clear"},on:{click:t.resetFilter}}):t._e()]},proxy:!0}]),model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("div",{staticClass:"full-width"},[e("q-btn",{staticStyle:{padding:"0 12px"},attrs:{unelevated:"",color:"green-7",icon:"compress",label:"收闔",square:"",dense:""},on:{click:function(e){return t.collapseLevel(2)}}}),e("q-btn",{staticClass:"q-mx-xs",staticStyle:{padding:"0 12px"},attrs:{unelevated:"",color:"blue-7",icon:"expand",label:"展開",square:"",dense:""},on:{click:t.openAllTree}}),e("q-btn",{staticStyle:{padding:"0 12px"},attrs:{label:"設定",unelevated:"",color:"teal-9",icon:"manage_search",square:"",dense:""},on:{click:function(e){t.treeSetting=!0}}})],1)],1),e("q-separator",{staticStyle:{"margin-top":"10px"}}),"tree"==t.sidebarType?e("q-scroll-area",{staticClass:"bg-white",style:`height: calc(100% - ${t.sideBarStyle.scrolltree}px)`},[t.isShowTreeMenu?t._e():e("div",{staticClass:"text-center q-mb-xl",staticStyle:{"margin-top":"30px"}},[e("q-spinner-hourglass",{attrs:{color:"grey-5",size:"2em"}}),e("div",{staticClass:"text-grey-5 q-mt-md"},[t._v("選單讀取中")])],1),0==t.transformreeMenu.length&&t.isShowTreeMenu&&"tree"==t.sidebarType?e("div",{staticClass:"text-center q-my-xl"},[e("span",{staticClass:"text-grey-5"},[t._v("尚無操作功能")])]):t._e(),t.isShowTreeMenu&&t.transformreeMenu.length>0?e("q-tree",{ref:"sideTreeMenu",staticClass:"q-mx-md sideTreeMenu",attrs:{nodes:t.transformreeMenu,filter:t.filter,"node-key":"menuSn","default-expand-all":"","no-transition":"",expanded:t.expandedNodes},on:{"update:expanded":function(e){t.expandedNodes=e}},scopedSlots:t._u([{key:"default-header",fn:function(i){return["GROUP"==i.node.menuTypeCode?e("div",{staticClass:"row items-center groupFontStyle"},[e("div",{staticClass:"ellipsis",style:{maxWidth:(t.drawerWidth-90||250)+"px",color:t.colorSettInfo.groupText||"#1e88e5"}},[t._v(" "+t._s(i.node.label)+" ")])]):e("div",{staticClass:"row items-center funcFontStyle",on:{click:function(e){return t.selectNode(i.node.routerName)}}},[e("div",{staticClass:"nodeItem"},[i.node.routerName==t.selectedNode?e("q-icon",{staticClass:"q-mr-xs",style:{color:t.colorSettInfo.activeText||"#ff9800"},attrs:{name:i.node.itemIcon||"star"}}):e("q-icon",{staticClass:"q-mr-xs",style:{color:t.colorSettInfo.funcText||"#00796b"},attrs:{name:i.node.itemIcon||"star"}}),e("div",{staticClass:"cursor-pointer",class:{ellipsis:t.checkTextIsOver(i.node.label)},style:{maxWidth:t.sideBarTextLang+"px",color:i.node.routerName==t.selectedNode?t.colorSettInfo.activeText||"#ff9800":t.colorSettInfo.funcText||"#00796b"}},[t._v(" "+t._s(i.node.label)+" ")])],1),t.checkTextIsOver(i.node.label)?e("q-tooltip",{attrs:{"transition-show":"scale",anchor:"center right",self:"center left","transition-hide":"scale",offset:[10,-30]}},[e("span",{staticStyle:{"font-size":"15px"}},[t._v(" "+t._s(i.node.label))])]):t._e()],1)]}}],null,!1,2422433243)}):t._e()],1):t._e(),"default"==t.sidebarType?e("div",{staticClass:"text-center q-mt-md q-mb-sm",attrs:{header:""}},[e("span",{staticClass:"listTitle"},[t._v("選單列表")])]):t._e(),t.isShowDefaultMenu?t._e():e("div",{staticClass:"text-center q-mb-xl",staticStyle:{"margin-top":"30px"}},[e("q-spinner-hourglass",{attrs:{color:"grey-5",size:"2em"}}),e("div",{staticClass:"text-grey-5 q-mt-md"},[t._v("選單讀取中")])],1),t.layoutMenu&&0==t.layoutMenu.length&&t.isShowDefaultMenu&&"default"==t.sidebarType?e("div",{staticClass:"text-center q-my-xl"},[e("span",{staticClass:"text-grey-5"},[t._v("尚無操作功能")])]):t._e(),t.layoutMenu&&t.layoutMenu.length>0&&"default"==t.sidebarType?e("q-scroll-area",{style:`height: calc(100% - ${t.sideBarStyle.scrolldefault}px)`},[t.isShowDefaultMenu?e("q-list",{staticClass:"sidebarMenu"},[t.layoutMenu.length>0?e("defaultMenuItem",{attrs:{menuItem:t.layoutMenu,"init-level":0}}):t._e()],1):t._e()],1):t._e(),e("sidebarTreeSetting",{attrs:{prompt:t.treeSetting},on:{close:function(e){t.treeSetting=!1},uodateColorSettInfo:t.uodateColorSettInfo}})],1)},md=[],gd=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"sidebar_MenuItem"}},t._l(t.menuItem,(function(i,n){return e("div",{key:n},[i.childrens?e("div",[e("q-expansion-item",{attrs:{"expand-separator":"","header-inset-level":t.initLevel,group:0==t.initLevel?"somegroup":""},on:{click:function(e){return t.goPage(i.routerName)}},scopedSlots:t._u([{key:"header",fn:function(){return[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{style:"color:"+(i.iconColor||"#9c27b0"),attrs:{name:i.itemIcon||"star"}})],1),e("q-item-section",[e("span",{staticStyle:{"font-size":"16px"}},[t._v(t._s(i.title))])])]},proxy:!0}],null,!0)},[e("defaultMenuItem",{attrs:{menuItem:i.childrens,"init-level":t.initLevel+.5}})],1)],1):e("div",[e("q-expansion-item",{attrs:{"header-inset-level":t.initLevel,"expand-icon":"1"},on:{click:function(e){return t.goPage(i.routerName)}},scopedSlots:t._u([{key:"header",fn:function(){return[e("q-item-section",{attrs:{avatar:""}},[e("q-icon",{style:"color:"+(i.iconColor||"#9c27b0"),attrs:{name:i.itemIcon||"star"}})],1),e("q-item-section",[e("span",{staticStyle:{"font-size":"16px"}},[t._v(t._s(i.title))])])]},proxy:!0}],null,!0)})],1)])})),0)},vd=[],bd={props:["menuItem","initLevel"],name:"defaultMenuItem",components:{defaultMenuItem:Cd},data(){return{}},methods:{goPage(t){t&&this.$router.push({name:t}).catch(()=>{})}}},_d=bd;const yd="q:expansion-item:close",wd=Object.keys(sn);var Sd=he.a.extend({name:"QExpansionItem",mixins:[Cr,yn,wn],props:{...sn,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:Number,headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},data(){return{showing:void 0!==this.value?this.value:this.defaultOpened}},watch:{showing(t){!0===t&&void 0!==this.group&&this.$root.$emit(yd,this)},group(t,e){void 0!==t&&void 0===e?this.$root.$on(yd,this.__eventHandler):void 0===t&&void 0!==e&&this.$root.$off(yd,this.__eventHandler)}},computed:{classes(){return"q-expansion-item--"+(!0===this.showing?"expanded":"collapsed")+" q-expansion-item--"+(!0===this.popup?"popup":"standard")},contentStyle(){if(void 0!==this.contentInsetLevel){const t=!0===this.$q.lang.rtl?"Right":"Left";return{["padding"+t]:56*this.contentInsetLevel+"px"}}},hasLink(){return!0!==this.disable&&(void 0!==this.href||void 0!==this.to&&null!==this.to&&""!==this.to)},linkProps(){const t={};return wd.forEach(e=>{t[e]=this[e]}),t},isClickable(){return!0===this.hasLink||!0!==this.expandIconToggle},expansionIcon(){return void 0!==this.expandedIcon&&!0===this.showing?this.expandedIcon:this.expandIcon||this.$q.iconSet.expansionItem[!0===this.denseToggle?"denseIcon":"icon"]},activeToggleIcon(){return!0!==this.disable&&(!0===this.hasLink||!0===this.expandIconToggle)},headerSlotScope(){return{expanded:!0===this.showing,detailsId:this.targetUid,toggle:this.toggle,show:this.show,hide:this.hide}},toggleAriaAttrs(){const t=void 0!==this.toggleAriaLabel?this.toggleAriaLabel:this.$q.lang.label[!0===this.showing?"collapse":"expand"](this.label);return{role:"button","aria-expanded":!0===this.showing?"true":"false","aria-controls":this.targetUid,"aria-label":t}}},methods:{__onHeaderClick(t){!0!==this.hasLink&&this.toggle(t),this.$emit("click",t)},__toggleIconKeyboard(t){13===t.keyCode&&this.__toggleIcon(t,!0)},__toggleIcon(t,e){!0!==e&&void 0!==this.$refs.blurTarget&&this.$refs.blurTarget.focus(),this.toggle(t),vi(t)},__eventHandler(t){this!==t&&this.group===t.group&&this.hide()},__getToggleIcon(t){const e={staticClass:"q-focusable relative-position cursor-pointer"+(!0===this.denseToggle&&!0===this.switchToggleSide?" items-end":""),class:this.expandIconClass,props:{side:!0!==this.switchToggleSide,avatar:this.switchToggleSide}},i=[t(Je,{staticClass:"q-expansion-item__toggle-icon",class:void 0===this.expandedIcon&&!0===this.showing?"q-expansion-item__toggle-icon--rotated":void 0,props:{name:this.expansionIcon}})];return!0===this.activeToggleIcon&&(Object.assign(e,{attrs:{tabindex:0,...this.toggleAriaAttrs},on:Ae(this,"inpExt",{click:this.__toggleIcon,keyup:this.__toggleIconKeyboard})}),i.unshift(t("div",{ref:"blurTarget",staticClass:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",attrs:{tabindex:-1}}))),t(ss,e,i)},__getHeader(t){let e;void 0!==this.$scopedSlots.header?e=[].concat(this.$scopedSlots.header(this.headerSlotScope)):(e=[t(ss,[t(os,{props:{lines:this.labelLines}},[this.label||""]),this.caption?t(os,{props:{lines:this.captionLines,caption:!0}},[this.caption]):null])],this.icon&&e[!0===this.switchToggleSide?"push":"unshift"](t(ss,{props:{side:!0===this.switchToggleSide,avatar:!0!==this.switchToggleSide}},[t(Je,{props:{name:this.icon}})]))),!0!==this.disable&&!0!==this.hideExpandIcon&&e[!0===this.switchToggleSide?"unshift":"push"](this.__getToggleIcon(t));const i={ref:"item",style:this.headerStyle,class:this.headerClass,props:{dark:this.isDark,disable:this.disable,dense:this.dense,insetLevel:this.headerInsetLevel}};return!0===this.isClickable&&(i.props.clickable=!0,!0===this.hasLink?Object.assign(i.props,this.linkProps):i.attrs=this.toggleAriaAttrs,i.on={...this.qListeners,click:this.__onHeaderClick}),t(rs,i,e)},__getContent(t){const e=[this.__getHeader(t),t(su,{props:{duration:this.duration},on:Ae(this,"slide",{show:()=>{this.$emit("after-show")},hide:()=>{this.$emit("after-hide")}})},[t("div",{staticClass:"q-expansion-item__content relative-position",style:this.contentStyle,attrs:{id:this.targetUid},directives:[{name:"show",value:this.showing}]},Re(this,"default"))])];return this.expandSeparator&&e.push(t(po,{staticClass:"q-expansion-item__border q-expansion-item__border--top absolute-top",props:{dark:this.isDark}}),t(po,{staticClass:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",props:{dark:this.isDark}})),e}},render(t){return t("div",{staticClass:"q-expansion-item q-item-type",class:this.classes},[t("div",{staticClass:"q-expansion-item__container relative-position"},this.__getContent(t))])},created(){void 0!==this.group&&this.$root.$on(yd,this.__eventHandler),this.targetUid="e_"+ts()},beforeDestroy(){void 0!==this.group&&this.$root.$off(yd,this.__eventHandler)}}),xd=ce(_d,gd,vd,!1,null,null,null),Cd=xd.exports;ta()(xd,"components",{QExpansionItem:Sd,QItemSection:ss,QIcon:Je});var kd=function(){var t=this,e=t._self._c;return e("q-dialog",{attrs:{persistent:""},on:{"before-show":t.setInit},model:{value:t.prompt,callback:function(e){t.prompt=e},expression:"prompt"}},[e("q-card",{staticStyle:{width:"350px","max-width":"80vw"}},[e("q-toolbar",{staticClass:"bg-light-blue-10 text-white"},[e("q-toolbar-title",[e("span",{staticClass:"text-weight-bold"},[t._v("選單色彩自定義設置")])]),e("q-btn",{attrs:{flat:"",round:"",dense:"",icon:"close"},on:{click:t.close}})],1),e("q-card-section",[e("q-list",{staticClass:"rounded-borders",attrs:{separator:"",bordered:"",dense:""}},[e("q-item",[e("q-item-section",[e("q-item-label",[e("div",{staticClass:"row items-center",staticStyle:{"font-size":"16px"}},[e("q-icon",{staticClass:"q-mr-sm text-grey-6",attrs:{name:"play_arrow",size:"20px"}}),e("span",{style:"color:"+t.settInfo.groupText},[t._v("選單群組")])],1)])],1),e("q-item-section",{attrs:{side:""}},[e("q-btn",{attrs:{icon:"palette",dense:"",flat:""}},[e("q-popup-proxy",[e("q-card",{staticStyle:{width:"250px"}},[e("q-card-section",{staticClass:"q-pa-none"},[e("q-color",{staticClass:"full-width",attrs:{flat:"","default-view":"palette"},model:{value:t.settInfo.groupText,callback:function(e){t.$set(t.settInfo,"groupText",e)},expression:"settInfo.groupText"}})],1),e("q-separator"),e("q-card-section",{staticClass:"q-pa-xs"},[e("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],staticClass:"full-width",attrs:{label:"確認",color:"blue-8",unelevated:""}})],1)],1)],1)],1)],1)],1),e("q-item",[e("q-item-section",[e("q-item-label",[e("div",{staticClass:"row items-center",style:"font-size: 16px;color:"+t.settInfo.funcText},[e("q-icon",{staticClass:"q-mr-sm",staticStyle:{"margin-left":"30px"},attrs:{name:"star",size:"16px"}}),e("span",{style:"color:"+t.settInfo.funcText},[t._v("單元項目")])],1)])],1),e("q-item-section",{attrs:{side:""}},[e("q-btn",{attrs:{icon:"palette",dense:"",flat:""}},[e("q-popup-proxy",[e("q-card",{staticStyle:{width:"250px"}},[e("q-card-section",{staticClass:"q-pa-none"},[e("q-color",{staticClass:"full-width",attrs:{flat:"","default-view":"palette"},model:{value:t.settInfo.funcText,callback:function(e){t.$set(t.settInfo,"funcText",e)},expression:"settInfo.funcText"}})],1),e("q-separator"),e("q-card-section",{staticClass:"q-pa-xs"},[e("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],staticClass:"full-width",attrs:{label:"確認",color:"blue-8",unelevated:""}})],1)],1)],1)],1)],1)],1),e("q-item",[e("q-item-section",[e("q-item-label",[e("div",{staticClass:"row items-center",style:"font-size: 16px;color:"+t.settInfo.activeText},[e("q-icon",{staticClass:"q-mr-sm",staticStyle:{"margin-left":"30px"},attrs:{name:"star",size:"16px"}}),e("span",[t._v("單元項目 (選擇)")])],1)])],1),e("q-item-section",{attrs:{side:""}},[e("q-btn",{attrs:{icon:"palette",dense:"",flat:""}},[e("q-popup-proxy",[e("q-card",{staticStyle:{width:"250px"}},[e("q-card-section",{staticClass:"q-pa-none"},[e("q-color",{staticClass:"full-width",attrs:{flat:"","default-view":"palette"},model:{value:t.settInfo.activeText,callback:function(e){t.$set(t.settInfo,"activeText",e)},expression:"settInfo.activeText"}})],1),e("q-separator"),e("q-card-section",{staticClass:"q-pa-xs"},[e("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],staticClass:"full-width",attrs:{label:"確認",color:"blue-8",unelevated:""}})],1)],1)],1)],1)],1)],1)],1)],1),e("q-separator"),e("q-card-section",{staticClass:"bg-white q-pa-sm text-right"},[e("q-btn",{staticClass:"q-mr-sm",attrs:{label:"還原預設值",color:"grey-9",outline:""},on:{click:t.resetSetting}}),e("q-btn",{attrs:{icon:"save",label:"儲存",color:"blue-9",unelevated:""},on:{click:t.saveSetting}})],1)],1)],1)},Td=[],qd={name:"sidebarTreeSetting",props:["prompt"],data(){return{settInfo:{groupText:"#1e88e5",funcText:"#00796b",activeText:"#ff9800"}}},computed:{dragOptions(){return{animation:200,group:"description",disabled:!1,ghostClass:"ghost"}}},methods:{setInit(){let t=this.$q.localStorage.getItem("sidebarSetting");t&&(this.settInfo=t)},saveSetting(){this.$emit("uodateColorSettInfo",this.settInfo),this.$swal({title:"設置已儲存",icon:"success",timer:1e3,showConfirmButton:!1}),this.close()},resetSetting(){this.settInfo={groupText:"#1e88e5",funcText:"#00796b",activeText:"#ff9800"}},close(){this.resetSetting(),this.$emit("close")}}},Ed=qd;const Md="q-slider__marker-labels",Id=t=>({value:t}),Ad=[34,37,40,33,39,38],Nd={mixins:[Cr,Ar],directives:{TouchPan:Xl},props:{min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:t=>t>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,hideSelection:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},data(){return{active:!1,preventFocus:!1,focus:!1,dragging:!1}},computed:{axis(){return!0===this.vertical?"--v":"--h"},labelSide(){return"-"+(!0===this.switchLabelSide?"switched":"standard")},isReversed(){return!0===this.vertical?!0===this.reverse:this.reverse!==(!0===this.$q.lang.rtl)},computedInnerMin(){return this.__getInnerMin(this.innerMin)},computedInnerMax(){return this.__getInnerMax(this.innerMax)},editable(){return!0!==this.disable&&!0!==this.readonly&&this.computedInnerMin<this.computedInnerMax},computedDecimals(){return(String(this.step).trim("0").split(".")[1]||"").length},computedStep(){return 0===this.step?1:this.step},computedTabindex(){return!0===this.editable?this.tabindex||0:-1},trackLen(){return this.max-this.min},innerBarLen(){return this.computedInnerMax-this.computedInnerMin},innerMinRatio(){return this.__convertModelToRatio(this.computedInnerMin)},innerMaxRatio(){return this.__convertModelToRatio(this.computedInnerMax)},positionProp(){return!0===this.vertical?!0===this.isReversed?"bottom":"top":!0===this.isReversed?"right":"left"},sizeProp(){return!0===this.vertical?"height":"width"},thicknessProp(){return!0===this.vertical?"width":"height"},orientation(){return!0===this.vertical?"vertical":"horizontal"},attributes(){const t={role:"slider","aria-valuemin":this.computedInnerMin,"aria-valuemax":this.computedInnerMax,"aria-orientation":this.orientation,"data-step":this.step};return!0===this.disable?t["aria-disabled"]="true":!0===this.readonly&&(t["aria-readonly"]="true"),t},classes(){return`q-slider q-slider${this.axis} q-slider--${!0===this.active?"":"in"}active inline no-wrap `+(!0===this.vertical?"row":"column")+(!0===this.disable?" disabled":" q-slider--enabled"+(!0===this.editable?" q-slider--editable":""))+("both"===this.focus?" q-slider--focus":"")+(this.label||!0===this.labelAlways?" q-slider--label":"")+(!0===this.labelAlways?" q-slider--label-always":"")+(!0===this.isDark?" q-slider--dark":"")+(!0===this.dense?" q-slider--dense q-slider--dense"+this.axis:"")},selectionBarClass(){const t=this.selectionColor||this.color;return"q-slider__selection absolute"+(void 0!==t?" text-"+t:"")},markerClass(){return this.__getAxisClass("markers")+" absolute overflow-hidden"},trackContainerClass(){return this.__getAxisClass("track-container")},pinClass(){return this.__getPositionClass("pin")},labelClass(){return this.__getPositionClass("label")},textContainerClass(){return this.__getPositionClass("text-container")},markerLabelsContainerClass(){return this.__getPositionClass("marker-labels-container")+(void 0!==this.markerLabelsClass?" "+this.markerLabelsClass:"")},trackClass(){return"q-slider__track relative-position no-outline"+(void 0!==this.trackColor?" bg-"+this.trackColor:"")},trackStyle(){const t={[this.thicknessProp]:this.trackSize};return void 0!==this.trackImg&&(t.backgroundImage=`url(${this.trackImg}) !important`),t},innerBarClass(){return"q-slider__inner absolute"+(void 0!==this.innerTrackColor?" bg-"+this.innerTrackColor:"")},innerBarStyle(){const t={[this.positionProp]:100*this.innerMinRatio+"%",[this.sizeProp]:100*(this.innerMaxRatio-this.innerMinRatio)+"%"};return void 0!==this.innerTrackImg&&(t.backgroundImage=`url(${this.innerTrackImg}) !important`),t},markerStep(){return!0===Ls(this.markers)?this.markers:this.computedStep},markerTicks(){const t=[],e=this.markerStep;let i=this.min;do{t.push(i),i+=e}while(i<this.max);return t.push(this.max),t},markerLabelClass(){const t=` ${Md}${this.axis}-`;return Md+`${t}${!0===this.switchMarkerLabelsSide?"switched":"standard"}`+`${t}${!0===this.isReversed?"rtl":"ltr"}`},markerLabelsList(){return!1===this.markerLabels?null:this.__getMarkerList(this.markerLabels).map((t,e)=>({index:e,value:t.value,label:t.label||t.value,classes:this.markerLabelClass+(void 0!==t.classes?" "+t.classes:""),style:{...this.__getMarkerLabelStyle(t.value),...t.style||{}}}))},markerScope(){return{markerList:this.markerLabelsList,markerMap:this.markerLabelsMap,classes:this.markerLabelClass,getStyle:this.__getMarkerLabelStyle}},markerStyle(){if(0!==this.innerBarLen){const t=100*this.markerStep/this.innerBarLen;return{...this.innerBarStyle,backgroundSize:!0===this.vertical?`2px ${t}%`:t+"% 2px"}}return null},markerLabelsMap(){if(!1===this.markerLabels)return null;const t={};return this.markerLabelsList.forEach(e=>{t[e.value]=e}),t},panDirectives(){return!0===this.editable?[{name:"touch-pan",value:this.__onPan,modifiers:{[this.orientation]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}}]:null}},methods:{__getInnerMin(t){return!0===isNaN(t)||this.innerMin<this.min?this.min:this.innerMin},__getInnerMax(t){return!0===isNaN(t)||t>this.max?this.max:this.innerMax},__getPositionClass(t){const e="q-slider__"+t;return`${e} ${e}${this.axis} ${e}${this.axis}${this.labelSide}`},__getAxisClass(t){const e="q-slider__"+t;return`${e} ${e}${this.axis}`},__convertRatioToModel(t){let e=this.min+t*(this.max-this.min);if(this.step>0){const t=(e-this.min)%this.step;e+=(Math.abs(t)>=this.step/2?(t<0?-1:1)*this.step:0)-t}return this.computedDecimals>0&&(e=parseFloat(e.toFixed(this.computedDecimals))),js(e,this.computedInnerMin,this.computedInnerMax)},__convertModelToRatio(t){return 0===this.trackLen?0:(t-this.min)/this.trackLen},__getDraggingRatio(t,e){const i=pi(t),n=!0===this.vertical?js((i.top-e.top)/e.height,0,1):js((i.left-e.left)/e.width,0,1);return js(!0===this.isReversed?1-n:n,this.innerMinRatio,this.innerMaxRatio)},__getMarkerList(t){if(!1===t)return null;if(!0===t)return this.markerTicks.map(Id);if("function"===typeof t)return this.markerTicks.map(e=>{const i=t(e);return!0===Ps(i)?{...i,value:e}:{value:e,label:i}});const e=({value:t})=>t>=this.min&&t<=this.max;return!0===Array.isArray(t)?t.map(t=>!0===Ps(t)?t:{value:t}).filter(e):Object.keys(t).map(e=>{const i=t[e],n=Number(e);return!0===Ps(i)?{...i,value:n}:{value:n,label:i}}).filter(e)},__getMarkerLabelStyle(t){return{[this.positionProp]:100*(t-this.min)/this.trackLen+"%"}},__getMarkerLabelsContent(t){if(void 0!==this.$scopedSlots["marker-label-group"])return this.$scopedSlots["marker-label-group"](this.markerScope);const e=this.$scopedSlots["marker-label"];return void 0!==e?this.markerLabelsList.map(t=>e({marker:t,...this.markerScope})):this.markerLabelsList.map(e=>t("div",{key:e.value,style:e.style,class:e.classes},e.label))},__onPan(t){!0===t.isFinal?(void 0!==this.dragging&&(this.__updatePosition(t.evt),!0===t.touch&&this.__updateValue(!0),this.dragging=void 0,this.$emit("pan","end")),this.active=!1,this.focus=!1):!0===t.isFirst?(this.dragging=this.__getDragging(t.evt),this.__updatePosition(t.evt),this.__updateValue(),this.active=!0,this.$emit("pan","start")):(this.__updatePosition(t.evt),this.__updateValue())},__onBlur(){this.focus=!1},__onActivate(t){this.__updatePosition(t,this.__getDragging(t)),this.__updateValue(),this.preventFocus=!0,this.active=!0,document.addEventListener("mouseup",this.__onDeactivate,!0)},__onDeactivate(){this.preventFocus=!1,this.active=!1,this.__updateValue(!0),this.__onBlur(),document.removeEventListener("mouseup",this.__onDeactivate,!0)},__onMobileClick(t){this.__updatePosition(t,this.__getDragging(t)),this.__updateValue(!0)},__onKeyup(t){Ad.includes(t.keyCode)&&this.__updateValue(!0)},__getTextContainerStyle(t){if(!0===this.vertical)return null;const e=this.$q.lang.rtl!==this.reverse?1-t:t;return{transform:`translateX(calc(${2*e-1} * ${this.thumbSize} / 2 + ${50-100*e}%))`}},__getThumb(t,e){const i=[t("svg",{class:"q-slider__thumb-shape absolute-full",attrs:{viewBox:"0 0 20 20","aria-hidden":"true"}},[t("path",{attrs:{d:this.thumbPath}})]),t("div",{class:"q-slider__focus-ring fit"})];return!0!==this.label&&!0!==this.labelAlways||(i.push(t("div",{class:this.pinClass+" absolute fit no-pointer-events"+e.pinColor},[t("div",{class:this.labelClass,style:{minWidth:this.thumbSize}},[t("div",{class:this.textContainerClass,style:e.textContainerStyle},[t("span",{class:e.textClass},e.label)])])])),void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(i,"push")),t("div",{class:e.classes,style:e.style,...e.nodeData},i)},__getContent(t,e){const i=[];"transparent"!==this.innerTrackColor&&i.push(t("div",{key:"inner",class:this.innerBarClass,style:this.innerBarStyle})),"transparent"!==this.selectionColor&&i.push(t("div",{key:"selection",class:this.selectionBarClass,style:this.selectionBarStyle})),!1!==this.markers&&i.push(t("div",{key:"marker",class:this.markerClass,style:this.markerStyle})),e(i);const n=[t("div",{key:"trackC",class:this.trackContainerClass,attrs:this.trackContainerAttrs,on:this.trackContainerEvents,directives:this.panDirectives},[t("div",{class:this.trackClass,style:this.trackStyle},i)])];if(!1!==this.markerLabels){const e=!0===this.switchMarkerLabelsSide?"unshift":"push";n[e](t("div",{key:"markerL",class:this.markerLabelsContainerClass},this.__getMarkerLabelsContent(t)))}return n}},beforeDestroy(){document.removeEventListener("mouseup",this.__onDeactivate,!0)}};var $d=he.a.extend({name:"QSlider",mixins:[Nd],props:{value:{required:!0,default:null,validator:t=>"number"===typeof t||null===t},labelValue:[String,Number]},data(){const t=this.__getInnerMin(this.innerMin),e=this.__getInnerMax(this.innerMax);return{model:null===this.value?t:js(this.value,t,e),curRatio:0}},computed:{modelRatio(){return this.__convertModelToRatio(this.model)},ratio(){return!0===this.active?this.curRatio:this.modelRatio},selectionBarStyle(){const t={[this.positionProp]:100*this.innerMinRatio+"%",[this.sizeProp]:100*(this.ratio-this.innerMinRatio)+"%"};return void 0!==this.selectionImg&&(t.backgroundImage=`url(${this.selectionImg}) !important`),t},thumbLabel(){return void 0!==this.labelValue?this.labelValue:this.model},thumbClasses(){const t=this.thumbColor||this.color;return`q-slider__thumb q-slider__thumb${this.axis} q-slider__thumb${this.axis}-${!0===this.isReversed?"rtl":"ltr"} absolute non-selectable`+(!1===this.preventFocus&&!0===this.focus?" q-slider--focus":"")+(void 0!==t?" text-"+t:"")},thumbStyle(){return{width:this.thumbSize,height:this.thumbSize,[this.positionProp]:100*this.ratio+"%"}},thumbPinColor(){return void 0!==this.labelColor?" text-"+this.labelColor:""},thumbTextContainerStyle(){return this.__getTextContainerStyle(this.ratio)},thumbTextClass(){return"q-slider__text"+(void 0!==this.labelTextColor?" text-"+this.labelTextColor:"")},trackContainerEvents(){return!0!==this.editable?{}:!0===this.$q.platform.is.mobile?{click:this.__onMobileClick}:{mousedown:this.__onActivate,focus:this.__onFocus,blur:this.__onBlur,keydown:this.__onKeydown,keyup:this.__onKeyup}},trackContainerAttrs(){return{tabindex:!0!==this.$q.platform.is.mobile?this.computedTabindex:null}},modelUpdate(){return`${this.value}|${this.computedInnerMin}|${this.computedInnerMax}`}},watch:{modelUpdate(){this.model=null===this.value?this.computedInnerMin:js(this.value,this.computedInnerMin,this.computedInnerMax)}},methods:{__updateValue(t){this.model!==this.value&&this.$emit("input",this.model),!0===t&&this.$emit("change",this.model)},__getDragging(){return this.$el.getBoundingClientRect()},__updatePosition(t,e=this.dragging){const i=this.__getDraggingRatio(t,e);this.model=this.__convertRatioToModel(i),this.curRatio=!0!==this.snap||0===this.computedStep?i:this.__convertModelToRatio(this.model)},__onFocus(){this.focus=!0},__onKeydown(t){if(!Ad.includes(t.keyCode))return;vi(t);const e=([34,33].includes(t.keyCode)?10:1)*this.computedStep,i=([34,37,40].includes(t.keyCode)?-1:1)*(!0===this.isReversed?-1:1)*(!0===this.vertical?-1:1)*e;this.model=js(parseFloat((this.model+i).toFixed(this.computedDecimals)),this.computedInnerMin,this.computedInnerMax),this.__updateValue()}},render(t){const e=this.__getContent(t,e=>{e.push(this.__getThumb(t,{pinColor:this.thumbPinColor,textContainerStyle:this.thumbTextContainerStyle,textClass:this.thumbTextClass,label:this.thumbLabel,classes:this.thumbClasses,style:this.thumbStyle,nodeData:{}}))});return t("div",{class:this.classes+(null===this.value?" q-slider--no-value":""),attrs:{...this.attributes,"aria-valuenow":this.value}},e)}});const Dd=["rgb(255,204,204)","rgb(255,230,204)","rgb(255,255,204)","rgb(204,255,204)","rgb(204,255,230)","rgb(204,255,255)","rgb(204,230,255)","rgb(204,204,255)","rgb(230,204,255)","rgb(255,204,255)","rgb(255,153,153)","rgb(255,204,153)","rgb(255,255,153)","rgb(153,255,153)","rgb(153,255,204)","rgb(153,255,255)","rgb(153,204,255)","rgb(153,153,255)","rgb(204,153,255)","rgb(255,153,255)","rgb(255,102,102)","rgb(255,179,102)","rgb(255,255,102)","rgb(102,255,102)","rgb(102,255,179)","rgb(102,255,255)","rgb(102,179,255)","rgb(102,102,255)","rgb(179,102,255)","rgb(255,102,255)","rgb(255,51,51)","rgb(255,153,51)","rgb(255,255,51)","rgb(51,255,51)","rgb(51,255,153)","rgb(51,255,255)","rgb(51,153,255)","rgb(51,51,255)","rgb(153,51,255)","rgb(255,51,255)","rgb(255,0,0)","rgb(255,128,0)","rgb(255,255,0)","rgb(0,255,0)","rgb(0,255,128)","rgb(0,255,255)","rgb(0,128,255)","rgb(0,0,255)","rgb(128,0,255)","rgb(255,0,255)","rgb(245,0,0)","rgb(245,123,0)","rgb(245,245,0)","rgb(0,245,0)","rgb(0,245,123)","rgb(0,245,245)","rgb(0,123,245)","rgb(0,0,245)","rgb(123,0,245)","rgb(245,0,245)","rgb(214,0,0)","rgb(214,108,0)","rgb(214,214,0)","rgb(0,214,0)","rgb(0,214,108)","rgb(0,214,214)","rgb(0,108,214)","rgb(0,0,214)","rgb(108,0,214)","rgb(214,0,214)","rgb(163,0,0)","rgb(163,82,0)","rgb(163,163,0)","rgb(0,163,0)","rgb(0,163,82)","rgb(0,163,163)","rgb(0,82,163)","rgb(0,0,163)","rgb(82,0,163)","rgb(163,0,163)","rgb(92,0,0)","rgb(92,46,0)","rgb(92,92,0)","rgb(0,92,0)","rgb(0,92,46)","rgb(0,92,92)","rgb(0,46,92)","rgb(0,0,92)","rgb(46,0,92)","rgb(92,0,92)","rgb(255,255,255)","rgb(205,205,205)","rgb(178,178,178)","rgb(153,153,153)","rgb(127,127,127)","rgb(102,102,102)","rgb(76,76,76)","rgb(51,51,51)","rgb(25,25,25)","rgb(0,0,0)"],Rd="M5 5 h10 v10 h-10 v-10 z",Pd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAH0lEQVQoU2NkYGAwZkAFZ5G5jPRRgOYEVDeB3EBjBQBOZwTVugIGyAAAAABJRU5ErkJggg==";var Od=he.a.extend({name:"QColor",mixins:[De,Cr,Ar],directives:{TouchPan:Xl},props:{value:String,defaultValue:String,defaultView:{type:String,default:"spectrum",validator:t=>["spectrum","tune","palette"].includes(t)},formatModel:{type:String,default:"auto",validator:t=>["auto","hex","rgb","hexa","rgba"].includes(t)},palette:Array,noHeader:Boolean,noHeaderTabs:Boolean,noFooter:Boolean,square:Boolean,flat:Boolean,bordered:Boolean,disable:Boolean,readonly:Boolean},data(){return{topView:"auto"===this.formatModel?void 0===this.value||null===this.value||""===this.value||this.value.startsWith("#")?"hex":"rgb":this.formatModel.startsWith("hex")?"hex":"rgb",view:this.defaultView,model:this.__parseModel(this.value||this.defaultValue)}},watch:{value(t){const e=this.__parseModel(t||this.defaultValue);e.hex!==this.model.hex&&(this.model=e)},defaultValue(t){if(!this.value&&t){const e=this.__parseModel(t);e.hex!==this.model.hex&&(this.model=e)}}},computed:{editable(){return!0!==this.disable&&!0!==this.readonly},forceHex(){return"auto"===this.formatModel?null:this.formatModel.indexOf("hex")>-1},forceAlpha(){return"auto"===this.formatModel?null:this.formatModel.indexOf("a")>-1},isHex(){return void 0===this.value||null===this.value||""===this.value||this.value.startsWith("#")},isOutputHex(){return null!==this.forceHex?this.forceHex:this.isHex},formAttrs(){return{type:"hidden",name:this.name,value:this.model[!0===this.isOutputHex?"hex":"rgb"]}},hasAlpha(){return null!==this.forceAlpha?this.forceAlpha:void 0!==this.model.a},currentBgColor(){return{backgroundColor:this.model.rgb||"#000"}},headerClass(){const t=void 0!==this.model.a&&this.model.a<65||Qi(this.model)>.4;return"q-color-picker__header-content--"+(t?"light":"dark")},spectrumStyle(){return{background:`hsl(${this.model.h},100%,50%)`}},spectrumPointerStyle(){return{top:100-this.model.v+"%",[!0===this.$q.lang.rtl?"right":"left"]:this.model.s+"%"}},computedPalette(){return void 0!==this.palette&&this.palette.length>0?this.palette:Dd},classes(){return"q-color-picker"+(!0===this.bordered?" q-color-picker--bordered":"")+(!0===this.square?" q-color-picker--square no-border-radius":"")+(!0===this.flat?" q-color-picker--flat no-shadow":"")+(!0===this.disable?" disabled":"")+(!0===this.isDark?" q-color-picker--dark q-dark":"")},attrs(){return!0===this.disable?{"aria-disabled":"true"}:!0===this.readonly?{"aria-readonly":"true"}:void 0}},created(){this.__spectrumChange=Ti(this.__spectrumChange,20)},render(t){const e=[this.__getContent(t)];return void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(e,"push"),!0!==this.noHeader&&e.unshift(this.__getHeader(t)),!0!==this.noFooter&&e.push(this.__getFooter(t)),t("div",{class:this.classes,attrs:this.attrs,on:{...this.qListeners}},e)},methods:{__getHeader(t){const e=[];return!0!==this.noHeaderTabs&&e.push(t(Sc,{class:"q-color-picker__header-tabs",props:{value:this.topView,dense:!0,align:"justify"},on:Ae(this,"topVTab",{input:t=>{this.topView=t}})},[t(Cc,{props:{label:"HEX"+(!0===this.hasAlpha?"A":""),name:"hex",ripple:!1}}),t(Cc,{props:{label:"RGB"+(!0===this.hasAlpha?"A":""),name:"rgb",ripple:!1}})])),e.push(t("div",{staticClass:"q-color-picker__header-banner row flex-center no-wrap"},[t("input",{staticClass:"fit",domProps:{value:this.model[this.topView]},attrs:!0!==this.editable?{readonly:!0}:null,on:Ae(this,"topIn",{input:t=>{this.__updateErrorIcon(!0===this.__onEditorChange(t))},change:mi,blur:t=>{!0===this.__onEditorChange(t,!0)&&this.$forceUpdate(),this.__updateErrorIcon(!1)}})}),t(Je,{ref:"errorIcon",staticClass:"q-color-picker__error-icon absolute no-pointer-events",props:{name:this.$q.iconSet.type.negative}})])),t("div",{staticClass:"q-color-picker__header relative-position overflow-hidden"},[t("div",{staticClass:"q-color-picker__header-bg absolute-full"}),t("div",{staticClass:"q-color-picker__header-content",class:this.headerClass,style:this.currentBgColor},e)])},__getContent(t){return t(Nc,{props:{value:this.view,animated:!0}},[t(Dc,{staticClass:"q-color-picker__spectrum-tab overflow-hidden",props:{name:"spectrum"}},this.__getSpectrumTab(t)),t(Dc,{staticClass:"q-pa-md q-color-picker__tune-tab",props:{name:"tune"}},this.__getTuneTab(t)),t(Dc,{staticClass:"q-color-picker__palette-tab",props:{name:"palette"}},this.__getPaletteTab(t))])},__getFooter(t){return t("div",{staticClass:"q-color-picker__footer relative-position overflow-hidden"},[t(Sc,{staticClass:"absolute-full",props:{value:this.view,dense:!0,align:"justify"},on:Ae(this,"ftIn",{input:t=>{this.view=t}})},[t(Cc,{props:{icon:this.$q.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}}),t(Cc,{props:{icon:this.$q.iconSet.colorPicker.tune,name:"tune",ripple:!1}}),t(Cc,{props:{icon:this.$q.iconSet.colorPicker.palette,name:"palette",ripple:!1}})])])},__getSpectrumTab(t){return[t("div",{ref:"spectrum",staticClass:"q-color-picker__spectrum non-selectable relative-position cursor-pointer",style:this.spectrumStyle,class:{readonly:!0!==this.editable},on:!0===this.editable?Ae(this,"spectrT",{click:this.__spectrumClick,mousedown:this.__activate}):null,directives:!0===this.editable?Ae(this,"spectrDir",[{name:"touch-pan",modifiers:{prevent:!0,stop:!0,mouse:!0},value:this.__spectrumPan}]):null},[t("div",{style:{paddingBottom:"100%"}}),t("div",{staticClass:"q-color-picker__spectrum-white absolute-full"}),t("div",{staticClass:"q-color-picker__spectrum-black absolute-full"}),t("div",{staticClass:"absolute",style:this.spectrumPointerStyle},[void 0!==this.model.hex?t("div",{staticClass:"q-color-picker__spectrum-circle"}):null])]),t("div",{staticClass:"q-color-picker__sliders"},[t($d,{staticClass:"q-color-picker__hue non-selectable",props:{value:this.model.h,min:0,max:360,trackSize:"8px",innerTrackColor:"transparent",selectionColor:"transparent",readonly:!0!==this.editable,thumbPath:Rd},on:Ae(this,"hueSlide",{input:this.__onHueChange,change:t=>this.__onHueChange(t,!0)})}),!0===this.hasAlpha?t($d,{staticClass:"q-color-picker__alpha non-selectable",props:{value:this.model.a,min:0,max:100,trackSize:"8px",trackColor:"white",innerTrackColor:"transparent",selectionColor:"transparent",trackImg:Pd,readonly:!0!==this.editable,hideSelection:!0,thumbPath:Rd},on:Ae(this,"alphaSlide",{input:t=>this.__onNumericChange(t,"a",100),change:t=>this.__onNumericChange(t,"a",100,void 0,!0)})}):null])]},__getTuneTab(t){const e={inputmode:"numeric",maxlength:3,readonly:!0!==this.editable};return[t("div",{staticClass:"row items-center no-wrap"},[t("div",["R"]),t($d,{props:{value:this.model.r,min:0,max:255,color:"red",dark:this.isDark,readonly:!0!==this.editable},on:Ae(this,"rSlide",{input:t=>this.__onNumericChange(t,"r",255),change:t=>this.__onNumericChange(t,"r",255,void 0,!0)})}),t("input",{domProps:{value:this.model.r},attrs:e,on:Ae(this,"rIn",{input:t=>this.__onNumericChange(t.target.value,"r",255,t),change:mi,blur:t=>this.__onNumericChange(t.target.value,"r",255,t,!0)})})]),t("div",{staticClass:"row items-center no-wrap"},[t("div",["G"]),t($d,{props:{value:this.model.g,min:0,max:255,color:"green",dark:this.isDark,readonly:!0!==this.editable},on:Ae(this,"gSlide",{input:t=>this.__onNumericChange(t,"g",255),change:t=>this.__onNumericChange(t,"g",255,void 0,!0)})}),t("input",{domProps:{value:this.model.g},attrs:e,on:Ae(this,"gIn",{input:t=>this.__onNumericChange(t.target.value,"g",255,t),change:mi,blur:t=>this.__onNumericChange(t.target.value,"g",255,t,!0)})})]),t("div",{staticClass:"row items-center no-wrap"},[t("div",["B"]),t($d,{props:{value:this.model.b,min:0,max:255,color:"blue",readonly:!0!==this.editable,dark:this.isDark},on:Ae(this,"bSlide",{input:t=>this.__onNumericChange(t,"b",255),change:t=>this.__onNumericChange(t,"b",255,void 0,!0)})}),t("input",{domProps:{value:this.model.b},attrs:e,on:Ae(this,"bIn",{input:t=>this.__onNumericChange(t.target.value,"b",255,t),change:mi,blur:t=>this.__onNumericChange(t.target.value,"b",255,t,!0)})})]),!0===this.hasAlpha?t("div",{staticClass:"row items-center no-wrap"},[t("div",["A"]),t($d,{props:{value:this.model.a,color:"grey",readonly:!0!==this.editable,dark:this.isDark},on:Ae(this,"aSlide",{input:t=>this.__onNumericChange(t,"a",100),change:t=>this.__onNumericChange(t,"a",100,void 0,!0)})}),t("input",{domProps:{value:this.model.a},attrs:e,on:Ae(this,"aIn",{input:t=>this.__onNumericChange(t.target.value,"a",100,t),change:mi,blur:t=>this.__onNumericChange(t.target.value,"a",100,t,!0)})})]):null]},__getPaletteTab(t){return[t("div",{staticClass:"row items-center q-color-picker__palette-rows",class:!0===this.editable?"q-color-picker__palette-rows--editable":""},this.computedPalette.map(e=>t("div",{staticClass:"q-color-picker__cube col-auto",style:{backgroundColor:e},on:!0===this.editable?Ae(this,"palette#"+e,{click:()=>{this.__onPalettePick(e)}}):null})))]},__onSpectrumChange(t,e,i){const n=this.$refs.spectrum;if(void 0===n)return;const r=n.clientWidth,s=n.clientHeight,o=n.getBoundingClientRect();let a=Math.min(r,Math.max(0,t-o.left));!0===this.$q.lang.rtl&&(a=r-a);const l=Math.min(s,Math.max(0,e-o.top)),c=Math.round(100*a/r),u=Math.round(100*Math.max(0,Math.min(1,-l/s+1))),h=Vi({h:this.model.h,s:c,v:u,a:!0===this.hasAlpha?this.model.a:void 0});this.model.s=c,this.model.v=u,this.__update(h,i)},__onHueChange(t,e){t=Math.round(t);const i=Vi({h:t,s:this.model.s,v:this.model.v,a:!0===this.hasAlpha?this.model.a:void 0});this.model.h=t,this.__update(i,e)},__onNumericChange(t,e,i,n,r){if(void 0!==n&&mi(n),!/^[0-9]+$/.test(t))return void(!0===r&&this.$forceUpdate());const s=Math.floor(Number(t));if(s<0||s>i)return void(!0===r&&this.$forceUpdate());const o={r:"r"===e?s:this.model.r,g:"g"===e?s:this.model.g,b:"b"===e?s:this.model.b,a:!0===this.hasAlpha?"a"===e?s:this.model.a:void 0};if("a"!==e){const t=Hi(o);this.model.h=t.h,this.model.s=t.s,this.model.v=t.v}if(this.__update(o,r),void 0!==n&&!0!==r&&void 0!==n.target.selectionEnd){const t=n.target.selectionEnd;this.$nextTick(()=>{n.target.setSelectionRange(t,t)})}},__onEditorChange(t,e){let i;const n=t.target.value;if(mi(t),"hex"===this.topView){if(n.length!==(!0===this.hasAlpha?9:7)||!/^#[0-9A-Fa-f]+$/.test(n))return!0;i=Fi(n)}else{let t;if(!n.endsWith(")"))return!0;if(!0!==this.hasAlpha&&n.startsWith("rgb(")){if(t=n.substring(4,n.length-1).split(",").map(t=>parseInt(t,10)),3!==t.length||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(n))return!0}else{if(!0!==this.hasAlpha||!n.startsWith("rgba("))return!0;{if(t=n.substring(5,n.length-1).split(","),4!==t.length||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(n))return!0;for(let i=0;i<3;i++){const e=parseInt(t[i],10);if(e<0||e>255)return!0;t[i]=e}const e=parseFloat(t[3]);if(e<0||e>1)return!0;t[3]=e}}if(t[0]<0||t[0]>255||t[1]<0||t[1]>255||t[2]<0||t[2]>255||!0===this.hasAlpha&&(t[3]<0||t[3]>1))return!0;i={r:t[0],g:t[1],b:t[2],a:!0===this.hasAlpha?100*t[3]:void 0}}const r=Hi(i);if(this.model.h=r.h,this.model.s=r.s,this.model.v=r.v,this.__update(i,e),!0!==e){const e=t.target.selectionEnd;this.$nextTick(()=>{t.target.setSelectionRange(e,e)})}},__onPalettePick(t){const e=this.__parseModel(t),i={r:e.r,g:e.g,b:e.b,a:e.a};void 0===i.a&&(i.a=this.model.a),this.model.h=e.h,this.model.s=e.s,this.model.v=e.v,this.__update(i,!0)},__update(t,e){this.model.hex=ji(t),this.model.rgb=zi(t),this.model.r=t.r,this.model.g=t.g,this.model.b=t.b,this.model.a=t.a;const i=this.model[!0===this.isOutputHex?"hex":"rgb"];this.$emit("input",i),!0===e&&this.$emit("change",i)},__updateErrorIcon(t){void 0!==this.$refs.errorIcon&&(this.$refs.errorIcon.$el.style.opacity=t?1:0)},__parseModel(t){const e=void 0!==this.forceAlpha?this.forceAlpha:"auto"===this.formatModel?null:this.formatModel.indexOf("a")>-1;if("string"!==typeof t||0===t.length||!0!==Qr.anyColor(t.replace(/ /g,"")))return{h:0,s:0,v:0,r:0,g:0,b:0,a:!0===e?100:void 0,hex:void 0,rgb:void 0};const i=Ui(t);return!0===e&&void 0===i.a&&(i.a=100),i.hex=ji(i),i.rgb=zi(i),Object.assign(i,Hi(i))},__spectrumPan(t){t.isFinal?this.__onSpectrumChange(t.position.left,t.position.top,!0):this.__spectrumChange(t)},__spectrumChange(t){this.__onSpectrumChange(t.position.left,t.position.top)},__spectrumClick(t){this.__onSpectrumChange(t.pageX-window.pageXOffset,t.pageY-window.pageYOffset,!0)},__activate(t){this.__onSpectrumChange(t.pageX-window.pageXOffset,t.pageY-window.pageYOffset)}}}),Ld=ce(Ed,kd,Td,!1,null,null,null),Bd=Ld.exports;ta()(Ld,"components",{QDialog:xr,QCard:kr,QToolbar:qr,QToolbarTitle:Er,QBtn:bn,QCardSection:Mr,QList:mo,QItem:rs,QItemSection:ss,QItemLabel:os,QIcon:Je,QPopupProxy:xa,QColor:Od,QSeparator:po}),ta()(Ld,"directives",{ClosePopup:nc});var jd={props:["layoutMenu","leftDrawerOpen","userInfo","drawerWidth","controlHeight","bgImage","logoImage"],components:{defaultMenuItem:Cd,sidebarTreeSetting:Bd},name:"sidebarMenu",data(){return{selectedNode:null,filter:"",expandedNodes:[],treeSetting:!1,colorSettInfo:{},sidebarType:"default"}},watch:{layoutMenu(t){t&&(this.expandedNodes=[],this.$refs.sideTreeMenu&&setTimeout(()=>{this.$refs.sideTreeMenu.expandAll()},50))}},computed:{transformreeMenu(){let t=2;function e(t){return String(t).padStart(3,"0")}function i(n,r,s){return{menuTypeCode:n.menuTypeCode,label:n.title,routerName:n.routerName||"",itemIcon:r||n.itemIcon||"",level:s,menuSn:e(t++),children:n.childrens?n.childrens.map(t=>i(t,n.itemIcon||r,s+1)):[]}}if(!this.layoutMenu)return[];let n=this.layoutMenu.map(t=>i(t,t.itemIcon,2)),r={menuTypeCode:"GROUP",label:"選單列表",routerName:"",itemIcon:"",children:n,level:1,menuSn:"001"};return[r]},isShowTreeMenu(){return this.transformreeMenu.length>0},isShowDefaultMenu(){return!!this.layoutMenu},sideBarStyle(){let t=this.controlHeight||200,e=t+130,i=t+70;return{controlArea:t,scrolltree:e,scrolldefault:i}},sideBarTextLang(){return this.drawerWidth?this.drawerWidth-150:200}},methods:{selectNode(t){this.selectedNode=t,this.$router.push({name:t}).catch(()=>{})},resetFilter(){this.filter="",this.$refs.filter.focus()},openAllTree(){this.$refs.sideTreeMenu.expandAll()},changeUserRole(t){this.$emit("changeUserRole",t)},logout(){this.$emit("logout")},checkTextIsOver(t){const e=this.sideBarTextLang,i=document.createElement("canvas"),n=i.getContext("2d");n.font="16px 微軟正黑體";const r=n.measureText(t).width;return r>e},collapseLevel(t){var e;const i=e=>{e.forEach(e=>{if(e.level===t){const t=this.expandedNodes.indexOf(e.menuSn);-1!==t&&this.expandedNodes.splice(t,1)}e.children&&e.children.length>0&&i(e.children)})};this.transformreeMenu&&0!==this.transformreeMenu.length?i((null===(e=this.transformreeMenu[0])||void 0===e?void 0:e.children)||[]):console.warn("transformreeMenu is empty or not defined")},setModelInit(){let t=this.$q.localStorage.getItem("sidebarSetting");t&&(this.colorSettInfo=t);let e=this.$q.localStorage.getItem("sidebarType");this.sidebarType=e||"default"},uodateColorSettInfo(t){this.$q.localStorage.set("sidebarSetting",t),this.colorSettInfo=t},changeSidebarModel(t){this.sidebarType=t,this.$q.localStorage.set("sidebarType",t)}},mounted(){let t=this.$route;t&&(this.selectedNode=t.name||""),this.setModelInit()}},zd=jd;i("d9ad"),i("e5e6");const Fd=150,Vd=["mouseover","mouseout","mouseenter","mouseleave"];var Hd=he.a.extend({name:"QDrawer",inject:{layout:{default(){console.error("QDrawer needs to be child of QLayout")}}},mixins:[Cr,_n,yn,wn,hr],directives:{TouchPan:Xl},props:{side:{type:String,default:"left",validator:t=>["left","right"].includes(t)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:t=>["default","desktop","mobile"].includes(t),default:"default"},bordered:Boolean,elevated:Boolean,contentStyle:[String,Object,Array],contentClass:[String,Object,Array],overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},data(){const t="mobile"===this.behavior||"desktop"!==this.behavior&&this.layout.totalWidth<=this.breakpoint;return{belowBreakpoint:t,showing:!0===this.showIfAbove&&!1===t||!0===this.value}},watch:{belowBreakpoint(t){!0===t?(this.lastDesktopState=this.showing,!0===this.showing&&this.hide(!1)):!1===this.overlay&&"mobile"!==this.behavior&&!1!==this.lastDesktopState&&(!0===this.showing?(this.__applyPosition(0),this.__applyBackdrop(0),this.__cleanup()):this.show(!1))},"layout.totalWidth"(){!0!==this.layout.container&&!0===document.qScrollPrevented||this.__updateBelowBreakpoint()},side(t,e){this.layout.instances[e]===this&&(this.layout.instances[e]=void 0,this.layout[e].space=!1,this.layout[e].offset=0),this.layout.instances[t]=this,this.layout[t].size=this.size,this.layout[t].space=this.onLayout,this.layout[t].offset=this.offset},behavior(){this.__updateBelowBreakpoint()},breakpoint(){this.__updateBelowBreakpoint()},"layout.container"(t){!0===this.showing&&this.__preventScroll(!0!==t),!0===t&&this.__updateBelowBreakpoint()},"layout.scrollbarWidth"(){this.__applyPosition(!0===this.showing?0:void 0)},offset(t){this.__update("offset",t)},onLayout(t){this.$emit("on-layout",t),this.__update("space",t)},rightSide(){this.__applyPosition()},size(t){this.__applyPosition(),this.__updateSizeOnLayout(this.miniToOverlay,t)},miniToOverlay(t){this.__updateSizeOnLayout(t,this.size)},"$q.lang.rtl"(){this.__applyPosition()},mini(){!0===this.value&&(this.__animateMini(),this.layout.__animate())},isMini(t){this.$emit("mini-state",t)}},computed:{rightSide(){return"right"===this.side},otherSide(){return!0===this.rightSide?"left":"right"},offset(){return!0===this.showing&&!1===this.belowBreakpoint&&!1===this.overlay?!0===this.miniToOverlay?this.miniWidth:this.size:0},size(){return!0===this.isMini?this.miniWidth:this.width},fixed(){return!0===this.overlay||!0===this.miniToOverlay||this.layout.view.indexOf(this.rightSide?"R":"L")>-1||this.$q.platform.is.ios&&!0===this.layout.container},onLayout(){return!0===this.showing&&!1===this.belowBreakpoint&&!1===this.overlay},onScreenOverlay(){return!0===this.showing&&!1===this.belowBreakpoint&&!0===this.overlay},backdropClass(){return!1===this.showing?"hidden":null},headerSlot(){return!0===this.rightSide?"r"===this.layout.rows.top[2]:"l"===this.layout.rows.top[0]},footerSlot(){return!0===this.rightSide?"r"===this.layout.rows.bottom[2]:"l"===this.layout.rows.bottom[0]},aboveStyle(){const t={};return!0===this.layout.header.space&&!1===this.headerSlot&&(!0===this.fixed?t.top=this.layout.header.offset+"px":!0===this.layout.header.space&&(t.top=this.layout.header.size+"px")),!0===this.layout.footer.space&&!1===this.footerSlot&&(!0===this.fixed?t.bottom=this.layout.footer.offset+"px":!0===this.layout.footer.space&&(t.bottom=this.layout.footer.size+"px")),t},style(){const t={width:this.size+"px"};return!0===this.belowBreakpoint?t:Object.assign(t,this.aboveStyle)},classes(){return"q-drawer--"+this.side+(!0===this.bordered?" q-drawer--bordered":"")+(!0===this.isDark?" q-drawer--dark q-dark":"")+(!0!==this.showing?" q-layout--prevent-focus":"")+(!0===this.belowBreakpoint?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":" q-drawer--"+(!0===this.isMini?"mini":"standard")+(!0===this.fixed||!0!==this.onLayout?" fixed":"")+(!0===this.overlay||!0===this.miniToOverlay?" q-drawer--on-top":"")+(!0===this.headerSlot?" q-drawer--top-padding":""))},stateDirection(){return(!0===this.$q.lang.rtl?-1:1)*(!0===this.rightSide?1:-1)},isMini(){return!0===this.mini&&!0!==this.belowBreakpoint},onNativeEvents(){if(!0!==this.belowBreakpoint){const t={"!click":t=>{this.$emit("click",t)}};return Vd.forEach(e=>{t[e]=t=>{void 0!==this.qListeners[e]&&this.$emit(e,t)}}),t}},hideOnRouteChange(){return!0!==this.persistent&&(!0===this.belowBreakpoint||!0===this.onScreenOverlay)},openDirective(){const t=!0===this.$q.lang.rtl?this.side:this.otherSide;return[{name:"touch-pan",value:this.__openByTouch,modifiers:{[t]:!0,mouse:!0}}]},contentCloseDirective(){if(!0!==this.noSwipeClose){const t=!0===this.$q.lang.rtl?this.otherSide:this.side;return[{name:"touch-pan",value:this.__closeByTouch,modifiers:{[t]:!0,mouse:!0}}]}},backdropCloseDirective(){if(!0!==this.noSwipeBackdrop){const t=!0===this.$q.lang.rtl?this.otherSide:this.side;return[{name:"touch-pan",value:this.__closeByTouch,modifiers:{[t]:!0,mouse:!0,mouseAllDir:!0}}]}}},methods:{__applyPosition(t){void 0===t?this.$nextTick(()=>{t=!0===this.showing?0:this.size,this.__applyPosition(this.stateDirection*t)}):void 0!==this.$refs.content&&(!0!==this.layout.container||!0!==this.rightSide||!0!==this.belowBreakpoint&&Math.abs(t)!==this.size||(t+=this.stateDirection*this.layout.scrollbarWidth),this.__lastPosition!==t&&(this.$refs.content.style.transform=`translateX(${t}px)`,this.__lastPosition=t))},__applyBackdrop(t,e){void 0!==this.$refs.backdrop?this.$refs.backdrop.style.backgroundColor=this.lastBackdropBg=`rgba(0,0,0,${.4*t})`:!0!==e&&this.$nextTick(()=>{this.__applyBackdrop(t,!0)})},__setBackdropVisible(t){void 0!==this.$refs.backdrop&&this.$refs.backdrop.classList[!0===t?"remove":"add"]("hidden")},__setScrollable(t){const e=!0===t?"remove":!0!==this.layout.container?"add":"";""!==e&&document.body.classList[e]("q-body--drawer-toggle")},__animateMini(){void 0!==this.timerMini?clearTimeout(this.timerMini):void 0!==this.$el&&this.$el.classList.add("q-drawer--mini-animate"),this.timerMini=setTimeout(()=>{void 0!==this.$el&&this.$el.classList.remove("q-drawer--mini-animate"),this.timerMini=void 0},150)},__openByTouch(t){if(!1!==this.showing)return;const e=this.size,i=js(t.distance.x,0,e);if(!0===t.isFinal){const t=this.$refs.content,n=i>=Math.min(75,e);return t.classList.remove("no-transition"),void(!0===n?this.show():(this.layout.__animate(),this.__applyBackdrop(0),this.__applyPosition(this.stateDirection*e),t.classList.remove("q-drawer--delimiter"),t.classList.add("q-layout--prevent-focus"),this.__setBackdropVisible(!1)))}if(this.__applyPosition((!0===this.$q.lang.rtl?!0!==this.rightSide:this.rightSide)?Math.max(e-i,0):Math.min(0,i-e)),this.__applyBackdrop(js(i/e,0,1)),!0===t.isFirst){const t=this.$refs.content;t.classList.add("no-transition"),t.classList.add("q-drawer--delimiter"),t.classList.remove("q-layout--prevent-focus"),this.__setBackdropVisible(!0)}},__closeByTouch(t){if(!0!==this.showing)return;const e=this.size,i=t.direction===this.side,n=(!0===this.$q.lang.rtl?!0!==i:i)?js(t.distance.x,0,e):0;if(!0===t.isFinal){const t=Math.abs(n)<Math.min(75,e);return this.$refs.content.classList.remove("no-transition"),void(!0===t?(this.layout.__animate(),this.__applyBackdrop(1),this.__applyPosition(0)):this.hide())}this.__applyPosition(this.stateDirection*n),this.__applyBackdrop(js(1-n/e,0,1)),!0===t.isFirst&&this.$refs.content.classList.add("no-transition")},__show(t,e){if(this.__addHistory(),this.__setBackdropVisible(!0),!1!==t&&this.layout.__animate(),this.__applyPosition(0),!0===this.belowBreakpoint){const t=this.layout.instances[this.otherSide];void 0!==t&&!0===t.belowBreakpoint&&t.hide(!1),this.__applyBackdrop(1),!0!==this.layout.container&&this.__preventScroll(!0)}else this.__applyBackdrop(0),!1!==t&&this.__setScrollable(!1);this.__registerTimeout(()=>{!1!==t&&this.__setScrollable(!0),!0!==e&&this.$emit("show",t)},Fd)},__hide(t,e){this.__removeHistory(),!1!==t&&this.layout.__animate(),this.__applyBackdrop(0),this.__applyPosition(this.stateDirection*this.size),this.__setBackdropVisible(!1),this.__cleanup(),!0!==e?this.__registerTimeout(()=>{this.$emit("hide",t)},Fd):this.__removeTimeout()},__cleanup(){this.__preventScroll(!1),this.__setScrollable(!0)},__update(t,e){this.layout[this.side][t]!==e&&(this.layout[this.side][t]=e)},__updateLocal(t,e){this[t]!==e&&(this[t]=e)},__updateSizeOnLayout(t,e){this.__update("size",!0===t?this.miniWidth:e)},__updateBelowBreakpoint(){this.__updateLocal("belowBreakpoint","mobile"===this.behavior||"desktop"!==this.behavior&&this.layout.totalWidth<=this.breakpoint)}},created(){this.__useTimeout("__registerTimeout","__removeTimeout"),this.layout.instances[this.side]=this,this.__updateSizeOnLayout(this.miniToOverlay,this.size),this.__update("space",this.onLayout),this.__update("offset",this.offset),!0===this.showIfAbove&&!0!==this.value&&!0===this.showing&&void 0!==this.qListeners.input&&this.$emit("input",!0)},mounted(){this.$emit("on-layout",this.onLayout),this.$emit("mini-state",this.isMini),this.lastDesktopState=!0===this.showIfAbove;const t=()=>{const t=!0===this.showing?"show":"hide";this["__"+t](!1,!0)};0===this.layout.totalWidth?this.watcher=this.$watch("layout.totalWidth",()=>{this.watcher(),this.watcher=void 0,!1===this.showing&&!0===this.showIfAbove&&!1===this.belowBreakpoint?this.show(!1):t()}):this.$nextTick(t)},beforeDestroy(){void 0!==this.watcher&&this.watcher(),clearTimeout(this.timerMini),!0===this.showing&&this.__cleanup(),this.layout.instances[this.side]===this&&(this.layout.instances[this.side]=void 0,this.__update("size",0),this.__update("offset",0),this.__update("space",!1))},render(t){const e=[];!0===this.belowBreakpoint&&(!0!==this.noSwipeOpen&&e.push(t("div",{staticClass:"q-drawer__opener fixed-"+this.side,attrs:dr,directives:this.openDirective})),e.push(t("div",{ref:"backdrop",staticClass:"fullscreen q-drawer__backdrop",class:this.backdropClass,attrs:dr,style:void 0!==this.lastBackdropBg?{backgroundColor:this.lastBackdropBg}:null,on:Ae(this,"bkdrop",{click:this.hide}),directives:!1===this.showing?void 0:this.backdropCloseDirective})));const i=[t("div",{staticClass:"q-drawer__content fit "+(!0===this.layout.container?"overflow-auto":"scroll"),class:this.contentClass,style:this.contentStyle},!0===this.isMini&&void 0!==this.$scopedSlots.mini?this.$scopedSlots.mini():Re(this,"default"))];return!0===this.elevated&&!0===this.showing&&i.push(t("div",{staticClass:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),e.push(t("aside",{ref:"content",staticClass:"q-drawer",class:this.classes,style:this.style,on:this.onNativeEvents,directives:!0===this.belowBreakpoint?this.contentCloseDirective:void 0},i)),t("div",{staticClass:"q-drawer-container"},e)}}),Ud={props:{ratio:[String,Number]},computed:{ratioStyle(){const t=this.ratio||this.naturalRatio;if(void 0!==t)return{paddingBottom:100/t+"%"}}}},Qd=he.a.extend({name:"QImg",mixins:[De,Ud],props:{src:String,srcset:String,sizes:String,alt:String,width:String,height:String,placeholderSrc:String,basic:Boolean,contain:Boolean,position:{type:String,default:"50% 50%"},transition:{type:String,default:"fade"},imgClass:[Array,String,Object],imgStyle:Object,nativeContextMenu:Boolean,notDraggable:Boolean,noDefaultSpinner:Boolean,spinnerColor:String,spinnerSize:String},data(){return{currentSrc:"",image:null,isLoading:!!this.src,hasError:!1,naturalRatio:void 0}},watch:{src(){this.__load()},srcset(t){this.__updateWatcher(t)}},computed:{url(){return this.currentSrc||this.placeholderSrc||void 0},attrs(){const t={role:"img"};return void 0!==this.alt&&(t["aria-label"]=this.alt),t},imgAttrs(){const t={src:this.url,"aria-hidden":"true"};return!0===this.notDraggable&&(t.draggable=!1),t},imgContainerStyle(){return Object.assign({backgroundSize:!0===this.contain?"contain":"cover",backgroundPosition:this.position},this.imgStyle,{backgroundImage:`url("${this.url}")`})},style(){return{width:this.width,height:this.height}},classes(){return"q-img overflow-hidden"+(!0===this.nativeContextMenu?" q-img--menu":"")}},methods:{__onLoad(t){this.isLoading=!1,this.hasError=!1,this.__computeRatio(t),this.__updateSrc(),this.__updateWatcher(this.srcset),this.$emit("load",this.currentSrc)},__onError(t){clearTimeout(this.ratioTimer),this.isLoading=!1,this.hasError=!0,this.currentSrc="",this.$emit("error",t)},__updateSrc(){if(void 0!==this.image&&!1===this.isLoading){const t=this.image.currentSrc||this.image.src;this.currentSrc!==t&&(this.currentSrc=t)}},__updateWatcher(t){t?void 0===this.unwatch&&(this.unwatch=this.$watch("$q.screen.width",this.__updateSrc)):void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0)},__load(){if(clearTimeout(this.ratioTimer),this.hasError=!1,!this.src)return this.isLoading=!1,this.image=void 0,void(this.currentSrc="");this.isLoading=!0;const t=new Image;this.image=t,t.onerror=e=>{this.image===t&&!0!==this.destroyed&&this.__onError(e)},t.onload=()=>{!0!==this.destroyed&&this.image===t&&(void 0!==t.decode?t.decode().catch(e=>{this.image===t&&!0!==this.destroyed&&this.__onError(e)}).then(()=>{this.image===t&&!0!==this.destroyed&&this.__onLoad(t)}):this.__onLoad(t))},t.src=this.src,this.srcset&&(t.srcset=this.srcset),void 0!==this.sizes?t.sizes=this.sizes:Object.assign(t,{height:this.height,width:this.width})},__computeRatio(t){const{naturalHeight:e,naturalWidth:i}=t;e||i?this.naturalRatio=0===e?1:i/e:this.ratioTimer=setTimeout(()=>{this.image===t&&!0!==this.destroyed&&this.__computeRatio(t)},100)},__getImage(t){const e=!0===this.nativeContextMenu?[t("img",{staticClass:"absolute-full fit",attrs:this.imgAttrs})]:void 0,i=void 0!==this.url?t("div",{key:this.url,staticClass:"q-img__image absolute-full",class:this.imgClass,style:this.imgContainerStyle},e):null;return!0===this.basic?i:t("transition",{props:{name:"q-transition--"+this.transition}},[i])},__getContent(t){const e=Re(this,!0===this.hasError?"error":"default");if(!0===this.basic)return t("div",{key:"content",staticClass:"q-img__content absolute-full"},e);const i=!0===this.isLoading?t("div",{key:"placeholder",staticClass:"q-img__loading absolute-full flex flex-center"},void 0!==this.$scopedSlots.loading?this.$scopedSlots.loading():!1===this.noDefaultSpinner?[t(ei,{props:{color:this.spinnerColor,size:this.spinnerSize}})]:void 0):t("div",{key:"content",staticClass:"q-img__content absolute-full"},e);return t("transition",{props:{name:"q-transition--fade"}},[i])}},render(t){return t("div",{class:this.classes,style:this.style,attrs:this.attrs,on:{...this.qListeners}},[t("div",{style:this.ratioStyle}),this.__getImage(t),this.__getContent(t)])},beforeMount(){if(void 0!==this.placeholderSrc&&void 0===this.ratio){const t=new Image;t.src=this.placeholderSrc,this.__computeRatio(t)}!0===this.isLoading&&this.__load()},beforeDestroy(){this.destroyed=!0,clearTimeout(this.ratioTimer),void 0!==this.unwatch&&this.unwatch()}}),Wd=ce(zd,fd,md,!1,null,"082ea096",null),Yd=Wd.exports;ta()(Wd,"components",{QDrawer:Hd,QImg:Qd,QAvatar:Po,QBtn:bn,QCardSection:Mr,QSelect:ao,QSeparator:po,QInput:Wo,QIcon:Je,QScrollArea:tc,QSpinnerHourglass:Zo,QTree:au,QTooltip:Ol,QList:mo,QExpansionItem:Sd,QItem:rs});var Kd=function(){var t=this,e=t._self._c;return e("div",{ref:"gameWrapper",staticClass:"gameBody"},[e("canvas",{ref:"canvas",attrs:{id:"snake",tabindex:"1"}})])},Xd=[],Gd={name:"snakeGame",props:["title","describe","initBgColor","initFontColor"],data(){return{canvas:null,ctx:null,snake:[],snake_dir:1,snake_next_dir:1,snake_speed:150,food:{x:0,y:0},score:0,wall:2,gridX:32,gridY:32}},mounted(){this.canvas=this.$refs.canvas,this.ctx=this.canvas.getContext("2d"),this.resizeCanvas(),window.addEventListener("resize",()=>{this.resizeCanvas(),this.gameStarted||this.drawSplash()}),document.onkeydown=t=>{this.changeDir(t.keyCode)},this.setSnakeSpeed(150),this.setWall(2),this.drawSplash()},methods:{drawSplash(){if(!this.ctx)return;this.ctx.fillStyle=this.initBgColor||"#FFFFFF",this.ctx.fillRect(0,0,this.canvas.width,this.canvas.height);const t=Math.floor(this.canvas.width/6),e=Math.floor(this.canvas.width/11),i=Math.floor(.43*t),n=this.canvas.width/2,r=this.canvas.height/2;this.ctx.save(),this.ctx.globalAlpha=1,this.ctx.fillStyle=this.initFontColor||"#000000",this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.font=`bold ${t}px 'Noto Sans TC'`,this.ctx.fillText(this.title||"輔仁大學",n,r-i),this.ctx.font=e+"px 'Noto Sans TC'",this.ctx.fillText(this.describe||"系統管理平台",n,r+i),this.ctx.restore()},resizeCanvas(){const t=this.$refs.gameWrapper;this.canvas.width=t.clientWidth,this.canvas.height=t.clientHeight,this.gridX=Math.floor(this.canvas.width/10),this.gridY=Math.floor(this.canvas.height/10)},activeDot(t,e){this.ctx.fillStyle="#FFFFFF",this.ctx.fillRect(10*t,10*e,10,10)},changeDir(t){38===t&&2!==this.snake_dir?this.snake_next_dir=0:39===t&&3!==this.snake_dir?this.snake_next_dir=1:40===t&&0!==this.snake_dir?this.snake_next_dir=2:37===t&&1!==this.snake_dir&&(this.snake_next_dir=3)},addFood(){this.food.x=Math.floor(Math.random()*this.gridX),this.food.y=Math.floor(Math.random()*this.gridY);for(let t=0;t<this.snake.length;t++)if(this.checkBlock(this.food.x,this.food.y,this.snake[t].x,this.snake[t].y)){this.addFood();break}},checkBlock(t,e,i,n){return t===i&&e===n},mainLoop(){let t=this.snake[0].x,e=this.snake[0].y;switch(this.snake_dir=this.snake_next_dir,this.snake_dir){case 0:e--;break;case 1:t++;break;case 2:e++;break;case 3:t--;break}if(this.snake.pop(),this.snake.unshift({x:t,y:e}),1==this.wall){if(t<0||t>=this.gridX||e<0||e>=this.gridY)return void this.newGame()}else for(let a=0;a<this.snake.length;a++)this.snake[a].x<0&&(this.snake[a].x+=this.gridX),this.snake[a].x>=this.gridX&&(this.snake[a].x-=this.gridX),this.snake[a].y<0&&(this.snake[a].y+=this.gridY),this.snake[a].y>=this.gridY&&(this.snake[a].y-=this.gridY);for(let a=1;a<this.snake.length;a++)if(this.snake[0].x===this.snake[a].x&&this.snake[0].y===this.snake[a].y)return void this.newGame();this.checkBlock(this.snake[0].x,this.snake[0].y,this.food.x,this.food.y)&&(this.snake.push({x:this.snake[0].x,y:this.snake[0].y}),this.score++,this.addFood()),this.ctx.beginPath(),this.ctx.fillStyle="#000000",this.ctx.fillRect(0,0,this.canvas.width,this.canvas.height),this.ctx.save(),this.ctx.globalAlpha=.6,this.ctx.fillStyle="#FFFFFF",this.ctx.font="20px 'VT323'",this.ctx.textAlign="left",this.ctx.textBaseline="top",this.ctx.fillText("Score: "+this.score,10,10),this.ctx.restore();for(let a=0;a<this.snake.length;a++)this.activeDot(this.snake[a].x,this.snake[a].y);this.activeDot(this.food.x,this.food.y);const i=Math.floor(this.canvas.width/6),n=Math.floor(this.canvas.width/11),r=Math.floor(.43*i);this.ctx.save(),this.ctx.globalAlpha=.45,this.ctx.fillStyle="#FFFFFF",this.ctx.font="40px 'Noto Sans TC'",this.ctx.textAlign="center",this.ctx.textBaseline="middle";const s=this.canvas.width/2,o=this.canvas.height/2;this.ctx.font=`bold ${i}px 'Noto Sans TC'`,this.ctx.fillText(this.title||"輔仁大學",s,o-r),this.ctx.font=n+"px 'Noto Sans TC'",this.ctx.fillText(this.describe||"系統管理平台",s,o+r),this.ctx.restore(),setTimeout(this.mainLoop,this.snake_speed)},newGame(){this.snake=[];for(let t=4;t>=0;t--)this.snake.push({x:t,y:15});this.snake_next_dir=1,this.score=0,this.addFood(),this.mainLoop()},setSnakeSpeed(t){this.snake_speed=parseInt(t)},setWall(t){this.wall=parseInt(t)}}},Zd=Gd,Jd=(i("510c"),ce(Zd,Kd,Xd,!1,null,"53d1d267",null)),tp=Jd.exports;const ep=()=>{console.log("喵")},ip=()=>{console.log("汪")};var np={cat:ep,dog:ip};const rp=[ia,sc,hc,Pc,Fc,yu,Lu,ad,pd,Yd,tp],sp=function(t){rp.forEach(e=>{t.component(e.name,e)})};var op={install:sp,moneyflow:np};e["default"]=op},fc6a:function(t,e,i){"use strict";var n=i("44ad"),r=i("1d80");t.exports=function(t){return n(r(t))}},fdbf:function(t,e,i){"use strict";var n=i("04f8");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},ffc8:function(t,e,i){"use strict";i("ecdd")},fffc:function(t,e,i){"use strict";i("f665")}})}));
26
+ //# sourceMappingURL=fjuwebtoolv2.umd.min.js.map