@questwork/vue-q-widget-vue3 3.1.13 → 3.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/q-widget.min.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
ht = (typeof globalThis < "u") ? globalThis : ht || self;
|
|
14
14
|
g(ht.QWidget={},ht.Vue);
|
|
15
15
|
}
|
|
16
|
-
})(this,function(ht,g){"use strict";const ee=(o,s)=>{const r=o.__vccOpts||o;for(const[d,f]of s)r[d]=f;return r},Pl={name:"q-widget-q-modal",props:{modal:{type:Object,default:()=>({})}},data(){return{}},computed:{body(){return this.modal.body},css(){return this.modal.css},countdown(){return this.modal.countdown},label(){return this.modal.label},model(){return this.modal.model},onCancel(){return this.modal.onCancel},onClose(){return this.modal.onClose},onConfirm(){return this.modal.onConfirm},title(){return this.modal.title}},methods:{onFinish(){this.modal.onFinish()},qForm(o){this.modal.qForm(o)},qList(o){this.modal.qList(o)}}},Fl={class:"q-widget-q-modal __modal"};function Ul(o,s,r,d,f,u){const v=g.resolveComponent("q-modal",!0);return g.openBlock(),g.createElementBlock("div",Fl,[g.createVNode(v,{body:u.body,countdown:u.countdown,css:u.css,label:u.label,model:u.model,onCancel:u.onCancel,onClose:u.onClose,onConfirm:u.onConfirm,title:u.title,onOnFinish:u.onFinish,onQForm:u.qForm,onQList:u.qList},null,8,["body","countdown","css","label","model","onCancel","onClose","onConfirm","title","onOnFinish","onQForm","onQList"])])}const Wl=ee(Pl,[["render",Ul],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/QModal.vue"]]);function Ml({controller:o,state:s,saveControllerState:r}){const{saveStateKeys:d=[]}=o,f=d.reduce((u,v)=>({...u,...Ki({keys:v.split("."),obj:s})}),{});return r({data:f})}function Ki({keys:o,obj:s}){const r=o.shift();return{[r]:o.length===0?s[r]:Ki({keys:o,obj:s[r]})}}function Ut({component:o,message:s,modalConfig:r={}}){const{countdown:d,label:f,title:u,canClose:v=!0}=r,R={body:[{customComponentName:"q-modal-region-tool-html",html:s}],countdown:d,label:f,onClose:v?()=>{o.modal=null}:null,title:u||"Error"};o.modal=R}class Ql{static exec({config:s,keys:r,permissions:d}){Array.isArray(s)||console.log("can not handle these buttons");const f=r.shift();return r.length!==0&&console.log(`can not handle ${r.join(".")}`),Vl({buttons:s,key:f,permissions:d})}}function Vl({buttons:o,key:s,permissions:r}){return o.map(d=>{if(Kl(s,d)){const f=d.permissions||[];return{...d,permissions:[...f,...r]}}return d})}function Kl(o,s){const{buttonType:r,id:d,label:f}=s;return o===d||o===f||o===r}class zl{static exec({config:s,keys:r,permissions:d}){return pr({layout:s,keys:r,permissions:d})}}function pr({layout:o,keys:s,permissions:r}){const d=s[0],{children:f,permissions:u}=o;if(Gl(d,o)){if(s.shift(),s.length===0)return{...o,permissions:[...u||[],...r]};if(Array.isArray(f))return{...o,children:f.map(v=>pr({layout:v,keys:[...s],permissions:r}))};console.log(`can not handle ${s.join(".")}`)}return Array.isArray(f)?{...o,children:f.map(v=>pr({layout:v,keys:[...s],permissions:r}))}:o}function Gl(o,s){const{id:r,name:d}=s;return o===r||o===d}class Yl{static exec({config:s,keys:r,permissions:d}){const f=r.shift();let u=null;switch(f){case"buttons":{u=Ql;break}case"layout":{u=zl;break}default:{u=null;break}}return!u||typeof u.exec!="function"?s:{...s,[f]:u.exec({config:s[f],keys:[...r],permissions:d})}}}class Zl{static exec({config:s,keys:r,permissions:d}){Array.isArray(s)||console.log("can not handle these actions");const f=r.shift();return r.length!==0&&console.log(`can not handle ${r.join(".")}`),Jl({actions:s,key:f,permissions:d})}}function Jl({actions:o,key:s,permissions:r}){return o.map(d=>{if(Xl(s,d)){const f=d.permissions||[];return{...d,permissions:[...f,...r]}}return d})}function Xl(o,s){const{id:r,label:d}=s;return o===r||o===d}class jl{static exec({config:s,keys:r,permissions:d}){const f=r.shift();switch(f){case"actions":return{...s,actions:ea({actions:s[f],keys:r,permissions:d})};default:return s}}}function ea({actions:o,keys:s,permissions:r}){Array.isArray(o)||console.log("can not handle these actions");const d=s.shift();return s.length!==0?(console.log(`can not handle ${s.join(".")}`),o):o.map(f=>{if(ta(d,f)){const u=f.permissions||[];return{...f,permissions:[...u,...r]}}return f})}function ta(o,s){const{id:r,label:d}=s;return o===r||o===d}class na{static exec({config:s,keys:r,permissions:d}){return Array.isArray(s)||console.log("can not handle these actions"),zi({headers:s,keys:r,permissions:d})}}function zi({headers:o,keys:s,permissions:r}){const d=s.shift();return o.map(f=>{if(ra(d,f)){const{permissions:u,children:v}=f;return s.length!==0?Array.isArray(v)&&v.length>0?{...f,children:zi({headers:v,keys:s,permissions:r})}:(console.log(`can not handle ${s.join(".")}`),f):{...f,permissions:[...u||[],...r]}}return f})}function ra(o,s){const{id:r,label:d,key:f}=s;return o===r||o===d||o===f}class ia{static exec({config:s,keys:r,permissions:d}){const f=r.shift();let u=null;switch(f){case"actions":{u=Zl;break}case"bulkAction":{u=jl;break}case"headers":{u=na;break}default:{u=null;break}}return!u||typeof u.exec!="function"?s:{...s,[f]:u.exec({config:s[f],keys:[...r],permissions:d})}}}const sa={ElementQForm:Yl,ElementQList:ia};function oa({config:o,configPermissions:s=[],type:r}){return s.reduce((f,u)=>{const v=la(r);if(!v||typeof v.exec!="function")return console.log("no config handler"),f;const{key:R,value:T}=u;return v.exec({config:f,keys:R.split("."),permissions:T})},o)}function la(o){return sa[o]||null}function Gi(o){return o!=null&&typeof o!="boolean"&&String(o).trim()!==""&&!isNaN(Number(o))}function _r(o,s,r,d){if(!o)return!0;if(typeof r!="function"||d&&typeof d!="function")return!1;const{key:f="",value:u,placeholder:v,keyValuePath:R=""}=o,[T]=Object.keys(u);if(!f&&typeof v>"u")switch(T){case"$and":return u.$and.reduce((A,O)=>A&&_r(O,s,r,d),!0);case"$or":return u.$or.reduce((A,O)=>A||_r(O,s,r,d),!1);default:return!1}let x=typeof v>"u"?r(f,s):v;if(R){const A=d.toObject(x);x=r(R,A)}switch(T){case"$after":{if(Gi(u?.$after)){const A=Number(String(u?.$after));return Date.now()>A}return!1}case"$before":{if(Gi(u?.$before)){const A=Number(String(u?.$before));return Date.now()<A}return!1}case"$empty":return x==null===u.$empty;case"$eq":return x===u.$eq;case"$gt":return x>u.$gt;case"$gte":return x>=u.$gte;case"$hasOverlap":return aa(x,u.$hasOverlap);case"$lt":return x<u.$lt;case"$lte":return x<=u.$lte;case"$in":return Array.isArray(x)?!!x.find(A=>u.$in.includes(A)):typeof x!="object"?!!u.$in.includes(x):!1;case"$inValue":{const A=r(u.$inValue,s),O=Array.isArray(A)?A:[];return Array.isArray(x)?!!x.find(ie=>O.includes(ie)):typeof x=="string"?!!O.includes(x):!1}case"$ne":return x!==u.$ne;case"$notIn":return Array.isArray(x)?!x.find(A=>u.$notIn.includes(A)):typeof x!="object"?!u.$notIn.includes(x):!1;case"$intervalTimeGt":{const A=new Date().getTime(),O=new Date(x).getTime();return A-O>u.$intervalTimeGt}case"$intervalTimeLt":{const A=new Date().getTime(),O=new Date(x).getTime();return A-O<u.$intervalTimeLt}case"$isToday":{const A=new Date,O=A.setHours(0,0,0,0),ie=A.setHours(23,59,59,59),he=new Date(x).getTime();return(O<=he&&ie>=he)===u.$isToday}case"$notInValue":{const A=r(u.$notInValue,s),O=Array.isArray(A)?A:[];return Array.isArray(x)?!x.find(ie=>O.includes(ie)):typeof x!="object"?!O.includes(x):!1}case"$range":{const[A,O]=u.$range;return typeof A=="number"&&typeof O=="number"&&x>=A&&x<=O}default:return!1}}function aa(o,s){let r=o,d=s;typeof r=="string"&&(r=r.split(",")),typeof d=="string"&&(d=d.split(","));const f=new Set(r);return d.find(u=>f.has(u))}function vn(o,s){let r=o,d=s;if(typeof o=="string"&&(r=r.split(".")),!Array.isArray(o)&&typeof o=="object"){const{keys:u,obj:v}=o;r=u,d=v}if(r.length===0)return d;const f=r.shift();return d&&Object.prototype.hasOwnProperty.call(d,f)?vn(r,d[f]):d&&f?r.length>0?vn(r,d[f]):d[f]:d}function ua(o,s=/\$\{(.+?)\}/g,r,d){if(!o)return"";const f=typeof d=="function"?d:vn,u=new RegExp(s,"g");return o.replace(u,(v,R)=>{const T=f({keys:R.split("."),obj:r});return T==null?"":typeof T=="object"?JSON.stringify(T):T})}class Yi{constructor(s={}){s=s||{},this.key=s.key||null,this.value=typeof s.value<"u"?s.value:""}static init(s={}){if(s instanceof this)return s;const r=new this(s);return r.isValid?r:null}static initFromArray(s=[]){return Array.isArray(s)?s.map(r=>this.init(r)):[]}static initOnlyValidFromArray(s=[]){return this.initFromArray(s).filter(r=>r)}static get _classname(){return"KeyValueObject"}static get _superclass(){return"KeyValueObject"}static addItem(s,r,d){s.push(this.init({key:r,value:d}))}static addRecord(s=[],r,d){return this.hasKeyValue(s,r,d)||s.push(this.init({key:r,value:d})),s}static appendRecord(s=[],r,d){return s.map(f=>(this.sameKey(f,r)&&(f.value=[...f.value,...d]),f))}static appendValueArray(s=[],r,d){return s.map(f=>(this.sameKey(f,r)&&(f.value=[...f.value,...d]),f))}static foundByKey(s=[],r){return s.find(f=>this.sameKey(f,r))||null}static foundValueByKey(s=[],r){const d=this.foundByKey(s,r);return d?d.value:null}static fromObject(s={}){return Object.keys(s).reduce((r,d)=>(r.push(this.init({key:d,value:s[d]})),r),[])}static getValueByKey(s=[],r){return this.foundValueByKey(s,r)}static getValueByKeyFromArray(s=[],r){if(s.length===0)return null;const f=s.shift().find(u=>this.sameKey(u,r));return f&&f.value?f.value:this.getValueByKeyFromArray(s,r)}static getValuesByKey(s=[],r){return s.reduce((d,f)=>(this.sameKey(f,r)&&d.push(f.value),d),[])}static hasKeyValue(s=[],r,d){return typeof d>"u"?s.filter(f=>this.sameKey(f,r)).length>0:s.filter(f=>this.sameKey(f,r)&&Zi(f.value,d)).length>0}static insertOrUpdateRecord(s=[],r,d){let f=[...s];return this.hasKeyValue(s,r)?f=this.updateRecord(s,r,d):f.push(this.init({key:r,value:d})),f}static keys(s=[]){return Array.isArray(s)?s.reduce((r,d)=>(r.push(d.key),r),[]):[]}static merge(s,r){return(r||[]).map(d=>{const f=s.find(u=>u.key===d.key);f?f.value=ca(d.value,f.value):s.push(d)}),s}static removeByKey(s,r){return s.reduce((d,f)=>(this.sameKey(f,r)||d.push(f),d),[])}static sameKey(s,r){return s?Zi(s.key,r):!1}static toObject(s=[]){return Array.isArray(s)?s.reduce((r,d)=>(r[d.key]=d.value,r),{}):{}}static toString(s=[],r="; "){return Array.isArray(s)?s.reduce((d,f)=>(d.push(`${f.key}: ${f.value}`),d),[]).join(r):""}static updateRecord(s=[],r,d){return s.map(f=>this.sameKey(f,r)?{...f,value:d}:f)}static updateOrInsertRecord(s=[],r,d){return this.insertOrUpdateRecord(s,r,d)}static updateRecordsFromArray(s=[],r=[]){if(Array.isArray(s)&&Array.isArray(r)){const d=this.toObject(s),f=this.toObject(r);return this.fromObject({...d,...f})}return[]}static values(s=[]){return Array.isArray(s)?s.reduce((r,d)=>(r.push(d.value),r),[]):[]}get isValid(){return!!this.key}get toObject(){const s={};return this.isValid&&(s[this.key]=this.value),s}}function ca(o,s){return o===void 0?s:Array.isArray(o)&&Array.isArray(s)?[...new Set([...o,...s])]:typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)?{...o,...s}:s}function Zi(o,s){return o===s}function yn({keys:o,obj:s}){return vn(o,s)}function fa(o,s,r){return ua(o,s,r,yn)}function vr({rule:o,data:s}){return _r(o,s,da,Yi)}function da(o,s){const r=o.split(".");return yn({keys:r,obj:s})}function yr(o,s){return ha(o,s,yn,vr)}function ha(o,s,r,d){return!Array.isArray(o)||o.length===0?"":o.reduce((f,u)=>{const{type:v,value:R="",restriction:T,template:x}=u;if(d({rule:T,data:s}))switch(v){case"label":{f+=R.toString();break}case"value":{const A=r({keys:R.split("."),obj:s})||"";f+=A.toString();break}case"array":{const A=r({keys:R.split("."),obj:s})||[];f+=A.reduce((O,ie)=>O+=yr(x,ie),"");break}case"group":{f+=yr(x,s);break}case"ellipsis":{const{maxLength:A}=u,O=r({keys:R.split("."),obj:s})||"";O.length<=A?f+=O.toString():f+=`${O.substr(0,A)}...`;break}default:{f+=R.toString();break}}return f},"")}function Cr(o){return`${o}-${Math.floor(Math.random()*1e9)}`}const ga=Object.freeze(Object.defineProperty({__proto__:null,KeyValueObject:Yi,convertString:fa,getStringByArr:yr,getValidation:vr,getValueByKeys:yn,setId:Cr},Symbol.toStringTag,{value:"Module"}));class wr{constructor(s={}){this.css=s.css,this.configType="Config"}get isValid(){return!!this}static init(s){const r=new this(s);return r.isValid?r:null}}function ma(o,s){const{button:r,klass:d}=o,{element:f}=s,u=f.getState()||{},{formData:v={}}=u;class R extends d{constructor(x){super(x),this.hidden=x.hidden||!1,this.permissionResult=x.permissionResult,this.permissionResultHandler(this.permissionResult)}get isValid(){return!this.hidden&&super.isValid}static init(x,A){if(x instanceof R)return x;const O=x.permissions?A.permissionHandler(x.permissions,v):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},ie=new R({...x,permissionResult:O});return ie.isValid?ie:null}permissionResultHandler(x){const{event:A,isAllowCreate:O,isAllowRead:ie,isAllowUpdate:he,isAllowDelete:Fe}=x;A?typeof this[A]=="function"?this[A]({val:!0}):console.log(`do not have the event ${A}`):O&&ie&&he&&Fe||this.setHidden({val:!0})}setDisabled({val:x}){this.disabled=x}setHidden({val:x}){this.hidden=x}}return R.init(r,s)}function pa(o,s){const{layout:r,klass:d}=o,{element:f}=s,u=f.getState()||{},{formData:v={}}=u;class R extends d{constructor(A){super(A),this.permissionResult=A.permissions?s.permissionHandler(A.permissions,v):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},this.permissionResultHandler(this.permissionResult)}permissionResultHandler(A){const{event:O,isAllowCreate:ie,isAllowRead:he,isAllowUpdate:Fe,isAllowDelete:Vt}=A;O?typeof this[O]=="function"?this[O]({val:!0}):console.log(`do not have the event ${O}`):he?Fe||this.setPreview({val:!0}):this.setHidden({val:!0}),Array.isArray(this.children)&&this.children.forEach(ve=>{ve.permissionResultHandler(A)})}update(A){super.update(A),this.permissionResultHandler(this.permissionResult)}setDecoratorDisabled({val:A}){this.setDisabled({val:A})}setDecoratorHidden({val:A}){this.setHidden({val:A})}setDecoratorPreview({val:A}){this.setPreview({val:A})}}return R.init(r)}function _a(o){return s=>{const{type:r}=s;switch(r){case"button":return ma(s,o);case"node":return pa(s,o);default:return null}}}class Ji extends wr{constructor(s={}){super(s),this.configType="ElementQFormConfig",this.buttons=s.buttons,this.css=s.css||{},this.disabledForm=s.disabledForm||!1,this.eventName=s.eventName||{},this.formHandler=_a(s.helpers),this.layout=s.layout,this.previewForm=s.previewForm||!1,this.updateLayoutConfigs=s.updateLayoutConfigs||[]}get isValid(){return!!this}static init(s){const r=new this(s);return r.isValid?r:null}}function va({helpers:o}){const{element:s}=o,{getClasses:r}=s.getHandlers(),{Cell:d}=o.qGrid;class f extends d{constructor(v){super(v),typeof v.hidden=="function"?this.permissionHidden=v.hidden(this.item.item,this):this.permissionHidden=v.hidden||!1,this.permissionResult=v.permissionResult,this.permissionResultHandler(this.permissionResult,v.customComponentName)}get isValid(){return this.permissionHidden===!1}static init(v){const{permissions:R}=v,T=R?o.permissionHandler(R):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},x=new this({...v,permissionResult:T});return x.isValid?x:null}permissionResultHandler(v,R){const{event:T,isAllowCreate:x,isAllowRead:A,isAllowUpdate:O,isAllowDelete:ie}=v;if(T){typeof this[T]=="function"?this[T]({val:!0}):console.log(`do not have the event ${T}`);return}(!(R==="q-grid-body-row-cell-button")&&!A||!(x&&A&&O&&ie))&&this.setPermissionHidden({val:!0})}setPermissionHidden({val:v}){this.permissionHidden=v}}return typeof r!="function"?{Cell:f}:r({helpers:{Cell:f,...o}})}class Xi extends wr{constructor(s={}){super(s),this.configType="ElementQGridConfig",this.classes=va({helpers:s.helpers}),this.converter=ya({helpers:s.helpers}),this.eventName=s.eventName,this.layout=s.layout,this.fillLastRow=s.fillLastRow,this.placeholder=s.placeholder,this.urlDelegate=s.urlDelegate}get isValid(){return!!this}static init(s){const r=new this(s);return r.isValid?r:null}}function ya({helpers:o}){const{element:s}=o,{converter:r}=s.getHandlers();if(typeof r!="function")return f=>f;const{QItem:d}=o.qGrid;return r({helpers:{QItem:d,...o}})}function Ca({helpers:o}){const{QListBulkButton:s}=o.qList,{getValidation:r}=o.qUtilities;class d extends s{constructor(u){super(u),this.hidden=u.hidden||!1,this.permissionResult=u.permissionResult,this.permissionResultHandler(this.permissionResult)}get isValid(){return!this.hidden}static init(u,v){if(u instanceof d)return u;const{restriction:R,permissions:T}=u,x=v.controller.getState();if(!r({rule:R,data:x}))return null;const A=T?v.permissionHandler(T):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},O=new d({...u,permissionResult:A});return O.isValid?O:null}static initFromArray(u,v){return Array.isArray(u)?u.map(R=>this.init(R,v)):[]}static initOnlyValidFromArray(u,v){return this.initFromArray(u,v).filter(R=>R)}permissionResultHandler(u){const{event:v,isAllowCreate:R,isAllowRead:T,isAllowUpdate:x,isAllowDelete:A}=u;v?typeof this[v]=="function"?this[v]({val:!0}):console.log(`do not have the event ${v}`):R&&T&&x&&A||this.setHidden({val:!0})}setHidden({val:u}){this.hidden=u}}return d}function wa({helpers:o}){const{QListButton:s}=o.qList;class r extends s{constructor(f){super(f),this.endpoint=ji(f.endpoint,f.qRow),this.httpMethod=f.httpMethod,this.hidden=f.hidden||!1,this.permissionResult=f.permissionResult,this.permissionResultHandler(this.permissionResult),this.url=ji(f.url,f.qRow)}get isValid(){return!this.hidden&&super.isValid}static init(f,u){if(f instanceof r)return f;const v=f.permissions?u.permissionHandler(f.permissions,f.qRow.get()):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},R=new r({...f,permissionResult:v});return R.isValid?R:null}static initFromArray(f,u){return Array.isArray(f)?f.map(v=>this.init(v,u)):[]}static initOnlyValidFromArray(f,u){return this.initFromArray(f,u).filter(v=>v)}permissionResultHandler(f){const{event:u,isAllowCreate:v,isAllowRead:R,isAllowUpdate:T,isAllowDelete:x}=f;u?typeof this[u]=="function"?this[u]({val:!0}):console.log(`do not have the event ${u}`):v&&R&&T&&x||this.setHidden({val:!0})}setHidden({val:f}){this.hidden=f}}return r}function ji(o,s){if(!o)return"";const r=/\$\{(.+?)\}/g;return o.replace(r,(d,f)=>s.get(f.trim()))}function Ea(){class o{constructor(r){Object.keys(r).forEach(d=>{this[d]=r[d]}),this.hidden=r.hidden||!1,this.permissionResult=r.permissionResult,this.permissionResultHandler(this.permissionResult)}get isValid(){return!this.hidden}static init(r,d){if(r instanceof o)return r;const{children:f,permissions:u}=r,v=u?d.permissionHandler(u):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},R=new o({...r,children:Array.isArray(f)?this.initOnlyValidFromArray(f,d):null,permissionResult:v});return R.isValid?R:null}static initFromArray(r,d){return Array.isArray(r)?r.map(f=>this.init(f,d)):[]}static initOnlyValidFromArray(r,d){return this.initFromArray(r,d).filter(f=>f)}permissionResultHandler(r){const{event:d,isAllowCreate:f,isAllowRead:u,isAllowUpdate:v,isAllowDelete:R}=r;d?typeof this[d]=="function"?this[d]({val:!0}):console.log(`do not have the event ${d}`):u||this.setHidden({val:!0})}setHidden({val:r}){this.hidden=r}}return o}class es extends wr{constructor(s={}){super(s),this.configType="ElementQListConfig",this.bulkAction=ba({bulkAction:s.bulkAction,helpers:s.helpers}),this.converter=Sa({actions:s.actions,helpers:s.helpers}),this.css=s.css,this.eventName=s.eventName,this.expansion=s.expansion,this.headers=Aa({headers:s.headers,helpers:s.helpers}),this.listStyle=s.listStyle||"q-list-table",this.listShowFooter=s.showFooter||!1,this.listSortBys=s.sortBys,this.noDataMessage=s.noDataMessage}get isValid(){return!!this}static init(s){const r=new this(s);return r.isValid?r:null}}function ba({bulkAction:o={},helpers:s}){const r=Ca({helpers:s});return{...o,actions:r.initOnlyValidFromArray(o.actions,s)}}function Aa({headers:o,helpers:s}){return Ea().initOnlyValidFromArray(o,s)}function Sa({actions:o,helpers:s}){const{QRow:r}=s.qList,d=wa({helpers:s}),f={QListButton:d,QRow:r,...s},{element:u}=f,{converter:v}=u.getHandlers();return typeof v!="function"?R=>r.init({row:R,getActions:(T,x)=>{const{actions:A=[]}=x||{};return A.map(O=>d.init({...O,qRow:T},s)).filter(O=>O)}}):v({actions:o,helpers:f})}const Ra=["setHidden","setVisible"];class Er{constructor(s={}){this.id=s.id||Cr("node"),this.css=s.css||"",this.hidden=s.hidden||!1,this.nodeType="Node",this.observers=s.observers||[],this.permissionResult=s.permissionResult,this.permissionResultHandler(this.permissionResult)}get isValid(){return!!this.id}get isVisible(){return!this.hidden}get isCreated(){return!!this}static init(s){const r=new this(s);return r.isValid?r:null}getElementState(){return this}getType(){return this.type}isExist(s){const{name:r}=this;return!!s.find(d=>r&&d.name===r)}handleObservers(s){this.observers.forEach(r=>{const{key:d,value:f,condition:u}=r,v=vr({rule:u,data:s});v&&xa(d)&&typeof this[d]=="function"&&this[d]({value:f,val:v})})}permissionResultHandler(s){const{event:r,isAllowCreate:d,isAllowRead:f,isAllowUpdate:u,isAllowDelete:v}=s;r?typeof this[r]=="function"?this[r]({val:!0}):console.log(`do not have the event ${r}`):d&&f&&u&&v||this.setHidden({val:!0})}resetNode(){this.component=null}setHidden({val:s}){this.hidden=s,s&&this.resetNode()}setVisible(s){this.setHidden({...s,val:!s.val})}updateElementState(s){return this.handleObservers(s),this}}function xa(o){return Ra.includes(o)}let Wt=class extends Er{constructor(s={}){super(s),this.children=s.children||[],this.nodeType="Container"}get isCreated(){return super.isCreated&&!!this.isVisibleChildrenCreated}get isVisibleChildrenCreated(){return this.getVisibleChildren().reduce((s,r)=>s&&r.isCreated,!0)}get validChildren(){return this.children.filter(s=>s)}getElements(){return this.validChildren.reduce((s,r)=>[...s,...r.getElements()],[])}getElementState(){return this.validChildren.reduce((s,r)=>({...s,...r.getElementState()}),{})}getVisibleChildren(){return this.validChildren.filter(s=>s.isVisible)}updateElementState(s){return super.updateElementState(s),this.validChildren.forEach(r=>r.updateElementState(s)),this}};class ka extends Wt{constructor(s={}){super(s),this.nodeType="ContainerBox"}}class $a extends Wt{constructor(s={}){super(s),this.nodeType="ContainerColumn"}}class Oa extends Wt{constructor(s={}){super(s),this.nodeType="ContainerHeaderSticky"}}class qa extends Wt{constructor(s={}){super(s),this.nodeType="ContainerRow"}}const Ba={ContainerBox:ka,ContainerColumn:$a,ContainerHeaderSticky:Oa,ContainerRow:qa};let Se=class extends Er{constructor(s={}){super(s),this.controllerHelpers=s.controllerHelpers,this.configPermissions=s.configPermissions,this.name=s.name,this.nodeType=s.nodeType||"Element",this.state={},this.configHandler(s.config)}get isCreated(){return super.isCreated&&!!this.component}get isValid(){return super.isValid&&!!this.name}get hasConfigPermissions(){return!!this.configPermissions}get stateName(){return{...this.defaultStateName,...this.config.stateName}}addComponent(s){this.component=s}configHandler(s={}){this.hasConfigPermissions?this.config=oa({config:s,configPermissions:this.configPermissions,type:this.nodeType}):this.config=s}getConfig(){return this.config||{}}getComponent(){return this.component}getElements(){return[this]}getElementName(){return this.name}getHandlers(){const s=this.getElementName(),{elementHandlers:r={}}=this.state;return r[s]||{}}getState(){return this.state}getElementState(){return La(this.state,this.stateName)}onCreated({component:s,payload:r={}}){return this.addComponent(s),this.updateState(r),this}update(s){this.updateElementState(s)}updateState(s){this.state={...this.state,...s}}updateElementState(s){super.updateElementState(s);const r=Na(s,this.stateName);return this.updateState(r),this}};function La(o,s){return Object.keys(s).reduce((r,d)=>{const f=s[d],u=o[d];return{...r,[f]:u}},{})}function Na(o,s){return Object.keys(s).reduce((r,d)=>{const f=s[d],u=o[f];return delete r[f],{...r,[d]:u}},{...o})}class Ha extends Se{constructor(s={}){super(s),this.defaultStateName={qButton:"qButton"}}getConfig(){return{...this.state.qButton||{},...this.config||{},...this.state[this.name]||{}}}}class Ta extends Se{constructor(s={}){super(s),this.defaultStateName={qComponent:"qComponent"}}getConfig(){return{...this.state.qComponent||{},...this.config||{},...this.state[this.name]||{}}}}var Mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ia(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Cn={exports:{}};Cn.exports,function(o,s){(function(){var r,d="4.17.21",f=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",R="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",x=500,A="__lodash_placeholder__",O=1,ie=2,he=4,Fe=1,Vt=2,ve=1,bt=2,ss=4,Ve=8,Kt=16,Ke=32,zt=64,ze=128,Gt=256,Ar=512,kc=30,$c="...",Oc=800,qc=16,os=1,Bc=2,Lc=3,En=1/0,At=9007199254740991,Nc=17976931348623157e292,bn=NaN,Ue=4294967295,Hc=Ue-1,Tc=Ue>>>1,Ic=[["ary",ze],["bind",ve],["bindKey",bt],["curry",Ve],["curryRight",Kt],["flip",Ar],["partial",Ke],["partialRight",zt],["rearg",Gt]],St="[object Arguments]",An="[object Array]",Dc="[object AsyncFunction]",Yt="[object Boolean]",Zt="[object Date]",Pc="[object DOMException]",Sn="[object Error]",Rn="[object Function]",ls="[object GeneratorFunction]",Ne="[object Map]",Jt="[object Number]",Fc="[object Null]",Ge="[object Object]",as="[object Promise]",Uc="[object Proxy]",Xt="[object RegExp]",He="[object Set]",jt="[object String]",xn="[object Symbol]",Wc="[object Undefined]",en="[object WeakMap]",Mc="[object WeakSet]",tn="[object ArrayBuffer]",Rt="[object DataView]",Sr="[object Float32Array]",Rr="[object Float64Array]",xr="[object Int8Array]",kr="[object Int16Array]",$r="[object Int32Array]",Or="[object Uint8Array]",qr="[object Uint8ClampedArray]",Br="[object Uint16Array]",Lr="[object Uint32Array]",Qc=/\b__p \+= '';/g,Vc=/\b(__p \+=) '' \+/g,Kc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,us=/&(?:amp|lt|gt|quot|#39);/g,cs=/[&<>"']/g,zc=RegExp(us.source),Gc=RegExp(cs.source),Yc=/<%-([\s\S]+?)%>/g,Zc=/<%([\s\S]+?)%>/g,fs=/<%=([\s\S]+?)%>/g,Jc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xc=/^\w*$/,jc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nr=/[\\^$.*+?()[\]{}|]/g,ef=RegExp(Nr.source),Hr=/^\s+/,tf=/\s/,nf=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,rf=/\{\n\/\* \[wrapped with (.+)\] \*/,sf=/,? & /,of=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lf=/[()=,{}\[\]\/\s]/,af=/\\(\\)?/g,uf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ds=/\w*$/,cf=/^[-+]0x[0-9a-f]+$/i,ff=/^0b[01]+$/i,df=/^\[object .+?Constructor\]$/,hf=/^0o[0-7]+$/i,gf=/^(?:0|[1-9]\d*)$/,mf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kn=/($^)/,pf=/['\n\r\u2028\u2029\\]/g,$n="\\ud800-\\udfff",_f="\\u0300-\\u036f",vf="\\ufe20-\\ufe2f",yf="\\u20d0-\\u20ff",hs=_f+vf+yf,gs="\\u2700-\\u27bf",ms="a-z\\xdf-\\xf6\\xf8-\\xff",Cf="\\xac\\xb1\\xd7\\xf7",wf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ef="\\u2000-\\u206f",bf=" \\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",ps="A-Z\\xc0-\\xd6\\xd8-\\xde",_s="\\ufe0e\\ufe0f",vs=Cf+wf+Ef+bf,Tr="['’]",Af="["+$n+"]",ys="["+vs+"]",On="["+hs+"]",Cs="\\d+",Sf="["+gs+"]",ws="["+ms+"]",Es="[^"+$n+vs+Cs+gs+ms+ps+"]",Ir="\\ud83c[\\udffb-\\udfff]",Rf="(?:"+On+"|"+Ir+")",bs="[^"+$n+"]",Dr="(?:\\ud83c[\\udde6-\\uddff]){2}",Pr="[\\ud800-\\udbff][\\udc00-\\udfff]",xt="["+ps+"]",As="\\u200d",Ss="(?:"+ws+"|"+Es+")",xf="(?:"+xt+"|"+Es+")",Rs="(?:"+Tr+"(?:d|ll|m|re|s|t|ve))?",xs="(?:"+Tr+"(?:D|LL|M|RE|S|T|VE))?",ks=Rf+"?",$s="["+_s+"]?",kf="(?:"+As+"(?:"+[bs,Dr,Pr].join("|")+")"+$s+ks+")*",$f="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Of="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Os=$s+ks+kf,qf="(?:"+[Sf,Dr,Pr].join("|")+")"+Os,Bf="(?:"+[bs+On+"?",On,Dr,Pr,Af].join("|")+")",Lf=RegExp(Tr,"g"),Nf=RegExp(On,"g"),Fr=RegExp(Ir+"(?="+Ir+")|"+Bf+Os,"g"),Hf=RegExp([xt+"?"+ws+"+"+Rs+"(?="+[ys,xt,"$"].join("|")+")",xf+"+"+xs+"(?="+[ys,xt+Ss,"$"].join("|")+")",xt+"?"+Ss+"+"+Rs,xt+"+"+xs,Of,$f,Cs,qf].join("|"),"g"),Tf=RegExp("["+As+$n+hs+_s+"]"),If=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Df=["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"],Pf=-1,G={};G[Sr]=G[Rr]=G[xr]=G[kr]=G[$r]=G[Or]=G[qr]=G[Br]=G[Lr]=!0,G[St]=G[An]=G[tn]=G[Yt]=G[Rt]=G[Zt]=G[Sn]=G[Rn]=G[Ne]=G[Jt]=G[Ge]=G[Xt]=G[He]=G[jt]=G[en]=!1;var z={};z[St]=z[An]=z[tn]=z[Rt]=z[Yt]=z[Zt]=z[Sr]=z[Rr]=z[xr]=z[kr]=z[$r]=z[Ne]=z[Jt]=z[Ge]=z[Xt]=z[He]=z[jt]=z[xn]=z[Or]=z[qr]=z[Br]=z[Lr]=!0,z[Sn]=z[Rn]=z[en]=!1;var Ff={À:"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"},Uf={"&":"&","<":"<",">":">",'"':""","'":"'"},Wf={"&":"&","<":"<",">":">",""":'"',"'":"'"},Mf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qf=parseFloat,Vf=parseInt,qs=typeof Mt=="object"&&Mt&&Mt.Object===Object&&Mt,Kf=typeof self=="object"&&self&&self.Object===Object&&self,oe=qs||Kf||Function("return this")(),Ur=s&&!s.nodeType&&s,gt=Ur&&!0&&o&&!o.nodeType&&o,Bs=gt&>.exports===Ur,Wr=Bs&&qs.process,Re=function(){try{var p=gt&>.require&>.require("util").types;return p||Wr&&Wr.binding&&Wr.binding("util")}catch{}}(),Ls=Re&&Re.isArrayBuffer,Ns=Re&&Re.isDate,Hs=Re&&Re.isMap,Ts=Re&&Re.isRegExp,Is=Re&&Re.isSet,Ds=Re&&Re.isTypedArray;function ye(p,C,y){switch(y.length){case 0:return p.call(C);case 1:return p.call(C,y[0]);case 2:return p.call(C,y[0],y[1]);case 3:return p.call(C,y[0],y[1],y[2])}return p.apply(C,y)}function zf(p,C,y,k){for(var N=-1,M=p==null?0:p.length;++N<M;){var ne=p[N];C(k,ne,y(ne),p)}return k}function xe(p,C){for(var y=-1,k=p==null?0:p.length;++y<k&&C(p[y],y,p)!==!1;);return p}function Gf(p,C){for(var y=p==null?0:p.length;y--&&C(p[y],y,p)!==!1;);return p}function Ps(p,C){for(var y=-1,k=p==null?0:p.length;++y<k;)if(!C(p[y],y,p))return!1;return!0}function it(p,C){for(var y=-1,k=p==null?0:p.length,N=0,M=[];++y<k;){var ne=p[y];C(ne,y,p)&&(M[N++]=ne)}return M}function qn(p,C){var y=p==null?0:p.length;return!!y&&kt(p,C,0)>-1}function Mr(p,C,y){for(var k=-1,N=p==null?0:p.length;++k<N;)if(y(C,p[k]))return!0;return!1}function Y(p,C){for(var y=-1,k=p==null?0:p.length,N=Array(k);++y<k;)N[y]=C(p[y],y,p);return N}function st(p,C){for(var y=-1,k=C.length,N=p.length;++y<k;)p[N+y]=C[y];return p}function Qr(p,C,y,k){var N=-1,M=p==null?0:p.length;for(k&&M&&(y=p[++N]);++N<M;)y=C(y,p[N],N,p);return y}function Yf(p,C,y,k){var N=p==null?0:p.length;for(k&&N&&(y=p[--N]);N--;)y=C(y,p[N],N,p);return y}function Vr(p,C){for(var y=-1,k=p==null?0:p.length;++y<k;)if(C(p[y],y,p))return!0;return!1}var Zf=Kr("length");function Jf(p){return p.split("")}function Xf(p){return p.match(of)||[]}function Fs(p,C,y){var k;return y(p,function(N,M,ne){if(C(N,M,ne))return k=M,!1}),k}function Bn(p,C,y,k){for(var N=p.length,M=y+(k?1:-1);k?M--:++M<N;)if(C(p[M],M,p))return M;return-1}function kt(p,C,y){return C===C?cd(p,C,y):Bn(p,Us,y)}function jf(p,C,y,k){for(var N=y-1,M=p.length;++N<M;)if(k(p[N],C))return N;return-1}function Us(p){return p!==p}function Ws(p,C){var y=p==null?0:p.length;return y?Gr(p,C)/y:bn}function Kr(p){return function(C){return C==null?r:C[p]}}function zr(p){return function(C){return p==null?r:p[C]}}function Ms(p,C,y,k,N){return N(p,function(M,ne,K){y=k?(k=!1,M):C(y,M,ne,K)}),y}function ed(p,C){var y=p.length;for(p.sort(C);y--;)p[y]=p[y].value;return p}function Gr(p,C){for(var y,k=-1,N=p.length;++k<N;){var M=C(p[k]);M!==r&&(y=y===r?M:y+M)}return y}function Yr(p,C){for(var y=-1,k=Array(p);++y<p;)k[y]=C(y);return k}function td(p,C){return Y(C,function(y){return[y,p[y]]})}function Qs(p){return p&&p.slice(0,Gs(p)+1).replace(Hr,"")}function Ce(p){return function(C){return p(C)}}function Zr(p,C){return Y(C,function(y){return p[y]})}function nn(p,C){return p.has(C)}function Vs(p,C){for(var y=-1,k=p.length;++y<k&&kt(C,p[y],0)>-1;);return y}function Ks(p,C){for(var y=p.length;y--&&kt(C,p[y],0)>-1;);return y}function nd(p,C){for(var y=p.length,k=0;y--;)p[y]===C&&++k;return k}var rd=zr(Ff),id=zr(Uf);function sd(p){return"\\"+Mf[p]}function od(p,C){return p==null?r:p[C]}function $t(p){return Tf.test(p)}function ld(p){return If.test(p)}function ad(p){for(var C,y=[];!(C=p.next()).done;)y.push(C.value);return y}function Jr(p){var C=-1,y=Array(p.size);return p.forEach(function(k,N){y[++C]=[N,k]}),y}function zs(p,C){return function(y){return p(C(y))}}function ot(p,C){for(var y=-1,k=p.length,N=0,M=[];++y<k;){var ne=p[y];(ne===C||ne===A)&&(p[y]=A,M[N++]=y)}return M}function Ln(p){var C=-1,y=Array(p.size);return p.forEach(function(k){y[++C]=k}),y}function ud(p){var C=-1,y=Array(p.size);return p.forEach(function(k){y[++C]=[k,k]}),y}function cd(p,C,y){for(var k=y-1,N=p.length;++k<N;)if(p[k]===C)return k;return-1}function fd(p,C,y){for(var k=y+1;k--;)if(p[k]===C)return k;return k}function Ot(p){return $t(p)?hd(p):Zf(p)}function Te(p){return $t(p)?gd(p):Jf(p)}function Gs(p){for(var C=p.length;C--&&tf.test(p.charAt(C)););return C}var dd=zr(Wf);function hd(p){for(var C=Fr.lastIndex=0;Fr.test(p);)++C;return C}function gd(p){return p.match(Fr)||[]}function md(p){return p.match(Hf)||[]}var pd=function p(C){C=C==null?oe:qt.defaults(oe.Object(),C,qt.pick(oe,Df));var y=C.Array,k=C.Date,N=C.Error,M=C.Function,ne=C.Math,K=C.Object,Xr=C.RegExp,_d=C.String,ke=C.TypeError,Nn=y.prototype,vd=M.prototype,Bt=K.prototype,Hn=C["__core-js_shared__"],Tn=vd.toString,V=Bt.hasOwnProperty,yd=0,Ys=function(){var e=/[^.]+$/.exec(Hn&&Hn.keys&&Hn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),In=Bt.toString,Cd=Tn.call(K),wd=oe._,Ed=Xr("^"+Tn.call(V).replace(Nr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dn=Bs?C.Buffer:r,lt=C.Symbol,Pn=C.Uint8Array,Zs=Dn?Dn.allocUnsafe:r,Fn=zs(K.getPrototypeOf,K),Js=K.create,Xs=Bt.propertyIsEnumerable,Un=Nn.splice,js=lt?lt.isConcatSpreadable:r,rn=lt?lt.iterator:r,mt=lt?lt.toStringTag:r,Wn=function(){try{var e=Ct(K,"defineProperty");return e({},"",{}),e}catch{}}(),bd=C.clearTimeout!==oe.clearTimeout&&C.clearTimeout,Ad=k&&k.now!==oe.Date.now&&k.now,Sd=C.setTimeout!==oe.setTimeout&&C.setTimeout,Mn=ne.ceil,Qn=ne.floor,jr=K.getOwnPropertySymbols,Rd=Dn?Dn.isBuffer:r,eo=C.isFinite,xd=Nn.join,kd=zs(K.keys,K),re=ne.max,ae=ne.min,$d=k.now,Od=C.parseInt,to=ne.random,qd=Nn.reverse,ei=Ct(C,"DataView"),sn=Ct(C,"Map"),ti=Ct(C,"Promise"),Lt=Ct(C,"Set"),on=Ct(C,"WeakMap"),ln=Ct(K,"create"),Vn=on&&new on,Nt={},Bd=wt(ei),Ld=wt(sn),Nd=wt(ti),Hd=wt(Lt),Td=wt(on),Kn=lt?lt.prototype:r,an=Kn?Kn.valueOf:r,no=Kn?Kn.toString:r;function a(e){if(J(e)&&!H(e)&&!(e instanceof U)){if(e instanceof $e)return e;if(V.call(e,"__wrapped__"))return il(e)}return new $e(e)}var Ht=function(){function e(){}return function(t){if(!Z(t))return{};if(Js)return Js(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function zn(){}function $e(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}a.templateSettings={escape:Yc,evaluate:Zc,interpolate:fs,variable:"",imports:{_:a}},a.prototype=zn.prototype,a.prototype.constructor=a,$e.prototype=Ht(zn.prototype),$e.prototype.constructor=$e;function U(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ue,this.__views__=[]}function Id(){var e=new U(this.__wrapped__);return e.__actions__=ge(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ge(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ge(this.__views__),e}function Dd(){if(this.__filtered__){var e=new U(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Pd(){var e=this.__wrapped__.value(),t=this.__dir__,n=H(e),i=t<0,l=n?e.length:0,c=Jh(0,l,this.__views__),h=c.start,m=c.end,_=m-h,w=i?m:h-1,E=this.__iteratees__,b=E.length,S=0,$=ae(_,this.__takeCount__);if(!n||!i&&l==_&&$==_)return xo(e,this.__actions__);var B=[];e:for(;_--&&S<$;){w+=t;for(var D=-1,L=e[w];++D<b;){var F=E[D],W=F.iteratee,be=F.type,de=W(L);if(be==Bc)L=de;else if(!de){if(be==os)continue e;break e}}B[S++]=L}return B}U.prototype=Ht(zn.prototype),U.prototype.constructor=U;function pt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Fd(){this.__data__=ln?ln(null):{},this.size=0}function Ud(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Wd(e){var t=this.__data__;if(ln){var n=t[e];return n===T?r:n}return V.call(t,e)?t[e]:r}function Md(e){var t=this.__data__;return ln?t[e]!==r:V.call(t,e)}function Qd(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ln&&t===r?T:t,this}pt.prototype.clear=Fd,pt.prototype.delete=Ud,pt.prototype.get=Wd,pt.prototype.has=Md,pt.prototype.set=Qd;function Ye(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Vd(){this.__data__=[],this.size=0}function Kd(e){var t=this.__data__,n=Gn(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Un.call(t,n,1),--this.size,!0}function zd(e){var t=this.__data__,n=Gn(t,e);return n<0?r:t[n][1]}function Gd(e){return Gn(this.__data__,e)>-1}function Yd(e,t){var n=this.__data__,i=Gn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}Ye.prototype.clear=Vd,Ye.prototype.delete=Kd,Ye.prototype.get=zd,Ye.prototype.has=Gd,Ye.prototype.set=Yd;function Ze(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Zd(){this.size=0,this.__data__={hash:new pt,map:new(sn||Ye),string:new pt}}function Jd(e){var t=or(this,e).delete(e);return this.size-=t?1:0,t}function Xd(e){return or(this,e).get(e)}function jd(e){return or(this,e).has(e)}function eh(e,t){var n=or(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}Ze.prototype.clear=Zd,Ze.prototype.delete=Jd,Ze.prototype.get=Xd,Ze.prototype.has=jd,Ze.prototype.set=eh;function _t(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ze;++t<n;)this.add(e[t])}function th(e){return this.__data__.set(e,T),this}function nh(e){return this.__data__.has(e)}_t.prototype.add=_t.prototype.push=th,_t.prototype.has=nh;function Ie(e){var t=this.__data__=new Ye(e);this.size=t.size}function rh(){this.__data__=new Ye,this.size=0}function ih(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function sh(e){return this.__data__.get(e)}function oh(e){return this.__data__.has(e)}function lh(e,t){var n=this.__data__;if(n instanceof Ye){var i=n.__data__;if(!sn||i.length<f-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ze(i)}return n.set(e,t),this.size=n.size,this}Ie.prototype.clear=rh,Ie.prototype.delete=ih,Ie.prototype.get=sh,Ie.prototype.has=oh,Ie.prototype.set=lh;function ro(e,t){var n=H(e),i=!n&&Et(e),l=!n&&!i&&dt(e),c=!n&&!i&&!l&&Pt(e),h=n||i||l||c,m=h?Yr(e.length,_d):[],_=m.length;for(var w in e)(t||V.call(e,w))&&!(h&&(w=="length"||l&&(w=="offset"||w=="parent")||c&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||et(w,_)))&&m.push(w);return m}function io(e){var t=e.length;return t?e[di(0,t-1)]:r}function ah(e,t){return lr(ge(e),vt(t,0,e.length))}function uh(e){return lr(ge(e))}function ni(e,t,n){(n!==r&&!De(e[t],n)||n===r&&!(t in e))&&Je(e,t,n)}function un(e,t,n){var i=e[t];(!(V.call(e,t)&&De(i,n))||n===r&&!(t in e))&&Je(e,t,n)}function Gn(e,t){for(var n=e.length;n--;)if(De(e[n][0],t))return n;return-1}function ch(e,t,n,i){return at(e,function(l,c,h){t(i,l,n(l),h)}),i}function so(e,t){return e&&Me(t,se(t),e)}function fh(e,t){return e&&Me(t,pe(t),e)}function Je(e,t,n){t=="__proto__"&&Wn?Wn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ri(e,t){for(var n=-1,i=t.length,l=y(i),c=e==null;++n<i;)l[n]=c?r:Ii(e,t[n]);return l}function vt(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function Oe(e,t,n,i,l,c){var h,m=t&O,_=t&ie,w=t&he;if(n&&(h=l?n(e,i,l,c):n(e)),h!==r)return h;if(!Z(e))return e;var E=H(e);if(E){if(h=jh(e),!m)return ge(e,h)}else{var b=ue(e),S=b==Rn||b==ls;if(dt(e))return Oo(e,m);if(b==Ge||b==St||S&&!l){if(h=_||S?{}:Yo(e),!m)return _?Wh(e,fh(h,e)):Uh(e,so(h,e))}else{if(!z[b])return l?e:{};h=eg(e,b,m)}}c||(c=new Ie);var $=c.get(e);if($)return $;c.set(e,h),Al(e)?e.forEach(function(L){h.add(Oe(L,t,n,L,e,c))}):El(e)&&e.forEach(function(L,F){h.set(F,Oe(L,t,n,F,e,c))});var B=w?_?bi:Ei:_?pe:se,D=E?r:B(e);return xe(D||e,function(L,F){D&&(F=L,L=e[F]),un(h,F,Oe(L,t,n,F,e,c))}),h}function dh(e){var t=se(e);return function(n){return oo(n,e,t)}}function oo(e,t,n){var i=n.length;if(e==null)return!i;for(e=K(e);i--;){var l=n[i],c=t[l],h=e[l];if(h===r&&!(l in e)||!c(h))return!1}return!0}function lo(e,t,n){if(typeof e!="function")throw new ke(v);return pn(function(){e.apply(r,n)},t)}function cn(e,t,n,i){var l=-1,c=qn,h=!0,m=e.length,_=[],w=t.length;if(!m)return _;n&&(t=Y(t,Ce(n))),i?(c=Mr,h=!1):t.length>=f&&(c=nn,h=!1,t=new _t(t));e:for(;++l<m;){var E=e[l],b=n==null?E:n(E);if(E=i||E!==0?E:0,h&&b===b){for(var S=w;S--;)if(t[S]===b)continue e;_.push(E)}else c(t,b,i)||_.push(E)}return _}var at=Ho(We),ao=Ho(si,!0);function hh(e,t){var n=!0;return at(e,function(i,l,c){return n=!!t(i,l,c),n}),n}function Yn(e,t,n){for(var i=-1,l=e.length;++i<l;){var c=e[i],h=t(c);if(h!=null&&(m===r?h===h&&!Ee(h):n(h,m)))var m=h,_=c}return _}function gh(e,t,n,i){var l=e.length;for(n=I(n),n<0&&(n=-n>l?0:l+n),i=i===r||i>l?l:I(i),i<0&&(i+=l),i=n>i?0:Rl(i);n<i;)e[n++]=t;return e}function uo(e,t){var n=[];return at(e,function(i,l,c){t(i,l,c)&&n.push(i)}),n}function le(e,t,n,i,l){var c=-1,h=e.length;for(n||(n=ng),l||(l=[]);++c<h;){var m=e[c];t>0&&n(m)?t>1?le(m,t-1,n,i,l):st(l,m):i||(l[l.length]=m)}return l}var ii=To(),co=To(!0);function We(e,t){return e&&ii(e,t,se)}function si(e,t){return e&&co(e,t,se)}function Zn(e,t){return it(t,function(n){return tt(e[n])})}function yt(e,t){t=ct(t,e);for(var n=0,i=t.length;e!=null&&n<i;)e=e[Qe(t[n++])];return n&&n==i?e:r}function fo(e,t,n){var i=t(e);return H(e)?i:st(i,n(e))}function ce(e){return e==null?e===r?Wc:Fc:mt&&mt in K(e)?Zh(e):ug(e)}function oi(e,t){return e>t}function mh(e,t){return e!=null&&V.call(e,t)}function ph(e,t){return e!=null&&t in K(e)}function _h(e,t,n){return e>=ae(t,n)&&e<re(t,n)}function li(e,t,n){for(var i=n?Mr:qn,l=e[0].length,c=e.length,h=c,m=y(c),_=1/0,w=[];h--;){var E=e[h];h&&t&&(E=Y(E,Ce(t))),_=ae(E.length,_),m[h]=!n&&(t||l>=120&&E.length>=120)?new _t(h&&E):r}E=e[0];var b=-1,S=m[0];e:for(;++b<l&&w.length<_;){var $=E[b],B=t?t($):$;if($=n||$!==0?$:0,!(S?nn(S,B):i(w,B,n))){for(h=c;--h;){var D=m[h];if(!(D?nn(D,B):i(e[h],B,n)))continue e}S&&S.push(B),w.push($)}}return w}function vh(e,t,n,i){return We(e,function(l,c,h){t(i,n(l),c,h)}),i}function fn(e,t,n){t=ct(t,e),e=jo(e,t);var i=e==null?e:e[Qe(Be(t))];return i==null?r:ye(i,e,n)}function ho(e){return J(e)&&ce(e)==St}function yh(e){return J(e)&&ce(e)==tn}function Ch(e){return J(e)&&ce(e)==Zt}function dn(e,t,n,i,l){return e===t?!0:e==null||t==null||!J(e)&&!J(t)?e!==e&&t!==t:wh(e,t,n,i,dn,l)}function wh(e,t,n,i,l,c){var h=H(e),m=H(t),_=h?An:ue(e),w=m?An:ue(t);_=_==St?Ge:_,w=w==St?Ge:w;var E=_==Ge,b=w==Ge,S=_==w;if(S&&dt(e)){if(!dt(t))return!1;h=!0,E=!1}if(S&&!E)return c||(c=new Ie),h||Pt(e)?Ko(e,t,n,i,l,c):Gh(e,t,_,n,i,l,c);if(!(n&Fe)){var $=E&&V.call(e,"__wrapped__"),B=b&&V.call(t,"__wrapped__");if($||B){var D=$?e.value():e,L=B?t.value():t;return c||(c=new Ie),l(D,L,n,i,c)}}return S?(c||(c=new Ie),Yh(e,t,n,i,l,c)):!1}function Eh(e){return J(e)&&ue(e)==Ne}function ai(e,t,n,i){var l=n.length,c=l,h=!i;if(e==null)return!c;for(e=K(e);l--;){var m=n[l];if(h&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++l<c;){m=n[l];var _=m[0],w=e[_],E=m[1];if(h&&m[2]){if(w===r&&!(_ in e))return!1}else{var b=new Ie;if(i)var S=i(w,E,_,e,t,b);if(!(S===r?dn(E,w,Fe|Vt,i,b):S))return!1}}return!0}function go(e){if(!Z(e)||ig(e))return!1;var t=tt(e)?Ed:df;return t.test(wt(e))}function bh(e){return J(e)&&ce(e)==Xt}function Ah(e){return J(e)&&ue(e)==He}function Sh(e){return J(e)&&hr(e.length)&&!!G[ce(e)]}function mo(e){return typeof e=="function"?e:e==null?_e:typeof e=="object"?H(e)?vo(e[0],e[1]):_o(e):Il(e)}function ui(e){if(!mn(e))return kd(e);var t=[];for(var n in K(e))V.call(e,n)&&n!="constructor"&&t.push(n);return t}function Rh(e){if(!Z(e))return ag(e);var t=mn(e),n=[];for(var i in e)i=="constructor"&&(t||!V.call(e,i))||n.push(i);return n}function ci(e,t){return e<t}function po(e,t){var n=-1,i=me(e)?y(e.length):[];return at(e,function(l,c,h){i[++n]=t(l,c,h)}),i}function _o(e){var t=Si(e);return t.length==1&&t[0][2]?Jo(t[0][0],t[0][1]):function(n){return n===e||ai(n,e,t)}}function vo(e,t){return xi(e)&&Zo(t)?Jo(Qe(e),t):function(n){var i=Ii(n,e);return i===r&&i===t?Di(n,e):dn(t,i,Fe|Vt)}}function Jn(e,t,n,i,l){e!==t&&ii(t,function(c,h){if(l||(l=new Ie),Z(c))xh(e,t,h,n,Jn,i,l);else{var m=i?i($i(e,h),c,h+"",e,t,l):r;m===r&&(m=c),ni(e,h,m)}},pe)}function xh(e,t,n,i,l,c,h){var m=$i(e,n),_=$i(t,n),w=h.get(_);if(w){ni(e,n,w);return}var E=c?c(m,_,n+"",e,t,h):r,b=E===r;if(b){var S=H(_),$=!S&&dt(_),B=!S&&!$&&Pt(_);E=_,S||$||B?H(m)?E=m:X(m)?E=ge(m):$?(b=!1,E=Oo(_,!0)):B?(b=!1,E=qo(_,!0)):E=[]:_n(_)||Et(_)?(E=m,Et(m)?E=xl(m):(!Z(m)||tt(m))&&(E=Yo(_))):b=!1}b&&(h.set(_,E),l(E,_,i,c,h),h.delete(_)),ni(e,n,E)}function yo(e,t){var n=e.length;if(n)return t+=t<0?n:0,et(t,n)?e[t]:r}function Co(e,t,n){t.length?t=Y(t,function(c){return H(c)?function(h){return yt(h,c.length===1?c[0]:c)}:c}):t=[_e];var i=-1;t=Y(t,Ce(q()));var l=po(e,function(c,h,m){var _=Y(t,function(w){return w(c)});return{criteria:_,index:++i,value:c}});return ed(l,function(c,h){return Fh(c,h,n)})}function kh(e,t){return wo(e,t,function(n,i){return Di(e,i)})}function wo(e,t,n){for(var i=-1,l=t.length,c={};++i<l;){var h=t[i],m=yt(e,h);n(m,h)&&hn(c,ct(h,e),m)}return c}function $h(e){return function(t){return yt(t,e)}}function fi(e,t,n,i){var l=i?jf:kt,c=-1,h=t.length,m=e;for(e===t&&(t=ge(t)),n&&(m=Y(e,Ce(n)));++c<h;)for(var _=0,w=t[c],E=n?n(w):w;(_=l(m,E,_,i))>-1;)m!==e&&Un.call(m,_,1),Un.call(e,_,1);return e}function Eo(e,t){for(var n=e?t.length:0,i=n-1;n--;){var l=t[n];if(n==i||l!==c){var c=l;et(l)?Un.call(e,l,1):mi(e,l)}}return e}function di(e,t){return e+Qn(to()*(t-e+1))}function Oh(e,t,n,i){for(var l=-1,c=re(Mn((t-e)/(n||1)),0),h=y(c);c--;)h[i?c:++l]=e,e+=n;return h}function hi(e,t){var n="";if(!e||t<1||t>At)return n;do t%2&&(n+=e),t=Qn(t/2),t&&(e+=e);while(t);return n}function P(e,t){return Oi(Xo(e,t,_e),e+"")}function qh(e){return io(Ft(e))}function Bh(e,t){var n=Ft(e);return lr(n,vt(t,0,n.length))}function hn(e,t,n,i){if(!Z(e))return e;t=ct(t,e);for(var l=-1,c=t.length,h=c-1,m=e;m!=null&&++l<c;){var _=Qe(t[l]),w=n;if(_==="__proto__"||_==="constructor"||_==="prototype")return e;if(l!=h){var E=m[_];w=i?i(E,_,m):r,w===r&&(w=Z(E)?E:et(t[l+1])?[]:{})}un(m,_,w),m=m[_]}return e}var bo=Vn?function(e,t){return Vn.set(e,t),e}:_e,Lh=Wn?function(e,t){return Wn(e,"toString",{configurable:!0,enumerable:!1,value:Fi(t),writable:!0})}:_e;function Nh(e){return lr(Ft(e))}function qe(e,t,n){var i=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var c=y(l);++i<l;)c[i]=e[i+t];return c}function Hh(e,t){var n;return at(e,function(i,l,c){return n=t(i,l,c),!n}),!!n}function Xn(e,t,n){var i=0,l=e==null?i:e.length;if(typeof t=="number"&&t===t&&l<=Tc){for(;i<l;){var c=i+l>>>1,h=e[c];h!==null&&!Ee(h)&&(n?h<=t:h<t)?i=c+1:l=c}return l}return gi(e,t,_e,n)}function gi(e,t,n,i){var l=0,c=e==null?0:e.length;if(c===0)return 0;t=n(t);for(var h=t!==t,m=t===null,_=Ee(t),w=t===r;l<c;){var E=Qn((l+c)/2),b=n(e[E]),S=b!==r,$=b===null,B=b===b,D=Ee(b);if(h)var L=i||B;else w?L=B&&(i||S):m?L=B&&S&&(i||!$):_?L=B&&S&&!$&&(i||!D):$||D?L=!1:L=i?b<=t:b<t;L?l=E+1:c=E}return ae(c,Hc)}function Ao(e,t){for(var n=-1,i=e.length,l=0,c=[];++n<i;){var h=e[n],m=t?t(h):h;if(!n||!De(m,_)){var _=m;c[l++]=h===0?0:h}}return c}function So(e){return typeof e=="number"?e:Ee(e)?bn:+e}function we(e){if(typeof e=="string")return e;if(H(e))return Y(e,we)+"";if(Ee(e))return no?no.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ut(e,t,n){var i=-1,l=qn,c=e.length,h=!0,m=[],_=m;if(n)h=!1,l=Mr;else if(c>=f){var w=t?null:Kh(e);if(w)return Ln(w);h=!1,l=nn,_=new _t}else _=t?[]:m;e:for(;++i<c;){var E=e[i],b=t?t(E):E;if(E=n||E!==0?E:0,h&&b===b){for(var S=_.length;S--;)if(_[S]===b)continue e;t&&_.push(b),m.push(E)}else l(_,b,n)||(_!==m&&_.push(b),m.push(E))}return m}function mi(e,t){return t=ct(t,e),e=jo(e,t),e==null||delete e[Qe(Be(t))]}function Ro(e,t,n,i){return hn(e,t,n(yt(e,t)),i)}function jn(e,t,n,i){for(var l=e.length,c=i?l:-1;(i?c--:++c<l)&&t(e[c],c,e););return n?qe(e,i?0:c,i?c+1:l):qe(e,i?c+1:0,i?l:c)}function xo(e,t){var n=e;return n instanceof U&&(n=n.value()),Qr(t,function(i,l){return l.func.apply(l.thisArg,st([i],l.args))},n)}function pi(e,t,n){var i=e.length;if(i<2)return i?ut(e[0]):[];for(var l=-1,c=y(i);++l<i;)for(var h=e[l],m=-1;++m<i;)m!=l&&(c[l]=cn(c[l]||h,e[m],t,n));return ut(le(c,1),t,n)}function ko(e,t,n){for(var i=-1,l=e.length,c=t.length,h={};++i<l;){var m=i<c?t[i]:r;n(h,e[i],m)}return h}function _i(e){return X(e)?e:[]}function vi(e){return typeof e=="function"?e:_e}function ct(e,t){return H(e)?e:xi(e,t)?[e]:rl(Q(e))}var Th=P;function ft(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:qe(e,t,n)}var $o=bd||function(e){return oe.clearTimeout(e)};function Oo(e,t){if(t)return e.slice();var n=e.length,i=Zs?Zs(n):new e.constructor(n);return e.copy(i),i}function yi(e){var t=new e.constructor(e.byteLength);return new Pn(t).set(new Pn(e)),t}function Ih(e,t){var n=t?yi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Dh(e){var t=new e.constructor(e.source,ds.exec(e));return t.lastIndex=e.lastIndex,t}function Ph(e){return an?K(an.call(e)):{}}function qo(e,t){var n=t?yi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Bo(e,t){if(e!==t){var n=e!==r,i=e===null,l=e===e,c=Ee(e),h=t!==r,m=t===null,_=t===t,w=Ee(t);if(!m&&!w&&!c&&e>t||c&&h&&_&&!m&&!w||i&&h&&_||!n&&_||!l)return 1;if(!i&&!c&&!w&&e<t||w&&n&&l&&!i&&!c||m&&n&&l||!h&&l||!_)return-1}return 0}function Fh(e,t,n){for(var i=-1,l=e.criteria,c=t.criteria,h=l.length,m=n.length;++i<h;){var _=Bo(l[i],c[i]);if(_){if(i>=m)return _;var w=n[i];return _*(w=="desc"?-1:1)}}return e.index-t.index}function Lo(e,t,n,i){for(var l=-1,c=e.length,h=n.length,m=-1,_=t.length,w=re(c-h,0),E=y(_+w),b=!i;++m<_;)E[m]=t[m];for(;++l<h;)(b||l<c)&&(E[n[l]]=e[l]);for(;w--;)E[m++]=e[l++];return E}function No(e,t,n,i){for(var l=-1,c=e.length,h=-1,m=n.length,_=-1,w=t.length,E=re(c-m,0),b=y(E+w),S=!i;++l<E;)b[l]=e[l];for(var $=l;++_<w;)b[$+_]=t[_];for(;++h<m;)(S||l<c)&&(b[$+n[h]]=e[l++]);return b}function ge(e,t){var n=-1,i=e.length;for(t||(t=y(i));++n<i;)t[n]=e[n];return t}function Me(e,t,n,i){var l=!n;n||(n={});for(var c=-1,h=t.length;++c<h;){var m=t[c],_=i?i(n[m],e[m],m,n,e):r;_===r&&(_=e[m]),l?Je(n,m,_):un(n,m,_)}return n}function Uh(e,t){return Me(e,Ri(e),t)}function Wh(e,t){return Me(e,zo(e),t)}function er(e,t){return function(n,i){var l=H(n)?zf:ch,c=t?t():{};return l(n,e,q(i,2),c)}}function Tt(e){return P(function(t,n){var i=-1,l=n.length,c=l>1?n[l-1]:r,h=l>2?n[2]:r;for(c=e.length>3&&typeof c=="function"?(l--,c):r,h&&fe(n[0],n[1],h)&&(c=l<3?r:c,l=1),t=K(t);++i<l;){var m=n[i];m&&e(t,m,i,c)}return t})}function Ho(e,t){return function(n,i){if(n==null)return n;if(!me(n))return e(n,i);for(var l=n.length,c=t?l:-1,h=K(n);(t?c--:++c<l)&&i(h[c],c,h)!==!1;);return n}}function To(e){return function(t,n,i){for(var l=-1,c=K(t),h=i(t),m=h.length;m--;){var _=h[e?m:++l];if(n(c[_],_,c)===!1)break}return t}}function Mh(e,t,n){var i=t&ve,l=gn(e);function c(){var h=this&&this!==oe&&this instanceof c?l:e;return h.apply(i?n:this,arguments)}return c}function Io(e){return function(t){t=Q(t);var n=$t(t)?Te(t):r,i=n?n[0]:t.charAt(0),l=n?ft(n,1).join(""):t.slice(1);return i[e]()+l}}function It(e){return function(t){return Qr(Hl(Nl(t).replace(Lf,"")),e,"")}}function gn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ht(e.prototype),i=e.apply(n,t);return Z(i)?i:n}}function Qh(e,t,n){var i=gn(e);function l(){for(var c=arguments.length,h=y(c),m=c,_=Dt(l);m--;)h[m]=arguments[m];var w=c<3&&h[0]!==_&&h[c-1]!==_?[]:ot(h,_);if(c-=w.length,c<n)return Wo(e,t,tr,l.placeholder,r,h,w,r,r,n-c);var E=this&&this!==oe&&this instanceof l?i:e;return ye(E,this,h)}return l}function Do(e){return function(t,n,i){var l=K(t);if(!me(t)){var c=q(n,3);t=se(t),n=function(m){return c(l[m],m,l)}}var h=e(t,n,i);return h>-1?l[c?t[h]:h]:r}}function Po(e){return je(function(t){var n=t.length,i=n,l=$e.prototype.thru;for(e&&t.reverse();i--;){var c=t[i];if(typeof c!="function")throw new ke(v);if(l&&!h&&sr(c)=="wrapper")var h=new $e([],!0)}for(i=h?i:n;++i<n;){c=t[i];var m=sr(c),_=m=="wrapper"?Ai(c):r;_&&ki(_[0])&&_[1]==(ze|Ve|Ke|Gt)&&!_[4].length&&_[9]==1?h=h[sr(_[0])].apply(h,_[3]):h=c.length==1&&ki(c)?h[m]():h.thru(c)}return function(){var w=arguments,E=w[0];if(h&&w.length==1&&H(E))return h.plant(E).value();for(var b=0,S=n?t[b].apply(this,w):E;++b<n;)S=t[b].call(this,S);return S}})}function tr(e,t,n,i,l,c,h,m,_,w){var E=t&ze,b=t&ve,S=t&bt,$=t&(Ve|Kt),B=t&Ar,D=S?r:gn(e);function L(){for(var F=arguments.length,W=y(F),be=F;be--;)W[be]=arguments[be];if($)var de=Dt(L),Ae=nd(W,de);if(i&&(W=Lo(W,i,l,$)),c&&(W=No(W,c,h,$)),F-=Ae,$&&F<w){var j=ot(W,de);return Wo(e,t,tr,L.placeholder,n,W,j,m,_,w-F)}var Pe=b?n:this,rt=S?Pe[e]:e;return F=W.length,m?W=cg(W,m):B&&F>1&&W.reverse(),E&&_<F&&(W.length=_),this&&this!==oe&&this instanceof L&&(rt=D||gn(rt)),rt.apply(Pe,W)}return L}function Fo(e,t){return function(n,i){return vh(n,e,t(i),{})}}function nr(e,t){return function(n,i){var l;if(n===r&&i===r)return t;if(n!==r&&(l=n),i!==r){if(l===r)return i;typeof n=="string"||typeof i=="string"?(n=we(n),i=we(i)):(n=So(n),i=So(i)),l=e(n,i)}return l}}function Ci(e){return je(function(t){return t=Y(t,Ce(q())),P(function(n){var i=this;return e(t,function(l){return ye(l,i,n)})})})}function rr(e,t){t=t===r?" ":we(t);var n=t.length;if(n<2)return n?hi(t,e):t;var i=hi(t,Mn(e/Ot(t)));return $t(t)?ft(Te(i),0,e).join(""):i.slice(0,e)}function Vh(e,t,n,i){var l=t&ve,c=gn(e);function h(){for(var m=-1,_=arguments.length,w=-1,E=i.length,b=y(E+_),S=this&&this!==oe&&this instanceof h?c:e;++w<E;)b[w]=i[w];for(;_--;)b[w++]=arguments[++m];return ye(S,l?n:this,b)}return h}function Uo(e){return function(t,n,i){return i&&typeof i!="number"&&fe(t,n,i)&&(n=i=r),t=nt(t),n===r?(n=t,t=0):n=nt(n),i=i===r?t<n?1:-1:nt(i),Oh(t,n,i,e)}}function ir(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Le(t),n=Le(n)),e(t,n)}}function Wo(e,t,n,i,l,c,h,m,_,w){var E=t&Ve,b=E?h:r,S=E?r:h,$=E?c:r,B=E?r:c;t|=E?Ke:zt,t&=~(E?zt:Ke),t&ss||(t&=-4);var D=[e,t,l,$,b,B,S,m,_,w],L=n.apply(r,D);return ki(e)&&el(L,D),L.placeholder=i,tl(L,e,t)}function wi(e){var t=ne[e];return function(n,i){if(n=Le(n),i=i==null?0:ae(I(i),292),i&&eo(n)){var l=(Q(n)+"e").split("e"),c=t(l[0]+"e"+(+l[1]+i));return l=(Q(c)+"e").split("e"),+(l[0]+"e"+(+l[1]-i))}return t(n)}}var Kh=Lt&&1/Ln(new Lt([,-0]))[1]==En?function(e){return new Lt(e)}:Mi;function Mo(e){return function(t){var n=ue(t);return n==Ne?Jr(t):n==He?ud(t):td(t,e(t))}}function Xe(e,t,n,i,l,c,h,m){var _=t&bt;if(!_&&typeof e!="function")throw new ke(v);var w=i?i.length:0;if(w||(t&=-97,i=l=r),h=h===r?h:re(I(h),0),m=m===r?m:I(m),w-=l?l.length:0,t&zt){var E=i,b=l;i=l=r}var S=_?r:Ai(e),$=[e,t,n,i,l,E,b,c,h,m];if(S&&lg($,S),e=$[0],t=$[1],n=$[2],i=$[3],l=$[4],m=$[9]=$[9]===r?_?0:e.length:re($[9]-w,0),!m&&t&(Ve|Kt)&&(t&=-25),!t||t==ve)var B=Mh(e,t,n);else t==Ve||t==Kt?B=Qh(e,t,m):(t==Ke||t==(ve|Ke))&&!l.length?B=Vh(e,t,n,i):B=tr.apply(r,$);var D=S?bo:el;return tl(D(B,$),e,t)}function Qo(e,t,n,i){return e===r||De(e,Bt[n])&&!V.call(i,n)?t:e}function Vo(e,t,n,i,l,c){return Z(e)&&Z(t)&&(c.set(t,e),Jn(e,t,r,Vo,c),c.delete(t)),e}function zh(e){return _n(e)?r:e}function Ko(e,t,n,i,l,c){var h=n&Fe,m=e.length,_=t.length;if(m!=_&&!(h&&_>m))return!1;var w=c.get(e),E=c.get(t);if(w&&E)return w==t&&E==e;var b=-1,S=!0,$=n&Vt?new _t:r;for(c.set(e,t),c.set(t,e);++b<m;){var B=e[b],D=t[b];if(i)var L=h?i(D,B,b,t,e,c):i(B,D,b,e,t,c);if(L!==r){if(L)continue;S=!1;break}if($){if(!Vr(t,function(F,W){if(!nn($,W)&&(B===F||l(B,F,n,i,c)))return $.push(W)})){S=!1;break}}else if(!(B===D||l(B,D,n,i,c))){S=!1;break}}return c.delete(e),c.delete(t),S}function Gh(e,t,n,i,l,c,h){switch(n){case Rt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case tn:return!(e.byteLength!=t.byteLength||!c(new Pn(e),new Pn(t)));case Yt:case Zt:case Jt:return De(+e,+t);case Sn:return e.name==t.name&&e.message==t.message;case Xt:case jt:return e==t+"";case Ne:var m=Jr;case He:var _=i&Fe;if(m||(m=Ln),e.size!=t.size&&!_)return!1;var w=h.get(e);if(w)return w==t;i|=Vt,h.set(e,t);var E=Ko(m(e),m(t),i,l,c,h);return h.delete(e),E;case xn:if(an)return an.call(e)==an.call(t)}return!1}function Yh(e,t,n,i,l,c){var h=n&Fe,m=Ei(e),_=m.length,w=Ei(t),E=w.length;if(_!=E&&!h)return!1;for(var b=_;b--;){var S=m[b];if(!(h?S in t:V.call(t,S)))return!1}var $=c.get(e),B=c.get(t);if($&&B)return $==t&&B==e;var D=!0;c.set(e,t),c.set(t,e);for(var L=h;++b<_;){S=m[b];var F=e[S],W=t[S];if(i)var be=h?i(W,F,S,t,e,c):i(F,W,S,e,t,c);if(!(be===r?F===W||l(F,W,n,i,c):be)){D=!1;break}L||(L=S=="constructor")}if(D&&!L){var de=e.constructor,Ae=t.constructor;de!=Ae&&"constructor"in e&&"constructor"in t&&!(typeof de=="function"&&de instanceof de&&typeof Ae=="function"&&Ae instanceof Ae)&&(D=!1)}return c.delete(e),c.delete(t),D}function je(e){return Oi(Xo(e,r,ll),e+"")}function Ei(e){return fo(e,se,Ri)}function bi(e){return fo(e,pe,zo)}var Ai=Vn?function(e){return Vn.get(e)}:Mi;function sr(e){for(var t=e.name+"",n=Nt[t],i=V.call(Nt,t)?n.length:0;i--;){var l=n[i],c=l.func;if(c==null||c==e)return l.name}return t}function Dt(e){var t=V.call(a,"placeholder")?a:e;return t.placeholder}function q(){var e=a.iteratee||Ui;return e=e===Ui?mo:e,arguments.length?e(arguments[0],arguments[1]):e}function or(e,t){var n=e.__data__;return rg(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Si(e){for(var t=se(e),n=t.length;n--;){var i=t[n],l=e[i];t[n]=[i,l,Zo(l)]}return t}function Ct(e,t){var n=od(e,t);return go(n)?n:r}function Zh(e){var t=V.call(e,mt),n=e[mt];try{e[mt]=r;var i=!0}catch{}var l=In.call(e);return i&&(t?e[mt]=n:delete e[mt]),l}var Ri=jr?function(e){return e==null?[]:(e=K(e),it(jr(e),function(t){return Xs.call(e,t)}))}:Qi,zo=jr?function(e){for(var t=[];e;)st(t,Ri(e)),e=Fn(e);return t}:Qi,ue=ce;(ei&&ue(new ei(new ArrayBuffer(1)))!=Rt||sn&&ue(new sn)!=Ne||ti&&ue(ti.resolve())!=as||Lt&&ue(new Lt)!=He||on&&ue(new on)!=en)&&(ue=function(e){var t=ce(e),n=t==Ge?e.constructor:r,i=n?wt(n):"";if(i)switch(i){case Bd:return Rt;case Ld:return Ne;case Nd:return as;case Hd:return He;case Td:return en}return t});function Jh(e,t,n){for(var i=-1,l=n.length;++i<l;){var c=n[i],h=c.size;switch(c.type){case"drop":e+=h;break;case"dropRight":t-=h;break;case"take":t=ae(t,e+h);break;case"takeRight":e=re(e,t-h);break}}return{start:e,end:t}}function Xh(e){var t=e.match(rf);return t?t[1].split(sf):[]}function Go(e,t,n){t=ct(t,e);for(var i=-1,l=t.length,c=!1;++i<l;){var h=Qe(t[i]);if(!(c=e!=null&&n(e,h)))break;e=e[h]}return c||++i!=l?c:(l=e==null?0:e.length,!!l&&hr(l)&&et(h,l)&&(H(e)||Et(e)))}function jh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&V.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Yo(e){return typeof e.constructor=="function"&&!mn(e)?Ht(Fn(e)):{}}function eg(e,t,n){var i=e.constructor;switch(t){case tn:return yi(e);case Yt:case Zt:return new i(+e);case Rt:return Ih(e,n);case Sr:case Rr:case xr:case kr:case $r:case Or:case qr:case Br:case Lr:return qo(e,n);case Ne:return new i;case Jt:case jt:return new i(e);case Xt:return Dh(e);case He:return new i;case xn:return Ph(e)}}function tg(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(nf,`{
|
|
16
|
+
})(this,function(ht,g){"use strict";const ee=(o,s)=>{const r=o.__vccOpts||o;for(const[d,f]of s)r[d]=f;return r},Pl={name:"q-widget-q-modal",props:{modal:{type:Object,default:()=>({})}},data(){return{}},computed:{body(){return this.modal.body},css(){return this.modal.css},countdown(){return this.modal.countdown},label(){return this.modal.label},model(){return this.modal.model},onCancel(){return this.modal.onCancel},onClose(){return this.modal.onClose},onConfirm(){return this.modal.onConfirm},title(){return this.modal.title}},methods:{onFinish(){this.modal.onFinish()},qForm(o){this.modal.qForm(o)},qList(o){this.modal.qList(o)}}},Fl={class:"q-widget-q-modal __modal"};function Ul(o,s,r,d,f,u){const v=g.resolveComponent("q-modal",!0);return g.openBlock(),g.createElementBlock("div",Fl,[g.createVNode(v,{body:u.body,countdown:u.countdown,css:u.css,label:u.label,model:u.model,onCancel:u.onCancel,onClose:u.onClose,onConfirm:u.onConfirm,title:u.title,onOnFinish:u.onFinish,onQForm:u.qForm,onQList:u.qList},null,8,["body","countdown","css","label","model","onCancel","onClose","onConfirm","title","onOnFinish","onQForm","onQList"])])}const Wl=ee(Pl,[["render",Ul],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/QModal.vue"]]);function Ml({controller:o,state:s,saveControllerState:r}){const{saveStateKeys:d=[]}=o,f=d.reduce((u,v)=>({...u,...Ki({keys:v.split("."),obj:s})}),{});return r({data:f})}function Ki({keys:o,obj:s}){const r=o.shift();return{[r]:o.length===0?s[r]:Ki({keys:o,obj:s[r]})}}function Ut({component:o,message:s,modalConfig:r={}}){const{countdown:d,label:f,title:u,canClose:v=!0}=r,R={body:[{customComponentName:"q-modal-region-tool-html",html:s}],countdown:d,label:f,onClose:v?()=>{o.modal=null}:null,title:u||"Error"};o.modal=R}class Ql{static exec({config:s,keys:r,permissions:d}){Array.isArray(s)||console.log("can not handle these buttons");const f=r.shift();return r.length!==0&&console.log(`can not handle ${r.join(".")}`),Vl({buttons:s,key:f,permissions:d})}}function Vl({buttons:o,key:s,permissions:r}){return o.map(d=>{if(Kl(s,d)){const f=d.permissions||[];return{...d,permissions:[...f,...r]}}return d})}function Kl(o,s){const{buttonType:r,id:d,label:f}=s;return o===d||o===f||o===r}class zl{static exec({config:s,keys:r,permissions:d}){return pr({layout:s,keys:r,permissions:d})}}function pr({layout:o,keys:s,permissions:r}){const d=s[0],{children:f,permissions:u}=o;if(Gl(d,o)){if(s.shift(),s.length===0)return{...o,permissions:[...u||[],...r]};if(Array.isArray(f))return{...o,children:f.map(v=>pr({layout:v,keys:[...s],permissions:r}))};console.log(`can not handle ${s.join(".")}`)}return Array.isArray(f)?{...o,children:f.map(v=>pr({layout:v,keys:[...s],permissions:r}))}:o}function Gl(o,s){const{id:r,name:d}=s;return o===r||o===d}class Yl{static exec({config:s,keys:r,permissions:d}){const f=r.shift();let u=null;switch(f){case"buttons":{u=Ql;break}case"layout":{u=zl;break}default:{u=null;break}}return!u||typeof u.exec!="function"?s:{...s,[f]:u.exec({config:s[f],keys:[...r],permissions:d})}}}class Zl{static exec({config:s,keys:r,permissions:d}){Array.isArray(s)||console.log("can not handle these actions");const f=r.shift();return r.length!==0&&console.log(`can not handle ${r.join(".")}`),Jl({actions:s,key:f,permissions:d})}}function Jl({actions:o,key:s,permissions:r}){return o.map(d=>{if(Xl(s,d)){const f=d.permissions||[];return{...d,permissions:[...f,...r]}}return d})}function Xl(o,s){const{id:r,label:d}=s;return o===r||o===d}class jl{static exec({config:s,keys:r,permissions:d}){const f=r.shift();switch(f){case"actions":return{...s,actions:ea({actions:s[f],keys:r,permissions:d})};default:return s}}}function ea({actions:o,keys:s,permissions:r}){Array.isArray(o)||console.log("can not handle these actions");const d=s.shift();return s.length!==0?(console.log(`can not handle ${s.join(".")}`),o):o.map(f=>{if(ta(d,f)){const u=f.permissions||[];return{...f,permissions:[...u,...r]}}return f})}function ta(o,s){const{id:r,label:d}=s;return o===r||o===d}class na{static exec({config:s,keys:r,permissions:d}){return Array.isArray(s)||console.log("can not handle these actions"),zi({headers:s,keys:r,permissions:d})}}function zi({headers:o,keys:s,permissions:r}){const d=s.shift();return o.map(f=>{if(ra(d,f)){const{permissions:u,children:v}=f;return s.length!==0?Array.isArray(v)&&v.length>0?{...f,children:zi({headers:v,keys:s,permissions:r})}:(console.log(`can not handle ${s.join(".")}`),f):{...f,permissions:[...u||[],...r]}}return f})}function ra(o,s){const{id:r,label:d,key:f}=s;return o===r||o===d||o===f}class ia{static exec({config:s,keys:r,permissions:d}){const f=r.shift();let u=null;switch(f){case"actions":{u=Zl;break}case"bulkAction":{u=jl;break}case"headers":{u=na;break}default:{u=null;break}}return!u||typeof u.exec!="function"?s:{...s,[f]:u.exec({config:s[f],keys:[...r],permissions:d})}}}const sa={ElementQForm:Yl,ElementQList:ia};function oa({config:o,configPermissions:s=[],type:r}){return s.reduce((f,u)=>{const v=la(r);if(!v||typeof v.exec!="function")return console.log("no config handler"),f;const{key:R,value:T}=u;return v.exec({config:f,keys:R.split("."),permissions:T})},o)}function la(o){return sa[o]||null}function Gi(o){return o!=null&&typeof o!="boolean"&&String(o).trim()!==""&&!isNaN(Number(o))}function _r(o,s,r,d){if(!o)return!0;if(typeof r!="function"||d&&typeof d!="function")return!1;const{key:f="",value:u,placeholder:v,keyValuePath:R=""}=o,[T]=Object.keys(u);if(!f&&typeof v>"u")switch(T){case"$and":return u.$and.reduce((A,O)=>A&&_r(O,s,r,d),!0);case"$or":return u.$or.reduce((A,O)=>A||_r(O,s,r,d),!1);default:return!1}let x=typeof v>"u"?r(f,s):v;if(R){const A=d.toObject(x);x=r(R,A)}switch(T){case"$after":{if(Gi(u?.$after)){const A=Number(String(u?.$after));return Date.now()>A}return!1}case"$before":{if(Gi(u?.$before)){const A=Number(String(u?.$before));return Date.now()<A}return!1}case"$empty":return x==null===u.$empty;case"$eq":return x===u.$eq;case"$gt":return x>u.$gt;case"$gte":return x>=u.$gte;case"$hasOverlap":return aa(x,u.$hasOverlap);case"$lt":return x<u.$lt;case"$lte":return x<=u.$lte;case"$in":return Array.isArray(x)?!!x.find(A=>u.$in.includes(A)):typeof x!="object"?!!u.$in.includes(x):!1;case"$inValue":{const A=r(u.$inValue,s),O=Array.isArray(A)?A:[];return Array.isArray(x)?!!x.find(ie=>O.includes(ie)):typeof x=="string"?!!O.includes(x):!1}case"$ne":return x!==u.$ne;case"$notIn":return Array.isArray(x)?!x.find(A=>u.$notIn.includes(A)):typeof x!="object"?!u.$notIn.includes(x):!1;case"$intervalTimeGt":{const A=new Date().getTime(),O=new Date(x).getTime();return A-O>u.$intervalTimeGt}case"$intervalTimeLt":{const A=new Date().getTime(),O=new Date(x).getTime();return A-O<u.$intervalTimeLt}case"$isToday":{const A=new Date,O=A.setHours(0,0,0,0),ie=A.setHours(23,59,59,59),he=new Date(x).getTime();return(O<=he&&ie>=he)===u.$isToday}case"$notInValue":{const A=r(u.$notInValue,s),O=Array.isArray(A)?A:[];return Array.isArray(x)?!x.find(ie=>O.includes(ie)):typeof x!="object"?!O.includes(x):!1}case"$range":{const[A,O]=u.$range;return typeof A=="number"&&typeof O=="number"&&x>=A&&x<=O}default:return!1}}function aa(o,s){let r=o,d=s;typeof r=="string"&&(r=r.split(",")),typeof d=="string"&&(d=d.split(","));const f=new Set(r);return d.find(u=>f.has(u))}function vn(o,s){let r=o,d=s;if(typeof o=="string"&&(r=r.split(".")),!Array.isArray(o)&&typeof o=="object"){const{keys:u,obj:v}=o;r=u,d=v}if(r.length===0)return d;const f=r.shift();return d&&Object.prototype.hasOwnProperty.call(d,f)?vn(r,d[f]):d&&f?r.length>0?vn(r,d[f]):d[f]:d}function ua(o,s=/\$\{(.+?)\}/g,r,d){if(!o)return"";const f=typeof d=="function"?d:vn,u=new RegExp(s,"g");return o.replace(u,(v,R)=>{const T=f({keys:R.split("."),obj:r});return T==null?"":typeof T=="object"?JSON.stringify(T):T})}class Yi{constructor(s={}){s=s||{},this.key=s.key||null,this.value=typeof s.value<"u"?s.value:""}static init(s={}){if(s instanceof this)return s;const r=new this(s);return r.isValid?r:null}static initFromArray(s=[]){return Array.isArray(s)?s.map(r=>this.init(r)):[]}static initOnlyValidFromArray(s=[]){return this.initFromArray(s).filter(r=>r)}static get _classname(){return"KeyValueObject"}static get _superclass(){return"KeyValueObject"}static addItem(s,r,d){s.push(this.init({key:r,value:d}))}static addRecord(s=[],r,d){return this.hasKeyValue(s,r,d)||s.push(this.init({key:r,value:d})),s}static appendRecord(s=[],r,d){return s.map(f=>(this.sameKey(f,r)&&(f.value=[...f.value,...d]),f))}static appendValueArray(s=[],r,d){return s.map(f=>(this.sameKey(f,r)&&(f.value=[...f.value,...d]),f))}static foundByKey(s=[],r){return s.find(f=>this.sameKey(f,r))||null}static foundValueByKey(s=[],r){const d=this.foundByKey(s,r);return d?d.value:null}static fromObject(s={}){return Object.keys(s).reduce((r,d)=>(r.push(this.init({key:d,value:s[d]})),r),[])}static getValueByKey(s=[],r){return this.foundValueByKey(s,r)}static getValueByKeyFromArray(s=[],r){if(s.length===0)return null;const f=s.shift().find(u=>this.sameKey(u,r));return f&&f.value?f.value:this.getValueByKeyFromArray(s,r)}static getValuesByKey(s=[],r){return s.reduce((d,f)=>(this.sameKey(f,r)&&d.push(f.value),d),[])}static hasKeyValue(s=[],r,d){return typeof d>"u"?s.filter(f=>this.sameKey(f,r)).length>0:s.filter(f=>this.sameKey(f,r)&&Zi(f.value,d)).length>0}static insertOrUpdateRecord(s=[],r,d){let f=[...s];return this.hasKeyValue(s,r)?f=this.updateRecord(s,r,d):f.push(this.init({key:r,value:d})),f}static keys(s=[]){return Array.isArray(s)?s.reduce((r,d)=>(r.push(d.key),r),[]):[]}static merge(s,r){return(r||[]).map(d=>{const f=s.find(u=>u.key===d.key);f?f.value=ca(d.value,f.value):s.push(d)}),s}static removeByKey(s,r){return s.reduce((d,f)=>(this.sameKey(f,r)||d.push(f),d),[])}static sameKey(s,r){return s?Zi(s.key,r):!1}static toObject(s=[]){return Array.isArray(s)?s.reduce((r,d)=>(r[d.key]=d.value,r),{}):{}}static toString(s=[],r="; "){return Array.isArray(s)?s.reduce((d,f)=>(d.push(`${f.key}: ${f.value}`),d),[]).join(r):""}static updateRecord(s=[],r,d){return s.map(f=>this.sameKey(f,r)?{...f,value:d}:f)}static updateOrInsertRecord(s=[],r,d){return this.insertOrUpdateRecord(s,r,d)}static updateRecordsFromArray(s=[],r=[]){if(Array.isArray(s)&&Array.isArray(r)){const d=this.toObject(s),f=this.toObject(r);return this.fromObject({...d,...f})}return[]}static values(s=[]){return Array.isArray(s)?s.reduce((r,d)=>(r.push(d.value),r),[]):[]}get isValid(){return!!this.key}get toObject(){const s={};return this.isValid&&(s[this.key]=this.value),s}}function ca(o,s){return o===void 0?s:Array.isArray(o)&&Array.isArray(s)?[...new Set([...o,...s])]:typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)?{...o,...s}:s}function Zi(o,s){return o===s}function yn({keys:o,obj:s}){return vn(o,s)}function fa(o,s,r){return ua(o,s,r,yn)}function vr({rule:o,data:s}){return _r(o,s,da,Yi)}function da(o,s){const r=o.split(".");return yn({keys:r,obj:s})}function yr(o,s){return ha(o,s,yn,vr)}function ha(o,s,r,d){return!Array.isArray(o)||o.length===0?"":o.reduce((f,u)=>{const{type:v,value:R="",restriction:T,template:x}=u;if(d({rule:T,data:s}))switch(v){case"label":{f+=R.toString();break}case"value":{const A=r({keys:R.split("."),obj:s})||"";f+=A.toString();break}case"array":{const A=r({keys:R.split("."),obj:s})||[];f+=A.reduce((O,ie)=>O+=yr(x,ie),"");break}case"group":{f+=yr(x,s);break}case"ellipsis":{const{maxLength:A}=u,O=r({keys:R.split("."),obj:s})||"";O.length<=A?f+=O.toString():f+=`${O.substr(0,A)}...`;break}default:{f+=R.toString();break}}return f},"")}function Cr(o){return`${o}-${Math.floor(Math.random()*1e9)}`}const ga=Object.freeze(Object.defineProperty({__proto__:null,KeyValueObject:Yi,convertString:fa,getStringByArr:yr,getValidation:vr,getValueByKeys:yn,setId:Cr},Symbol.toStringTag,{value:"Module"}));class wr{constructor(s={}){this.css=s.css,this.configType="Config"}get isValid(){return!!this}static init(s){const r=new this(s);return r.isValid?r:null}}function ma(o,s){const{button:r,klass:d}=o,{element:f}=s,u=f.getState()||{},{formData:v={}}=u;class R extends d{constructor(x){super(x),this.hidden=x.hidden||!1,this.permissionResult=x.permissionResult,this.permissionResultHandler(this.permissionResult)}get isValid(){return!this.hidden&&super.isValid}static init(x,A){if(x instanceof R)return x;const O=x.permissions?A.permissionHandler(x.permissions,v):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},ie=new R({...x,permissionResult:O});return ie.isValid?ie:null}permissionResultHandler(x){const{event:A,isAllowCreate:O,isAllowRead:ie,isAllowUpdate:he,isAllowDelete:Fe}=x;A?typeof this[A]=="function"?this[A]({val:!0}):console.log(`do not have the event ${A}`):O&&ie&&he&&Fe||this.setHidden({val:!0})}setDisabled({val:x}){this.disabled=x}setHidden({val:x}){this.hidden=x}}return R.init(r,s)}function pa(o,s){const{layout:r,klass:d}=o,{element:f}=s,u=f.getState()||{},{formData:v={}}=u;class R extends d{constructor(A){super(A),this.permissionResult=A.permissions?s.permissionHandler(A.permissions,v):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},this.permissionResultHandler(this.permissionResult)}permissionResultHandler(A){const{event:O,isAllowCreate:ie,isAllowRead:he,isAllowUpdate:Fe,isAllowDelete:Vt}=A;O?typeof this[O]=="function"?this[O]({val:!0}):console.log(`do not have the event ${O}`):he?Fe||this.setPreview({val:!0}):this.setHidden({val:!0}),Array.isArray(this.children)&&this.children.forEach(ve=>{ve.permissionResultHandler(A)})}update(A){super.update(A),this.permissionResultHandler(this.permissionResult)}setDecoratorDisabled({val:A}){this.setDisabled({val:A})}setDecoratorHidden({val:A}){this.setHidden({val:A})}setDecoratorPreview({val:A}){this.setPreview({val:A})}}return R.init(r)}function _a(o){return s=>{const{type:r}=s;switch(r){case"button":return ma(s,o);case"node":return pa(s,o);default:return null}}}class Ji extends wr{constructor(s={}){super(s),this.configType="ElementQFormConfig",this.buttons=s.buttons,this.css=s.css||{},this.disabledForm=s.disabledForm||!1,this.eventName=s.eventName||{},this.formHandler=_a(s.helpers),this.layout=s.layout,this.previewForm=s.previewForm||!1,this.updateLayoutConfigs=s.updateLayoutConfigs||[]}get isValid(){return!!this}static init(s){const r=new this(s);return r.isValid?r:null}}function va({helpers:o}){const{element:s}=o,{getClasses:r}=s.getHandlers(),{Cell:d}=o.qGrid;class f extends d{constructor(v){super(v),typeof v.hidden=="function"?this.permissionHidden=v.hidden(this.item.item,this):this.permissionHidden=v.hidden||!1,this.permissionResult=v.permissionResult,this.permissionResultHandler(this.permissionResult,v.customComponentName)}get isValid(){return this.permissionHidden===!1}static init(v){const{permissions:R}=v,T=R?o.permissionHandler(R):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},x=new this({...v,permissionResult:T});return x.isValid?x:null}permissionResultHandler(v,R){const{event:T,isAllowCreate:x,isAllowRead:A,isAllowUpdate:O,isAllowDelete:ie}=v;if(T){typeof this[T]=="function"?this[T]({val:!0}):console.log(`do not have the event ${T}`);return}(!(R==="q-grid-body-row-cell-button")&&!A||!(x&&A&&O&&ie))&&this.setPermissionHidden({val:!0})}setPermissionHidden({val:v}){this.permissionHidden=v}}return typeof r!="function"?{Cell:f}:r({helpers:{Cell:f,...o}})}class Xi extends wr{constructor(s={}){super(s),this.configType="ElementQGridConfig",this.classes=va({helpers:s.helpers}),this.converter=ya({helpers:s.helpers}),this.eventName=s.eventName,this.layout=s.layout,this.fillLastRow=s.fillLastRow,this.placeholder=s.placeholder,this.urlDelegate=s.urlDelegate}get isValid(){return!!this}static init(s){const r=new this(s);return r.isValid?r:null}}function ya({helpers:o}){const{element:s}=o,{converter:r}=s.getHandlers();if(typeof r!="function")return f=>f;const{QItem:d}=o.qGrid;return r({helpers:{QItem:d,...o}})}function Ca({helpers:o}){const{QListBulkButton:s}=o.qList,{getValidation:r}=o.qUtilities;class d extends s{constructor(u){super(u),this.hidden=u.hidden||!1,this.permissionResult=u.permissionResult,this.permissionResultHandler(this.permissionResult)}get isValid(){return!this.hidden}static init(u,v){if(u instanceof d)return u;const{restriction:R,permissions:T}=u,x=v.controller.getState();if(!r({rule:R,data:x}))return null;const A=T?v.permissionHandler(T):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},O=new d({...u,permissionResult:A});return O.isValid?O:null}static initFromArray(u,v){return Array.isArray(u)?u.map(R=>this.init(R,v)):[]}static initOnlyValidFromArray(u,v){return this.initFromArray(u,v).filter(R=>R)}permissionResultHandler(u){const{event:v,isAllowCreate:R,isAllowRead:T,isAllowUpdate:x,isAllowDelete:A}=u;v?typeof this[v]=="function"?this[v]({val:!0}):console.log(`do not have the event ${v}`):R&&T&&x&&A||this.setHidden({val:!0})}setHidden({val:u}){this.hidden=u}}return d}function wa({helpers:o}){const{QListButton:s}=o.qList;class r extends s{constructor(f){super(f),this.endpoint=ji(f.endpoint,f.qRow),this.httpMethod=f.httpMethod,this.hidden=f.hidden||!1,this.permissionResult=f.permissionResult,this.permissionResultHandler(this.permissionResult),this.url=ji(f.url,f.qRow)}get isValid(){return!this.hidden&&super.isValid}static init(f,u){if(f instanceof r)return f;const v=f.permissions?u.permissionHandler(f.permissions,f.qRow.get()):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},R=new r({...f,permissionResult:v});return R.isValid?R:null}static initFromArray(f,u){return Array.isArray(f)?f.map(v=>this.init(v,u)):[]}static initOnlyValidFromArray(f,u){return this.initFromArray(f,u).filter(v=>v)}permissionResultHandler(f){const{event:u,isAllowCreate:v,isAllowRead:R,isAllowUpdate:T,isAllowDelete:x}=f;u?typeof this[u]=="function"?this[u]({val:!0}):console.log(`do not have the event ${u}`):v&&R&&T&&x||this.setHidden({val:!0})}setHidden({val:f}){this.hidden=f}}return r}function ji(o,s){if(!o)return"";const r=/\$\{(.+?)\}/g;return o.replace(r,(d,f)=>s.get(f.trim()))}function Ea(){class o{constructor(r){Object.keys(r).forEach(d=>{this[d]=r[d]}),this.hidden=r.hidden||!1,this.permissionResult=r.permissionResult,this.permissionResultHandler(this.permissionResult)}get isValid(){return!this.hidden}static init(r,d){if(r instanceof o)return r;const{children:f,permissions:u}=r,v=u?d.permissionHandler(u):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},R=new o({...r,children:Array.isArray(f)?this.initOnlyValidFromArray(f,d):null,permissionResult:v});return R.isValid?R:null}static initFromArray(r,d){return Array.isArray(r)?r.map(f=>this.init(f,d)):[]}static initOnlyValidFromArray(r,d){return this.initFromArray(r,d).filter(f=>f)}permissionResultHandler(r){const{event:d,isAllowCreate:f,isAllowRead:u,isAllowUpdate:v,isAllowDelete:R}=r;d?typeof this[d]=="function"?this[d]({val:!0}):console.log(`do not have the event ${d}`):u||this.setHidden({val:!0})}setHidden({val:r}){this.hidden=r}}return o}class es extends wr{constructor(s={}){super(s),this.configType="ElementQListConfig",this.bulkAction=ba({bulkAction:s.bulkAction,helpers:s.helpers}),this.converter=Sa({actions:s.actions,helpers:s.helpers}),this.css=s.css,this.eventName=s.eventName,this.expansion=s.expansion,this.headers=Aa({headers:s.headers,helpers:s.helpers}),this.listStyle=s.listStyle||"q-list-table",this.listShowFooter=s.showFooter||!1,this.listSortBys=s.sortBys,this.noDataMessage=s.noDataMessage}get isValid(){return!!this}static init(s){const r=new this(s);return r.isValid?r:null}}function ba({bulkAction:o={},helpers:s}){const r=Ca({helpers:s});return{...o,actions:r.initOnlyValidFromArray(o.actions,s)}}function Aa({headers:o,helpers:s}){return Ea().initOnlyValidFromArray(o,s)}function Sa({actions:o,helpers:s}){const{QRow:r}=s.qList,d=wa({helpers:s}),f={QListButton:d,QRow:r,...s},{element:u}=f,{converter:v}=u.getHandlers();return typeof v!="function"?R=>r.init({row:R,getActions:(T,x)=>{const{actions:A=[]}=x||{};return A.map(O=>d.init({...O,qRow:T},s)).filter(O=>O)}}):v({actions:o,helpers:f})}const Ra=["setHidden","setVisible"];class Er{constructor(s={}){this.id=s.id||Cr("node"),this.css=s.css||"",this.hidden=s.hidden||!1,this.nodeType="Node",this.observers=s.observers||[],this.permissionResult=s.permissionResult,this.permissionResultHandler(this.permissionResult)}get isValid(){return!!this.id}get isVisible(){return!this.hidden}get isCreated(){return!!this}static init(s){const r=new this(s);return r.isValid?r:null}getElementState(){return this}getType(){return this.type}isExist(s){const{name:r}=this;return!!s.find(d=>r&&d.name===r)}handleObservers(s){this.observers.forEach(r=>{const{key:d,value:f,condition:u}=r,v=vr({rule:u,data:s});v&&xa(d)&&typeof this[d]=="function"&&this[d]({value:f,val:v})})}permissionResultHandler(s){const{event:r,isAllowCreate:d,isAllowRead:f,isAllowUpdate:u,isAllowDelete:v}=s;r?typeof this[r]=="function"?this[r]({val:!0}):console.log(`do not have the event ${r}`):d&&f&&u&&v||this.setHidden({val:!0})}resetNode(){this.component=null}setHidden({val:s}){this.hidden=s,s&&this.resetNode()}setVisible(s){this.setHidden({...s,val:!s.val})}updateElementState(s){return this.handleObservers(s),this}}function xa(o){return Ra.includes(o)}let Wt=class extends Er{constructor(s={}){super(s),this.children=s.children||[],this.nodeType="Container"}get isCreated(){return super.isCreated&&!!this.isVisibleChildrenCreated}get isVisibleChildrenCreated(){return this.getVisibleChildren().reduce((s,r)=>s&&r.isCreated,!0)}get validChildren(){return this.children.filter(s=>s)}getElements(){return this.validChildren.reduce((s,r)=>[...s,...r.getElements()],[])}getElementState(){return this.validChildren.reduce((s,r)=>({...s,...r.getElementState()}),{})}getVisibleChildren(){return this.validChildren.filter(s=>s.isVisible)}updateElementState(s){return super.updateElementState(s),this.validChildren.forEach(r=>r.updateElementState(s)),this}};class ka extends Wt{constructor(s={}){super(s),this.nodeType="ContainerBox"}}class $a extends Wt{constructor(s={}){super(s),this.nodeType="ContainerColumn"}}class Oa extends Wt{constructor(s={}){super(s),this.nodeType="ContainerHeaderSticky"}}class qa extends Wt{constructor(s={}){super(s),this.nodeType="ContainerRow"}}const Ba={ContainerBox:ka,ContainerColumn:$a,ContainerHeaderSticky:Oa,ContainerRow:qa};let Se=class extends Er{constructor(s={}){super(s),this.controllerHelpers=s.controllerHelpers,this.configPermissions=s.configPermissions,this.name=s.name,this.nodeType=s.nodeType||"Element",this.state={},this.configHandler(s.config)}get isCreated(){return super.isCreated&&!!this.component}get isValid(){return super.isValid&&!!this.name}get hasConfigPermissions(){return!!this.configPermissions}get stateName(){return{...this.defaultStateName,...this.config.stateName}}addComponent(s){this.component=s}configHandler(s={}){this.hasConfigPermissions?this.config=oa({config:s,configPermissions:this.configPermissions,type:this.nodeType}):this.config=s}getConfig(){return this.config||{}}getComponent(){return this.component}getElements(){return[this]}getElementName(){return this.name}getHandlers(){const s=this.getElementName(),{elementHandlers:r={}}=this.state;return r[s]||{}}getState(){return this.state}getElementState(){return La(this.state,this.stateName)}onCreated({component:s,payload:r={},reRender:d=null}){return this.addComponent(s),this.updateState(r),this.reRender=d,this}update(s){this.updateElementState(s)}updateState(s){this.state={...this.state,...s}}updateElementState(s){super.updateElementState(s);const r=Na(s,this.stateName);return this.updateState(r),this}};function La(o,s){return Object.keys(s).reduce((r,d)=>{const f=s[d],u=o[d];return{...r,[f]:u}},{})}function Na(o,s){return Object.keys(s).reduce((r,d)=>{const f=s[d],u=o[f];return delete r[f],{...r,[d]:u}},{...o})}class Ha extends Se{constructor(s={}){super(s),this.defaultStateName={qButton:"qButton"}}getConfig(){return{...this.state.qButton||{},...this.config||{},...this.state[this.name]||{}}}}class Ta extends Se{constructor(s={}){super(s),this.defaultStateName={qComponent:"qComponent"}}getConfig(){return{...this.state.qComponent||{},...this.config||{},...this.state[this.name]||{}}}}var Mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ia(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Cn={exports:{}};Cn.exports,function(o,s){(function(){var r,d="4.17.21",f=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",R="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",x=500,A="__lodash_placeholder__",O=1,ie=2,he=4,Fe=1,Vt=2,ve=1,bt=2,ss=4,Ve=8,Kt=16,Ke=32,zt=64,ze=128,Gt=256,Ar=512,kc=30,$c="...",Oc=800,qc=16,os=1,Bc=2,Lc=3,En=1/0,At=9007199254740991,Nc=17976931348623157e292,bn=NaN,Ue=4294967295,Hc=Ue-1,Tc=Ue>>>1,Ic=[["ary",ze],["bind",ve],["bindKey",bt],["curry",Ve],["curryRight",Kt],["flip",Ar],["partial",Ke],["partialRight",zt],["rearg",Gt]],St="[object Arguments]",An="[object Array]",Dc="[object AsyncFunction]",Yt="[object Boolean]",Zt="[object Date]",Pc="[object DOMException]",Sn="[object Error]",Rn="[object Function]",ls="[object GeneratorFunction]",Ne="[object Map]",Jt="[object Number]",Fc="[object Null]",Ge="[object Object]",as="[object Promise]",Uc="[object Proxy]",Xt="[object RegExp]",He="[object Set]",jt="[object String]",xn="[object Symbol]",Wc="[object Undefined]",en="[object WeakMap]",Mc="[object WeakSet]",tn="[object ArrayBuffer]",Rt="[object DataView]",Sr="[object Float32Array]",Rr="[object Float64Array]",xr="[object Int8Array]",kr="[object Int16Array]",$r="[object Int32Array]",Or="[object Uint8Array]",qr="[object Uint8ClampedArray]",Br="[object Uint16Array]",Lr="[object Uint32Array]",Qc=/\b__p \+= '';/g,Vc=/\b(__p \+=) '' \+/g,Kc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,us=/&(?:amp|lt|gt|quot|#39);/g,cs=/[&<>"']/g,zc=RegExp(us.source),Gc=RegExp(cs.source),Yc=/<%-([\s\S]+?)%>/g,Zc=/<%([\s\S]+?)%>/g,fs=/<%=([\s\S]+?)%>/g,Jc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xc=/^\w*$/,jc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nr=/[\\^$.*+?()[\]{}|]/g,ef=RegExp(Nr.source),Hr=/^\s+/,tf=/\s/,nf=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,rf=/\{\n\/\* \[wrapped with (.+)\] \*/,sf=/,? & /,of=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lf=/[()=,{}\[\]\/\s]/,af=/\\(\\)?/g,uf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ds=/\w*$/,cf=/^[-+]0x[0-9a-f]+$/i,ff=/^0b[01]+$/i,df=/^\[object .+?Constructor\]$/,hf=/^0o[0-7]+$/i,gf=/^(?:0|[1-9]\d*)$/,mf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kn=/($^)/,pf=/['\n\r\u2028\u2029\\]/g,$n="\\ud800-\\udfff",_f="\\u0300-\\u036f",vf="\\ufe20-\\ufe2f",yf="\\u20d0-\\u20ff",hs=_f+vf+yf,gs="\\u2700-\\u27bf",ms="a-z\\xdf-\\xf6\\xf8-\\xff",Cf="\\xac\\xb1\\xd7\\xf7",wf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ef="\\u2000-\\u206f",bf=" \\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",ps="A-Z\\xc0-\\xd6\\xd8-\\xde",_s="\\ufe0e\\ufe0f",vs=Cf+wf+Ef+bf,Tr="['’]",Af="["+$n+"]",ys="["+vs+"]",On="["+hs+"]",Cs="\\d+",Sf="["+gs+"]",ws="["+ms+"]",Es="[^"+$n+vs+Cs+gs+ms+ps+"]",Ir="\\ud83c[\\udffb-\\udfff]",Rf="(?:"+On+"|"+Ir+")",bs="[^"+$n+"]",Dr="(?:\\ud83c[\\udde6-\\uddff]){2}",Pr="[\\ud800-\\udbff][\\udc00-\\udfff]",xt="["+ps+"]",As="\\u200d",Ss="(?:"+ws+"|"+Es+")",xf="(?:"+xt+"|"+Es+")",Rs="(?:"+Tr+"(?:d|ll|m|re|s|t|ve))?",xs="(?:"+Tr+"(?:D|LL|M|RE|S|T|VE))?",ks=Rf+"?",$s="["+_s+"]?",kf="(?:"+As+"(?:"+[bs,Dr,Pr].join("|")+")"+$s+ks+")*",$f="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Of="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Os=$s+ks+kf,qf="(?:"+[Sf,Dr,Pr].join("|")+")"+Os,Bf="(?:"+[bs+On+"?",On,Dr,Pr,Af].join("|")+")",Lf=RegExp(Tr,"g"),Nf=RegExp(On,"g"),Fr=RegExp(Ir+"(?="+Ir+")|"+Bf+Os,"g"),Hf=RegExp([xt+"?"+ws+"+"+Rs+"(?="+[ys,xt,"$"].join("|")+")",xf+"+"+xs+"(?="+[ys,xt+Ss,"$"].join("|")+")",xt+"?"+Ss+"+"+Rs,xt+"+"+xs,Of,$f,Cs,qf].join("|"),"g"),Tf=RegExp("["+As+$n+hs+_s+"]"),If=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Df=["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"],Pf=-1,G={};G[Sr]=G[Rr]=G[xr]=G[kr]=G[$r]=G[Or]=G[qr]=G[Br]=G[Lr]=!0,G[St]=G[An]=G[tn]=G[Yt]=G[Rt]=G[Zt]=G[Sn]=G[Rn]=G[Ne]=G[Jt]=G[Ge]=G[Xt]=G[He]=G[jt]=G[en]=!1;var z={};z[St]=z[An]=z[tn]=z[Rt]=z[Yt]=z[Zt]=z[Sr]=z[Rr]=z[xr]=z[kr]=z[$r]=z[Ne]=z[Jt]=z[Ge]=z[Xt]=z[He]=z[jt]=z[xn]=z[Or]=z[qr]=z[Br]=z[Lr]=!0,z[Sn]=z[Rn]=z[en]=!1;var Ff={À:"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"},Uf={"&":"&","<":"<",">":">",'"':""","'":"'"},Wf={"&":"&","<":"<",">":">",""":'"',"'":"'"},Mf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qf=parseFloat,Vf=parseInt,qs=typeof Mt=="object"&&Mt&&Mt.Object===Object&&Mt,Kf=typeof self=="object"&&self&&self.Object===Object&&self,oe=qs||Kf||Function("return this")(),Ur=s&&!s.nodeType&&s,gt=Ur&&!0&&o&&!o.nodeType&&o,Bs=gt&>.exports===Ur,Wr=Bs&&qs.process,Re=function(){try{var p=gt&>.require&>.require("util").types;return p||Wr&&Wr.binding&&Wr.binding("util")}catch{}}(),Ls=Re&&Re.isArrayBuffer,Ns=Re&&Re.isDate,Hs=Re&&Re.isMap,Ts=Re&&Re.isRegExp,Is=Re&&Re.isSet,Ds=Re&&Re.isTypedArray;function ye(p,C,y){switch(y.length){case 0:return p.call(C);case 1:return p.call(C,y[0]);case 2:return p.call(C,y[0],y[1]);case 3:return p.call(C,y[0],y[1],y[2])}return p.apply(C,y)}function zf(p,C,y,k){for(var N=-1,M=p==null?0:p.length;++N<M;){var ne=p[N];C(k,ne,y(ne),p)}return k}function xe(p,C){for(var y=-1,k=p==null?0:p.length;++y<k&&C(p[y],y,p)!==!1;);return p}function Gf(p,C){for(var y=p==null?0:p.length;y--&&C(p[y],y,p)!==!1;);return p}function Ps(p,C){for(var y=-1,k=p==null?0:p.length;++y<k;)if(!C(p[y],y,p))return!1;return!0}function it(p,C){for(var y=-1,k=p==null?0:p.length,N=0,M=[];++y<k;){var ne=p[y];C(ne,y,p)&&(M[N++]=ne)}return M}function qn(p,C){var y=p==null?0:p.length;return!!y&&kt(p,C,0)>-1}function Mr(p,C,y){for(var k=-1,N=p==null?0:p.length;++k<N;)if(y(C,p[k]))return!0;return!1}function Y(p,C){for(var y=-1,k=p==null?0:p.length,N=Array(k);++y<k;)N[y]=C(p[y],y,p);return N}function st(p,C){for(var y=-1,k=C.length,N=p.length;++y<k;)p[N+y]=C[y];return p}function Qr(p,C,y,k){var N=-1,M=p==null?0:p.length;for(k&&M&&(y=p[++N]);++N<M;)y=C(y,p[N],N,p);return y}function Yf(p,C,y,k){var N=p==null?0:p.length;for(k&&N&&(y=p[--N]);N--;)y=C(y,p[N],N,p);return y}function Vr(p,C){for(var y=-1,k=p==null?0:p.length;++y<k;)if(C(p[y],y,p))return!0;return!1}var Zf=Kr("length");function Jf(p){return p.split("")}function Xf(p){return p.match(of)||[]}function Fs(p,C,y){var k;return y(p,function(N,M,ne){if(C(N,M,ne))return k=M,!1}),k}function Bn(p,C,y,k){for(var N=p.length,M=y+(k?1:-1);k?M--:++M<N;)if(C(p[M],M,p))return M;return-1}function kt(p,C,y){return C===C?cd(p,C,y):Bn(p,Us,y)}function jf(p,C,y,k){for(var N=y-1,M=p.length;++N<M;)if(k(p[N],C))return N;return-1}function Us(p){return p!==p}function Ws(p,C){var y=p==null?0:p.length;return y?Gr(p,C)/y:bn}function Kr(p){return function(C){return C==null?r:C[p]}}function zr(p){return function(C){return p==null?r:p[C]}}function Ms(p,C,y,k,N){return N(p,function(M,ne,K){y=k?(k=!1,M):C(y,M,ne,K)}),y}function ed(p,C){var y=p.length;for(p.sort(C);y--;)p[y]=p[y].value;return p}function Gr(p,C){for(var y,k=-1,N=p.length;++k<N;){var M=C(p[k]);M!==r&&(y=y===r?M:y+M)}return y}function Yr(p,C){for(var y=-1,k=Array(p);++y<p;)k[y]=C(y);return k}function td(p,C){return Y(C,function(y){return[y,p[y]]})}function Qs(p){return p&&p.slice(0,Gs(p)+1).replace(Hr,"")}function Ce(p){return function(C){return p(C)}}function Zr(p,C){return Y(C,function(y){return p[y]})}function nn(p,C){return p.has(C)}function Vs(p,C){for(var y=-1,k=p.length;++y<k&&kt(C,p[y],0)>-1;);return y}function Ks(p,C){for(var y=p.length;y--&&kt(C,p[y],0)>-1;);return y}function nd(p,C){for(var y=p.length,k=0;y--;)p[y]===C&&++k;return k}var rd=zr(Ff),id=zr(Uf);function sd(p){return"\\"+Mf[p]}function od(p,C){return p==null?r:p[C]}function $t(p){return Tf.test(p)}function ld(p){return If.test(p)}function ad(p){for(var C,y=[];!(C=p.next()).done;)y.push(C.value);return y}function Jr(p){var C=-1,y=Array(p.size);return p.forEach(function(k,N){y[++C]=[N,k]}),y}function zs(p,C){return function(y){return p(C(y))}}function ot(p,C){for(var y=-1,k=p.length,N=0,M=[];++y<k;){var ne=p[y];(ne===C||ne===A)&&(p[y]=A,M[N++]=y)}return M}function Ln(p){var C=-1,y=Array(p.size);return p.forEach(function(k){y[++C]=k}),y}function ud(p){var C=-1,y=Array(p.size);return p.forEach(function(k){y[++C]=[k,k]}),y}function cd(p,C,y){for(var k=y-1,N=p.length;++k<N;)if(p[k]===C)return k;return-1}function fd(p,C,y){for(var k=y+1;k--;)if(p[k]===C)return k;return k}function Ot(p){return $t(p)?hd(p):Zf(p)}function Te(p){return $t(p)?gd(p):Jf(p)}function Gs(p){for(var C=p.length;C--&&tf.test(p.charAt(C)););return C}var dd=zr(Wf);function hd(p){for(var C=Fr.lastIndex=0;Fr.test(p);)++C;return C}function gd(p){return p.match(Fr)||[]}function md(p){return p.match(Hf)||[]}var pd=function p(C){C=C==null?oe:qt.defaults(oe.Object(),C,qt.pick(oe,Df));var y=C.Array,k=C.Date,N=C.Error,M=C.Function,ne=C.Math,K=C.Object,Xr=C.RegExp,_d=C.String,ke=C.TypeError,Nn=y.prototype,vd=M.prototype,Bt=K.prototype,Hn=C["__core-js_shared__"],Tn=vd.toString,V=Bt.hasOwnProperty,yd=0,Ys=function(){var e=/[^.]+$/.exec(Hn&&Hn.keys&&Hn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),In=Bt.toString,Cd=Tn.call(K),wd=oe._,Ed=Xr("^"+Tn.call(V).replace(Nr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dn=Bs?C.Buffer:r,lt=C.Symbol,Pn=C.Uint8Array,Zs=Dn?Dn.allocUnsafe:r,Fn=zs(K.getPrototypeOf,K),Js=K.create,Xs=Bt.propertyIsEnumerable,Un=Nn.splice,js=lt?lt.isConcatSpreadable:r,rn=lt?lt.iterator:r,mt=lt?lt.toStringTag:r,Wn=function(){try{var e=Ct(K,"defineProperty");return e({},"",{}),e}catch{}}(),bd=C.clearTimeout!==oe.clearTimeout&&C.clearTimeout,Ad=k&&k.now!==oe.Date.now&&k.now,Sd=C.setTimeout!==oe.setTimeout&&C.setTimeout,Mn=ne.ceil,Qn=ne.floor,jr=K.getOwnPropertySymbols,Rd=Dn?Dn.isBuffer:r,eo=C.isFinite,xd=Nn.join,kd=zs(K.keys,K),re=ne.max,ae=ne.min,$d=k.now,Od=C.parseInt,to=ne.random,qd=Nn.reverse,ei=Ct(C,"DataView"),sn=Ct(C,"Map"),ti=Ct(C,"Promise"),Lt=Ct(C,"Set"),on=Ct(C,"WeakMap"),ln=Ct(K,"create"),Vn=on&&new on,Nt={},Bd=wt(ei),Ld=wt(sn),Nd=wt(ti),Hd=wt(Lt),Td=wt(on),Kn=lt?lt.prototype:r,an=Kn?Kn.valueOf:r,no=Kn?Kn.toString:r;function a(e){if(J(e)&&!H(e)&&!(e instanceof U)){if(e instanceof $e)return e;if(V.call(e,"__wrapped__"))return il(e)}return new $e(e)}var Ht=function(){function e(){}return function(t){if(!Z(t))return{};if(Js)return Js(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function zn(){}function $e(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}a.templateSettings={escape:Yc,evaluate:Zc,interpolate:fs,variable:"",imports:{_:a}},a.prototype=zn.prototype,a.prototype.constructor=a,$e.prototype=Ht(zn.prototype),$e.prototype.constructor=$e;function U(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ue,this.__views__=[]}function Id(){var e=new U(this.__wrapped__);return e.__actions__=ge(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ge(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ge(this.__views__),e}function Dd(){if(this.__filtered__){var e=new U(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Pd(){var e=this.__wrapped__.value(),t=this.__dir__,n=H(e),i=t<0,l=n?e.length:0,c=Jh(0,l,this.__views__),h=c.start,m=c.end,_=m-h,w=i?m:h-1,E=this.__iteratees__,b=E.length,S=0,$=ae(_,this.__takeCount__);if(!n||!i&&l==_&&$==_)return xo(e,this.__actions__);var B=[];e:for(;_--&&S<$;){w+=t;for(var D=-1,L=e[w];++D<b;){var F=E[D],W=F.iteratee,be=F.type,de=W(L);if(be==Bc)L=de;else if(!de){if(be==os)continue e;break e}}B[S++]=L}return B}U.prototype=Ht(zn.prototype),U.prototype.constructor=U;function pt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Fd(){this.__data__=ln?ln(null):{},this.size=0}function Ud(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Wd(e){var t=this.__data__;if(ln){var n=t[e];return n===T?r:n}return V.call(t,e)?t[e]:r}function Md(e){var t=this.__data__;return ln?t[e]!==r:V.call(t,e)}function Qd(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ln&&t===r?T:t,this}pt.prototype.clear=Fd,pt.prototype.delete=Ud,pt.prototype.get=Wd,pt.prototype.has=Md,pt.prototype.set=Qd;function Ye(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Vd(){this.__data__=[],this.size=0}function Kd(e){var t=this.__data__,n=Gn(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Un.call(t,n,1),--this.size,!0}function zd(e){var t=this.__data__,n=Gn(t,e);return n<0?r:t[n][1]}function Gd(e){return Gn(this.__data__,e)>-1}function Yd(e,t){var n=this.__data__,i=Gn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}Ye.prototype.clear=Vd,Ye.prototype.delete=Kd,Ye.prototype.get=zd,Ye.prototype.has=Gd,Ye.prototype.set=Yd;function Ze(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Zd(){this.size=0,this.__data__={hash:new pt,map:new(sn||Ye),string:new pt}}function Jd(e){var t=or(this,e).delete(e);return this.size-=t?1:0,t}function Xd(e){return or(this,e).get(e)}function jd(e){return or(this,e).has(e)}function eh(e,t){var n=or(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}Ze.prototype.clear=Zd,Ze.prototype.delete=Jd,Ze.prototype.get=Xd,Ze.prototype.has=jd,Ze.prototype.set=eh;function _t(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ze;++t<n;)this.add(e[t])}function th(e){return this.__data__.set(e,T),this}function nh(e){return this.__data__.has(e)}_t.prototype.add=_t.prototype.push=th,_t.prototype.has=nh;function Ie(e){var t=this.__data__=new Ye(e);this.size=t.size}function rh(){this.__data__=new Ye,this.size=0}function ih(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function sh(e){return this.__data__.get(e)}function oh(e){return this.__data__.has(e)}function lh(e,t){var n=this.__data__;if(n instanceof Ye){var i=n.__data__;if(!sn||i.length<f-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ze(i)}return n.set(e,t),this.size=n.size,this}Ie.prototype.clear=rh,Ie.prototype.delete=ih,Ie.prototype.get=sh,Ie.prototype.has=oh,Ie.prototype.set=lh;function ro(e,t){var n=H(e),i=!n&&Et(e),l=!n&&!i&&dt(e),c=!n&&!i&&!l&&Pt(e),h=n||i||l||c,m=h?Yr(e.length,_d):[],_=m.length;for(var w in e)(t||V.call(e,w))&&!(h&&(w=="length"||l&&(w=="offset"||w=="parent")||c&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||et(w,_)))&&m.push(w);return m}function io(e){var t=e.length;return t?e[di(0,t-1)]:r}function ah(e,t){return lr(ge(e),vt(t,0,e.length))}function uh(e){return lr(ge(e))}function ni(e,t,n){(n!==r&&!De(e[t],n)||n===r&&!(t in e))&&Je(e,t,n)}function un(e,t,n){var i=e[t];(!(V.call(e,t)&&De(i,n))||n===r&&!(t in e))&&Je(e,t,n)}function Gn(e,t){for(var n=e.length;n--;)if(De(e[n][0],t))return n;return-1}function ch(e,t,n,i){return at(e,function(l,c,h){t(i,l,n(l),h)}),i}function so(e,t){return e&&Me(t,se(t),e)}function fh(e,t){return e&&Me(t,pe(t),e)}function Je(e,t,n){t=="__proto__"&&Wn?Wn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ri(e,t){for(var n=-1,i=t.length,l=y(i),c=e==null;++n<i;)l[n]=c?r:Ii(e,t[n]);return l}function vt(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function Oe(e,t,n,i,l,c){var h,m=t&O,_=t&ie,w=t&he;if(n&&(h=l?n(e,i,l,c):n(e)),h!==r)return h;if(!Z(e))return e;var E=H(e);if(E){if(h=jh(e),!m)return ge(e,h)}else{var b=ue(e),S=b==Rn||b==ls;if(dt(e))return Oo(e,m);if(b==Ge||b==St||S&&!l){if(h=_||S?{}:Yo(e),!m)return _?Wh(e,fh(h,e)):Uh(e,so(h,e))}else{if(!z[b])return l?e:{};h=eg(e,b,m)}}c||(c=new Ie);var $=c.get(e);if($)return $;c.set(e,h),Al(e)?e.forEach(function(L){h.add(Oe(L,t,n,L,e,c))}):El(e)&&e.forEach(function(L,F){h.set(F,Oe(L,t,n,F,e,c))});var B=w?_?bi:Ei:_?pe:se,D=E?r:B(e);return xe(D||e,function(L,F){D&&(F=L,L=e[F]),un(h,F,Oe(L,t,n,F,e,c))}),h}function dh(e){var t=se(e);return function(n){return oo(n,e,t)}}function oo(e,t,n){var i=n.length;if(e==null)return!i;for(e=K(e);i--;){var l=n[i],c=t[l],h=e[l];if(h===r&&!(l in e)||!c(h))return!1}return!0}function lo(e,t,n){if(typeof e!="function")throw new ke(v);return pn(function(){e.apply(r,n)},t)}function cn(e,t,n,i){var l=-1,c=qn,h=!0,m=e.length,_=[],w=t.length;if(!m)return _;n&&(t=Y(t,Ce(n))),i?(c=Mr,h=!1):t.length>=f&&(c=nn,h=!1,t=new _t(t));e:for(;++l<m;){var E=e[l],b=n==null?E:n(E);if(E=i||E!==0?E:0,h&&b===b){for(var S=w;S--;)if(t[S]===b)continue e;_.push(E)}else c(t,b,i)||_.push(E)}return _}var at=Ho(We),ao=Ho(si,!0);function hh(e,t){var n=!0;return at(e,function(i,l,c){return n=!!t(i,l,c),n}),n}function Yn(e,t,n){for(var i=-1,l=e.length;++i<l;){var c=e[i],h=t(c);if(h!=null&&(m===r?h===h&&!Ee(h):n(h,m)))var m=h,_=c}return _}function gh(e,t,n,i){var l=e.length;for(n=I(n),n<0&&(n=-n>l?0:l+n),i=i===r||i>l?l:I(i),i<0&&(i+=l),i=n>i?0:Rl(i);n<i;)e[n++]=t;return e}function uo(e,t){var n=[];return at(e,function(i,l,c){t(i,l,c)&&n.push(i)}),n}function le(e,t,n,i,l){var c=-1,h=e.length;for(n||(n=ng),l||(l=[]);++c<h;){var m=e[c];t>0&&n(m)?t>1?le(m,t-1,n,i,l):st(l,m):i||(l[l.length]=m)}return l}var ii=To(),co=To(!0);function We(e,t){return e&&ii(e,t,se)}function si(e,t){return e&&co(e,t,se)}function Zn(e,t){return it(t,function(n){return tt(e[n])})}function yt(e,t){t=ct(t,e);for(var n=0,i=t.length;e!=null&&n<i;)e=e[Qe(t[n++])];return n&&n==i?e:r}function fo(e,t,n){var i=t(e);return H(e)?i:st(i,n(e))}function ce(e){return e==null?e===r?Wc:Fc:mt&&mt in K(e)?Zh(e):ug(e)}function oi(e,t){return e>t}function mh(e,t){return e!=null&&V.call(e,t)}function ph(e,t){return e!=null&&t in K(e)}function _h(e,t,n){return e>=ae(t,n)&&e<re(t,n)}function li(e,t,n){for(var i=n?Mr:qn,l=e[0].length,c=e.length,h=c,m=y(c),_=1/0,w=[];h--;){var E=e[h];h&&t&&(E=Y(E,Ce(t))),_=ae(E.length,_),m[h]=!n&&(t||l>=120&&E.length>=120)?new _t(h&&E):r}E=e[0];var b=-1,S=m[0];e:for(;++b<l&&w.length<_;){var $=E[b],B=t?t($):$;if($=n||$!==0?$:0,!(S?nn(S,B):i(w,B,n))){for(h=c;--h;){var D=m[h];if(!(D?nn(D,B):i(e[h],B,n)))continue e}S&&S.push(B),w.push($)}}return w}function vh(e,t,n,i){return We(e,function(l,c,h){t(i,n(l),c,h)}),i}function fn(e,t,n){t=ct(t,e),e=jo(e,t);var i=e==null?e:e[Qe(Be(t))];return i==null?r:ye(i,e,n)}function ho(e){return J(e)&&ce(e)==St}function yh(e){return J(e)&&ce(e)==tn}function Ch(e){return J(e)&&ce(e)==Zt}function dn(e,t,n,i,l){return e===t?!0:e==null||t==null||!J(e)&&!J(t)?e!==e&&t!==t:wh(e,t,n,i,dn,l)}function wh(e,t,n,i,l,c){var h=H(e),m=H(t),_=h?An:ue(e),w=m?An:ue(t);_=_==St?Ge:_,w=w==St?Ge:w;var E=_==Ge,b=w==Ge,S=_==w;if(S&&dt(e)){if(!dt(t))return!1;h=!0,E=!1}if(S&&!E)return c||(c=new Ie),h||Pt(e)?Ko(e,t,n,i,l,c):Gh(e,t,_,n,i,l,c);if(!(n&Fe)){var $=E&&V.call(e,"__wrapped__"),B=b&&V.call(t,"__wrapped__");if($||B){var D=$?e.value():e,L=B?t.value():t;return c||(c=new Ie),l(D,L,n,i,c)}}return S?(c||(c=new Ie),Yh(e,t,n,i,l,c)):!1}function Eh(e){return J(e)&&ue(e)==Ne}function ai(e,t,n,i){var l=n.length,c=l,h=!i;if(e==null)return!c;for(e=K(e);l--;){var m=n[l];if(h&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++l<c;){m=n[l];var _=m[0],w=e[_],E=m[1];if(h&&m[2]){if(w===r&&!(_ in e))return!1}else{var b=new Ie;if(i)var S=i(w,E,_,e,t,b);if(!(S===r?dn(E,w,Fe|Vt,i,b):S))return!1}}return!0}function go(e){if(!Z(e)||ig(e))return!1;var t=tt(e)?Ed:df;return t.test(wt(e))}function bh(e){return J(e)&&ce(e)==Xt}function Ah(e){return J(e)&&ue(e)==He}function Sh(e){return J(e)&&hr(e.length)&&!!G[ce(e)]}function mo(e){return typeof e=="function"?e:e==null?_e:typeof e=="object"?H(e)?vo(e[0],e[1]):_o(e):Il(e)}function ui(e){if(!mn(e))return kd(e);var t=[];for(var n in K(e))V.call(e,n)&&n!="constructor"&&t.push(n);return t}function Rh(e){if(!Z(e))return ag(e);var t=mn(e),n=[];for(var i in e)i=="constructor"&&(t||!V.call(e,i))||n.push(i);return n}function ci(e,t){return e<t}function po(e,t){var n=-1,i=me(e)?y(e.length):[];return at(e,function(l,c,h){i[++n]=t(l,c,h)}),i}function _o(e){var t=Si(e);return t.length==1&&t[0][2]?Jo(t[0][0],t[0][1]):function(n){return n===e||ai(n,e,t)}}function vo(e,t){return xi(e)&&Zo(t)?Jo(Qe(e),t):function(n){var i=Ii(n,e);return i===r&&i===t?Di(n,e):dn(t,i,Fe|Vt)}}function Jn(e,t,n,i,l){e!==t&&ii(t,function(c,h){if(l||(l=new Ie),Z(c))xh(e,t,h,n,Jn,i,l);else{var m=i?i($i(e,h),c,h+"",e,t,l):r;m===r&&(m=c),ni(e,h,m)}},pe)}function xh(e,t,n,i,l,c,h){var m=$i(e,n),_=$i(t,n),w=h.get(_);if(w){ni(e,n,w);return}var E=c?c(m,_,n+"",e,t,h):r,b=E===r;if(b){var S=H(_),$=!S&&dt(_),B=!S&&!$&&Pt(_);E=_,S||$||B?H(m)?E=m:X(m)?E=ge(m):$?(b=!1,E=Oo(_,!0)):B?(b=!1,E=qo(_,!0)):E=[]:_n(_)||Et(_)?(E=m,Et(m)?E=xl(m):(!Z(m)||tt(m))&&(E=Yo(_))):b=!1}b&&(h.set(_,E),l(E,_,i,c,h),h.delete(_)),ni(e,n,E)}function yo(e,t){var n=e.length;if(n)return t+=t<0?n:0,et(t,n)?e[t]:r}function Co(e,t,n){t.length?t=Y(t,function(c){return H(c)?function(h){return yt(h,c.length===1?c[0]:c)}:c}):t=[_e];var i=-1;t=Y(t,Ce(q()));var l=po(e,function(c,h,m){var _=Y(t,function(w){return w(c)});return{criteria:_,index:++i,value:c}});return ed(l,function(c,h){return Fh(c,h,n)})}function kh(e,t){return wo(e,t,function(n,i){return Di(e,i)})}function wo(e,t,n){for(var i=-1,l=t.length,c={};++i<l;){var h=t[i],m=yt(e,h);n(m,h)&&hn(c,ct(h,e),m)}return c}function $h(e){return function(t){return yt(t,e)}}function fi(e,t,n,i){var l=i?jf:kt,c=-1,h=t.length,m=e;for(e===t&&(t=ge(t)),n&&(m=Y(e,Ce(n)));++c<h;)for(var _=0,w=t[c],E=n?n(w):w;(_=l(m,E,_,i))>-1;)m!==e&&Un.call(m,_,1),Un.call(e,_,1);return e}function Eo(e,t){for(var n=e?t.length:0,i=n-1;n--;){var l=t[n];if(n==i||l!==c){var c=l;et(l)?Un.call(e,l,1):mi(e,l)}}return e}function di(e,t){return e+Qn(to()*(t-e+1))}function Oh(e,t,n,i){for(var l=-1,c=re(Mn((t-e)/(n||1)),0),h=y(c);c--;)h[i?c:++l]=e,e+=n;return h}function hi(e,t){var n="";if(!e||t<1||t>At)return n;do t%2&&(n+=e),t=Qn(t/2),t&&(e+=e);while(t);return n}function P(e,t){return Oi(Xo(e,t,_e),e+"")}function qh(e){return io(Ft(e))}function Bh(e,t){var n=Ft(e);return lr(n,vt(t,0,n.length))}function hn(e,t,n,i){if(!Z(e))return e;t=ct(t,e);for(var l=-1,c=t.length,h=c-1,m=e;m!=null&&++l<c;){var _=Qe(t[l]),w=n;if(_==="__proto__"||_==="constructor"||_==="prototype")return e;if(l!=h){var E=m[_];w=i?i(E,_,m):r,w===r&&(w=Z(E)?E:et(t[l+1])?[]:{})}un(m,_,w),m=m[_]}return e}var bo=Vn?function(e,t){return Vn.set(e,t),e}:_e,Lh=Wn?function(e,t){return Wn(e,"toString",{configurable:!0,enumerable:!1,value:Fi(t),writable:!0})}:_e;function Nh(e){return lr(Ft(e))}function qe(e,t,n){var i=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var c=y(l);++i<l;)c[i]=e[i+t];return c}function Hh(e,t){var n;return at(e,function(i,l,c){return n=t(i,l,c),!n}),!!n}function Xn(e,t,n){var i=0,l=e==null?i:e.length;if(typeof t=="number"&&t===t&&l<=Tc){for(;i<l;){var c=i+l>>>1,h=e[c];h!==null&&!Ee(h)&&(n?h<=t:h<t)?i=c+1:l=c}return l}return gi(e,t,_e,n)}function gi(e,t,n,i){var l=0,c=e==null?0:e.length;if(c===0)return 0;t=n(t);for(var h=t!==t,m=t===null,_=Ee(t),w=t===r;l<c;){var E=Qn((l+c)/2),b=n(e[E]),S=b!==r,$=b===null,B=b===b,D=Ee(b);if(h)var L=i||B;else w?L=B&&(i||S):m?L=B&&S&&(i||!$):_?L=B&&S&&!$&&(i||!D):$||D?L=!1:L=i?b<=t:b<t;L?l=E+1:c=E}return ae(c,Hc)}function Ao(e,t){for(var n=-1,i=e.length,l=0,c=[];++n<i;){var h=e[n],m=t?t(h):h;if(!n||!De(m,_)){var _=m;c[l++]=h===0?0:h}}return c}function So(e){return typeof e=="number"?e:Ee(e)?bn:+e}function we(e){if(typeof e=="string")return e;if(H(e))return Y(e,we)+"";if(Ee(e))return no?no.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ut(e,t,n){var i=-1,l=qn,c=e.length,h=!0,m=[],_=m;if(n)h=!1,l=Mr;else if(c>=f){var w=t?null:Kh(e);if(w)return Ln(w);h=!1,l=nn,_=new _t}else _=t?[]:m;e:for(;++i<c;){var E=e[i],b=t?t(E):E;if(E=n||E!==0?E:0,h&&b===b){for(var S=_.length;S--;)if(_[S]===b)continue e;t&&_.push(b),m.push(E)}else l(_,b,n)||(_!==m&&_.push(b),m.push(E))}return m}function mi(e,t){return t=ct(t,e),e=jo(e,t),e==null||delete e[Qe(Be(t))]}function Ro(e,t,n,i){return hn(e,t,n(yt(e,t)),i)}function jn(e,t,n,i){for(var l=e.length,c=i?l:-1;(i?c--:++c<l)&&t(e[c],c,e););return n?qe(e,i?0:c,i?c+1:l):qe(e,i?c+1:0,i?l:c)}function xo(e,t){var n=e;return n instanceof U&&(n=n.value()),Qr(t,function(i,l){return l.func.apply(l.thisArg,st([i],l.args))},n)}function pi(e,t,n){var i=e.length;if(i<2)return i?ut(e[0]):[];for(var l=-1,c=y(i);++l<i;)for(var h=e[l],m=-1;++m<i;)m!=l&&(c[l]=cn(c[l]||h,e[m],t,n));return ut(le(c,1),t,n)}function ko(e,t,n){for(var i=-1,l=e.length,c=t.length,h={};++i<l;){var m=i<c?t[i]:r;n(h,e[i],m)}return h}function _i(e){return X(e)?e:[]}function vi(e){return typeof e=="function"?e:_e}function ct(e,t){return H(e)?e:xi(e,t)?[e]:rl(Q(e))}var Th=P;function ft(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:qe(e,t,n)}var $o=bd||function(e){return oe.clearTimeout(e)};function Oo(e,t){if(t)return e.slice();var n=e.length,i=Zs?Zs(n):new e.constructor(n);return e.copy(i),i}function yi(e){var t=new e.constructor(e.byteLength);return new Pn(t).set(new Pn(e)),t}function Ih(e,t){var n=t?yi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Dh(e){var t=new e.constructor(e.source,ds.exec(e));return t.lastIndex=e.lastIndex,t}function Ph(e){return an?K(an.call(e)):{}}function qo(e,t){var n=t?yi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Bo(e,t){if(e!==t){var n=e!==r,i=e===null,l=e===e,c=Ee(e),h=t!==r,m=t===null,_=t===t,w=Ee(t);if(!m&&!w&&!c&&e>t||c&&h&&_&&!m&&!w||i&&h&&_||!n&&_||!l)return 1;if(!i&&!c&&!w&&e<t||w&&n&&l&&!i&&!c||m&&n&&l||!h&&l||!_)return-1}return 0}function Fh(e,t,n){for(var i=-1,l=e.criteria,c=t.criteria,h=l.length,m=n.length;++i<h;){var _=Bo(l[i],c[i]);if(_){if(i>=m)return _;var w=n[i];return _*(w=="desc"?-1:1)}}return e.index-t.index}function Lo(e,t,n,i){for(var l=-1,c=e.length,h=n.length,m=-1,_=t.length,w=re(c-h,0),E=y(_+w),b=!i;++m<_;)E[m]=t[m];for(;++l<h;)(b||l<c)&&(E[n[l]]=e[l]);for(;w--;)E[m++]=e[l++];return E}function No(e,t,n,i){for(var l=-1,c=e.length,h=-1,m=n.length,_=-1,w=t.length,E=re(c-m,0),b=y(E+w),S=!i;++l<E;)b[l]=e[l];for(var $=l;++_<w;)b[$+_]=t[_];for(;++h<m;)(S||l<c)&&(b[$+n[h]]=e[l++]);return b}function ge(e,t){var n=-1,i=e.length;for(t||(t=y(i));++n<i;)t[n]=e[n];return t}function Me(e,t,n,i){var l=!n;n||(n={});for(var c=-1,h=t.length;++c<h;){var m=t[c],_=i?i(n[m],e[m],m,n,e):r;_===r&&(_=e[m]),l?Je(n,m,_):un(n,m,_)}return n}function Uh(e,t){return Me(e,Ri(e),t)}function Wh(e,t){return Me(e,zo(e),t)}function er(e,t){return function(n,i){var l=H(n)?zf:ch,c=t?t():{};return l(n,e,q(i,2),c)}}function Tt(e){return P(function(t,n){var i=-1,l=n.length,c=l>1?n[l-1]:r,h=l>2?n[2]:r;for(c=e.length>3&&typeof c=="function"?(l--,c):r,h&&fe(n[0],n[1],h)&&(c=l<3?r:c,l=1),t=K(t);++i<l;){var m=n[i];m&&e(t,m,i,c)}return t})}function Ho(e,t){return function(n,i){if(n==null)return n;if(!me(n))return e(n,i);for(var l=n.length,c=t?l:-1,h=K(n);(t?c--:++c<l)&&i(h[c],c,h)!==!1;);return n}}function To(e){return function(t,n,i){for(var l=-1,c=K(t),h=i(t),m=h.length;m--;){var _=h[e?m:++l];if(n(c[_],_,c)===!1)break}return t}}function Mh(e,t,n){var i=t&ve,l=gn(e);function c(){var h=this&&this!==oe&&this instanceof c?l:e;return h.apply(i?n:this,arguments)}return c}function Io(e){return function(t){t=Q(t);var n=$t(t)?Te(t):r,i=n?n[0]:t.charAt(0),l=n?ft(n,1).join(""):t.slice(1);return i[e]()+l}}function It(e){return function(t){return Qr(Hl(Nl(t).replace(Lf,"")),e,"")}}function gn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ht(e.prototype),i=e.apply(n,t);return Z(i)?i:n}}function Qh(e,t,n){var i=gn(e);function l(){for(var c=arguments.length,h=y(c),m=c,_=Dt(l);m--;)h[m]=arguments[m];var w=c<3&&h[0]!==_&&h[c-1]!==_?[]:ot(h,_);if(c-=w.length,c<n)return Wo(e,t,tr,l.placeholder,r,h,w,r,r,n-c);var E=this&&this!==oe&&this instanceof l?i:e;return ye(E,this,h)}return l}function Do(e){return function(t,n,i){var l=K(t);if(!me(t)){var c=q(n,3);t=se(t),n=function(m){return c(l[m],m,l)}}var h=e(t,n,i);return h>-1?l[c?t[h]:h]:r}}function Po(e){return je(function(t){var n=t.length,i=n,l=$e.prototype.thru;for(e&&t.reverse();i--;){var c=t[i];if(typeof c!="function")throw new ke(v);if(l&&!h&&sr(c)=="wrapper")var h=new $e([],!0)}for(i=h?i:n;++i<n;){c=t[i];var m=sr(c),_=m=="wrapper"?Ai(c):r;_&&ki(_[0])&&_[1]==(ze|Ve|Ke|Gt)&&!_[4].length&&_[9]==1?h=h[sr(_[0])].apply(h,_[3]):h=c.length==1&&ki(c)?h[m]():h.thru(c)}return function(){var w=arguments,E=w[0];if(h&&w.length==1&&H(E))return h.plant(E).value();for(var b=0,S=n?t[b].apply(this,w):E;++b<n;)S=t[b].call(this,S);return S}})}function tr(e,t,n,i,l,c,h,m,_,w){var E=t&ze,b=t&ve,S=t&bt,$=t&(Ve|Kt),B=t&Ar,D=S?r:gn(e);function L(){for(var F=arguments.length,W=y(F),be=F;be--;)W[be]=arguments[be];if($)var de=Dt(L),Ae=nd(W,de);if(i&&(W=Lo(W,i,l,$)),c&&(W=No(W,c,h,$)),F-=Ae,$&&F<w){var j=ot(W,de);return Wo(e,t,tr,L.placeholder,n,W,j,m,_,w-F)}var Pe=b?n:this,rt=S?Pe[e]:e;return F=W.length,m?W=cg(W,m):B&&F>1&&W.reverse(),E&&_<F&&(W.length=_),this&&this!==oe&&this instanceof L&&(rt=D||gn(rt)),rt.apply(Pe,W)}return L}function Fo(e,t){return function(n,i){return vh(n,e,t(i),{})}}function nr(e,t){return function(n,i){var l;if(n===r&&i===r)return t;if(n!==r&&(l=n),i!==r){if(l===r)return i;typeof n=="string"||typeof i=="string"?(n=we(n),i=we(i)):(n=So(n),i=So(i)),l=e(n,i)}return l}}function Ci(e){return je(function(t){return t=Y(t,Ce(q())),P(function(n){var i=this;return e(t,function(l){return ye(l,i,n)})})})}function rr(e,t){t=t===r?" ":we(t);var n=t.length;if(n<2)return n?hi(t,e):t;var i=hi(t,Mn(e/Ot(t)));return $t(t)?ft(Te(i),0,e).join(""):i.slice(0,e)}function Vh(e,t,n,i){var l=t&ve,c=gn(e);function h(){for(var m=-1,_=arguments.length,w=-1,E=i.length,b=y(E+_),S=this&&this!==oe&&this instanceof h?c:e;++w<E;)b[w]=i[w];for(;_--;)b[w++]=arguments[++m];return ye(S,l?n:this,b)}return h}function Uo(e){return function(t,n,i){return i&&typeof i!="number"&&fe(t,n,i)&&(n=i=r),t=nt(t),n===r?(n=t,t=0):n=nt(n),i=i===r?t<n?1:-1:nt(i),Oh(t,n,i,e)}}function ir(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Le(t),n=Le(n)),e(t,n)}}function Wo(e,t,n,i,l,c,h,m,_,w){var E=t&Ve,b=E?h:r,S=E?r:h,$=E?c:r,B=E?r:c;t|=E?Ke:zt,t&=~(E?zt:Ke),t&ss||(t&=-4);var D=[e,t,l,$,b,B,S,m,_,w],L=n.apply(r,D);return ki(e)&&el(L,D),L.placeholder=i,tl(L,e,t)}function wi(e){var t=ne[e];return function(n,i){if(n=Le(n),i=i==null?0:ae(I(i),292),i&&eo(n)){var l=(Q(n)+"e").split("e"),c=t(l[0]+"e"+(+l[1]+i));return l=(Q(c)+"e").split("e"),+(l[0]+"e"+(+l[1]-i))}return t(n)}}var Kh=Lt&&1/Ln(new Lt([,-0]))[1]==En?function(e){return new Lt(e)}:Mi;function Mo(e){return function(t){var n=ue(t);return n==Ne?Jr(t):n==He?ud(t):td(t,e(t))}}function Xe(e,t,n,i,l,c,h,m){var _=t&bt;if(!_&&typeof e!="function")throw new ke(v);var w=i?i.length:0;if(w||(t&=-97,i=l=r),h=h===r?h:re(I(h),0),m=m===r?m:I(m),w-=l?l.length:0,t&zt){var E=i,b=l;i=l=r}var S=_?r:Ai(e),$=[e,t,n,i,l,E,b,c,h,m];if(S&&lg($,S),e=$[0],t=$[1],n=$[2],i=$[3],l=$[4],m=$[9]=$[9]===r?_?0:e.length:re($[9]-w,0),!m&&t&(Ve|Kt)&&(t&=-25),!t||t==ve)var B=Mh(e,t,n);else t==Ve||t==Kt?B=Qh(e,t,m):(t==Ke||t==(ve|Ke))&&!l.length?B=Vh(e,t,n,i):B=tr.apply(r,$);var D=S?bo:el;return tl(D(B,$),e,t)}function Qo(e,t,n,i){return e===r||De(e,Bt[n])&&!V.call(i,n)?t:e}function Vo(e,t,n,i,l,c){return Z(e)&&Z(t)&&(c.set(t,e),Jn(e,t,r,Vo,c),c.delete(t)),e}function zh(e){return _n(e)?r:e}function Ko(e,t,n,i,l,c){var h=n&Fe,m=e.length,_=t.length;if(m!=_&&!(h&&_>m))return!1;var w=c.get(e),E=c.get(t);if(w&&E)return w==t&&E==e;var b=-1,S=!0,$=n&Vt?new _t:r;for(c.set(e,t),c.set(t,e);++b<m;){var B=e[b],D=t[b];if(i)var L=h?i(D,B,b,t,e,c):i(B,D,b,e,t,c);if(L!==r){if(L)continue;S=!1;break}if($){if(!Vr(t,function(F,W){if(!nn($,W)&&(B===F||l(B,F,n,i,c)))return $.push(W)})){S=!1;break}}else if(!(B===D||l(B,D,n,i,c))){S=!1;break}}return c.delete(e),c.delete(t),S}function Gh(e,t,n,i,l,c,h){switch(n){case Rt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case tn:return!(e.byteLength!=t.byteLength||!c(new Pn(e),new Pn(t)));case Yt:case Zt:case Jt:return De(+e,+t);case Sn:return e.name==t.name&&e.message==t.message;case Xt:case jt:return e==t+"";case Ne:var m=Jr;case He:var _=i&Fe;if(m||(m=Ln),e.size!=t.size&&!_)return!1;var w=h.get(e);if(w)return w==t;i|=Vt,h.set(e,t);var E=Ko(m(e),m(t),i,l,c,h);return h.delete(e),E;case xn:if(an)return an.call(e)==an.call(t)}return!1}function Yh(e,t,n,i,l,c){var h=n&Fe,m=Ei(e),_=m.length,w=Ei(t),E=w.length;if(_!=E&&!h)return!1;for(var b=_;b--;){var S=m[b];if(!(h?S in t:V.call(t,S)))return!1}var $=c.get(e),B=c.get(t);if($&&B)return $==t&&B==e;var D=!0;c.set(e,t),c.set(t,e);for(var L=h;++b<_;){S=m[b];var F=e[S],W=t[S];if(i)var be=h?i(W,F,S,t,e,c):i(F,W,S,e,t,c);if(!(be===r?F===W||l(F,W,n,i,c):be)){D=!1;break}L||(L=S=="constructor")}if(D&&!L){var de=e.constructor,Ae=t.constructor;de!=Ae&&"constructor"in e&&"constructor"in t&&!(typeof de=="function"&&de instanceof de&&typeof Ae=="function"&&Ae instanceof Ae)&&(D=!1)}return c.delete(e),c.delete(t),D}function je(e){return Oi(Xo(e,r,ll),e+"")}function Ei(e){return fo(e,se,Ri)}function bi(e){return fo(e,pe,zo)}var Ai=Vn?function(e){return Vn.get(e)}:Mi;function sr(e){for(var t=e.name+"",n=Nt[t],i=V.call(Nt,t)?n.length:0;i--;){var l=n[i],c=l.func;if(c==null||c==e)return l.name}return t}function Dt(e){var t=V.call(a,"placeholder")?a:e;return t.placeholder}function q(){var e=a.iteratee||Ui;return e=e===Ui?mo:e,arguments.length?e(arguments[0],arguments[1]):e}function or(e,t){var n=e.__data__;return rg(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Si(e){for(var t=se(e),n=t.length;n--;){var i=t[n],l=e[i];t[n]=[i,l,Zo(l)]}return t}function Ct(e,t){var n=od(e,t);return go(n)?n:r}function Zh(e){var t=V.call(e,mt),n=e[mt];try{e[mt]=r;var i=!0}catch{}var l=In.call(e);return i&&(t?e[mt]=n:delete e[mt]),l}var Ri=jr?function(e){return e==null?[]:(e=K(e),it(jr(e),function(t){return Xs.call(e,t)}))}:Qi,zo=jr?function(e){for(var t=[];e;)st(t,Ri(e)),e=Fn(e);return t}:Qi,ue=ce;(ei&&ue(new ei(new ArrayBuffer(1)))!=Rt||sn&&ue(new sn)!=Ne||ti&&ue(ti.resolve())!=as||Lt&&ue(new Lt)!=He||on&&ue(new on)!=en)&&(ue=function(e){var t=ce(e),n=t==Ge?e.constructor:r,i=n?wt(n):"";if(i)switch(i){case Bd:return Rt;case Ld:return Ne;case Nd:return as;case Hd:return He;case Td:return en}return t});function Jh(e,t,n){for(var i=-1,l=n.length;++i<l;){var c=n[i],h=c.size;switch(c.type){case"drop":e+=h;break;case"dropRight":t-=h;break;case"take":t=ae(t,e+h);break;case"takeRight":e=re(e,t-h);break}}return{start:e,end:t}}function Xh(e){var t=e.match(rf);return t?t[1].split(sf):[]}function Go(e,t,n){t=ct(t,e);for(var i=-1,l=t.length,c=!1;++i<l;){var h=Qe(t[i]);if(!(c=e!=null&&n(e,h)))break;e=e[h]}return c||++i!=l?c:(l=e==null?0:e.length,!!l&&hr(l)&&et(h,l)&&(H(e)||Et(e)))}function jh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&V.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Yo(e){return typeof e.constructor=="function"&&!mn(e)?Ht(Fn(e)):{}}function eg(e,t,n){var i=e.constructor;switch(t){case tn:return yi(e);case Yt:case Zt:return new i(+e);case Rt:return Ih(e,n);case Sr:case Rr:case xr:case kr:case $r:case Or:case qr:case Br:case Lr:return qo(e,n);case Ne:return new i;case Jt:case jt:return new i(e);case Xt:return Dh(e);case He:return new i;case xn:return Ph(e)}}function tg(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(nf,`{
|
|
17
17
|
/* [wrapped with `+t+`] */
|
|
18
18
|
`)}function ng(e){return H(e)||Et(e)||!!(js&&e&&e[js])}function et(e,t){var n=typeof e;return t=t??At,!!t&&(n=="number"||n!="symbol"&&gf.test(e))&&e>-1&&e%1==0&&e<t}function fe(e,t,n){if(!Z(n))return!1;var i=typeof t;return(i=="number"?me(n)&&et(t,n.length):i=="string"&&t in n)?De(n[t],e):!1}function xi(e,t){if(H(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ee(e)?!0:Xc.test(e)||!Jc.test(e)||t!=null&&e in K(t)}function rg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ki(e){var t=sr(e),n=a[t];if(typeof n!="function"||!(t in U.prototype))return!1;if(e===n)return!0;var i=Ai(n);return!!i&&e===i[0]}function ig(e){return!!Ys&&Ys in e}var sg=Hn?tt:Vi;function mn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Bt;return e===n}function Zo(e){return e===e&&!Z(e)}function Jo(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in K(n))}}function og(e){var t=fr(e,function(i){return n.size===x&&n.clear(),i}),n=t.cache;return t}function lg(e,t){var n=e[1],i=t[1],l=n|i,c=l<(ve|bt|ze),h=i==ze&&n==Ve||i==ze&&n==Gt&&e[7].length<=t[8]||i==(ze|Gt)&&t[7].length<=t[8]&&n==Ve;if(!(c||h))return e;i&ve&&(e[2]=t[2],l|=n&ve?0:ss);var m=t[3];if(m){var _=e[3];e[3]=_?Lo(_,m,t[4]):m,e[4]=_?ot(e[3],A):t[4]}return m=t[5],m&&(_=e[5],e[5]=_?No(_,m,t[6]):m,e[6]=_?ot(e[5],A):t[6]),m=t[7],m&&(e[7]=m),i&ze&&(e[8]=e[8]==null?t[8]:ae(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function ag(e){var t=[];if(e!=null)for(var n in K(e))t.push(n);return t}function ug(e){return In.call(e)}function Xo(e,t,n){return t=re(t===r?e.length-1:t,0),function(){for(var i=arguments,l=-1,c=re(i.length-t,0),h=y(c);++l<c;)h[l]=i[t+l];l=-1;for(var m=y(t+1);++l<t;)m[l]=i[l];return m[t]=n(h),ye(e,this,m)}}function jo(e,t){return t.length<2?e:yt(e,qe(t,0,-1))}function cg(e,t){for(var n=e.length,i=ae(t.length,n),l=ge(e);i--;){var c=t[i];e[i]=et(c,n)?l[c]:r}return e}function $i(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var el=nl(bo),pn=Sd||function(e,t){return oe.setTimeout(e,t)},Oi=nl(Lh);function tl(e,t,n){var i=t+"";return Oi(e,tg(i,fg(Xh(i),n)))}function nl(e){var t=0,n=0;return function(){var i=$d(),l=qc-(i-n);if(n=i,l>0){if(++t>=Oc)return arguments[0]}else t=0;return e.apply(r,arguments)}}function lr(e,t){var n=-1,i=e.length,l=i-1;for(t=t===r?i:t;++n<t;){var c=di(n,l),h=e[c];e[c]=e[n],e[n]=h}return e.length=t,e}var rl=og(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jc,function(n,i,l,c){t.push(l?c.replace(af,"$1"):i||n)}),t});function Qe(e){if(typeof e=="string"||Ee(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function wt(e){if(e!=null){try{return Tn.call(e)}catch{}try{return e+""}catch{}}return""}function fg(e,t){return xe(Ic,function(n){var i="_."+n[0];t&n[1]&&!qn(e,i)&&e.push(i)}),e.sort()}function il(e){if(e instanceof U)return e.clone();var t=new $e(e.__wrapped__,e.__chain__);return t.__actions__=ge(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function dg(e,t,n){(n?fe(e,t,n):t===r)?t=1:t=re(I(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var l=0,c=0,h=y(Mn(i/t));l<i;)h[c++]=qe(e,l,l+=t);return h}function hg(e){for(var t=-1,n=e==null?0:e.length,i=0,l=[];++t<n;){var c=e[t];c&&(l[i++]=c)}return l}function gg(){var e=arguments.length;if(!e)return[];for(var t=y(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return st(H(n)?ge(n):[n],le(t,1))}var mg=P(function(e,t){return X(e)?cn(e,le(t,1,X,!0)):[]}),pg=P(function(e,t){var n=Be(t);return X(n)&&(n=r),X(e)?cn(e,le(t,1,X,!0),q(n,2)):[]}),_g=P(function(e,t){var n=Be(t);return X(n)&&(n=r),X(e)?cn(e,le(t,1,X,!0),r,n):[]});function vg(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:I(t),qe(e,t<0?0:t,i)):[]}function yg(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:I(t),t=i-t,qe(e,0,t<0?0:t)):[]}function Cg(e,t){return e&&e.length?jn(e,q(t,3),!0,!0):[]}function wg(e,t){return e&&e.length?jn(e,q(t,3),!0):[]}function Eg(e,t,n,i){var l=e==null?0:e.length;return l?(n&&typeof n!="number"&&fe(e,t,n)&&(n=0,i=l),gh(e,t,n,i)):[]}function sl(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var l=n==null?0:I(n);return l<0&&(l=re(i+l,0)),Bn(e,q(t,3),l)}function ol(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var l=i-1;return n!==r&&(l=I(n),l=n<0?re(i+l,0):ae(l,i-1)),Bn(e,q(t,3),l,!0)}function ll(e){var t=e==null?0:e.length;return t?le(e,1):[]}function bg(e){var t=e==null?0:e.length;return t?le(e,En):[]}function Ag(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:I(t),le(e,t)):[]}function Sg(e){for(var t=-1,n=e==null?0:e.length,i={};++t<n;){var l=e[t];i[l[0]]=l[1]}return i}function al(e){return e&&e.length?e[0]:r}function Rg(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var l=n==null?0:I(n);return l<0&&(l=re(i+l,0)),kt(e,t,l)}function xg(e){var t=e==null?0:e.length;return t?qe(e,0,-1):[]}var kg=P(function(e){var t=Y(e,_i);return t.length&&t[0]===e[0]?li(t):[]}),$g=P(function(e){var t=Be(e),n=Y(e,_i);return t===Be(n)?t=r:n.pop(),n.length&&n[0]===e[0]?li(n,q(t,2)):[]}),Og=P(function(e){var t=Be(e),n=Y(e,_i);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?li(n,r,t):[]});function qg(e,t){return e==null?"":xd.call(e,t)}function Be(e){var t=e==null?0:e.length;return t?e[t-1]:r}function Bg(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var l=i;return n!==r&&(l=I(n),l=l<0?re(i+l,0):ae(l,i-1)),t===t?fd(e,t,l):Bn(e,Us,l,!0)}function Lg(e,t){return e&&e.length?yo(e,I(t)):r}var Ng=P(ul);function ul(e,t){return e&&e.length&&t&&t.length?fi(e,t):e}function Hg(e,t,n){return e&&e.length&&t&&t.length?fi(e,t,q(n,2)):e}function Tg(e,t,n){return e&&e.length&&t&&t.length?fi(e,t,r,n):e}var Ig=je(function(e,t){var n=e==null?0:e.length,i=ri(e,t);return Eo(e,Y(t,function(l){return et(l,n)?+l:l}).sort(Bo)),i});function Dg(e,t){var n=[];if(!(e&&e.length))return n;var i=-1,l=[],c=e.length;for(t=q(t,3);++i<c;){var h=e[i];t(h,i,e)&&(n.push(h),l.push(i))}return Eo(e,l),n}function qi(e){return e==null?e:qd.call(e)}function Pg(e,t,n){var i=e==null?0:e.length;return i?(n&&typeof n!="number"&&fe(e,t,n)?(t=0,n=i):(t=t==null?0:I(t),n=n===r?i:I(n)),qe(e,t,n)):[]}function Fg(e,t){return Xn(e,t)}function Ug(e,t,n){return gi(e,t,q(n,2))}function Wg(e,t){var n=e==null?0:e.length;if(n){var i=Xn(e,t);if(i<n&&De(e[i],t))return i}return-1}function Mg(e,t){return Xn(e,t,!0)}function Qg(e,t,n){return gi(e,t,q(n,2),!0)}function Vg(e,t){var n=e==null?0:e.length;if(n){var i=Xn(e,t,!0)-1;if(De(e[i],t))return i}return-1}function Kg(e){return e&&e.length?Ao(e):[]}function zg(e,t){return e&&e.length?Ao(e,q(t,2)):[]}function Gg(e){var t=e==null?0:e.length;return t?qe(e,1,t):[]}function Yg(e,t,n){return e&&e.length?(t=n||t===r?1:I(t),qe(e,0,t<0?0:t)):[]}function Zg(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:I(t),t=i-t,qe(e,t<0?0:t,i)):[]}function Jg(e,t){return e&&e.length?jn(e,q(t,3),!1,!0):[]}function Xg(e,t){return e&&e.length?jn(e,q(t,3)):[]}var jg=P(function(e){return ut(le(e,1,X,!0))}),em=P(function(e){var t=Be(e);return X(t)&&(t=r),ut(le(e,1,X,!0),q(t,2))}),tm=P(function(e){var t=Be(e);return t=typeof t=="function"?t:r,ut(le(e,1,X,!0),r,t)});function nm(e){return e&&e.length?ut(e):[]}function rm(e,t){return e&&e.length?ut(e,q(t,2)):[]}function im(e,t){return t=typeof t=="function"?t:r,e&&e.length?ut(e,r,t):[]}function Bi(e){if(!(e&&e.length))return[];var t=0;return e=it(e,function(n){if(X(n))return t=re(n.length,t),!0}),Yr(t,function(n){return Y(e,Kr(n))})}function cl(e,t){if(!(e&&e.length))return[];var n=Bi(e);return t==null?n:Y(n,function(i){return ye(t,r,i)})}var sm=P(function(e,t){return X(e)?cn(e,t):[]}),om=P(function(e){return pi(it(e,X))}),lm=P(function(e){var t=Be(e);return X(t)&&(t=r),pi(it(e,X),q(t,2))}),am=P(function(e){var t=Be(e);return t=typeof t=="function"?t:r,pi(it(e,X),r,t)}),um=P(Bi);function cm(e,t){return ko(e||[],t||[],un)}function fm(e,t){return ko(e||[],t||[],hn)}var dm=P(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,cl(e,n)});function fl(e){var t=a(e);return t.__chain__=!0,t}function hm(e,t){return t(e),e}function ar(e,t){return t(e)}var gm=je(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,l=function(c){return ri(c,e)};return t>1||this.__actions__.length||!(i instanceof U)||!et(n)?this.thru(l):(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:ar,args:[l],thisArg:r}),new $e(i,this.__chain__).thru(function(c){return t&&!c.length&&c.push(r),c}))});function mm(){return fl(this)}function pm(){return new $e(this.value(),this.__chain__)}function _m(){this.__values__===r&&(this.__values__=Sl(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function vm(){return this}function ym(e){for(var t,n=this;n instanceof zn;){var i=il(n);i.__index__=0,i.__values__=r,t?l.__wrapped__=i:t=i;var l=i;n=n.__wrapped__}return l.__wrapped__=e,t}function Cm(){var e=this.__wrapped__;if(e instanceof U){var t=e;return this.__actions__.length&&(t=new U(this)),t=t.reverse(),t.__actions__.push({func:ar,args:[qi],thisArg:r}),new $e(t,this.__chain__)}return this.thru(qi)}function wm(){return xo(this.__wrapped__,this.__actions__)}var Em=er(function(e,t,n){V.call(e,n)?++e[n]:Je(e,n,1)});function bm(e,t,n){var i=H(e)?Ps:hh;return n&&fe(e,t,n)&&(t=r),i(e,q(t,3))}function Am(e,t){var n=H(e)?it:uo;return n(e,q(t,3))}var Sm=Do(sl),Rm=Do(ol);function xm(e,t){return le(ur(e,t),1)}function km(e,t){return le(ur(e,t),En)}function $m(e,t,n){return n=n===r?1:I(n),le(ur(e,t),n)}function dl(e,t){var n=H(e)?xe:at;return n(e,q(t,3))}function hl(e,t){var n=H(e)?Gf:ao;return n(e,q(t,3))}var Om=er(function(e,t,n){V.call(e,n)?e[n].push(t):Je(e,n,[t])});function qm(e,t,n,i){e=me(e)?e:Ft(e),n=n&&!i?I(n):0;var l=e.length;return n<0&&(n=re(l+n,0)),gr(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&kt(e,t,n)>-1}var Bm=P(function(e,t,n){var i=-1,l=typeof t=="function",c=me(e)?y(e.length):[];return at(e,function(h){c[++i]=l?ye(t,h,n):fn(h,t,n)}),c}),Lm=er(function(e,t,n){Je(e,n,t)});function ur(e,t){var n=H(e)?Y:po;return n(e,q(t,3))}function Nm(e,t,n,i){return e==null?[]:(H(t)||(t=t==null?[]:[t]),n=i?r:n,H(n)||(n=n==null?[]:[n]),Co(e,t,n))}var Hm=er(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Tm(e,t,n){var i=H(e)?Qr:Ms,l=arguments.length<3;return i(e,q(t,4),n,l,at)}function Im(e,t,n){var i=H(e)?Yf:Ms,l=arguments.length<3;return i(e,q(t,4),n,l,ao)}function Dm(e,t){var n=H(e)?it:uo;return n(e,dr(q(t,3)))}function Pm(e){var t=H(e)?io:qh;return t(e)}function Fm(e,t,n){(n?fe(e,t,n):t===r)?t=1:t=I(t);var i=H(e)?ah:Bh;return i(e,t)}function Um(e){var t=H(e)?uh:Nh;return t(e)}function Wm(e){if(e==null)return 0;if(me(e))return gr(e)?Ot(e):e.length;var t=ue(e);return t==Ne||t==He?e.size:ui(e).length}function Mm(e,t,n){var i=H(e)?Vr:Hh;return n&&fe(e,t,n)&&(t=r),i(e,q(t,3))}var Qm=P(function(e,t){if(e==null)return[];var n=t.length;return n>1&&fe(e,t[0],t[1])?t=[]:n>2&&fe(t[0],t[1],t[2])&&(t=[t[0]]),Co(e,le(t,1),[])}),cr=Ad||function(){return oe.Date.now()};function Vm(e,t){if(typeof t!="function")throw new ke(v);return e=I(e),function(){if(--e<1)return t.apply(this,arguments)}}function gl(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,Xe(e,ze,r,r,r,r,t)}function ml(e,t){var n;if(typeof t!="function")throw new ke(v);return e=I(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Li=P(function(e,t,n){var i=ve;if(n.length){var l=ot(n,Dt(Li));i|=Ke}return Xe(e,i,t,n,l)}),pl=P(function(e,t,n){var i=ve|bt;if(n.length){var l=ot(n,Dt(pl));i|=Ke}return Xe(t,i,e,n,l)});function _l(e,t,n){t=n?r:t;var i=Xe(e,Ve,r,r,r,r,r,t);return i.placeholder=_l.placeholder,i}function vl(e,t,n){t=n?r:t;var i=Xe(e,Kt,r,r,r,r,r,t);return i.placeholder=vl.placeholder,i}function yl(e,t,n){var i,l,c,h,m,_,w=0,E=!1,b=!1,S=!0;if(typeof e!="function")throw new ke(v);t=Le(t)||0,Z(n)&&(E=!!n.leading,b="maxWait"in n,c=b?re(Le(n.maxWait)||0,t):c,S="trailing"in n?!!n.trailing:S);function $(j){var Pe=i,rt=l;return i=l=r,w=j,h=e.apply(rt,Pe),h}function B(j){return w=j,m=pn(F,t),E?$(j):h}function D(j){var Pe=j-_,rt=j-w,Dl=t-Pe;return b?ae(Dl,c-rt):Dl}function L(j){var Pe=j-_,rt=j-w;return _===r||Pe>=t||Pe<0||b&&rt>=c}function F(){var j=cr();if(L(j))return W(j);m=pn(F,D(j))}function W(j){return m=r,S&&i?$(j):(i=l=r,h)}function be(){m!==r&&$o(m),w=0,i=_=l=m=r}function de(){return m===r?h:W(cr())}function Ae(){var j=cr(),Pe=L(j);if(i=arguments,l=this,_=j,Pe){if(m===r)return B(_);if(b)return $o(m),m=pn(F,t),$(_)}return m===r&&(m=pn(F,t)),h}return Ae.cancel=be,Ae.flush=de,Ae}var Km=P(function(e,t){return lo(e,1,t)}),zm=P(function(e,t,n){return lo(e,Le(t)||0,n)});function Gm(e){return Xe(e,Ar)}function fr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new ke(v);var n=function(){var i=arguments,l=t?t.apply(this,i):i[0],c=n.cache;if(c.has(l))return c.get(l);var h=e.apply(this,i);return n.cache=c.set(l,h)||c,h};return n.cache=new(fr.Cache||Ze),n}fr.Cache=Ze;function dr(e){if(typeof e!="function")throw new ke(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ym(e){return ml(2,e)}var Zm=Th(function(e,t){t=t.length==1&&H(t[0])?Y(t[0],Ce(q())):Y(le(t,1),Ce(q()));var n=t.length;return P(function(i){for(var l=-1,c=ae(i.length,n);++l<c;)i[l]=t[l].call(this,i[l]);return ye(e,this,i)})}),Ni=P(function(e,t){var n=ot(t,Dt(Ni));return Xe(e,Ke,r,t,n)}),Cl=P(function(e,t){var n=ot(t,Dt(Cl));return Xe(e,zt,r,t,n)}),Jm=je(function(e,t){return Xe(e,Gt,r,r,r,t)});function Xm(e,t){if(typeof e!="function")throw new ke(v);return t=t===r?t:I(t),P(e,t)}function jm(e,t){if(typeof e!="function")throw new ke(v);return t=t==null?0:re(I(t),0),P(function(n){var i=n[t],l=ft(n,0,t);return i&&st(l,i),ye(e,this,l)})}function ep(e,t,n){var i=!0,l=!0;if(typeof e!="function")throw new ke(v);return Z(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),yl(e,t,{leading:i,maxWait:t,trailing:l})}function tp(e){return gl(e,1)}function np(e,t){return Ni(vi(t),e)}function rp(){if(!arguments.length)return[];var e=arguments[0];return H(e)?e:[e]}function ip(e){return Oe(e,he)}function sp(e,t){return t=typeof t=="function"?t:r,Oe(e,he,t)}function op(e){return Oe(e,O|he)}function lp(e,t){return t=typeof t=="function"?t:r,Oe(e,O|he,t)}function ap(e,t){return t==null||oo(e,t,se(t))}function De(e,t){return e===t||e!==e&&t!==t}var up=ir(oi),cp=ir(function(e,t){return e>=t}),Et=ho(function(){return arguments}())?ho:function(e){return J(e)&&V.call(e,"callee")&&!Xs.call(e,"callee")},H=y.isArray,fp=Ls?Ce(Ls):yh;function me(e){return e!=null&&hr(e.length)&&!tt(e)}function X(e){return J(e)&&me(e)}function dp(e){return e===!0||e===!1||J(e)&&ce(e)==Yt}var dt=Rd||Vi,hp=Ns?Ce(Ns):Ch;function gp(e){return J(e)&&e.nodeType===1&&!_n(e)}function mp(e){if(e==null)return!0;if(me(e)&&(H(e)||typeof e=="string"||typeof e.splice=="function"||dt(e)||Pt(e)||Et(e)))return!e.length;var t=ue(e);if(t==Ne||t==He)return!e.size;if(mn(e))return!ui(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function pp(e,t){return dn(e,t)}function _p(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?dn(e,t,r,n):!!i}function Hi(e){if(!J(e))return!1;var t=ce(e);return t==Sn||t==Pc||typeof e.message=="string"&&typeof e.name=="string"&&!_n(e)}function vp(e){return typeof e=="number"&&eo(e)}function tt(e){if(!Z(e))return!1;var t=ce(e);return t==Rn||t==ls||t==Dc||t==Uc}function wl(e){return typeof e=="number"&&e==I(e)}function hr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=At}function Z(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function J(e){return e!=null&&typeof e=="object"}var El=Hs?Ce(Hs):Eh;function yp(e,t){return e===t||ai(e,t,Si(t))}function Cp(e,t,n){return n=typeof n=="function"?n:r,ai(e,t,Si(t),n)}function wp(e){return bl(e)&&e!=+e}function Ep(e){if(sg(e))throw new N(u);return go(e)}function bp(e){return e===null}function Ap(e){return e==null}function bl(e){return typeof e=="number"||J(e)&&ce(e)==Jt}function _n(e){if(!J(e)||ce(e)!=Ge)return!1;var t=Fn(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Tn.call(n)==Cd}var Ti=Ts?Ce(Ts):bh;function Sp(e){return wl(e)&&e>=-9007199254740991&&e<=At}var Al=Is?Ce(Is):Ah;function gr(e){return typeof e=="string"||!H(e)&&J(e)&&ce(e)==jt}function Ee(e){return typeof e=="symbol"||J(e)&&ce(e)==xn}var Pt=Ds?Ce(Ds):Sh;function Rp(e){return e===r}function xp(e){return J(e)&&ue(e)==en}function kp(e){return J(e)&&ce(e)==Mc}var $p=ir(ci),Op=ir(function(e,t){return e<=t});function Sl(e){if(!e)return[];if(me(e))return gr(e)?Te(e):ge(e);if(rn&&e[rn])return ad(e[rn]());var t=ue(e),n=t==Ne?Jr:t==He?Ln:Ft;return n(e)}function nt(e){if(!e)return e===0?e:0;if(e=Le(e),e===En||e===-1/0){var t=e<0?-1:1;return t*Nc}return e===e?e:0}function I(e){var t=nt(e),n=t%1;return t===t?n?t-n:t:0}function Rl(e){return e?vt(I(e),0,Ue):0}function Le(e){if(typeof e=="number")return e;if(Ee(e))return bn;if(Z(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Z(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Qs(e);var n=ff.test(e);return n||hf.test(e)?Vf(e.slice(2),n?2:8):cf.test(e)?bn:+e}function xl(e){return Me(e,pe(e))}function qp(e){return e?vt(I(e),-9007199254740991,At):e===0?e:0}function Q(e){return e==null?"":we(e)}var Bp=Tt(function(e,t){if(mn(t)||me(t)){Me(t,se(t),e);return}for(var n in t)V.call(t,n)&&un(e,n,t[n])}),kl=Tt(function(e,t){Me(t,pe(t),e)}),mr=Tt(function(e,t,n,i){Me(t,pe(t),e,i)}),Lp=Tt(function(e,t,n,i){Me(t,se(t),e,i)}),Np=je(ri);function Hp(e,t){var n=Ht(e);return t==null?n:so(n,t)}var Tp=P(function(e,t){e=K(e);var n=-1,i=t.length,l=i>2?t[2]:r;for(l&&fe(t[0],t[1],l)&&(i=1);++n<i;)for(var c=t[n],h=pe(c),m=-1,_=h.length;++m<_;){var w=h[m],E=e[w];(E===r||De(E,Bt[w])&&!V.call(e,w))&&(e[w]=c[w])}return e}),Ip=P(function(e){return e.push(r,Vo),ye($l,r,e)});function Dp(e,t){return Fs(e,q(t,3),We)}function Pp(e,t){return Fs(e,q(t,3),si)}function Fp(e,t){return e==null?e:ii(e,q(t,3),pe)}function Up(e,t){return e==null?e:co(e,q(t,3),pe)}function Wp(e,t){return e&&We(e,q(t,3))}function Mp(e,t){return e&&si(e,q(t,3))}function Qp(e){return e==null?[]:Zn(e,se(e))}function Vp(e){return e==null?[]:Zn(e,pe(e))}function Ii(e,t,n){var i=e==null?r:yt(e,t);return i===r?n:i}function Kp(e,t){return e!=null&&Go(e,t,mh)}function Di(e,t){return e!=null&&Go(e,t,ph)}var zp=Fo(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=In.call(t)),e[t]=n},Fi(_e)),Gp=Fo(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=In.call(t)),V.call(e,t)?e[t].push(n):e[t]=[n]},q),Yp=P(fn);function se(e){return me(e)?ro(e):ui(e)}function pe(e){return me(e)?ro(e,!0):Rh(e)}function Zp(e,t){var n={};return t=q(t,3),We(e,function(i,l,c){Je(n,t(i,l,c),i)}),n}function Jp(e,t){var n={};return t=q(t,3),We(e,function(i,l,c){Je(n,l,t(i,l,c))}),n}var Xp=Tt(function(e,t,n){Jn(e,t,n)}),$l=Tt(function(e,t,n,i){Jn(e,t,n,i)}),jp=je(function(e,t){var n={};if(e==null)return n;var i=!1;t=Y(t,function(c){return c=ct(c,e),i||(i=c.length>1),c}),Me(e,bi(e),n),i&&(n=Oe(n,O|ie|he,zh));for(var l=t.length;l--;)mi(n,t[l]);return n});function e_(e,t){return Ol(e,dr(q(t)))}var t_=je(function(e,t){return e==null?{}:kh(e,t)});function Ol(e,t){if(e==null)return{};var n=Y(bi(e),function(i){return[i]});return t=q(t),wo(e,n,function(i,l){return t(i,l[0])})}function n_(e,t,n){t=ct(t,e);var i=-1,l=t.length;for(l||(l=1,e=r);++i<l;){var c=e==null?r:e[Qe(t[i])];c===r&&(i=l,c=n),e=tt(c)?c.call(e):c}return e}function r_(e,t,n){return e==null?e:hn(e,t,n)}function i_(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:hn(e,t,n,i)}var ql=Mo(se),Bl=Mo(pe);function s_(e,t,n){var i=H(e),l=i||dt(e)||Pt(e);if(t=q(t,4),n==null){var c=e&&e.constructor;l?n=i?new c:[]:Z(e)?n=tt(c)?Ht(Fn(e)):{}:n={}}return(l?xe:We)(e,function(h,m,_){return t(n,h,m,_)}),n}function o_(e,t){return e==null?!0:mi(e,t)}function l_(e,t,n){return e==null?e:Ro(e,t,vi(n))}function a_(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:Ro(e,t,vi(n),i)}function Ft(e){return e==null?[]:Zr(e,se(e))}function u_(e){return e==null?[]:Zr(e,pe(e))}function c_(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=Le(n),n=n===n?n:0),t!==r&&(t=Le(t),t=t===t?t:0),vt(Le(e),t,n)}function f_(e,t,n){return t=nt(t),n===r?(n=t,t=0):n=nt(n),e=Le(e),_h(e,t,n)}function d_(e,t,n){if(n&&typeof n!="boolean"&&fe(e,t,n)&&(t=n=r),n===r&&(typeof t=="boolean"?(n=t,t=r):typeof e=="boolean"&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=nt(e),t===r?(t=e,e=0):t=nt(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var l=to();return ae(e+l*(t-e+Qf("1e-"+((l+"").length-1))),t)}return di(e,t)}var h_=It(function(e,t,n){return t=t.toLowerCase(),e+(n?Ll(t):t)});function Ll(e){return Pi(Q(e).toLowerCase())}function Nl(e){return e=Q(e),e&&e.replace(mf,rd).replace(Nf,"")}function g_(e,t,n){e=Q(e),t=we(t);var i=e.length;n=n===r?i:vt(I(n),0,i);var l=n;return n-=t.length,n>=0&&e.slice(n,l)==t}function m_(e){return e=Q(e),e&&Gc.test(e)?e.replace(cs,id):e}function p_(e){return e=Q(e),e&&ef.test(e)?e.replace(Nr,"\\$&"):e}var __=It(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),v_=It(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),y_=Io("toLowerCase");function C_(e,t,n){e=Q(e),t=I(t);var i=t?Ot(e):0;if(!t||i>=t)return e;var l=(t-i)/2;return rr(Qn(l),n)+e+rr(Mn(l),n)}function w_(e,t,n){e=Q(e),t=I(t);var i=t?Ot(e):0;return t&&i<t?e+rr(t-i,n):e}function E_(e,t,n){e=Q(e),t=I(t);var i=t?Ot(e):0;return t&&i<t?rr(t-i,n)+e:e}function b_(e,t,n){return n||t==null?t=0:t&&(t=+t),Od(Q(e).replace(Hr,""),t||0)}function A_(e,t,n){return(n?fe(e,t,n):t===r)?t=1:t=I(t),hi(Q(e),t)}function S_(){var e=arguments,t=Q(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var R_=It(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function x_(e,t,n){return n&&typeof n!="number"&&fe(e,t,n)&&(t=n=r),n=n===r?Ue:n>>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Ti(t))&&(t=we(t),!t&&$t(e))?ft(Te(e),0,n):e.split(t,n)):[]}var k_=It(function(e,t,n){return e+(n?" ":"")+Pi(t)});function $_(e,t,n){return e=Q(e),n=n==null?0:vt(I(n),0,e.length),t=we(t),e.slice(n,n+t.length)==t}function O_(e,t,n){var i=a.templateSettings;n&&fe(e,t,n)&&(t=r),e=Q(e),t=mr({},t,i,Qo);var l=mr({},t.imports,i.imports,Qo),c=se(l),h=Zr(l,c),m,_,w=0,E=t.interpolate||kn,b="__p += '",S=Xr((t.escape||kn).source+"|"+E.source+"|"+(E===fs?uf:kn).source+"|"+(t.evaluate||kn).source+"|$","g"),$="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pf+"]")+`
|
|
19
19
|
`;e.replace(S,function(L,F,W,be,de,Ae){return W||(W=be),b+=e.slice(w,Ae).replace(pf,sd),F&&(m=!0,b+=`' +
|
|
@@ -32,4 +32,4 @@ __p += '`),W&&(b+=`' +
|
|
|
32
32
|
function print() { __p += __j.call(arguments, '') }
|
|
33
33
|
`:`;
|
|
34
34
|
`)+b+`return __p
|
|
35
|
-
}`;var D=Tl(function(){return M(c,$+"return "+b).apply(r,h)});if(D.source=b,Hi(D))throw D;return D}function q_(e){return Q(e).toLowerCase()}function B_(e){return Q(e).toUpperCase()}function L_(e,t,n){if(e=Q(e),e&&(n||t===r))return Qs(e);if(!e||!(t=we(t)))return e;var i=Te(e),l=Te(t),c=Vs(i,l),h=Ks(i,l)+1;return ft(i,c,h).join("")}function N_(e,t,n){if(e=Q(e),e&&(n||t===r))return e.slice(0,Gs(e)+1);if(!e||!(t=we(t)))return e;var i=Te(e),l=Ks(i,Te(t))+1;return ft(i,0,l).join("")}function H_(e,t,n){if(e=Q(e),e&&(n||t===r))return e.replace(Hr,"");if(!e||!(t=we(t)))return e;var i=Te(e),l=Vs(i,Te(t));return ft(i,l).join("")}function T_(e,t){var n=kc,i=$c;if(Z(t)){var l="separator"in t?t.separator:l;n="length"in t?I(t.length):n,i="omission"in t?we(t.omission):i}e=Q(e);var c=e.length;if($t(e)){var h=Te(e);c=h.length}if(n>=c)return e;var m=n-Ot(i);if(m<1)return i;var _=h?ft(h,0,m).join(""):e.slice(0,m);if(l===r)return _+i;if(h&&(m+=_.length-m),Ti(l)){if(e.slice(m).search(l)){var w,E=_;for(l.global||(l=Xr(l.source,Q(ds.exec(l))+"g")),l.lastIndex=0;w=l.exec(E);)var b=w.index;_=_.slice(0,b===r?m:b)}}else if(e.indexOf(we(l),m)!=m){var S=_.lastIndexOf(l);S>-1&&(_=_.slice(0,S))}return _+i}function I_(e){return e=Q(e),e&&zc.test(e)?e.replace(us,dd):e}var D_=It(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Pi=Io("toUpperCase");function Hl(e,t,n){return e=Q(e),t=n?r:t,t===r?ld(e)?md(e):Xf(e):e.match(t)||[]}var Tl=P(function(e,t){try{return ye(e,r,t)}catch(n){return Hi(n)?n:new N(n)}}),P_=je(function(e,t){return xe(t,function(n){n=Qe(n),Je(e,n,Li(e[n],e))}),e});function F_(e){var t=e==null?0:e.length,n=q();return e=t?Y(e,function(i){if(typeof i[1]!="function")throw new ke(v);return[n(i[0]),i[1]]}):[],P(function(i){for(var l=-1;++l<t;){var c=e[l];if(ye(c[0],this,i))return ye(c[1],this,i)}})}function U_(e){return dh(Oe(e,O))}function Fi(e){return function(){return e}}function W_(e,t){return e==null||e!==e?t:e}var M_=Po(),Q_=Po(!0);function _e(e){return e}function Ui(e){return mo(typeof e=="function"?e:Oe(e,O))}function V_(e){return _o(Oe(e,O))}function K_(e,t){return vo(e,Oe(t,O))}var z_=P(function(e,t){return function(n){return fn(n,e,t)}}),G_=P(function(e,t){return function(n){return fn(e,n,t)}});function Wi(e,t,n){var i=se(t),l=Zn(t,i);n==null&&!(Z(t)&&(l.length||!i.length))&&(n=t,t=e,e=this,l=Zn(t,se(t)));var c=!(Z(n)&&"chain"in n)||!!n.chain,h=tt(e);return xe(l,function(m){var _=t[m];e[m]=_,h&&(e.prototype[m]=function(){var w=this.__chain__;if(c||w){var E=e(this.__wrapped__),b=E.__actions__=ge(this.__actions__);return b.push({func:_,args:arguments,thisArg:e}),E.__chain__=w,E}return _.apply(e,st([this.value()],arguments))})}),e}function Y_(){return oe._===this&&(oe._=wd),this}function Mi(){}function Z_(e){return e=I(e),P(function(t){return yo(t,e)})}var J_=Ci(Y),X_=Ci(Ps),j_=Ci(Vr);function Il(e){return xi(e)?Kr(Qe(e)):$h(e)}function ev(e){return function(t){return e==null?r:yt(e,t)}}var tv=Uo(),nv=Uo(!0);function Qi(){return[]}function Vi(){return!1}function rv(){return{}}function iv(){return""}function sv(){return!0}function ov(e,t){if(e=I(e),e<1||e>At)return[];var n=Ue,i=ae(e,Ue);t=q(t),e-=Ue;for(var l=Yr(i,t);++n<e;)t(n);return l}function lv(e){return H(e)?Y(e,Qe):Ee(e)?[e]:ge(rl(Q(e)))}function av(e){var t=++yd;return Q(e)+t}var uv=nr(function(e,t){return e+t},0),cv=wi("ceil"),fv=nr(function(e,t){return e/t},1),dv=wi("floor");function hv(e){return e&&e.length?Yn(e,_e,oi):r}function gv(e,t){return e&&e.length?Yn(e,q(t,2),oi):r}function mv(e){return Ws(e,_e)}function pv(e,t){return Ws(e,q(t,2))}function _v(e){return e&&e.length?Yn(e,_e,ci):r}function vv(e,t){return e&&e.length?Yn(e,q(t,2),ci):r}var yv=nr(function(e,t){return e*t},1),Cv=wi("round"),wv=nr(function(e,t){return e-t},0);function Ev(e){return e&&e.length?Gr(e,_e):0}function bv(e,t){return e&&e.length?Gr(e,q(t,2)):0}return a.after=Vm,a.ary=gl,a.assign=Bp,a.assignIn=kl,a.assignInWith=mr,a.assignWith=Lp,a.at=Np,a.before=ml,a.bind=Li,a.bindAll=P_,a.bindKey=pl,a.castArray=rp,a.chain=fl,a.chunk=dg,a.compact=hg,a.concat=gg,a.cond=F_,a.conforms=U_,a.constant=Fi,a.countBy=Em,a.create=Hp,a.curry=_l,a.curryRight=vl,a.debounce=yl,a.defaults=Tp,a.defaultsDeep=Ip,a.defer=Km,a.delay=zm,a.difference=mg,a.differenceBy=pg,a.differenceWith=_g,a.drop=vg,a.dropRight=yg,a.dropRightWhile=Cg,a.dropWhile=wg,a.fill=Eg,a.filter=Am,a.flatMap=xm,a.flatMapDeep=km,a.flatMapDepth=$m,a.flatten=ll,a.flattenDeep=bg,a.flattenDepth=Ag,a.flip=Gm,a.flow=M_,a.flowRight=Q_,a.fromPairs=Sg,a.functions=Qp,a.functionsIn=Vp,a.groupBy=Om,a.initial=xg,a.intersection=kg,a.intersectionBy=$g,a.intersectionWith=Og,a.invert=zp,a.invertBy=Gp,a.invokeMap=Bm,a.iteratee=Ui,a.keyBy=Lm,a.keys=se,a.keysIn=pe,a.map=ur,a.mapKeys=Zp,a.mapValues=Jp,a.matches=V_,a.matchesProperty=K_,a.memoize=fr,a.merge=Xp,a.mergeWith=$l,a.method=z_,a.methodOf=G_,a.mixin=Wi,a.negate=dr,a.nthArg=Z_,a.omit=jp,a.omitBy=e_,a.once=Ym,a.orderBy=Nm,a.over=J_,a.overArgs=Zm,a.overEvery=X_,a.overSome=j_,a.partial=Ni,a.partialRight=Cl,a.partition=Hm,a.pick=t_,a.pickBy=Ol,a.property=Il,a.propertyOf=ev,a.pull=Ng,a.pullAll=ul,a.pullAllBy=Hg,a.pullAllWith=Tg,a.pullAt=Ig,a.range=tv,a.rangeRight=nv,a.rearg=Jm,a.reject=Dm,a.remove=Dg,a.rest=Xm,a.reverse=qi,a.sampleSize=Fm,a.set=r_,a.setWith=i_,a.shuffle=Um,a.slice=Pg,a.sortBy=Qm,a.sortedUniq=Kg,a.sortedUniqBy=zg,a.split=x_,a.spread=jm,a.tail=Gg,a.take=Yg,a.takeRight=Zg,a.takeRightWhile=Jg,a.takeWhile=Xg,a.tap=hm,a.throttle=ep,a.thru=ar,a.toArray=Sl,a.toPairs=ql,a.toPairsIn=Bl,a.toPath=lv,a.toPlainObject=xl,a.transform=s_,a.unary=tp,a.union=jg,a.unionBy=em,a.unionWith=tm,a.uniq=nm,a.uniqBy=rm,a.uniqWith=im,a.unset=o_,a.unzip=Bi,a.unzipWith=cl,a.update=l_,a.updateWith=a_,a.values=Ft,a.valuesIn=u_,a.without=sm,a.words=Hl,a.wrap=np,a.xor=om,a.xorBy=lm,a.xorWith=am,a.zip=um,a.zipObject=cm,a.zipObjectDeep=fm,a.zipWith=dm,a.entries=ql,a.entriesIn=Bl,a.extend=kl,a.extendWith=mr,Wi(a,a),a.add=uv,a.attempt=Tl,a.camelCase=h_,a.capitalize=Ll,a.ceil=cv,a.clamp=c_,a.clone=ip,a.cloneDeep=op,a.cloneDeepWith=lp,a.cloneWith=sp,a.conformsTo=ap,a.deburr=Nl,a.defaultTo=W_,a.divide=fv,a.endsWith=g_,a.eq=De,a.escape=m_,a.escapeRegExp=p_,a.every=bm,a.find=Sm,a.findIndex=sl,a.findKey=Dp,a.findLast=Rm,a.findLastIndex=ol,a.findLastKey=Pp,a.floor=dv,a.forEach=dl,a.forEachRight=hl,a.forIn=Fp,a.forInRight=Up,a.forOwn=Wp,a.forOwnRight=Mp,a.get=Ii,a.gt=up,a.gte=cp,a.has=Kp,a.hasIn=Di,a.head=al,a.identity=_e,a.includes=qm,a.indexOf=Rg,a.inRange=f_,a.invoke=Yp,a.isArguments=Et,a.isArray=H,a.isArrayBuffer=fp,a.isArrayLike=me,a.isArrayLikeObject=X,a.isBoolean=dp,a.isBuffer=dt,a.isDate=hp,a.isElement=gp,a.isEmpty=mp,a.isEqual=pp,a.isEqualWith=_p,a.isError=Hi,a.isFinite=vp,a.isFunction=tt,a.isInteger=wl,a.isLength=hr,a.isMap=El,a.isMatch=yp,a.isMatchWith=Cp,a.isNaN=wp,a.isNative=Ep,a.isNil=Ap,a.isNull=bp,a.isNumber=bl,a.isObject=Z,a.isObjectLike=J,a.isPlainObject=_n,a.isRegExp=Ti,a.isSafeInteger=Sp,a.isSet=Al,a.isString=gr,a.isSymbol=Ee,a.isTypedArray=Pt,a.isUndefined=Rp,a.isWeakMap=xp,a.isWeakSet=kp,a.join=qg,a.kebabCase=__,a.last=Be,a.lastIndexOf=Bg,a.lowerCase=v_,a.lowerFirst=y_,a.lt=$p,a.lte=Op,a.max=hv,a.maxBy=gv,a.mean=mv,a.meanBy=pv,a.min=_v,a.minBy=vv,a.stubArray=Qi,a.stubFalse=Vi,a.stubObject=rv,a.stubString=iv,a.stubTrue=sv,a.multiply=yv,a.nth=Lg,a.noConflict=Y_,a.noop=Mi,a.now=cr,a.pad=C_,a.padEnd=w_,a.padStart=E_,a.parseInt=b_,a.random=d_,a.reduce=Tm,a.reduceRight=Im,a.repeat=A_,a.replace=S_,a.result=n_,a.round=Cv,a.runInContext=p,a.sample=Pm,a.size=Wm,a.snakeCase=R_,a.some=Mm,a.sortedIndex=Fg,a.sortedIndexBy=Ug,a.sortedIndexOf=Wg,a.sortedLastIndex=Mg,a.sortedLastIndexBy=Qg,a.sortedLastIndexOf=Vg,a.startCase=k_,a.startsWith=$_,a.subtract=wv,a.sum=Ev,a.sumBy=bv,a.template=O_,a.times=ov,a.toFinite=nt,a.toInteger=I,a.toLength=Rl,a.toLower=q_,a.toNumber=Le,a.toSafeInteger=qp,a.toString=Q,a.toUpper=B_,a.trim=L_,a.trimEnd=N_,a.trimStart=H_,a.truncate=T_,a.unescape=I_,a.uniqueId=av,a.upperCase=D_,a.upperFirst=Pi,a.each=dl,a.eachRight=hl,a.first=al,Wi(a,function(){var e={};return We(a,function(t,n){V.call(a.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),a.VERSION=d,xe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){a[e].placeholder=a}),xe(["drop","take"],function(e,t){U.prototype[e]=function(n){n=n===r?1:re(I(n),0);var i=this.__filtered__&&!t?new U(this):this.clone();return i.__filtered__?i.__takeCount__=ae(n,i.__takeCount__):i.__views__.push({size:ae(n,Ue),type:e+(i.__dir__<0?"Right":"")}),i},U.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),xe(["filter","map","takeWhile"],function(e,t){var n=t+1,i=n==os||n==Lc;U.prototype[e]=function(l){var c=this.clone();return c.__iteratees__.push({iteratee:q(l,3),type:n}),c.__filtered__=c.__filtered__||i,c}}),xe(["head","last"],function(e,t){var n="take"+(t?"Right":"");U.prototype[e]=function(){return this[n](1).value()[0]}}),xe(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");U.prototype[e]=function(){return this.__filtered__?new U(this):this[n](1)}}),U.prototype.compact=function(){return this.filter(_e)},U.prototype.find=function(e){return this.filter(e).head()},U.prototype.findLast=function(e){return this.reverse().find(e)},U.prototype.invokeMap=P(function(e,t){return typeof e=="function"?new U(this):this.map(function(n){return fn(n,e,t)})}),U.prototype.reject=function(e){return this.filter(dr(q(e)))},U.prototype.slice=function(e,t){e=I(e);var n=this;return n.__filtered__&&(e>0||t<0)?new U(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=I(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},U.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},U.prototype.toArray=function(){return this.take(Ue)},We(U.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),l=a[i?"take"+(t=="last"?"Right":""):t],c=i||/^find/.test(t);l&&(a.prototype[t]=function(){var h=this.__wrapped__,m=i?[1]:arguments,_=h instanceof U,w=m[0],E=_||H(h),b=function(F){var W=l.apply(a,st([F],m));return i&&S?W[0]:W};E&&n&&typeof w=="function"&&w.length!=1&&(_=E=!1);var S=this.__chain__,$=!!this.__actions__.length,B=c&&!S,D=_&&!$;if(!c&&E){h=D?h:new U(this);var L=e.apply(h,m);return L.__actions__.push({func:ar,args:[b],thisArg:r}),new $e(L,S)}return B&&D?e.apply(this,m):(L=this.thru(b),B?i?L.value()[0]:L.value():L)})}),xe(["pop","push","shift","sort","splice","unshift"],function(e){var t=Nn[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);a.prototype[e]=function(){var l=arguments;if(i&&!this.__chain__){var c=this.value();return t.apply(H(c)?c:[],l)}return this[n](function(h){return t.apply(H(h)?h:[],l)})}}),We(U.prototype,function(e,t){var n=a[t];if(n){var i=n.name+"";V.call(Nt,i)||(Nt[i]=[]),Nt[i].push({name:t,func:n})}}),Nt[tr(r,bt).name]=[{name:"wrapper",func:r}],U.prototype.clone=Id,U.prototype.reverse=Dd,U.prototype.value=Pd,a.prototype.at=gm,a.prototype.chain=mm,a.prototype.commit=pm,a.prototype.next=_m,a.prototype.plant=ym,a.prototype.reverse=Cm,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=wm,a.prototype.first=a.prototype.head,rn&&(a.prototype[rn]=vm),a},qt=pd();gt?((gt.exports=qt)._=qt,Ur._=qt):oe._=qt}).call(Mt)}(Cn,Cn.exports);var Da=Cn.exports;const br=Ia(Da);class Pa extends Se{constructor(s={}){super(s),this.defaultStateName={axios:"axios",formData:"formData",formErrors:"formErrors",formNode:"formNode",pageKey:"pageKey",qForm:"qForm"}}get isValid(){return super.isValid&&this.isValidHelpers}get isValidHelpers(){const{qForm:s}=this.controllerHelpers||{},{NodeHelper:r}=s||{};return typeof r!="function"?(console.log("invalid form helpers"),!1):!0}getConfig(){const s={...this.state.qForm||{},...this.config||{},...this.state[this.name]||{}};return typeof Ji=="function"?Ji.init({...s,helpers:{...this.controllerHelpers,element:this}}):{}}getFormCustomizer(){const{formCustomizer:s}=this.getHandlers();return typeof s=="function"?s:Fa}}function Fa(o,s){if(Array.isArray(o))return s||null;if(typeof s=="number"||typeof s=="boolean")return s;if(!s)return null}class Ua extends Se{constructor(s={}){super(s),this.defaultStateName={gridItems:"gridItems"}}get isValid(){return super.isValid&&this.isValidHelpers}get isValidHelpers(){const{qGrid:s}=this.controllerHelpers||{},{QItem:r,Cell:d}=s||{};return typeof r!="function"||typeof d!="function"?(console.log("invalid grid helpers"),!1):!0}getConfig(){const s={...this.state.qGrid||{},...this.config||{},...this.state[this.name]||{}};return typeof Xi=="function"?Xi.init({...s,helpers:{...this.controllerHelpers,element:this}}):{}}}class Wa extends Se{constructor(s={}){super(s),this.defaultStateName={qHtml:"qHtml"}}getConfig(){return{...this.state.qHtml||{},...this.config||{},...this.state[this.name]||{}}}}class Ma extends Se{constructor(s={}){super(s)}}class Qa extends Se{constructor(s={}){super(s),this.defaultStateName={qLabel:"qLabel"}}getConfig(){return{...this.state.qLabel||{},...this.config||{},...this.state[this.name]||{}}}}class Va extends Se{constructor(s={}){super(s),this.defaultStateName={qList:"qList",qSorterKeys:"qSorterKeys",rows:"rows"}}get isValid(){return super.isValid&&this.isValidHelpers}get isValidHelpers(){const{qList:s}=this.controllerHelpers||{},{QListBulkButton:r,QListButton:d,QRow:f}=s||{};return typeof r!="function"||typeof d!="function"||typeof f!="function"?(console.log("invalid list helpers"),!1):!0}getConfig(){const s={...this.state.qList||{},...this.config||{},...this.state[this.name]||{}};return typeof es=="function"?es.init({...s,helpers:{...this.controllerHelpers,element:this}}):{}}}class Ka extends Se{constructor(s={}){super(s),this.defaultStateName={currentPage:"currentPage",currentPageSize:"currentPageSize",qPaginator:"qPaginator",totalRecords:"totalRecords"}}getConfig(){return{...this.state.qPaginator||{},...this.config||{},...this.state[this.name]||{}}}}class za extends Se{constructor(s={}){super(s),this.defaultStateName={qScheduler:"qScheduler"}}getConfig(){return{...this.state.qScheduler||{},...this.config||{},...this.state[this.name]||{}}}}class Ga extends Se{constructor(s={}){super(s),this.defaultStateName={active:"active",qTab:"qTab",tabLayout:"tabLayout"}}getConfig(){return{...this.state.qTab||{},...this.config||{},...this.state[this.name]||{}}}}const te={...Ba,...{ElementQButton:Ha,ElementQComponent:Ta,ElementQForm:Pa,ElementQGrid:Ua,ElementQHtml:Wa,ElementQImport:Ma,ElementQLabel:Qa,ElementQList:Va,ElementQPaginator:Ka,ElementQScheduler:za,ElementQTab:Ga},Container:Wt,Element:Se,Node:Er};class Ya{static init({layout:s={},controllerHelpers:r={}}={}){return ts({layout:s,nodes:[],controllerHelpers:r})}}function ts({layout:o,nodes:s,controllerHelpers:r}){if(o instanceof te.Node)return o;const d={...o};return Array.isArray(d.children)&&(d.children=d.children.map(f=>ts({layout:f,nodes:s,controllerHelpers:r}))),Za(d,s,r)}function Za(o,s,r){const{nodeType:d,permissions:f}=o||{};if(typeof te[d]=="function"){const{permissionHandler:u}=r,v=f?u(f):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},R=te[d].init({...o,controllerHelpers:r,permissionResult:v});return R?R.isExist(s)?null:(s.push(R),R):null}return null}class Ja{constructor(s={}){this.css=s.css||"",this.controllerHelpers=s.controllerHelpers,this.eventHandlers=s.eventHandlers||{},this.id=s.id||Cr("controller"),this.initialState=s.initialState,this.name=s.name,this.saveStateKeys=s.saveStateKeys||[],this.setLayout(s.layout)}get createdElement(){return this.elements.filter(s=>s.isCreated)}get elements(){return this.layout.getElements()}get isValid(){return!!this.id&&this.isValidControllerHelpers}get isValidControllerHelpers(){const{qUtilities:s}=this.controllerHelpers;return s&&ns(s.convertString)&&ns(s.getValidation)}static init(s){const r=new this(s);return r.isValid?r:null}getElementByElementName(s){return this.elements.find(r=>r.getElementName()===s)}getState(){return{...this.getControllerState(),...this.layout.getElementState()}}getControllerState(){return this.state}setLayout(s){const r={...this.controllerHelpers,controller:this};this.layout=Ya.init({layout:s,controllerHelpers:r})}updateState(s={}){this.state={...this.state,...s},this.layout&&this.layout.updateElementState(this.state)}}function ns(o){return typeof o=="function"}const Qt={beforeCreate(){this.$options.components={...this.$options.components,QWidgetContainersContainer:g.defineAsyncComponent(()=>Promise.resolve().then(()=>Su)),QWidgetElementsElement:g.defineAsyncComponent(()=>Promise.resolve().then(()=>xc))}},methods:{currentContainer(o){return o.isVisible?o instanceof te.Container?"q-widget-containers-container":o instanceof te.Element?"q-widget-elements-element":null:null}}},Xa={name:"q-widget-controller",components:{QModal:Wl},mixins:[Qt],props:{controller:{type:Object,default:()=>({})}},data(){return{isReady:!1,loadingCount:0,modal:null,renderKey:0}},computed:{controllerCss(){return this.controller.css||""},controllerHelpers(){return this.controller.controllerHelpers},eventHandlers(){return this.controller.eventHandlers||{}},initControllerState(){return this.controller.initialState},node(){return this.controller.layout}},created(){this.init()},methods:{async init(){try{const{getControllerState:o}=this.controllerHelpers;let s=this.initControllerState;typeof o=="function"&&(s=await o({state:s}));const{onCreated:r}=this.eventHandlers;r&&(s=await this.eventHandler({state:s,event:r})),this.updateState(s),this.updateDocumentTitle(s)}catch(o){Ut({component:this,message:o.message})}finally{this.isReady=!0,this.reRenderElements()}},async callbackEmit({event:o,payload:s}){console.log("callbackEmit",o,s)},async callbackSubscribe(o,{event:s,payload:r,cb:d}){const{getControllerUniqueKey:f}=this.controllerHelpers;if(typeof f=="function"&&o===f())try{const{key:u}=s,{controllerSubscribed:v}=this.eventHandlers,R=v[u];let T=this.controller.getState();R&&(T=await this.eventHandler({state:{...T,eventPayload:r},event:R})),typeof d=="function"&&await d({event:s,payload:T})}catch(u){Ut({component:this,message:u.message})}},async eventHandler({event:o,state:s}){const{eventHandler:r}=this.controllerHelpers;if(typeof r!="function")return console.log("no eventHandler"),s;let d=s;const f=ja({event:o}),u=this.getLoadingFunctions({scope:f});try{if(rs({loadingFunctions:u,action:"start"}),o){const v={body:{...s},controller:this.controller,component:this,controllerHelpers:{...this.controllerHelpers,callbackEmit:this.callbackEmit,callbackSubscribe:this.callbackSubscribe,eventHandler:this.eventHandler,reRenderElements:this.reRenderElements,runEventChains:this.eventHandler,showError:Ut,updateState:this.updateState,updateLayout:this.updateLayout}},R=await r({event:o,payload:v});d={...d,...R}}return console.log(d),d}catch(v){throw new Error(v.message)}finally{rs({loadingFunctions:u,action:"stop"})}},getKey(o,s){return`${this.renderKey}-${o}-${s} `},getLoadingFunctions({scope:o=""}){const{startLoading:s,stopLoading:r}=this.controllerHelpers;switch(o){case"full":return typeof s!="function"||typeof r!="function"?null:{startLoading:s,stopLoading:r};case"none":return null;case"self":return{startLoading:this.startSelfLoading,stopLoading:this.stopSelfLoading};default:return{startLoading:this.startSelfLoading,stopLoading:this.stopSelfLoading}}},async onEvent(o){try{const{eventName:s,element:r,payload:d}=o,{elementEvents:f={}}=this.eventHandlers,u=f[s];u?await this.eventHandler({state:{...this.controller.getState(),eventPayload:d,eventElement:r},event:u}):console.log(`can not find the event ${s}`)}catch(s){Ut({component:this,message:s.message,modalConfig:{title:"提示"}})}},async onElementCreated(){try{console.log("onElementCreated",this.controller.elements,this.controller.createdElement);const o=this.eventHandlers.onElementCreated;o&&await this.eventHandler({state:this.controller.getState(),event:o})}catch(o){Ut({component:this,message:o.message})}},reRenderElements(){this.renderKey+=1},startSelfLoading(){this.loadingCount+=1},stopSelfLoading(){this.loadingCount-=1},updateDocumentTitle(o={}){const{documentTitle:s}=o;s&&(document.title=s)},updateState(o){this.controller.updateState(o);const{saveControllerState:s}=this.controllerHelpers;typeof s=="function"&&Ml({controller:this.controller,state:o,saveControllerState:s})},updateLayout(o,s){o||console.log("no layout"),s||console.log("use controller state"),this.controller.setLayout(o),this.controller.updateState(s),this.reRenderElements()}}};function ja({event:o={}}={}){return o.scope||"full"}function rs({loadingFunctions:o,action:s}){if(o){const{startLoading:r,stopLoading:d}=o;switch(s){case"start":{r();break}case"stop":{d();break}}}}function eu(o,s,r,d,f,u){const v=g.resolveComponent("q-modal");return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-controller __controller",u.controllerCss])},[u.node?(g.openBlock(),g.createBlock(g.resolveDynamicComponent(o.currentContainer(u.node)),{key:f.renderKey,controllerReady:f.isReady,node:u.node,loadingCount:f.loadingCount,onOnEvent:u.onEvent,onOnElementCreated:u.onElementCreated},null,40,["controllerReady","node","loadingCount","onOnEvent","onOnElementCreated"])):g.createCommentVNode("v-if",!0),f.modal?(g.openBlock(),g.createBlock(v,{key:u.getKey("modal",f.modal),modal:f.modal},null,8,["modal"])):g.createCommentVNode("v-if",!0)],2)}const tu={name:"q-widget",components:{QWidgetController:ee(Xa,[["render",eu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Controller.vue"]])},props:{content:{type:Object,default:()=>({})},contentHelpers:{type:Object,default:()=>({})},controller:{type:Object,default:()=>null},controllerHelpers:{type:Object,default:()=>null}},data(){return{controllerInstence:null,error:null}},computed:{hasError(){return this.error}},created(){this.init()},methods:{init(){try{const o=this.controllerHelpers||this.contentHelpers||{},s=o.qUtilities||{},r=this.controller||this.content;if(this.controllerInstence=Ja.init({...r,controllerHelpers:{permissionHandler:nu,...o,qUtilities:{...ga,...s}}}),!this.controllerInstence)throw new Error("invalid controller")}catch(o){this.error=o.message||"invalid controller"}}}};function nu(){return{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0}}const ru={class:"q-widget"},iu={key:1,class:"__error"};function su(o,s,r,d,f,u){const v=g.resolveComponent("q-widget-controller");return g.openBlock(),g.createElementBlock("div",ru,[u.hasError?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createBlock(v,{key:0,controller:f.controllerInstence},null,8,["controller"])),u.hasError?(g.openBlock(),g.createElementBlock("div",iu,g.toDisplayString(f.error),1)):g.createCommentVNode("v-if",!0)])}const wn=ee(tu,[["render",su],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/QWidget.vue"]]);function ou(o){o.component(wn.name,wn)}wn.install=ou;const lu={name:"q-widget-containers-box",mixins:[Qt],props:{controllerReady:{type:Boolean,default:!1},getKey:{type:Function,default:()=>null},node:{type:Object,default:()=>({})},loadingCount:{type:Number,default:0}},emits:["onEvent","onElementCreated"],computed:{children(){return this.node.children||[]}},methods:{onEvent(o){this.$emit("onEvent",o)},onElementCreated(o){this.$emit("onElementCreated",o)}}},au={class:"q-widget-containers-box __outer-box"},uu={class:"__inner-box"};function cu(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",au,[g.createElementVNode("div",uu,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(u.children,(v,R)=>(g.openBlock(),g.createBlock(g.resolveDynamicComponent(o.currentContainer(v)),{key:r.getKey("box",R),controllerReady:r.controllerReady,node:v,loadingCount:r.loadingCount,onOnEvent:u.onEvent,onOnElementCreated:u.onElementCreated},null,40,["controllerReady","node","loadingCount","onOnEvent","onOnElementCreated"]))),128))])])}const fu=ee(lu,[["render",cu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Containers/Box.vue"]]),du={name:"q-widget-containers-column",mixins:[Qt],props:{controllerReady:{type:Boolean,default:!1},getKey:{type:Function,default:()=>null},node:{type:Object,default:()=>({})},loadingCount:{type:Number,default:0}},emits:["onEvent","onElementCreated"],computed:{children(){return this.node.children||[]}},methods:{onEvent(o){this.$emit("onEvent",o)},onElementCreated(o){this.$emit("onElementCreated",o)}}},hu={class:"q-widget-containers-column __column"};function gu(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",hu,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(u.children,(v,R)=>(g.openBlock(),g.createBlock(g.resolveDynamicComponent(o.currentContainer(v)),{key:r.getKey("cloumn",R),controllerReady:r.controllerReady,node:v,loadingCount:r.loadingCount,onOnEvent:u.onEvent,onOnElementCreated:u.onElementCreated},null,40,["controllerReady","node","loadingCount","onOnEvent","onOnElementCreated"]))),128))])}const mu=ee(du,[["render",gu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Containers/Column.vue"]]),pu={name:"q-widget-containers-header-sticky",mixins:[Qt],props:{controllerReady:{type:Boolean,default:!1},getKey:{type:Function,default:()=>null},node:{type:Object,default:()=>({})},loadingCount:{type:Number,default:0}},emits:["onEvent","onElementCreated"],computed:{children(){return this.node.children||[]}},methods:{onEvent(o){this.$emit("onEvent",o)},onElementCreated(o){this.$emit("onElementCreated",o)}}},_u={class:"q-widget-containers-header-sticky __header __sticky --sticky-top"};function vu(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",_u,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(u.children,(v,R)=>(g.openBlock(),g.createBlock(g.resolveDynamicComponent(o.currentContainer(v)),{key:r.getKey("header-sticky",R),controllerReady:r.controllerReady,node:v,loadingCount:r.loadingCount,onOnEvent:u.onEvent,onOnElementCreated:u.onElementCreated},null,40,["controllerReady","node","loadingCount","onOnEvent","onOnElementCreated"]))),128))])}const yu=ee(pu,[["render",vu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Containers/HeaderSticky.vue"]]),Cu={name:"q-widget-containers-row",mixins:[Qt],props:{controllerReady:{type:Boolean,default:!1},getKey:{type:Function,default:()=>null},node:{type:Object,default:()=>({})},loadingCount:{type:Number,default:0}},emits:["onEvent","onElementCreated"],computed:{children(){return this.node.children||[]}},methods:{onEvent(o){this.$emit("onEvent",o)},onElementCreated(o){this.$emit("onElementCreated",o)}}},wu={class:"q-widget-containers-row __row"};function Eu(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",wu,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(u.children,(v,R)=>(g.openBlock(),g.createBlock(g.resolveDynamicComponent(o.currentContainer(v)),{key:r.getKey("row",R),controllerReady:r.controllerReady,node:v,loadingCount:r.loadingCount,onOnEvent:u.onEvent,onOnElementCreated:u.onElementCreated},null,40,["controllerReady","node","loadingCount","onOnEvent","onOnElementCreated"]))),128))])}const bu={name:"q-widget-containers-container",components:{QWidgetBoxContainer:fu,QWidgetColumnContainer:mu,QWidgetHeaderStickyContainer:yu,QWidgetRowContainer:ee(Cu,[["render",Eu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Containers/Row.vue"]])},props:{controllerReady:{type:Boolean,default:!1},node:{type:Object,default:()=>({})},loadingCount:{type:Number,default:0}},emits:["onEvent","onElementCreated"],computed:{children(){return this.node.getVisibleChildren()||[]}},methods:{factoryInit(o){return o instanceof te.ContainerBox?"q-widget-box-container":o instanceof te.ContainerColumn?"q-widget-column-container":o instanceof te.ContainerHeaderSticky?"q-widget-header-sticky-container":o instanceof te.ContainerRow?"q-widget-row-container":""},getClass(o){return o.css||""},getKey(o,s){return`${o}-${s}`},onEvent(o){this.$emit("onEvent",o)},onElementCreated(){this.node.isCreated&&this.$emit("onElementCreated")}}};function Au(o,s,r,d,f,u){return g.openBlock(),g.createBlock(g.resolveDynamicComponent(u.factoryInit(r.node)),{class:g.normalizeClass(u.getClass(r.node)),controllerReady:r.controllerReady,getKey:u.getKey,node:r.node,loadingCount:r.loadingCount,onOnEvent:u.onEvent,onOnElementCreated:u.onElementCreated},null,40,["class","controllerReady","getKey","node","loadingCount","onOnEvent","onOnElementCreated"])}const Su=Object.freeze(Object.defineProperty({__proto__:null,default:ee(bu,[["render",Au],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Containers/Container.vue"]])},Symbol.toStringTag,{value:"Module"})),Ru={name:"q-widget-elements-adapters-q-button",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],computed:{$button(){return this.$config.button||{}},$config(){return this.element.getConfig()},$event(){return this.$button.event||"onButtonClick"},$url(){return this.$button.url||""},button(){return{...this.$button,url:this.url}},helpers(){return this.element.controllerHelpers||{}},url(){const o=this.$config.patternMatch||/\$\{(.+?)\}/g,{convertString:s}=this.helpers.qUtilities;return s(this.$url,o,this.state)},isReady(){return this.loadingCount<=0&&this.controllerReady}},created(){this.controllerReady&&this.init()},methods:{init(){this.element.onCreated({component:this}),this.$emit("onCreated")},getClass(o){return o.css||""},onClick(o){const s={eventName:this.$event,payload:o};this.$emit("onEvent",s)}}},xu={key:1};function ku(o,s,r,d,f,u){const v=g.resolveComponent("q-button",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-button q-widget-adapters-q-button __element __adapter __button __flex",u.getClass(r.element)])},[u.isReady?(g.openBlock(),g.createBlock(v,{key:0,class:"q-button",button:u.button,onClick:u.onClick,onOnChange:u.onClick,onUpload:u.onClick},null,8,["button","onClick","onOnChange","onUpload"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",xu,s[0]||(s[0]=[g.createElementVNode("div",{class:"button __loading-box"},[g.createElementVNode("div",{class:"skeleton"},[g.createElementVNode("div",{class:"skeleton__tr"},[g.createElementVNode("div",{class:"skeleton__td"})])])],-1)])))],2)}const $u=ee(Ru,[["render",ku],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QButton.vue"]]),Ou={name:"q-widget-elements-adapters-q-form",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],data(){return{formErrors:[],formValue:null,initPageKey:"",isFormReady:!1}},computed:{$buttons(){return this.$config.buttons||[]},$config(){return this.element.getConfig()},$disabledForm(){return this.$config.disabledForm||!1},$eventName(){return this.$config.eventName||{}},$formCss(){return this.$config.css||{}},$formHandler(){return this.$config.formHandler},$layout(){return this.$config.layout},$previewForm(){return this.$config.previewForm||!1},axios(){return this.state.axios},elementHandlers(){return this.element.getHandlers()},customizer(){return this.element.getFormCustomizer()},displayLayout(){return this.getLayout()},formData(){return this.state.formData},helpers(){return this.element.controllerHelpers||{}},isReady(){return this.loadingCount<=0&&this.controllerReady},pageKey(){return this.state.pageKey||this.initPageKey||""}},created(){this.controllerReady&&this.init()},methods:{init(){this.formValue=br.cloneDeep(this.formData),this.isFormReady=!0},getClass(o){return o.css||""},getLayout(){if(!this.$layout)return null;const{NodeHelper:o}=this.helpers.qForm,{convertString:s,getValidation:r}=this.helpers.qUtilities;return Bu({config:this.$config,convertString:s,getValidation:r,layout:this.$layout,NodeHelper:o,state:this.state})},onChange(o){const{node:s}=o;this.formErrors=[];const r=s.save({errors:this.formErrors}),d=br.mergeWith(this.formValue,r,this.customizer),u={eventName:this.$eventName.onFormChange||"onFormChange",payload:{...o,formData:d,errors:this.formErrors}};this.$emit("onEvent",u)},onClick(o){const{value:s,event:r}=o,d=br.mergeWith(this.formValue,s,this.customizer),f={eventName:r,payload:{...o,errors:this.formErrors,formData:d}};this.$emit("onEvent",f)},onCreated(o){const{pageKey:s,node:r}=o;this.initPageKey=s;const{afterSave:d}=this.elementHandlers;typeof d=="function"&&r.subscribe("afterSave",d({node:r,state:this.state})),this.formErrors=[],r.save({errors:this.formErrors}),this.element.onCreated({component:this,payload:{...o,formErrors:this.formErrors,formNode:r,pageKey:s}}),this.$emit("onCreated")}}};function qu(o,s,r,d){const f=/['"]\$\{(.+?)\}['"]/g;return JSON.parse(d(JSON.stringify(o),f,r))}function Bu({config:o={},convertString:s,getValidation:r,layout:d,NodeHelper:f,state:u}){const v=Lu({config:o,getValidation:r,layout:d,NodeHelper:f,state:u});return qu(v,o,u,s)}function Lu({config:o={},getValidation:s,layout:r,NodeHelper:d,state:f}){let u=r;const{updateLayoutConfigs:v=[]}=o;return typeof d.updateNode=="function"&&v.forEach(R=>{const{key:T,value:x,type:A,restriction:O}=R;s({rule:O,data:f})&&(u=d.updateNode({keys:T.split("."),value:x,layout:u,type:A}))}),u}const Nu={key:1};function Hu(o,s,r,d,f,u){const v=g.resolveComponent("q-form",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-form q-widget-adapters-q-form __element __adapter __form",u.getClass(r.element)])},[u.isReady&&f.isFormReady&&u.displayLayout?(g.openBlock(),g.createBlock(v,{key:0,axios:u.axios,buttons:u.$buttons,css:u.$formCss,disabledForm:u.$disabledForm,formHandler:u.$formHandler,layout:u.displayLayout,pageKey:u.pageKey,previewForm:u.$previewForm,value:f.formValue,onOnClick:u.onClick,onOnChange:u.onChange,onOnCreated:u.onCreated},null,8,["axios","buttons","css","disabledForm","formHandler","layout","pageKey","previewForm","value","onOnClick","onOnChange","onOnCreated"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",Nu,s[0]||(s[0]=[g.createStaticVNode('<div class="__loading-box"><div class="skeleton"><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__tr"><div class="skeleton__td"></div></div></div></div>',1)])))],2)}const Tu=ee(Ou,[["render",Hu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QForm.vue"]]),Iu={name:"q-widget-elements-adapters-q-grid",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],data(){return{itemsData:[]}},computed:{$cellHandler(){return this.$config.cellHandler},$classes(){return this.$config.classes},$config(){return this.element.getConfig()},$converter(){return this.$config.converter},$eventName(){return this.$config.eventName||{}},$fillLastRow(){return this.$config.fillLastRow||!1},$gridCss(){return this.$config.css||""},$layout(){return this.$config.layout},$placeholder(){return this.$config.placeholder||null},$urlDelegate(){return this.$config.urlDelegate||""},displayLayout(){return this.getLayout()},gridItems(){return this.state.gridItems},helpers(){return this.element.controllerHelpers||{}},isReady(){return this.loadingCount<=0&&this.controllerReady}},created(){this.controllerReady&&this.init()},methods:{init(){this.itemsData=this.gridItems.map(this.$converter),this.element.onCreated({component:this}),this.$emit("onCreated")},getClass(o){return o.css||""},getLayout(){if(!this.$layout)return null;const{convertString:o}=this.helpers.qUtilities;return Du(this.$layout,{},this.state,o)},onClickGridItem(o){const r={eventName:this.$eventName.onClickGridItem||"onClickGridItem",payload:o};this.$emit("onEvent",r)},onButtonClick(o){const r={eventName:this.$eventName.onClick||"onGridButtonClick",payload:o};this.$emit("onEvent",r)}}};function Du(o,s,r,d){const f=/['"]\$\{(.+?)\}['"]/g;return JSON.parse(d(JSON.stringify(o),f,r))}const Pu={key:1};function Fu(o,s,r,d,f,u){const v=g.resolveComponent("q-grid",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-grid q-widget-adapters-q-grid __element __adapter __grid",u.getClass(r.element)])},[u.isReady?(g.openBlock(),g.createBlock(v,{key:0,cellHandler:u.$cellHandler,classes:u.$classes,css:u.$gridCss,fillLastRow:u.$fillLastRow,items:f.itemsData,layout:u.displayLayout,placeholder:u.$placeholder,urlDelegate:u.$urlDelegate,onOnClick:u.onButtonClick,onOnClickGridItem:u.onClickGridItem},null,8,["cellHandler","classes","css","fillLastRow","items","layout","placeholder","urlDelegate","onOnClick","onOnClickGridItem"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",Pu," Loading "))],2)}const Uu=ee(Iu,[["render",Fu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QGrid.vue"]]),Wu={name:"q-widget-elements-adapters-q-html",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated"],computed:{$config(){return this.element.getConfig()||{}},$html(){const o=this.$config.patternMatch||/\$\{(.+?)\}/g,{convertString:s}=this.helpers.qUtilities;return s(this.$config.html,o,this.state)},helpers(){return this.element.controllerHelpers||{}},isReady(){return this.loadingCount<=0&&this.controllerReady}},created(){this.controllerReady&&this.init()},methods:{init(){this.element.onCreated({component:this}),this.$emit("onCreated")},getClass(o){return o.css||""}}},Mu=["innerHTML"],Qu={key:1};function Vu(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-html q-widget-adapters-q-html __element __adapter __html",u.getClass(r.element)])},[u.$html&&u.isReady?(g.openBlock(),g.createElementBlock("div",{key:0,class:"__html",innerHTML:u.$html},null,8,Mu)):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",Qu,[g.createCommentVNode(" loading ")]))],2)}const Ku=ee(Wu,[["render",Vu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QHtml.vue"]]),zu={name:"q-widget-elements-adapters-q-import",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated"],data(){return{elementState:{}}},computed:{$additionalListHeaders(){return this.$config.additionalListHeaders||[]},$config(){return this.element.getConfig()},$label(){return this.$config.label},$templateUrl(){return this.$config.templateUrl},elementHandlers(){return this.element.getHandlers()},isReady(){return this.loadingCount<=0&&this.controllerReady}},created(){this.controllerReady&&this.init()},methods:{init(){this.element.onCreated({component:this}),this.$emit("onCreated")},formatRowData(o){return this.elementHandlers.formatRowData(o)},getClass(o){return o.css||""},setElementState(o){this.elementState={...this.elementState,...o}},showError(o={}){const{payload:s}=o;return this.elementHandlers.showError({payload:s,state:{...this.state,...this.elementState}})},showSuccess({payload:o}){return this.elementHandlers.showSuccess({payload:o,state:{...this.state,...this.elementState}})},validationHandler({payload:o}){return this.elementHandlers.validationHandler({payload:o,state:this.state,setElementState:this.setElementState})}}},Gu={key:1};function Yu(o,s,r,d,f,u){const v=g.resolveComponent("q-import",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-import q-widget-adapters-q-import __element __adapter",u.getClass(r.element)])},[u.isReady?(g.openBlock(),g.createBlock(v,{key:0,additionalListHeaders:u.$additionalListHeaders,formatRowData:u.formatRowData,label:u.$label,showError:u.showError,showSuccess:u.showSuccess,templateUrl:u.$templateUrl,validationHandler:u.validationHandler},null,8,["additionalListHeaders","formatRowData","label","showError","showSuccess","templateUrl","validationHandler"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",Gu,s[0]||(s[0]=[g.createElementVNode("div",{class:"import __loading-box"},[g.createElementVNode("div",{class:"skeleton"},[g.createElementVNode("div",{class:"skeleton__tr"},[g.createElementVNode("div",{class:"skeleton__td"})])])],-1)])))],2)}const Zu=ee(zu,[["render",Yu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QImport.vue"]]),Ju={name:"q-widget-elements-adapters-q-label",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated"],computed:{$config(){return this.element.getConfig()},$label(){return this.$config.label||""},isReady(){return this.loadingCount<=0&&this.controllerReady},tag(){return this.element&&this.element.config?this.element.config.tag||"div":"h2"}},created(){this.controllerReady&&this.init()},methods:{init(){this.element.onCreated({component:this}),this.$emit("onCreated")},getClass(o){return o.css||""}}},Xu={key:1};function ju(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-label q-widget-adapters-q-label __element __label",u.getClass(r.element)])},[u.$label&&u.isReady?(g.openBlock(),g.createBlock(g.resolveDynamicComponent(u.tag),{key:0},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(u.$label),1)]),_:1})):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",Xu))],2)}const ec=ee(Ju,[["render",ju],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QLabel.vue"]]),tc={name:"q-widget-elements-adapters-q-list",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],data(){return{listRows:[],paginatorLayout:null,ready:!1}},computed:{$config(){return this.element.getConfig()},$converter(){return this.$config.converter},$css(){return this.$config.css},$eventName(){return this.$config.eventName||{}},$expansion(){return this.$config.expansion||[]},$listBulkAction(){return this.$config.bulkAction||{}},$listHeaders(){return this.$config.headers||[]},$listSortBys(){return this.$config.listSortBys||[]},$listShowFooter(){return this.$config.listShowFooter||!1},$listStyle(){return this.$config.listStyle||"q-list-table"},$noDataMessage(){return this.$config.noDataMessage||""},helpers(){return this.element.controllerHelpers||{}},isReady(){return this.loadingCount<=0&&this.controllerReady},listSortKeys(){return this.state.qSorterKeys||[]},rows(){return this.state.rows||[]}},created(){this.controllerReady&&this.init()},methods:{init(){this.listRows=this.rows.map(this.$converter),this.element.onCreated({component:this}),this.$emit("onCreated"),this.ready=!0},converter(o){return o},getClass(o){return o.css||""},onClickList(o){const{action:s={},qRow:r,row:d}=o,{qListButtonType:f=""}=s,u={eventName:f||"onListClick",payload:o};this.$emit("onEvent",u)},onClickListBulk(o){const{action:s,qRows:r,rows:d}=o,{qListButtonType:f}=s,u={eventName:f||"onListClickBulk",payload:o};this.$emit("onEvent",u)},onInputChange(o){const s={eventName:"onListInputChange",payload:o};this.$emit("onEvent",s)},onListHeaderClick(o){const{key:s}=o.header;if(is(s,this.$listSortBys)){const d=nc(this.listSortKeys,s),f=rc(this.$listSortBys,d),u={eventName:this.$eventName.onListClickHeader||"onListClickHeader",payload:{qSorterKeys:d,qSorter:f}};this.$emit("onEvent",u)}},onRowClick(o){const{qRow:s,row:r}=o,d={eventName:"onRowClick",payload:o};this.$emit("onEvent",d)}}};function is(o,s){return o?s.find(r=>{const{key:d}=r;return o===d}):null}function nc(o,s){let r=!1;const d=o.map(f=>{const{by:u,direction:v}=f;if(s===u){r=!0;const R=typeof v<"u"?Number(v)===1?-1:Number(v)===-1?0:1:1;return{...f,direction:R}}return f});return r?d.filter(f=>f.direction!==0):[...o,{by:s,direction:1}]}function rc(o,s){return s.reduce((r,d)=>{const{by:f,direction:u}=d,v=is(f,o),{value:R=[]}=v;if(!v)return r;const T=R.map(x=>({...x,direction:u}));return r.push(...T),r},[])}const ic={key:1};function sc(o,s,r,d,f,u){const v=g.resolveComponent("q-list",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-list q-widget-adapters-q-list __element __adapter __list",u.getClass(r.element)])},[u.isReady&&f.ready?(g.openBlock(),g.createBlock(v,{key:0,bulkAction:u.$listBulkAction,css:u.$css,expansion:u.$expansion,headers:u.$listHeaders,listStyle:u.$listStyle,noDataMessage:u.$noDataMessage,rows:f.listRows,showFooter:u.$listShowFooter,sortBys:u.$listSortBys,sortStatus:u.listSortKeys,onClick:u.onClickList,onOnClickBulk:u.onClickListBulk,onOnInputChange:u.onInputChange,onOnListHeaderClick:u.onListHeaderClick,onOnRowClick:u.onRowClick},null,8,["bulkAction","css","expansion","headers","listStyle","noDataMessage","rows","showFooter","sortBys","sortStatus","onClick","onOnClickBulk","onOnInputChange","onOnListHeaderClick","onOnRowClick"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",ic,s[0]||(s[0]=[g.createStaticVNode('<div class="__loading-box"><div class="skeleton"><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__hr"></div><div class="skeleton__section skeleton__section--table"><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div></div></div></div>',1)])))],2)}const oc=ee(tc,[["render",sc],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QList.vue"]]),lc={name:"q-widget-elements-adapters-q-paginator",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],data(){return{isPaginator:!1,paginatorLayout:null}},computed:{$config(){return this.element.getConfig()},$controlLabel(){return this.$config.controlLabel},$eventName(){return this.$config.eventName||{}},$paginatorLayout(){return this.$config.layout},$paginatorSizeOptions(){return this.$paginatorLayout.pageSizeOptions||[]},currentPage(){return this.state.currentPage},currentPageSize(){return this.state.currentPageSize},currentPageSizeOptionsIndex(){return this.$paginatorSizeOptions.indexOf(this.currentPageSize)},initPage(){return this.currentPage>=0?this.currentPage:this.$paginatorLayout.initPage},isReady(){return this.loadingCount<=0&&this.controllerReady},pageSizeOptionsIndex(){return this.currentPageSizeOptionsIndex>=0?this.currentPageSizeOptionsIndex:(this.onChangeRecPerPage(this.$paginatorSizeOptions[this.$paginatorLayout.pageSizeOptionsIdx],this.initPage),this.$paginatorLayout.pageSizeOptionsIndex)},totalRecords(){return this.state.totalRecords}},created(){this.controllerReady&&this.init()},mounted(){},methods:{init(){this.paginatorLayout={...this.$paginatorLayout,initPage:this.initPage,pageSizeOptionsIndex:this.pageSizeOptionsIndex},this.isPaginator=!0,this.element.onCreated({component:this}),this.$emit("onCreated")},getClass(o){return o.css||""},onChangePageIdx(o){if(o!==this.currentPage){const r={eventName:this.$eventName.onChangePageIdx||"onChangePageIdx",payload:{currentPage:o}};this.$emit("onEvent",r)}},onChangeRecPerPage(o,s){const d={eventName:this.$eventName.onChangeRecPerPage||"onChangeRecPerPage",payload:{currentPageSize:o,currentPage:s}};this.$emit("onEvent",d)}}},ac={key:1};function uc(o,s,r,d,f,u){const v=g.resolveComponent("q-paginator",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-paginator q-widget-adapters-q-paginator __element __adapter __paginator",u.getClass(r.element)])},[f.isPaginator&&u.isReady?(g.openBlock(),g.createBlock(v,{key:0,controlLabel:u.$controlLabel,layout:f.paginatorLayout,total:u.totalRecords,onChangeCurrentPage:u.onChangePageIdx,onChangePageSize:u.onChangeRecPerPage},null,8,["controlLabel","layout","total","onChangeCurrentPage","onChangePageSize"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",ac,s[0]||(s[0]=[g.createStaticVNode('<div class="paginator __loading-box"><div class="skeleton"><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div></div></div>',1)])))],2)}const cc=ee(lc,[["render",uc],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QPaginator.vue"]]),fc={name:"q-widget-elements-adapters-q-scheduler",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],computed:{$allCellSelectable(){return this.$config.allCellSelectable},$bookings(){return this.state.bookings},$canSelectMoreThanOne(){return this.$config.canSelectMoreThanOne},$config(){return this.element.getConfig()},$emptyMessage(){return this.$config.emptyMessage},$eventBlockTemplate(){return this.$config.eventBlockTemplate},$eventsObj(){return this.state.schedulerEventsObj},$headerActions(){return this.$config.headerActions},$headers(){return this.state.schedulerHeaders},$labelTemplates(){return this.$config.labelTemplates},$layoutConfig(){return this.$config.layoutConfig},$isSelectingRange(){return this.$config.isSelectingRange},$showActions(){return this.$config.showActions},$showSelectWhloeDayAction(){return this.$config.showSelectWhloeDayAction},$tempEventConfig(){return this.$config.tempEventConfig},$tempEvents(){return this.state.tempEvents},$timeSlotsByDay(){return this.state.timeSlotsByDay},helpers(){return this.element.controllerHelpers||{}},isReady(){return this.loadingCount<=0&&this.controllerReady}},created(){this.controllerReady&&this.init()},methods:{init(){this.element.onCreated({component:this}),this.$emit("onCreated")},getClass(o){return o.css||""},onChangeDate(o){const s={eventName:"onSchedulerChangeDate",payload:o};this.$emit("onEvent",s)},onClickBooking(o){const s={eventName:"onSchedulerClickBooking",payload:o};this.$emit("onEvent",s)},onClickHeaderAction(o){const s={eventName:"onSchedulerClickHeaderAction",payload:o};this.$emit("onEvent",s)},onClickNextPage(o){const s={eventName:"onSchedulerClickNextPage",payload:o};this.$emit("onEvent",s)},onClickPreviousPage(o){const s={eventName:"onSchedulerClickPreviousPage",payload:o};this.$emit("onEvent",s)},onDeleteTempEvent(o){const s={eventName:"onSchedulerDeleteTempEvent",payload:o};this.$emit("onEvent",s)},selectTime(o){const s={eventName:"onSchedulerSelectTime",payload:o};this.$emit("onEvent",s)}}},dc={key:1};function hc(o,s,r,d,f,u){const v=g.resolveComponent("q-scheduler",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-scheduler q-widget-adapters-q-scheduler __element __adapter __flex",u.getClass(r.element)])},[u.isReady?(g.openBlock(),g.createBlock(v,{key:0,class:"q-scheduler",allCellSelectable:u.$allCellSelectable,bookings:u.$bookings,canSelectMoreThanOne:u.$canSelectMoreThanOne,emptyMessage:u.$emptyMessage,eventBlockTemplate:u.$eventBlockTemplate,eventsObj:u.$eventsObj,headerActions:u.$headerActions,headers:u.$headers,labelTemplates:u.$labelTemplates,layoutConfig:u.$layoutConfig,isSelectingRange:u.$isSelectingRange,showActions:u.$showActions,showSelectWhloeDayAction:u.$showSelectWhloeDayAction,tempEventConfig:u.$tempEventConfig,tempEvents:u.$tempEvents,timeSlotsByDay:u.$timeSlotsByDay,onOnDeleteTempEvent:u.onDeleteTempEvent,onSelectTime:u.selectTime,onOnClickBooking:u.onClickBooking,onOnClickHeaderAction:u.onClickHeaderAction,onOnChangeDate:u.onChangeDate,onOnClickPreviousPage:u.onClickPreviousPage,onOnClickNextPage:u.onClickNextPage},null,8,["allCellSelectable","bookings","canSelectMoreThanOne","emptyMessage","eventBlockTemplate","eventsObj","headerActions","headers","labelTemplates","layoutConfig","isSelectingRange","showActions","showSelectWhloeDayAction","tempEventConfig","tempEvents","timeSlotsByDay","onOnDeleteTempEvent","onSelectTime","onOnClickBooking","onOnClickHeaderAction","onOnChangeDate","onOnClickPreviousPage","onOnClickNextPage"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",dc,s[0]||(s[0]=[g.createElementVNode("div",{class:"__loading-box"},[g.createElementVNode("div",{class:"skeleton"},[g.createElementVNode("div",{class:"skeleton__tr"},[g.createElementVNode("div",{class:"skeleton__td"})])])],-1)])))],2)}const gc=ee(fc,[["render",hc],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QScheduler.vue"]]),mc={name:"q-widget-elements-adapters-q-tab",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],data(){return{active:{},renderKey:0,tabLayout:[]}},computed:{$config(){return this.element.getConfig()},$eventName(){return this.$config.eventName||{}},$tabLayout(){return this.$config.layout||[]},activeKey(){return this.active.key},isReady(){return this.loadingCount<=0&&this.controllerReady}},created(){this.controllerReady&&this.init()},methods:{init(){this.tabLayout=[...this.$tabLayout],this.active=this.state.active||this.tabLayout[0]||{},this.element.onCreated({component:this,payload:{tabLayout:this.tabLayout}}),this.$emit("onCreated")},getClass(o){return o.css||""},onChangeTab(o){const r={eventName:this.$eventName.onChangeTab||"onTabChange",payload:{active:o}};this.$emit("onEvent",r)}}},pc={key:0,class:"__tabs __flex"},_c=["href"],vc=["onClick"],yc={key:1};function Cc(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-tab q-widget-adapters-q-tab __element __adapter",u.getClass(r.element)])},[u.isReady?(g.openBlock(),g.createElementBlock("div",pc,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(f.tabLayout,(v,R)=>(g.openBlock(),g.createElementBlock("div",{key:R,class:g.normalizeClass(["__pointer __tab",u.activeKey===v.key?"__active":""])},[v.url?(g.openBlock(),g.createElementBlock("a",{key:0,href:v.url},g.toDisplayString(v.label)+g.toDisplayString(Number.isNaN(Number(v.total))?"":`(${Number(v.total)})`),9,_c)):g.createCommentVNode("v-if",!0),v.url?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",{key:1,onClick:T=>u.onChangeTab(v)},g.toDisplayString(v.label)+g.toDisplayString(Number.isNaN(Number(v.total))?"":`(${Number(v.total)})`),9,vc))],2))),128))])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",yc,s[0]||(s[0]=[g.createStaticVNode('<div class="__loading-box"><div class="skeleton"><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div></div></div>',1)])))],2)}const wc=ee(mc,[["render",Cc],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QTab.vue"]]),Ec={name:"q-widget-elements-adapters-q-component",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],computed:{$config(){return this.element.getConfig()||{}},$componentName(){return this.$config.componentName},$component(){return this.state?.elementComponents?this.state.elementComponents[this.$componentName]:null},$componentPayload(){return this.state.componentPayload?this.state.componentPayload[this.element.name]:{}},$eventName(){return this.$config.eventName||{}},$payload(){return{state:this.state,...this.$componentPayload}},helpers(){return this.element.controllerHelpers||{}},isReady(){return this.loadingCount<=0&&this.controllerReady&&!!this.$component}},created(){this.controllerReady&&this.init()},methods:{init(){this.element.onCreated({component:this}),this.$emit("onCreated")},getClass(o){return o.css||""},getComponent(){return this.$component||"div"},onElementEvent({eventName:o,payload:s}={}){const r={eventName:this.$eventName[o]||o,payload:s};this.$emit("onEvent",r)}}},bc={key:1};function Ac(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-component q-widget-adapters-q-component __element __adapter __component",u.getClass(r.element)])},[u.isReady?(g.openBlock(),g.createBlock(g.resolveDynamicComponent(u.getComponent()),{key:0,class:"__component",payload:u.$payload,onOnElementEvent:u.onElementEvent},null,40,["payload","onOnElementEvent"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",bc,[g.createCommentVNode(" loading ")]))],2)}const Sc={name:"q-widget-elements-element",components:{QWidgetQButtonElement:$u,QWidgetQFormElement:Tu,QWidgetQGridElement:Uu,QWidgetQHtmlElement:Ku,QWidgetQImportElement:Zu,QWidgetQLabelElement:ec,QWidgetQListElement:oc,QWidgetQPaginatorElement:cc,QWidgetQSchedulerElement:gc,QWidgetQTabElement:wc,QWidgetQComponentElement:ee(Ec,[["render",Ac],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QComponent.vue"]])},props:{controllerReady:{type:Boolean,default:!1},node:{type:Object,default:()=>({})},loadingCount:{type:Number,default:0}},emits:["onEvent","onElementCreated"],computed:{elementName(){return this.element.getElementName()},element(){return this.node},state(){return this.element.getState()}},methods:{factoryInit(o){return o instanceof te.ElementQComponent?"q-widget-q-component-element":o instanceof te.ElementQButton?"q-widget-q-button-element":o instanceof te.ElementQForm?"q-widget-q-form-element":o instanceof te.ElementQGrid?"q-widget-q-grid-element":o instanceof te.ElementQHtml?"q-widget-q-html-element":o instanceof te.ElementQImport?"q-widget-q-import-element":o instanceof te.ElementQLabel?"q-widget-q-label-element":o instanceof te.ElementQList?"q-widget-q-list-element":o instanceof te.ElementQPaginator?"q-widget-q-paginator-element":o instanceof te.ElementQScheduler?"q-widget-q-scheduler-element":o instanceof te.ElementQTab?"q-widget-q-tab-element":""},onEvent(o){this.$emit("onEvent",{...o,element:this.element})},onElementCreated(){this.element.isCreated&&this.$emit("onElementCreated")}}};function Rc(o,s,r,d,f,u){return g.openBlock(),g.createBlock(g.resolveDynamicComponent(u.factoryInit(r.node)),{controllerReady:r.controllerReady,element:r.node,elementName:u.elementName,loadingCount:r.loadingCount,state:u.state,onOnCreated:u.onElementCreated,onOnEvent:u.onEvent},null,40,["controllerReady","element","elementName","loadingCount","state","onOnCreated","onOnEvent"])}const xc=Object.freeze(Object.defineProperty({__proto__:null,default:ee(Sc,[["render",Rc],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Element.vue"]])},Symbol.toStringTag,{value:"Module"}));ht.QWidget=wn,Object.defineProperty(ht,Symbol.toStringTag,{value:"Module"}); return ht; });
|
|
35
|
+
}`;var D=Tl(function(){return M(c,$+"return "+b).apply(r,h)});if(D.source=b,Hi(D))throw D;return D}function q_(e){return Q(e).toLowerCase()}function B_(e){return Q(e).toUpperCase()}function L_(e,t,n){if(e=Q(e),e&&(n||t===r))return Qs(e);if(!e||!(t=we(t)))return e;var i=Te(e),l=Te(t),c=Vs(i,l),h=Ks(i,l)+1;return ft(i,c,h).join("")}function N_(e,t,n){if(e=Q(e),e&&(n||t===r))return e.slice(0,Gs(e)+1);if(!e||!(t=we(t)))return e;var i=Te(e),l=Ks(i,Te(t))+1;return ft(i,0,l).join("")}function H_(e,t,n){if(e=Q(e),e&&(n||t===r))return e.replace(Hr,"");if(!e||!(t=we(t)))return e;var i=Te(e),l=Vs(i,Te(t));return ft(i,l).join("")}function T_(e,t){var n=kc,i=$c;if(Z(t)){var l="separator"in t?t.separator:l;n="length"in t?I(t.length):n,i="omission"in t?we(t.omission):i}e=Q(e);var c=e.length;if($t(e)){var h=Te(e);c=h.length}if(n>=c)return e;var m=n-Ot(i);if(m<1)return i;var _=h?ft(h,0,m).join(""):e.slice(0,m);if(l===r)return _+i;if(h&&(m+=_.length-m),Ti(l)){if(e.slice(m).search(l)){var w,E=_;for(l.global||(l=Xr(l.source,Q(ds.exec(l))+"g")),l.lastIndex=0;w=l.exec(E);)var b=w.index;_=_.slice(0,b===r?m:b)}}else if(e.indexOf(we(l),m)!=m){var S=_.lastIndexOf(l);S>-1&&(_=_.slice(0,S))}return _+i}function I_(e){return e=Q(e),e&&zc.test(e)?e.replace(us,dd):e}var D_=It(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Pi=Io("toUpperCase");function Hl(e,t,n){return e=Q(e),t=n?r:t,t===r?ld(e)?md(e):Xf(e):e.match(t)||[]}var Tl=P(function(e,t){try{return ye(e,r,t)}catch(n){return Hi(n)?n:new N(n)}}),P_=je(function(e,t){return xe(t,function(n){n=Qe(n),Je(e,n,Li(e[n],e))}),e});function F_(e){var t=e==null?0:e.length,n=q();return e=t?Y(e,function(i){if(typeof i[1]!="function")throw new ke(v);return[n(i[0]),i[1]]}):[],P(function(i){for(var l=-1;++l<t;){var c=e[l];if(ye(c[0],this,i))return ye(c[1],this,i)}})}function U_(e){return dh(Oe(e,O))}function Fi(e){return function(){return e}}function W_(e,t){return e==null||e!==e?t:e}var M_=Po(),Q_=Po(!0);function _e(e){return e}function Ui(e){return mo(typeof e=="function"?e:Oe(e,O))}function V_(e){return _o(Oe(e,O))}function K_(e,t){return vo(e,Oe(t,O))}var z_=P(function(e,t){return function(n){return fn(n,e,t)}}),G_=P(function(e,t){return function(n){return fn(e,n,t)}});function Wi(e,t,n){var i=se(t),l=Zn(t,i);n==null&&!(Z(t)&&(l.length||!i.length))&&(n=t,t=e,e=this,l=Zn(t,se(t)));var c=!(Z(n)&&"chain"in n)||!!n.chain,h=tt(e);return xe(l,function(m){var _=t[m];e[m]=_,h&&(e.prototype[m]=function(){var w=this.__chain__;if(c||w){var E=e(this.__wrapped__),b=E.__actions__=ge(this.__actions__);return b.push({func:_,args:arguments,thisArg:e}),E.__chain__=w,E}return _.apply(e,st([this.value()],arguments))})}),e}function Y_(){return oe._===this&&(oe._=wd),this}function Mi(){}function Z_(e){return e=I(e),P(function(t){return yo(t,e)})}var J_=Ci(Y),X_=Ci(Ps),j_=Ci(Vr);function Il(e){return xi(e)?Kr(Qe(e)):$h(e)}function ev(e){return function(t){return e==null?r:yt(e,t)}}var tv=Uo(),nv=Uo(!0);function Qi(){return[]}function Vi(){return!1}function rv(){return{}}function iv(){return""}function sv(){return!0}function ov(e,t){if(e=I(e),e<1||e>At)return[];var n=Ue,i=ae(e,Ue);t=q(t),e-=Ue;for(var l=Yr(i,t);++n<e;)t(n);return l}function lv(e){return H(e)?Y(e,Qe):Ee(e)?[e]:ge(rl(Q(e)))}function av(e){var t=++yd;return Q(e)+t}var uv=nr(function(e,t){return e+t},0),cv=wi("ceil"),fv=nr(function(e,t){return e/t},1),dv=wi("floor");function hv(e){return e&&e.length?Yn(e,_e,oi):r}function gv(e,t){return e&&e.length?Yn(e,q(t,2),oi):r}function mv(e){return Ws(e,_e)}function pv(e,t){return Ws(e,q(t,2))}function _v(e){return e&&e.length?Yn(e,_e,ci):r}function vv(e,t){return e&&e.length?Yn(e,q(t,2),ci):r}var yv=nr(function(e,t){return e*t},1),Cv=wi("round"),wv=nr(function(e,t){return e-t},0);function Ev(e){return e&&e.length?Gr(e,_e):0}function bv(e,t){return e&&e.length?Gr(e,q(t,2)):0}return a.after=Vm,a.ary=gl,a.assign=Bp,a.assignIn=kl,a.assignInWith=mr,a.assignWith=Lp,a.at=Np,a.before=ml,a.bind=Li,a.bindAll=P_,a.bindKey=pl,a.castArray=rp,a.chain=fl,a.chunk=dg,a.compact=hg,a.concat=gg,a.cond=F_,a.conforms=U_,a.constant=Fi,a.countBy=Em,a.create=Hp,a.curry=_l,a.curryRight=vl,a.debounce=yl,a.defaults=Tp,a.defaultsDeep=Ip,a.defer=Km,a.delay=zm,a.difference=mg,a.differenceBy=pg,a.differenceWith=_g,a.drop=vg,a.dropRight=yg,a.dropRightWhile=Cg,a.dropWhile=wg,a.fill=Eg,a.filter=Am,a.flatMap=xm,a.flatMapDeep=km,a.flatMapDepth=$m,a.flatten=ll,a.flattenDeep=bg,a.flattenDepth=Ag,a.flip=Gm,a.flow=M_,a.flowRight=Q_,a.fromPairs=Sg,a.functions=Qp,a.functionsIn=Vp,a.groupBy=Om,a.initial=xg,a.intersection=kg,a.intersectionBy=$g,a.intersectionWith=Og,a.invert=zp,a.invertBy=Gp,a.invokeMap=Bm,a.iteratee=Ui,a.keyBy=Lm,a.keys=se,a.keysIn=pe,a.map=ur,a.mapKeys=Zp,a.mapValues=Jp,a.matches=V_,a.matchesProperty=K_,a.memoize=fr,a.merge=Xp,a.mergeWith=$l,a.method=z_,a.methodOf=G_,a.mixin=Wi,a.negate=dr,a.nthArg=Z_,a.omit=jp,a.omitBy=e_,a.once=Ym,a.orderBy=Nm,a.over=J_,a.overArgs=Zm,a.overEvery=X_,a.overSome=j_,a.partial=Ni,a.partialRight=Cl,a.partition=Hm,a.pick=t_,a.pickBy=Ol,a.property=Il,a.propertyOf=ev,a.pull=Ng,a.pullAll=ul,a.pullAllBy=Hg,a.pullAllWith=Tg,a.pullAt=Ig,a.range=tv,a.rangeRight=nv,a.rearg=Jm,a.reject=Dm,a.remove=Dg,a.rest=Xm,a.reverse=qi,a.sampleSize=Fm,a.set=r_,a.setWith=i_,a.shuffle=Um,a.slice=Pg,a.sortBy=Qm,a.sortedUniq=Kg,a.sortedUniqBy=zg,a.split=x_,a.spread=jm,a.tail=Gg,a.take=Yg,a.takeRight=Zg,a.takeRightWhile=Jg,a.takeWhile=Xg,a.tap=hm,a.throttle=ep,a.thru=ar,a.toArray=Sl,a.toPairs=ql,a.toPairsIn=Bl,a.toPath=lv,a.toPlainObject=xl,a.transform=s_,a.unary=tp,a.union=jg,a.unionBy=em,a.unionWith=tm,a.uniq=nm,a.uniqBy=rm,a.uniqWith=im,a.unset=o_,a.unzip=Bi,a.unzipWith=cl,a.update=l_,a.updateWith=a_,a.values=Ft,a.valuesIn=u_,a.without=sm,a.words=Hl,a.wrap=np,a.xor=om,a.xorBy=lm,a.xorWith=am,a.zip=um,a.zipObject=cm,a.zipObjectDeep=fm,a.zipWith=dm,a.entries=ql,a.entriesIn=Bl,a.extend=kl,a.extendWith=mr,Wi(a,a),a.add=uv,a.attempt=Tl,a.camelCase=h_,a.capitalize=Ll,a.ceil=cv,a.clamp=c_,a.clone=ip,a.cloneDeep=op,a.cloneDeepWith=lp,a.cloneWith=sp,a.conformsTo=ap,a.deburr=Nl,a.defaultTo=W_,a.divide=fv,a.endsWith=g_,a.eq=De,a.escape=m_,a.escapeRegExp=p_,a.every=bm,a.find=Sm,a.findIndex=sl,a.findKey=Dp,a.findLast=Rm,a.findLastIndex=ol,a.findLastKey=Pp,a.floor=dv,a.forEach=dl,a.forEachRight=hl,a.forIn=Fp,a.forInRight=Up,a.forOwn=Wp,a.forOwnRight=Mp,a.get=Ii,a.gt=up,a.gte=cp,a.has=Kp,a.hasIn=Di,a.head=al,a.identity=_e,a.includes=qm,a.indexOf=Rg,a.inRange=f_,a.invoke=Yp,a.isArguments=Et,a.isArray=H,a.isArrayBuffer=fp,a.isArrayLike=me,a.isArrayLikeObject=X,a.isBoolean=dp,a.isBuffer=dt,a.isDate=hp,a.isElement=gp,a.isEmpty=mp,a.isEqual=pp,a.isEqualWith=_p,a.isError=Hi,a.isFinite=vp,a.isFunction=tt,a.isInteger=wl,a.isLength=hr,a.isMap=El,a.isMatch=yp,a.isMatchWith=Cp,a.isNaN=wp,a.isNative=Ep,a.isNil=Ap,a.isNull=bp,a.isNumber=bl,a.isObject=Z,a.isObjectLike=J,a.isPlainObject=_n,a.isRegExp=Ti,a.isSafeInteger=Sp,a.isSet=Al,a.isString=gr,a.isSymbol=Ee,a.isTypedArray=Pt,a.isUndefined=Rp,a.isWeakMap=xp,a.isWeakSet=kp,a.join=qg,a.kebabCase=__,a.last=Be,a.lastIndexOf=Bg,a.lowerCase=v_,a.lowerFirst=y_,a.lt=$p,a.lte=Op,a.max=hv,a.maxBy=gv,a.mean=mv,a.meanBy=pv,a.min=_v,a.minBy=vv,a.stubArray=Qi,a.stubFalse=Vi,a.stubObject=rv,a.stubString=iv,a.stubTrue=sv,a.multiply=yv,a.nth=Lg,a.noConflict=Y_,a.noop=Mi,a.now=cr,a.pad=C_,a.padEnd=w_,a.padStart=E_,a.parseInt=b_,a.random=d_,a.reduce=Tm,a.reduceRight=Im,a.repeat=A_,a.replace=S_,a.result=n_,a.round=Cv,a.runInContext=p,a.sample=Pm,a.size=Wm,a.snakeCase=R_,a.some=Mm,a.sortedIndex=Fg,a.sortedIndexBy=Ug,a.sortedIndexOf=Wg,a.sortedLastIndex=Mg,a.sortedLastIndexBy=Qg,a.sortedLastIndexOf=Vg,a.startCase=k_,a.startsWith=$_,a.subtract=wv,a.sum=Ev,a.sumBy=bv,a.template=O_,a.times=ov,a.toFinite=nt,a.toInteger=I,a.toLength=Rl,a.toLower=q_,a.toNumber=Le,a.toSafeInteger=qp,a.toString=Q,a.toUpper=B_,a.trim=L_,a.trimEnd=N_,a.trimStart=H_,a.truncate=T_,a.unescape=I_,a.uniqueId=av,a.upperCase=D_,a.upperFirst=Pi,a.each=dl,a.eachRight=hl,a.first=al,Wi(a,function(){var e={};return We(a,function(t,n){V.call(a.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),a.VERSION=d,xe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){a[e].placeholder=a}),xe(["drop","take"],function(e,t){U.prototype[e]=function(n){n=n===r?1:re(I(n),0);var i=this.__filtered__&&!t?new U(this):this.clone();return i.__filtered__?i.__takeCount__=ae(n,i.__takeCount__):i.__views__.push({size:ae(n,Ue),type:e+(i.__dir__<0?"Right":"")}),i},U.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),xe(["filter","map","takeWhile"],function(e,t){var n=t+1,i=n==os||n==Lc;U.prototype[e]=function(l){var c=this.clone();return c.__iteratees__.push({iteratee:q(l,3),type:n}),c.__filtered__=c.__filtered__||i,c}}),xe(["head","last"],function(e,t){var n="take"+(t?"Right":"");U.prototype[e]=function(){return this[n](1).value()[0]}}),xe(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");U.prototype[e]=function(){return this.__filtered__?new U(this):this[n](1)}}),U.prototype.compact=function(){return this.filter(_e)},U.prototype.find=function(e){return this.filter(e).head()},U.prototype.findLast=function(e){return this.reverse().find(e)},U.prototype.invokeMap=P(function(e,t){return typeof e=="function"?new U(this):this.map(function(n){return fn(n,e,t)})}),U.prototype.reject=function(e){return this.filter(dr(q(e)))},U.prototype.slice=function(e,t){e=I(e);var n=this;return n.__filtered__&&(e>0||t<0)?new U(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=I(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},U.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},U.prototype.toArray=function(){return this.take(Ue)},We(U.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),l=a[i?"take"+(t=="last"?"Right":""):t],c=i||/^find/.test(t);l&&(a.prototype[t]=function(){var h=this.__wrapped__,m=i?[1]:arguments,_=h instanceof U,w=m[0],E=_||H(h),b=function(F){var W=l.apply(a,st([F],m));return i&&S?W[0]:W};E&&n&&typeof w=="function"&&w.length!=1&&(_=E=!1);var S=this.__chain__,$=!!this.__actions__.length,B=c&&!S,D=_&&!$;if(!c&&E){h=D?h:new U(this);var L=e.apply(h,m);return L.__actions__.push({func:ar,args:[b],thisArg:r}),new $e(L,S)}return B&&D?e.apply(this,m):(L=this.thru(b),B?i?L.value()[0]:L.value():L)})}),xe(["pop","push","shift","sort","splice","unshift"],function(e){var t=Nn[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);a.prototype[e]=function(){var l=arguments;if(i&&!this.__chain__){var c=this.value();return t.apply(H(c)?c:[],l)}return this[n](function(h){return t.apply(H(h)?h:[],l)})}}),We(U.prototype,function(e,t){var n=a[t];if(n){var i=n.name+"";V.call(Nt,i)||(Nt[i]=[]),Nt[i].push({name:t,func:n})}}),Nt[tr(r,bt).name]=[{name:"wrapper",func:r}],U.prototype.clone=Id,U.prototype.reverse=Dd,U.prototype.value=Pd,a.prototype.at=gm,a.prototype.chain=mm,a.prototype.commit=pm,a.prototype.next=_m,a.prototype.plant=ym,a.prototype.reverse=Cm,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=wm,a.prototype.first=a.prototype.head,rn&&(a.prototype[rn]=vm),a},qt=pd();gt?((gt.exports=qt)._=qt,Ur._=qt):oe._=qt}).call(Mt)}(Cn,Cn.exports);var Da=Cn.exports;const br=Ia(Da);class Pa extends Se{constructor(s={}){super(s),this.defaultStateName={axios:"axios",formData:"formData",formErrors:"formErrors",formNode:"formNode",pageKey:"pageKey",qForm:"qForm"}}get isValid(){return super.isValid&&this.isValidHelpers}get isValidHelpers(){const{qForm:s}=this.controllerHelpers||{},{NodeHelper:r}=s||{};return typeof r!="function"?(console.log("invalid form helpers"),!1):!0}getConfig(){const s={...this.state.qForm||{},...this.config||{},...this.state[this.name]||{}};return typeof Ji=="function"?Ji.init({...s,helpers:{...this.controllerHelpers,element:this}}):{}}getFormCustomizer(){const{formCustomizer:s}=this.getHandlers();return typeof s=="function"?s:Fa}}function Fa(o,s){if(Array.isArray(o))return s||null;if(typeof s=="number"||typeof s=="boolean")return s;if(!s)return null}class Ua extends Se{constructor(s={}){super(s),this.defaultStateName={gridItems:"gridItems"}}get isValid(){return super.isValid&&this.isValidHelpers}get isValidHelpers(){const{qGrid:s}=this.controllerHelpers||{},{QItem:r,Cell:d}=s||{};return typeof r!="function"||typeof d!="function"?(console.log("invalid grid helpers"),!1):!0}getConfig(){const s={...this.state.qGrid||{},...this.config||{},...this.state[this.name]||{}};return typeof Xi=="function"?Xi.init({...s,helpers:{...this.controllerHelpers,element:this}}):{}}}class Wa extends Se{constructor(s={}){super(s),this.defaultStateName={qHtml:"qHtml"}}getConfig(){return{...this.state.qHtml||{},...this.config||{},...this.state[this.name]||{}}}}class Ma extends Se{constructor(s={}){super(s)}}class Qa extends Se{constructor(s={}){super(s),this.defaultStateName={qLabel:"qLabel"}}getConfig(){return{...this.state.qLabel||{},...this.config||{},...this.state[this.name]||{}}}}class Va extends Se{constructor(s={}){super(s),this.defaultStateName={qList:"qList",qSorterKeys:"qSorterKeys",rows:"rows"}}get isValid(){return super.isValid&&this.isValidHelpers}get isValidHelpers(){const{qList:s}=this.controllerHelpers||{},{QListBulkButton:r,QListButton:d,QRow:f}=s||{};return typeof r!="function"||typeof d!="function"||typeof f!="function"?(console.log("invalid list helpers"),!1):!0}getConfig(){const s={...this.state.qList||{},...this.config||{},...this.state[this.name]||{}};return typeof es=="function"?es.init({...s,helpers:{...this.controllerHelpers,element:this}}):{}}}class Ka extends Se{constructor(s={}){super(s),this.defaultStateName={currentPage:"currentPage",currentPageSize:"currentPageSize",qPaginator:"qPaginator",totalRecords:"totalRecords"}}getConfig(){return{...this.state.qPaginator||{},...this.config||{},...this.state[this.name]||{}}}}class za extends Se{constructor(s={}){super(s),this.defaultStateName={qScheduler:"qScheduler"}}getConfig(){return{...this.state.qScheduler||{},...this.config||{},...this.state[this.name]||{}}}}class Ga extends Se{constructor(s={}){super(s),this.defaultStateName={active:"active",qTab:"qTab",tabLayout:"tabLayout"}}getConfig(){return{...this.state.qTab||{},...this.config||{},...this.state[this.name]||{}}}}const te={...Ba,...{ElementQButton:Ha,ElementQComponent:Ta,ElementQForm:Pa,ElementQGrid:Ua,ElementQHtml:Wa,ElementQImport:Ma,ElementQLabel:Qa,ElementQList:Va,ElementQPaginator:Ka,ElementQScheduler:za,ElementQTab:Ga},Container:Wt,Element:Se,Node:Er};class Ya{static init({layout:s={},controllerHelpers:r={}}={}){return ts({layout:s,nodes:[],controllerHelpers:r})}}function ts({layout:o,nodes:s,controllerHelpers:r}){if(o instanceof te.Node)return o;const d={...o};return Array.isArray(d.children)&&(d.children=d.children.map(f=>ts({layout:f,nodes:s,controllerHelpers:r}))),Za(d,s,r)}function Za(o,s,r){const{nodeType:d,permissions:f}=o||{};if(typeof te[d]=="function"){const{permissionHandler:u}=r,v=f?u(f):{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0},R=te[d].init({...o,controllerHelpers:r,permissionResult:v});return R?R.isExist(s)?null:(s.push(R),R):null}return null}class Ja{constructor(s={}){this.css=s.css||"",this.controllerHelpers=s.controllerHelpers,this.eventHandlers=s.eventHandlers||{},this.id=s.id||Cr("controller"),this.initialState=s.initialState,this.name=s.name,this.saveStateKeys=s.saveStateKeys||[],this.setLayout(s.layout)}get createdElement(){return this.elements.filter(s=>s.isCreated)}get elements(){return this.layout.getElements()}get isValid(){return!!this.id&&this.isValidControllerHelpers}get isValidControllerHelpers(){const{qUtilities:s}=this.controllerHelpers;return s&&ns(s.convertString)&&ns(s.getValidation)}static init(s){const r=new this(s);return r.isValid?r:null}getElementByElementName(s){return this.elements.find(r=>r.getElementName()===s)}getState(){return{...this.getControllerState(),...this.layout.getElementState()}}getControllerState(){return this.state}setLayout(s){const r={...this.controllerHelpers,controller:this};this.layout=Ya.init({layout:s,controllerHelpers:r})}updateState(s={}){this.state={...this.state,...s},this.layout&&this.layout.updateElementState(this.state)}}function ns(o){return typeof o=="function"}const Qt={beforeCreate(){this.$options.components={...this.$options.components,QWidgetContainersContainer:g.defineAsyncComponent(()=>Promise.resolve().then(()=>Su)),QWidgetElementsElement:g.defineAsyncComponent(()=>Promise.resolve().then(()=>xc))}},methods:{currentContainer(o){return o.isVisible?o instanceof te.Container?"q-widget-containers-container":o instanceof te.Element?"q-widget-elements-element":null:null}}},Xa={name:"q-widget-controller",components:{QModal:Wl},mixins:[Qt],props:{controller:{type:Object,default:()=>({})}},data(){return{isReady:!1,loadingCount:0,modal:null,renderKey:0}},computed:{controllerCss(){return this.controller.css||""},controllerHelpers(){return this.controller.controllerHelpers},eventHandlers(){return this.controller.eventHandlers||{}},initControllerState(){return this.controller.initialState},node(){return this.controller.layout}},created(){this.init()},methods:{async init(){try{const{getControllerState:o}=this.controllerHelpers;let s=this.initControllerState;typeof o=="function"&&(s=await o({state:s}));const{onCreated:r}=this.eventHandlers;r&&(s=await this.eventHandler({state:s,event:r})),this.updateState(s),this.updateDocumentTitle(s)}catch(o){Ut({component:this,message:o.message})}finally{this.isReady=!0,this.reRenderElements()}},async callbackEmit({event:o,payload:s}){console.log("callbackEmit",o,s)},async callbackSubscribe(o,{event:s,payload:r,cb:d}){const{getControllerUniqueKey:f}=this.controllerHelpers;if(typeof f=="function"&&o===f())try{const{key:u}=s,{controllerSubscribed:v}=this.eventHandlers,R=v[u];let T=this.controller.getState();R&&(T=await this.eventHandler({state:{...T,eventPayload:r},event:R})),typeof d=="function"&&await d({event:s,payload:T})}catch(u){Ut({component:this,message:u.message})}},async eventHandler({event:o,state:s}){const{eventHandler:r}=this.controllerHelpers;if(typeof r!="function")return console.log("no eventHandler"),s;let d=s;const f=ja({event:o}),u=this.getLoadingFunctions({scope:f});try{if(rs({loadingFunctions:u,action:"start"}),o){const v={body:{...s},controller:this.controller,component:this,controllerHelpers:{...this.controllerHelpers,callbackEmit:this.callbackEmit,callbackSubscribe:this.callbackSubscribe,eventHandler:this.eventHandler,reRenderElements:this.reRenderElements,runEventChains:this.eventHandler,showError:Ut,updateState:this.updateState,updateLayout:this.updateLayout}},R=await r({event:o,payload:v});d={...d,...R}}return console.log(d),d}catch(v){throw new Error(v.message)}finally{rs({loadingFunctions:u,action:"stop"})}},getKey(o,s){return`${this.renderKey}-${o}-${s} `},getLoadingFunctions({scope:o=""}){const{startLoading:s,stopLoading:r}=this.controllerHelpers;switch(o){case"full":return typeof s!="function"||typeof r!="function"?null:{startLoading:s,stopLoading:r};case"none":return null;case"self":return{startLoading:this.startSelfLoading,stopLoading:this.stopSelfLoading};default:return{startLoading:this.startSelfLoading,stopLoading:this.stopSelfLoading}}},async onEvent(o){try{const{eventName:s,element:r,payload:d}=o,{elementEvents:f={}}=this.eventHandlers,u=f[s];u?await this.eventHandler({state:{...this.controller.getState(),eventPayload:d,eventElement:r},event:u}):console.log(`can not find the event ${s}`)}catch(s){Ut({component:this,message:s.message,modalConfig:{title:"提示"}})}},async onElementCreated(){try{console.log("onElementCreated",this.controller.elements,this.controller.createdElement);const o=this.eventHandlers.onElementCreated;o&&await this.eventHandler({state:this.controller.getState(),event:o})}catch(o){Ut({component:this,message:o.message})}},reRenderElements(){this.renderKey+=1},startSelfLoading(){this.loadingCount+=1},stopSelfLoading(){this.loadingCount-=1},updateDocumentTitle(o={}){const{documentTitle:s}=o;s&&(document.title=s)},updateState(o){this.controller.updateState(o);const{saveControllerState:s}=this.controllerHelpers;typeof s=="function"&&Ml({controller:this.controller,state:o,saveControllerState:s})},updateLayout(o,s){o||console.log("no layout"),s||console.log("use controller state"),this.controller.setLayout(o),this.controller.updateState(s),this.reRenderElements()}}};function ja({event:o={}}={}){return o.scope||"full"}function rs({loadingFunctions:o,action:s}){if(o){const{startLoading:r,stopLoading:d}=o;switch(s){case"start":{r();break}case"stop":{d();break}}}}function eu(o,s,r,d,f,u){const v=g.resolveComponent("q-modal");return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-controller __controller",u.controllerCss])},[u.node?(g.openBlock(),g.createBlock(g.resolveDynamicComponent(o.currentContainer(u.node)),{key:f.renderKey,controllerReady:f.isReady,node:u.node,loadingCount:f.loadingCount,onOnEvent:u.onEvent,onOnElementCreated:u.onElementCreated},null,40,["controllerReady","node","loadingCount","onOnEvent","onOnElementCreated"])):g.createCommentVNode("v-if",!0),f.modal?(g.openBlock(),g.createBlock(v,{key:u.getKey("modal",f.modal),modal:f.modal},null,8,["modal"])):g.createCommentVNode("v-if",!0)],2)}const tu={name:"q-widget",components:{QWidgetController:ee(Xa,[["render",eu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Controller.vue"]])},props:{content:{type:Object,default:()=>({})},contentHelpers:{type:Object,default:()=>({})},controller:{type:Object,default:()=>null},controllerHelpers:{type:Object,default:()=>null}},data(){return{controllerInstence:null,error:null}},computed:{hasError(){return this.error}},created(){this.init()},methods:{init(){try{const o=this.controllerHelpers||this.contentHelpers||{},s=o.qUtilities||{},r=this.controller||this.content;if(this.controllerInstence=Ja.init({...r,controllerHelpers:{permissionHandler:nu,...o,qUtilities:{...ga,...s}}}),!this.controllerInstence)throw new Error("invalid controller")}catch(o){this.error=o.message||"invalid controller"}}}};function nu(){return{isAllowCreate:!0,isAllowRead:!0,isAllowUpdate:!0,isAllowDelete:!0}}const ru={class:"q-widget"},iu={key:1,class:"__error"};function su(o,s,r,d,f,u){const v=g.resolveComponent("q-widget-controller");return g.openBlock(),g.createElementBlock("div",ru,[u.hasError?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createBlock(v,{key:0,controller:f.controllerInstence},null,8,["controller"])),u.hasError?(g.openBlock(),g.createElementBlock("div",iu,g.toDisplayString(f.error),1)):g.createCommentVNode("v-if",!0)])}const wn=ee(tu,[["render",su],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/QWidget.vue"]]);function ou(o){o.component(wn.name,wn)}wn.install=ou;const lu={name:"q-widget-containers-box",mixins:[Qt],props:{controllerReady:{type:Boolean,default:!1},getKey:{type:Function,default:()=>null},node:{type:Object,default:()=>({})},loadingCount:{type:Number,default:0}},emits:["onEvent","onElementCreated"],computed:{children(){return this.node.children||[]}},methods:{onEvent(o){this.$emit("onEvent",o)},onElementCreated(o){this.$emit("onElementCreated",o)}}},au={class:"q-widget-containers-box __outer-box"},uu={class:"__inner-box"};function cu(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",au,[g.createElementVNode("div",uu,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(u.children,(v,R)=>(g.openBlock(),g.createBlock(g.resolveDynamicComponent(o.currentContainer(v)),{key:r.getKey("box",R),controllerReady:r.controllerReady,node:v,loadingCount:r.loadingCount,onOnEvent:u.onEvent,onOnElementCreated:u.onElementCreated},null,40,["controllerReady","node","loadingCount","onOnEvent","onOnElementCreated"]))),128))])])}const fu=ee(lu,[["render",cu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Containers/Box.vue"]]),du={name:"q-widget-containers-column",mixins:[Qt],props:{controllerReady:{type:Boolean,default:!1},getKey:{type:Function,default:()=>null},node:{type:Object,default:()=>({})},loadingCount:{type:Number,default:0}},emits:["onEvent","onElementCreated"],computed:{children(){return this.node.children||[]}},methods:{onEvent(o){this.$emit("onEvent",o)},onElementCreated(o){this.$emit("onElementCreated",o)}}},hu={class:"q-widget-containers-column __column"};function gu(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",hu,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(u.children,(v,R)=>(g.openBlock(),g.createBlock(g.resolveDynamicComponent(o.currentContainer(v)),{key:r.getKey("cloumn",R),controllerReady:r.controllerReady,node:v,loadingCount:r.loadingCount,onOnEvent:u.onEvent,onOnElementCreated:u.onElementCreated},null,40,["controllerReady","node","loadingCount","onOnEvent","onOnElementCreated"]))),128))])}const mu=ee(du,[["render",gu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Containers/Column.vue"]]),pu={name:"q-widget-containers-header-sticky",mixins:[Qt],props:{controllerReady:{type:Boolean,default:!1},getKey:{type:Function,default:()=>null},node:{type:Object,default:()=>({})},loadingCount:{type:Number,default:0}},emits:["onEvent","onElementCreated"],computed:{children(){return this.node.children||[]}},methods:{onEvent(o){this.$emit("onEvent",o)},onElementCreated(o){this.$emit("onElementCreated",o)}}},_u={class:"q-widget-containers-header-sticky __header __sticky --sticky-top"};function vu(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",_u,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(u.children,(v,R)=>(g.openBlock(),g.createBlock(g.resolveDynamicComponent(o.currentContainer(v)),{key:r.getKey("header-sticky",R),controllerReady:r.controllerReady,node:v,loadingCount:r.loadingCount,onOnEvent:u.onEvent,onOnElementCreated:u.onElementCreated},null,40,["controllerReady","node","loadingCount","onOnEvent","onOnElementCreated"]))),128))])}const yu=ee(pu,[["render",vu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Containers/HeaderSticky.vue"]]),Cu={name:"q-widget-containers-row",mixins:[Qt],props:{controllerReady:{type:Boolean,default:!1},getKey:{type:Function,default:()=>null},node:{type:Object,default:()=>({})},loadingCount:{type:Number,default:0}},emits:["onEvent","onElementCreated"],computed:{children(){return this.node.children||[]}},methods:{onEvent(o){this.$emit("onEvent",o)},onElementCreated(o){this.$emit("onElementCreated",o)}}},wu={class:"q-widget-containers-row __row"};function Eu(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",wu,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(u.children,(v,R)=>(g.openBlock(),g.createBlock(g.resolveDynamicComponent(o.currentContainer(v)),{key:r.getKey("row",R),controllerReady:r.controllerReady,node:v,loadingCount:r.loadingCount,onOnEvent:u.onEvent,onOnElementCreated:u.onElementCreated},null,40,["controllerReady","node","loadingCount","onOnEvent","onOnElementCreated"]))),128))])}const bu={name:"q-widget-containers-container",components:{QWidgetBoxContainer:fu,QWidgetColumnContainer:mu,QWidgetHeaderStickyContainer:yu,QWidgetRowContainer:ee(Cu,[["render",Eu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Containers/Row.vue"]])},props:{controllerReady:{type:Boolean,default:!1},node:{type:Object,default:()=>({})},loadingCount:{type:Number,default:0}},emits:["onEvent","onElementCreated"],computed:{children(){return this.node.getVisibleChildren()||[]}},methods:{factoryInit(o){return o instanceof te.ContainerBox?"q-widget-box-container":o instanceof te.ContainerColumn?"q-widget-column-container":o instanceof te.ContainerHeaderSticky?"q-widget-header-sticky-container":o instanceof te.ContainerRow?"q-widget-row-container":""},getClass(o){return o.css||""},getKey(o,s){return`${o}-${s}`},onEvent(o){this.$emit("onEvent",o)},onElementCreated(){this.node.isCreated&&this.$emit("onElementCreated")}}};function Au(o,s,r,d,f,u){return g.openBlock(),g.createBlock(g.resolveDynamicComponent(u.factoryInit(r.node)),{class:g.normalizeClass(u.getClass(r.node)),controllerReady:r.controllerReady,getKey:u.getKey,node:r.node,loadingCount:r.loadingCount,onOnEvent:u.onEvent,onOnElementCreated:u.onElementCreated},null,40,["class","controllerReady","getKey","node","loadingCount","onOnEvent","onOnElementCreated"])}const Su=Object.freeze(Object.defineProperty({__proto__:null,default:ee(bu,[["render",Au],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Containers/Container.vue"]])},Symbol.toStringTag,{value:"Module"})),Ru={name:"q-widget-elements-adapters-q-button",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],computed:{$button(){return this.$config.button||{}},$config(){return this.element.getConfig()},$event(){return this.$button.event||"onButtonClick"},$url(){return this.$button.url||""},button(){return{...this.$button,url:this.url}},helpers(){return this.element.controllerHelpers||{}},url(){const o=this.$config.patternMatch||/\$\{(.+?)\}/g,{convertString:s}=this.helpers.qUtilities;return s(this.$url,o,this.state)},isReady(){return this.loadingCount<=0&&this.controllerReady}},created(){this.controllerReady&&this.init()},methods:{init(){this.element.onCreated({component:this}),this.$emit("onCreated")},getClass(o){return o.css||""},onClick(o){const s={eventName:this.$event,payload:o};this.$emit("onEvent",s)}}},xu={key:1};function ku(o,s,r,d,f,u){const v=g.resolveComponent("q-button",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-button q-widget-adapters-q-button __element __adapter __button __flex",u.getClass(r.element)])},[u.isReady?(g.openBlock(),g.createBlock(v,{key:0,class:"q-button",button:u.button,onClick:u.onClick,onOnChange:u.onClick,onUpload:u.onClick},null,8,["button","onClick","onOnChange","onUpload"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",xu,s[0]||(s[0]=[g.createElementVNode("div",{class:"button __loading-box"},[g.createElementVNode("div",{class:"skeleton"},[g.createElementVNode("div",{class:"skeleton__tr"},[g.createElementVNode("div",{class:"skeleton__td"})])])],-1)])))],2)}const $u=ee(Ru,[["render",ku],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QButton.vue"]]),Ou={name:"q-widget-elements-adapters-q-form",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],data(){return{formErrors:[],formValue:null,initPageKey:"",isFormReady:!1}},computed:{$buttons(){return this.$config.buttons||[]},$config(){return this.element.getConfig()},$disabledForm(){return this.$config.disabledForm||!1},$eventName(){return this.$config.eventName||{}},$formCss(){return this.$config.css||{}},$formHandler(){return this.$config.formHandler},$layout(){return this.$config.layout},$previewForm(){return this.$config.previewForm||!1},axios(){return this.state.axios},elementHandlers(){return this.element.getHandlers()},customizer(){return this.element.getFormCustomizer()},displayLayout(){return this.getLayout()},formData(){return this.state.formData},helpers(){return this.element.controllerHelpers||{}},isReady(){return this.loadingCount<=0&&this.controllerReady},pageKey(){return this.state.pageKey||this.initPageKey||""}},created(){this.controllerReady&&this.init()},methods:{init(){this.formValue=br.cloneDeep(this.formData),this.isFormReady=!0},getClass(o){return o.css||""},getLayout(){if(!this.$layout)return null;const{NodeHelper:o}=this.helpers.qForm,{convertString:s,getValidation:r}=this.helpers.qUtilities;return Bu({config:this.$config,convertString:s,getValidation:r,layout:this.$layout,NodeHelper:o,state:this.state})},onChange(o){const{node:s}=o;this.formErrors=[];const r=s.save({errors:this.formErrors}),d=br.mergeWith(this.formValue,r,this.customizer),u={eventName:this.$eventName.onFormChange||"onFormChange",payload:{...o,formData:d,errors:this.formErrors}};this.$emit("onEvent",u)},onClick(o){const{value:s,event:r}=o,d=br.mergeWith(this.formValue,s,this.customizer),f={eventName:r,payload:{...o,errors:this.formErrors,formData:d}};this.$emit("onEvent",f)},onCreated(o){const{pageKey:s,node:r}=o;this.initPageKey=s;const{afterSave:d}=this.elementHandlers;typeof d=="function"&&r.subscribe("afterSave",d({node:r,state:this.state})),this.formErrors=[],r.save({errors:this.formErrors}),this.element.onCreated({component:this,payload:{...o,formErrors:this.formErrors,formNode:r,pageKey:s}}),this.$emit("onCreated")}}};function qu(o,s,r,d){const f=/['"]\$\{(.+?)\}['"]/g;return JSON.parse(d(JSON.stringify(o),f,r))}function Bu({config:o={},convertString:s,getValidation:r,layout:d,NodeHelper:f,state:u}){const v=Lu({config:o,getValidation:r,layout:d,NodeHelper:f,state:u});return qu(v,o,u,s)}function Lu({config:o={},getValidation:s,layout:r,NodeHelper:d,state:f}){let u=r;const{updateLayoutConfigs:v=[]}=o;return typeof d.updateNode=="function"&&v.forEach(R=>{const{key:T,value:x,type:A,restriction:O}=R;s({rule:O,data:f})&&(u=d.updateNode({keys:T.split("."),value:x,layout:u,type:A}))}),u}const Nu={key:1};function Hu(o,s,r,d,f,u){const v=g.resolveComponent("q-form",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-form q-widget-adapters-q-form __element __adapter __form",u.getClass(r.element)])},[u.isReady&&f.isFormReady&&u.displayLayout?(g.openBlock(),g.createBlock(v,{key:0,axios:u.axios,buttons:u.$buttons,css:u.$formCss,disabledForm:u.$disabledForm,formHandler:u.$formHandler,layout:u.displayLayout,pageKey:u.pageKey,previewForm:u.$previewForm,value:f.formValue,onOnClick:u.onClick,onOnChange:u.onChange,onOnCreated:u.onCreated},null,8,["axios","buttons","css","disabledForm","formHandler","layout","pageKey","previewForm","value","onOnClick","onOnChange","onOnCreated"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",Nu,s[0]||(s[0]=[g.createStaticVNode('<div class="__loading-box"><div class="skeleton"><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__tr"><div class="skeleton__td"></div></div></div></div>',1)])))],2)}const Tu=ee(Ou,[["render",Hu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QForm.vue"]]),Iu={name:"q-widget-elements-adapters-q-grid",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],data(){return{itemsData:[]}},computed:{$cellHandler(){return this.$config.cellHandler},$classes(){return this.$config.classes},$config(){return this.element.getConfig()},$converter(){return this.$config.converter},$eventName(){return this.$config.eventName||{}},$fillLastRow(){return this.$config.fillLastRow||!1},$gridCss(){return this.$config.css||""},$layout(){return this.$config.layout},$placeholder(){return this.$config.placeholder||null},$urlDelegate(){return this.$config.urlDelegate||""},displayLayout(){return this.getLayout()},gridItems(){return this.state.gridItems},helpers(){return this.element.controllerHelpers||{}},isReady(){return this.loadingCount<=0&&this.controllerReady}},created(){this.controllerReady&&this.init()},methods:{init(){this.itemsData=this.gridItems.map(this.$converter),this.element.onCreated({component:this}),this.$emit("onCreated")},getClass(o){return o.css||""},getLayout(){if(!this.$layout)return null;const{convertString:o}=this.helpers.qUtilities;return Du(this.$layout,{},this.state,o)},onClickGridItem(o){const r={eventName:this.$eventName.onClickGridItem||"onClickGridItem",payload:o};this.$emit("onEvent",r)},onButtonClick(o){const r={eventName:this.$eventName.onClick||"onGridButtonClick",payload:o};this.$emit("onEvent",r)}}};function Du(o,s,r,d){const f=/['"]\$\{(.+?)\}['"]/g;return JSON.parse(d(JSON.stringify(o),f,r))}const Pu={key:1};function Fu(o,s,r,d,f,u){const v=g.resolveComponent("q-grid",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-grid q-widget-adapters-q-grid __element __adapter __grid",u.getClass(r.element)])},[u.isReady?(g.openBlock(),g.createBlock(v,{key:0,cellHandler:u.$cellHandler,classes:u.$classes,css:u.$gridCss,fillLastRow:u.$fillLastRow,items:f.itemsData,layout:u.displayLayout,placeholder:u.$placeholder,urlDelegate:u.$urlDelegate,onOnClick:u.onButtonClick,onOnClickGridItem:u.onClickGridItem},null,8,["cellHandler","classes","css","fillLastRow","items","layout","placeholder","urlDelegate","onOnClick","onOnClickGridItem"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",Pu," Loading "))],2)}const Uu=ee(Iu,[["render",Fu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QGrid.vue"]]),Wu={name:"q-widget-elements-adapters-q-html",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated"],computed:{$config(){return this.element.getConfig()||{}},$html(){const o=this.$config.patternMatch||/\$\{(.+?)\}/g,{convertString:s}=this.helpers.qUtilities;return s(this.$config.html,o,this.state)},helpers(){return this.element.controllerHelpers||{}},isReady(){return this.loadingCount<=0&&this.controllerReady}},created(){this.controllerReady&&this.init()},methods:{init(){this.element.onCreated({component:this}),this.$emit("onCreated")},getClass(o){return o.css||""}}},Mu=["innerHTML"],Qu={key:1};function Vu(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-html q-widget-adapters-q-html __element __adapter __html",u.getClass(r.element)])},[u.$html&&u.isReady?(g.openBlock(),g.createElementBlock("div",{key:0,class:"__html",innerHTML:u.$html},null,8,Mu)):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",Qu,[g.createCommentVNode(" loading ")]))],2)}const Ku=ee(Wu,[["render",Vu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QHtml.vue"]]),zu={name:"q-widget-elements-adapters-q-import",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated"],data(){return{elementState:{}}},computed:{$additionalListHeaders(){return this.$config.additionalListHeaders||[]},$config(){return this.element.getConfig()},$label(){return this.$config.label},$templateUrl(){return this.$config.templateUrl},elementHandlers(){return this.element.getHandlers()},isReady(){return this.loadingCount<=0&&this.controllerReady}},created(){this.controllerReady&&this.init()},methods:{init(){this.element.onCreated({component:this}),this.$emit("onCreated")},formatRowData(o){return this.elementHandlers.formatRowData(o)},getClass(o){return o.css||""},setElementState(o){this.elementState={...this.elementState,...o}},showError(o={}){const{payload:s}=o;return this.elementHandlers.showError({payload:s,state:{...this.state,...this.elementState}})},showSuccess({payload:o}){return this.elementHandlers.showSuccess({payload:o,state:{...this.state,...this.elementState}})},validationHandler({payload:o}){return this.elementHandlers.validationHandler({payload:o,state:this.state,setElementState:this.setElementState})}}},Gu={key:1};function Yu(o,s,r,d,f,u){const v=g.resolveComponent("q-import",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-import q-widget-adapters-q-import __element __adapter",u.getClass(r.element)])},[u.isReady?(g.openBlock(),g.createBlock(v,{key:0,additionalListHeaders:u.$additionalListHeaders,formatRowData:u.formatRowData,label:u.$label,showError:u.showError,showSuccess:u.showSuccess,templateUrl:u.$templateUrl,validationHandler:u.validationHandler},null,8,["additionalListHeaders","formatRowData","label","showError","showSuccess","templateUrl","validationHandler"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",Gu,s[0]||(s[0]=[g.createElementVNode("div",{class:"import __loading-box"},[g.createElementVNode("div",{class:"skeleton"},[g.createElementVNode("div",{class:"skeleton__tr"},[g.createElementVNode("div",{class:"skeleton__td"})])])],-1)])))],2)}const Zu=ee(zu,[["render",Yu],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QImport.vue"]]),Ju={name:"q-widget-elements-adapters-q-label",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated"],data(){return{renderKey:0}},computed:{$config(){return this.element.getConfig()},$label(){return this.$config.label||""},isReady(){return this.loadingCount<=0&&this.controllerReady},tag(){return this.element&&this.element.config?this.element.config.tag||"div":"h2"}},created(){this.controllerReady&&this.init()},methods:{init(){this.element.onCreated({component:this,reRender:this.reRenderElement}),this.$emit("onCreated")},getClass(o){return o.css||""},reRenderElement(){const o=this.renderKey+1;this.renderKey=o}}},Xu={key:1};function ju(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-label q-widget-adapters-q-label __element __label",u.getClass(r.element)])},[u.$label&&u.isReady?(g.openBlock(),g.createBlock(g.resolveDynamicComponent(u.tag),{key:`${r.element.name}-${f.renderKey}`},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(u.$label),1)]),_:1})):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",Xu))],2)}const ec=ee(Ju,[["render",ju],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QLabel.vue"]]),tc={name:"q-widget-elements-adapters-q-list",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],data(){return{listRows:[],paginatorLayout:null,ready:!1}},computed:{$config(){return this.element.getConfig()},$converter(){return this.$config.converter},$css(){return this.$config.css},$eventName(){return this.$config.eventName||{}},$expansion(){return this.$config.expansion||[]},$listBulkAction(){return this.$config.bulkAction||{}},$listHeaders(){return this.$config.headers||[]},$listSortBys(){return this.$config.listSortBys||[]},$listShowFooter(){return this.$config.listShowFooter||!1},$listStyle(){return this.$config.listStyle||"q-list-table"},$noDataMessage(){return this.$config.noDataMessage||""},helpers(){return this.element.controllerHelpers||{}},isReady(){return this.loadingCount<=0&&this.controllerReady},listSortKeys(){return this.state.qSorterKeys||[]},rows(){return this.state.rows||[]}},created(){this.controllerReady&&this.init()},methods:{init(){this.listRows=this.rows.map(this.$converter),this.element.onCreated({component:this}),this.$emit("onCreated"),this.ready=!0},converter(o){return o},getClass(o){return o.css||""},onClickList(o){const{action:s={},qRow:r,row:d}=o,{qListButtonType:f=""}=s,u={eventName:f||"onListClick",payload:o};this.$emit("onEvent",u)},onClickListBulk(o){const{action:s,qRows:r,rows:d}=o,{qListButtonType:f}=s,u={eventName:f||"onListClickBulk",payload:o};this.$emit("onEvent",u)},onInputChange(o){const s={eventName:"onListInputChange",payload:o};this.$emit("onEvent",s)},onListHeaderClick(o){const{key:s}=o.header;if(is(s,this.$listSortBys)){const d=nc(this.listSortKeys,s),f=rc(this.$listSortBys,d),u={eventName:this.$eventName.onListClickHeader||"onListClickHeader",payload:{qSorterKeys:d,qSorter:f}};this.$emit("onEvent",u)}},onRowClick(o){const{qRow:s,row:r}=o,d={eventName:"onRowClick",payload:o};this.$emit("onEvent",d)}}};function is(o,s){return o?s.find(r=>{const{key:d}=r;return o===d}):null}function nc(o,s){let r=!1;const d=o.map(f=>{const{by:u,direction:v}=f;if(s===u){r=!0;const R=typeof v<"u"?Number(v)===1?-1:Number(v)===-1?0:1:1;return{...f,direction:R}}return f});return r?d.filter(f=>f.direction!==0):[...o,{by:s,direction:1}]}function rc(o,s){return s.reduce((r,d)=>{const{by:f,direction:u}=d,v=is(f,o),{value:R=[]}=v;if(!v)return r;const T=R.map(x=>({...x,direction:u}));return r.push(...T),r},[])}const ic={key:1};function sc(o,s,r,d,f,u){const v=g.resolveComponent("q-list",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-list q-widget-adapters-q-list __element __adapter __list",u.getClass(r.element)])},[u.isReady&&f.ready?(g.openBlock(),g.createBlock(v,{key:0,bulkAction:u.$listBulkAction,css:u.$css,expansion:u.$expansion,headers:u.$listHeaders,listStyle:u.$listStyle,noDataMessage:u.$noDataMessage,rows:f.listRows,showFooter:u.$listShowFooter,sortBys:u.$listSortBys,sortStatus:u.listSortKeys,onClick:u.onClickList,onOnClickBulk:u.onClickListBulk,onOnInputChange:u.onInputChange,onOnListHeaderClick:u.onListHeaderClick,onOnRowClick:u.onRowClick},null,8,["bulkAction","css","expansion","headers","listStyle","noDataMessage","rows","showFooter","sortBys","sortStatus","onClick","onOnClickBulk","onOnInputChange","onOnListHeaderClick","onOnRowClick"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",ic,s[0]||(s[0]=[g.createStaticVNode('<div class="__loading-box"><div class="skeleton"><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__hr"></div><div class="skeleton__section skeleton__section--table"><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div></div></div></div>',1)])))],2)}const oc=ee(tc,[["render",sc],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QList.vue"]]),lc={name:"q-widget-elements-adapters-q-paginator",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],data(){return{isPaginator:!1,paginatorLayout:null}},computed:{$config(){return this.element.getConfig()},$controlLabel(){return this.$config.controlLabel},$eventName(){return this.$config.eventName||{}},$paginatorLayout(){return this.$config.layout},$paginatorSizeOptions(){return this.$paginatorLayout.pageSizeOptions||[]},currentPage(){return this.state.currentPage},currentPageSize(){return this.state.currentPageSize},currentPageSizeOptionsIndex(){return this.$paginatorSizeOptions.indexOf(this.currentPageSize)},initPage(){return this.currentPage>=0?this.currentPage:this.$paginatorLayout.initPage},isReady(){return this.loadingCount<=0&&this.controllerReady},pageSizeOptionsIndex(){return this.currentPageSizeOptionsIndex>=0?this.currentPageSizeOptionsIndex:(this.onChangeRecPerPage(this.$paginatorSizeOptions[this.$paginatorLayout.pageSizeOptionsIdx],this.initPage),this.$paginatorLayout.pageSizeOptionsIndex)},totalRecords(){return this.state.totalRecords}},created(){this.controllerReady&&this.init()},mounted(){},methods:{init(){this.paginatorLayout={...this.$paginatorLayout,initPage:this.initPage,pageSizeOptionsIndex:this.pageSizeOptionsIndex},this.isPaginator=!0,this.element.onCreated({component:this}),this.$emit("onCreated")},getClass(o){return o.css||""},onChangePageIdx(o){if(o!==this.currentPage){const r={eventName:this.$eventName.onChangePageIdx||"onChangePageIdx",payload:{currentPage:o}};this.$emit("onEvent",r)}},onChangeRecPerPage(o,s){const d={eventName:this.$eventName.onChangeRecPerPage||"onChangeRecPerPage",payload:{currentPageSize:o,currentPage:s}};this.$emit("onEvent",d)}}},ac={key:1};function uc(o,s,r,d,f,u){const v=g.resolveComponent("q-paginator",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-paginator q-widget-adapters-q-paginator __element __adapter __paginator",u.getClass(r.element)])},[f.isPaginator&&u.isReady?(g.openBlock(),g.createBlock(v,{key:0,controlLabel:u.$controlLabel,layout:f.paginatorLayout,total:u.totalRecords,onChangeCurrentPage:u.onChangePageIdx,onChangePageSize:u.onChangeRecPerPage},null,8,["controlLabel","layout","total","onChangeCurrentPage","onChangePageSize"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",ac,s[0]||(s[0]=[g.createStaticVNode('<div class="paginator __loading-box"><div class="skeleton"><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div></div></div>',1)])))],2)}const cc=ee(lc,[["render",uc],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QPaginator.vue"]]),fc={name:"q-widget-elements-adapters-q-scheduler",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],computed:{$allCellSelectable(){return this.$config.allCellSelectable},$bookings(){return this.state.bookings},$canSelectMoreThanOne(){return this.$config.canSelectMoreThanOne},$config(){return this.element.getConfig()},$emptyMessage(){return this.$config.emptyMessage},$eventBlockTemplate(){return this.$config.eventBlockTemplate},$eventsObj(){return this.state.schedulerEventsObj},$headerActions(){return this.$config.headerActions},$headers(){return this.state.schedulerHeaders},$labelTemplates(){return this.$config.labelTemplates},$layoutConfig(){return this.$config.layoutConfig},$isSelectingRange(){return this.$config.isSelectingRange},$showActions(){return this.$config.showActions},$showSelectWhloeDayAction(){return this.$config.showSelectWhloeDayAction},$tempEventConfig(){return this.$config.tempEventConfig},$tempEvents(){return this.state.tempEvents},$timeSlotsByDay(){return this.state.timeSlotsByDay},helpers(){return this.element.controllerHelpers||{}},isReady(){return this.loadingCount<=0&&this.controllerReady}},created(){this.controllerReady&&this.init()},methods:{init(){this.element.onCreated({component:this}),this.$emit("onCreated")},getClass(o){return o.css||""},onChangeDate(o){const s={eventName:"onSchedulerChangeDate",payload:o};this.$emit("onEvent",s)},onClickBooking(o){const s={eventName:"onSchedulerClickBooking",payload:o};this.$emit("onEvent",s)},onClickHeaderAction(o){const s={eventName:"onSchedulerClickHeaderAction",payload:o};this.$emit("onEvent",s)},onClickNextPage(o){const s={eventName:"onSchedulerClickNextPage",payload:o};this.$emit("onEvent",s)},onClickPreviousPage(o){const s={eventName:"onSchedulerClickPreviousPage",payload:o};this.$emit("onEvent",s)},onDeleteTempEvent(o){const s={eventName:"onSchedulerDeleteTempEvent",payload:o};this.$emit("onEvent",s)},selectTime(o){const s={eventName:"onSchedulerSelectTime",payload:o};this.$emit("onEvent",s)}}},dc={key:1};function hc(o,s,r,d,f,u){const v=g.resolveComponent("q-scheduler",!0);return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-scheduler q-widget-adapters-q-scheduler __element __adapter __flex",u.getClass(r.element)])},[u.isReady?(g.openBlock(),g.createBlock(v,{key:0,class:"q-scheduler",allCellSelectable:u.$allCellSelectable,bookings:u.$bookings,canSelectMoreThanOne:u.$canSelectMoreThanOne,emptyMessage:u.$emptyMessage,eventBlockTemplate:u.$eventBlockTemplate,eventsObj:u.$eventsObj,headerActions:u.$headerActions,headers:u.$headers,labelTemplates:u.$labelTemplates,layoutConfig:u.$layoutConfig,isSelectingRange:u.$isSelectingRange,showActions:u.$showActions,showSelectWhloeDayAction:u.$showSelectWhloeDayAction,tempEventConfig:u.$tempEventConfig,tempEvents:u.$tempEvents,timeSlotsByDay:u.$timeSlotsByDay,onOnDeleteTempEvent:u.onDeleteTempEvent,onSelectTime:u.selectTime,onOnClickBooking:u.onClickBooking,onOnClickHeaderAction:u.onClickHeaderAction,onOnChangeDate:u.onChangeDate,onOnClickPreviousPage:u.onClickPreviousPage,onOnClickNextPage:u.onClickNextPage},null,8,["allCellSelectable","bookings","canSelectMoreThanOne","emptyMessage","eventBlockTemplate","eventsObj","headerActions","headers","labelTemplates","layoutConfig","isSelectingRange","showActions","showSelectWhloeDayAction","tempEventConfig","tempEvents","timeSlotsByDay","onOnDeleteTempEvent","onSelectTime","onOnClickBooking","onOnClickHeaderAction","onOnChangeDate","onOnClickPreviousPage","onOnClickNextPage"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",dc,s[0]||(s[0]=[g.createElementVNode("div",{class:"__loading-box"},[g.createElementVNode("div",{class:"skeleton"},[g.createElementVNode("div",{class:"skeleton__tr"},[g.createElementVNode("div",{class:"skeleton__td"})])])],-1)])))],2)}const gc=ee(fc,[["render",hc],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QScheduler.vue"]]),mc={name:"q-widget-elements-adapters-q-tab",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],data(){return{active:{},renderKey:0,tabLayout:[]}},computed:{$config(){return this.element.getConfig()},$eventName(){return this.$config.eventName||{}},$tabLayout(){return this.$config.layout||[]},activeKey(){return this.active.key},isReady(){return this.loadingCount<=0&&this.controllerReady}},created(){this.controllerReady&&this.init()},methods:{init(){this.tabLayout=[...this.$tabLayout],this.active=this.state.active||this.tabLayout[0]||{},this.element.onCreated({component:this,payload:{tabLayout:this.tabLayout}}),this.$emit("onCreated")},getClass(o){return o.css||""},onChangeTab(o){const r={eventName:this.$eventName.onChangeTab||"onTabChange",payload:{active:o}};this.$emit("onEvent",r)}}},pc={key:0,class:"__tabs __flex"},_c=["href"],vc=["onClick"],yc={key:1};function Cc(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-tab q-widget-adapters-q-tab __element __adapter",u.getClass(r.element)])},[u.isReady?(g.openBlock(),g.createElementBlock("div",pc,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(f.tabLayout,(v,R)=>(g.openBlock(),g.createElementBlock("div",{key:R,class:g.normalizeClass(["__pointer __tab",u.activeKey===v.key?"__active":""])},[v.url?(g.openBlock(),g.createElementBlock("a",{key:0,href:v.url},g.toDisplayString(v.label)+g.toDisplayString(Number.isNaN(Number(v.total))?"":`(${Number(v.total)})`),9,_c)):g.createCommentVNode("v-if",!0),v.url?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",{key:1,onClick:T=>u.onChangeTab(v)},g.toDisplayString(v.label)+g.toDisplayString(Number.isNaN(Number(v.total))?"":`(${Number(v.total)})`),9,vc))],2))),128))])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",yc,s[0]||(s[0]=[g.createStaticVNode('<div class="__loading-box"><div class="skeleton"><div class="skeleton__tr"><div class="skeleton__td"></div><div class="skeleton__td"></div><div class="skeleton__td"></div></div></div></div>',1)])))],2)}const wc=ee(mc,[["render",Cc],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QTab.vue"]]),Ec={name:"q-widget-elements-adapters-q-component",props:{controllerReady:{type:Boolean,default:!1},element:{type:Object,default:()=>({})},elementName:{type:String,default:""},loadingCount:{type:Number,default:0},state:{type:Object,default:()=>({})}},emits:["onCreated","onEvent"],computed:{$config(){return this.element.getConfig()||{}},$componentName(){return this.$config.componentName},$component(){return this.state?.elementComponents?this.state.elementComponents[this.$componentName]:null},$componentPayload(){return this.state.componentPayload?this.state.componentPayload[this.element.name]:{}},$eventName(){return this.$config.eventName||{}},$payload(){return{state:this.state,...this.$componentPayload}},helpers(){return this.element.controllerHelpers||{}},isReady(){return this.loadingCount<=0&&this.controllerReady&&!!this.$component}},created(){this.controllerReady&&this.init()},methods:{init(){this.element.onCreated({component:this}),this.$emit("onCreated")},getClass(o){return o.css||""},getComponent(){return this.$component||"div"},onElementEvent({eventName:o,payload:s}={}){const r={eventName:this.$eventName[o]||o,payload:s};this.$emit("onEvent",r)}}},bc={key:1};function Ac(o,s,r,d,f,u){return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["q-widget-elements-adapters-q-component q-widget-adapters-q-component __element __adapter __component",u.getClass(r.element)])},[u.isReady?(g.openBlock(),g.createBlock(g.resolveDynamicComponent(u.getComponent()),{key:0,class:"__component",payload:u.$payload,onOnElementEvent:u.onElementEvent},null,40,["payload","onOnElementEvent"])):g.createCommentVNode("v-if",!0),u.isReady?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("div",bc,[g.createCommentVNode(" loading ")]))],2)}const Sc={name:"q-widget-elements-element",components:{QWidgetQButtonElement:$u,QWidgetQFormElement:Tu,QWidgetQGridElement:Uu,QWidgetQHtmlElement:Ku,QWidgetQImportElement:Zu,QWidgetQLabelElement:ec,QWidgetQListElement:oc,QWidgetQPaginatorElement:cc,QWidgetQSchedulerElement:gc,QWidgetQTabElement:wc,QWidgetQComponentElement:ee(Ec,[["render",Ac],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Adapters/QComponent.vue"]])},props:{controllerReady:{type:Boolean,default:!1},node:{type:Object,default:()=>({})},loadingCount:{type:Number,default:0}},emits:["onEvent","onElementCreated"],computed:{elementName(){return this.element.getElementName()},element(){return this.node},state(){return this.element.getState()}},methods:{factoryInit(o){return o instanceof te.ElementQComponent?"q-widget-q-component-element":o instanceof te.ElementQButton?"q-widget-q-button-element":o instanceof te.ElementQForm?"q-widget-q-form-element":o instanceof te.ElementQGrid?"q-widget-q-grid-element":o instanceof te.ElementQHtml?"q-widget-q-html-element":o instanceof te.ElementQImport?"q-widget-q-import-element":o instanceof te.ElementQLabel?"q-widget-q-label-element":o instanceof te.ElementQList?"q-widget-q-list-element":o instanceof te.ElementQPaginator?"q-widget-q-paginator-element":o instanceof te.ElementQScheduler?"q-widget-q-scheduler-element":o instanceof te.ElementQTab?"q-widget-q-tab-element":""},onEvent(o){this.$emit("onEvent",{...o,element:this.element})},onElementCreated(){this.element.isCreated&&this.$emit("onElementCreated")}}};function Rc(o,s,r,d,f,u){return g.openBlock(),g.createBlock(g.resolveDynamicComponent(u.factoryInit(r.node)),{controllerReady:r.controllerReady,element:r.node,elementName:u.elementName,loadingCount:r.loadingCount,state:u.state,onOnCreated:u.onElementCreated,onOnEvent:u.onEvent},null,40,["controllerReady","element","elementName","loadingCount","state","onOnCreated","onOnEvent"])}const xc=Object.freeze(Object.defineProperty({__proto__:null,default:ee(Sc,[["render",Rc],["__file","/Users/questwork/Developer/qw.vue.q.widget/src/components/Elements/Element.vue"]])},Symbol.toStringTag,{value:"Module"}));ht.QWidget=wn,Object.defineProperty(ht,Symbol.toStringTag,{value:"Module"}); return ht; });
|
|
@@ -73,9 +73,10 @@ class Element extends Node {
|
|
|
73
73
|
return _mergeState(this.state, this.stateName)
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
onCreated({ component, payload = {} }) {
|
|
76
|
+
onCreated({ component, payload = {}, reRender = null }) {
|
|
77
77
|
this.addComponent(component)
|
|
78
78
|
this.updateState(payload)
|
|
79
|
+
this.reRender = reRender
|
|
79
80
|
return this
|
|
80
81
|
}
|
|
81
82
|
|