@processmaker/screen-builder 3.8.33 → 3.8.34
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/vue-form-builder.css +1 -1
- package/dist/vue-form-builder.es.js +23 -7
- package/dist/vue-form-builder.es.js.map +1 -1
- package/dist/vue-form-builder.umd.js +2 -2
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/renderer/file-upload.vue +22 -1
- package/src/components/renderer/form-record-list.vue +34 -6
|
@@ -205,7 +205,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
205
205
|
}
|
|
206
206
|
`],sourceRoot:""}])},function(r,i,a){var n=a(7).each,s={_eventData:null,on:function(o,u){this._eventData||(this._eventData={}),this._eventData[o]||(this._eventData[o]=[]);var l=!1;n(this._eventData[o],function(c){if(c===u)return l=!0,!1}),l||this._eventData[o].push(u)},off:function(o,u){this._eventData||(this._eventData={}),this._eventData[o]&&this._eventData[o].length&&(u?n(this._eventData[o],function(l,c){if(l===u)return this._eventData[o].splice(c,1),!1},this):this._eventData[o]=[])},trigger:function(o){if(this._eventData||(this._eventData={}),!this._eventData[o])return!0;var u=this._eventData[o].slice.call(arguments,1),l=!1;return n(this._eventData[o],function(c){l=c.apply(this,u)===!1||l},this),!l}};r.exports=s},function(r,i,a){function n(l,c,d){o.defineNonEnumerable(this,"uploader",l),this.isRoot=this.isFolder=l===this,o.defineNonEnumerable(this,"parent",d||null),o.defineNonEnumerable(this,"files",[]),o.defineNonEnumerable(this,"fileList",[]),o.defineNonEnumerable(this,"chunks",[]),o.defineNonEnumerable(this,"_errorFiles",[]),o.defineNonEnumerable(this,"file",null),this.id=o.uid(),this.isRoot||!c?this.file=null:o.isString(c)?(this.isFolder=!0,this.file=null,this.path=c,this.parent.path&&(c=c.substr(this.parent.path.length)),this.name=c.charAt(c.length-1)==="/"?c.substr(0,c.length-1):c):(this.file=c,this.fileType=this.file.type,this.name=c.fileName||c.name,this.size=c.size,this.relativePath=c.relativePath||c.webkitRelativePath||this.name,this._parseFile()),this.paused=l.opts.initialPaused,this.error=!1,this.allError=!1,this.aborted=!1,this.completed=!1,this.averageSpeed=0,this.currentSpeed=0,this._lastProgressCallback=Date.now(),this._prevUploadedSize=0,this._prevProgress=0,this.bootstrap()}function s(l){var c=[],d=l.split("/"),f=d.length,b=1;if(d.splice(f-1,1),f--,d.length)for(;b<=f;)c.push(d.slice(0,b++).join("/")+"/");return c}var o=a(7),u=a(22);o.extend(n.prototype,{_parseFile:function(){var l=s(this.relativePath);if(l.length){var c=this.uploader.filePaths;o.each(l,function(d,f){var b=c[d];b||(b=new n(this.uploader,d,this.parent),c[d]=b,this._updateParentFileList(b)),this.parent=b,b.files.push(this),l[f+1]||b.fileList.push(this)},this)}else this._updateParentFileList()},_updateParentFileList:function(l){l||(l=this);var c=this.parent;c&&c.fileList.push(l)},_eachAccess:function(l,c){if(this.isFolder)return void o.each(this.files,function(d,f){return l.call(this,d,f)},this);c.call(this,this)},bootstrap:function(){if(!this.isFolder){var l=this.uploader.opts;o.isFunction(l.initFileFn)&&l.initFileFn.call(this,this),this.abort(!0),this._resetError(),this._prevProgress=0;for(var c=l.forceChunkSize?Math.ceil:Math.floor,d=Math.max(c(this.size/l.chunkSize),1),f=0;f<d;f++)this.chunks.push(new u(this.uploader,this,f))}},_measureSpeed:function(){var l=this.uploader.opts.speedSmoothingFactor,c=Date.now()-this._lastProgressCallback;if(c){var d=this.sizeUploaded();this.currentSpeed=Math.max((d-this._prevUploadedSize)/c*1e3,0),this.averageSpeed=l*this.currentSpeed+(1-l)*this.averageSpeed,this._prevUploadedSize=d,this.parent&&this.parent._checkProgress()&&this.parent._measureSpeed()}},_checkProgress:function(l){return Date.now()-this._lastProgressCallback>=this.uploader.opts.progressCallbacksInterval},_chunkEvent:function(l,c,d){var f=this.uploader,b=u.STATUS,w=this,h=this.getRoot(),v=function(){w._measureSpeed(),f._trigger("fileProgress",h,w,l),w._lastProgressCallback=Date.now()};switch(c){case b.PROGRESS:this._checkProgress()&&v();break;case b.ERROR:this._error(),this.abort(!0),f._trigger("fileError",h,this,d,l);break;case b.SUCCESS:if(this._updateUploadedChunks(d,l),this.error)return;clearTimeout(this._progeressId),this._progeressId=0;var x=Date.now()-this._lastProgressCallback;x<f.opts.progressCallbacksInterval&&(this._progeressId=setTimeout(v,f.opts.progressCallbacksInterval-x)),this.isComplete()?(clearTimeout(this._progeressId),v(),this.currentSpeed=0,this.averageSpeed=0,f._trigger("fileSuccess",h,this,d,l),h.isComplete()&&f._trigger("fileComplete",h,this)):this._progeressId||v();break;case b.RETRY:f._trigger("fileRetry",h,this,l)}},_updateUploadedChunks:function(l,c){var d=this.uploader.opts.checkChunkUploadedByResponse;if(d){var f=c.xhr;o.each(this.chunks,function(b){if(!b.tested){var w=d.call(this,b,l);b!==c||w||(b.xhr=null),w&&(b.xhr=f),b.tested=!0}},this),this._firstResponse?this.uploader.uploadNextChunk():(this._firstResponse=!0,this.uploader.upload(!0))}else this.uploader.uploadNextChunk()},_error:function(){this.error=this.allError=!0;for(var l=this.parent;l&&l!==this.uploader;)l._errorFiles.push(this),l.error=!0,l._errorFiles.length===l.files.length&&(l.allError=!0),l=l.parent},_resetError:function(){this.error=this.allError=!1;for(var l=this.parent,c=-1;l&&l!==this.uploader;)c=l._errorFiles.indexOf(this),l._errorFiles.splice(c,1),l.allError=!1,l._errorFiles.length||(l.error=!1),l=l.parent},isComplete:function(){if(!this.completed){var l=!1;this._eachAccess(function(c){if(!c.isComplete())return l=!0,!1},function(){if(this.error)l=!0;else{var c=u.STATUS;o.each(this.chunks,function(d){var f=d.status();if(f===c.ERROR||f===c.PENDING||f===c.UPLOADING||f===c.READING||d.preprocessState===1||d.readState===1)return l=!0,!1})}}),this.completed=!l}return this.completed},isUploading:function(){var l=!1;return this._eachAccess(function(c){if(c.isUploading())return l=!0,!1},function(){var c=u.STATUS.UPLOADING;o.each(this.chunks,function(d){if(d.status()===c)return l=!0,!1})}),l},resume:function(){this._eachAccess(function(l){l.resume()},function(){this.paused=!1,this.aborted=!1,this.uploader.upload()}),this.paused=!1,this.aborted=!1},pause:function(){this._eachAccess(function(l){l.pause()},function(){this.paused=!0,this.abort()}),this.paused=!0},cancel:function(){this.uploader.removeFile(this)},retry:function(l){var c=function(d){d.error&&d.bootstrap()};l?l.bootstrap():this._eachAccess(c,function(){this.bootstrap()}),this.uploader.upload()},abort:function(l){if(!this.aborted){this.currentSpeed=0,this.averageSpeed=0,this.aborted=!l;var c=this.chunks;l&&(this.chunks=[]);var d=u.STATUS.UPLOADING;o.each(c,function(f){f.status()===d&&(f.abort(),this.uploader.uploadNextChunk())},this)}},progress:function(){var l=0,c=0,d=0;return this._eachAccess(function(f,b){l+=f.progress()*f.size,c+=f.size,b===this.files.length-1&&(d=c>0?l/c:this.isComplete()?1:0)},function(){if(this.error)return void(d=1);if(this.chunks.length===1)return this._prevProgress=Math.max(this._prevProgress,this.chunks[0].progress()),void(d=this._prevProgress);var f=0;o.each(this.chunks,function(w){f+=w.progress()*(w.endByte-w.startByte)});var b=f/this.size;this._prevProgress=Math.max(this._prevProgress,b>.9999?1:b),d=this._prevProgress}),d},getSize:function(){var l=0;return this._eachAccess(function(c){l+=c.size},function(){l+=this.size}),l},getFormatSize:function(){var l=this.getSize();return o.formatSize(l)},getRoot:function(){if(this.isRoot)return this;for(var l=this.parent;l;){if(l.parent===this.uploader)return l;l=l.parent}return this},sizeUploaded:function(){var l=0;return this._eachAccess(function(c){l+=c.sizeUploaded()},function(){o.each(this.chunks,function(c){l+=c.sizeUploaded()})}),l},timeRemaining:function(){function l(b,w){return b&&!w?Number.POSITIVE_INFINITY:b||w?Math.floor(b/w):0}var c=0,d=0,f=0;return this._eachAccess(function(b,w){b.paused||b.error||(d+=b.size-b.sizeUploaded(),f+=b.averageSpeed),w===this.files.length-1&&(c=l(d,f))},function(){if(this.paused||this.error)return void(c=0);var b=this.size-this.sizeUploaded();c=l(b,this.averageSpeed)}),c},removeFile:function(l){if(l.isFolder)for(;l.files.length;){var c=l.files[l.files.length-1];this._removeFile(c)}this._removeFile(l)},_delFilePath:function(l){l.path&&this.filePaths&&delete this.filePaths[l.path],o.each(l.fileList,function(c){this._delFilePath(c)},this)},_removeFile:function(l){if(!l.isFolder){o.each(this.files,function(f,b){if(f===l)return this.files.splice(b,1),!1},this),l.abort();for(var c,d=l.parent;d&&d!==this;)c=d.parent,d._removeFile(l),d=c}l.parent===this&&o.each(this.fileList,function(f,b){if(f===l)return this.fileList.splice(b,1),!1},this),this.isRoot||!this.isFolder||this.files.length||(this.parent._removeFile(this),this.uploader._delFilePath(this)),l.parent=null},getType:function(){return this.isFolder?"folder":this.file.type&&this.file.type.split("/")[1]},getExtension:function(){return this.isFolder?"":this.name.substr(2+(~-this.name.lastIndexOf(".")>>>0)).toLowerCase()}}),r.exports=n},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement;return(a._self._c||n)("div",{directives:[{name:"show",rawName:"v-show",value:!a.support,expression:"!support"}],staticClass:"uploader-unsupport"},[a._t("default",[a._m(0)])],2)},staticRenderFns:[function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("p",[a._v(`
|
|
207
207
|
Your browser, unfortunately, is not supported by Uploader.js. The library requires support for `),s("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/"}},[a._v("the HTML5 File API")]),a._v(" along with "),s("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/#normalization-of-params"}},[a._v("file slicing")]),a._v(`.
|
|
208
|
-
`)])}]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader-list"},[a._t("default",[s("ul",a._l(a.fileList,function(o){return s("li",{key:o.id},[s("uploader-file",{attrs:{file:o,list:!0}})],1)}))],{fileList:a.fileList})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader-file",attrs:{status:a.status}},[a._t("default",[s("div",{staticClass:"uploader-file-progress",class:a.progressingClass,style:a.progressStyle}),a._v(" "),s("div",{staticClass:"uploader-file-info"},[s("div",{staticClass:"uploader-file-name"},[s("i",{staticClass:"uploader-file-icon",attrs:{icon:a.fileCategory}}),a._v(a._s(a.file.name))]),a._v(" "),s("div",{staticClass:"uploader-file-size"},[a._v(a._s(a.formatedSize))]),a._v(" "),s("div",{staticClass:"uploader-file-meta"}),a._v(" "),s("div",{staticClass:"uploader-file-status"},[s("span",{directives:[{name:"show",rawName:"v-show",value:a.status!=="uploading",expression:"status !== 'uploading'"}]},[a._v(a._s(a.statusText))]),a._v(" "),s("span",{directives:[{name:"show",rawName:"v-show",value:a.status==="uploading",expression:"status === 'uploading'"}]},[s("span",[a._v(a._s(a.progressStyle.progress))]),a._v(" "),s("em",[a._v(a._s(a.formatedAverageSpeed))]),a._v(" "),s("i",[a._v(a._s(a.formatedTimeRemaining))])])]),a._v(" "),s("div",{staticClass:"uploader-file-actions"},[s("span",{staticClass:"uploader-file-pause",on:{click:a.pause}}),a._v(" "),s("span",{staticClass:"uploader-file-resume",on:{click:a.resume}},[a._v("️")]),a._v(" "),s("span",{staticClass:"uploader-file-retry",on:{click:a.retry}}),a._v(" "),s("span",{staticClass:"uploader-file-remove",on:{click:a.remove}})])])],{file:a.file,list:a.list,status:a.status,paused:a.paused,error:a.error,response:a.response,averageSpeed:a.averageSpeed,formatedAverageSpeed:a.formatedAverageSpeed,currentSpeed:a.currentSpeed,isComplete:a.isComplete,isUploading:a.isUploading,size:a.size,formatedSize:a.formatedSize,uploadedSize:a.uploadedSize,progress:a.progress,progressStyle:a.progressStyle,progressingClass:a.progressingClass,timeRemaining:a.timeRemaining,formatedTimeRemaining:a.formatedTimeRemaining,type:a.type,extension:a.extension,fileCategory:a.fileCategory})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader"},[a._t("default",[s("uploader-unsupport"),a._v(" "),s("uploader-drop",[s("p",[a._v("Drop files here to upload or")]),a._v(" "),s("uploader-btn",[a._v("select files")]),a._v(" "),s("uploader-btn",{attrs:{directory:!0}},[a._v("select folder")])],1),a._v(" "),s("uploader-list")],{files:a.files,fileList:a.fileList,started:a.started})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement;return(a._self._c||n)("div",{directives:[{name:"show",rawName:"v-show",value:a.support,expression:"support"}],ref:"drop",staticClass:"uploader-drop",class:a.dropClass},[a._t("default")],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader-files"},[a._t("default",[s("ul",a._l(a.files,function(o){return s("li",{key:o.id},[s("uploader-file",{attrs:{file:o}})],1)}))],{files:a.files})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement;return(a._self._c||n)("label",{directives:[{name:"show",rawName:"v-show",value:a.support,expression:"support"}],ref:"btn",staticClass:"uploader-btn"},[a._t("default")],2)},staticRenderFns:[]}},function(r,i,a){var n=a(63);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("2e4f4074",n,!0,{})},function(r,i,a){var n=a(64);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("30297bf6",n,!0,{})},function(r,i,a){var n=a(65);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("9c4391de",n,!0,{})},function(r,i,a){var n=a(66);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("6f0f0164",n,!0,{})},function(r,i,a){var n=a(67);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("f60d437e",n,!0,{})},function(r,i,a){var n=a(68);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("36e02209",n,!0,{})},function(r,i,a){var n=a(69);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("fb1ffb7e",n,!0,{})},function(r,i){r.exports=function(a,n){for(var s=[],o={},u=0;u<n.length;u++){var l=n[u],c=l[0],d=l[1],f=l[2],b=l[3],w={id:a+":"+u,css:d,media:f,sourceMap:b};o[c]?o[c].parts.push(w):s.push(o[c]={id:c,parts:[w]})}return s}}])})})(xh);var RC=xh.exports;const BC=ur(RC),$re="",HC=Dn(),VC=["Cannot read property 'assignBrowse' of null","Cannot read property 'assignDrop' of null","Cannot read properties of null (reading 'assignBrowse')","Cannot read properties of null (reading 'assignDrop')"],qC={components:{...BC,RequiredAsterisk:ee.RequiredAsterisk},mixins:[HC],props:["label","error","helper","name","value","controlClass","endpoint","accept","validation","parent","config","multipleUpload","screenType"],updated(){this.removeDefaultClasses()},mounted(){this.value&&this.fetchFiles(),this.$root.$on("set-upload-data-name",(t,e,r)=>this.listenRecordList(t,e,r)),this.$root.$on("removed-record",(t,e)=>this.listenRemovedRecord(t,e)),this.$root.$on("removed-loop",(t,e)=>this.listenRemovedLoop(t,e)),window.ProcessMaker.EventBus.$on("modal-shown",()=>{this.clearFiles()}),this.removeDefaultClasses(),this.setPrefix(),this.$refs.uploader&&this.$refs.uploader.$forceUpdate(),this.disabled=G.get(window,"ProcessMaker.isSelfService",!1)},errorCaptured(t){if(VC.includes(t.message))return!1},computed:{filesFromGlobalRequestFiles(){return this.value?G.get(window,`PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`,[]).filter(t=>this.multipleUpload?this.value.some(e=>e.file===t.id):t.id===this.value):[]},filesFromCollection(){return this.value?this.filesFromCollectionValue(this.value):[]},collection(){const t=document.head.querySelector('meta[name="collection-id"]');return t?t.content:!1},filesData(){return this.collection?this.filesFromCollection:this.filesFromGlobalRequestFiles},fileIds(){return this.files.map(t=>t.id)},nativeButtonAttrs(){const t={"data-cy":"file-upload-button"};return this.disabled&&(t.disabled=!0),t.accept=this.attrs.accept,t},required(){return this.config&&this.config.validation?this.config.validation==="required":!1},inPreviewMode(){return this.mode==="preview"&&!window.exampleScreens||this.mode==="editor"},mode(){return this.$root.$children[0].mode},classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}},inProgress(){return this.$refs.uploader.fileList.some(t=>t._prevProgress<1)},filesAccept(){if(!this.accept)return null;let t=[];return this.accept.split(",").forEach(e=>{t.push(e.trim())}),t},fileDataName(){return this.prefix+this.name+(this.row_id?"."+this.row_id:"")},isConversationalForm(){return this.screenType==="conversational-forms"},showSingleUploadButton(){return this.files.length===0&&!this.multipleUpload},showMultiUploadButton(){return this.files.length!==0&&this.multipleUpload}},watch:{filesData:{handler(){this.setFiles()},immediate:!0,deep:!0},files:{handler(){this.collection||this.setRequestFiles(),this.$emit("input",this.valueToSend())},deep:!0},name:{handler(){this.options.query.data_name=this.fileDataName},immediate:!0},parent:{handler(){this.options.query.parent=this.parent},immediate:!0},prefix:{handler(){this.options.query.data_name=this.fileDataName},immediate:!0},row_id:{handler(){this.options.query.row_id=this.row_id,this.options.query.data_name=this.prefix+this.name+(this.row_id?"."+this.row_id:"")},immediate:!0},multipleUpload:{handler(){this.options.query.multiple=this.multipleUpload},immediate:!0}},data(){return{uploaderId:1,content:"",validator:{errorCount:0,errors:[]},prefix:"",row_id:null,options:{target:this.getTargetUrl,simultaneousUploads:1,query:{chunk:!0,data_name:this.name,parent:null,row_id:null,task_id:G.get(window,"_current_task_id",0)},testChunks:!1,headers:{"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":window.ProcessMaker.apiClient.defaults.headers.common["X-CSRF-TOKEN"]},singleFile:!this.multipleUpload},attrs:{accept:this.accept},disabled:!1,files:[],nativeFiles:{},uploading:!1,invalidFile:!1,showComponent:!0}},methods:{clearFiles(){this.showComponent=!1,this.$nextTick(()=>{this.showComponent=!0})},uploaderLoaded(){return this.$refs.uploader},setFiles(){G.isEqual(this.filesData,this.files)||(this.files=this.filesData)},filesFromCollectionValue(t){return t?this.multipleUpload?this.filesFromCollectionMulti(t):this.filesFromCollectionSingle(t):[]},filesFromCollectionSingle(t){return[{id:t.id,file_name:t.name}]},filesFromCollectionMulti(t){return t.map(e=>({id:e.file.id,file_name:e.file.name}))},setRequestFiles(){G.set(window,`PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`,this.files),this.$emit("input",this.valueToSend())},valueToSend(){return this.multipleUpload?this.valueForMulti():this.valueForSingle()},valueForMulti(){return this.files.map(t=>({file:this.formatForType(t)}))},valueForSingle(){return this.files.length>0?this.formatForType(this.files[0]):null},formatForType(t){return this.collection?{id:t.id,name:t.file_name}:t.id},hasFileId(t){return this.fileIds.includes(t)},listenRemovedLoop(t,e){this.deleteAssociatedFiles(e)},listenRemovedRecord(t,e){this.parentRecordList(this)===t&&this.deleteAssociatedFiles(e)},async deleteAssociatedFiles(t){for(const e in t)if(e===this.name&&t[e]){const r=this.idsFromValue(t[e]);for(const i of r)this.hasFileId(i)&&(await this.$dataProvider.deleteFile(i).catch(a=>{}),this.removeFromFiles(i))}},idsFromValue(t){return this.collection?this.filesFromCollectionValue(t).map(e=>e.id):this.multipleUpload?t.map(e=>e.file):[t]},async removeFile(t){const e=t.id,r=t.token?t.token:null;isNaN(e)||await this.$dataProvider.deleteFile(e,r),this.removeFromFiles(e)},removeFromFiles(t){const e=this.files.findIndex(r=>r.id===t);this.$delete(this.files,e),this.nativeFiles[t]&&(this.$refs.uploader&&this.$refs.uploader.uploader.removeFile(this.nativeFiles[t]),this.$delete(this.nativeFiles,t)),this.$emit("file-deleted",this.files)},addToFiles(t){this.multipleUpload?this.files.push(t):this.files=[t]},listenRecordList(t,e,r){const i=this.parentRecordList(this);i===t&&(this.row_id=i!==null?r:null)},setPrefix(){let t=this.$parent,e=0;for(;!t.loopContext;){if(t=t.$parent,t===this.$root){t=null;break}if(e++,e>100)throw"Loop Error"}t&&t.loopContext&&(this.prefix=t.loopContext+".")},validateFile(t,e){const r=e.filter(u=>u.startsWith(".")),i=e.filter(u=>!u.startsWith(".")),a="."+t.name.split(".").pop().toLowerCase(),n=t.fileType,s=r.includes(a),o=i.includes(n);return!(!s&&!o)},addFile(t){if(this.disabled)return t.ignored=!0,!1;if(t.fileType===void 0){const e=this.files.find(r=>{if(r.name===t.name)return r.fileType});t.fileType=e.fileType}return this.filesAccept&&(t.ignored=!0,this.validateFile(t,this.filesAccept)&&(t.ignored=!1),t.ignored)?(this.invalidFile=!0,this.uploading=!1,window.ProcessMaker.alert(this.$t("This file type is not accepted."),"danger"),!1):(t.ignored=!1,this.name||(this.options.query.data_name=t.name),!0)},removeDefaultClasses(){this.$el.querySelectorAll(".uploader-btn, .uploader-drop").forEach(t=>{t.classList.remove("uploader-btn","uploader-drop")})},browse(t){["Enter","Space"].includes(t.code)&&t.target.click()},fileError(t,e,r,i){let a="";try{a=JSON.parse(r).join(", ")}catch{a=r}if(a.length>0){const n=JSON.parse(a);n.message&&(a=n.message),window.ProcessMaker.alert(`${this.$t("File Upload Error:")} ${a}`,"danger")}window.onbeforeunload=function(){},this.$emit("file-error",r)},fileUploaded(t,e,r){this.uploading=!1;let i=e.name;if(r){const a=JSON.parse(r);let n=a.fileUploadId;this.collection&&(n=a.id);const s={id:n,file_name:i,mime_type:t.fileType,name:i,fileType:t.fileType};this.$set(this.nativeFiles,n,t),this.addToFiles(s)}else this.$emit("input",i)},removed(){this.inProgress||this.complete()},complete(){this.validator.errorCount=0,window.onbeforeunload=function(){}},parentRecordList(t){return t.$parent&&t.$parent.$options?t.$parent.$options._componentTag==="form-record-list"?t.$parent:this.parentRecordList(t.$parent):null},start(){this.invalidFile||(this.uploading=!0,this.parentRecordList(this)===null&&(this.row_id=null),this.validator.errorCount=1,window.onbeforeunload=function(){return!0})},getTargetUrl(){if(G.has(window,"PM4ConfigOverrides.postFileEndpoint"))return window.PM4ConfigOverrides.postFileEndpoint;if(this.endpoint)return this.endpoint;if(this.collection)return"/api/1.0/files?model=ProcessMaker\\Plugins\\Collections\\Models\\Collection&model_id="+this.collection+"&collection=collection";{const t=document.head.querySelector('meta[name="request-id"]');return t?`/api/1.0/requests/${t.content}/files`:null}},getFileIconClass(t){return this.nativeFiles[t.id].fileType.includes("image/")?"far fa-image":"far fa-file"},emitConversationalFormSubmit(t){this.$emit("cf-submit",t)},cfSkipFileUpload(){this.$emit("cf-skip-file-upload")},async fetchFiles(){const e=(Array.isArray(this.value)?this.value:[this.value]).map(async r=>{const i=(r==null?void 0:r.file)??r,a=`files/${i}`;try{const n=await ProcessMaker.apiClient.get(a);n!=null&&n.data&&(this.files.some(o=>o.id===n.data.id)||this.files.push(n.data))}catch(n){console.error(`Failed to fetch file ${i}`,n)}});return await Promise.all(e)}}};var WC=function(){var e=this,r=e._self._c;return r("div",[r("required-asterisk"),r("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:e.name,expression:"name"}]},[e._v(e._s(e.label))]),e.inPreviewMode?r("b-card",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("File uploads are unavailable in preview mode."))+" ")]):e._e(),!e.inPreviewMode&&e.showComponent?r("uploader",{ref:"uploader",class:{"was-validated":e.required},attrs:{options:e.options,attrs:e.attrs},on:{complete:e.complete,"upload-start":e.start,"file-removed":e.removed,"file-success":e.fileUploaded,"file-error":e.fileError,"file-added":e.addFile}},[r("uploader-unsupport"),e.uploaderLoaded&&!e.isConversationalForm?r("uploader-drop",{staticClass:"form-control-file"},[r("p",[e._v(e._s(e.$t("Drop a file here to upload or")))]),r("uploader-btn",{staticClass:"btn btn-secondary text-white",class:{disabled:e.disabled},attrs:{attrs:e.nativeButtonAttrs,tabindex:"0","aria-label":e.$attrs["aria-label"]},nativeOn:{keyup:function(i){return e.browse.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("select file"))+" ")]),e.validation==="required"&&!e.value?r("span",{staticClass:"required"},[e._v(e._s(e.$t("Required")))]):e._e()],1):e._e(),e.isConversationalForm?r("uploader-list",{staticClass:"cf-uploader-list",scopedSlots:e._u([{key:"default",fn:function({fileList:i}){return[e.uploading?r("ul",{staticClass:"cf-upload-progress"},e._l(i,function(a){return r("li",{key:a.id||a.name},[r("uploader-file",{attrs:{file:a,list:""}})],1)}),0):r("ul",e._l(e.files,function(a,n){return r("li",{key:a.id||n,staticClass:"cf-file-upload-list",attrs:{"data-cy":a.id}},[r("span",{staticClass:"cf-filename text-truncate"},[r("i",{staticClass:"mr-2",class:e.getFileIconClass(a)}),e._v(" "+e._s(e.nativeFiles[a.id].name)+" ")]),r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"pr-0",attrs:{variant:"outline",title:e.$t("Delete"),"aria-label":e.$t("Delete file {{ nativeFiles[file.id].name }}")},on:{click:function(s){return e.removeFile(a)}}},[r("i",{staticClass:"fas fa-trash-alt"})])],1)}),0)]}}],null,!1,3717311094)}):e._e(),e.uploaderLoaded&&e.isConversationalForm?r("uploader-drop",{staticClass:"form-control-file",class:this.files.length>0&&!this.multipleUpload?"cf-single-file-upload":""},[e.required?e._e():r("b-button",{staticClass:"btn cf-skip-btn",class:e.showMultiUploadButton?"mb-3":"",on:{click:e.cfSkipFileUpload}},[r("i",{staticClass:"fas fa-arrow-left mr-2"}),e._v(" "+e._s(e.$t("Skip Uploading"))+" ")]),r("uploader-btn",{class:[{disabled:e.disabled},"btn",e.showSingleUploadButton||e.files.length===0&&!e.showMultiUploadButton?"cf-single-upload-btn mt-3":e.showMultiUploadButton?"cf-multi-upload-btn":""],attrs:{attrs:e.nativeButtonAttrs,tabindex:"0","aria-label":e.$attrs["aria-label"]},nativeOn:{keyup:function(i){return e.browse.apply(null,arguments)}}},[e.showSingleUploadButton||e.files.length===0&&!e.showMultiUploadButton?r("span",[r("i",{staticClass:"far fa-image mr-2"}),e._v(" "+e._s(e.$t("Add File/Photo")))]):e.showMultiUploadButton?r("span",[r("i",{staticClass:"fas fa-plus mr-2"}),e._v(" "+e._s(e.$t("Add another")))]):e._e()]),e.files.length!==0?r("b-button",{staticClass:"cf-file-upload-submit",class:e.showMultiUploadButton?"":"w-100 mt-3",attrs:{variant:"primary","aria-label":e.$t("Submit")},on:{click:e.emitConversationalFormSubmit}},[r("i",{staticClass:"fas fa-paper-plane"}),e._v(" "),e.showMultiUploadButton?r("span",[e._v(e._s(e.$t("Send All")))]):r("span",[e._v(e._s(e.$t("Submit File/Photo")))])]):e._e()],1):r("uploader-list",{scopedSlots:e._u([{key:"default",fn:function({fileList:i}){return[e.uploading?r("ul",e._l(i,function(a){return r("li",{key:a.id},[r("uploader-file",{attrs:{file:a,list:!0}})],1)}),0):r("ul",e._l(e.files,function(a,n){return r("li",{key:n,attrs:{"data-cy":a.id}},[r("div",{},[r("div",{staticStyle:{display:"flex",background:"rgb(226 238 255)"}},[e.nativeFiles[a.id]?r("div",{staticClass:"overflow-hidden",staticStyle:{flex:"1"},attrs:{"data-cy":a.file_name.replace(/[^0-9a-zA-Z\-]/g,"-")}},[r("uploader-file",{attrs:{file:e.nativeFiles[a.id],list:!0}})],1):r("div",{staticClass:"text-truncate",staticStyle:{flex:"1"},attrs:{title:a.file_name}},[r("i",{staticClass:"fas fa-paperclip"}),e._v(" "+e._s(a.file_name)+" ")]),r("div",{staticClass:"pt-1"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"outline",title:e.$t("Delete")},on:{click:function(s){return e.removeFile(a)}}},[r("i",{staticClass:"fas fa-trash-alt"})])],1)])])])}),0)]}}],null,!1,3267103099)}),r("div",{staticClass:"invalid-feedback",class:{"d-block":e.error&&!e.value}},[e._v(" "+e._s(e.$t("Field is required"))+" ")])],1):e._e(),e.error?r("div",{staticClass:"invalid-feedback"},[e._v(e._s(e.error))]):e._e(),e.helper?r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.helper))]):e._e()],1)},XC=[],UC=ie(qC,WC,XC,!1,null,"917cc4d9");const An=UC.exports,eie="",JC={props:{width:{default:64},height:{default:64}},data(){return{user:window.Processmaker.user}},mounted(){this.getInitials()},methods:{getInitials(){return this.user.firstname&&this.user.lastname?this.user.firstname.match(/./u)[0]+this.user.lastname.match(/./u)[0]:""},variant(){return this.user.avatar?"secondary":"info"},styleAvatar(){return"width: "+this.width+"px; height: "+this.height+"px; font-size:"+this.height/2.5+"px; padding:0;"}}};var GC=function(){var e=this,r=e._self._c;return r("span",[r("b-button",{staticClass:"avatar-button rounded-circle overflow-hidden p-0 m-0 d-inline-flex border-0",style:e.styleAvatar(),attrs:{variant:e.variant(),disabled:""}},[e.user.avatar?r("img",{class:e.image,attrs:{src:e.user.avatar,width:e.width,height:e.height,alt:e.user.fullname}}):r("span",{staticClass:"border-0 d-inline-flex align-items-center justify-content-center text-white text-uppercase text-nowrap font-weight-normal",style:e.styleAvatar()},[e.getInitials()?r("span",[e._v(e._s(e.getInitials()))]):r("span",[e._v("PM")])])])],1)},QC=[],YC=ie(JC,GC,QC,!1,null,"5418080e");const On=YC.exports;var wh={exports:{}};(function(t,e){(function(r,i){t.exports=i()})(Mt,function(){/*!
|
|
208
|
+
`)])}]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader-list"},[a._t("default",[s("ul",a._l(a.fileList,function(o){return s("li",{key:o.id},[s("uploader-file",{attrs:{file:o,list:!0}})],1)}))],{fileList:a.fileList})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader-file",attrs:{status:a.status}},[a._t("default",[s("div",{staticClass:"uploader-file-progress",class:a.progressingClass,style:a.progressStyle}),a._v(" "),s("div",{staticClass:"uploader-file-info"},[s("div",{staticClass:"uploader-file-name"},[s("i",{staticClass:"uploader-file-icon",attrs:{icon:a.fileCategory}}),a._v(a._s(a.file.name))]),a._v(" "),s("div",{staticClass:"uploader-file-size"},[a._v(a._s(a.formatedSize))]),a._v(" "),s("div",{staticClass:"uploader-file-meta"}),a._v(" "),s("div",{staticClass:"uploader-file-status"},[s("span",{directives:[{name:"show",rawName:"v-show",value:a.status!=="uploading",expression:"status !== 'uploading'"}]},[a._v(a._s(a.statusText))]),a._v(" "),s("span",{directives:[{name:"show",rawName:"v-show",value:a.status==="uploading",expression:"status === 'uploading'"}]},[s("span",[a._v(a._s(a.progressStyle.progress))]),a._v(" "),s("em",[a._v(a._s(a.formatedAverageSpeed))]),a._v(" "),s("i",[a._v(a._s(a.formatedTimeRemaining))])])]),a._v(" "),s("div",{staticClass:"uploader-file-actions"},[s("span",{staticClass:"uploader-file-pause",on:{click:a.pause}}),a._v(" "),s("span",{staticClass:"uploader-file-resume",on:{click:a.resume}},[a._v("️")]),a._v(" "),s("span",{staticClass:"uploader-file-retry",on:{click:a.retry}}),a._v(" "),s("span",{staticClass:"uploader-file-remove",on:{click:a.remove}})])])],{file:a.file,list:a.list,status:a.status,paused:a.paused,error:a.error,response:a.response,averageSpeed:a.averageSpeed,formatedAverageSpeed:a.formatedAverageSpeed,currentSpeed:a.currentSpeed,isComplete:a.isComplete,isUploading:a.isUploading,size:a.size,formatedSize:a.formatedSize,uploadedSize:a.uploadedSize,progress:a.progress,progressStyle:a.progressStyle,progressingClass:a.progressingClass,timeRemaining:a.timeRemaining,formatedTimeRemaining:a.formatedTimeRemaining,type:a.type,extension:a.extension,fileCategory:a.fileCategory})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader"},[a._t("default",[s("uploader-unsupport"),a._v(" "),s("uploader-drop",[s("p",[a._v("Drop files here to upload or")]),a._v(" "),s("uploader-btn",[a._v("select files")]),a._v(" "),s("uploader-btn",{attrs:{directory:!0}},[a._v("select folder")])],1),a._v(" "),s("uploader-list")],{files:a.files,fileList:a.fileList,started:a.started})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement;return(a._self._c||n)("div",{directives:[{name:"show",rawName:"v-show",value:a.support,expression:"support"}],ref:"drop",staticClass:"uploader-drop",class:a.dropClass},[a._t("default")],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader-files"},[a._t("default",[s("ul",a._l(a.files,function(o){return s("li",{key:o.id},[s("uploader-file",{attrs:{file:o}})],1)}))],{files:a.files})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement;return(a._self._c||n)("label",{directives:[{name:"show",rawName:"v-show",value:a.support,expression:"support"}],ref:"btn",staticClass:"uploader-btn"},[a._t("default")],2)},staticRenderFns:[]}},function(r,i,a){var n=a(63);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("2e4f4074",n,!0,{})},function(r,i,a){var n=a(64);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("30297bf6",n,!0,{})},function(r,i,a){var n=a(65);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("9c4391de",n,!0,{})},function(r,i,a){var n=a(66);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("6f0f0164",n,!0,{})},function(r,i,a){var n=a(67);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("f60d437e",n,!0,{})},function(r,i,a){var n=a(68);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("36e02209",n,!0,{})},function(r,i,a){var n=a(69);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("fb1ffb7e",n,!0,{})},function(r,i){r.exports=function(a,n){for(var s=[],o={},u=0;u<n.length;u++){var l=n[u],c=l[0],d=l[1],f=l[2],b=l[3],w={id:a+":"+u,css:d,media:f,sourceMap:b};o[c]?o[c].parts.push(w):s.push(o[c]={id:c,parts:[w]})}return s}}])})})(xh);var RC=xh.exports;const BC=ur(RC),$re="",HC=Dn(),VC=["Cannot read property 'assignBrowse' of null","Cannot read property 'assignDrop' of null","Cannot read properties of null (reading 'assignBrowse')","Cannot read properties of null (reading 'assignDrop')"],qC={components:{...BC,RequiredAsterisk:ee.RequiredAsterisk},mixins:[HC],props:["label","error","helper","name","value","controlClass","endpoint","accept","validation","parent","config","multipleUpload","screenType"],created(){const t=this;this.options.processParams=(e,r)=>(!t.isFileManagerPublicInterface()||!t.multipleUpload||(e.data_name=e.filename||r.name),e)},updated(){this.removeDefaultClasses()},mounted(){this.value&&this.fetchFiles(),this.$root.$on("set-upload-data-name",(t,e,r)=>this.listenRecordList(t,e,r)),this.$root.$on("removed-record",(t,e)=>this.listenRemovedRecord(t,e)),this.$root.$on("removed-loop",(t,e)=>this.listenRemovedLoop(t,e)),window.ProcessMaker.EventBus.$on("modal-shown",()=>{this.clearFiles()}),this.removeDefaultClasses(),this.setPrefix(),this.$refs.uploader&&this.$refs.uploader.$forceUpdate(),this.disabled=G.get(window,"ProcessMaker.isSelfService",!1)},errorCaptured(t){if(VC.includes(t.message))return!1},computed:{filesFromGlobalRequestFiles(){return this.value?G.get(window,`PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`,[]).filter(t=>this.multipleUpload?this.value.some(e=>e.file===t.id):t.id===this.value):[]},filesFromCollection(){return this.value?this.filesFromCollectionValue(this.value):[]},collection(){const t=document.head.querySelector('meta[name="collection-id"]');return t?t.content:!1},filesData(){return this.collection?this.filesFromCollection:this.filesFromGlobalRequestFiles},fileIds(){return this.files.map(t=>t.id)},nativeButtonAttrs(){const t={"data-cy":"file-upload-button"};return this.disabled&&(t.disabled=!0),t.accept=this.attrs.accept,t},required(){return this.config&&this.config.validation?this.config.validation==="required":!1},inPreviewMode(){return this.mode==="preview"&&!window.exampleScreens||this.mode==="editor"},mode(){return this.$root.$children[0].mode},classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}},inProgress(){return this.$refs.uploader.fileList.some(t=>t._prevProgress<1)},filesAccept(){if(!this.accept)return null;let t=[];return this.accept.split(",").forEach(e=>{t.push(e.trim())}),t},fileDataName(){return this.prefix+this.name+(this.row_id?"."+this.row_id:"")},isConversationalForm(){return this.screenType==="conversational-forms"},showSingleUploadButton(){return this.files.length===0&&!this.multipleUpload},showMultiUploadButton(){return this.files.length!==0&&this.multipleUpload}},watch:{filesData:{handler(){this.setFiles()},immediate:!0,deep:!0},files:{handler(){this.collection||this.setRequestFiles(),this.$emit("input",this.valueToSend())},deep:!0},name:{handler(){this.options.query.data_name=this.fileDataName},immediate:!0},parent:{handler(){this.options.query.parent=this.parent},immediate:!0},prefix:{handler(){this.options.query.data_name=this.fileDataName},immediate:!0},row_id:{handler(){this.options.query.row_id=this.row_id,this.options.query.data_name=this.prefix+this.name+(this.row_id?"."+this.row_id:"")},immediate:!0},multipleUpload:{handler(){this.options.query.multiple=this.multipleUpload},immediate:!0}},data(){return{uploaderId:1,content:"",validator:{errorCount:0,errors:[]},prefix:"",row_id:null,options:{target:this.getTargetUrl,simultaneousUploads:1,query:{chunk:!0,data_name:this.name,parent:null,row_id:null,task_id:G.get(window,"_current_task_id",0)},testChunks:!1,headers:{"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":window.ProcessMaker.apiClient.defaults.headers.common["X-CSRF-TOKEN"]},singleFile:!this.multipleUpload},attrs:{accept:this.accept},disabled:!1,files:[],nativeFiles:{},uploading:!1,invalidFile:!1,showComponent:!0}},methods:{isFileManagerPublicInterface(){if(typeof window>"u"||!window.location)return!1;const t=String(window.location.pathname||""),e=String(window.location.hash||"");return t.includes("/file-manager/public")||/\/file-manager\/?$/i.test(t)&&/^#\/public(\/|$)/i.test(e)},clearFiles(){this.showComponent=!1,this.$nextTick(()=>{this.showComponent=!0})},uploaderLoaded(){return this.$refs.uploader},setFiles(){G.isEqual(this.filesData,this.files)||(this.files=this.filesData)},filesFromCollectionValue(t){return t?this.multipleUpload?this.filesFromCollectionMulti(t):this.filesFromCollectionSingle(t):[]},filesFromCollectionSingle(t){return[{id:t.id,file_name:t.name}]},filesFromCollectionMulti(t){return t.map(e=>({id:e.file.id,file_name:e.file.name}))},setRequestFiles(){G.set(window,`PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`,this.files),this.$emit("input",this.valueToSend())},valueToSend(){return this.multipleUpload?this.valueForMulti():this.valueForSingle()},valueForMulti(){return this.files.map(t=>({file:this.formatForType(t)}))},valueForSingle(){return this.files.length>0?this.formatForType(this.files[0]):null},formatForType(t){return this.collection?{id:t.id,name:t.file_name}:t.id},hasFileId(t){return this.fileIds.includes(t)},listenRemovedLoop(t,e){this.deleteAssociatedFiles(e)},listenRemovedRecord(t,e){this.parentRecordList(this)===t&&this.deleteAssociatedFiles(e)},async deleteAssociatedFiles(t){for(const e in t)if(e===this.name&&t[e]){const r=this.idsFromValue(t[e]);for(const i of r)this.hasFileId(i)&&(await this.$dataProvider.deleteFile(i).catch(a=>{}),this.removeFromFiles(i))}},idsFromValue(t){return this.collection?this.filesFromCollectionValue(t).map(e=>e.id):this.multipleUpload?t.map(e=>e.file):[t]},async removeFile(t){const e=t.id,r=t.token?t.token:null;isNaN(e)||await this.$dataProvider.deleteFile(e,r),this.removeFromFiles(e)},removeFromFiles(t){const e=this.files.findIndex(r=>r.id===t);this.$delete(this.files,e),this.nativeFiles[t]&&(this.$refs.uploader&&this.$refs.uploader.uploader.removeFile(this.nativeFiles[t]),this.$delete(this.nativeFiles,t)),this.$emit("file-deleted",this.files)},addToFiles(t){this.multipleUpload?this.files.push(t):this.files=[t]},listenRecordList(t,e,r){const i=this.parentRecordList(this);i===t&&(this.row_id=i!==null?r:null)},setPrefix(){let t=this.$parent,e=0;for(;!t.loopContext;){if(t=t.$parent,t===this.$root){t=null;break}if(e++,e>100)throw"Loop Error"}t&&t.loopContext&&(this.prefix=t.loopContext+".")},validateFile(t,e){const r=e.filter(u=>u.startsWith(".")),i=e.filter(u=>!u.startsWith(".")),a="."+t.name.split(".").pop().toLowerCase(),n=t.fileType,s=r.includes(a),o=i.includes(n);return!(!s&&!o)},addFile(t){if(this.disabled)return t.ignored=!0,!1;if(t.fileType===void 0){const e=this.files.find(r=>{if(r.name===t.name)return r.fileType});t.fileType=e.fileType}return this.filesAccept&&(t.ignored=!0,this.validateFile(t,this.filesAccept)&&(t.ignored=!1),t.ignored)?(this.invalidFile=!0,this.uploading=!1,window.ProcessMaker.alert(this.$t("This file type is not accepted."),"danger"),!1):(t.ignored=!1,!this.name&&!(this.isFileManagerPublicInterface()&&this.multipleUpload)&&(this.options.query.data_name=t.name),!0)},removeDefaultClasses(){this.$el.querySelectorAll(".uploader-btn, .uploader-drop").forEach(t=>{t.classList.remove("uploader-btn","uploader-drop")})},browse(t){["Enter","Space"].includes(t.code)&&t.target.click()},fileError(t,e,r,i){let a="";try{a=JSON.parse(r).join(", ")}catch{a=r}if(a.length>0){const n=JSON.parse(a);n.message&&(a=n.message),window.ProcessMaker.alert(`${this.$t("File Upload Error:")} ${a}`,"danger")}window.onbeforeunload=function(){},this.$emit("file-error",r)},fileUploaded(t,e,r){this.uploading=!1;let i=e.name;if(r){const a=JSON.parse(r);let n=a.fileUploadId;this.collection&&(n=a.id);const s={id:n,file_name:i,mime_type:t.fileType,name:i,fileType:t.fileType};this.$set(this.nativeFiles,n,t),this.addToFiles(s)}else this.$emit("input",i)},removed(){this.inProgress||this.complete()},complete(){this.validator.errorCount=0,window.onbeforeunload=function(){}},parentRecordList(t){return t.$parent&&t.$parent.$options?t.$parent.$options._componentTag==="form-record-list"?t.$parent:this.parentRecordList(t.$parent):null},start(){this.invalidFile||(this.uploading=!0,this.parentRecordList(this)===null&&(this.row_id=null),this.validator.errorCount=1,window.onbeforeunload=function(){return!0})},getTargetUrl(){if(G.has(window,"PM4ConfigOverrides.postFileEndpoint"))return window.PM4ConfigOverrides.postFileEndpoint;if(this.endpoint)return this.endpoint;if(this.collection)return"/api/1.0/files?model=ProcessMaker\\Plugins\\Collections\\Models\\Collection&model_id="+this.collection+"&collection=collection";{const t=document.head.querySelector('meta[name="request-id"]');return t?`/api/1.0/requests/${t.content}/files`:null}},getFileIconClass(t){return this.nativeFiles[t.id].fileType.includes("image/")?"far fa-image":"far fa-file"},emitConversationalFormSubmit(t){this.$emit("cf-submit",t)},cfSkipFileUpload(){this.$emit("cf-skip-file-upload")},async fetchFiles(){const e=(Array.isArray(this.value)?this.value:[this.value]).map(async r=>{const i=(r==null?void 0:r.file)??r,a=`files/${i}`;try{const n=await ProcessMaker.apiClient.get(a);n!=null&&n.data&&(this.files.some(o=>o.id===n.data.id)||this.files.push(n.data))}catch(n){console.error(`Failed to fetch file ${i}`,n)}});return await Promise.all(e)}}};var WC=function(){var e=this,r=e._self._c;return r("div",[r("required-asterisk"),r("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:e.name,expression:"name"}]},[e._v(e._s(e.label))]),e.inPreviewMode?r("b-card",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("File uploads are unavailable in preview mode."))+" ")]):e._e(),!e.inPreviewMode&&e.showComponent?r("uploader",{ref:"uploader",class:{"was-validated":e.required},attrs:{options:e.options,attrs:e.attrs},on:{complete:e.complete,"upload-start":e.start,"file-removed":e.removed,"file-success":e.fileUploaded,"file-error":e.fileError,"file-added":e.addFile}},[r("uploader-unsupport"),e.uploaderLoaded&&!e.isConversationalForm?r("uploader-drop",{staticClass:"form-control-file"},[r("p",[e._v(e._s(e.$t("Drop a file here to upload or")))]),r("uploader-btn",{staticClass:"btn btn-secondary text-white",class:{disabled:e.disabled},attrs:{attrs:e.nativeButtonAttrs,tabindex:"0","aria-label":e.$attrs["aria-label"]},nativeOn:{keyup:function(i){return e.browse.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("select file"))+" ")]),e.validation==="required"&&!e.value?r("span",{staticClass:"required"},[e._v(e._s(e.$t("Required")))]):e._e()],1):e._e(),e.isConversationalForm?r("uploader-list",{staticClass:"cf-uploader-list",scopedSlots:e._u([{key:"default",fn:function({fileList:i}){return[e.uploading?r("ul",{staticClass:"cf-upload-progress"},e._l(i,function(a){return r("li",{key:a.id||a.name},[r("uploader-file",{attrs:{file:a,list:""}})],1)}),0):r("ul",e._l(e.files,function(a,n){return r("li",{key:a.id||n,staticClass:"cf-file-upload-list",attrs:{"data-cy":a.id}},[r("span",{staticClass:"cf-filename text-truncate"},[r("i",{staticClass:"mr-2",class:e.getFileIconClass(a)}),e._v(" "+e._s(e.nativeFiles[a.id].name)+" ")]),r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"pr-0",attrs:{variant:"outline",title:e.$t("Delete"),"aria-label":e.$t("Delete file {{ nativeFiles[file.id].name }}")},on:{click:function(s){return e.removeFile(a)}}},[r("i",{staticClass:"fas fa-trash-alt"})])],1)}),0)]}}],null,!1,3717311094)}):e._e(),e.uploaderLoaded&&e.isConversationalForm?r("uploader-drop",{staticClass:"form-control-file",class:this.files.length>0&&!this.multipleUpload?"cf-single-file-upload":""},[e.required?e._e():r("b-button",{staticClass:"btn cf-skip-btn",class:e.showMultiUploadButton?"mb-3":"",on:{click:e.cfSkipFileUpload}},[r("i",{staticClass:"fas fa-arrow-left mr-2"}),e._v(" "+e._s(e.$t("Skip Uploading"))+" ")]),r("uploader-btn",{class:[{disabled:e.disabled},"btn",e.showSingleUploadButton||e.files.length===0&&!e.showMultiUploadButton?"cf-single-upload-btn mt-3":e.showMultiUploadButton?"cf-multi-upload-btn":""],attrs:{attrs:e.nativeButtonAttrs,tabindex:"0","aria-label":e.$attrs["aria-label"]},nativeOn:{keyup:function(i){return e.browse.apply(null,arguments)}}},[e.showSingleUploadButton||e.files.length===0&&!e.showMultiUploadButton?r("span",[r("i",{staticClass:"far fa-image mr-2"}),e._v(" "+e._s(e.$t("Add File/Photo")))]):e.showMultiUploadButton?r("span",[r("i",{staticClass:"fas fa-plus mr-2"}),e._v(" "+e._s(e.$t("Add another")))]):e._e()]),e.files.length!==0?r("b-button",{staticClass:"cf-file-upload-submit",class:e.showMultiUploadButton?"":"w-100 mt-3",attrs:{variant:"primary","aria-label":e.$t("Submit")},on:{click:e.emitConversationalFormSubmit}},[r("i",{staticClass:"fas fa-paper-plane"}),e._v(" "),e.showMultiUploadButton?r("span",[e._v(e._s(e.$t("Send All")))]):r("span",[e._v(e._s(e.$t("Submit File/Photo")))])]):e._e()],1):r("uploader-list",{scopedSlots:e._u([{key:"default",fn:function({fileList:i}){return[e.uploading?r("ul",e._l(i,function(a){return r("li",{key:a.id},[r("uploader-file",{attrs:{file:a,list:!0}})],1)}),0):r("ul",e._l(e.files,function(a,n){return r("li",{key:n,attrs:{"data-cy":a.id}},[r("div",{},[r("div",{staticStyle:{display:"flex",background:"rgb(226 238 255)"}},[e.nativeFiles[a.id]?r("div",{staticClass:"overflow-hidden",staticStyle:{flex:"1"},attrs:{"data-cy":a.file_name.replace(/[^0-9a-zA-Z\-]/g,"-")}},[r("uploader-file",{attrs:{file:e.nativeFiles[a.id],list:!0}})],1):r("div",{staticClass:"text-truncate",staticStyle:{flex:"1"},attrs:{title:a.file_name}},[r("i",{staticClass:"fas fa-paperclip"}),e._v(" "+e._s(a.file_name)+" ")]),r("div",{staticClass:"pt-1"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"outline",title:e.$t("Delete")},on:{click:function(s){return e.removeFile(a)}}},[r("i",{staticClass:"fas fa-trash-alt"})])],1)])])])}),0)]}}],null,!1,3267103099)}),r("div",{staticClass:"invalid-feedback",class:{"d-block":e.error&&!e.value}},[e._v(" "+e._s(e.$t("Field is required"))+" ")])],1):e._e(),e.error?r("div",{staticClass:"invalid-feedback"},[e._v(e._s(e.error))]):e._e(),e.helper?r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.helper))]):e._e()],1)},XC=[],UC=ie(qC,WC,XC,!1,null,"49ef329f");const An=UC.exports,eie="",JC={props:{width:{default:64},height:{default:64}},data(){return{user:window.Processmaker.user}},mounted(){this.getInitials()},methods:{getInitials(){return this.user.firstname&&this.user.lastname?this.user.firstname.match(/./u)[0]+this.user.lastname.match(/./u)[0]:""},variant(){return this.user.avatar?"secondary":"info"},styleAvatar(){return"width: "+this.width+"px; height: "+this.height+"px; font-size:"+this.height/2.5+"px; padding:0;"}}};var GC=function(){var e=this,r=e._self._c;return r("span",[r("b-button",{staticClass:"avatar-button rounded-circle overflow-hidden p-0 m-0 d-inline-flex border-0",style:e.styleAvatar(),attrs:{variant:e.variant(),disabled:""}},[e.user.avatar?r("img",{class:e.image,attrs:{src:e.user.avatar,width:e.width,height:e.height,alt:e.user.fullname}}):r("span",{staticClass:"border-0 d-inline-flex align-items-center justify-content-center text-white text-uppercase text-nowrap font-weight-normal",style:e.styleAvatar()},[e.getInitials()?r("span",[e._v(e._s(e.getInitials()))]):r("span",[e._v("PM")])])])],1)},QC=[],YC=ie(JC,GC,QC,!1,null,"5418080e");const On=YC.exports;var wh={exports:{}};(function(t,e){(function(r,i){t.exports=i()})(Mt,function(){/*!
|
|
209
209
|
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
210
210
|
* http://github.com/janl/mustache.js
|
|
211
211
|
*/var r=Object.prototype.toString,i=Array.isArray||function(A){return r.call(A)==="[object Array]"};function a(k){return typeof k=="function"}function n(k){return i(k)?"array":typeof k}function s(k){return k.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(k,A){return k!=null&&typeof k=="object"&&A in k}function u(k,A){return k!=null&&typeof k!="object"&&k.hasOwnProperty&&k.hasOwnProperty(A)}var l=RegExp.prototype.test;function c(k,A){return l.call(k,A)}var d=/\S/;function f(k){return!c(d,k)}var b={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function w(k){return String(k).replace(/[&<>"'`=\/]/g,function(N){return b[N]})}var h=/\s*/,v=/\s+/,x=/\s*=/,S=/\s*\}/,y=/#|\^|\/|>|\{|&|=|!/;function p(k,A){if(!k)return[];var N=!1,H=[],F=[],U=[],V=!1,E=!1,I="",j=0;function L(){if(V&&!E)for(;U.length;)delete F[U.pop()];else U=[];V=!1,E=!1}var q,Q,Z;function _(le){if(typeof le=="string"&&(le=le.split(v,2)),!i(le)||le.length!==2)throw new Error("Invalid tags: "+le);q=new RegExp(s(le[0])+"\\s*"),Q=new RegExp("\\s*"+s(le[1])),Z=new RegExp("\\s*"+s("}"+le[1]))}_(A||T.tags);for(var B=new m(k),M,z,R,W,J,$;!B.eos();){if(M=B.pos,R=B.scanUntil(q),R)for(var te=0,re=R.length;te<re;++te)W=R.charAt(te),f(W)?(U.push(F.length),I+=W):(E=!0,N=!0,I+=" "),F.push(["text",W,M,M+1]),M+=1,W===`
|
|
@@ -356,7 +356,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
356
356
|
}`},"keyframe-block-list":{syntax:"<keyframe-block>+"},"keyframe-selector":{syntax:"from | to | <percentage>"},"leader()":{syntax:"leader( <leader-type> )"},"leader-type":{syntax:"dotted | solid | space | <string>"},"length-percentage":{syntax:"<length> | <percentage>"},"line-names":{syntax:"'[' <custom-ident>* ']'"},"line-name-list":{syntax:"[ <line-names> | <name-repeat> ]+"},"line-style":{syntax:"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset"},"line-width":{syntax:"<length> | thin | medium | thick"},"linear-color-hint":{syntax:"<length-percentage>"},"linear-color-stop":{syntax:"<color> <color-stop-length>?"},"linear-gradient()":{syntax:"linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"mask-layer":{syntax:"<mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode>"},"mask-position":{syntax:"[ <length-percentage> | left | center | right ] [ <length-percentage> | top | center | bottom ]?"},"mask-reference":{syntax:"none | <image> | <mask-source>"},"mask-source":{syntax:"<url>"},"masking-mode":{syntax:"alpha | luminance | match-source"},"matrix()":{syntax:"matrix( <number>#{6} )"},"matrix3d()":{syntax:"matrix3d( <number>#{16} )"},"max()":{syntax:"max( <calc-sum># )"},"media-and":{syntax:"<media-in-parens> [ and <media-in-parens> ]+"},"media-condition":{syntax:"<media-not> | <media-and> | <media-or> | <media-in-parens>"},"media-condition-without-or":{syntax:"<media-not> | <media-and> | <media-in-parens>"},"media-feature":{syntax:"( [ <mf-plain> | <mf-boolean> | <mf-range> ] )"},"media-in-parens":{syntax:"( <media-condition> ) | <media-feature> | <general-enclosed>"},"media-not":{syntax:"not <media-in-parens>"},"media-or":{syntax:"<media-in-parens> [ or <media-in-parens> ]+"},"media-query":{syntax:"<media-condition> | [ not | only ]? <media-type> [ and <media-condition-without-or> ]?"},"media-query-list":{syntax:"<media-query>#"},"media-type":{syntax:"<ident>"},"mf-boolean":{syntax:"<mf-name>"},"mf-name":{syntax:"<ident>"},"mf-plain":{syntax:"<mf-name> : <mf-value>"},"mf-range":{syntax:`<mf-name> [ '<' | '>' ]? '='? <mf-value>
|
|
357
357
|
| <mf-value> [ '<' | '>' ]? '='? <mf-name>
|
|
358
358
|
| <mf-value> '<' '='? <mf-name> '<' '='? <mf-value>
|
|
359
|
-
| <mf-value> '>' '='? <mf-name> '>' '='? <mf-value>`},"mf-value":{syntax:"<number> | <dimension> | <ident> | <ratio>"},"min()":{syntax:"min( <calc-sum># )"},"minmax()":{syntax:"minmax( [ <length> | <percentage> | min-content | max-content | auto ] , [ <length> | <percentage> | <flex> | min-content | max-content | auto ] )"},"named-color":{syntax:"transparent | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen"},"namespace-prefix":{syntax:"<ident>"},"ns-prefix":{syntax:"[ <ident-token> | '*' ]? '|'"},"number-percentage":{syntax:"<number> | <percentage>"},"numeric-figure-values":{syntax:"[ lining-nums | oldstyle-nums ]"},"numeric-fraction-values":{syntax:"[ diagonal-fractions | stacked-fractions ]"},"numeric-spacing-values":{syntax:"[ proportional-nums | tabular-nums ]"},nth:{syntax:"<an-plus-b> | even | odd"},"opacity()":{syntax:"opacity( [ <number-percentage> ] )"},"overflow-position":{syntax:"unsafe | safe"},"outline-radius":{syntax:"<length> | <percentage>"},"page-body":{syntax:"<declaration>? [ ; <page-body> ]? | <page-margin-box> <page-body>"},"page-margin-box":{syntax:"<page-margin-box-type> '{' <declaration-list> '}'"},"page-margin-box-type":{syntax:"@top-left-corner | @top-left | @top-center | @top-right | @top-right-corner | @bottom-left-corner | @bottom-left | @bottom-center | @bottom-right | @bottom-right-corner | @left-top | @left-middle | @left-bottom | @right-top | @right-middle | @right-bottom"},"page-selector-list":{syntax:"[ <page-selector># ]?"},"page-selector":{syntax:"<pseudo-page>+ | <ident> <pseudo-page>*"},"path()":{syntax:"path( [ <fill-rule>, ]? <string> )"},"paint()":{syntax:"paint( <ident>, <declaration-value>? )"},"perspective()":{syntax:"perspective( <length> )"},"polygon()":{syntax:"polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )"},position:{syntax:"[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"},"pseudo-class-selector":{syntax:"':' <ident-token> | ':' <function-token> <any-value> ')'"},"pseudo-element-selector":{syntax:"':' <pseudo-class-selector>"},"pseudo-page":{syntax:": [ left | right | first | blank ]"},quote:{syntax:"open-quote | close-quote | no-open-quote | no-close-quote"},"radial-gradient()":{syntax:"radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"relative-selector":{syntax:"<combinator>? <complex-selector>"},"relative-selector-list":{syntax:"<relative-selector>#"},"relative-size":{syntax:"larger | smaller"},"repeat-style":{syntax:"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}"},"repeating-linear-gradient()":{syntax:"repeating-linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"repeating-radial-gradient()":{syntax:"repeating-radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"rgb()":{syntax:"rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )"},"rgba()":{syntax:"rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )"},"rotate()":{syntax:"rotate( [ <angle> | <zero> ] )"},"rotate3d()":{syntax:"rotate3d( <number> , <number> , <number> , [ <angle> | <zero> ] )"},"rotateX()":{syntax:"rotateX( [ <angle> | <zero> ] )"},"rotateY()":{syntax:"rotateY( [ <angle> | <zero> ] )"},"rotateZ()":{syntax:"rotateZ( [ <angle> | <zero> ] )"},"saturate()":{syntax:"saturate( <number-percentage> )"},"scale()":{syntax:"scale( <number> , <number>? )"},"scale3d()":{syntax:"scale3d( <number> , <number> , <number> )"},"scaleX()":{syntax:"scaleX( <number> )"},"scaleY()":{syntax:"scaleY( <number> )"},"scaleZ()":{syntax:"scaleZ( <number> )"},"self-position":{syntax:"center | start | end | self-start | self-end | flex-start | flex-end"},"shape-radius":{syntax:"<length-percentage> | closest-side | farthest-side"},"skew()":{syntax:"skew( [ <angle> | <zero> ] , [ <angle> | <zero> ]? )"},"skewX()":{syntax:"skewX( [ <angle> | <zero> ] )"},"skewY()":{syntax:"skewY( [ <angle> | <zero> ] )"},"sepia()":{syntax:"sepia( <number-percentage> )"},shadow:{syntax:"inset? && <length>{2,4} && <color>?"},"shadow-t":{syntax:"[ <length>{2,3} && <color>? ]"},shape:{syntax:"rect(<top>, <right>, <bottom>, <left>)"},"shape-box":{syntax:"<box> | margin-box"},"side-or-corner":{syntax:"[ left | right ] || [ top | bottom ]"},"single-animation":{syntax:"<time> || <timing-function> || <time> || <single-animation-iteration-count> || <single-animation-direction> || <single-animation-fill-mode> || <single-animation-play-state> || [ none | <keyframes-name> ]"},"single-animation-direction":{syntax:"normal | reverse | alternate | alternate-reverse"},"single-animation-fill-mode":{syntax:"none | forwards | backwards | both"},"single-animation-iteration-count":{syntax:"infinite | <number>"},"single-animation-play-state":{syntax:"running | paused"},"single-transition":{syntax:"[ none | <single-transition-property> ] || <time> || <timing-function> || <time>"},"single-transition-property":{syntax:"all | <custom-ident>"},size:{syntax:"closest-side | farthest-side | closest-corner | farthest-corner | <length> | <length-percentage>{2}"},"step-position":{syntax:"jump-start | jump-end | jump-none | jump-both | start | end"},"step-timing-function":{syntax:"step-start | step-end | steps(<integer>[, <step-position>]?)"},"subclass-selector":{syntax:"<id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector>"},"supports-condition":{syntax:"not <supports-in-parens> | <supports-in-parens> [ and <supports-in-parens> ]* | <supports-in-parens> [ or <supports-in-parens> ]*"},"supports-in-parens":{syntax:"( <supports-condition> ) | <supports-feature> | <general-enclosed>"},"supports-feature":{syntax:"<supports-decl> | <supports-selector-fn>"},"supports-decl":{syntax:"( <declaration> )"},"supports-selector-fn":{syntax:"selector( <complex-selector> )"},symbol:{syntax:"<string> | <image> | <custom-ident>"},target:{syntax:"<target-counter()> | <target-counters()> | <target-text()>"},"target-counter()":{syntax:"target-counter( [ <string> | <url> ] , <custom-ident> , <counter-style>? )"},"target-counters()":{syntax:"target-counters( [ <string> | <url> ] , <custom-ident> , <string> , <counter-style>? )"},"target-text()":{syntax:"target-text( [ <string> | <url> ] , [ content | before | after | first-letter ]? )"},"time-percentage":{syntax:"<time> | <percentage>"},"timing-function":{syntax:"linear | <cubic-bezier-timing-function> | <step-timing-function>"},"track-breadth":{syntax:"<length-percentage> | <flex> | min-content | max-content | auto"},"track-list":{syntax:"[ <line-names>? [ <track-size> | <track-repeat> ] ]+ <line-names>?"},"track-repeat":{syntax:"repeat( [ <positive-integer> ] , [ <line-names>? <track-size> ]+ <line-names>? )"},"track-size":{syntax:"<track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( [ <length> | <percentage> ] )"},"transform-function":{syntax:"<matrix()> | <translate()> | <translateX()> | <translateY()> | <scale()> | <scaleX()> | <scaleY()> | <rotate()> | <skew()> | <skewX()> | <skewY()> | <matrix3d()> | <translate3d()> | <translateZ()> | <scale3d()> | <scaleZ()> | <rotate3d()> | <rotateX()> | <rotateY()> | <rotateZ()> | <perspective()>"},"transform-list":{syntax:"<transform-function>+"},"translate()":{syntax:"translate( <length-percentage> , <length-percentage>? )"},"translate3d()":{syntax:"translate3d( <length-percentage> , <length-percentage> , <length> )"},"translateX()":{syntax:"translateX( <length-percentage> )"},"translateY()":{syntax:"translateY( <length-percentage> )"},"translateZ()":{syntax:"translateZ( <length> )"},"type-or-unit":{syntax:"string | color | url | integer | number | length | angle | time | frequency | cap | ch | em | ex | ic | lh | rlh | rem | vb | vi | vw | vh | vmin | vmax | mm | Q | cm | in | pt | pc | px | deg | grad | rad | turn | ms | s | Hz | kHz | %"},"type-selector":{syntax:"<wq-name> | <ns-prefix>? '*'"},"var()":{syntax:"var( <custom-property-name> , <declaration-value>? )"},"viewport-length":{syntax:"auto | <length-percentage>"},"wq-name":{syntax:"<ns-prefix>? <ident-token>"}},ZW={atrules:{charset:{prelude:"<string>"},"font-face":{descriptors:{"unicode-range":{comment:"replaces <unicode-range>, an old production name",syntax:"<urange>#"}}}},properties:{"-moz-background-clip":{comment:"deprecated syntax in old Firefox, https://developer.mozilla.org/en/docs/Web/CSS/background-clip",syntax:"padding | border"},"-moz-border-radius-bottomleft":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius",syntax:"<'border-bottom-left-radius'>"},"-moz-border-radius-bottomright":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius",syntax:"<'border-bottom-right-radius'>"},"-moz-border-radius-topleft":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius",syntax:"<'border-top-left-radius'>"},"-moz-border-radius-topright":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius",syntax:"<'border-bottom-right-radius'>"},"-moz-control-character-visibility":{comment:"firefox specific keywords, https://bugzilla.mozilla.org/show_bug.cgi?id=947588",syntax:"visible | hidden"},"-moz-osx-font-smoothing":{comment:"misssed old syntax https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth",syntax:"auto | grayscale"},"-moz-user-select":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/user-select",syntax:"none | text | all | -moz-none"},"-ms-flex-align":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align",syntax:"start | end | center | baseline | stretch"},"-ms-flex-item-align":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align",syntax:"auto | start | end | center | baseline | stretch"},"-ms-flex-line-pack":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-line-pack",syntax:"start | end | center | justify | distribute | stretch"},"-ms-flex-negative":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-shrink'>"},"-ms-flex-pack":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-pack",syntax:"start | end | center | justify | distribute"},"-ms-flex-order":{comment:"misssed old syntax implemented in IE; https://msdn.microsoft.com/en-us/library/jj127303(v=vs.85).aspx",syntax:"<integer>"},"-ms-flex-positive":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-grow'>"},"-ms-flex-preferred-size":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-basis'>"},"-ms-interpolation-mode":{comment:"https://msdn.microsoft.com/en-us/library/ff521095(v=vs.85).aspx",syntax:"nearest-neighbor | bicubic"},"-ms-grid-column-align":{comment:"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466338.aspx",syntax:"start | end | center | stretch"},"-ms-grid-row-align":{comment:"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466348.aspx",syntax:"start | end | center | stretch"},"-ms-hyphenate-limit-last":{comment:"misssed old syntax implemented in IE; https://www.w3.org/TR/css-text-4/#hyphenate-line-limits",syntax:"none | always | column | page | spread"},"-webkit-appearance":{comment:"webkit specific keywords",references:["http://css-infos.net/property/-webkit-appearance"],syntax:"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button"},"-webkit-background-clip":{comment:"https://developer.mozilla.org/en/docs/Web/CSS/background-clip",syntax:"[ <box> | border | padding | content | text ]#"},"-webkit-column-break-after":{comment:"added, http://help.dottoro.com/lcrthhhv.php",syntax:"always | auto | avoid"},"-webkit-column-break-before":{comment:"added, http://help.dottoro.com/lcxquvkf.php",syntax:"always | auto | avoid"},"-webkit-column-break-inside":{comment:"added, http://help.dottoro.com/lclhnthl.php",syntax:"always | auto | avoid"},"-webkit-font-smoothing":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth",syntax:"auto | none | antialiased | subpixel-antialiased"},"-webkit-mask-box-image":{comment:"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image",syntax:"[ <url> | <gradient> | none ] [ <length-percentage>{4} <-webkit-mask-box-repeat>{2} ]?"},"-webkit-print-color-adjust":{comment:"missed",references:["https://developer.mozilla.org/en/docs/Web/CSS/-webkit-print-color-adjust"],syntax:"economy | exact"},"-webkit-text-security":{comment:"missed; http://help.dottoro.com/lcbkewgt.php",syntax:"none | circle | disc | square"},"-webkit-user-drag":{comment:"missed; http://help.dottoro.com/lcbixvwm.php",syntax:"none | element | auto"},"-webkit-user-select":{comment:"auto is supported by old webkit, https://developer.mozilla.org/en-US/docs/Web/CSS/user-select",syntax:"auto | none | text | all"},"alignment-baseline":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#AlignmentBaselineProperty"],syntax:"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical"},"baseline-shift":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#BaselineShiftProperty"],syntax:"baseline | sub | super | <svg-length>"},behavior:{comment:"added old IE property https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx",syntax:"<url>+"},"clip-rule":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/masking.html#ClipRuleProperty"],syntax:"nonzero | evenodd"},cue:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'cue-before'> <'cue-after'>?"},"cue-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<url> <decibel>? | none"},"cue-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<url> <decibel>? | none"},cursor:{comment:"added legacy keywords: hand, -webkit-grab. -webkit-grabbing, -webkit-zoom-in, -webkit-zoom-out, -moz-grab, -moz-grabbing, -moz-zoom-in, -moz-zoom-out",references:["https://www.sitepoint.com/css3-cursor-styles/"],syntax:"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing | hand | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ] ]"},display:{comment:"extended with -ms-flexbox",syntax:"| <-non-standard-display>"},position:{comment:"extended with -webkit-sticky",syntax:"| -webkit-sticky"},"dominant-baseline":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#DominantBaselineProperty"],syntax:"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge"},"image-rendering":{comment:"extended with <-non-standard-image-rendering>, added SVG keywords optimizeSpeed and optimizeQuality",references:["https://developer.mozilla.org/en/docs/Web/CSS/image-rendering","https://www.w3.org/TR/SVG/painting.html#ImageRenderingProperty"],syntax:"| optimizeSpeed | optimizeQuality | <-non-standard-image-rendering>"},fill:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"<paint>"},"fill-opacity":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"<number-zero-one>"},"fill-rule":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"nonzero | evenodd"},filter:{comment:"extend with IE legacy syntaxes",syntax:"| <-ms-filter-function-list>"},"glyph-orientation-horizontal":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#GlyphOrientationHorizontalProperty"],syntax:"<angle>"},"glyph-orientation-vertical":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#GlyphOrientationVerticalProperty"],syntax:"<angle>"},kerning:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#KerningProperty"],syntax:"auto | <svg-length>"},"letter-spacing":{comment:"fix syntax <length> -> <length-percentage>",references:["https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/letter-spacing"],syntax:"normal | <length-percentage>"},marker:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-end":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-mid":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-start":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"max-width":{comment:"fix auto -> none (https://github.com/mdn/data/pull/431); extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/max-width",syntax:"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},width:{comment:"per spec fit-content should be a function, however browsers are supporting it as a keyword (https://github.com/csstree/stylelint-validator/issues/29)",syntax:"| fit-content | -moz-fit-content | -webkit-fit-content"},"min-width":{comment:"extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width",syntax:"auto | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},overflow:{comment:"extend by vendor keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow",syntax:"| <-non-standard-overflow>"},pause:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'pause-before'> <'pause-after'>?"},"pause-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"pause-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},rest:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'rest-before'> <'rest-after'>?"},"rest-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"rest-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"shape-rendering":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#ShapeRenderingPropert"],syntax:"auto | optimizeSpeed | crispEdges | geometricPrecision"},src:{comment:"added @font-face's src property https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src",syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#"},speak:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"auto | none | normal"},"speak-as":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"normal | spell-out || digits || [ literal-punctuation | no-punctuation ]"},stroke:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<paint>"},"stroke-dasharray":{comment:"added SVG property; a list of comma and/or white space separated <length>s and <percentage>s",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"none | [ <svg-length>+ ]#"},"stroke-dashoffset":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<svg-length>"},"stroke-linecap":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"butt | round | square"},"stroke-linejoin":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"miter | round | bevel"},"stroke-miterlimit":{comment:"added SVG property (<miterlimit> = <number-one-or-greater>) ",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<number-one-or-greater>"},"stroke-opacity":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<number-zero-one>"},"stroke-width":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<svg-length>"},"text-anchor":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#TextAlignmentProperties"],syntax:"start | middle | end"},"unicode-bidi":{comment:"added prefixed keywords https://developer.mozilla.org/en-US/docs/Web/CSS/unicode-bidi",syntax:"| -moz-isolate | -moz-isolate-override | -moz-plaintext | -webkit-isolate | -webkit-isolate-override | -webkit-plaintext"},"unicode-range":{comment:"added missed property https://developer.mozilla.org/en-US/docs/Web/CSS/%40font-face/unicode-range",syntax:"<urange>#"},"voice-balance":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<number> | left | center | right | leftwards | rightwards"},"voice-duration":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"auto | <time>"},"voice-family":{comment:"<name> -> <family-name>, https://www.w3.org/TR/css3-speech/#property-index",syntax:"[ [ <family-name> | <generic-voice> ] , ]* [ <family-name> | <generic-voice> ] | preserve"},"voice-pitch":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-range":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-rate":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"[ normal | x-slow | slow | medium | fast | x-fast ] || <percentage>"},"voice-stress":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"normal | strong | moderate | none | reduced"},"voice-volume":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"silent | [ [ x-soft | soft | medium | loud | x-loud ] || <decibel> ]"},"writing-mode":{comment:"extend with SVG keywords",syntax:"| <svg-writing-mode>"}},syntaxes:{"-legacy-gradient":{comment:"added collection of legacy gradient syntaxes",syntax:"<-webkit-gradient()> | <-legacy-linear-gradient> | <-legacy-repeating-linear-gradient> | <-legacy-radial-gradient> | <-legacy-repeating-radial-gradient>"},"-legacy-linear-gradient":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"-moz-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-repeating-linear-gradient":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-linear-gradient-arguments":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"[ <angle> | <side-or-corner> ]? , <color-stop-list>"},"-legacy-radial-gradient":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"-moz-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-repeating-radial-gradient":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-radial-gradient-arguments":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"[ <position> , ]? [ [ [ <-legacy-radial-gradient-shape> || <-legacy-radial-gradient-size> ] | [ <length> | <percentage> ]{2} ] , ]? <color-stop-list>"},"-legacy-radial-gradient-size":{comment:"before a standard it contains 2 extra keywords (`contain` and `cover`) https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltsize",syntax:"closest-side | closest-corner | farthest-side | farthest-corner | contain | cover"},"-legacy-radial-gradient-shape":{comment:"define to double sure it doesn't extends in future https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltshape",syntax:"circle | ellipse"},"-non-standard-font":{comment:"non standard fonts",references:["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],syntax:"-apple-system-body | -apple-system-headline | -apple-system-subheadline | -apple-system-caption1 | -apple-system-caption2 | -apple-system-footnote | -apple-system-short-body | -apple-system-short-headline | -apple-system-short-subheadline | -apple-system-short-caption1 | -apple-system-short-footnote | -apple-system-tall-body"},"-non-standard-color":{comment:"non standard colors",references:["http://cssdot.ru/%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BD%D0%B8%D0%BA_CSS/color-i305.html","https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Mozilla_Color_Preference_Extensions"],syntax:"-moz-ButtonDefault | -moz-ButtonHoverFace | -moz-ButtonHoverText | -moz-CellHighlight | -moz-CellHighlightText | -moz-Combobox | -moz-ComboboxText | -moz-Dialog | -moz-DialogText | -moz-dragtargetzone | -moz-EvenTreeRow | -moz-Field | -moz-FieldText | -moz-html-CellHighlight | -moz-html-CellHighlightText | -moz-mac-accentdarkestshadow | -moz-mac-accentdarkshadow | -moz-mac-accentface | -moz-mac-accentlightesthighlight | -moz-mac-accentlightshadow | -moz-mac-accentregularhighlight | -moz-mac-accentregularshadow | -moz-mac-chrome-active | -moz-mac-chrome-inactive | -moz-mac-focusring | -moz-mac-menuselect | -moz-mac-menushadow | -moz-mac-menutextselect | -moz-MenuHover | -moz-MenuHoverText | -moz-MenuBarText | -moz-MenuBarHoverText | -moz-nativehyperlinktext | -moz-OddTreeRow | -moz-win-communicationstext | -moz-win-mediatext | -moz-activehyperlinktext | -moz-default-background-color | -moz-default-color | -moz-hyperlinktext | -moz-visitedhyperlinktext | -webkit-activelink | -webkit-focus-ring-color | -webkit-link | -webkit-text"},"-non-standard-image-rendering":{comment:"non-standard keywords http://phrogz.net/tmp/canvas_image_zoom.html",syntax:"optimize-contrast | -moz-crisp-edges | -o-crisp-edges | -webkit-optimize-contrast"},"-non-standard-overflow":{comment:"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow",syntax:"-moz-scrollbars-none | -moz-scrollbars-horizontal | -moz-scrollbars-vertical | -moz-hidden-unscrollable"},"-non-standard-width":{comment:"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width",syntax:"fill-available | min-intrinsic | intrinsic | -moz-available | -moz-fit-content | -moz-min-content | -moz-max-content | -webkit-min-content | -webkit-max-content"},"-webkit-gradient()":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/ - TODO: simplify when after match algorithm improvement ( [, point, radius | , point] -> [, radius]? , point )",syntax:"-webkit-gradient( <-webkit-gradient-type>, <-webkit-gradient-point> [, <-webkit-gradient-point> | , <-webkit-gradient-radius>, <-webkit-gradient-point> ] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )"},"-webkit-gradient-color-stop":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"from( <color> ) | color-stop( [ <number-zero-one> | <percentage> ] , <color> ) | to( <color> )"},"-webkit-gradient-point":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"[ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]"},"-webkit-gradient-radius":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"<length> | <percentage>"},"-webkit-gradient-type":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"linear | radial"},"-webkit-mask-box-repeat":{comment:"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image",syntax:"repeat | stretch | round"},"-webkit-mask-clip-style":{comment:"missed; there is no enough information about `-webkit-mask-clip` property, but looks like all those keywords are working",syntax:"border | border-box | padding | padding-box | content | content-box | text"},"-ms-filter-function-list":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<-ms-filter-function>+"},"-ms-filter-function":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<-ms-filter-function-progid> | <-ms-filter-function-legacy>"},"-ms-filter-function-progid":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"'progid:' [ <ident-token> '.' ]* [ <ident-token> | <function-token> <any-value>? ) ]"},"-ms-filter-function-legacy":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<ident-token> | <function-token> <any-value>? )"},"-ms-filter":{syntax:"<string>"},age:{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"child | young | old"},"attr-name":{syntax:"<wq-name>"},"attr-fallback":{syntax:"<any-value>"},"border-radius":{comment:"missed, https://drafts.csswg.org/css-backgrounds-3/#the-border-radius",syntax:"<length-percentage>{1,2}"},bottom:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"content-list":{comment:"missed -> https://drafts.csswg.org/css-content/#typedef-content-list (document-url, <target> and leader() is omitted util stabilization)",syntax:"[ <string> | contents | <image> | <quote> | <target> | <leader()> | <attr()> | counter( <ident>, <'list-style-type'>? ) ]+"},"element()":{comment:"https://drafts.csswg.org/css-gcpm/#element-syntax & https://drafts.csswg.org/css-images-4/#element-notation",syntax:"element( <custom-ident> , [ first | start | last | first-except ]? ) | element( <id-selector> )"},"generic-voice":{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"[ <age>? <gender> <integer>? ]"},gender:{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"male | female | neutral"},"generic-family":{comment:"added -apple-system",references:["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],syntax:"| -apple-system"},gradient:{comment:"added legacy syntaxes support",syntax:"| <-legacy-gradient>"},left:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"mask-image":{comment:"missed; https://drafts.fxtf.org/css-masking-1/#the-mask-image",syntax:"<mask-reference>#"},"name-repeat":{comment:"missed, and looks like obsolete, keep it as is since other property syntaxes should be changed too; https://www.w3.org/TR/2015/WD-css-grid-1-20150917/#typedef-name-repeat",syntax:"repeat( [ <positive-integer> | auto-fill ], <line-names>+)"},"named-color":{comment:"added non standard color names",syntax:"| <-non-standard-color>"},paint:{comment:"used by SVG https://www.w3.org/TR/SVG/painting.html#SpecifyingPaint",syntax:"none | <color> | <url> [ none | <color> ]? | context-fill | context-stroke"},"page-size":{comment:"https://www.w3.org/TR/css-page-3/#typedef-page-size-page-size",syntax:"A5 | A4 | A3 | B5 | B4 | JIS-B5 | JIS-B4 | letter | legal | ledger"},ratio:{comment:"missed, https://drafts.csswg.org/mediaqueries-4/#typedef-ratio",syntax:"<integer> / <integer>"},right:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},shape:{comment:"missed spaces in function body and add backwards compatible syntax",syntax:"rect( <top>, <right>, <bottom>, <left> ) | rect( <top> <right> <bottom> <left> )"},"svg-length":{comment:"All coordinates and lengths in SVG can be specified with or without a unit identifier",references:["https://www.w3.org/TR/SVG11/coords.html#Units"],syntax:"<percentage> | <length> | <number>"},"svg-writing-mode":{comment:"SVG specific keywords (deprecated for CSS)",references:["https://developer.mozilla.org/en/docs/Web/CSS/writing-mode","https://www.w3.org/TR/SVG/text.html#WritingModeProperty"],syntax:"lr-tb | rl-tb | tb-rl | lr | rl | tb"},top:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"track-group":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"'(' [ <string>* <track-minmax> <string>* ]+ ')' [ '[' <positive-integer> ']' ]? | <track-minmax>"},"track-list-v0":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"[ <string>* <track-group> <string>* ]+ | none"},"track-minmax":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"minmax( <track-breadth> , <track-breadth> ) | auto | <track-breadth> | fit-content"},x:{comment:"missed; not sure we should add it, but no others except `cursor` is using it so it's ok for now; https://drafts.csswg.org/css-ui-3/#cursor",syntax:"<number>"},y:{comment:"missed; not sure we should add it, but no others except `cursor` is using so it's ok for now; https://drafts.csswg.org/css-ui-3/#cursor",syntax:"<number>"},declaration:{comment:"missed, restored by https://drafts.csswg.org/css-syntax",syntax:"<ident-token> : <declaration-value>? [ '!' important ]?"},"declaration-list":{comment:"missed, restored by https://drafts.csswg.org/css-syntax",syntax:"[ <declaration>? ';' ]* <declaration>?"},url:{comment:"https://drafts.csswg.org/css-values-4/#urls",syntax:"url( <string> <url-modifier>* ) | <url-token>"},"url-modifier":{comment:"https://drafts.csswg.org/css-values-4/#typedef-url-modifier",syntax:"<ident> | <function-token> <any-value> )"},"number-zero-one":{syntax:"<number [0,1]>"},"number-one-or-greater":{syntax:"<number [1,∞]>"},"positive-integer":{syntax:"<integer [0,∞]>"},"-non-standard-display":{syntax:"-ms-inline-flexbox | -ms-grid | -ms-inline-grid | -webkit-flex | -webkit-inline-flex | -webkit-box | -webkit-inline-box | -moz-inline-stack | -moz-box | -moz-inline-box"}}},KW=GW,_W=QW,$W=YW,rp=ZW,ew=/^\s*\|\s*/;function eX(t){const e=Object.create(null);for(const r in t){const i=t[r];let a=null;if(i.descriptors){a=Object.create(null);for(const n in i.descriptors)a[n]=i.descriptors[n].syntax}e[r.substr(1)]={prelude:i.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:a}}return e}function ip(t,e){const r={};for(const i in t)r[i]=t[i].syntax||t[i];for(const i in e)i in t?e[i].syntax?r[i]=ew.test(e[i].syntax)?r[i]+" "+e[i].syntax.trim():e[i].syntax:delete r[i]:e[i].syntax&&(r[i]=e[i].syntax.replace(ew,""));return r}function tw(t){const e={};for(const r in t)e[r]=t[r].syntax;return e}function tX(t,e){const r={};for(const i in t){const a=e[i]&&e[i].descriptors||null;r[i]={prelude:i in e&&"prelude"in e[i]?e[i].prelude:t[i].prelude||null,descriptors:t[i].descriptors?ip(t[i].descriptors,a||{}):a&&tw(a)}}for(const i in e)hasOwnProperty.call(t,i)||(r[i]={prelude:e[i].prelude||null,descriptors:e[i].descriptors&&tw(e[i].descriptors)});return r}var rX={types:ip($W,rp.syntaxes),atrules:tX(eX(KW),rp.atrules),properties:ip(_W,rp.properties)},rw=de.cmpChar,iw=de.isDigit,Ms=de.TYPE,aw=Ms.WhiteSpace,nw=Ms.Comment,ap=Ms.Ident,ai=Ms.Number,iX=Ms.Dimension,Lr=43,Xt=45,xu=110,ra=!0,aX=!1;function wu(t,e){var r=this.scanner.tokenStart+t,i=this.scanner.source.charCodeAt(r);for((i===Lr||i===Xt)&&(e&&this.error("Number sign is not allowed"),r++);r<this.scanner.tokenEnd;r++)iw(this.scanner.source.charCodeAt(r))||this.error("Integer is expected",r)}function $a(t){return wu.call(this,0,t)}function Si(t,e){if(!rw(this.scanner.source,this.scanner.tokenStart+t,e)){var r="";switch(e){case xu:r="N is expected";break;case Xt:r="HyphenMinus is expected";break}this.error(r,this.scanner.tokenStart+t)}}function np(){for(var t=0,e=0,r=this.scanner.tokenType;r===aw||r===nw;)r=this.scanner.lookupType(++t);if(r!==ai)if(this.scanner.isDelim(Lr,t)||this.scanner.isDelim(Xt,t)){e=this.scanner.isDelim(Lr,t)?Lr:Xt;do r=this.scanner.lookupType(++t);while(r===aw||r===nw);r!==ai&&(this.scanner.skip(t),$a.call(this,ra))}else return null;return t>0&&this.scanner.skip(t),e===0&&(r=this.scanner.source.charCodeAt(this.scanner.tokenStart),r!==Lr&&r!==Xt&&this.error("Number sign is expected")),$a.call(this,e!==0),e===Xt?"-"+this.consume(ai):this.consume(ai)}var nX={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var t=this.scanner.tokenStart,e=null,r=null;if(this.scanner.tokenType===ai)$a.call(this,aX),r=this.consume(ai);else if(this.scanner.tokenType===ap&&rw(this.scanner.source,this.scanner.tokenStart,Xt))switch(e="-1",Si.call(this,1,xu),this.scanner.getTokenLength()){case 2:this.scanner.next(),r=np.call(this);break;case 3:Si.call(this,2,Xt),this.scanner.next(),this.scanner.skipSC(),$a.call(this,ra),r="-"+this.consume(ai);break;default:Si.call(this,2,Xt),wu.call(this,3,ra),this.scanner.next(),r=this.scanner.substrToCursor(t+2)}else if(this.scanner.tokenType===ap||this.scanner.isDelim(Lr)&&this.scanner.lookupType(1)===ap){var i=0;switch(e="1",this.scanner.isDelim(Lr)&&(i=1,this.scanner.next()),Si.call(this,0,xu),this.scanner.getTokenLength()){case 1:this.scanner.next(),r=np.call(this);break;case 2:Si.call(this,1,Xt),this.scanner.next(),this.scanner.skipSC(),$a.call(this,ra),r="-"+this.consume(ai);break;default:Si.call(this,1,Xt),wu.call(this,2,ra),this.scanner.next(),r=this.scanner.substrToCursor(t+i+1)}}else if(this.scanner.tokenType===iX){for(var a=this.scanner.source.charCodeAt(this.scanner.tokenStart),i=a===Lr||a===Xt,n=this.scanner.tokenStart+i;n<this.scanner.tokenEnd&&iw(this.scanner.source.charCodeAt(n));n++);n===this.scanner.tokenStart+i&&this.error("Integer is expected",this.scanner.tokenStart+i),Si.call(this,n-this.scanner.tokenStart,xu),e=this.scanner.source.substring(t,n),n+1===this.scanner.tokenEnd?(this.scanner.next(),r=np.call(this)):(Si.call(this,n-this.scanner.tokenStart+1,Xt),n+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),$a.call(this,ra),r="-"+this.consume(ai)):(wu.call(this,n-this.scanner.tokenStart+2,ra),this.scanner.next(),r=this.scanner.substrToCursor(n+1)))}else this.error();return e!==null&&e.charCodeAt(0)===Lr&&(e=e.substr(1)),r!==null&&r.charCodeAt(0)===Lr&&(r=r.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.scanner.tokenStart),a:e,b:r}},generate:function(t){var e=t.a!==null&&t.a!==void 0,r=t.b!==null&&t.b!==void 0;e?(this.chunk(t.a==="+1"?"+n":t.a==="1"?"n":t.a==="-1"?"-n":t.a+"n"),r&&(r=String(t.b),r.charAt(0)==="-"||r.charAt(0)==="+"?(this.chunk(r.charAt(0)),this.chunk(r.substr(1))):(this.chunk("+"),this.chunk(r)))):this.chunk(String(t.b))}},sX=de,Su=sX.TYPE,oX=Su.WhiteSpace,sp=Su.Semicolon,sw=Su.LeftCurlyBracket,lX=Su.Delim,uX=33;function cX(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===oX?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function ow(){return 0}function dX(t){return t===sw?1:0}function fX(t){return t===sw||t===sp?1:0}function pX(t,e,r){return t===lX&&e.charCodeAt(r)===uX||t===sp?1:0}function hX(t){return t===sp?2:0}var ia={name:"Raw",structure:{value:String},parse:function(t,e,r){var i=this.scanner.getTokenStart(t),a;return this.scanner.skip(this.scanner.getRawLength(t,e||ow)),r&&this.scanner.tokenStart>i?a=cX.call(this):a=this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(i,a),value:this.scanner.source.substring(i,a)}},generate:function(t){this.chunk(t.value)},mode:{default:ow,leftCurlyBracket:dX,leftCurlyBracketOrSemicolon:fX,exclamationMarkOrSemicolon:pX,semicolonIncluded:hX}},Pu=de.TYPE,mX=ia.mode,lw=Pu.AtKeyword,uw=Pu.Semicolon,op=Pu.LeftCurlyBracket,vX=Pu.RightCurlyBracket;function cw(t){return this.Raw(t,mX.leftCurlyBracketOrSemicolon,!0)}function gX(){for(var t=1,e;e=this.scanner.lookupType(t);t++){if(e===vX)return!0;if(e===op||e===lw)return!1}return!1}var bX={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var t=this.scanner.tokenStart,e,r,i=null,a=null;switch(this.eat(lw),e=this.scanner.substrToCursor(t+1),r=e.toLowerCase(),this.scanner.skipSC(),this.scanner.eof===!1&&this.scanner.tokenType!==op&&this.scanner.tokenType!==uw&&(this.parseAtrulePrelude?(i=this.parseWithFallback(this.AtrulePrelude.bind(this,e),cw),i.type==="AtrulePrelude"&&i.children.head===null&&(i=null)):i=cw.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case uw:this.scanner.next();break;case op:this.atrule.hasOwnProperty(r)&&typeof this.atrule[r].block=="function"?a=this.atrule[r].block.call(this):a=this.Block(gX.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.scanner.tokenStart),name:e,prelude:i,block:a}},generate:function(t){this.chunk("@"),this.chunk(t.name),t.prelude!==null&&(this.chunk(" "),this.node(t.prelude)),t.block?this.node(t.block):this.chunk(";")},walkContext:"atrule"},dw=de.TYPE,yX=dw.Semicolon,xX=dw.LeftCurlyBracket,wX={name:"AtrulePrelude",structure:{children:[[]]},parse:function(t){var e=null;return t!==null&&(t=t.toLowerCase()),this.scanner.skipSC(),this.atrule.hasOwnProperty(t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.scanner.skipSC(),this.scanner.eof!==!0&&this.scanner.tokenType!==xX&&this.scanner.tokenType!==yX&&this.error("Semicolon or block is expected"),e===null&&(e=this.createList()),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t)},walkContext:"atrulePrelude"},Ds=de.TYPE,As=Ds.Ident,SX=Ds.String,PX=Ds.Colon,CX=Ds.LeftSquareBracket,fw=Ds.RightSquareBracket,TX=36,pw=42,Cu=61,kX=94,lp=124,MX=126;function DX(){this.scanner.eof&&this.error("Unexpected end of input");var t=this.scanner.tokenStart,e=!1,r=!0;return this.scanner.isDelim(pw)?(e=!0,r=!1,this.scanner.next()):this.scanner.isDelim(lp)||this.eat(As),this.scanner.isDelim(lp)?this.scanner.source.charCodeAt(this.scanner.tokenStart+1)!==Cu?(this.scanner.next(),this.eat(As)):e&&this.error("Identifier is expected",this.scanner.tokenEnd):e&&this.error("Vertical line is expected"),r&&this.scanner.tokenType===PX&&(this.scanner.next(),this.eat(As)),{type:"Identifier",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}}function AX(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(t);return e!==Cu&&e!==MX&&e!==kX&&e!==TX&&e!==pw&&e!==lp&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),e!==Cu&&(this.scanner.isDelim(Cu)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(t)}var OX={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var t=this.scanner.tokenStart,e,r=null,i=null,a=null;return this.eat(CX),this.scanner.skipSC(),e=DX.call(this),this.scanner.skipSC(),this.scanner.tokenType!==fw&&(this.scanner.tokenType!==As&&(r=AX.call(this),this.scanner.skipSC(),i=this.scanner.tokenType===SX?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===As&&(a=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(fw),{type:"AttributeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:e,matcher:r,value:i,flags:a}},generate:function(t){var e=" ";this.chunk("["),this.node(t.name),t.matcher!==null&&(this.chunk(t.matcher),t.value!==null&&(this.node(t.value),t.value.type==="String"&&(e=""))),t.flags!==null&&(this.chunk(e),this.chunk(t.flags)),this.chunk("]")}},en=de.TYPE,zX=ia.mode,EX=en.WhiteSpace,jX=en.Comment,hw=en.Semicolon,IX=en.AtKeyword,NX=en.LeftCurlyBracket,mw=en.RightCurlyBracket;function vw(t){return this.Raw(t,null,!0)}function LX(){return this.parseWithFallback(this.Rule,vw)}function gw(t){return this.Raw(t,zX.semicolonIncluded,!0)}function FX(){if(this.scanner.tokenType===hw)return gw.call(this,this.scanner.tokenIndex);var t=this.parseWithFallback(this.Declaration,gw);return this.scanner.tokenType===hw&&this.scanner.next(),t}var RX={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(t){var e=t?FX:LX,r=this.scanner.tokenStart,i=this.createList();this.eat(NX);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case mw:break e;case EX:case jX:this.scanner.next();break;case IX:i.push(this.parseWithFallback(this.Atrule,vw));break;default:i.push(e.call(this))}return this.scanner.eof||this.eat(mw),{type:"Block",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("{"),this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")}),this.chunk("}")},walkContext:"block"},bw=de.TYPE,BX=bw.LeftSquareBracket,HX=bw.RightSquareBracket,VX={name:"Brackets",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(BX),i=t.call(this,e),this.scanner.eof||this.eat(HX),{type:"Brackets",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("["),this.children(t),this.chunk("]")}},qX=de.TYPE.CDC,WX={name:"CDC",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(qX),{type:"CDC",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("-->")}},XX=de.TYPE.CDO,UX={name:"CDO",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(XX),{type:"CDO",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("<!--")}},JX=de.TYPE,GX=JX.Ident,QX=46,YX={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.isDelim(QX)||this.error("Full stop is expected"),this.scanner.next(),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(GX)}},generate:function(t){this.chunk("."),this.chunk(t.name)}},ZX=de.TYPE,KX=ZX.Ident,_X=43,yw=47,$X=62,eU=126,tU={name:"Combinator",structure:{name:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case $X:case _X:case eU:this.scanner.next();break;case yw:this.scanner.next(),(this.scanner.tokenType!==KX||this.scanner.lookupValue(0,"deep")===!1)&&this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(yw)||this.error("Solidus is expected"),this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},rU=de.TYPE,iU=rU.Comment,aU=42,nU=47,sU={name:"Comment",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenEnd;return this.eat(iU),e-t+2>=2&&this.scanner.source.charCodeAt(e-2)===aU&&this.scanner.source.charCodeAt(e-1)===nU&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t+2,e)}},generate:function(t){this.chunk("/*"),this.chunk(t.value),this.chunk("*/")}},oU=mf.isCustomProperty,tn=de.TYPE,xw=ia.mode,ww=tn.Ident,Sw=tn.Hash,lU=tn.Colon,Pw=tn.Semicolon,Cw=tn.Delim,uU=tn.WhiteSpace,Tw=33,cU=35,dU=36,fU=38,pU=42,hU=43,kw=47;function mU(t){return this.Raw(t,xw.exclamationMarkOrSemicolon,!0)}function vU(t){return this.Raw(t,xw.exclamationMarkOrSemicolon,!1)}function gU(){var t=this.scanner.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==Pw&&this.scanner.isDelim(Tw)===!1&&this.scanner.isBalanceEdge(t)===!1&&this.error(),e}var bU={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenIndex,r=yU.call(this),i=oU(r),a=i?this.parseCustomProperty:this.parseValue,n=i?vU:mU,s=!1,o;this.scanner.skipSC(),this.eat(lU);const u=this.scanner.tokenIndex;if(i||this.scanner.skipSC(),a?o=this.parseWithFallback(gU,n):o=n.call(this,this.scanner.tokenIndex),i&&o.type==="Value"&&o.children.isEmpty()){for(let l=u-this.scanner.tokenIndex;l<=0;l++)if(this.scanner.lookupType(l)===uU){o.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.scanner.isDelim(Tw)&&(s=xU.call(this),this.scanner.skipSC()),this.scanner.eof===!1&&this.scanner.tokenType!==Pw&&this.scanner.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.scanner.tokenStart),important:s,property:r,value:o}},generate:function(t){this.chunk(t.property),this.chunk(":"),this.node(t.value),t.important&&this.chunk(t.important===!0?"!important":"!"+t.important)},walkContext:"declaration"};function yU(){var t=this.scanner.tokenStart;if(this.scanner.tokenType===Cw)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case pU:case dU:case hU:case cU:case fU:this.scanner.next();break;case kw:this.scanner.next(),this.scanner.isDelim(kw)&&this.scanner.next();break}return this.scanner.tokenType===Sw?this.eat(Sw):this.eat(ww),this.scanner.substrToCursor(t)}function xU(){this.eat(Cw),this.scanner.skipSC();var t=this.consume(ww);return t==="important"?!0:t}var up=de.TYPE,wU=ia.mode,SU=up.WhiteSpace,PU=up.Comment,CU=up.Semicolon;function TU(t){return this.Raw(t,wU.semicolonIncluded,!0)}var kU={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case SU:case PU:case CU:this.scanner.next();break;default:t.push(this.parseWithFallback(this.Declaration,TU))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")})}},MU=ds.consumeNumber,DU=de.TYPE,AU=DU.Dimension,OU={name:"Dimension",structure:{value:String,unit:String},parse:function(){var t=this.scanner.tokenStart,e=MU(this.scanner.source,t);return this.eat(AU),{type:"Dimension",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t,e),unit:this.scanner.source.substring(e,this.scanner.tokenStart)}},generate:function(t){this.chunk(t.value),this.chunk(t.unit)}},zU=de.TYPE,EU=zU.RightParenthesis,jU={name:"Function",structure:{name:String,children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=this.consumeFunctionName(),a=i.toLowerCase(),n;return n=e.hasOwnProperty(a)?e[a].call(this,e):t.call(this,e),this.scanner.eof||this.eat(EU),{type:"Function",loc:this.getLocation(r,this.scanner.tokenStart),name:i,children:n}},generate:function(t){this.chunk(t.name),this.chunk("("),this.children(t),this.chunk(")")},walkContext:"function"},IU=de.TYPE,NU=IU.Hash,LU={name:"Hash",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(NU),{type:"Hash",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.value)}},FU=de.TYPE,RU=FU.Ident,BU={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(RU)}},generate:function(t){this.chunk(t.name)}},HU=de.TYPE,VU=HU.Hash,qU={name:"IdSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(VU),{type:"IdSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.name)}},aa=de.TYPE,Mw=aa.Ident,WU=aa.Number,XU=aa.Dimension,UU=aa.LeftParenthesis,Dw=aa.RightParenthesis,JU=aa.Colon,GU=aa.Delim,QU={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var t=this.scanner.tokenStart,e,r=null;if(this.eat(UU),this.scanner.skipSC(),e=this.consume(Mw),this.scanner.skipSC(),this.scanner.tokenType!==Dw){switch(this.eat(JU),this.scanner.skipSC(),this.scanner.tokenType){case WU:this.lookupNonWSType(1)===GU?r=this.Ratio():r=this.Number();break;case XU:r=this.Dimension();break;case Mw:r=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(Dw),{type:"MediaFeature",loc:this.getLocation(t,this.scanner.tokenStart),name:e,value:r}},generate:function(t){this.chunk("("),this.chunk(t.name),t.value!==null&&(this.chunk(":"),this.node(t.value)),this.chunk(")")}},Tu=de.TYPE,YU=Tu.WhiteSpace,ZU=Tu.Comment,KU=Tu.Ident,_U=Tu.LeftParenthesis,$U={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var t=this.createList(),e=null,r=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case ZU:this.scanner.next();continue;case YU:r=this.WhiteSpace();continue;case KU:e=this.Identifier();break;case _U:e=this.MediaFeature();break;default:break e}r!==null&&(t.push(r),r=null),t.push(e)}return e===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t)}},eJ=de.TYPE.Comma,tJ={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(t){var e=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(e.push(this.MediaQuery(t)),this.scanner.tokenType===eJ);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t,function(){this.chunk(",")})}},rJ={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(t){this.scanner.skipSC();var e=this.scanner.tokenStart,r=e,i=null,a;return this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?a=this.Identifier():a=this.AnPlusB(),this.scanner.skipSC(),t&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),i=this.SelectorList(),this.needPositions&&(r=this.getLastListNode(i.children).loc.end.offset)):this.needPositions&&(r=a.loc.end.offset),{type:"Nth",loc:this.getLocation(e,r),nth:a,selector:i}},generate:function(t){this.node(t.nth),t.selector!==null&&(this.chunk(" of "),this.node(t.selector))}},iJ=de.TYPE.Number,aJ={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(iJ)}},generate:function(t){this.chunk(t.value)}},nJ={name:"Operator",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},Aw=de.TYPE,sJ=Aw.LeftParenthesis,oJ=Aw.RightParenthesis,lJ={name:"Parentheses",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(sJ),i=t.call(this,e),this.scanner.eof||this.eat(oJ),{type:"Parentheses",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("("),this.children(t),this.chunk(")")}},uJ=ds.consumeNumber,cJ=de.TYPE,dJ=cJ.Percentage,fJ={name:"Percentage",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=uJ(this.scanner.source,t);return this.eat(dJ),{type:"Percentage",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t,e)}},generate:function(t){this.chunk(t.value),this.chunk("%")}},ku=de.TYPE,pJ=ku.Ident,hJ=ku.Function,mJ=ku.Colon,vJ=ku.RightParenthesis,gJ={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(mJ),this.scanner.tokenType===hJ?(r=this.consumeFunctionName(),i=r.toLowerCase(),this.pseudo.hasOwnProperty(i)?(this.scanner.skipSC(),e=this.pseudo[i].call(this),this.scanner.skipSC()):(e=this.createList(),e.push(this.Raw(this.scanner.tokenIndex,null,!1))),this.eat(vJ)):r=this.consume(pJ),{type:"PseudoClassSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:r,children:e}},generate:function(t){this.chunk(":"),this.chunk(t.name),t.children!==null&&(this.chunk("("),this.children(t),this.chunk(")"))},walkContext:"function"},Mu=de.TYPE,bJ=Mu.Ident,yJ=Mu.Function,Ow=Mu.Colon,xJ=Mu.RightParenthesis,wJ={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(Ow),this.eat(Ow),this.scanner.tokenType===yJ?(r=this.consumeFunctionName(),i=r.toLowerCase(),this.pseudo.hasOwnProperty(i)?(this.scanner.skipSC(),e=this.pseudo[i].call(this),this.scanner.skipSC()):(e=this.createList(),e.push(this.Raw(this.scanner.tokenIndex,null,!1))),this.eat(xJ)):r=this.consume(bJ),{type:"PseudoElementSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:r,children:e}},generate:function(t){this.chunk("::"),this.chunk(t.name),t.children!==null&&(this.chunk("("),this.children(t),this.chunk(")"))},walkContext:"function"},SJ=de.isDigit,zw=de.TYPE,PJ=zw.Number,CJ=zw.Delim,TJ=47,kJ=46;function Ew(){this.scanner.skipWS();for(var t=this.consume(PJ),e=0;e<t.length;e++){var r=t.charCodeAt(e);!SJ(r)&&r!==kJ&&this.error("Unsigned number is expected",this.scanner.tokenStart-t.length+e)}return Number(t)===0&&this.error("Zero number is not allowed",this.scanner.tokenStart-t.length),t}var MJ={name:"Ratio",structure:{left:String,right:String},parse:function(){var t=this.scanner.tokenStart,e=Ew.call(this),r;return this.scanner.skipWS(),this.scanner.isDelim(TJ)||this.error("Solidus is expected"),this.eat(CJ),r=Ew.call(this),{type:"Ratio",loc:this.getLocation(t,this.scanner.tokenStart),left:e,right:r}},generate:function(t){this.chunk(t.left),this.chunk("/"),this.chunk(t.right)}},DJ=de.TYPE,AJ=ia.mode,OJ=DJ.LeftCurlyBracket;function jw(t){return this.Raw(t,AJ.leftCurlyBracket,!0)}function zJ(){var t=this.SelectorList();return t.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==OJ&&this.error(),t}var EJ={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var t=this.scanner.tokenIndex,e=this.scanner.tokenStart,r,i;return this.parseRulePrelude?r=this.parseWithFallback(zJ,jw):r=jw.call(this,t),i=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.scanner.tokenStart),prelude:r,block:i}},generate:function(t){this.node(t.prelude),this.node(t.block)},walkContext:"rule"},jJ={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t)}},IJ=de.TYPE,NJ=IJ.Comma,LJ={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;){if(t.push(this.Selector()),this.scanner.tokenType===NJ){this.scanner.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(){this.chunk(",")})},walkContext:"selector"},FJ=de.TYPE.String,RJ={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(FJ)}},generate:function(t){this.chunk(t.value)}},Os=de.TYPE,BJ=Os.WhiteSpace,HJ=Os.Comment,VJ=Os.AtKeyword,qJ=Os.CDO,WJ=Os.CDC,XJ=33;function Iw(t){return this.Raw(t,null,!1)}var UJ={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var t=this.scanner.tokenStart,e=this.createList(),r;!this.scanner.eof;){switch(this.scanner.tokenType){case BJ:this.scanner.next();continue;case HJ:if(this.scanner.source.charCodeAt(this.scanner.tokenStart+2)!==XJ){this.scanner.next();continue}r=this.Comment();break;case qJ:r=this.CDO();break;case WJ:r=this.CDC();break;case VJ:r=this.parseWithFallback(this.Atrule,Iw);break;default:r=this.parseWithFallback(this.Rule,Iw)}e.push(r)}return{type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)},walkContext:"stylesheet"},JJ=de.TYPE,GJ=JJ.Ident,QJ=42,Nw=124;function cp(){this.scanner.tokenType!==GJ&&this.scanner.isDelim(QJ)===!1&&this.error("Identifier or asterisk is expected"),this.scanner.next()}var YJ={name:"TypeSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.isDelim(Nw)?(this.scanner.next(),cp.call(this)):(cp.call(this),this.scanner.isDelim(Nw)&&(this.scanner.next(),cp.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},ZJ=de.isHexDigit,Lw=de.cmpChar,dp=de.TYPE,KJ=de.NAME,_J=dp.Ident,Fw=dp.Number,Rw=dp.Dimension,Du=43,Bw=45,fp=63,$J=117;function zs(t,e){for(var r=this.scanner.tokenStart+t,i=0;r<this.scanner.tokenEnd;r++){var a=this.scanner.source.charCodeAt(r);if(a===Bw&&e&&i!==0)return zs.call(this,t+i+1,!1)===0&&this.error(),-1;ZJ(a)||this.error(e&&i!==0?"HyphenMinus"+(i<6?" or hex digit":"")+" is expected":i<6?"Hex digit is expected":"Unexpected input",r),++i>6&&this.error("Too many hex digits",r)}return this.scanner.next(),i}function Au(t){for(var e=0;this.scanner.isDelim(fp);)++e>t&&this.error("Too many question marks"),this.scanner.next()}function pp(t){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==t&&this.error(KJ[t]+" is expected")}function eG(){var t=0;if(this.scanner.isDelim(Du)){if(this.scanner.next(),this.scanner.tokenType===_J){t=zs.call(this,0,!0),t>0&&Au.call(this,6-t);return}if(this.scanner.isDelim(fp)){this.scanner.next(),Au.call(this,5);return}this.error("Hex digit or question mark is expected");return}if(this.scanner.tokenType===Fw){if(pp.call(this,Du),t=zs.call(this,1,!0),this.scanner.isDelim(fp)){Au.call(this,6-t);return}if(this.scanner.tokenType===Rw||this.scanner.tokenType===Fw){pp.call(this,Bw),zs.call(this,1,!1);return}return}if(this.scanner.tokenType===Rw){pp.call(this,Du),t=zs.call(this,1,!0),t>0&&Au.call(this,6-t);return}this.error()}var tG={name:"UnicodeRange",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return Lw(this.scanner.source,t,$J)||this.error("U is expected"),Lw(this.scanner.source,t+1,Du)||this.error("Plus sign is expected"),this.scanner.next(),eG.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},Hw=de.isWhiteSpace,rG=de.cmpStr,hp=de.TYPE,Vw=hp.Function,qw=hp.Url,iG=hp.RightParenthesis,aG={name:"Url",structure:{value:["String","Raw"]},parse:function(){var t=this.scanner.tokenStart,e;switch(this.scanner.tokenType){case qw:for(var r=t+4,i=this.scanner.tokenEnd-1;r<i&&Hw(this.scanner.source.charCodeAt(r));)r++;for(;r<i&&Hw(this.scanner.source.charCodeAt(i-1));)i--;e={type:"Raw",loc:this.getLocation(r,i),value:this.scanner.source.substring(r,i)},this.eat(qw);break;case Vw:rG(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Vw),this.scanner.skipSC(),e=this.String(),this.scanner.skipSC(),this.eat(iG);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.scanner.tokenStart),value:e}},generate:function(t){this.chunk("url"),this.chunk("("),this.node(t.value),this.chunk(")")}},nG={name:"Value",structure:{children:[[]]},parse:function(){var t=this.scanner.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)}},sG=de.TYPE.WhiteSpace,oG=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),lG={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(sG),oG},generate:function(t){this.chunk(t.value)}},mp={AnPlusB:nX,Atrule:bX,AtrulePrelude:wX,AttributeSelector:OX,Block:RX,Brackets:VX,CDC:WX,CDO:UX,ClassSelector:YX,Combinator:tU,Comment:sU,Declaration:bU,DeclarationList:kU,Dimension:OU,Function:jU,Hash:LU,Identifier:BU,IdSelector:qU,MediaFeature:QU,MediaQuery:$U,MediaQueryList:tJ,Nth:rJ,Number:aJ,Operator:nJ,Parentheses:lJ,Percentage:fJ,PseudoClassSelector:gJ,PseudoElementSelector:wJ,Ratio:MJ,Raw:ia,Rule:EJ,Selector:jJ,SelectorList:LJ,String:RJ,StyleSheet:UJ,TypeSelector:YJ,UnicodeRange:tG,Url:aG,Value:nG,WhiteSpace:lG},vp=rX,uG={generic:!0,types:vp.types,atrules:vp.atrules,properties:vp.properties,node:mp},Ww=de.cmpChar,cG=de.cmpStr,or=de.TYPE,dG=or.Ident,fG=or.String,pG=or.Number,hG=or.Function,mG=or.Url,vG=or.Hash,gG=or.Dimension,bG=or.Percentage,yG=or.LeftParenthesis,xG=or.LeftSquareBracket,wG=or.Comma,SG=or.Delim,PG=35,CG=42,Xw=43,TG=45,kG=47,MG=117,Uw=function(e){switch(this.scanner.tokenType){case vG:return this.Hash();case wG:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case yG:return this.Parentheses(this.readSequence,e.recognizer);case xG:return this.Brackets(this.readSequence,e.recognizer);case fG:return this.String();case gG:return this.Dimension();case bG:return this.Percentage();case pG:return this.Number();case hG:return cG(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case mG:return this.Url();case dG:return Ww(this.scanner.source,this.scanner.tokenStart,MG)&&Ww(this.scanner.source,this.scanner.tokenStart+1,Xw)?this.UnicodeRange():this.Identifier();case SG:var r=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(r===kG||r===CG||r===Xw||r===TG)return this.Operator();r===PG&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1);break}},DG={getNode:Uw},Pi=de.TYPE,AG=Pi.Delim,OG=Pi.Ident,zG=Pi.Dimension,EG=Pi.Percentage,jG=Pi.Number,IG=Pi.Hash,Jw=Pi.Colon,NG=Pi.LeftSquareBracket,LG=35,FG=42,RG=43,BG=47,Gw=46,HG=62,VG=124,qG=126;function WG(t){switch(this.scanner.tokenType){case NG:return this.AttributeSelector();case IG:return this.IdSelector();case Jw:return this.scanner.lookupType(1)===Jw?this.PseudoElementSelector():this.PseudoClassSelector();case OG:return this.TypeSelector();case jG:case EG:return this.Percentage();case zG:this.scanner.source.charCodeAt(this.scanner.tokenStart)===Gw&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case AG:var e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case RG:case HG:case qG:return t.space=null,t.ignoreWSAfter=!0,this.Combinator();case BG:return this.Combinator();case Gw:return this.ClassSelector();case FG:case VG:return this.TypeSelector();case LG:return this.IdSelector()}break}}var XG={getNode:WG},UG=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))},Qw=de.TYPE,JG=ia.mode,GG=Qw.Comma,QG=Qw.WhiteSpace,YG=function(){var t=this.createList();if(this.scanner.skipSC(),t.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===GG){t.push(this.Operator());const e=this.scanner.tokenIndex,r=this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,JG.exclamationMarkOrSemicolon,!1);if(r.type==="Value"&&r.children.isEmpty()){for(let i=e-this.scanner.tokenIndex;i<=0;i++)if(this.scanner.lookupType(i)===QG){r.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(r)}return t},ZG={getNode:Uw,expression:UG,var:YG},KG={AtrulePrelude:DG,Selector:XG,Value:ZG},_G={parse:{prelude:null,block:function(){return this.Block(!0)}}},Es=de.TYPE,$G=Es.String,eQ=Es.Ident,tQ=Es.Url,rQ=Es.Function,iQ=Es.LeftParenthesis,aQ={parse:{prelude:function(){var t=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case $G:t.push(this.String());break;case tQ:case rQ:t.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===eQ||this.lookupNonWSType(0)===iQ)&&(t.push(this.WhiteSpace()),t.push(this.MediaQueryList())),t},block:null}},nQ={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}},sQ={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},rn=de.TYPE,oQ=rn.WhiteSpace,lQ=rn.Comment,Yw=rn.Ident,uQ=rn.Function,cQ=rn.Colon,dQ=rn.LeftParenthesis;function fQ(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function pQ(){return this.scanner.skipSC(),this.scanner.tokenType===Yw&&this.lookupNonWSType(1)===cQ?this.createSingleNodeList(this.Declaration()):Zw.call(this)}function Zw(){var t=this.createList(),e=null,r;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case oQ:e=this.WhiteSpace();continue;case lQ:this.scanner.next();continue;case uQ:r=this.Function(fQ,this.scope.AtrulePrelude);break;case Yw:r=this.Identifier();break;case dQ:r=this.Parentheses(pQ,this.scope.AtrulePrelude);break;default:break e}e!==null&&(t.push(e),e=null),t.push(r)}return t}var hQ={parse:{prelude:function(){var t=Zw.call(this);return this.getFirstListNode(t)===null&&this.error("Condition is expected"),t},block:function(){return this.Block(!1)}}},mQ={"font-face":_G,import:aQ,media:nQ,page:sQ,supports:hQ},vQ={parse:function(){return this.createSingleNodeList(this.Identifier())}},gQ={parse:function(){return this.createSingleNodeList(this.SelectorList())}},bQ={parse:function(){return this.createSingleNodeList(this.Identifier())}},Kw={parse:function(){return this.createSingleNodeList(this.SelectorList())}},yQ=Kw,xQ=Kw,wQ=!0,_w={parse:function(){return this.createSingleNodeList(this.Nth(wQ))}},SQ=_w,PQ=_w,CQ=!1,$w={parse:function(){return this.createSingleNodeList(this.Nth(CQ))}},TQ=$w,kQ=$w,MQ={parse:function(){return this.createSingleNodeList(this.Selector())}},DQ={dir:vQ,has:gQ,lang:bQ,matches:yQ,not:xQ,"nth-child":SQ,"nth-last-child":PQ,"nth-last-of-type":TQ,"nth-of-type":kQ,slotted:MQ},AQ={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(t){return this.AtrulePrelude(t.atrule?String(t.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:KG,atrule:mQ,pseudo:DQ,node:mp},OQ={node:mp};const zQ={version:"1.1.3"};function EQ(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)t[i]=r[i]}return t}tf.exports=ty.create(EQ(uG,AQ,OQ)),tf.exports.version=zQ.version;var jQ=tf.exports,na=jQ,eS={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.Scrollparent=r()})(Mt,function(){function e(i){var a=getComputedStyle(i,null).getPropertyValue("overflow");return a.indexOf("scroll")>-1||a.indexOf("auto")>-1}function r(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var a=i.parentNode;a.parentNode;){if(e(a))return a;a=a.parentNode}return document.scrollingElement||document.documentElement}}return r})})(eS);var IQ=eS.exports;const NQ=ur(IQ),LQ={name:"custom-css-output",render(t){return t("style",this.$slots.default)}},Ou=[{code:"AFN",name:"Afghanistan Afghani",format:"####.##",symbol:""},{code:"ALL",name:"Albanian Lek",format:"####.##",symbol:""},{code:"DZD",name:"Algerian Dinar",format:"####.##",symbol:"دج (Arabic) or DA (Latin)"},{code:"AOA",name:"Angolan Kwanza",format:"####.##",symbol:"Kz"},{code:"ARS",name:"Argentine Peso",format:"#.###,##",symbol:""},{code:"AMD",name:"Armenian Dram",format:"#,###.##",symbol:"֏"},{code:"AWG",name:"Aruban Guilder",format:"#,###.##",symbol:""},{code:"AUD",name:"Australian Dollar",format:"# ###.##",symbol:""},{code:"AZN",name:"Azerbaijanian Manat",format:"####.##",symbol:""},{code:"BSD",name:"Bahamian Dollar",format:"#,###.##",symbol:""},{code:"BHD",name:"Bahraini Dinar",format:"#,###.###",symbol:".د.ب (Arabic) or BD (Latin"},{code:"BDT",name:"Bangladesh Taka",format:"#,###.##",symbol:"৳"},{code:"BBD",name:"Barbados Dollar",format:"####.##",symbol:""},{code:"BYN",name:"Belarussian Ruble",format:"####",symbol:""},{code:"BZD",name:"Belize Dollar",format:"#,###.##",symbol:""},{code:"BMD",name:"Bermudian Dollar",format:"#,###.##",symbol:""},{code:"BTN",name:"Bhutan Ngultrum",format:"####.##",symbol:"Nu"},{code:"BOB",name:"Bolivia, Boliviano",format:"#,###.##",symbol:""},{code:"BAM",name:"Bosnia and Herzegovina, Convertible Marks",format:"#,###.##",symbol:""},{code:"BWP",name:"Botswana, Pula",format:"#,###.##",symbol:""},{code:"BRL",name:"Brazilian Real",format:"#.###,##",symbol:""},{code:"BND",name:"Brunei Dollar",format:"#,###.##",symbol:""},{code:"BGN",name:"Bulgarian Lev",format:"####.##",symbol:""},{code:"BIF",name:"Burundi Franc",format:"####",symbol:"FBu"},{code:"KHR",name:"Cambodia, Riel",format:"####.##",symbol:""},{code:"CAD",name:"Canadian Dollar",format:"#,###.##",symbol:""},{code:"CVE",name:"Cape Verde Escudo",format:"####.##",symbol:""},{code:"KYD",name:"Cayman Islands Dollar",format:"#,###.##",symbol:""},{code:"XPF",name:"CFP Franc",format:"####",symbol:"₣"},{code:"CLP",name:"Chilean Peso",format:"#.###",symbol:""},{code:"CNY",name:"China Yuan Renminbi",format:"#,###.##",symbol:""},{code:"COP",name:"Colombian Peso",format:"#.###,##",symbol:""},{code:"KMF",name:"Comoro Franc",format:"####",symbol:"CF"},{code:"CRC",name:"Costa Rican Colon",format:"#.###,##",symbol:""},{code:"HRK",name:"Croatian Kuna",format:"#.###,##",symbol:""},{code:"CUP",name:"Cuban Peso",format:"#,###.##",symbol:""},{code:"CZK",name:"Czech Koruna",format:"#.###,##",symbol:""},{code:"DKK",name:"Danish Krone",format:"#.###,##",symbol:""},{code:"DJF",name:"Djibouti Franc",format:"####",symbol:"Fdj"},{code:"DOP",name:"Dominican Peso",format:"#,###.##",symbol:""},{code:"XCD",name:"East Caribbean Dollar",format:"#,###.##",symbol:""},{code:"EGP",name:"Egyptian Pound",format:"#,###.##",symbol:""},{code:"SVC",name:"El Salvador Colon",format:"#,###.##",symbol:""},{code:"ERN",name:"Eritrea Nakfa",format:"####.##",symbol:"Nkf (Latin script) ናቕፋ (Ge'ez script) ناكفا (Arabic script)"},{code:"ETB",name:"Ethiopian Birr",format:"####.##",symbol:"Br (Latin Script) ብር (Ethiopic Script)"},{code:"EUR",name:"Euro",format:"#,###.##",symbol:""},{code:"FKP",name:"Falkland Islands Pound",format:"####.##",symbol:""},{code:"FJD",name:"Fiji Dollar",format:"####.##",symbol:""},{code:"CDF",name:"Congolais Franc",format:"####.##",symbol:"FC"},{code:"GMD",name:"Gambia Dalasi",format:"####.##",symbol:"D"},{code:"GEL",name:"Georgia Lari",format:"####.##",symbol:"ლ (Lasi) of the Georgian script"},{code:"GHC",name:"Ghana Cedi",format:"#,###.##",symbol:""},{code:"GIP",name:"Gibraltar Pound",format:"#,###.##",symbol:""},{code:"GTQ",name:"Guatemala, Quetzal",format:"#,###.##",symbol:""},{code:"GWP",name:"Guinea-Bissau Peso",format:"####.##",symbol:"$ or COL$"},{code:"GYD",name:"Guyana Dollar",format:"####.##",symbol:""},{code:"HTG",name:"Haitian Gourde",format:"####.##",symbol:"G"},{code:"HNL",name:"Honduran Lempira",format:"#,###.##",symbol:""},{code:"HKD",name:"Hong Kong Dollar",format:"#,###.##",symbol:""},{code:"HUF",name:"Hungary Forint",format:"#.###",symbol:""},{code:"ISK",name:"Iceland Krona",format:"#.###",symbol:""},{code:"INR",name:"Indian Rupee",format:"#,###.##",symbol:"₹"},{code:"IDR",name:"Indonesian Rupiah",format:"#.###,##",symbol:""},{code:"IRR",name:"Iranian Rial",format:"#,###.##",symbol:""},{code:"IQD",name:"Iraqi Dinar",format:"####.###",symbol:"ع.د"},{code:"JMD",name:"Jamaican Dollar",format:"#,###.##",symbol:""},{code:"JPY",name:"Japanese Yen",format:"#,###",symbol:""},{code:"JOD",name:"Jordanian Dinar",format:"#,###.###",symbol:"د.ا"},{code:"KZT",name:"Kazakhstan Tenge",format:"####.##",symbol:""},{code:"KES",name:"Kenyan Shilling",format:"#,###.##",symbol:"KES"},{code:"KWD",name:"Kuwaiti Dinar",format:"#,###.###",symbol:"د.ك or KD"},{code:"KGS",name:"Kyrgyzstan Som",format:"####.##",symbol:""},{code:"LAK",name:"Laos, Kip",format:"####.##",symbol:""},{code:"LVL",name:"Latvian Lats",format:"#,###.##",symbol:"Ls"},{code:"LBP",name:"Lebanese Pound",format:"# ###",symbol:""},{code:"LSL",name:"Lesotho Loti",format:"####.##",symbol:"L (singular) or M (plural)"},{code:"LRD",name:"Liberian Dollar",format:"####.##",symbol:""},{code:"LYD",name:"Libyan Dinar",format:"####.###",symbol:"LD and ل.د"},{code:"LTL",name:"Lithuanian Litas",format:"# ###,##",symbol:"Lt"},{code:"MOP",name:"Macao Pataca",format:"####.##",symbol:"MOP$"},{code:"MKD",name:"Macedonia, Denar",format:"#,###.##",symbol:""},{code:"MGA",name:"Malagasy Ariary",format:"####",symbol:"Ar"},{code:"MWK",name:"Malawi Kwacha",format:"####.##",symbol:"MK"},{code:"MYR",name:"Malaysian Ringgit",format:"#,###.##",symbol:""},{code:"MVR",name:"Maldives Rufiyaa",format:"####.##",symbol:"Rf"},{code:"MTL",name:"Maltese Lira",format:"#,###.##",symbol:"₤ and Lm"},{code:"MRO",name:"Mauritanian Ouguiya",format:"####.##",symbol:"UM"},{code:"MUR",name:"Mauritius Rupee",format:"#,###",symbol:""},{code:"MXN",name:"Mexican Peso",format:"#,###.##",symbol:""},{code:"MDL",name:"Moldovan Leu",format:"####.##",symbol:"L"},{code:"MNT",name:"Mongolian Tugrik",format:"####.##",symbol:""},{code:"MAD",name:"Moroccan Dirham",format:"####.##",symbol:"MAD"},{code:"MZM",name:"Mozambique Metical",format:"#.###,##",symbol:""},{code:"MMK",name:"Myanmar Kyat",format:"####.##",symbol:"K"},{code:"NAD",name:"Namibian Dollar",format:"####.##",symbol:""},{code:"NPR",name:"Nepalese Rupee",format:"#,###.##",symbol:""},{code:"ANG",name:"Netherlands Antillian Guilder",format:"#.###,##",symbol:""},{code:"ILS",name:"New Israeli Shekel",format:"#,###.##",symbol:""},{code:"TWD",name:"New Taiwan Dollar",format:"####.##",symbol:""},{code:"TRY",name:"New Turkish Lira",format:"#,###.##",symbol:"₺"},{code:"NZD",name:"New Zealand Dollar",format:"#,###.##",symbol:""},{code:"NIO",name:"Nicaragua, Cordoba Oro",format:"####.##",symbol:""},{code:"NGN",name:"Nigeria, Naira",format:"#,###.##",symbol:""},{code:"KPW",name:"North Korean Won",format:"####.##",symbol:""},{code:"NOK",name:"Norwegian Krone",format:"#.###,##",symbol:""},{code:"PKR",name:"Pakistan Rupee",format:"#,###.##",symbol:""},{code:"PAB",name:"Panama Balboa",format:"####.##",symbol:""},{code:"PGK",name:"Papua New Guinea Kina",format:"####.##",symbol:"K"},{code:"PYG",name:"Paraguay Guarani",format:"####",symbol:""},{code:"PEN",name:"Peru Nuevo Sol",format:"#,###.##",symbol:""},{code:"UYU",name:"Uruguay Peso",format:"#.###,##",symbol:""},{code:"PHP",name:"Philippine Peso",format:"#,###.##",symbol:""},{code:"PLN",name:"Poland Zloty",format:"# ###,##",symbol:""},{code:"GBP",name:"United Kingdom Pound Sterling",format:"#,###.##",symbol:""},{code:"QAR",name:"Qatari Rial",format:"####.##",symbol:""},{code:"OMR",name:"Rial Omani",format:"#,###.###",symbol:"ر.ع."},{code:"RON",name:"Romania, New Leu",format:"#.###,##",symbol:""},{code:"RUB",name:"Russian Ruble",format:"#.###,##",symbol:""},{code:"RWF",name:"Rwanda Franc",format:"####",symbol:"FRw"},{code:"SHP",name:"Saint Helena Pound",format:"####.##",symbol:""},{code:"WST",name:"Samoa Tala",format:"####.##",symbol:"SAT"},{code:"STN",name:"Sao Tome and Principe Dobra",format:"####.##",symbol:"Db"},{code:"SAR",name:"Saudi Riyal",format:"#,###.##",symbol:""},{code:"RSD",name:"Serbian Dinar",format:"####.##",symbol:""},{code:"SCR",name:"Seychelles Rupee",format:"####.##",symbol:""},{code:"SLL",name:"Sierra Leone Leone",format:"####.##",symbol:"Le"},{code:"SGD",name:"Singapore Dollar",format:"#,###.##",symbol:""},{code:"SKK",name:"Slovak Koruna",format:"# ###,##",symbol:"Sk"},{code:"SIT",name:"Slovenia Tolar",format:"#.###,##",symbol:"SlT"},{code:"SBD",name:"Solomon Islands Dollar",format:"####.##",symbol:""},{code:"SOS",name:"Somali Shilling",format:"####.##",symbol:""},{code:"ZAR",name:"South Africa Rand",format:"# ###.##",symbol:""},{code:"KRW",name:"South Korea Won",format:"#,###",symbol:""},{code:"LKR",name:"Sri Lanka Rupee",format:"####.##",symbol:""},{code:"SDD",name:"Sudanese Dinar",format:"####.##",symbol:"LSd"},{code:"SRD",name:"Surinam Dollar",format:"####.##",symbol:"$"},{code:"SZL",name:"Swaziland Lilangeni",format:"#, ###.##",symbol:"L (singular) or E (plural)"},{code:"SEK",name:"Swedish Krona",format:"# ###,##",symbol:""},{code:"CHF",name:"Swiss Franc",format:"#'###.##",symbol:""},{code:"SYP",name:"Syrian Pound",format:"####.##",symbol:""},{code:"TZS",name:"Tanzanian Shilling",format:"#,###.##",symbol:"TSh"},{code:"THB",name:"Thailand, Baht",format:"#,###.##",symbol:""},{code:"TOP",name:"Tongan Paanga",format:"#,###.##",symbol:"T$"},{code:"TTD",name:"Trinidad and Tobago Dollar",format:"####.##",symbol:""},{code:"TND",name:"Tunisian Dinar",format:"####.###",symbol:"د.ت (Tunisian Arabic) or DT (Latin)"},{code:"TMT",name:"Turkmenistani New Manat",format:"####.##",symbol:"T"},{code:"AED",name:"UAE Dirham",format:"#,###.##",symbol:"د.إ"},{code:"UGX",name:"Uganda Shilling",format:"####.##",symbol:"USh"},{code:"UAH",name:"Ukraine Hryvnia",format:"# ###,##",symbol:""},{code:"CLF",name:"Unidad de Fomento",format:"####.##",symbol:"CLF"},{code:"USD",name:"US Dollar",format:"#,###.##",symbol:"$"},{code:"UZS",name:"Uzbekistan Sum",format:"####.##",symbol:""},{code:"VUV",name:"Vanuatu Vatu",format:"#,###",symbol:"VT"},{code:"VES",name:"Venezuela Bolivares Fuertes",format:"#.###,##",symbol:""},{code:"VND",name:"Viet Nam Dong",format:"#.###",symbol:""},{code:"YER",name:"Yemeni Rial",format:"####.##",symbol:""},{code:"ZMK",name:"Zambian Kwacha",format:"####.##",symbol:"ZK"},{code:"ZWD",name:"Zimbabwe Dollar",format:"# ###.##",symbol:""}],FQ=Object.freeze(Object.defineProperty({__proto__:null,default:Ou},Symbol.toStringTag,{value:"Module"}));function tS(t){return t.component!=="FormMultiColumn"?t:t.items.flatMap(tS)}function RQ(t){return t.flatMap(e=>e.items).flatMap(tS)}Vt.register("custom-same",function(t,e){let r;const i=t;return e.includes(".")?r=e.split(".").reduce((a,n)=>a[n],this.validator.input):r=this.validator._flattenObject(this.validator.input)[e],r===i},"The :attribute and :custom-same fields must match."),Vt.register("after",function(t,e){const r=Ar(t).toISOString(),i=Ar(e).toISOString();return r>i},"The :attribute must be after :after."),Vt.register("after_or_equal",function(t,e){const r=Ar(t).toISOString(),i=Ar(e).toISOString();return r>=i},"The :attribute must be equal or after :after_or_equal."),Vt.register("before",function(t,e){const r=Ar(t).toISOString(),i=Ar(e).toISOString();return r<i},"The :attribute must be before :before."),Vt.register("before_or_equal",function(t,e){const r=Ar(t).toISOString(),i=Ar(e).toISOString();return r<=i},"The :attribute must be equal or before :before_or_equal."),Vt.register("custom_date",function(t){let e="MM/DD/YYYY";return typeof window.ProcessMaker<"u"&&window.ProcessMaker.user&&window.ProcessMaker.user.datetime_format&&(e=window.ProcessMaker.user.datetime_format.replace(/[\sHh:msaAzZ]/g,"")),Ar(t,[e,Ar.ISO_8601],!0).isValid()},"The :attribute must be a valid date.");function BQ(t,e){const r={},i={int:"integer",boolean:"boolean",string:"string",datetime:"custom-datetime",date:"custom-date",float:"regex:/^[+-]?\\d+(\\.\\d+)?$/",currency:"regex:/^[+-]?\\d+(\\.\\d+)?$/",array:"array",percentage:"regex:/^[+-]?\\d+(\\.\\d+)?$/",password:"string"};return r.validator=null,r.config=t,r.data=e,r.elements={},r.rules={},r.getDataAndRules=a=>{a.forEach(n=>{if(n){if(Array.isArray(n)&&r.getDataAndRules(n),n.items&&(n.component==="FormLoop"?r.ruleFormLoop(n.config.name,n.items):r.getDataAndRules(n.items)),n.component==="FormNestedScreen"){const s=G.get(window,`nestedScreens.id_${n.config.screen}`);s&&r.getDataAndRules(s)}n.config&&n.config.name&&n.config.validation&&r.addRule(n.config.name,n.config.validation),n.component==="FormInput"&&n.config&&n.config.name&&n.config.dataFormat&&r.addRuleFormat(n.config.name,n.config.dataFormat)}})},r.addRule=(a,n)=>{const s=[];typeof n=="string"?s.push(n):n.forEach(o=>{s.push(o.value)}),r.rules[a]=s},r.addRuleFormat=(a,n)=>{r.rules[a]||(r.rules[a]=[]),r.rules[a].push(i[n])},r.ruleFormLoop=(a,n)=>{n.forEach(s=>{Array.isArray(s)&&r.ruleFormLoop(a,s),s.items&&(s.component==="FormLoop"?r.ruleFormLoop(`${a}.*.${s.config.name}`,s.items):r.ruleFormLoop(a,s.items)),s.config&&s.config.name&&s.config.validation&&(Array.isArray(s.config.validation)&&s.config.validation.forEach(o=>{if(!o.value.includes(":"))return;const u=o.value.split(":")[0];let l=o.value.split(":")[1],c;if(u.includes("required_")||u.includes("same")){if(l.includes("_parent"))l=l.split("_parent.").pop(),c=`${u}:${l}`;else if(!l.includes(","))c=`${u}:${a}.*.${l}`;else{l=l.split(",")[0];const d=o.value.split(":")[1].split(",")[1];c=`${u}:${a}.*.${l},${d}`}o.value=c}}),r.addRule(`${a}.*.${s.config.name}`,s.config.validation)),s.component==="FormInput"&&s.config&&s.config.name&&s.config.dataFormat&&r.addRuleFormat(`${a}.*.${s.config.name}`,s.config.dataFormat)})},r.getValidator=()=>{r.getDataAndRules(r.config),r.validator=new Vt(r.data,r.rules)},r.getErrors=()=>r.failed()?r.validator.errors.errors:{},r.failed=()=>(r.getValidator(),r.validator.fails()),r}const HQ={props:["value"],data(){return{display:"running",errorMessage:"",showMessage:!1,variables:[]}},computed:{message(){return this.$t("{{variable}} running.",{variable:this.variables.join(", ")})}},methods:{error(t){this.display="error",this.errorMessage=t},show(t){this.variables.indexOf(t)===-1&&this.variables.push(t),this.display="running",this.errorMessage="",this.showMessage=!1,this.$refs.modal.show()},hide(t){t===-1&&this.variables.splice(0);const e=this.variables.indexOf(t);e>-1&&this.variables.splice(e,1),this.variables.length===0&&this.$refs.modal.hide()}}};var VQ=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:"lg",id:"watchers-synchronous",title:"","hide-header":"","no-close-on-esc":"","hide-header-close":"","no-close-on-backdrop":""}},[e.display==="running"?r("div",{staticClass:"container text-center"},[r("div",{staticClass:"icon-container m-4"},[r("svg",{staticClass:"lds-gear",attrs:{width:"50%",height:"50%",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[r("g",{attrs:{transform:"translate(50 50)"}},[r("g",{attrs:{transform:"rotate(248.825)"}},[r("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"4.7s",repeatCount:"indefinite"}}),r("path",{attrs:{d:"M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"}})],1)])])]),r("h3",{staticClass:"display-6"},[e._v(e._s(e.message))]),r("p",{staticClass:"lead"},[e._v(e._s(e.$t("This window will automatically close when complete.")))])]):r("div",{staticClass:"container text-center"},[r("div",{staticClass:"icon-container m-4"},[r("i",{staticClass:"fas fa-sad-tear fa-10x"})]),r("h3",{staticClass:"display-6"},[e._v(e._s(e.$t("Something has gone wrong.")))]),r("p",{staticClass:"lead"},[e._v(e._s(e.$t("Unfortunately this screen has had an issue. We've notified the administrator."))+" "),r("a",{attrs:{href:"javascript:void(0)","data-cy":"watchers-show-error-message"},on:{click:function(i){e.showMessage=!e.showMessage}}},[r("i",{staticClass:"fas fa-info-circle"})])]),e.showMessage?r("small",{staticClass:"text-danger text-left small"},[e._v(e._s(e.errorMessage))]):e._e()]),r("div",{staticClass:"w-100 text-right",attrs:{slot:"modal-footer"},slot:"modal-footer"},[e.display==="error"?r("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:function(i){return e.hide(-1)}}},[e._v(e._s(e.$t("Close")))]):e._e()])])},qQ=[],WQ=ie(HQ,VQ,qQ,!1,null,null);const rS=WQ.exports,XQ={props:{value:Object}};var UQ=function(){var e=this,r=e._self._c;return r("b-alert",{ref:"alert",attrs:{variant:"danger",dismissible:""},model:{value:e.value.show,callback:function(i){e.$set(e.value,"show",i)},expression:"value.show"}},[r("b",[e._v(" "+e._s(e.value.error)+" ")]),r("ul",e._l(e.value.errors,function(i,a){return r("li",{key:`error-${a}`},[e._v(e._s(i))])}),0)])},JQ=[],GQ=ie(XQ,UQ,JQ,!1,null,null);const gp=GQ.exports,one="",QQ={name:"ScreenRenderer",components:{WatchersSynchronous:rS,ScreenRendererError:gp},mixins:[Wb,Mc],props:{loopContext:{type:String,default:""},taskdraft:Object},data(){return{currentDefinition:null,codigo:"",displayAsyncLoading:!1}},watch:{definition:{deep:!0,handler(t){G.isEmpty(t.config)||this.rebuildScreen(t)}}},mounted(){this.currentDefinition=G.cloneDeep(this.definition),this.component=this.buildComponent(this.currentDefinition)},methods:{rebuildScreen(t){G.isEqual(t,this.currentDefinition)||(this.currentDefinition=G.cloneDeep(t),this.component=this.buildComponent(this.currentDefinition))},onAsyncWatcherOn(){this.displayAsyncLoading=typeof this._parent>"u"},onAsyncWatcherOff(){this.displayAsyncLoading=!1},getCurrentPage(){return this.$refs.component.getCurrentPage()},setCurrentPage(t){this.$emit("updatedPage"),this.$refs.component.setCurrentPage(t)},afterSubmit(){this.$emit("after-submit",...arguments)}}};var YQ=function(){var i;var e=this,r=e._self._c;return r("b-container",{attrs:{fluid:""}},[e.displayAsyncLoading?r("div",{ref:"watchersAsynchronous",staticClass:"alert alert-light",attrs:{role:"alert"}},[r("svg",{staticClass:"lds-gear",attrs:{width:"20px",height:"20px",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[r("g",{attrs:{transform:"translate(50 50)"}},[r("g",{attrs:{transform:"rotate(248.825)"}},[r("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"4.7s",repeatCount:"indefinite"}}),r("path",{attrs:{d:"M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"}})],1)])]),e._v(" "+e._s(e.$t("Loading..."))+" ")]):e._e(),r(e.component,{ref:"component",tag:"component",attrs:{vdata:e.value,_parent:e._parent||((i=e.value)==null?void 0:i._parent),"_initial-page":e.currentPage,taskdraft:e.taskdraft},on:{"after-submit":e.afterSubmit,submit:e.submit,asyncWatcherTriggered:e.onAsyncWatcherOn,asyncWatcherCompleted:e.onAsyncWatcherOff}}),e.showErrors&&e.building.error?r("screen-renderer-error",{model:{value:e.building,callback:function(a){e.building=a},expression:"building"}}):e._e(),r("watchers-synchronous",{ref:"watchersSynchronous"})],1)},ZQ=[],KQ=ie(QQ,YQ,ZQ,!1,null,null);const iS=KQ.exports,lne="",_Q={name:"VueFormRenderer",components:{ScreenRenderer:iS,CustomCssOutput:LQ},mixins:[Mc,Wh,Dd],model:{prop:"data",event:"update"},props:["config","data","_parent","page","computed","customCss","mode","watchers","isLoop","ancestorScreens","loopContext","showErrors","testScreenDefinition","deviceScreen","taskdraft"],data(){return{definition:{config:this.config,computed:this.computed,customCss:this.customCss,watchers:this.watchers,isMobile:!1},formSubmitErrorClass:"",watchers_config:{api:{execute:null,execution:null}},customCssWrapped:"",customFunctions:{formatCurrency(){const t=(e,r)=>{const i=Ou.find(n=>n.code===r),a={alias:"currency"};if(i){const n=i.format.match(/[.,]/g);n.length===0?n.push("","."):n.length===1&&n.push(n[0]==="."?",":"."),a.digits=(i.format.split(n[1])[1]||"").length,a.radixPoint=n[1],a.groupSeparator=n[0],a.prefix=`${i.symbol} `,a.suffix=` ${i.code}`}return _b.format(e,a)};return function(e){const r=JSON.parse(`[${e}]`);return t(G.get(this,r[0]),r[1])}}},scrollable:null,containerObserver:null}},computed:{containerClass(){return this.parentScreen?`screen-${this.parentScreen}`:"custom-css-scope"},cssDevice(){return{"--mobile-width":qh}},containerDeviceClass(){return this.deviceScreen==="mobile"?"container-mobile":"container-desktop"}},watch:{customCss(t){this.definition.customCss=t,this.parseCss()},config:{deep:!0,handler(t){this.definition.config=t,this.$nextTick(()=>{this.registerCustomFunctions()})}},data:{deep:!0,handler(){this.$emit("update",this.data);const t=this.getMainScreen();t&&this.validate(t)}},computed:{deep:!0,handler(t){this.definition.computed=t}},watchers:{deep:!0,handler(t){this.definition.watchers=t}}},created(){this.parseCss=G.debounce(this.parseCss,500,{leading:!0}),this.containerObserver=new ResizeObserver(this.onContainerObserver)},mounted(){this.registerCustomFunctions(),window.ProcessMaker&&window.ProcessMaker.EventBus&&window.ProcessMaker.EventBus.$emit("screen-renderer-init",this),this.scrollable=NQ(this.$el),this.containerObserver.observe(this.$refs.formRendererContainer),this.$store.dispatch("clipboardModule/initializeClipboard")},methods:{...Ft.mapActions("globalErrorsModule",["validate","hasSubmitted","showValidationOnLoad","restartValidation"]),getMainScreen(){return this.$refs.renderer&&this.$refs.renderer.$refs.component},countElements(t){const e={config:t};return this.$refs.renderer.countElements(e)},checkForRecordList(t,e){return t.forEach(r=>{r.items&&this.checkForRecordList(r.items,e),r.component==="FormRecordList"&&this.removeRecordListForms(r,e)}),e},removeRecordListForms(t,e){const r=t.config.form;return delete e[r],e},checkForNestedScreenErrors(t){if(t.$options._componentTag==="FormNestedScreen")return t.errors()},isValid(){const t=RQ(this.definition.config),e=G.cloneDeep(this.definition.config);return this.checkForRecordList(t,e),this.dataTypeValidator=BQ(e,this.data),this.errors=this.dataTypeValidator.getErrors(),this.errors&&(this.formSubmitErrorClass="invalid-form-submission"),G.size(this.errors)===0},registerCustomFunctions(t=this){t.registerCustomFunction instanceof Function&&Object.keys(this.customFunctions).forEach(e=>{t.registerCustomFunction(e,this.customFunctions[e])}),t.$children instanceof Array&&t.$children.forEach(e=>this.registerCustomFunctions(e))},afterSubmit(){this.$emit("after-submit",...arguments)},submit(t,e=!1,r=null){this.$emit("submit",t,e,r)},parseCss(){const t=`.${this.containerClass}`;try{const e=na.parse(this.customCss,{onParseError(a){throw a.formattedMessage}});let r=0;na.walk(e,function(a,n,s){if(a.type.match(/^.+Selector$/)&&a.name!==t&&s&&(n.prev||(s.prependData({type:"WhiteSpace",loc:null,value:" "}),s.prependData({type:"TypeSelector",loc:null,name:t}))),r>5e3)throw Error("CSS is too long");r+=1});const i=[];na.walk(e,{visit:"Atrule",enter:(a,n,s)=>{if(!n.prev&&a.name==="media"){const o={minWidth:0,maxWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),rules:[]};na.walk(a.prelude,{visit:"MediaFeature",enter:u=>{["min-width","max-width"].includes(u.name)&&(o[G.camelCase(u.name)]=parseInt(u.value.value,10),o.rules.length===0&&na.walk(a.block,{visit:"Rule",enter:l=>{const c=na.generate(l);o.rules.push(c)}}),i.push(o))}}),s.remove(n)}}}),this.customCssWrapped=na.generate(e),i.forEach(a=>{const{width:n}=this.$refs.formRendererContainer.getBoundingClientRect();n>=a.minWidth&&n<=a.maxWidth&&(this.customCssWrapped+=a.rules.join(" "))}),this.$emit("css-errors","")}catch(e){this.$emit("css-errors",e)}},getCurrentPage(){return this.$refs.renderer.getCurrentPage()},setCurrentPage(t){this.$emit("update-page-task"),this.$refs.renderer.setCurrentPage(t)},onContainerObserver(t){t[0].target.getBoundingClientRect(),this.parseCss()},saveClipboarToLocalStorage(t){localStorage.setItem("savedClipboard",JSON.stringify(t))}}};var $Q=function(){var i;var e=this,r=e._self._c;return r("div",{ref:"formRendererContainer",class:[e.containerClass,e.containerDeviceClass],style:e.cssDevice,attrs:{id:"vue-form-renderer","data-cy":"screen-renderer-container"}},[r("custom-css-output",[e._v(e._s(e.customCssWrapped))]),r("screen-renderer",{ref:"renderer",staticClass:"p-0",attrs:{value:e.data,_parent:e._parent||((i=e.data)==null?void 0:i._parent),definition:e.definition,"current-page":e.currentPage,"data-cy":"screen-renderer","show-errors":e.showErrors,"test-screen-definition":e.testScreenDefinition||!1,"loop-context":e.loopContext,taskdraft:e.taskdraft},on:{updatePage:e.setCurrentPage,"after-submit":e.afterSubmit,submit:e.submit}})],1)},eY=[],tY=ie(_Q,$Q,eY,!1,null,"560176a3");const Ci=tY.exports,rY={name:"FormLoop",components:{VueFormRenderer:Ci},mixins:[],props:["value","config","transientData","name","mode","formConfig"],data(){return{matrix:[],items:[],additionalItems:0,transientDataCopy:null,parentObjectChanges:[]}},computed:{parentLoopContext(){let t=this.$parent,e=0,r="";for(;!t.loopContext;){if(t=t.$parent,t===this.$root){t=null;break}if(e>100)throw new Error("Loop Error");e++}return t&&(r=t.loopContext),r},rendererConfig(){const{items:t}=this;return[{name:"LoopItem",items:t}]},times(){if(!this.config||!this.config.settings)return[];if(this.config.settings.type==="existing"){const e=G.get(this.transientData,this.name,null);return e?[...e.keys()]:[]}let{times:t}=this.config.settings;try{t=Kt.render(t,this.transientData)}catch(e){throw new Error(e)}return t=parseInt(t),Number.isNaN(t)?[]:(t>100&&(t=100),t+=this.additionalItems,[...Array(t).keys()])}},watch:{transientData:{handler(){this.transientDataCopy=G.cloneDeep(this.transientData),this.$delete(this.transientDataCopy,this.name);const t=G.get(this,`transientData.${this.name}`,null);t&&Array.isArray(t)?this.matrix=t:this.matrix=[],this.setupMatrix()},immediate:!0},value:{handler(){this.items=this.value},immediate:!0},matrix:{handler(){G.isEqual(this.$parent.transientData[this.name],this.matrix)||this.$set(this.$parent.transientData,this.name,G.cloneDeep(this.matrix))},deep:!0},times(){this.setupMatrix()},"config.settings.times":{handler(){this.additionalItems=0}}},mounted(){this.$set(this.$parent.transientData,this.name,G.cloneDeep(this.matrix))},methods:{getLoopContext(t){let e=`${this.name}.${t.toString()}`;return this.parentLoopContext!==""&&(e=`${this.parentLoopContext}.${e}`),e},add(){this.config.settings.type==="existing"?this.setMatrixValue(this.matrix.length,{}):this.additionalItems++},remove(){this.config.settings.type==="existing"?this.$delete(this.matrix,this.matrix.length-1):this.additionalItems--},removeConfirm(){const t=this.$t("Are you sure you want to delete this?");window.ProcessMaker.confirmModal(this.$t("Caution!"),t,"",()=>{this.remove()})},setMatrixValue(t,e){const r=G.omit(e,"_parent");this.registerParentVariableChanges(e),this.$set(this.matrix,t,r),this.setChagnedParentVariables()},registerParentVariableChanges(t){t._parent&&Object.keys(t._parent).forEach(e=>{G.isEqual(this.transientDataCopy[e],t._parent[e])||this.parentObjectChanges.push({key:e,value:t._parent[e]})})},setChagnedParentVariables(){this.parentObjectChanges.forEach(t=>{this.$set(this.$parent.transientData,t.key,t.value)}),this.parentObjectChanges=[]},getMatrixValue(t){let e=G.cloneDeep(this.matrix[t]);return e||(e={}),e._parent=G.cloneDeep(this.transientDataCopy),e},setupMatrix(){for(const t of this.times)typeof this.matrix[t]>"u"&&this.setMatrixValue(t,{});this.matrix.length!==this.times.length&&(this.matrix=this.matrix.slice(0,this.times.length))},submit(){this.$emit("submit")}}};var iY=function(){var e=this,r=e._self._c;return r("div",[e._l(e.times,function(i){return r("form",{key:i,on:{submit:function(a){a.preventDefault()}}},[r("vue-form-renderer",{attrs:{data:e.getMatrixValue(i),config:e.rendererConfig,computed:null,"custom-css":null,watchers:null,"is-loop":!0,"debug-context":"Loop #"+i,mode:e.mode,"loop-context":e.getLoopContext(i),"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:function(a){return e.$emit("pageNavigate",a)},update:function(a){return e.setMatrixValue(i,a)}}})],1)}),e.config.settings.add?r("b-row",{staticClass:"justify-content-md-center"},[r("b-col",{attrs:{md:"auto"}},[r("b-button",{staticClass:"ml-1 mr-1",attrs:{size:"sm",variant:"secondary",title:e.$t("Add Item")},on:{click:e.add}},[r("i",{staticClass:"fas fa-plus"})]),e.times.length>0?r("b-button",{staticClass:"ml-1 mr-1",attrs:{size:"sm",variant:"outline-danger",title:e.$t("Delete Item")},on:{click:e.removeConfirm}},[r("i",{staticClass:"fas fa-minus"})]):e._e()],1)],1):e._e()],2)},aY=[],nY=ie(rY,iY,aY,!1,null,null);const js=nY.exports,une="",zu=typeof window>"u"?global:window,bp=[{name:"empty",items:[]}],sY={components:{VueFormRenderer:Ci},props:{name:String,screen:Number,value:null,validationData:null,_parent:null,ancestorScreens:{type:Array,default:()=>[]}},data(){return{localData:{},config:bp,computed:[],customCSS:null,watchers:[],screenTitle:null}},computed:{validatedConfig(){return this.config&&this.config[0]?this.config:bp},data:{get(){return this.validationData||this.localData},set(t){Object.keys(t).forEach(e=>{this.validationData&&this.$set(this.validationData,e,t[e])})}},placeholder(){return this.screen?"":this.$t("Select a screen to nest")}},methods:{isSubmitButton(t){return t.config&&t.component==="FormButton"&&t.config.event==="submit"},hideSubmitButtons(t){t.forEach(e=>{Array.isArray(e)&&this.hideSubmitButtons(e),e.items&&this.hideSubmitButtons(e.items),this.isSubmitButton(e)&&(e.config.hidden=!0)})},disableForm(t){t.forEach(e=>{Array.isArray(e)&&this.disableForm(e),e.items&&this.disableForm(e.items),e&&e.config&&(e.config.disabled=!0,e.config.readonly=!0,e.config.editable=!1)})},loadScreen(t){this.config=bp,this.computed=[],this.customCSS=null,this.watchers=[],this.screenTitle=null,t&&this.$dataProvider.getScreen(t).then(e=>{this.config=e.data.config,this.hideSubmitButtons(this.config),this.computed=e.data.computed,this.customCSS=e.data.custom_css,this.watchers=e.data.watchers,this.screenTitle=e.data.title,this.$attrs.disabled&&this.disableForm(this.config),this.ancestorScreens.includes(this.screenTitle)?zu.ProcessMaker.alert(`Rendering of nested "${this.screenTitle}" screen was disallowed to prevent loop.`,"warning"):(zu.nestedScreens||(zu.nestedScreens={}),zu.nestedScreens["id_"+t]=this.config,this.$root.$emit("nested-screen-updated"))})},errors(){return this.$refs.nestedScreen.isValid(),this.$refs.nestedScreen.errors}},watch:{screen(t){this.loadScreen(t)}},mounted(){this.loadScreen(this.screen)}};var oY=function(){var e=this,r=e._self._c;return e.ancestorScreens.includes(e.screenTitle)?e._e():r("vue-form-renderer",{ref:"nestedScreen",staticClass:"form-nested-screen",attrs:{placeholder:e.placeholder,config:e.validatedConfig,"ancestor-screens":[...e.ancestorScreens,e.screenTitle],mode:"preview",computed:e.computed,"custom-css":e.customCSS,watchers:e.watchers,"debug-context":"Nested Screen",_parent:e._parent},on:{"css-errors":function(i){e.cssErrors=i}},model:{value:e.data,callback:function(i){e.data=i},expression:"data"}})},lY=[],uY=ie(sY,oY,lY,!1,null,null);const Is=uY.exports,cne="",cY={name:"MustacheHelper"};var dY=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"mustache",attrs:{title:e.$t("This field accepts mustache syntax")}},[e._v(" {} ")])},fY=[],pY=ie(cY,dY,fY,!1,null,"8cef93f7");const Ti=pY.exports,hY="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjA1MTQgMy43Mzg4OUwxNS40NTc2IDIuMzMyNjVDMTYuMDY3OCAxLjcyMjQ1IDE3LjA1NzIgMS43MjI0NSAxNy42Njc0IDIuMzMyNjVDMTguMjc3NSAyLjk0Mjg0IDE4LjI3NzUgMy45MzIxNiAxNy42Njc0IDQuNTQyMzVMOC44MTg0OSAxMy4zOTEyQzguMzc3OTIgMTMuODMxOCA3LjgzNDUzIDE0LjE1NTYgNy4yMzc0MSAxNC4zMzM1TDUgMTVMNS42NjY0OCAxMi43NjI2QzUuODQ0MzUgMTIuMTY1NSA2LjE2ODIgMTEuNjIyMSA2LjYwODc3IDExLjE4MTVMMTQuMDUxNCAzLjczODg5Wk0xNC4wNTE0IDMuNzM4ODlMMTYuMjUgNS45Mzc0OU0xNSAxMS42NjY3VjE1LjYyNUMxNSAxNi42NjA1IDE0LjE2MDUgMTcuNSAxMy4xMjUgMTcuNUg0LjM3NUMzLjMzOTQ3IDE3LjUgMi41IDE2LjY2MDUgMi41IDE1LjYyNVY2Ljg3NDk5QzIuNSA1LjgzOTQ2IDMuMzM5NDcgNC45OTk5OSA0LjM3NSA0Ljk5OTk5SDguMzMzMzMiIHN0cm9rZT0iIzU5NjM3MiIgc3Ryb2tlLXdpZHRoPSIxLjI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==",mY="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNiAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjI4MzcgNi41TDkuOTk1MTkgMTRNNi4wMDQ4MSAxNEw1LjcxNjM1IDYuNU0xNC4wMjMgMy44MjU0N0MxNC4zMDggMy44Njg1MSAxNC41OTIgMy45MTQ1NiAxNC44NzUgMy45NjM1OE0xNC4wMjMgMy44MjU0N0wxMy4xMzMyIDE1LjM5MzhDMTMuMDU4IDE2LjM3MDcgMTIuMjQzNCAxNy4xMjUgMTEuMjYzNyAxNy4xMjVINC43MzYzMUMzLjc1NjU1IDE3LjEyNSAyLjk0MTk4IDE2LjM3MDcgMi44NjY4MyAxNS4zOTM4TDEuOTc2OTYgMy44MjU0N00xNC4wMjMgMy44MjU0N0MxMy4wNjc3IDMuNjgxMiAxMi4xMDEzIDMuNTcwNzEgMTEuMTI1IDMuNDk1MjdNMS4xMjUgMy45NjM1OEMxLjQwNzk4IDMuOTE0NTYgMS42OTE5OCAzLjg2ODUxIDEuOTc2OTYgMy44MjU0N00xLjk3Njk2IDMuODI1NDdDMi45MzIzMSAzLjY4MTIgMy44OTg3NCAzLjU3MDcxIDQuODc1IDMuNDk1MjdNMTEuMTI1IDMuNDk1MjdWMi43MzE4MkMxMS4xMjUgMS43NDkwMiAxMC4zNjYxIDAuOTI4NTI2IDkuMzgzODIgMC44OTcxMDNDOC45MjQzNSAwLjg4MjQwNSA4LjQ2MzA0IDAuODc1IDggMC44NzVDNy41MzY5NiAwLjg3NSA3LjA3NTY1IDAuODgyNDA1IDYuNjE2MTggMC44OTcxMDNDNS42MzM4OCAwLjkyODUyNiA0Ljg3NSAxLjc0OTAyIDQuODc1IDIuNzMxODJWMy40OTUyN00xMS4xMjUgMy40OTUyN0MxMC4wOTM4IDMuNDE1NTggOS4wNTE2NCAzLjM3NSA4IDMuMzc1QzYuOTQ4MzYgMy4zNzUgNS45MDYyIDMuNDE1NTggNC44NzUgMy40OTUyNyIgc3Ryb2tlPSIjNTk2MzcyIiBzdHJva2Utd2lkdGg9IjEuMjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K",dne="",vY={key:"__actions",label:"Actions",thClass:"text-right",tdClass:"text-right"},gY={components:{VueFormRenderer:Ci,MustacheHelper:Ti},mixins:[ef],props:["name","label","fields","value","editable","_config","form","validationData","formConfig","formComputed","formWatchers","_perPage","source","paginationOption","designerMode","bgcolormodern"],data(){return{editFormVersion:0,single:"",plural:"",addItem:{},editItem:{},editIndex:null,currentPage:1,paginatorPage:1,perPageSelectEnabled:!1,perPage:5,lastPage:1,css:{tableClass:"table table-hover table-responsive text-break mb-0 d-table",loadingClass:"loading",detailRowClass:"vuetable-detail-row",handleIcon:"grey sidebar icon",sortableIcon:"fas fa-sort",ascendingIcon:"fas fa-sort-up",descendingIcon:"fas fa-sort-down",ascendingClass:"ascending",descendingClass:"descending",renderIcon(t){return`<i class="${t.join(" ")}"></i>`}},initFormValues:{},currentRowIndex:null,collectionData:{},selectedRow:null,selectedRows:[],selectedIndex:null,rows:[],selectAll:!1,styleMode:"Classic",isPopoverVisible:null,popoverPosition:{top:"0px",left:"0px"}}},computed:{tableClassModern(){if(this.styleMode==="Modern")switch(this.bgcolormodern){case"alert alert-primary":return"record-list-table-primary";case"alert alert-success":return"record-list-table-success";case"alert alert-warning":return"record-list-table-warning";case"alert alert-secondary":return"record-list-table-secondary";default:return"record-list-table-secondary"}return""},indeterminate(){return this.selectedRows.length>0&&this.selectedRows.length<this.tableData.data.length},popupConfig(){const t=[];return t[this.form]=this.formConfig[this.form],t},debug(){return{perPageSelectEnabled:this.perPageSelectEnabled,perPageSelectEnabled2:this.$refs.pagination&&this.$refs.pagination.perPageSelectEnabled}},parentObj(){let t=this.$parent;for(;"transientData"in t.$props;)t=t.$parent;return t},dataManager(){if(this.$refs.vuetable){const t=this.$refs.vuetable.makePagination(this.value.length);return{pagination:t,data:this.value.slice(t.from-1,t.to)}}console.log("refs vuetable not exists")},tableData(){const t=Array.isArray(this.collectionData)&&this.collectionData.length?this.collectionData:Array.isArray(this.value)?this.value:[];this.value&&(this.selectedIndex=this.value.selectedRowIndex);const e=this.paginatorPage-1;this.lastPage=Math.ceil(t.length/this.perPage);const r={total:t.length,per_page:this.perPage,current_page:this.paginatorPage,last_page:this.lastPage,next_page_url:null,prev_page_url:null,from:e,to:t.length,data:t,lastSortConfig:!1};return this.selectedIndex!==null&&this.selectedIndex<r.data.length&&(this.selectedRow=r.data[this.selectedIndex]),Array.isArray(this.value)&&this.value.length>0&&this.rows.length===0&&this.value.forEach(i=>{i.hasOwnProperty("selectedRowsIndex")&&this.selectedRows.push(r.data[i.selectedRowsIndex])}),r},tableFields(){var e,r,i;const t=this.getTableFieldsFromDataSource();return this.editable&&!this.selfReferenced&&t.push(vY),((e=this.source)==null?void 0:e.sourceOptions)==="Collection"&&(["single-field","single-record"].includes((r=this.source)==null?void 0:r.dataSelectionOptions)&&t.unshift({key:"radio",label:"",sortable:!1}),((i=this.source)==null?void 0:i.dataSelectionOptions)==="multiple-records"&&t.unshift({key:"checkbox",label:"",sortable:!1})),t},selfReferenced(){return this.form&&this.form===this.$parent.currentPage}},watch:{"tableData.total":{deep:!0,handler(t){const e=Math.ceil(t/this.perPage);this.currentPage=this.currentPage>e?e:this.currentPage,this.currentPage=this.currentPage==0?1:this.currentPage}},validationData:{handler(t,e){var r,i,a,n,s,o,u;((r=this.source)==null?void 0:r.sourceOptions)==="Collection"&&((a=(i=this.source)==null?void 0:i.collectionFields)!=null&&a.pmql)&&this.onCollectionChange((s=(n=this.source)==null?void 0:n.collectionFields)==null?void 0:s.collectionId,(u=(o=this.source)==null?void 0:o.collectionFields)==null?void 0:u.pmql)},deep:!0,immediate:!1}},mounted(){var t,e,r,i,a,n,s;this._perPage&&(this.perPage=this._perPage),this.updateRowDataNamePrefix=G.debounce(this.updateRowDataNamePrefix,100),this.paginationOption!=null&&(this.perPage=this.paginationOption),((t=this.source)==null?void 0:t.sourceOptions)==="Collection"&&this.onCollectionChange((r=(e=this.source)==null?void 0:e.collectionFields)==null?void 0:r.collectionId,(a=(i=this.source)==null?void 0:i.collectionFields)==null?void 0:a.pmql),this.setStyleMode((n=this.designerMode)==null?void 0:n.designerOptions),this.$root.$emit("record-list-option",(s=this.source)==null?void 0:s.sourceOptions)},methods:{togglePopover(t,e,r){if(this.deleteIndex=G.find(this.tableData.data,{row_id:r}),this.isPopoverVisible=this.isPopoverVisible===t?null:t,this.isPopoverVisible!==null){const i=e.target.getBoundingClientRect();this.popoverPosition={top:`${i.bottom+window.scrollY}px`,left:`${i.left+window.scrollX}px`}}},hidePopover(){this.isPopoverVisible=null},popover_remove(){this.remove(),this.hidePopover()},rowClass(t){return this.isRowSelected(t)?"sel-row":""},isRowSelected(t){return this.selectedRows.includes(t)||this.selectedRow===t},setStyleMode(t){this.styleMode=t||"Classic"},selectAllRows(){if(this.allRowsSelected){const t=this.tableData.data.map((e,r)=>({...e,selectedRowsIndex:r}));this.selectedRows=t,this.collectionData=t,this.onMultipleSelectionChange()}else this.selectedRows=[],this.onMultipleSelectionChange()},componentOutput(t){this.$emit("input",t)},onRadioChange(t,e){var i;const r=(this.currentPage-1)*this.perPage+e;if((i=this.source)!=null&&i.singleField){let a=t[this.source.singleField];this.componentOutput(a)}else t={...t,selectedRowIndex:r},this.componentOutput(t)},onMultipleSelectionChange(t){this.collectionData.forEach((e,r)=>{this.selectedRows.forEach(i=>{this.areObjectsEqual(i,e)&&(i.selectedRowsIndex=r)})}),this.componentOutput(this.selectedRows),this.rows.push(t)},areObjectsEqual(t,e){const r=Object.keys(t),i=Object.keys(e);return r.length!==i.length?!1:r.every(a=>t[a]===e[a])},onCollectionChange(t,e){if(!e||e.trim()===""){this.fetchAllRecords(t);return}const r=this.processMustacheInPmql(e);r&&this.fetchRecordsWithPmql(t,r)},processMustacheInPmql(t){if(!t||!t.includes("{{"))return t;try{const e=this.validationData||{};let r=Kt.render(t,e);return this.hasEmptyValues(r)?(this.collectionData=[],null):(r=r.replace(/= ([^"'\s][^"']*[^"'\s]|[^"'\s]+)(?=\s|$)/g,'= "$1"'),r)}catch{return this.collectionData=[],null}},hasEmptyValues(t){return['= ""','= " "',"= null","= undefined"].some(r=>t.includes(r))},isValidPmql(t){return t&&t.trim()!==""&&!t.includes("{{")},fetchAllRecords(t){this.$dataProvider.getCollectionRecordsList(t,{}).then(e=>{const r=e.data;this.changeCollectionColumns(r,this.fields)}).catch(()=>{this.collectionData=[]})},fetchRecordsWithPmql(t,e){if(!this.isValidPmql(e)){this.collectionData=[];return}const r={params:{pmql:e}};this.$dataProvider.getCollectionRecordsList(t,r).then(i=>{const a=i.data;this.changeCollectionColumns(a,this.fields)}).catch(()=>{this.collectionData=[]}),this.$emit("change",this.field)},changeCollectionColumns(t,e){const r=e.optionsList;t.forEach(i=>{let a=i.data,n={};Object.keys(a).forEach(s=>{const o=r.find(u=>u.content===s);o&&(n[o.key]=a[s])}),i.data=n}),this.setCollectionIntoList(t)},setCollectionIntoList(t){const e=[];t.forEach(r=>{if(r.hasOwnProperty("data")){const i=r.data,a={};for(const[n,s]of Object.entries(i))a[n]=s;e.push(a)}}),this.collectionData=e,this.reapplyCollectionSelections(e)},reapplyCollectionSelections(t){if(!this.shouldPersistCollectionSelection()||!Array.isArray(this.selectedRows)||this.selectedRows.length===0)return;const e=this.selectedRows.reduce((i,a)=>{const n=this.getCollectionRowKey(a);if(!n)return i;const s=i.get(n)||0;return i.set(n,s+1),i},new Map);if(e.size===0){this.selectedRows=[];return}const r=[];t.forEach((i,a)=>{const n=this.getCollectionRowKey(i),s=e.get(n);s&&(i.selectedRowsIndex=a,r.push(i),s===1?e.delete(n):e.set(n,s-1))}),this.selectedRows=r},shouldPersistCollectionSelection(){var e,r,i,a;const t=(r=(e=this.source)==null?void 0:e.collectionFields)==null?void 0:r.pmql;return((i=this.source)==null?void 0:i.sourceOptions)==="Collection"&&((a=this.source)==null?void 0:a.dataSelectionOptions)==="multiple-records"&&typeof t=="string"&&t.trim().length>0},getCollectionRowKey(t){if(!t||typeof t!="object")return null;const e=Object.entries(t).filter(([r])=>r!=="selectedRowsIndex");return e.length===0?null:(e.sort(([r],[i])=>r>i?1:r<i?-1:0),JSON.stringify(e))},updateRowDataNamePrefix(){this.setUploadDataNamePrefix(this.currentRowIndex)},emitShownEvent(){window.ProcessMaker.EventBus.$emit("modal-shown")},formatIfDate(t){return ee.dateUtils.formatIfDate(t)},isImage(t,e){const r=G.get(e,t.key);return typeof r=="string"&&r.substr(0,11)==="data:image/"},isWebEntryFile(t,e){const r=G.get(e,t.key),i=/^webentry_.*:*$/;let a=r;return Array.isArray(r)&&(a=r[0].file),i.test(a)},formatIfWebEntryFile(t,e){return G.get(window,"PM4ConfigOverrides.requestFiles",{})[`${t.key}.${e.row_id}`].map(a=>a.file_name).join(", ")},isFiledownload(t){return t.key==="__filedownload"},setUploadDataNamePrefix(t=null){this.currentRowIndex=t;let e=null;t!==null&&this.editItem?e=this.editItem.row_id:this.addItem&&(e=this.addItem.row_id),this.$root.$emit("set-upload-data-name",this,t,e)},getTableFieldsFromDataSource(){var n;const{jsonData:t,key:e,value:r,dataName:i}=this.fields;let a={};return((n=this.source)==null?void 0:n.sourceOptions)==="Collection"?a=s=>({key:s[e||"key"],sortable:!0,label:s[e||"key"],tdClass:"table-column"}):a=s=>({key:s[e||"value"],sortable:!0,label:s[r||"content"],tdClass:"table-column"}),this.getValidFieldData(t,i).map(a)},getValidFieldData(t,e){let r=this.validationData[e];if(t)try{r=JSON.parse(t)}catch{r=[]}return Array.isArray(r)?r:[]},hideInformation(){this.$refs.infoModal.hide()},onPaginationData(t){this.$refs.pagination.setPaginationData(t)},onChangePerPage(t){this.perPage=parseInt(t)},onChangePage(t){t=="next"?this.paginatorPage+=1:t=="prev"?this.paginatorPage-=1:this.paginatorPage=t,this.paginatorPage<=0&&(this.paginatorPage=1),this.paginatorPage>this.lastPage&&(this.paginatorPage=this.lastPage)},showEditForm(t,e){const r=(this.currentPage-1)*this.perPage+t;this.editItem=JSON.parse(JSON.stringify(G.find(this.tableData.data,{row_id:e}))),this.editIndex=r,this.editFormVersion++,this.$nextTick(()=>{this.setUploadDataNamePrefix(r),this.$refs.editModal.show()})},edit(t){if(this.$refs.addRenderer.hasSubmitted(!0),this.$refs.editRenderer.$refs.renderer.$refs.component.$v.vdata.$invalid){t.preventDefault();return}const e=this.tableData.data?JSON.parse(JSON.stringify(this.tableData.data)):[],r=G.findIndex(e,{row_id:this.editItem.row_id});e[r]=JSON.parse(JSON.stringify(this.editItem)),delete e[r]._parent,this.$emit("input",e)},showAddForm(){const t=Math.random().toString(36).substring(2)+Date.now().toString(36);if(this.$set(this.addItem,"row_id",t),this.setUploadDataNamePrefix(),!this.form){this.$refs.infoModal.show();return}this.$refs.addModal.show();const{_parent:e,...r}=this.addItem;this.initFormValues=G.cloneDeep(r)},handleHideAddModal(){this.addItem=this.initFormValues,this.$refs.addRenderer.hasSubmitted(!1)},async handleOk(t){if(this.$refs.addRenderer.hasSubmitted(!0),t.preventDefault(),this.$refs.addRenderer.$refs.renderer.$refs.component.$v.vdata.$invalid)return;const e=this.value?JSON.parse(JSON.stringify(this.value)):[],r=JSON.parse(JSON.stringify({...this.addItem,_parent:void 0}));delete r._parent,e[e.length]=r,this.$emit("input",e),this.addItem={},this.$nextTick(()=>{this.$refs.addModal.hide()})},showDeleteConfirmation(t,e){this.deleteIndex=G.find(this.tableData.data,{row_id:e}),this.$refs.deleteModal.show()},downloadFile(t,e,r){const i=this.$root.task.request_data._request.id,a=`${this.name}.${r}.${e}`;window.ProcessMaker.apiClient.get(`requests/${i}/files?name=${a}`).then(n=>{const s=n.data;if(s&&s.data&&s.data.length){const o=s.data[0];this.downloadRecordListFile(o,i)}})},downloadRecordListFile(t,e){window.ProcessMaker.apiClient({baseURL:"/",url:`/request/${e}/files/${t.id}`,method:"GET",responseType:"blob"}).then(r=>{const i=window.URL.createObjectURL(new Blob([r.data])),a=document.createElement("a");a.href=i,a.setAttribute("download",t.file_name),document.body.appendChild(a),a.click()})},remove(){const t=this.tableData.data?JSON.parse(JSON.stringify(this.tableData.data)):[],e=this.deleteIndex;G.remove(t,{row_id:this.deleteIndex.row_id}),this.$emit("input",t),this.$root.$emit("removed-record",this,e)}}};var bY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"data-table overflow-auto"},[r("div",{staticClass:"row mb-2 ml-0 mr-0"},[r("div",{staticClass:"col"},[r("h4",[e._v(e._s(e.label))])]),e.styleMode==="Classic"?r("div",{staticClass:"col text-right"},[e.editable&&!e.selfReferenced?r("button",{staticClass:"btn btn-primary",attrs:{"data-cy":"add-row"},on:{click:e.showAddForm}},[e._v(" "+e._s(e.$t("Add"))+" ")]):e._e()]):e._e()]),!e.value&&!e.tableData.data?r("div",[e._v(" "+e._s(e.$t("This record list is empty or contains no data."))+" ")]):[r("b-table",{ref:"vuetable",class:e.tableClassModern,attrs:{"per-page":e.perPage,"data-manager":e.dataManager,fields:e.tableFields,items:e.tableData.data,"sort-compare-options":{numeric:!1},"sort-null-last":!0,"sort-icon-left":"",css:e.css,"empty-text":e.$t("No Data Available"),"current-page":e.currentPage,"data-cy":"table","tbody-tr-class":e.rowClass},scopedSlots:e._u([{key:"head(checkbox)",fn:function(i){return[r("b-form-checkbox",{attrs:{indeterminate:e.indeterminate,"aria-label":"Select All"},on:{change:e.selectAllRows},model:{value:e.allRowsSelected,callback:function(a){e.allRowsSelected=a},expression:"allRowsSelected"}})]}},{key:"cell(checkbox)",fn:function({index:i,item:a}){return[r("b-form-checkbox",{attrs:{value:a},on:{change:function(n){return e.onMultipleSelectionChange(i)}},model:{value:e.selectedRows,callback:function(n){e.selectedRows=n},expression:"selectedRows"}})]}},{key:"cell(radio)",fn:function({index:i,item:a}){return[r("b-form-radio",{attrs:{value:a},on:{change:function(n){return e.onRadioChange(a,i)}},model:{value:e.selectedRow,callback:function(n){e.selectedRow=n},expression:"selectedRow"}})]}},{key:"cell()",fn:function({index:i,field:a,item:n}){return[e.isFiledownload(a,n)?[r("span",{attrs:{href:"#"},on:{click:function(s){return e.downloadFile(n,a.key,i)}}},[e._v(e._s(e.mustache(a.key,n)))])]:e.isImage(a,n)?[r("img",{staticStyle:{},attrs:{src:e.mustache(a.key,n)}})]:e.isWebEntryFile(a,n)?[e._v(" "+e._s(e.formatIfWebEntryFile(a,n))+" ")]:[e._v(" "+e._s(e.formatIfDate(e.mustache(a.key,n)))+" ")]]}},{key:"cell(__actions)",fn:function({index:i,item:a}){return[r("div",{staticClass:"actions"},[r("div",{staticClass:"btn-group btn-group-sm",attrs:{role:"group","aria-label":"Actions"}},[r("button",{class:{btn:!0,"btn-primary":e.styleMode==="Classic"},attrs:{title:e.$t("Edit"),"data-cy":"edit-row"},on:{click:function(n){return e.showEditForm(i,a.row_id)}}},[e.styleMode==="Classic"?r("i",{staticClass:"fas fa-edit"}):r("img",{attrs:{src:hY,alt:"edit"}})]),r("button",{ref:"deleteButton",class:{btn:!0,"btn-danger":e.styleMode==="Classic"},attrs:{title:e.$t("Delete"),"data-cy":"remove-row",popover:"manual"},on:{click:function(n){e.styleMode==="Modern"?e.togglePopover(i,n,a.row_id):e.showDeleteConfirmation(i,a.row_id)}}},[e.styleMode==="Classic"?r("i",{staticClass:"fas fa-trash-alt"}):r("img",{attrs:{src:mY,alt:"delete"}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPopoverVisible===i,expression:"isPopoverVisible === index"}],staticClass:"popover-content"},[r("p",[e._v("Are you sure you want to delete it?")]),r("button",{staticClass:"btn btn-light",on:{click:e.hidePopover}},[e._v("CANCEL")]),r("button",{staticClass:"btn btn-danger",on:{click:function(n){return e.popover_remove()}}},[e._v("DELETE")])])])])]}}])}),r("div",{staticClass:"d-flex justify-content-between align-items-center"},[r("div",{staticClass:"col text-left"},[e.tableData.total>e.perPage&&e.perPage!==0?r("b-pagination",{attrs:{"data-cy":"table-pagination","total-rows":e.tableData.total,"per-page":e.perPage,"aria-label":e.$t("Pagination"),"aria-controls":"vuetable"},on:{change:e.onChangePage},model:{value:e.currentPage,callback:function(i){e.currentPage=i},expression:"currentPage"}}):e._e()],1),e.styleMode==="Modern"?r("div",{staticClass:"col text-right"},[e.editable&&!e.selfReferenced?r("button",{staticClass:"btn btn-link text-primary class-button-modern",attrs:{"data-cy":"add-row"},on:{click:e.showAddForm}},[r("span",{staticClass:"mr-1"},[e._v("+")]),e._v(" "+e._s(e.$t("Add"))+" ")]):e._e()]):e._e()])],e.editable&&!e.selfReferenced?r("b-modal",{ref:"addModal",attrs:{static:!0,size:"lg","ok-title":e.$t("Ok"),"cancel-title":e.$t("Cancel"),title:e.$t("Add"),"header-close-content":"×","data-cy":"modal-add"},on:{ok:e.handleOk,hidden:e.handleHideAddModal,shown:e.emitShownEvent}},[r("vue-form-renderer",{key:Array.isArray(e.value)?e.value.length:0,ref:"addRenderer",attrs:{page:0,config:e.popupConfig,"current-page":e.form,computed:e.formComputed,watchers:e.formWatchers,"debug-context":"Record List Add",_parent:e.validationData},on:{update:e.updateRowDataNamePrefix},model:{value:e.addItem,callback:function(i){e.addItem=i},expression:"addItem"}})],1):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"editModal",attrs:{static:!0,size:"lg","ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),title:e.$t("Edit Record"),"header-close-content":"×","data-cy":"modal-edit"},on:{ok:e.edit,hidden:function(i){return e.$refs.addRenderer.hasSubmitted(!1)},shown:e.emitShownEvent}},[r("vue-form-renderer",{key:e.editFormVersion,ref:"editRenderer",attrs:{page:0,config:e.popupConfig,"current-page":e.form,computed:e.formComputed,watchers:e.formWatchers,"debug-context":"Record List Edit",_parent:e.validationData},on:{update:e.updateRowDataNamePrefix},model:{value:e.editItem,callback:function(i){e.editItem=i},expression:"editItem"}})],1):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"deleteModal",attrs:{size:"lg","ok-title":e.$t("Delete"),"cancel-title":e.$t("Cancel"),title:e.$t("Delete Record"),"header-close-content":"×","data-cy":"modal-remove"},on:{ok:e.remove}},[r("p",[e._v(e._s(e.$t("Are you sure you want to remove this record?")))])]):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"infoModal",attrs:{size:"sm","ok-title":e.$t("OK"),title:e.$t("Information form"),"header-close-content":"×","ok-only":"","data-cy":"modal-not-assigned"},on:{ok:e.hideInformation}},[r("p",[e._v(e._s(e.$t("The form to be displayed is not assigned.")))])]):e._e(),e.editable&&e.selfReferenced?r("div",{staticClass:"alert alert-danger"},[e._v(" "+e._s(e.$t("The Record List control is not allowed to reference other controls on its own page to add or edit records. Specify a secondary page with controls to enter records."))+" ")]):e._e()],2)},yY=[],xY=ie(gY,bY,yY,!1,null,null);const Eu=xY.exports,wY={name:"FormRecordListStatic",components:{},mixins:[ef],props:["label","fields","value","editable","_config","form"],mounted(){},methods:{formatIfDate(t){return ee.formatIfDate(t)}}};var SY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"record-list"},[r("h4",[e._v(e._s(e.$t(e.label)))]),r("table",[r("thead",[r("tr",e._l(e.fields,function(i,a){return r("th",{key:a},[e._v(" "+e._s(i.content)+" ")])}),0)]),r("tbody",e._l(e.value,function(i,a){return r("tr",{key:a},e._l(e.fields,function(n,s){return r("td",{key:s},[e._v(" "+e._s(e.formatIfDate(e.mustache(n.value,i)))+" ")])}),0)}),0)])])},PY=[],CY=ie(wY,SY,PY,!1,null,null);const aS=CY.exports,TY={props:["label","fontSize","fontWeight","textAlign","verticalAlign","validationData","color","name"],computed:{styles(){return{fontSize:this.fontSize,fontWeight:this.fontWeight,textAlign:this.textAlign,verticalAlign:this.verticalAlign,color:this.color}},rendered(){if(!this.validationData)return this.label;try{return Kt.render(this.label,this.validationData)}catch{return this.label}}}};var kY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("div",{style:e.styles,domProps:{innerHTML:e._s(e.rendered)}})])},MY=[],DY=ie(TY,kY,MY,!1,null,null);const ju=DY.exports,AY={};var OY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"row"},[e._t("default")],2)},zY=[],EY=ie(AY,OY,zY,!1,null,null);const yp=EY.exports,jY="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ2IiBoZWlnaHQ9IjE1MyIgdmlld0JveD0iMCAwIDE0NiAxNTMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMTUuMDAxIDMzLjQ5OTZDMTE1LjAwMSA0MC4xMjczIDEyMC4zNzQgNDUuNSAxMjcuMDAxIDQ1LjVDMTMzLjYyOCA0NS41IDEzOS4wMDEgNDAuMTI3MyAxMzkuMDAxIDMzLjQ5OTZDMTM5LjAwMSAyNi44NzI3IDEzMy42MjggMjEuNSAxMjcuMDAxIDIxLjVDMTIwLjM3NCAyMS41IDExNS4wMDEgMjYuODcyNyAxMTUuMDAxIDMzLjQ5OTZaIiBmaWxsPSIjN0NEMEIwIi8+CjxwYXRoIGQ9Ik0xMjcuOTA3IDI2LjkzMjNMMTI5LjEwOCAzMC42MzA0SDEzMi45OThDMTMzLjYwMyAzMC42MzA0IDEzMy44NTYgMzEuNDA1MyAxMzMuMzY1IDMxLjc2MjFMMTMwLjIxOSAzNC4wNDc0TDEzMS40MjEgMzcuNzQ2NEMxMzEuNjA4IDM4LjMyMTkgMTMwLjk0OSAzOC44MDA3IDEzMC40NTkgMzguNDQ1N0wxMjcuMzEyIDM2LjE1ODdMMTI0LjE2NiAzOC40NDU3QzEyMy42NzcgMzguODAwNyAxMjMuMDE3IDM4LjMyMTkgMTIzLjIwNCAzNy43NDY0TDEyNC40MDYgMzQuMDQ3NEwxMjEuMjYgMzEuNzYyMUMxMjAuNzcgMzEuNDA1MyAxMjEuMDIyIDMwLjYzMDQgMTIxLjYyNyAzMC42MzA0SDEyNS41MTZMMTI2LjcxOCAyNi45MzIzQzEyNi45MDYgMjYuMzU1OSAxMjcuNzIgMjYuMzU1OSAxMjcuOTA3IDI2LjkzMjNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNODIuMzQ5MSAwLjc5Mjk2OUM3OS44NTk3IDguMjYwOTcgNzQuMTkwNCA5LjA5MDI5IDc0LjE5MDQgOS4wOTAyOUM3NC4xOTA0IDkuMDkwMjkgNzkuODU5NyA5LjkyMDk3IDgyLjM0OTEgMTcuMzg3NkM4NC44Mzg0IDkuOTIwOTcgOTAuNTA3OCA5LjA5MDI5IDkwLjUwNzggOS4wOTAyOUM5MC41MDc4IDkuMDkwMjkgODQuODM4NCA4LjI2MDk3IDgyLjM0OTEgMC43OTI5NjlaIiBmaWxsPSIjREVFRkZBIi8+CjxwYXRoIGQ9Ik00OS4zNTA0IDEzNS43OTNDNDYuODU5OCAxNDMuMjYxIDQxLjE5MDQgMTQ0LjA5IDQxLjE5MDQgMTQ0LjA5QzQxLjE5MDQgMTQ0LjA5IDQ2Ljg1OTggMTQ0LjkyIDQ5LjM1MDQgMTUyLjM4OEM1MS44Mzg0IDE0NC45MiA1Ny41MDkxIDE0NC4wOSA1Ny41MDkxIDE0NC4wOUM1Ny41MDkxIDE0NC4wOSA1MS44Mzg0IDE0My4yNjEgNDkuMzUwNCAxMzUuNzkzWiIgZmlsbD0iI0RFRUZGQSIvPgo8cGF0aCBkPSJNMTM5LjkwMiA5My43OTNDMTM4LjE1OCA5OS4wMjEgMTM0LjE5IDk5LjYwMjMgMTM0LjE5IDk5LjYwMjNDMTM0LjE5IDk5LjYwMjMgMTM4LjE1OCAxMDAuMTgyIDEzOS45MDIgMTA1LjQwOUMxNDEuNjQ1IDEwMC4xODIgMTQ1LjYxMyA5OS42MDIzIDE0NS42MTMgOTkuNjAyM0MxNDUuNjEzIDk5LjYwMjMgMTQxLjY0NSA5OS4wMjEgMTM5LjkwMiA5My43OTNaIiBmaWxsPSIjREVFRkZBIi8+CjxwYXRoIGQ9Ik04LjkwMTEyIDMwLjc5M0M3LjE1OTc5IDM2LjAxOTYgMy4xOTA0MyAzNi42MDEgMy4xOTA0MyAzNi42MDFDMy4xOTA0MyAzNi42MDEgNy4xNTk3OSAzNy4xODEgOC45MDExMiA0Mi40MDc2QzEwLjY0MzggMzcuMTgxIDE0LjYxMzEgMzYuNjAxIDE0LjYxMzEgMzYuNjAxQzE0LjYxMzEgMzYuNjAxIDEwLjY0MzggMzYuMDE5NiA4LjkwMTEyIDMwLjc5M1oiIGZpbGw9IiNERUVGRkEiLz4KPHBhdGggZD0iTTEyMS45NTYgNzUuNjcwMkMxMjEuOTU2IDEwNC44NzYgOTguMjc4NSAxMjguNTUzIDY5LjA3MzIgMTI4LjU1M0MzOS44Njc5IDEyOC41NTMgMTYuMTkwNCAxMDQuODc2IDE2LjE5MDQgNzUuNjcwMkMxNi4xOTA0IDQ2LjQ2NDkgMzkuODY3OSAyMi43OTMgNjkuMDczMiAyMi43OTNDOTguMjc4NSAyMi43OTMgMTIxLjk1NiA0Ni40NjQ5IDEyMS45NTYgNzUuNjcwMloiIGZpbGw9IiNERUVGRkEiLz4KPHBhdGggZD0iTTQ3LjYzNjQgODEuOTYyNUw2My4yNDYzIDkzLjM2ODdDNjQuNzg5NyA5NC40OTYyIDY2Ljk1NyA5NC4yMDA3IDY4LjEzOTMgOTIuNjk1NUw5MS42OTA4IDYyLjc4NDFDOTIuOTA1OCA2MS4yMzUxIDkyLjY0MzEgNTkuMDAyMSA5MS4wOTQxIDU3Ljc4N0M4OS41NTA3IDU2LjU3MTkgODcuMzE3NiA1Ni44MzQ3IDg2LjEwMjYgNTguMzc4MUw2NC42NzQ3IDg1LjYwMjFMNTEuODM0NiA3Ni4yMTU1QzUwLjI0NzMgNzUuMDYwNiA0OC4wMTk2IDc1LjQwNTUgNDYuODU5MiA3Ni45OTI3QzQ1LjcwNDQgNzguNTc5OSA0Ni4wNDkyIDgwLjgwMjEgNDcuNjM2NCA4MS45NjI1WiIgZmlsbD0iIzREODJDNiIvPgo8cGF0aCBkPSJNMC40MDAzOTEgMTI1Ljc1QzAuNDAwMzkxIDEzMy42MiA2Ljc4MDM5IDE0MCAxNC42NTEgMTQwQzIyLjUyMjUgMTQwIDI4LjkwMzQgMTMzLjYyIDI4LjkwMzQgMTI1Ljc1QzI4LjkwMzQgMTE3Ljg3OSAyMi41MjI1IDExMS41IDE0LjY1MSAxMTEuNUM2Ljc4MDM5IDExMS41IDAuNDAwMzkxIDExNy44NzkgMC40MDAzOTEgMTI1Ljc1WiIgZmlsbD0iIzc3QTlGMiIvPgo8cGF0aCBkPSJNMTYuMzE4NyAxMzAuMzI5QzE0LjE2MjUgMTMwLjM2NiAxMS45Nzk0IDEzMC4zOTUgOS45OTY5NSAxMzAuMjU4QzkuMzY5ODggMTMwLjIxNSA4LjgyNyAxMjkuMjE3IDkuNTg5MzQgMTI4LjkwM0M5LjI2ODY0IDEyOC43MzggOC45NDM1IDEyOC41NzkgOC44MDM3NSAxMjguMjE5QzguNjcxMTcgMTI3Ljg4IDguODI5NyAxMjcuNDE3IDkuMTg1MzQgMTI3LjMzQzguNDM3MzMgMTI3LjUxNCA4LjE0MjYxIDEyNi4zMjggOC43MjU3OCAxMjUuOTQ1QzguNDE2NzMgMTI1LjY4MiA4LjE1OTY1IDEyNS4zMzUgOC4wOTUxNSAxMjQuOTM1QzguMDI5NzUgMTI0LjUzNCA4LjE5MzY4IDEyNC4wODIgOC41NTAyMiAxMjMuODg4QzguNzg0MDMgMTIzLjc2MSA5LjA2MDg0IDEyMy43NTcgOS4zMjY4OSAxMjMuNzU1QzEwLjIyMzYgMTIzLjc0OCAxMS4xMjAzIDEyMy43NDEgMTIuMDE3IDEyMy43MzRDMTEuNzc0MiAxMjIuMzMyIDExLjcwMDggMTIwLjgwMyAxMi40MTM4IDExOS41NzFDMTIuNjI4OCAxMTkuMTk5IDEzLjIwNTggMTE4Ljc1NSAxMy42NjM1IDExOS4wNEMxNC4wOTI2IDExOS4zMDggMTMuOTc0MyAxMTkuOTczIDEzLjk1MTkgMTIwLjM5M0MxMy44NjMzIDEyMi4xMzggMTQuODU1OSAxMjMuODkzIDE2LjM5NzYgMTI0LjcxNUMxNi4zOTc2IDEyNC43MTUgMTYuMjk1NCAxMjguNDMzIDE2LjMxODcgMTMwLjMyOVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xNy4xMDI1IDEzMC4zMTVIMjAuMzYxNVYxMjQuNzA3SDE3LjEwMjVWMTMwLjMxNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",fne="",IY={props:["title","link","url"],data(){return{linkText:`View All ${this.link}`}},methods:{openLink(){window.open(this.url,"_blank")}}};var NY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"container content"},[r("img",{attrs:{src:jY,alt:"empty table"}}),r("span",{staticClass:"title"},[e._v(" "+e._s(e.$t(e.title))+" ")]),e.url!==""?r("b-link",{on:{click:function(i){return e.openLink()}}},[e._v(" "+e._s(e.$t(e.linkText))+" ")]):e._e()],1)},LY=[],FY=ie(IY,NY,LY,!1,null,"7665402d");const xp=FY.exports,RY="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDQuOEwxLjA2NjY3IDAuMzIwMDAzVjBIMFYxMC42NjY3VjE1LjczMzNIMS4wNjY2N1YxMC4yNjY3TDE2IDQuOFoiIGZpbGw9IiM1NTYyNzEiLz4KPC9zdmc+Cg==",pne="",BY=Dn(),HY={components:{formEmpty:xp,Recommendations:t=>{var e;t(((e=window.SharedComponents)==null?void 0:e.Recommendations)||{template:"<span></span>"})}},mixins:[BY,Ac],data(){var t,e;return{countInProgress:"0",countOverdue:"0",countResponse:"0",fields:[],data:[],tableData:[],orderBy:"ID",order_direction:"DESC",status:"",showTable:!0,tableHeaders:[],pmqlSearch:"",sortOrder:[{field:"ID",sortField:"ID",direction:"DESC"}],advancedFilter:"",tasksPreview:((t=window.SharedComponents)==null?void 0:t.TasksHome)||{},taskTooltip:((e=window.SharedComponents)==null?void 0:e.TaskTooltip)||{},rowPosition:{},ellipsisShow:!1,isTooltipVisible:!1,disableRuleTooltip:!1,hiderTimer:null}},computed:{noDataUrl(){var t,e;return`${(e=(t=window.ProcessMaker)==null?void 0:t.app)==null?void 0:e.url}/tasks`}},mounted(){this.setupColumns(),this.pmql=`(user_id = ${ProcessMaker.user.id}) AND (status = "In Progress")`,this.fetch(),this.$root.$on("dropdownSelectionTask",this.fetchData),this.$root.$on("searchTask",this.fetchSearch)},methods:{getSortParam(){return this.sortOrder instanceof Array&&this.sortOrder.length>0?`&order_by=${this.sortOrder[0].sortField}&order_direction=${this.sortOrder[0].direction}`:""},fetch(){Vue.nextTick(()=>{let t="",e="";this.pmql!==void 0&&(t=this.pmql),this.pmqlSearch&&(t=`${t} AND ${this.pmqlSearch}`),this.filterDropdowns!==void 0&&(e=this.filterDropdowns);let{filter:r}=this,i="";r&&r.length&&(r.isPMQL()?(t=`(${t}) and (${r})`,r=""):i=`&user_id=${window.ProcessMaker.user.id}&filter=${r}&statusfilter=ACTIVE,CLOSED`),this.previousFilter!==r&&(this.page=1),this.previousFilter=r,this.previousPmql!==t&&(this.page=1),this.previousPmql=t;const a=[];ProcessMaker.apiClient.get(`tasks?page=${this.page}&include=process,processRequest,processRequest.user,user,data&pmql=${encodeURIComponent(t)}
|
|
359
|
+
| <mf-value> '>' '='? <mf-name> '>' '='? <mf-value>`},"mf-value":{syntax:"<number> | <dimension> | <ident> | <ratio>"},"min()":{syntax:"min( <calc-sum># )"},"minmax()":{syntax:"minmax( [ <length> | <percentage> | min-content | max-content | auto ] , [ <length> | <percentage> | <flex> | min-content | max-content | auto ] )"},"named-color":{syntax:"transparent | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen"},"namespace-prefix":{syntax:"<ident>"},"ns-prefix":{syntax:"[ <ident-token> | '*' ]? '|'"},"number-percentage":{syntax:"<number> | <percentage>"},"numeric-figure-values":{syntax:"[ lining-nums | oldstyle-nums ]"},"numeric-fraction-values":{syntax:"[ diagonal-fractions | stacked-fractions ]"},"numeric-spacing-values":{syntax:"[ proportional-nums | tabular-nums ]"},nth:{syntax:"<an-plus-b> | even | odd"},"opacity()":{syntax:"opacity( [ <number-percentage> ] )"},"overflow-position":{syntax:"unsafe | safe"},"outline-radius":{syntax:"<length> | <percentage>"},"page-body":{syntax:"<declaration>? [ ; <page-body> ]? | <page-margin-box> <page-body>"},"page-margin-box":{syntax:"<page-margin-box-type> '{' <declaration-list> '}'"},"page-margin-box-type":{syntax:"@top-left-corner | @top-left | @top-center | @top-right | @top-right-corner | @bottom-left-corner | @bottom-left | @bottom-center | @bottom-right | @bottom-right-corner | @left-top | @left-middle | @left-bottom | @right-top | @right-middle | @right-bottom"},"page-selector-list":{syntax:"[ <page-selector># ]?"},"page-selector":{syntax:"<pseudo-page>+ | <ident> <pseudo-page>*"},"path()":{syntax:"path( [ <fill-rule>, ]? <string> )"},"paint()":{syntax:"paint( <ident>, <declaration-value>? )"},"perspective()":{syntax:"perspective( <length> )"},"polygon()":{syntax:"polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )"},position:{syntax:"[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"},"pseudo-class-selector":{syntax:"':' <ident-token> | ':' <function-token> <any-value> ')'"},"pseudo-element-selector":{syntax:"':' <pseudo-class-selector>"},"pseudo-page":{syntax:": [ left | right | first | blank ]"},quote:{syntax:"open-quote | close-quote | no-open-quote | no-close-quote"},"radial-gradient()":{syntax:"radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"relative-selector":{syntax:"<combinator>? <complex-selector>"},"relative-selector-list":{syntax:"<relative-selector>#"},"relative-size":{syntax:"larger | smaller"},"repeat-style":{syntax:"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}"},"repeating-linear-gradient()":{syntax:"repeating-linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"repeating-radial-gradient()":{syntax:"repeating-radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"rgb()":{syntax:"rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )"},"rgba()":{syntax:"rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )"},"rotate()":{syntax:"rotate( [ <angle> | <zero> ] )"},"rotate3d()":{syntax:"rotate3d( <number> , <number> , <number> , [ <angle> | <zero> ] )"},"rotateX()":{syntax:"rotateX( [ <angle> | <zero> ] )"},"rotateY()":{syntax:"rotateY( [ <angle> | <zero> ] )"},"rotateZ()":{syntax:"rotateZ( [ <angle> | <zero> ] )"},"saturate()":{syntax:"saturate( <number-percentage> )"},"scale()":{syntax:"scale( <number> , <number>? )"},"scale3d()":{syntax:"scale3d( <number> , <number> , <number> )"},"scaleX()":{syntax:"scaleX( <number> )"},"scaleY()":{syntax:"scaleY( <number> )"},"scaleZ()":{syntax:"scaleZ( <number> )"},"self-position":{syntax:"center | start | end | self-start | self-end | flex-start | flex-end"},"shape-radius":{syntax:"<length-percentage> | closest-side | farthest-side"},"skew()":{syntax:"skew( [ <angle> | <zero> ] , [ <angle> | <zero> ]? )"},"skewX()":{syntax:"skewX( [ <angle> | <zero> ] )"},"skewY()":{syntax:"skewY( [ <angle> | <zero> ] )"},"sepia()":{syntax:"sepia( <number-percentage> )"},shadow:{syntax:"inset? && <length>{2,4} && <color>?"},"shadow-t":{syntax:"[ <length>{2,3} && <color>? ]"},shape:{syntax:"rect(<top>, <right>, <bottom>, <left>)"},"shape-box":{syntax:"<box> | margin-box"},"side-or-corner":{syntax:"[ left | right ] || [ top | bottom ]"},"single-animation":{syntax:"<time> || <timing-function> || <time> || <single-animation-iteration-count> || <single-animation-direction> || <single-animation-fill-mode> || <single-animation-play-state> || [ none | <keyframes-name> ]"},"single-animation-direction":{syntax:"normal | reverse | alternate | alternate-reverse"},"single-animation-fill-mode":{syntax:"none | forwards | backwards | both"},"single-animation-iteration-count":{syntax:"infinite | <number>"},"single-animation-play-state":{syntax:"running | paused"},"single-transition":{syntax:"[ none | <single-transition-property> ] || <time> || <timing-function> || <time>"},"single-transition-property":{syntax:"all | <custom-ident>"},size:{syntax:"closest-side | farthest-side | closest-corner | farthest-corner | <length> | <length-percentage>{2}"},"step-position":{syntax:"jump-start | jump-end | jump-none | jump-both | start | end"},"step-timing-function":{syntax:"step-start | step-end | steps(<integer>[, <step-position>]?)"},"subclass-selector":{syntax:"<id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector>"},"supports-condition":{syntax:"not <supports-in-parens> | <supports-in-parens> [ and <supports-in-parens> ]* | <supports-in-parens> [ or <supports-in-parens> ]*"},"supports-in-parens":{syntax:"( <supports-condition> ) | <supports-feature> | <general-enclosed>"},"supports-feature":{syntax:"<supports-decl> | <supports-selector-fn>"},"supports-decl":{syntax:"( <declaration> )"},"supports-selector-fn":{syntax:"selector( <complex-selector> )"},symbol:{syntax:"<string> | <image> | <custom-ident>"},target:{syntax:"<target-counter()> | <target-counters()> | <target-text()>"},"target-counter()":{syntax:"target-counter( [ <string> | <url> ] , <custom-ident> , <counter-style>? )"},"target-counters()":{syntax:"target-counters( [ <string> | <url> ] , <custom-ident> , <string> , <counter-style>? )"},"target-text()":{syntax:"target-text( [ <string> | <url> ] , [ content | before | after | first-letter ]? )"},"time-percentage":{syntax:"<time> | <percentage>"},"timing-function":{syntax:"linear | <cubic-bezier-timing-function> | <step-timing-function>"},"track-breadth":{syntax:"<length-percentage> | <flex> | min-content | max-content | auto"},"track-list":{syntax:"[ <line-names>? [ <track-size> | <track-repeat> ] ]+ <line-names>?"},"track-repeat":{syntax:"repeat( [ <positive-integer> ] , [ <line-names>? <track-size> ]+ <line-names>? )"},"track-size":{syntax:"<track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( [ <length> | <percentage> ] )"},"transform-function":{syntax:"<matrix()> | <translate()> | <translateX()> | <translateY()> | <scale()> | <scaleX()> | <scaleY()> | <rotate()> | <skew()> | <skewX()> | <skewY()> | <matrix3d()> | <translate3d()> | <translateZ()> | <scale3d()> | <scaleZ()> | <rotate3d()> | <rotateX()> | <rotateY()> | <rotateZ()> | <perspective()>"},"transform-list":{syntax:"<transform-function>+"},"translate()":{syntax:"translate( <length-percentage> , <length-percentage>? )"},"translate3d()":{syntax:"translate3d( <length-percentage> , <length-percentage> , <length> )"},"translateX()":{syntax:"translateX( <length-percentage> )"},"translateY()":{syntax:"translateY( <length-percentage> )"},"translateZ()":{syntax:"translateZ( <length> )"},"type-or-unit":{syntax:"string | color | url | integer | number | length | angle | time | frequency | cap | ch | em | ex | ic | lh | rlh | rem | vb | vi | vw | vh | vmin | vmax | mm | Q | cm | in | pt | pc | px | deg | grad | rad | turn | ms | s | Hz | kHz | %"},"type-selector":{syntax:"<wq-name> | <ns-prefix>? '*'"},"var()":{syntax:"var( <custom-property-name> , <declaration-value>? )"},"viewport-length":{syntax:"auto | <length-percentage>"},"wq-name":{syntax:"<ns-prefix>? <ident-token>"}},ZW={atrules:{charset:{prelude:"<string>"},"font-face":{descriptors:{"unicode-range":{comment:"replaces <unicode-range>, an old production name",syntax:"<urange>#"}}}},properties:{"-moz-background-clip":{comment:"deprecated syntax in old Firefox, https://developer.mozilla.org/en/docs/Web/CSS/background-clip",syntax:"padding | border"},"-moz-border-radius-bottomleft":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius",syntax:"<'border-bottom-left-radius'>"},"-moz-border-radius-bottomright":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius",syntax:"<'border-bottom-right-radius'>"},"-moz-border-radius-topleft":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius",syntax:"<'border-top-left-radius'>"},"-moz-border-radius-topright":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius",syntax:"<'border-bottom-right-radius'>"},"-moz-control-character-visibility":{comment:"firefox specific keywords, https://bugzilla.mozilla.org/show_bug.cgi?id=947588",syntax:"visible | hidden"},"-moz-osx-font-smoothing":{comment:"misssed old syntax https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth",syntax:"auto | grayscale"},"-moz-user-select":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/user-select",syntax:"none | text | all | -moz-none"},"-ms-flex-align":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align",syntax:"start | end | center | baseline | stretch"},"-ms-flex-item-align":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align",syntax:"auto | start | end | center | baseline | stretch"},"-ms-flex-line-pack":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-line-pack",syntax:"start | end | center | justify | distribute | stretch"},"-ms-flex-negative":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-shrink'>"},"-ms-flex-pack":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-pack",syntax:"start | end | center | justify | distribute"},"-ms-flex-order":{comment:"misssed old syntax implemented in IE; https://msdn.microsoft.com/en-us/library/jj127303(v=vs.85).aspx",syntax:"<integer>"},"-ms-flex-positive":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-grow'>"},"-ms-flex-preferred-size":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-basis'>"},"-ms-interpolation-mode":{comment:"https://msdn.microsoft.com/en-us/library/ff521095(v=vs.85).aspx",syntax:"nearest-neighbor | bicubic"},"-ms-grid-column-align":{comment:"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466338.aspx",syntax:"start | end | center | stretch"},"-ms-grid-row-align":{comment:"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466348.aspx",syntax:"start | end | center | stretch"},"-ms-hyphenate-limit-last":{comment:"misssed old syntax implemented in IE; https://www.w3.org/TR/css-text-4/#hyphenate-line-limits",syntax:"none | always | column | page | spread"},"-webkit-appearance":{comment:"webkit specific keywords",references:["http://css-infos.net/property/-webkit-appearance"],syntax:"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button"},"-webkit-background-clip":{comment:"https://developer.mozilla.org/en/docs/Web/CSS/background-clip",syntax:"[ <box> | border | padding | content | text ]#"},"-webkit-column-break-after":{comment:"added, http://help.dottoro.com/lcrthhhv.php",syntax:"always | auto | avoid"},"-webkit-column-break-before":{comment:"added, http://help.dottoro.com/lcxquvkf.php",syntax:"always | auto | avoid"},"-webkit-column-break-inside":{comment:"added, http://help.dottoro.com/lclhnthl.php",syntax:"always | auto | avoid"},"-webkit-font-smoothing":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth",syntax:"auto | none | antialiased | subpixel-antialiased"},"-webkit-mask-box-image":{comment:"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image",syntax:"[ <url> | <gradient> | none ] [ <length-percentage>{4} <-webkit-mask-box-repeat>{2} ]?"},"-webkit-print-color-adjust":{comment:"missed",references:["https://developer.mozilla.org/en/docs/Web/CSS/-webkit-print-color-adjust"],syntax:"economy | exact"},"-webkit-text-security":{comment:"missed; http://help.dottoro.com/lcbkewgt.php",syntax:"none | circle | disc | square"},"-webkit-user-drag":{comment:"missed; http://help.dottoro.com/lcbixvwm.php",syntax:"none | element | auto"},"-webkit-user-select":{comment:"auto is supported by old webkit, https://developer.mozilla.org/en-US/docs/Web/CSS/user-select",syntax:"auto | none | text | all"},"alignment-baseline":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#AlignmentBaselineProperty"],syntax:"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical"},"baseline-shift":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#BaselineShiftProperty"],syntax:"baseline | sub | super | <svg-length>"},behavior:{comment:"added old IE property https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx",syntax:"<url>+"},"clip-rule":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/masking.html#ClipRuleProperty"],syntax:"nonzero | evenodd"},cue:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'cue-before'> <'cue-after'>?"},"cue-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<url> <decibel>? | none"},"cue-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<url> <decibel>? | none"},cursor:{comment:"added legacy keywords: hand, -webkit-grab. -webkit-grabbing, -webkit-zoom-in, -webkit-zoom-out, -moz-grab, -moz-grabbing, -moz-zoom-in, -moz-zoom-out",references:["https://www.sitepoint.com/css3-cursor-styles/"],syntax:"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing | hand | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ] ]"},display:{comment:"extended with -ms-flexbox",syntax:"| <-non-standard-display>"},position:{comment:"extended with -webkit-sticky",syntax:"| -webkit-sticky"},"dominant-baseline":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#DominantBaselineProperty"],syntax:"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge"},"image-rendering":{comment:"extended with <-non-standard-image-rendering>, added SVG keywords optimizeSpeed and optimizeQuality",references:["https://developer.mozilla.org/en/docs/Web/CSS/image-rendering","https://www.w3.org/TR/SVG/painting.html#ImageRenderingProperty"],syntax:"| optimizeSpeed | optimizeQuality | <-non-standard-image-rendering>"},fill:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"<paint>"},"fill-opacity":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"<number-zero-one>"},"fill-rule":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"nonzero | evenodd"},filter:{comment:"extend with IE legacy syntaxes",syntax:"| <-ms-filter-function-list>"},"glyph-orientation-horizontal":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#GlyphOrientationHorizontalProperty"],syntax:"<angle>"},"glyph-orientation-vertical":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#GlyphOrientationVerticalProperty"],syntax:"<angle>"},kerning:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#KerningProperty"],syntax:"auto | <svg-length>"},"letter-spacing":{comment:"fix syntax <length> -> <length-percentage>",references:["https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/letter-spacing"],syntax:"normal | <length-percentage>"},marker:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-end":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-mid":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-start":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"max-width":{comment:"fix auto -> none (https://github.com/mdn/data/pull/431); extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/max-width",syntax:"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},width:{comment:"per spec fit-content should be a function, however browsers are supporting it as a keyword (https://github.com/csstree/stylelint-validator/issues/29)",syntax:"| fit-content | -moz-fit-content | -webkit-fit-content"},"min-width":{comment:"extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width",syntax:"auto | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},overflow:{comment:"extend by vendor keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow",syntax:"| <-non-standard-overflow>"},pause:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'pause-before'> <'pause-after'>?"},"pause-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"pause-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},rest:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'rest-before'> <'rest-after'>?"},"rest-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"rest-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"shape-rendering":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#ShapeRenderingPropert"],syntax:"auto | optimizeSpeed | crispEdges | geometricPrecision"},src:{comment:"added @font-face's src property https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src",syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#"},speak:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"auto | none | normal"},"speak-as":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"normal | spell-out || digits || [ literal-punctuation | no-punctuation ]"},stroke:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<paint>"},"stroke-dasharray":{comment:"added SVG property; a list of comma and/or white space separated <length>s and <percentage>s",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"none | [ <svg-length>+ ]#"},"stroke-dashoffset":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<svg-length>"},"stroke-linecap":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"butt | round | square"},"stroke-linejoin":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"miter | round | bevel"},"stroke-miterlimit":{comment:"added SVG property (<miterlimit> = <number-one-or-greater>) ",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<number-one-or-greater>"},"stroke-opacity":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<number-zero-one>"},"stroke-width":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<svg-length>"},"text-anchor":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#TextAlignmentProperties"],syntax:"start | middle | end"},"unicode-bidi":{comment:"added prefixed keywords https://developer.mozilla.org/en-US/docs/Web/CSS/unicode-bidi",syntax:"| -moz-isolate | -moz-isolate-override | -moz-plaintext | -webkit-isolate | -webkit-isolate-override | -webkit-plaintext"},"unicode-range":{comment:"added missed property https://developer.mozilla.org/en-US/docs/Web/CSS/%40font-face/unicode-range",syntax:"<urange>#"},"voice-balance":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<number> | left | center | right | leftwards | rightwards"},"voice-duration":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"auto | <time>"},"voice-family":{comment:"<name> -> <family-name>, https://www.w3.org/TR/css3-speech/#property-index",syntax:"[ [ <family-name> | <generic-voice> ] , ]* [ <family-name> | <generic-voice> ] | preserve"},"voice-pitch":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-range":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-rate":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"[ normal | x-slow | slow | medium | fast | x-fast ] || <percentage>"},"voice-stress":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"normal | strong | moderate | none | reduced"},"voice-volume":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"silent | [ [ x-soft | soft | medium | loud | x-loud ] || <decibel> ]"},"writing-mode":{comment:"extend with SVG keywords",syntax:"| <svg-writing-mode>"}},syntaxes:{"-legacy-gradient":{comment:"added collection of legacy gradient syntaxes",syntax:"<-webkit-gradient()> | <-legacy-linear-gradient> | <-legacy-repeating-linear-gradient> | <-legacy-radial-gradient> | <-legacy-repeating-radial-gradient>"},"-legacy-linear-gradient":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"-moz-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-repeating-linear-gradient":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-linear-gradient-arguments":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"[ <angle> | <side-or-corner> ]? , <color-stop-list>"},"-legacy-radial-gradient":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"-moz-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-repeating-radial-gradient":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-radial-gradient-arguments":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"[ <position> , ]? [ [ [ <-legacy-radial-gradient-shape> || <-legacy-radial-gradient-size> ] | [ <length> | <percentage> ]{2} ] , ]? <color-stop-list>"},"-legacy-radial-gradient-size":{comment:"before a standard it contains 2 extra keywords (`contain` and `cover`) https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltsize",syntax:"closest-side | closest-corner | farthest-side | farthest-corner | contain | cover"},"-legacy-radial-gradient-shape":{comment:"define to double sure it doesn't extends in future https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltshape",syntax:"circle | ellipse"},"-non-standard-font":{comment:"non standard fonts",references:["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],syntax:"-apple-system-body | -apple-system-headline | -apple-system-subheadline | -apple-system-caption1 | -apple-system-caption2 | -apple-system-footnote | -apple-system-short-body | -apple-system-short-headline | -apple-system-short-subheadline | -apple-system-short-caption1 | -apple-system-short-footnote | -apple-system-tall-body"},"-non-standard-color":{comment:"non standard colors",references:["http://cssdot.ru/%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BD%D0%B8%D0%BA_CSS/color-i305.html","https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Mozilla_Color_Preference_Extensions"],syntax:"-moz-ButtonDefault | -moz-ButtonHoverFace | -moz-ButtonHoverText | -moz-CellHighlight | -moz-CellHighlightText | -moz-Combobox | -moz-ComboboxText | -moz-Dialog | -moz-DialogText | -moz-dragtargetzone | -moz-EvenTreeRow | -moz-Field | -moz-FieldText | -moz-html-CellHighlight | -moz-html-CellHighlightText | -moz-mac-accentdarkestshadow | -moz-mac-accentdarkshadow | -moz-mac-accentface | -moz-mac-accentlightesthighlight | -moz-mac-accentlightshadow | -moz-mac-accentregularhighlight | -moz-mac-accentregularshadow | -moz-mac-chrome-active | -moz-mac-chrome-inactive | -moz-mac-focusring | -moz-mac-menuselect | -moz-mac-menushadow | -moz-mac-menutextselect | -moz-MenuHover | -moz-MenuHoverText | -moz-MenuBarText | -moz-MenuBarHoverText | -moz-nativehyperlinktext | -moz-OddTreeRow | -moz-win-communicationstext | -moz-win-mediatext | -moz-activehyperlinktext | -moz-default-background-color | -moz-default-color | -moz-hyperlinktext | -moz-visitedhyperlinktext | -webkit-activelink | -webkit-focus-ring-color | -webkit-link | -webkit-text"},"-non-standard-image-rendering":{comment:"non-standard keywords http://phrogz.net/tmp/canvas_image_zoom.html",syntax:"optimize-contrast | -moz-crisp-edges | -o-crisp-edges | -webkit-optimize-contrast"},"-non-standard-overflow":{comment:"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow",syntax:"-moz-scrollbars-none | -moz-scrollbars-horizontal | -moz-scrollbars-vertical | -moz-hidden-unscrollable"},"-non-standard-width":{comment:"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width",syntax:"fill-available | min-intrinsic | intrinsic | -moz-available | -moz-fit-content | -moz-min-content | -moz-max-content | -webkit-min-content | -webkit-max-content"},"-webkit-gradient()":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/ - TODO: simplify when after match algorithm improvement ( [, point, radius | , point] -> [, radius]? , point )",syntax:"-webkit-gradient( <-webkit-gradient-type>, <-webkit-gradient-point> [, <-webkit-gradient-point> | , <-webkit-gradient-radius>, <-webkit-gradient-point> ] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )"},"-webkit-gradient-color-stop":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"from( <color> ) | color-stop( [ <number-zero-one> | <percentage> ] , <color> ) | to( <color> )"},"-webkit-gradient-point":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"[ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]"},"-webkit-gradient-radius":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"<length> | <percentage>"},"-webkit-gradient-type":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"linear | radial"},"-webkit-mask-box-repeat":{comment:"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image",syntax:"repeat | stretch | round"},"-webkit-mask-clip-style":{comment:"missed; there is no enough information about `-webkit-mask-clip` property, but looks like all those keywords are working",syntax:"border | border-box | padding | padding-box | content | content-box | text"},"-ms-filter-function-list":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<-ms-filter-function>+"},"-ms-filter-function":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<-ms-filter-function-progid> | <-ms-filter-function-legacy>"},"-ms-filter-function-progid":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"'progid:' [ <ident-token> '.' ]* [ <ident-token> | <function-token> <any-value>? ) ]"},"-ms-filter-function-legacy":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<ident-token> | <function-token> <any-value>? )"},"-ms-filter":{syntax:"<string>"},age:{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"child | young | old"},"attr-name":{syntax:"<wq-name>"},"attr-fallback":{syntax:"<any-value>"},"border-radius":{comment:"missed, https://drafts.csswg.org/css-backgrounds-3/#the-border-radius",syntax:"<length-percentage>{1,2}"},bottom:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"content-list":{comment:"missed -> https://drafts.csswg.org/css-content/#typedef-content-list (document-url, <target> and leader() is omitted util stabilization)",syntax:"[ <string> | contents | <image> | <quote> | <target> | <leader()> | <attr()> | counter( <ident>, <'list-style-type'>? ) ]+"},"element()":{comment:"https://drafts.csswg.org/css-gcpm/#element-syntax & https://drafts.csswg.org/css-images-4/#element-notation",syntax:"element( <custom-ident> , [ first | start | last | first-except ]? ) | element( <id-selector> )"},"generic-voice":{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"[ <age>? <gender> <integer>? ]"},gender:{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"male | female | neutral"},"generic-family":{comment:"added -apple-system",references:["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],syntax:"| -apple-system"},gradient:{comment:"added legacy syntaxes support",syntax:"| <-legacy-gradient>"},left:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"mask-image":{comment:"missed; https://drafts.fxtf.org/css-masking-1/#the-mask-image",syntax:"<mask-reference>#"},"name-repeat":{comment:"missed, and looks like obsolete, keep it as is since other property syntaxes should be changed too; https://www.w3.org/TR/2015/WD-css-grid-1-20150917/#typedef-name-repeat",syntax:"repeat( [ <positive-integer> | auto-fill ], <line-names>+)"},"named-color":{comment:"added non standard color names",syntax:"| <-non-standard-color>"},paint:{comment:"used by SVG https://www.w3.org/TR/SVG/painting.html#SpecifyingPaint",syntax:"none | <color> | <url> [ none | <color> ]? | context-fill | context-stroke"},"page-size":{comment:"https://www.w3.org/TR/css-page-3/#typedef-page-size-page-size",syntax:"A5 | A4 | A3 | B5 | B4 | JIS-B5 | JIS-B4 | letter | legal | ledger"},ratio:{comment:"missed, https://drafts.csswg.org/mediaqueries-4/#typedef-ratio",syntax:"<integer> / <integer>"},right:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},shape:{comment:"missed spaces in function body and add backwards compatible syntax",syntax:"rect( <top>, <right>, <bottom>, <left> ) | rect( <top> <right> <bottom> <left> )"},"svg-length":{comment:"All coordinates and lengths in SVG can be specified with or without a unit identifier",references:["https://www.w3.org/TR/SVG11/coords.html#Units"],syntax:"<percentage> | <length> | <number>"},"svg-writing-mode":{comment:"SVG specific keywords (deprecated for CSS)",references:["https://developer.mozilla.org/en/docs/Web/CSS/writing-mode","https://www.w3.org/TR/SVG/text.html#WritingModeProperty"],syntax:"lr-tb | rl-tb | tb-rl | lr | rl | tb"},top:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"track-group":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"'(' [ <string>* <track-minmax> <string>* ]+ ')' [ '[' <positive-integer> ']' ]? | <track-minmax>"},"track-list-v0":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"[ <string>* <track-group> <string>* ]+ | none"},"track-minmax":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"minmax( <track-breadth> , <track-breadth> ) | auto | <track-breadth> | fit-content"},x:{comment:"missed; not sure we should add it, but no others except `cursor` is using it so it's ok for now; https://drafts.csswg.org/css-ui-3/#cursor",syntax:"<number>"},y:{comment:"missed; not sure we should add it, but no others except `cursor` is using so it's ok for now; https://drafts.csswg.org/css-ui-3/#cursor",syntax:"<number>"},declaration:{comment:"missed, restored by https://drafts.csswg.org/css-syntax",syntax:"<ident-token> : <declaration-value>? [ '!' important ]?"},"declaration-list":{comment:"missed, restored by https://drafts.csswg.org/css-syntax",syntax:"[ <declaration>? ';' ]* <declaration>?"},url:{comment:"https://drafts.csswg.org/css-values-4/#urls",syntax:"url( <string> <url-modifier>* ) | <url-token>"},"url-modifier":{comment:"https://drafts.csswg.org/css-values-4/#typedef-url-modifier",syntax:"<ident> | <function-token> <any-value> )"},"number-zero-one":{syntax:"<number [0,1]>"},"number-one-or-greater":{syntax:"<number [1,∞]>"},"positive-integer":{syntax:"<integer [0,∞]>"},"-non-standard-display":{syntax:"-ms-inline-flexbox | -ms-grid | -ms-inline-grid | -webkit-flex | -webkit-inline-flex | -webkit-box | -webkit-inline-box | -moz-inline-stack | -moz-box | -moz-inline-box"}}},KW=GW,_W=QW,$W=YW,rp=ZW,ew=/^\s*\|\s*/;function eX(t){const e=Object.create(null);for(const r in t){const i=t[r];let a=null;if(i.descriptors){a=Object.create(null);for(const n in i.descriptors)a[n]=i.descriptors[n].syntax}e[r.substr(1)]={prelude:i.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:a}}return e}function ip(t,e){const r={};for(const i in t)r[i]=t[i].syntax||t[i];for(const i in e)i in t?e[i].syntax?r[i]=ew.test(e[i].syntax)?r[i]+" "+e[i].syntax.trim():e[i].syntax:delete r[i]:e[i].syntax&&(r[i]=e[i].syntax.replace(ew,""));return r}function tw(t){const e={};for(const r in t)e[r]=t[r].syntax;return e}function tX(t,e){const r={};for(const i in t){const a=e[i]&&e[i].descriptors||null;r[i]={prelude:i in e&&"prelude"in e[i]?e[i].prelude:t[i].prelude||null,descriptors:t[i].descriptors?ip(t[i].descriptors,a||{}):a&&tw(a)}}for(const i in e)hasOwnProperty.call(t,i)||(r[i]={prelude:e[i].prelude||null,descriptors:e[i].descriptors&&tw(e[i].descriptors)});return r}var rX={types:ip($W,rp.syntaxes),atrules:tX(eX(KW),rp.atrules),properties:ip(_W,rp.properties)},rw=de.cmpChar,iw=de.isDigit,Ms=de.TYPE,aw=Ms.WhiteSpace,nw=Ms.Comment,ap=Ms.Ident,ai=Ms.Number,iX=Ms.Dimension,Lr=43,Xt=45,xu=110,ra=!0,aX=!1;function wu(t,e){var r=this.scanner.tokenStart+t,i=this.scanner.source.charCodeAt(r);for((i===Lr||i===Xt)&&(e&&this.error("Number sign is not allowed"),r++);r<this.scanner.tokenEnd;r++)iw(this.scanner.source.charCodeAt(r))||this.error("Integer is expected",r)}function $a(t){return wu.call(this,0,t)}function Si(t,e){if(!rw(this.scanner.source,this.scanner.tokenStart+t,e)){var r="";switch(e){case xu:r="N is expected";break;case Xt:r="HyphenMinus is expected";break}this.error(r,this.scanner.tokenStart+t)}}function np(){for(var t=0,e=0,r=this.scanner.tokenType;r===aw||r===nw;)r=this.scanner.lookupType(++t);if(r!==ai)if(this.scanner.isDelim(Lr,t)||this.scanner.isDelim(Xt,t)){e=this.scanner.isDelim(Lr,t)?Lr:Xt;do r=this.scanner.lookupType(++t);while(r===aw||r===nw);r!==ai&&(this.scanner.skip(t),$a.call(this,ra))}else return null;return t>0&&this.scanner.skip(t),e===0&&(r=this.scanner.source.charCodeAt(this.scanner.tokenStart),r!==Lr&&r!==Xt&&this.error("Number sign is expected")),$a.call(this,e!==0),e===Xt?"-"+this.consume(ai):this.consume(ai)}var nX={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var t=this.scanner.tokenStart,e=null,r=null;if(this.scanner.tokenType===ai)$a.call(this,aX),r=this.consume(ai);else if(this.scanner.tokenType===ap&&rw(this.scanner.source,this.scanner.tokenStart,Xt))switch(e="-1",Si.call(this,1,xu),this.scanner.getTokenLength()){case 2:this.scanner.next(),r=np.call(this);break;case 3:Si.call(this,2,Xt),this.scanner.next(),this.scanner.skipSC(),$a.call(this,ra),r="-"+this.consume(ai);break;default:Si.call(this,2,Xt),wu.call(this,3,ra),this.scanner.next(),r=this.scanner.substrToCursor(t+2)}else if(this.scanner.tokenType===ap||this.scanner.isDelim(Lr)&&this.scanner.lookupType(1)===ap){var i=0;switch(e="1",this.scanner.isDelim(Lr)&&(i=1,this.scanner.next()),Si.call(this,0,xu),this.scanner.getTokenLength()){case 1:this.scanner.next(),r=np.call(this);break;case 2:Si.call(this,1,Xt),this.scanner.next(),this.scanner.skipSC(),$a.call(this,ra),r="-"+this.consume(ai);break;default:Si.call(this,1,Xt),wu.call(this,2,ra),this.scanner.next(),r=this.scanner.substrToCursor(t+i+1)}}else if(this.scanner.tokenType===iX){for(var a=this.scanner.source.charCodeAt(this.scanner.tokenStart),i=a===Lr||a===Xt,n=this.scanner.tokenStart+i;n<this.scanner.tokenEnd&&iw(this.scanner.source.charCodeAt(n));n++);n===this.scanner.tokenStart+i&&this.error("Integer is expected",this.scanner.tokenStart+i),Si.call(this,n-this.scanner.tokenStart,xu),e=this.scanner.source.substring(t,n),n+1===this.scanner.tokenEnd?(this.scanner.next(),r=np.call(this)):(Si.call(this,n-this.scanner.tokenStart+1,Xt),n+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),$a.call(this,ra),r="-"+this.consume(ai)):(wu.call(this,n-this.scanner.tokenStart+2,ra),this.scanner.next(),r=this.scanner.substrToCursor(n+1)))}else this.error();return e!==null&&e.charCodeAt(0)===Lr&&(e=e.substr(1)),r!==null&&r.charCodeAt(0)===Lr&&(r=r.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.scanner.tokenStart),a:e,b:r}},generate:function(t){var e=t.a!==null&&t.a!==void 0,r=t.b!==null&&t.b!==void 0;e?(this.chunk(t.a==="+1"?"+n":t.a==="1"?"n":t.a==="-1"?"-n":t.a+"n"),r&&(r=String(t.b),r.charAt(0)==="-"||r.charAt(0)==="+"?(this.chunk(r.charAt(0)),this.chunk(r.substr(1))):(this.chunk("+"),this.chunk(r)))):this.chunk(String(t.b))}},sX=de,Su=sX.TYPE,oX=Su.WhiteSpace,sp=Su.Semicolon,sw=Su.LeftCurlyBracket,lX=Su.Delim,uX=33;function cX(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===oX?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function ow(){return 0}function dX(t){return t===sw?1:0}function fX(t){return t===sw||t===sp?1:0}function pX(t,e,r){return t===lX&&e.charCodeAt(r)===uX||t===sp?1:0}function hX(t){return t===sp?2:0}var ia={name:"Raw",structure:{value:String},parse:function(t,e,r){var i=this.scanner.getTokenStart(t),a;return this.scanner.skip(this.scanner.getRawLength(t,e||ow)),r&&this.scanner.tokenStart>i?a=cX.call(this):a=this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(i,a),value:this.scanner.source.substring(i,a)}},generate:function(t){this.chunk(t.value)},mode:{default:ow,leftCurlyBracket:dX,leftCurlyBracketOrSemicolon:fX,exclamationMarkOrSemicolon:pX,semicolonIncluded:hX}},Pu=de.TYPE,mX=ia.mode,lw=Pu.AtKeyword,uw=Pu.Semicolon,op=Pu.LeftCurlyBracket,vX=Pu.RightCurlyBracket;function cw(t){return this.Raw(t,mX.leftCurlyBracketOrSemicolon,!0)}function gX(){for(var t=1,e;e=this.scanner.lookupType(t);t++){if(e===vX)return!0;if(e===op||e===lw)return!1}return!1}var bX={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var t=this.scanner.tokenStart,e,r,i=null,a=null;switch(this.eat(lw),e=this.scanner.substrToCursor(t+1),r=e.toLowerCase(),this.scanner.skipSC(),this.scanner.eof===!1&&this.scanner.tokenType!==op&&this.scanner.tokenType!==uw&&(this.parseAtrulePrelude?(i=this.parseWithFallback(this.AtrulePrelude.bind(this,e),cw),i.type==="AtrulePrelude"&&i.children.head===null&&(i=null)):i=cw.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case uw:this.scanner.next();break;case op:this.atrule.hasOwnProperty(r)&&typeof this.atrule[r].block=="function"?a=this.atrule[r].block.call(this):a=this.Block(gX.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.scanner.tokenStart),name:e,prelude:i,block:a}},generate:function(t){this.chunk("@"),this.chunk(t.name),t.prelude!==null&&(this.chunk(" "),this.node(t.prelude)),t.block?this.node(t.block):this.chunk(";")},walkContext:"atrule"},dw=de.TYPE,yX=dw.Semicolon,xX=dw.LeftCurlyBracket,wX={name:"AtrulePrelude",structure:{children:[[]]},parse:function(t){var e=null;return t!==null&&(t=t.toLowerCase()),this.scanner.skipSC(),this.atrule.hasOwnProperty(t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.scanner.skipSC(),this.scanner.eof!==!0&&this.scanner.tokenType!==xX&&this.scanner.tokenType!==yX&&this.error("Semicolon or block is expected"),e===null&&(e=this.createList()),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t)},walkContext:"atrulePrelude"},Ds=de.TYPE,As=Ds.Ident,SX=Ds.String,PX=Ds.Colon,CX=Ds.LeftSquareBracket,fw=Ds.RightSquareBracket,TX=36,pw=42,Cu=61,kX=94,lp=124,MX=126;function DX(){this.scanner.eof&&this.error("Unexpected end of input");var t=this.scanner.tokenStart,e=!1,r=!0;return this.scanner.isDelim(pw)?(e=!0,r=!1,this.scanner.next()):this.scanner.isDelim(lp)||this.eat(As),this.scanner.isDelim(lp)?this.scanner.source.charCodeAt(this.scanner.tokenStart+1)!==Cu?(this.scanner.next(),this.eat(As)):e&&this.error("Identifier is expected",this.scanner.tokenEnd):e&&this.error("Vertical line is expected"),r&&this.scanner.tokenType===PX&&(this.scanner.next(),this.eat(As)),{type:"Identifier",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}}function AX(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(t);return e!==Cu&&e!==MX&&e!==kX&&e!==TX&&e!==pw&&e!==lp&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),e!==Cu&&(this.scanner.isDelim(Cu)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(t)}var OX={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var t=this.scanner.tokenStart,e,r=null,i=null,a=null;return this.eat(CX),this.scanner.skipSC(),e=DX.call(this),this.scanner.skipSC(),this.scanner.tokenType!==fw&&(this.scanner.tokenType!==As&&(r=AX.call(this),this.scanner.skipSC(),i=this.scanner.tokenType===SX?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===As&&(a=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(fw),{type:"AttributeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:e,matcher:r,value:i,flags:a}},generate:function(t){var e=" ";this.chunk("["),this.node(t.name),t.matcher!==null&&(this.chunk(t.matcher),t.value!==null&&(this.node(t.value),t.value.type==="String"&&(e=""))),t.flags!==null&&(this.chunk(e),this.chunk(t.flags)),this.chunk("]")}},en=de.TYPE,zX=ia.mode,EX=en.WhiteSpace,jX=en.Comment,hw=en.Semicolon,IX=en.AtKeyword,NX=en.LeftCurlyBracket,mw=en.RightCurlyBracket;function vw(t){return this.Raw(t,null,!0)}function LX(){return this.parseWithFallback(this.Rule,vw)}function gw(t){return this.Raw(t,zX.semicolonIncluded,!0)}function FX(){if(this.scanner.tokenType===hw)return gw.call(this,this.scanner.tokenIndex);var t=this.parseWithFallback(this.Declaration,gw);return this.scanner.tokenType===hw&&this.scanner.next(),t}var RX={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(t){var e=t?FX:LX,r=this.scanner.tokenStart,i=this.createList();this.eat(NX);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case mw:break e;case EX:case jX:this.scanner.next();break;case IX:i.push(this.parseWithFallback(this.Atrule,vw));break;default:i.push(e.call(this))}return this.scanner.eof||this.eat(mw),{type:"Block",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("{"),this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")}),this.chunk("}")},walkContext:"block"},bw=de.TYPE,BX=bw.LeftSquareBracket,HX=bw.RightSquareBracket,VX={name:"Brackets",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(BX),i=t.call(this,e),this.scanner.eof||this.eat(HX),{type:"Brackets",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("["),this.children(t),this.chunk("]")}},qX=de.TYPE.CDC,WX={name:"CDC",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(qX),{type:"CDC",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("-->")}},XX=de.TYPE.CDO,UX={name:"CDO",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(XX),{type:"CDO",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("<!--")}},JX=de.TYPE,GX=JX.Ident,QX=46,YX={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.isDelim(QX)||this.error("Full stop is expected"),this.scanner.next(),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(GX)}},generate:function(t){this.chunk("."),this.chunk(t.name)}},ZX=de.TYPE,KX=ZX.Ident,_X=43,yw=47,$X=62,eU=126,tU={name:"Combinator",structure:{name:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case $X:case _X:case eU:this.scanner.next();break;case yw:this.scanner.next(),(this.scanner.tokenType!==KX||this.scanner.lookupValue(0,"deep")===!1)&&this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(yw)||this.error("Solidus is expected"),this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},rU=de.TYPE,iU=rU.Comment,aU=42,nU=47,sU={name:"Comment",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenEnd;return this.eat(iU),e-t+2>=2&&this.scanner.source.charCodeAt(e-2)===aU&&this.scanner.source.charCodeAt(e-1)===nU&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t+2,e)}},generate:function(t){this.chunk("/*"),this.chunk(t.value),this.chunk("*/")}},oU=mf.isCustomProperty,tn=de.TYPE,xw=ia.mode,ww=tn.Ident,Sw=tn.Hash,lU=tn.Colon,Pw=tn.Semicolon,Cw=tn.Delim,uU=tn.WhiteSpace,Tw=33,cU=35,dU=36,fU=38,pU=42,hU=43,kw=47;function mU(t){return this.Raw(t,xw.exclamationMarkOrSemicolon,!0)}function vU(t){return this.Raw(t,xw.exclamationMarkOrSemicolon,!1)}function gU(){var t=this.scanner.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==Pw&&this.scanner.isDelim(Tw)===!1&&this.scanner.isBalanceEdge(t)===!1&&this.error(),e}var bU={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenIndex,r=yU.call(this),i=oU(r),a=i?this.parseCustomProperty:this.parseValue,n=i?vU:mU,s=!1,o;this.scanner.skipSC(),this.eat(lU);const u=this.scanner.tokenIndex;if(i||this.scanner.skipSC(),a?o=this.parseWithFallback(gU,n):o=n.call(this,this.scanner.tokenIndex),i&&o.type==="Value"&&o.children.isEmpty()){for(let l=u-this.scanner.tokenIndex;l<=0;l++)if(this.scanner.lookupType(l)===uU){o.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.scanner.isDelim(Tw)&&(s=xU.call(this),this.scanner.skipSC()),this.scanner.eof===!1&&this.scanner.tokenType!==Pw&&this.scanner.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.scanner.tokenStart),important:s,property:r,value:o}},generate:function(t){this.chunk(t.property),this.chunk(":"),this.node(t.value),t.important&&this.chunk(t.important===!0?"!important":"!"+t.important)},walkContext:"declaration"};function yU(){var t=this.scanner.tokenStart;if(this.scanner.tokenType===Cw)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case pU:case dU:case hU:case cU:case fU:this.scanner.next();break;case kw:this.scanner.next(),this.scanner.isDelim(kw)&&this.scanner.next();break}return this.scanner.tokenType===Sw?this.eat(Sw):this.eat(ww),this.scanner.substrToCursor(t)}function xU(){this.eat(Cw),this.scanner.skipSC();var t=this.consume(ww);return t==="important"?!0:t}var up=de.TYPE,wU=ia.mode,SU=up.WhiteSpace,PU=up.Comment,CU=up.Semicolon;function TU(t){return this.Raw(t,wU.semicolonIncluded,!0)}var kU={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case SU:case PU:case CU:this.scanner.next();break;default:t.push(this.parseWithFallback(this.Declaration,TU))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")})}},MU=ds.consumeNumber,DU=de.TYPE,AU=DU.Dimension,OU={name:"Dimension",structure:{value:String,unit:String},parse:function(){var t=this.scanner.tokenStart,e=MU(this.scanner.source,t);return this.eat(AU),{type:"Dimension",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t,e),unit:this.scanner.source.substring(e,this.scanner.tokenStart)}},generate:function(t){this.chunk(t.value),this.chunk(t.unit)}},zU=de.TYPE,EU=zU.RightParenthesis,jU={name:"Function",structure:{name:String,children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=this.consumeFunctionName(),a=i.toLowerCase(),n;return n=e.hasOwnProperty(a)?e[a].call(this,e):t.call(this,e),this.scanner.eof||this.eat(EU),{type:"Function",loc:this.getLocation(r,this.scanner.tokenStart),name:i,children:n}},generate:function(t){this.chunk(t.name),this.chunk("("),this.children(t),this.chunk(")")},walkContext:"function"},IU=de.TYPE,NU=IU.Hash,LU={name:"Hash",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(NU),{type:"Hash",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.value)}},FU=de.TYPE,RU=FU.Ident,BU={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(RU)}},generate:function(t){this.chunk(t.name)}},HU=de.TYPE,VU=HU.Hash,qU={name:"IdSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(VU),{type:"IdSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.name)}},aa=de.TYPE,Mw=aa.Ident,WU=aa.Number,XU=aa.Dimension,UU=aa.LeftParenthesis,Dw=aa.RightParenthesis,JU=aa.Colon,GU=aa.Delim,QU={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var t=this.scanner.tokenStart,e,r=null;if(this.eat(UU),this.scanner.skipSC(),e=this.consume(Mw),this.scanner.skipSC(),this.scanner.tokenType!==Dw){switch(this.eat(JU),this.scanner.skipSC(),this.scanner.tokenType){case WU:this.lookupNonWSType(1)===GU?r=this.Ratio():r=this.Number();break;case XU:r=this.Dimension();break;case Mw:r=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(Dw),{type:"MediaFeature",loc:this.getLocation(t,this.scanner.tokenStart),name:e,value:r}},generate:function(t){this.chunk("("),this.chunk(t.name),t.value!==null&&(this.chunk(":"),this.node(t.value)),this.chunk(")")}},Tu=de.TYPE,YU=Tu.WhiteSpace,ZU=Tu.Comment,KU=Tu.Ident,_U=Tu.LeftParenthesis,$U={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var t=this.createList(),e=null,r=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case ZU:this.scanner.next();continue;case YU:r=this.WhiteSpace();continue;case KU:e=this.Identifier();break;case _U:e=this.MediaFeature();break;default:break e}r!==null&&(t.push(r),r=null),t.push(e)}return e===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t)}},eJ=de.TYPE.Comma,tJ={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(t){var e=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(e.push(this.MediaQuery(t)),this.scanner.tokenType===eJ);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t,function(){this.chunk(",")})}},rJ={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(t){this.scanner.skipSC();var e=this.scanner.tokenStart,r=e,i=null,a;return this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?a=this.Identifier():a=this.AnPlusB(),this.scanner.skipSC(),t&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),i=this.SelectorList(),this.needPositions&&(r=this.getLastListNode(i.children).loc.end.offset)):this.needPositions&&(r=a.loc.end.offset),{type:"Nth",loc:this.getLocation(e,r),nth:a,selector:i}},generate:function(t){this.node(t.nth),t.selector!==null&&(this.chunk(" of "),this.node(t.selector))}},iJ=de.TYPE.Number,aJ={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(iJ)}},generate:function(t){this.chunk(t.value)}},nJ={name:"Operator",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},Aw=de.TYPE,sJ=Aw.LeftParenthesis,oJ=Aw.RightParenthesis,lJ={name:"Parentheses",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(sJ),i=t.call(this,e),this.scanner.eof||this.eat(oJ),{type:"Parentheses",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("("),this.children(t),this.chunk(")")}},uJ=ds.consumeNumber,cJ=de.TYPE,dJ=cJ.Percentage,fJ={name:"Percentage",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=uJ(this.scanner.source,t);return this.eat(dJ),{type:"Percentage",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t,e)}},generate:function(t){this.chunk(t.value),this.chunk("%")}},ku=de.TYPE,pJ=ku.Ident,hJ=ku.Function,mJ=ku.Colon,vJ=ku.RightParenthesis,gJ={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(mJ),this.scanner.tokenType===hJ?(r=this.consumeFunctionName(),i=r.toLowerCase(),this.pseudo.hasOwnProperty(i)?(this.scanner.skipSC(),e=this.pseudo[i].call(this),this.scanner.skipSC()):(e=this.createList(),e.push(this.Raw(this.scanner.tokenIndex,null,!1))),this.eat(vJ)):r=this.consume(pJ),{type:"PseudoClassSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:r,children:e}},generate:function(t){this.chunk(":"),this.chunk(t.name),t.children!==null&&(this.chunk("("),this.children(t),this.chunk(")"))},walkContext:"function"},Mu=de.TYPE,bJ=Mu.Ident,yJ=Mu.Function,Ow=Mu.Colon,xJ=Mu.RightParenthesis,wJ={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(Ow),this.eat(Ow),this.scanner.tokenType===yJ?(r=this.consumeFunctionName(),i=r.toLowerCase(),this.pseudo.hasOwnProperty(i)?(this.scanner.skipSC(),e=this.pseudo[i].call(this),this.scanner.skipSC()):(e=this.createList(),e.push(this.Raw(this.scanner.tokenIndex,null,!1))),this.eat(xJ)):r=this.consume(bJ),{type:"PseudoElementSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:r,children:e}},generate:function(t){this.chunk("::"),this.chunk(t.name),t.children!==null&&(this.chunk("("),this.children(t),this.chunk(")"))},walkContext:"function"},SJ=de.isDigit,zw=de.TYPE,PJ=zw.Number,CJ=zw.Delim,TJ=47,kJ=46;function Ew(){this.scanner.skipWS();for(var t=this.consume(PJ),e=0;e<t.length;e++){var r=t.charCodeAt(e);!SJ(r)&&r!==kJ&&this.error("Unsigned number is expected",this.scanner.tokenStart-t.length+e)}return Number(t)===0&&this.error("Zero number is not allowed",this.scanner.tokenStart-t.length),t}var MJ={name:"Ratio",structure:{left:String,right:String},parse:function(){var t=this.scanner.tokenStart,e=Ew.call(this),r;return this.scanner.skipWS(),this.scanner.isDelim(TJ)||this.error("Solidus is expected"),this.eat(CJ),r=Ew.call(this),{type:"Ratio",loc:this.getLocation(t,this.scanner.tokenStart),left:e,right:r}},generate:function(t){this.chunk(t.left),this.chunk("/"),this.chunk(t.right)}},DJ=de.TYPE,AJ=ia.mode,OJ=DJ.LeftCurlyBracket;function jw(t){return this.Raw(t,AJ.leftCurlyBracket,!0)}function zJ(){var t=this.SelectorList();return t.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==OJ&&this.error(),t}var EJ={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var t=this.scanner.tokenIndex,e=this.scanner.tokenStart,r,i;return this.parseRulePrelude?r=this.parseWithFallback(zJ,jw):r=jw.call(this,t),i=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.scanner.tokenStart),prelude:r,block:i}},generate:function(t){this.node(t.prelude),this.node(t.block)},walkContext:"rule"},jJ={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t)}},IJ=de.TYPE,NJ=IJ.Comma,LJ={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;){if(t.push(this.Selector()),this.scanner.tokenType===NJ){this.scanner.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(){this.chunk(",")})},walkContext:"selector"},FJ=de.TYPE.String,RJ={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(FJ)}},generate:function(t){this.chunk(t.value)}},Os=de.TYPE,BJ=Os.WhiteSpace,HJ=Os.Comment,VJ=Os.AtKeyword,qJ=Os.CDO,WJ=Os.CDC,XJ=33;function Iw(t){return this.Raw(t,null,!1)}var UJ={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var t=this.scanner.tokenStart,e=this.createList(),r;!this.scanner.eof;){switch(this.scanner.tokenType){case BJ:this.scanner.next();continue;case HJ:if(this.scanner.source.charCodeAt(this.scanner.tokenStart+2)!==XJ){this.scanner.next();continue}r=this.Comment();break;case qJ:r=this.CDO();break;case WJ:r=this.CDC();break;case VJ:r=this.parseWithFallback(this.Atrule,Iw);break;default:r=this.parseWithFallback(this.Rule,Iw)}e.push(r)}return{type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)},walkContext:"stylesheet"},JJ=de.TYPE,GJ=JJ.Ident,QJ=42,Nw=124;function cp(){this.scanner.tokenType!==GJ&&this.scanner.isDelim(QJ)===!1&&this.error("Identifier or asterisk is expected"),this.scanner.next()}var YJ={name:"TypeSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.isDelim(Nw)?(this.scanner.next(),cp.call(this)):(cp.call(this),this.scanner.isDelim(Nw)&&(this.scanner.next(),cp.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},ZJ=de.isHexDigit,Lw=de.cmpChar,dp=de.TYPE,KJ=de.NAME,_J=dp.Ident,Fw=dp.Number,Rw=dp.Dimension,Du=43,Bw=45,fp=63,$J=117;function zs(t,e){for(var r=this.scanner.tokenStart+t,i=0;r<this.scanner.tokenEnd;r++){var a=this.scanner.source.charCodeAt(r);if(a===Bw&&e&&i!==0)return zs.call(this,t+i+1,!1)===0&&this.error(),-1;ZJ(a)||this.error(e&&i!==0?"HyphenMinus"+(i<6?" or hex digit":"")+" is expected":i<6?"Hex digit is expected":"Unexpected input",r),++i>6&&this.error("Too many hex digits",r)}return this.scanner.next(),i}function Au(t){for(var e=0;this.scanner.isDelim(fp);)++e>t&&this.error("Too many question marks"),this.scanner.next()}function pp(t){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==t&&this.error(KJ[t]+" is expected")}function eG(){var t=0;if(this.scanner.isDelim(Du)){if(this.scanner.next(),this.scanner.tokenType===_J){t=zs.call(this,0,!0),t>0&&Au.call(this,6-t);return}if(this.scanner.isDelim(fp)){this.scanner.next(),Au.call(this,5);return}this.error("Hex digit or question mark is expected");return}if(this.scanner.tokenType===Fw){if(pp.call(this,Du),t=zs.call(this,1,!0),this.scanner.isDelim(fp)){Au.call(this,6-t);return}if(this.scanner.tokenType===Rw||this.scanner.tokenType===Fw){pp.call(this,Bw),zs.call(this,1,!1);return}return}if(this.scanner.tokenType===Rw){pp.call(this,Du),t=zs.call(this,1,!0),t>0&&Au.call(this,6-t);return}this.error()}var tG={name:"UnicodeRange",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return Lw(this.scanner.source,t,$J)||this.error("U is expected"),Lw(this.scanner.source,t+1,Du)||this.error("Plus sign is expected"),this.scanner.next(),eG.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},Hw=de.isWhiteSpace,rG=de.cmpStr,hp=de.TYPE,Vw=hp.Function,qw=hp.Url,iG=hp.RightParenthesis,aG={name:"Url",structure:{value:["String","Raw"]},parse:function(){var t=this.scanner.tokenStart,e;switch(this.scanner.tokenType){case qw:for(var r=t+4,i=this.scanner.tokenEnd-1;r<i&&Hw(this.scanner.source.charCodeAt(r));)r++;for(;r<i&&Hw(this.scanner.source.charCodeAt(i-1));)i--;e={type:"Raw",loc:this.getLocation(r,i),value:this.scanner.source.substring(r,i)},this.eat(qw);break;case Vw:rG(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Vw),this.scanner.skipSC(),e=this.String(),this.scanner.skipSC(),this.eat(iG);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.scanner.tokenStart),value:e}},generate:function(t){this.chunk("url"),this.chunk("("),this.node(t.value),this.chunk(")")}},nG={name:"Value",structure:{children:[[]]},parse:function(){var t=this.scanner.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)}},sG=de.TYPE.WhiteSpace,oG=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),lG={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(sG),oG},generate:function(t){this.chunk(t.value)}},mp={AnPlusB:nX,Atrule:bX,AtrulePrelude:wX,AttributeSelector:OX,Block:RX,Brackets:VX,CDC:WX,CDO:UX,ClassSelector:YX,Combinator:tU,Comment:sU,Declaration:bU,DeclarationList:kU,Dimension:OU,Function:jU,Hash:LU,Identifier:BU,IdSelector:qU,MediaFeature:QU,MediaQuery:$U,MediaQueryList:tJ,Nth:rJ,Number:aJ,Operator:nJ,Parentheses:lJ,Percentage:fJ,PseudoClassSelector:gJ,PseudoElementSelector:wJ,Ratio:MJ,Raw:ia,Rule:EJ,Selector:jJ,SelectorList:LJ,String:RJ,StyleSheet:UJ,TypeSelector:YJ,UnicodeRange:tG,Url:aG,Value:nG,WhiteSpace:lG},vp=rX,uG={generic:!0,types:vp.types,atrules:vp.atrules,properties:vp.properties,node:mp},Ww=de.cmpChar,cG=de.cmpStr,or=de.TYPE,dG=or.Ident,fG=or.String,pG=or.Number,hG=or.Function,mG=or.Url,vG=or.Hash,gG=or.Dimension,bG=or.Percentage,yG=or.LeftParenthesis,xG=or.LeftSquareBracket,wG=or.Comma,SG=or.Delim,PG=35,CG=42,Xw=43,TG=45,kG=47,MG=117,Uw=function(e){switch(this.scanner.tokenType){case vG:return this.Hash();case wG:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case yG:return this.Parentheses(this.readSequence,e.recognizer);case xG:return this.Brackets(this.readSequence,e.recognizer);case fG:return this.String();case gG:return this.Dimension();case bG:return this.Percentage();case pG:return this.Number();case hG:return cG(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case mG:return this.Url();case dG:return Ww(this.scanner.source,this.scanner.tokenStart,MG)&&Ww(this.scanner.source,this.scanner.tokenStart+1,Xw)?this.UnicodeRange():this.Identifier();case SG:var r=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(r===kG||r===CG||r===Xw||r===TG)return this.Operator();r===PG&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1);break}},DG={getNode:Uw},Pi=de.TYPE,AG=Pi.Delim,OG=Pi.Ident,zG=Pi.Dimension,EG=Pi.Percentage,jG=Pi.Number,IG=Pi.Hash,Jw=Pi.Colon,NG=Pi.LeftSquareBracket,LG=35,FG=42,RG=43,BG=47,Gw=46,HG=62,VG=124,qG=126;function WG(t){switch(this.scanner.tokenType){case NG:return this.AttributeSelector();case IG:return this.IdSelector();case Jw:return this.scanner.lookupType(1)===Jw?this.PseudoElementSelector():this.PseudoClassSelector();case OG:return this.TypeSelector();case jG:case EG:return this.Percentage();case zG:this.scanner.source.charCodeAt(this.scanner.tokenStart)===Gw&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case AG:var e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case RG:case HG:case qG:return t.space=null,t.ignoreWSAfter=!0,this.Combinator();case BG:return this.Combinator();case Gw:return this.ClassSelector();case FG:case VG:return this.TypeSelector();case LG:return this.IdSelector()}break}}var XG={getNode:WG},UG=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))},Qw=de.TYPE,JG=ia.mode,GG=Qw.Comma,QG=Qw.WhiteSpace,YG=function(){var t=this.createList();if(this.scanner.skipSC(),t.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===GG){t.push(this.Operator());const e=this.scanner.tokenIndex,r=this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,JG.exclamationMarkOrSemicolon,!1);if(r.type==="Value"&&r.children.isEmpty()){for(let i=e-this.scanner.tokenIndex;i<=0;i++)if(this.scanner.lookupType(i)===QG){r.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(r)}return t},ZG={getNode:Uw,expression:UG,var:YG},KG={AtrulePrelude:DG,Selector:XG,Value:ZG},_G={parse:{prelude:null,block:function(){return this.Block(!0)}}},Es=de.TYPE,$G=Es.String,eQ=Es.Ident,tQ=Es.Url,rQ=Es.Function,iQ=Es.LeftParenthesis,aQ={parse:{prelude:function(){var t=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case $G:t.push(this.String());break;case tQ:case rQ:t.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===eQ||this.lookupNonWSType(0)===iQ)&&(t.push(this.WhiteSpace()),t.push(this.MediaQueryList())),t},block:null}},nQ={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}},sQ={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},rn=de.TYPE,oQ=rn.WhiteSpace,lQ=rn.Comment,Yw=rn.Ident,uQ=rn.Function,cQ=rn.Colon,dQ=rn.LeftParenthesis;function fQ(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function pQ(){return this.scanner.skipSC(),this.scanner.tokenType===Yw&&this.lookupNonWSType(1)===cQ?this.createSingleNodeList(this.Declaration()):Zw.call(this)}function Zw(){var t=this.createList(),e=null,r;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case oQ:e=this.WhiteSpace();continue;case lQ:this.scanner.next();continue;case uQ:r=this.Function(fQ,this.scope.AtrulePrelude);break;case Yw:r=this.Identifier();break;case dQ:r=this.Parentheses(pQ,this.scope.AtrulePrelude);break;default:break e}e!==null&&(t.push(e),e=null),t.push(r)}return t}var hQ={parse:{prelude:function(){var t=Zw.call(this);return this.getFirstListNode(t)===null&&this.error("Condition is expected"),t},block:function(){return this.Block(!1)}}},mQ={"font-face":_G,import:aQ,media:nQ,page:sQ,supports:hQ},vQ={parse:function(){return this.createSingleNodeList(this.Identifier())}},gQ={parse:function(){return this.createSingleNodeList(this.SelectorList())}},bQ={parse:function(){return this.createSingleNodeList(this.Identifier())}},Kw={parse:function(){return this.createSingleNodeList(this.SelectorList())}},yQ=Kw,xQ=Kw,wQ=!0,_w={parse:function(){return this.createSingleNodeList(this.Nth(wQ))}},SQ=_w,PQ=_w,CQ=!1,$w={parse:function(){return this.createSingleNodeList(this.Nth(CQ))}},TQ=$w,kQ=$w,MQ={parse:function(){return this.createSingleNodeList(this.Selector())}},DQ={dir:vQ,has:gQ,lang:bQ,matches:yQ,not:xQ,"nth-child":SQ,"nth-last-child":PQ,"nth-last-of-type":TQ,"nth-of-type":kQ,slotted:MQ},AQ={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(t){return this.AtrulePrelude(t.atrule?String(t.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:KG,atrule:mQ,pseudo:DQ,node:mp},OQ={node:mp};const zQ={version:"1.1.3"};function EQ(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)t[i]=r[i]}return t}tf.exports=ty.create(EQ(uG,AQ,OQ)),tf.exports.version=zQ.version;var jQ=tf.exports,na=jQ,eS={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.Scrollparent=r()})(Mt,function(){function e(i){var a=getComputedStyle(i,null).getPropertyValue("overflow");return a.indexOf("scroll")>-1||a.indexOf("auto")>-1}function r(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var a=i.parentNode;a.parentNode;){if(e(a))return a;a=a.parentNode}return document.scrollingElement||document.documentElement}}return r})})(eS);var IQ=eS.exports;const NQ=ur(IQ),LQ={name:"custom-css-output",render(t){return t("style",this.$slots.default)}},Ou=[{code:"AFN",name:"Afghanistan Afghani",format:"####.##",symbol:""},{code:"ALL",name:"Albanian Lek",format:"####.##",symbol:""},{code:"DZD",name:"Algerian Dinar",format:"####.##",symbol:"دج (Arabic) or DA (Latin)"},{code:"AOA",name:"Angolan Kwanza",format:"####.##",symbol:"Kz"},{code:"ARS",name:"Argentine Peso",format:"#.###,##",symbol:""},{code:"AMD",name:"Armenian Dram",format:"#,###.##",symbol:"֏"},{code:"AWG",name:"Aruban Guilder",format:"#,###.##",symbol:""},{code:"AUD",name:"Australian Dollar",format:"# ###.##",symbol:""},{code:"AZN",name:"Azerbaijanian Manat",format:"####.##",symbol:""},{code:"BSD",name:"Bahamian Dollar",format:"#,###.##",symbol:""},{code:"BHD",name:"Bahraini Dinar",format:"#,###.###",symbol:".د.ب (Arabic) or BD (Latin"},{code:"BDT",name:"Bangladesh Taka",format:"#,###.##",symbol:"৳"},{code:"BBD",name:"Barbados Dollar",format:"####.##",symbol:""},{code:"BYN",name:"Belarussian Ruble",format:"####",symbol:""},{code:"BZD",name:"Belize Dollar",format:"#,###.##",symbol:""},{code:"BMD",name:"Bermudian Dollar",format:"#,###.##",symbol:""},{code:"BTN",name:"Bhutan Ngultrum",format:"####.##",symbol:"Nu"},{code:"BOB",name:"Bolivia, Boliviano",format:"#,###.##",symbol:""},{code:"BAM",name:"Bosnia and Herzegovina, Convertible Marks",format:"#,###.##",symbol:""},{code:"BWP",name:"Botswana, Pula",format:"#,###.##",symbol:""},{code:"BRL",name:"Brazilian Real",format:"#.###,##",symbol:""},{code:"BND",name:"Brunei Dollar",format:"#,###.##",symbol:""},{code:"BGN",name:"Bulgarian Lev",format:"####.##",symbol:""},{code:"BIF",name:"Burundi Franc",format:"####",symbol:"FBu"},{code:"KHR",name:"Cambodia, Riel",format:"####.##",symbol:""},{code:"CAD",name:"Canadian Dollar",format:"#,###.##",symbol:""},{code:"CVE",name:"Cape Verde Escudo",format:"####.##",symbol:""},{code:"KYD",name:"Cayman Islands Dollar",format:"#,###.##",symbol:""},{code:"XPF",name:"CFP Franc",format:"####",symbol:"₣"},{code:"CLP",name:"Chilean Peso",format:"#.###",symbol:""},{code:"CNY",name:"China Yuan Renminbi",format:"#,###.##",symbol:""},{code:"COP",name:"Colombian Peso",format:"#.###,##",symbol:""},{code:"KMF",name:"Comoro Franc",format:"####",symbol:"CF"},{code:"CRC",name:"Costa Rican Colon",format:"#.###,##",symbol:""},{code:"HRK",name:"Croatian Kuna",format:"#.###,##",symbol:""},{code:"CUP",name:"Cuban Peso",format:"#,###.##",symbol:""},{code:"CZK",name:"Czech Koruna",format:"#.###,##",symbol:""},{code:"DKK",name:"Danish Krone",format:"#.###,##",symbol:""},{code:"DJF",name:"Djibouti Franc",format:"####",symbol:"Fdj"},{code:"DOP",name:"Dominican Peso",format:"#,###.##",symbol:""},{code:"XCD",name:"East Caribbean Dollar",format:"#,###.##",symbol:""},{code:"EGP",name:"Egyptian Pound",format:"#,###.##",symbol:""},{code:"SVC",name:"El Salvador Colon",format:"#,###.##",symbol:""},{code:"ERN",name:"Eritrea Nakfa",format:"####.##",symbol:"Nkf (Latin script) ናቕፋ (Ge'ez script) ناكفا (Arabic script)"},{code:"ETB",name:"Ethiopian Birr",format:"####.##",symbol:"Br (Latin Script) ብር (Ethiopic Script)"},{code:"EUR",name:"Euro",format:"#,###.##",symbol:""},{code:"FKP",name:"Falkland Islands Pound",format:"####.##",symbol:""},{code:"FJD",name:"Fiji Dollar",format:"####.##",symbol:""},{code:"CDF",name:"Congolais Franc",format:"####.##",symbol:"FC"},{code:"GMD",name:"Gambia Dalasi",format:"####.##",symbol:"D"},{code:"GEL",name:"Georgia Lari",format:"####.##",symbol:"ლ (Lasi) of the Georgian script"},{code:"GHC",name:"Ghana Cedi",format:"#,###.##",symbol:""},{code:"GIP",name:"Gibraltar Pound",format:"#,###.##",symbol:""},{code:"GTQ",name:"Guatemala, Quetzal",format:"#,###.##",symbol:""},{code:"GWP",name:"Guinea-Bissau Peso",format:"####.##",symbol:"$ or COL$"},{code:"GYD",name:"Guyana Dollar",format:"####.##",symbol:""},{code:"HTG",name:"Haitian Gourde",format:"####.##",symbol:"G"},{code:"HNL",name:"Honduran Lempira",format:"#,###.##",symbol:""},{code:"HKD",name:"Hong Kong Dollar",format:"#,###.##",symbol:""},{code:"HUF",name:"Hungary Forint",format:"#.###",symbol:""},{code:"ISK",name:"Iceland Krona",format:"#.###",symbol:""},{code:"INR",name:"Indian Rupee",format:"#,###.##",symbol:"₹"},{code:"IDR",name:"Indonesian Rupiah",format:"#.###,##",symbol:""},{code:"IRR",name:"Iranian Rial",format:"#,###.##",symbol:""},{code:"IQD",name:"Iraqi Dinar",format:"####.###",symbol:"ع.د"},{code:"JMD",name:"Jamaican Dollar",format:"#,###.##",symbol:""},{code:"JPY",name:"Japanese Yen",format:"#,###",symbol:""},{code:"JOD",name:"Jordanian Dinar",format:"#,###.###",symbol:"د.ا"},{code:"KZT",name:"Kazakhstan Tenge",format:"####.##",symbol:""},{code:"KES",name:"Kenyan Shilling",format:"#,###.##",symbol:"KES"},{code:"KWD",name:"Kuwaiti Dinar",format:"#,###.###",symbol:"د.ك or KD"},{code:"KGS",name:"Kyrgyzstan Som",format:"####.##",symbol:""},{code:"LAK",name:"Laos, Kip",format:"####.##",symbol:""},{code:"LVL",name:"Latvian Lats",format:"#,###.##",symbol:"Ls"},{code:"LBP",name:"Lebanese Pound",format:"# ###",symbol:""},{code:"LSL",name:"Lesotho Loti",format:"####.##",symbol:"L (singular) or M (plural)"},{code:"LRD",name:"Liberian Dollar",format:"####.##",symbol:""},{code:"LYD",name:"Libyan Dinar",format:"####.###",symbol:"LD and ل.د"},{code:"LTL",name:"Lithuanian Litas",format:"# ###,##",symbol:"Lt"},{code:"MOP",name:"Macao Pataca",format:"####.##",symbol:"MOP$"},{code:"MKD",name:"Macedonia, Denar",format:"#,###.##",symbol:""},{code:"MGA",name:"Malagasy Ariary",format:"####",symbol:"Ar"},{code:"MWK",name:"Malawi Kwacha",format:"####.##",symbol:"MK"},{code:"MYR",name:"Malaysian Ringgit",format:"#,###.##",symbol:""},{code:"MVR",name:"Maldives Rufiyaa",format:"####.##",symbol:"Rf"},{code:"MTL",name:"Maltese Lira",format:"#,###.##",symbol:"₤ and Lm"},{code:"MRO",name:"Mauritanian Ouguiya",format:"####.##",symbol:"UM"},{code:"MUR",name:"Mauritius Rupee",format:"#,###",symbol:""},{code:"MXN",name:"Mexican Peso",format:"#,###.##",symbol:""},{code:"MDL",name:"Moldovan Leu",format:"####.##",symbol:"L"},{code:"MNT",name:"Mongolian Tugrik",format:"####.##",symbol:""},{code:"MAD",name:"Moroccan Dirham",format:"####.##",symbol:"MAD"},{code:"MZM",name:"Mozambique Metical",format:"#.###,##",symbol:""},{code:"MMK",name:"Myanmar Kyat",format:"####.##",symbol:"K"},{code:"NAD",name:"Namibian Dollar",format:"####.##",symbol:""},{code:"NPR",name:"Nepalese Rupee",format:"#,###.##",symbol:""},{code:"ANG",name:"Netherlands Antillian Guilder",format:"#.###,##",symbol:""},{code:"ILS",name:"New Israeli Shekel",format:"#,###.##",symbol:""},{code:"TWD",name:"New Taiwan Dollar",format:"####.##",symbol:""},{code:"TRY",name:"New Turkish Lira",format:"#,###.##",symbol:"₺"},{code:"NZD",name:"New Zealand Dollar",format:"#,###.##",symbol:""},{code:"NIO",name:"Nicaragua, Cordoba Oro",format:"####.##",symbol:""},{code:"NGN",name:"Nigeria, Naira",format:"#,###.##",symbol:""},{code:"KPW",name:"North Korean Won",format:"####.##",symbol:""},{code:"NOK",name:"Norwegian Krone",format:"#.###,##",symbol:""},{code:"PKR",name:"Pakistan Rupee",format:"#,###.##",symbol:""},{code:"PAB",name:"Panama Balboa",format:"####.##",symbol:""},{code:"PGK",name:"Papua New Guinea Kina",format:"####.##",symbol:"K"},{code:"PYG",name:"Paraguay Guarani",format:"####",symbol:""},{code:"PEN",name:"Peru Nuevo Sol",format:"#,###.##",symbol:""},{code:"UYU",name:"Uruguay Peso",format:"#.###,##",symbol:""},{code:"PHP",name:"Philippine Peso",format:"#,###.##",symbol:""},{code:"PLN",name:"Poland Zloty",format:"# ###,##",symbol:""},{code:"GBP",name:"United Kingdom Pound Sterling",format:"#,###.##",symbol:""},{code:"QAR",name:"Qatari Rial",format:"####.##",symbol:""},{code:"OMR",name:"Rial Omani",format:"#,###.###",symbol:"ر.ع."},{code:"RON",name:"Romania, New Leu",format:"#.###,##",symbol:""},{code:"RUB",name:"Russian Ruble",format:"#.###,##",symbol:""},{code:"RWF",name:"Rwanda Franc",format:"####",symbol:"FRw"},{code:"SHP",name:"Saint Helena Pound",format:"####.##",symbol:""},{code:"WST",name:"Samoa Tala",format:"####.##",symbol:"SAT"},{code:"STN",name:"Sao Tome and Principe Dobra",format:"####.##",symbol:"Db"},{code:"SAR",name:"Saudi Riyal",format:"#,###.##",symbol:""},{code:"RSD",name:"Serbian Dinar",format:"####.##",symbol:""},{code:"SCR",name:"Seychelles Rupee",format:"####.##",symbol:""},{code:"SLL",name:"Sierra Leone Leone",format:"####.##",symbol:"Le"},{code:"SGD",name:"Singapore Dollar",format:"#,###.##",symbol:""},{code:"SKK",name:"Slovak Koruna",format:"# ###,##",symbol:"Sk"},{code:"SIT",name:"Slovenia Tolar",format:"#.###,##",symbol:"SlT"},{code:"SBD",name:"Solomon Islands Dollar",format:"####.##",symbol:""},{code:"SOS",name:"Somali Shilling",format:"####.##",symbol:""},{code:"ZAR",name:"South Africa Rand",format:"# ###.##",symbol:""},{code:"KRW",name:"South Korea Won",format:"#,###",symbol:""},{code:"LKR",name:"Sri Lanka Rupee",format:"####.##",symbol:""},{code:"SDD",name:"Sudanese Dinar",format:"####.##",symbol:"LSd"},{code:"SRD",name:"Surinam Dollar",format:"####.##",symbol:"$"},{code:"SZL",name:"Swaziland Lilangeni",format:"#, ###.##",symbol:"L (singular) or E (plural)"},{code:"SEK",name:"Swedish Krona",format:"# ###,##",symbol:""},{code:"CHF",name:"Swiss Franc",format:"#'###.##",symbol:""},{code:"SYP",name:"Syrian Pound",format:"####.##",symbol:""},{code:"TZS",name:"Tanzanian Shilling",format:"#,###.##",symbol:"TSh"},{code:"THB",name:"Thailand, Baht",format:"#,###.##",symbol:""},{code:"TOP",name:"Tongan Paanga",format:"#,###.##",symbol:"T$"},{code:"TTD",name:"Trinidad and Tobago Dollar",format:"####.##",symbol:""},{code:"TND",name:"Tunisian Dinar",format:"####.###",symbol:"د.ت (Tunisian Arabic) or DT (Latin)"},{code:"TMT",name:"Turkmenistani New Manat",format:"####.##",symbol:"T"},{code:"AED",name:"UAE Dirham",format:"#,###.##",symbol:"د.إ"},{code:"UGX",name:"Uganda Shilling",format:"####.##",symbol:"USh"},{code:"UAH",name:"Ukraine Hryvnia",format:"# ###,##",symbol:""},{code:"CLF",name:"Unidad de Fomento",format:"####.##",symbol:"CLF"},{code:"USD",name:"US Dollar",format:"#,###.##",symbol:"$"},{code:"UZS",name:"Uzbekistan Sum",format:"####.##",symbol:""},{code:"VUV",name:"Vanuatu Vatu",format:"#,###",symbol:"VT"},{code:"VES",name:"Venezuela Bolivares Fuertes",format:"#.###,##",symbol:""},{code:"VND",name:"Viet Nam Dong",format:"#.###",symbol:""},{code:"YER",name:"Yemeni Rial",format:"####.##",symbol:""},{code:"ZMK",name:"Zambian Kwacha",format:"####.##",symbol:"ZK"},{code:"ZWD",name:"Zimbabwe Dollar",format:"# ###.##",symbol:""}],FQ=Object.freeze(Object.defineProperty({__proto__:null,default:Ou},Symbol.toStringTag,{value:"Module"}));function tS(t){return t.component!=="FormMultiColumn"?t:t.items.flatMap(tS)}function RQ(t){return t.flatMap(e=>e.items).flatMap(tS)}Vt.register("custom-same",function(t,e){let r;const i=t;return e.includes(".")?r=e.split(".").reduce((a,n)=>a[n],this.validator.input):r=this.validator._flattenObject(this.validator.input)[e],r===i},"The :attribute and :custom-same fields must match."),Vt.register("after",function(t,e){const r=Ar(t).toISOString(),i=Ar(e).toISOString();return r>i},"The :attribute must be after :after."),Vt.register("after_or_equal",function(t,e){const r=Ar(t).toISOString(),i=Ar(e).toISOString();return r>=i},"The :attribute must be equal or after :after_or_equal."),Vt.register("before",function(t,e){const r=Ar(t).toISOString(),i=Ar(e).toISOString();return r<i},"The :attribute must be before :before."),Vt.register("before_or_equal",function(t,e){const r=Ar(t).toISOString(),i=Ar(e).toISOString();return r<=i},"The :attribute must be equal or before :before_or_equal."),Vt.register("custom_date",function(t){let e="MM/DD/YYYY";return typeof window.ProcessMaker<"u"&&window.ProcessMaker.user&&window.ProcessMaker.user.datetime_format&&(e=window.ProcessMaker.user.datetime_format.replace(/[\sHh:msaAzZ]/g,"")),Ar(t,[e,Ar.ISO_8601],!0).isValid()},"The :attribute must be a valid date.");function BQ(t,e){const r={},i={int:"integer",boolean:"boolean",string:"string",datetime:"custom-datetime",date:"custom-date",float:"regex:/^[+-]?\\d+(\\.\\d+)?$/",currency:"regex:/^[+-]?\\d+(\\.\\d+)?$/",array:"array",percentage:"regex:/^[+-]?\\d+(\\.\\d+)?$/",password:"string"};return r.validator=null,r.config=t,r.data=e,r.elements={},r.rules={},r.getDataAndRules=a=>{a.forEach(n=>{if(n){if(Array.isArray(n)&&r.getDataAndRules(n),n.items&&(n.component==="FormLoop"?r.ruleFormLoop(n.config.name,n.items):r.getDataAndRules(n.items)),n.component==="FormNestedScreen"){const s=G.get(window,`nestedScreens.id_${n.config.screen}`);s&&r.getDataAndRules(s)}n.config&&n.config.name&&n.config.validation&&r.addRule(n.config.name,n.config.validation),n.component==="FormInput"&&n.config&&n.config.name&&n.config.dataFormat&&r.addRuleFormat(n.config.name,n.config.dataFormat)}})},r.addRule=(a,n)=>{const s=[];typeof n=="string"?s.push(n):n.forEach(o=>{s.push(o.value)}),r.rules[a]=s},r.addRuleFormat=(a,n)=>{r.rules[a]||(r.rules[a]=[]),r.rules[a].push(i[n])},r.ruleFormLoop=(a,n)=>{n.forEach(s=>{Array.isArray(s)&&r.ruleFormLoop(a,s),s.items&&(s.component==="FormLoop"?r.ruleFormLoop(`${a}.*.${s.config.name}`,s.items):r.ruleFormLoop(a,s.items)),s.config&&s.config.name&&s.config.validation&&(Array.isArray(s.config.validation)&&s.config.validation.forEach(o=>{if(!o.value.includes(":"))return;const u=o.value.split(":")[0];let l=o.value.split(":")[1],c;if(u.includes("required_")||u.includes("same")){if(l.includes("_parent"))l=l.split("_parent.").pop(),c=`${u}:${l}`;else if(!l.includes(","))c=`${u}:${a}.*.${l}`;else{l=l.split(",")[0];const d=o.value.split(":")[1].split(",")[1];c=`${u}:${a}.*.${l},${d}`}o.value=c}}),r.addRule(`${a}.*.${s.config.name}`,s.config.validation)),s.component==="FormInput"&&s.config&&s.config.name&&s.config.dataFormat&&r.addRuleFormat(`${a}.*.${s.config.name}`,s.config.dataFormat)})},r.getValidator=()=>{r.getDataAndRules(r.config),r.validator=new Vt(r.data,r.rules)},r.getErrors=()=>r.failed()?r.validator.errors.errors:{},r.failed=()=>(r.getValidator(),r.validator.fails()),r}const HQ={props:["value"],data(){return{display:"running",errorMessage:"",showMessage:!1,variables:[]}},computed:{message(){return this.$t("{{variable}} running.",{variable:this.variables.join(", ")})}},methods:{error(t){this.display="error",this.errorMessage=t},show(t){this.variables.indexOf(t)===-1&&this.variables.push(t),this.display="running",this.errorMessage="",this.showMessage=!1,this.$refs.modal.show()},hide(t){t===-1&&this.variables.splice(0);const e=this.variables.indexOf(t);e>-1&&this.variables.splice(e,1),this.variables.length===0&&this.$refs.modal.hide()}}};var VQ=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:"lg",id:"watchers-synchronous",title:"","hide-header":"","no-close-on-esc":"","hide-header-close":"","no-close-on-backdrop":""}},[e.display==="running"?r("div",{staticClass:"container text-center"},[r("div",{staticClass:"icon-container m-4"},[r("svg",{staticClass:"lds-gear",attrs:{width:"50%",height:"50%",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[r("g",{attrs:{transform:"translate(50 50)"}},[r("g",{attrs:{transform:"rotate(248.825)"}},[r("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"4.7s",repeatCount:"indefinite"}}),r("path",{attrs:{d:"M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"}})],1)])])]),r("h3",{staticClass:"display-6"},[e._v(e._s(e.message))]),r("p",{staticClass:"lead"},[e._v(e._s(e.$t("This window will automatically close when complete.")))])]):r("div",{staticClass:"container text-center"},[r("div",{staticClass:"icon-container m-4"},[r("i",{staticClass:"fas fa-sad-tear fa-10x"})]),r("h3",{staticClass:"display-6"},[e._v(e._s(e.$t("Something has gone wrong.")))]),r("p",{staticClass:"lead"},[e._v(e._s(e.$t("Unfortunately this screen has had an issue. We've notified the administrator."))+" "),r("a",{attrs:{href:"javascript:void(0)","data-cy":"watchers-show-error-message"},on:{click:function(i){e.showMessage=!e.showMessage}}},[r("i",{staticClass:"fas fa-info-circle"})])]),e.showMessage?r("small",{staticClass:"text-danger text-left small"},[e._v(e._s(e.errorMessage))]):e._e()]),r("div",{staticClass:"w-100 text-right",attrs:{slot:"modal-footer"},slot:"modal-footer"},[e.display==="error"?r("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:function(i){return e.hide(-1)}}},[e._v(e._s(e.$t("Close")))]):e._e()])])},qQ=[],WQ=ie(HQ,VQ,qQ,!1,null,null);const rS=WQ.exports,XQ={props:{value:Object}};var UQ=function(){var e=this,r=e._self._c;return r("b-alert",{ref:"alert",attrs:{variant:"danger",dismissible:""},model:{value:e.value.show,callback:function(i){e.$set(e.value,"show",i)},expression:"value.show"}},[r("b",[e._v(" "+e._s(e.value.error)+" ")]),r("ul",e._l(e.value.errors,function(i,a){return r("li",{key:`error-${a}`},[e._v(e._s(i))])}),0)])},JQ=[],GQ=ie(XQ,UQ,JQ,!1,null,null);const gp=GQ.exports,one="",QQ={name:"ScreenRenderer",components:{WatchersSynchronous:rS,ScreenRendererError:gp},mixins:[Wb,Mc],props:{loopContext:{type:String,default:""},taskdraft:Object},data(){return{currentDefinition:null,codigo:"",displayAsyncLoading:!1}},watch:{definition:{deep:!0,handler(t){G.isEmpty(t.config)||this.rebuildScreen(t)}}},mounted(){this.currentDefinition=G.cloneDeep(this.definition),this.component=this.buildComponent(this.currentDefinition)},methods:{rebuildScreen(t){G.isEqual(t,this.currentDefinition)||(this.currentDefinition=G.cloneDeep(t),this.component=this.buildComponent(this.currentDefinition))},onAsyncWatcherOn(){this.displayAsyncLoading=typeof this._parent>"u"},onAsyncWatcherOff(){this.displayAsyncLoading=!1},getCurrentPage(){return this.$refs.component.getCurrentPage()},setCurrentPage(t){this.$emit("updatedPage"),this.$refs.component.setCurrentPage(t)},afterSubmit(){this.$emit("after-submit",...arguments)}}};var YQ=function(){var i;var e=this,r=e._self._c;return r("b-container",{attrs:{fluid:""}},[e.displayAsyncLoading?r("div",{ref:"watchersAsynchronous",staticClass:"alert alert-light",attrs:{role:"alert"}},[r("svg",{staticClass:"lds-gear",attrs:{width:"20px",height:"20px",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[r("g",{attrs:{transform:"translate(50 50)"}},[r("g",{attrs:{transform:"rotate(248.825)"}},[r("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"4.7s",repeatCount:"indefinite"}}),r("path",{attrs:{d:"M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"}})],1)])]),e._v(" "+e._s(e.$t("Loading..."))+" ")]):e._e(),r(e.component,{ref:"component",tag:"component",attrs:{vdata:e.value,_parent:e._parent||((i=e.value)==null?void 0:i._parent),"_initial-page":e.currentPage,taskdraft:e.taskdraft},on:{"after-submit":e.afterSubmit,submit:e.submit,asyncWatcherTriggered:e.onAsyncWatcherOn,asyncWatcherCompleted:e.onAsyncWatcherOff}}),e.showErrors&&e.building.error?r("screen-renderer-error",{model:{value:e.building,callback:function(a){e.building=a},expression:"building"}}):e._e(),r("watchers-synchronous",{ref:"watchersSynchronous"})],1)},ZQ=[],KQ=ie(QQ,YQ,ZQ,!1,null,null);const iS=KQ.exports,lne="",_Q={name:"VueFormRenderer",components:{ScreenRenderer:iS,CustomCssOutput:LQ},mixins:[Mc,Wh,Dd],model:{prop:"data",event:"update"},props:["config","data","_parent","page","computed","customCss","mode","watchers","isLoop","ancestorScreens","loopContext","showErrors","testScreenDefinition","deviceScreen","taskdraft"],data(){return{definition:{config:this.config,computed:this.computed,customCss:this.customCss,watchers:this.watchers,isMobile:!1},formSubmitErrorClass:"",watchers_config:{api:{execute:null,execution:null}},customCssWrapped:"",customFunctions:{formatCurrency(){const t=(e,r)=>{const i=Ou.find(n=>n.code===r),a={alias:"currency"};if(i){const n=i.format.match(/[.,]/g);n.length===0?n.push("","."):n.length===1&&n.push(n[0]==="."?",":"."),a.digits=(i.format.split(n[1])[1]||"").length,a.radixPoint=n[1],a.groupSeparator=n[0],a.prefix=`${i.symbol} `,a.suffix=` ${i.code}`}return _b.format(e,a)};return function(e){const r=JSON.parse(`[${e}]`);return t(G.get(this,r[0]),r[1])}}},scrollable:null,containerObserver:null}},computed:{containerClass(){return this.parentScreen?`screen-${this.parentScreen}`:"custom-css-scope"},cssDevice(){return{"--mobile-width":qh}},containerDeviceClass(){return this.deviceScreen==="mobile"?"container-mobile":"container-desktop"}},watch:{customCss(t){this.definition.customCss=t,this.parseCss()},config:{deep:!0,handler(t){this.definition.config=t,this.$nextTick(()=>{this.registerCustomFunctions()})}},data:{deep:!0,handler(){this.$emit("update",this.data);const t=this.getMainScreen();t&&this.validate(t)}},computed:{deep:!0,handler(t){this.definition.computed=t}},watchers:{deep:!0,handler(t){this.definition.watchers=t}}},created(){this.parseCss=G.debounce(this.parseCss,500,{leading:!0}),this.containerObserver=new ResizeObserver(this.onContainerObserver)},mounted(){this.registerCustomFunctions(),window.ProcessMaker&&window.ProcessMaker.EventBus&&window.ProcessMaker.EventBus.$emit("screen-renderer-init",this),this.scrollable=NQ(this.$el),this.containerObserver.observe(this.$refs.formRendererContainer),this.$store.dispatch("clipboardModule/initializeClipboard")},methods:{...Ft.mapActions("globalErrorsModule",["validate","hasSubmitted","showValidationOnLoad","restartValidation"]),getMainScreen(){return this.$refs.renderer&&this.$refs.renderer.$refs.component},countElements(t){const e={config:t};return this.$refs.renderer.countElements(e)},checkForRecordList(t,e){return t.forEach(r=>{r.items&&this.checkForRecordList(r.items,e),r.component==="FormRecordList"&&this.removeRecordListForms(r,e)}),e},removeRecordListForms(t,e){const r=t.config.form;return delete e[r],e},checkForNestedScreenErrors(t){if(t.$options._componentTag==="FormNestedScreen")return t.errors()},isValid(){const t=RQ(this.definition.config),e=G.cloneDeep(this.definition.config);return this.checkForRecordList(t,e),this.dataTypeValidator=BQ(e,this.data),this.errors=this.dataTypeValidator.getErrors(),this.errors&&(this.formSubmitErrorClass="invalid-form-submission"),G.size(this.errors)===0},registerCustomFunctions(t=this){t.registerCustomFunction instanceof Function&&Object.keys(this.customFunctions).forEach(e=>{t.registerCustomFunction(e,this.customFunctions[e])}),t.$children instanceof Array&&t.$children.forEach(e=>this.registerCustomFunctions(e))},afterSubmit(){this.$emit("after-submit",...arguments)},submit(t,e=!1,r=null){this.$emit("submit",t,e,r)},parseCss(){const t=`.${this.containerClass}`;try{const e=na.parse(this.customCss,{onParseError(a){throw a.formattedMessage}});let r=0;na.walk(e,function(a,n,s){if(a.type.match(/^.+Selector$/)&&a.name!==t&&s&&(n.prev||(s.prependData({type:"WhiteSpace",loc:null,value:" "}),s.prependData({type:"TypeSelector",loc:null,name:t}))),r>5e3)throw Error("CSS is too long");r+=1});const i=[];na.walk(e,{visit:"Atrule",enter:(a,n,s)=>{if(!n.prev&&a.name==="media"){const o={minWidth:0,maxWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),rules:[]};na.walk(a.prelude,{visit:"MediaFeature",enter:u=>{["min-width","max-width"].includes(u.name)&&(o[G.camelCase(u.name)]=parseInt(u.value.value,10),o.rules.length===0&&na.walk(a.block,{visit:"Rule",enter:l=>{const c=na.generate(l);o.rules.push(c)}}),i.push(o))}}),s.remove(n)}}}),this.customCssWrapped=na.generate(e),i.forEach(a=>{const{width:n}=this.$refs.formRendererContainer.getBoundingClientRect();n>=a.minWidth&&n<=a.maxWidth&&(this.customCssWrapped+=a.rules.join(" "))}),this.$emit("css-errors","")}catch(e){this.$emit("css-errors",e)}},getCurrentPage(){return this.$refs.renderer.getCurrentPage()},setCurrentPage(t){this.$emit("update-page-task"),this.$refs.renderer.setCurrentPage(t)},onContainerObserver(t){t[0].target.getBoundingClientRect(),this.parseCss()},saveClipboarToLocalStorage(t){localStorage.setItem("savedClipboard",JSON.stringify(t))}}};var $Q=function(){var i;var e=this,r=e._self._c;return r("div",{ref:"formRendererContainer",class:[e.containerClass,e.containerDeviceClass],style:e.cssDevice,attrs:{id:"vue-form-renderer","data-cy":"screen-renderer-container"}},[r("custom-css-output",[e._v(e._s(e.customCssWrapped))]),r("screen-renderer",{ref:"renderer",staticClass:"p-0",attrs:{value:e.data,_parent:e._parent||((i=e.data)==null?void 0:i._parent),definition:e.definition,"current-page":e.currentPage,"data-cy":"screen-renderer","show-errors":e.showErrors,"test-screen-definition":e.testScreenDefinition||!1,"loop-context":e.loopContext,taskdraft:e.taskdraft},on:{updatePage:e.setCurrentPage,"after-submit":e.afterSubmit,submit:e.submit}})],1)},eY=[],tY=ie(_Q,$Q,eY,!1,null,"560176a3");const Ci=tY.exports,rY={name:"FormLoop",components:{VueFormRenderer:Ci},mixins:[],props:["value","config","transientData","name","mode","formConfig"],data(){return{matrix:[],items:[],additionalItems:0,transientDataCopy:null,parentObjectChanges:[]}},computed:{parentLoopContext(){let t=this.$parent,e=0,r="";for(;!t.loopContext;){if(t=t.$parent,t===this.$root){t=null;break}if(e>100)throw new Error("Loop Error");e++}return t&&(r=t.loopContext),r},rendererConfig(){const{items:t}=this;return[{name:"LoopItem",items:t}]},times(){if(!this.config||!this.config.settings)return[];if(this.config.settings.type==="existing"){const e=G.get(this.transientData,this.name,null);return e?[...e.keys()]:[]}let{times:t}=this.config.settings;try{t=Kt.render(t,this.transientData)}catch(e){throw new Error(e)}return t=parseInt(t),Number.isNaN(t)?[]:(t>100&&(t=100),t+=this.additionalItems,[...Array(t).keys()])}},watch:{transientData:{handler(){this.transientDataCopy=G.cloneDeep(this.transientData),this.$delete(this.transientDataCopy,this.name);const t=G.get(this,`transientData.${this.name}`,null);t&&Array.isArray(t)?this.matrix=t:this.matrix=[],this.setupMatrix()},immediate:!0},value:{handler(){this.items=this.value},immediate:!0},matrix:{handler(){G.isEqual(this.$parent.transientData[this.name],this.matrix)||this.$set(this.$parent.transientData,this.name,G.cloneDeep(this.matrix))},deep:!0},times(){this.setupMatrix()},"config.settings.times":{handler(){this.additionalItems=0}}},mounted(){this.$set(this.$parent.transientData,this.name,G.cloneDeep(this.matrix))},methods:{getLoopContext(t){let e=`${this.name}.${t.toString()}`;return this.parentLoopContext!==""&&(e=`${this.parentLoopContext}.${e}`),e},add(){this.config.settings.type==="existing"?this.setMatrixValue(this.matrix.length,{}):this.additionalItems++},remove(){this.config.settings.type==="existing"?this.$delete(this.matrix,this.matrix.length-1):this.additionalItems--},removeConfirm(){const t=this.$t("Are you sure you want to delete this?");window.ProcessMaker.confirmModal(this.$t("Caution!"),t,"",()=>{this.remove()})},setMatrixValue(t,e){const r=G.omit(e,"_parent");this.registerParentVariableChanges(e),this.$set(this.matrix,t,r),this.setChagnedParentVariables()},registerParentVariableChanges(t){t._parent&&Object.keys(t._parent).forEach(e=>{G.isEqual(this.transientDataCopy[e],t._parent[e])||this.parentObjectChanges.push({key:e,value:t._parent[e]})})},setChagnedParentVariables(){this.parentObjectChanges.forEach(t=>{this.$set(this.$parent.transientData,t.key,t.value)}),this.parentObjectChanges=[]},getMatrixValue(t){let e=G.cloneDeep(this.matrix[t]);return e||(e={}),e._parent=G.cloneDeep(this.transientDataCopy),e},setupMatrix(){for(const t of this.times)typeof this.matrix[t]>"u"&&this.setMatrixValue(t,{});this.matrix.length!==this.times.length&&(this.matrix=this.matrix.slice(0,this.times.length))},submit(){this.$emit("submit")}}};var iY=function(){var e=this,r=e._self._c;return r("div",[e._l(e.times,function(i){return r("form",{key:i,on:{submit:function(a){a.preventDefault()}}},[r("vue-form-renderer",{attrs:{data:e.getMatrixValue(i),config:e.rendererConfig,computed:null,"custom-css":null,watchers:null,"is-loop":!0,"debug-context":"Loop #"+i,mode:e.mode,"loop-context":e.getLoopContext(i),"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:function(a){return e.$emit("pageNavigate",a)},update:function(a){return e.setMatrixValue(i,a)}}})],1)}),e.config.settings.add?r("b-row",{staticClass:"justify-content-md-center"},[r("b-col",{attrs:{md:"auto"}},[r("b-button",{staticClass:"ml-1 mr-1",attrs:{size:"sm",variant:"secondary",title:e.$t("Add Item")},on:{click:e.add}},[r("i",{staticClass:"fas fa-plus"})]),e.times.length>0?r("b-button",{staticClass:"ml-1 mr-1",attrs:{size:"sm",variant:"outline-danger",title:e.$t("Delete Item")},on:{click:e.removeConfirm}},[r("i",{staticClass:"fas fa-minus"})]):e._e()],1)],1):e._e()],2)},aY=[],nY=ie(rY,iY,aY,!1,null,null);const js=nY.exports,une="",zu=typeof window>"u"?global:window,bp=[{name:"empty",items:[]}],sY={components:{VueFormRenderer:Ci},props:{name:String,screen:Number,value:null,validationData:null,_parent:null,ancestorScreens:{type:Array,default:()=>[]}},data(){return{localData:{},config:bp,computed:[],customCSS:null,watchers:[],screenTitle:null}},computed:{validatedConfig(){return this.config&&this.config[0]?this.config:bp},data:{get(){return this.validationData||this.localData},set(t){Object.keys(t).forEach(e=>{this.validationData&&this.$set(this.validationData,e,t[e])})}},placeholder(){return this.screen?"":this.$t("Select a screen to nest")}},methods:{isSubmitButton(t){return t.config&&t.component==="FormButton"&&t.config.event==="submit"},hideSubmitButtons(t){t.forEach(e=>{Array.isArray(e)&&this.hideSubmitButtons(e),e.items&&this.hideSubmitButtons(e.items),this.isSubmitButton(e)&&(e.config.hidden=!0)})},disableForm(t){t.forEach(e=>{Array.isArray(e)&&this.disableForm(e),e.items&&this.disableForm(e.items),e&&e.config&&(e.config.disabled=!0,e.config.readonly=!0,e.config.editable=!1)})},loadScreen(t){this.config=bp,this.computed=[],this.customCSS=null,this.watchers=[],this.screenTitle=null,t&&this.$dataProvider.getScreen(t).then(e=>{this.config=e.data.config,this.hideSubmitButtons(this.config),this.computed=e.data.computed,this.customCSS=e.data.custom_css,this.watchers=e.data.watchers,this.screenTitle=e.data.title,this.$attrs.disabled&&this.disableForm(this.config),this.ancestorScreens.includes(this.screenTitle)?zu.ProcessMaker.alert(`Rendering of nested "${this.screenTitle}" screen was disallowed to prevent loop.`,"warning"):(zu.nestedScreens||(zu.nestedScreens={}),zu.nestedScreens["id_"+t]=this.config,this.$root.$emit("nested-screen-updated"))})},errors(){return this.$refs.nestedScreen.isValid(),this.$refs.nestedScreen.errors}},watch:{screen(t){this.loadScreen(t)}},mounted(){this.loadScreen(this.screen)}};var oY=function(){var e=this,r=e._self._c;return e.ancestorScreens.includes(e.screenTitle)?e._e():r("vue-form-renderer",{ref:"nestedScreen",staticClass:"form-nested-screen",attrs:{placeholder:e.placeholder,config:e.validatedConfig,"ancestor-screens":[...e.ancestorScreens,e.screenTitle],mode:"preview",computed:e.computed,"custom-css":e.customCSS,watchers:e.watchers,"debug-context":"Nested Screen",_parent:e._parent},on:{"css-errors":function(i){e.cssErrors=i}},model:{value:e.data,callback:function(i){e.data=i},expression:"data"}})},lY=[],uY=ie(sY,oY,lY,!1,null,null);const Is=uY.exports,cne="",cY={name:"MustacheHelper"};var dY=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"mustache",attrs:{title:e.$t("This field accepts mustache syntax")}},[e._v(" {} ")])},fY=[],pY=ie(cY,dY,fY,!1,null,"8cef93f7");const Ti=pY.exports,hY="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjA1MTQgMy43Mzg4OUwxNS40NTc2IDIuMzMyNjVDMTYuMDY3OCAxLjcyMjQ1IDE3LjA1NzIgMS43MjI0NSAxNy42Njc0IDIuMzMyNjVDMTguMjc3NSAyLjk0Mjg0IDE4LjI3NzUgMy45MzIxNiAxNy42Njc0IDQuNTQyMzVMOC44MTg0OSAxMy4zOTEyQzguMzc3OTIgMTMuODMxOCA3LjgzNDUzIDE0LjE1NTYgNy4yMzc0MSAxNC4zMzM1TDUgMTVMNS42NjY0OCAxMi43NjI2QzUuODQ0MzUgMTIuMTY1NSA2LjE2ODIgMTEuNjIyMSA2LjYwODc3IDExLjE4MTVMMTQuMDUxNCAzLjczODg5Wk0xNC4wNTE0IDMuNzM4ODlMMTYuMjUgNS45Mzc0OU0xNSAxMS42NjY3VjE1LjYyNUMxNSAxNi42NjA1IDE0LjE2MDUgMTcuNSAxMy4xMjUgMTcuNUg0LjM3NUMzLjMzOTQ3IDE3LjUgMi41IDE2LjY2MDUgMi41IDE1LjYyNVY2Ljg3NDk5QzIuNSA1LjgzOTQ2IDMuMzM5NDcgNC45OTk5OSA0LjM3NSA0Ljk5OTk5SDguMzMzMzMiIHN0cm9rZT0iIzU5NjM3MiIgc3Ryb2tlLXdpZHRoPSIxLjI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==",mY="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNiAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjI4MzcgNi41TDkuOTk1MTkgMTRNNi4wMDQ4MSAxNEw1LjcxNjM1IDYuNU0xNC4wMjMgMy44MjU0N0MxNC4zMDggMy44Njg1MSAxNC41OTIgMy45MTQ1NiAxNC44NzUgMy45NjM1OE0xNC4wMjMgMy44MjU0N0wxMy4xMzMyIDE1LjM5MzhDMTMuMDU4IDE2LjM3MDcgMTIuMjQzNCAxNy4xMjUgMTEuMjYzNyAxNy4xMjVINC43MzYzMUMzLjc1NjU1IDE3LjEyNSAyLjk0MTk4IDE2LjM3MDcgMi44NjY4MyAxNS4zOTM4TDEuOTc2OTYgMy44MjU0N00xNC4wMjMgMy44MjU0N0MxMy4wNjc3IDMuNjgxMiAxMi4xMDEzIDMuNTcwNzEgMTEuMTI1IDMuNDk1MjdNMS4xMjUgMy45NjM1OEMxLjQwNzk4IDMuOTE0NTYgMS42OTE5OCAzLjg2ODUxIDEuOTc2OTYgMy44MjU0N00xLjk3Njk2IDMuODI1NDdDMi45MzIzMSAzLjY4MTIgMy44OTg3NCAzLjU3MDcxIDQuODc1IDMuNDk1MjdNMTEuMTI1IDMuNDk1MjdWMi43MzE4MkMxMS4xMjUgMS43NDkwMiAxMC4zNjYxIDAuOTI4NTI2IDkuMzgzODIgMC44OTcxMDNDOC45MjQzNSAwLjg4MjQwNSA4LjQ2MzA0IDAuODc1IDggMC44NzVDNy41MzY5NiAwLjg3NSA3LjA3NTY1IDAuODgyNDA1IDYuNjE2MTggMC44OTcxMDNDNS42MzM4OCAwLjkyODUyNiA0Ljg3NSAxLjc0OTAyIDQuODc1IDIuNzMxODJWMy40OTUyN00xMS4xMjUgMy40OTUyN0MxMC4wOTM4IDMuNDE1NTggOS4wNTE2NCAzLjM3NSA4IDMuMzc1QzYuOTQ4MzYgMy4zNzUgNS45MDYyIDMuNDE1NTggNC44NzUgMy40OTUyNyIgc3Ryb2tlPSIjNTk2MzcyIiBzdHJva2Utd2lkdGg9IjEuMjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K",dne="",vY={key:"__actions",label:"Actions",thClass:"text-right",tdClass:"text-right"},gY={components:{VueFormRenderer:Ci,MustacheHelper:Ti},mixins:[ef],props:["name","label","fields","value","editable","_config","form","validationData","formConfig","formComputed","formWatchers","_perPage","source","paginationOption","designerMode","bgcolormodern"],data(){return{editFormVersion:0,single:"",plural:"",addItem:{},editItem:{},editIndex:null,currentPage:1,paginatorPage:1,perPageSelectEnabled:!1,perPage:5,lastPage:1,css:{tableClass:"table table-hover table-responsive text-break mb-0 d-table",loadingClass:"loading",detailRowClass:"vuetable-detail-row",handleIcon:"grey sidebar icon",sortableIcon:"fas fa-sort",ascendingIcon:"fas fa-sort-up",descendingIcon:"fas fa-sort-down",ascendingClass:"ascending",descendingClass:"descending",renderIcon(t){return`<i class="${t.join(" ")}"></i>`}},initFormValues:{},currentRowIndex:null,collectionData:{},selectedRow:null,selectedRows:[],selectedIndex:null,rows:[],selectAll:!1,styleMode:"Classic",isPopoverVisible:null,popoverPosition:{top:"0px",left:"0px"}}},computed:{tableClassModern(){if(this.styleMode==="Modern")switch(this.bgcolormodern){case"alert alert-primary":return"record-list-table-primary";case"alert alert-success":return"record-list-table-success";case"alert alert-warning":return"record-list-table-warning";case"alert alert-secondary":return"record-list-table-secondary";default:return"record-list-table-secondary"}return""},indeterminate(){return this.selectedRows.length>0&&this.selectedRows.length<this.tableData.data.length},popupConfig(){const t=[];return t[this.form]=this.formConfig[this.form],t},debug(){return{perPageSelectEnabled:this.perPageSelectEnabled,perPageSelectEnabled2:this.$refs.pagination&&this.$refs.pagination.perPageSelectEnabled}},parentObj(){let t=this.$parent;for(;"transientData"in t.$props;)t=t.$parent;return t},dataManager(){if(this.$refs.vuetable){const t=this.$refs.vuetable.makePagination(this.value.length);return{pagination:t,data:this.value.slice(t.from-1,t.to)}}console.log("refs vuetable not exists")},tableData(){const t=Array.isArray(this.collectionData)&&this.collectionData.length?this.collectionData:Array.isArray(this.value)?this.value:[];this.value&&(this.selectedIndex=this.value.selectedRowIndex);const e=this.paginatorPage-1;this.lastPage=Math.ceil(t.length/this.perPage);const r={total:t.length,per_page:this.perPage,current_page:this.paginatorPage,last_page:this.lastPage,next_page_url:null,prev_page_url:null,from:e,to:t.length,data:t,lastSortConfig:!1};return this.selectedIndex!==null&&this.selectedIndex<r.data.length&&(this.selectedRow=r.data[this.selectedIndex]),Array.isArray(this.value)&&this.value.length>0&&this.rows.length===0&&this.value.forEach(i=>{i.hasOwnProperty("selectedRowsIndex")&&this.selectedRows.push(r.data[i.selectedRowsIndex])}),r},tableFields(){var e,r,i;const t=this.getTableFieldsFromDataSource();return this.editable&&!this.selfReferenced&&t.push(vY),((e=this.source)==null?void 0:e.sourceOptions)==="Collection"&&(["single-field","single-record"].includes((r=this.source)==null?void 0:r.dataSelectionOptions)&&t.unshift({key:"radio",label:"",sortable:!1}),((i=this.source)==null?void 0:i.dataSelectionOptions)==="multiple-records"&&t.unshift({key:"checkbox",label:"",sortable:!1})),t},selfReferenced(){return this.form&&this.form===this.$parent.currentPage}},watch:{"tableData.total":{deep:!0,handler(t){const e=Math.ceil(t/this.perPage);this.currentPage=this.currentPage>e?e:this.currentPage,this.currentPage=this.currentPage==0?1:this.currentPage}},validationData:{handler(t,e){var r,i,a,n,s,o,u;((r=this.source)==null?void 0:r.sourceOptions)==="Collection"&&((a=(i=this.source)==null?void 0:i.collectionFields)!=null&&a.pmql)&&this.onCollectionChange((s=(n=this.source)==null?void 0:n.collectionFields)==null?void 0:s.collectionId,(u=(o=this.source)==null?void 0:o.collectionFields)==null?void 0:u.pmql)},deep:!0,immediate:!1}},mounted(){var t,e,r,i,a,n,s;this._perPage&&(this.perPage=this._perPage),this.updateRowDataNamePrefix=G.debounce(this.updateRowDataNamePrefix,100),this.paginationOption!=null&&(this.perPage=this.paginationOption),((t=this.source)==null?void 0:t.sourceOptions)==="Collection"&&this.onCollectionChange((r=(e=this.source)==null?void 0:e.collectionFields)==null?void 0:r.collectionId,(a=(i=this.source)==null?void 0:i.collectionFields)==null?void 0:a.pmql),this.setStyleMode((n=this.designerMode)==null?void 0:n.designerOptions),this.$root.$emit("record-list-option",(s=this.source)==null?void 0:s.sourceOptions)},methods:{togglePopover(t,e,r){if(this.deleteIndex=G.find(this.tableData.data,{row_id:r}),this.isPopoverVisible=this.isPopoverVisible===t?null:t,this.isPopoverVisible!==null){const a=(e.target.closest("button")||e.target).getBoundingClientRect(),n=285,s=130,o=8;let u=a.bottom+o,l=a.left;u+s>window.innerHeight-o&&(u=Math.max(o,a.top-s-o));const c=window.innerWidth-n-o;l=Math.max(o,Math.min(l,c)),this.popoverPosition={top:`${u}px`,left:`${l}px`}}},hidePopover(){this.isPopoverVisible=null},popover_remove(){this.remove(),this.hidePopover()},rowClass(t){return this.isRowSelected(t)?"sel-row":""},isRowSelected(t){return this.selectedRows.includes(t)||this.selectedRow===t},setStyleMode(t){this.styleMode=t||"Classic"},selectAllRows(){if(this.allRowsSelected){const t=this.tableData.data.map((e,r)=>({...e,selectedRowsIndex:r}));this.selectedRows=t,this.collectionData=t,this.onMultipleSelectionChange()}else this.selectedRows=[],this.onMultipleSelectionChange()},componentOutput(t){this.$emit("input",t)},onRadioChange(t,e){var i;const r=(this.currentPage-1)*this.perPage+e;if((i=this.source)!=null&&i.singleField){let a=t[this.source.singleField];this.componentOutput(a)}else t={...t,selectedRowIndex:r},this.componentOutput(t)},onMultipleSelectionChange(t){this.collectionData.forEach((e,r)=>{this.selectedRows.forEach(i=>{this.areObjectsEqual(i,e)&&(i.selectedRowsIndex=r)})}),this.componentOutput(this.selectedRows),this.rows.push(t)},areObjectsEqual(t,e){const r=Object.keys(t),i=Object.keys(e);return r.length!==i.length?!1:r.every(a=>t[a]===e[a])},onCollectionChange(t,e){if(!e||e.trim()===""){this.fetchAllRecords(t);return}const r=this.processMustacheInPmql(e);r&&this.fetchRecordsWithPmql(t,r)},processMustacheInPmql(t){if(!t||!t.includes("{{"))return t;try{const e=this.validationData||{};let r=Kt.render(t,e);return this.hasEmptyValues(r)?(this.collectionData=[],null):(r=r.replace(/= ([^"'\s][^"']*[^"'\s]|[^"'\s]+)(?=\s|$)/g,'= "$1"'),r)}catch{return this.collectionData=[],null}},hasEmptyValues(t){return['= ""','= " "',"= null","= undefined"].some(r=>t.includes(r))},isValidPmql(t){return t&&t.trim()!==""&&!t.includes("{{")},fetchAllRecords(t){this.$dataProvider.getCollectionRecordsList(t,{}).then(e=>{const r=e.data;this.changeCollectionColumns(r,this.fields)}).catch(()=>{this.collectionData=[]})},fetchRecordsWithPmql(t,e){if(!this.isValidPmql(e)){this.collectionData=[];return}const r={params:{pmql:e}};this.$dataProvider.getCollectionRecordsList(t,r).then(i=>{const a=i.data;this.changeCollectionColumns(a,this.fields)}).catch(()=>{this.collectionData=[]}),this.$emit("change",this.field)},changeCollectionColumns(t,e){const r=e.optionsList;t.forEach(i=>{let a=i.data,n={};Object.keys(a).forEach(s=>{const o=r.find(u=>u.content===s);o&&(n[o.key]=a[s])}),i.data=n}),this.setCollectionIntoList(t)},setCollectionIntoList(t){const e=[];t.forEach(r=>{if(r.hasOwnProperty("data")){const i=r.data,a={};for(const[n,s]of Object.entries(i))a[n]=s;e.push(a)}}),this.collectionData=e,this.reapplyCollectionSelections(e)},reapplyCollectionSelections(t){if(!this.shouldPersistCollectionSelection()||!Array.isArray(this.selectedRows)||this.selectedRows.length===0)return;const e=this.selectedRows.reduce((i,a)=>{const n=this.getCollectionRowKey(a);if(!n)return i;const s=i.get(n)||0;return i.set(n,s+1),i},new Map);if(e.size===0){this.selectedRows=[];return}const r=[];t.forEach((i,a)=>{const n=this.getCollectionRowKey(i),s=e.get(n);s&&(i.selectedRowsIndex=a,r.push(i),s===1?e.delete(n):e.set(n,s-1))}),this.selectedRows=r},shouldPersistCollectionSelection(){var e,r,i,a;const t=(r=(e=this.source)==null?void 0:e.collectionFields)==null?void 0:r.pmql;return((i=this.source)==null?void 0:i.sourceOptions)==="Collection"&&((a=this.source)==null?void 0:a.dataSelectionOptions)==="multiple-records"&&typeof t=="string"&&t.trim().length>0},getCollectionRowKey(t){if(!t||typeof t!="object")return null;const e=Object.entries(t).filter(([r])=>r!=="selectedRowsIndex");return e.length===0?null:(e.sort(([r],[i])=>r>i?1:r<i?-1:0),JSON.stringify(e))},updateRowDataNamePrefix(){this.setUploadDataNamePrefix(this.currentRowIndex)},emitShownEvent(){window.ProcessMaker.EventBus.$emit("modal-shown")},formatIfDate(t){return ee.dateUtils.formatIfDate(t)},isImage(t,e){const r=G.get(e,t.key);return typeof r=="string"&&r.substr(0,11)==="data:image/"},isWebEntryFile(t,e){const r=G.get(e,t.key),i=/^webentry_.*:*$/;let a=r;return Array.isArray(r)&&(a=r[0].file),i.test(a)},formatIfWebEntryFile(t,e){return G.get(window,"PM4ConfigOverrides.requestFiles",{})[`${t.key}.${e.row_id}`].map(a=>a.file_name).join(", ")},isFiledownload(t){return t.key==="__filedownload"},setUploadDataNamePrefix(t=null){this.currentRowIndex=t;let e=null;t!==null&&this.editItem?e=this.editItem.row_id:this.addItem&&(e=this.addItem.row_id),this.$root.$emit("set-upload-data-name",this,t,e)},getTableFieldsFromDataSource(){var n;const{jsonData:t,key:e,value:r,dataName:i}=this.fields;let a={};return((n=this.source)==null?void 0:n.sourceOptions)==="Collection"?a=s=>({key:s[e||"key"],sortable:!0,label:s[e||"key"],tdClass:"table-column"}):a=s=>({key:s[e||"value"],sortable:!0,label:s[r||"content"],tdClass:"table-column"}),this.getValidFieldData(t,i).map(a)},getValidFieldData(t,e){let r=this.validationData[e];if(t)try{r=JSON.parse(t)}catch{r=[]}return Array.isArray(r)?r:[]},hideInformation(){this.$refs.infoModal.hide()},onPaginationData(t){this.$refs.pagination.setPaginationData(t)},onChangePerPage(t){this.perPage=parseInt(t)},onChangePage(t){t=="next"?this.paginatorPage+=1:t=="prev"?this.paginatorPage-=1:this.paginatorPage=t,this.paginatorPage<=0&&(this.paginatorPage=1),this.paginatorPage>this.lastPage&&(this.paginatorPage=this.lastPage)},showEditForm(t,e){const r=(this.currentPage-1)*this.perPage+t;this.editItem=JSON.parse(JSON.stringify(G.find(this.tableData.data,{row_id:e}))),this.editIndex=r,this.editFormVersion++,this.$nextTick(()=>{this.setUploadDataNamePrefix(r),this.$refs.editModal.show()})},edit(t){if(this.$refs.addRenderer.hasSubmitted(!0),this.$refs.editRenderer.$refs.renderer.$refs.component.$v.vdata.$invalid){t.preventDefault();return}const e=this.tableData.data?JSON.parse(JSON.stringify(this.tableData.data)):[],r=G.findIndex(e,{row_id:this.editItem.row_id});e[r]=JSON.parse(JSON.stringify(this.editItem)),delete e[r]._parent,this.$emit("input",e)},showAddForm(){const t=Math.random().toString(36).substring(2)+Date.now().toString(36);if(this.$set(this.addItem,"row_id",t),this.setUploadDataNamePrefix(),!this.form){this.$refs.infoModal.show();return}this.$refs.addModal.show();const{_parent:e,...r}=this.addItem;this.initFormValues=G.cloneDeep(r)},handleHideAddModal(){this.addItem=this.initFormValues,this.$refs.addRenderer.hasSubmitted(!1)},async handleOk(t){if(this.$refs.addRenderer.hasSubmitted(!0),t.preventDefault(),this.$refs.addRenderer.$refs.renderer.$refs.component.$v.vdata.$invalid)return;const e=this.value?JSON.parse(JSON.stringify(this.value)):[],r=JSON.parse(JSON.stringify({...this.addItem,_parent:void 0}));delete r._parent,e[e.length]=r,this.$emit("input",e),this.addItem={},this.$nextTick(()=>{this.$refs.addModal.hide()})},showDeleteConfirmation(t,e){this.deleteIndex=G.find(this.tableData.data,{row_id:e}),this.$refs.deleteModal.show()},downloadFile(t,e,r){const i=this.$root.task.request_data._request.id,a=`${this.name}.${r}.${e}`;window.ProcessMaker.apiClient.get(`requests/${i}/files?name=${a}`).then(n=>{const s=n.data;if(s&&s.data&&s.data.length){const o=s.data[0];this.downloadRecordListFile(o,i)}})},downloadRecordListFile(t,e){window.ProcessMaker.apiClient({baseURL:"/",url:`/request/${e}/files/${t.id}`,method:"GET",responseType:"blob"}).then(r=>{const i=window.URL.createObjectURL(new Blob([r.data])),a=document.createElement("a");a.href=i,a.setAttribute("download",t.file_name),document.body.appendChild(a),a.click()})},remove(){const t=this.tableData.data?JSON.parse(JSON.stringify(this.tableData.data)):[],e=this.deleteIndex;G.remove(t,{row_id:this.deleteIndex.row_id}),this.$emit("input",t),this.$root.$emit("removed-record",this,e)}}};var bY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"data-table overflow-auto"},[r("div",{staticClass:"row mb-2 ml-0 mr-0"},[r("div",{staticClass:"col"},[r("h4",[e._v(e._s(e.label))])]),e.styleMode==="Classic"?r("div",{staticClass:"col text-right"},[e.editable&&!e.selfReferenced?r("button",{staticClass:"btn btn-primary",attrs:{"data-cy":"add-row"},on:{click:e.showAddForm}},[e._v(" "+e._s(e.$t("Add"))+" ")]):e._e()]):e._e()]),!e.value&&!e.tableData.data?r("div",[e._v(" "+e._s(e.$t("This record list is empty or contains no data."))+" ")]):[r("b-table",{ref:"vuetable",class:e.tableClassModern,attrs:{"per-page":e.perPage,"data-manager":e.dataManager,fields:e.tableFields,items:e.tableData.data,"sort-compare-options":{numeric:!1},"sort-null-last":!0,"sort-icon-left":"",css:e.css,"empty-text":e.$t("No Data Available"),"current-page":e.currentPage,"data-cy":"table","tbody-tr-class":e.rowClass},scopedSlots:e._u([{key:"head(checkbox)",fn:function(i){return[r("b-form-checkbox",{attrs:{indeterminate:e.indeterminate,"aria-label":"Select All"},on:{change:e.selectAllRows},model:{value:e.allRowsSelected,callback:function(a){e.allRowsSelected=a},expression:"allRowsSelected"}})]}},{key:"cell(checkbox)",fn:function({index:i,item:a}){return[r("b-form-checkbox",{attrs:{value:a},on:{change:function(n){return e.onMultipleSelectionChange(i)}},model:{value:e.selectedRows,callback:function(n){e.selectedRows=n},expression:"selectedRows"}})]}},{key:"cell(radio)",fn:function({index:i,item:a}){return[r("b-form-radio",{attrs:{value:a},on:{change:function(n){return e.onRadioChange(a,i)}},model:{value:e.selectedRow,callback:function(n){e.selectedRow=n},expression:"selectedRow"}})]}},{key:"cell()",fn:function({index:i,field:a,item:n}){return[e.isFiledownload(a,n)?[r("span",{attrs:{href:"#"},on:{click:function(s){return e.downloadFile(n,a.key,i)}}},[e._v(e._s(e.mustache(a.key,n)))])]:e.isImage(a,n)?[r("img",{staticStyle:{},attrs:{src:e.mustache(a.key,n)}})]:e.isWebEntryFile(a,n)?[e._v(" "+e._s(e.formatIfWebEntryFile(a,n))+" ")]:[e._v(" "+e._s(e.formatIfDate(e.mustache(a.key,n)))+" ")]]}},{key:"cell(__actions)",fn:function({index:i,item:a}){return[r("div",{staticClass:"actions"},[r("div",{staticClass:"btn-group btn-group-sm",attrs:{role:"group","aria-label":"Actions"}},[r("button",{class:{btn:!0,"btn-primary":e.styleMode==="Classic"},attrs:{title:e.$t("Edit"),"data-cy":"edit-row"},on:{click:function(n){return e.showEditForm(i,a.row_id)}}},[e.styleMode==="Classic"?r("i",{staticClass:"fas fa-edit"}):r("img",{attrs:{src:hY,alt:"edit"}})]),r("button",{ref:"deleteButton",class:{btn:!0,"btn-danger":e.styleMode==="Classic"},attrs:{title:e.$t("Delete"),"data-cy":"remove-row",popover:"manual"},on:{click:function(n){e.styleMode==="Modern"?e.togglePopover(i,n,a.row_id):e.showDeleteConfirmation(i,a.row_id)}}},[e.styleMode==="Classic"?r("i",{staticClass:"fas fa-trash-alt"}):r("img",{attrs:{src:mY,alt:"delete"}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPopoverVisible===i,expression:"isPopoverVisible === index"}],staticClass:"popover-content",style:e.popoverPosition},[r("p",[e._v("Are you sure you want to delete it?")]),r("button",{staticClass:"btn btn-light",on:{click:e.hidePopover}},[e._v("CANCEL")]),r("button",{staticClass:"btn btn-danger",on:{click:function(n){return e.popover_remove()}}},[e._v("DELETE")])])])])]}}])}),r("div",{staticClass:"d-flex justify-content-between align-items-center"},[r("div",{staticClass:"col text-left"},[e.tableData.total>e.perPage&&e.perPage!==0?r("b-pagination",{attrs:{"data-cy":"table-pagination","total-rows":e.tableData.total,"per-page":e.perPage,"aria-label":e.$t("Pagination"),"aria-controls":"vuetable"},on:{change:e.onChangePage},model:{value:e.currentPage,callback:function(i){e.currentPage=i},expression:"currentPage"}}):e._e()],1),e.styleMode==="Modern"?r("div",{staticClass:"col text-right"},[e.editable&&!e.selfReferenced?r("button",{staticClass:"btn btn-link text-primary class-button-modern",attrs:{"data-cy":"add-row"},on:{click:e.showAddForm}},[r("span",{staticClass:"mr-1"},[e._v("+")]),e._v(" "+e._s(e.$t("Add"))+" ")]):e._e()]):e._e()])],e.editable&&!e.selfReferenced?r("b-modal",{ref:"addModal",attrs:{static:!0,size:"lg","ok-title":e.$t("Ok"),"cancel-title":e.$t("Cancel"),title:e.$t("Add"),"header-close-content":"×","data-cy":"modal-add"},on:{ok:e.handleOk,hidden:e.handleHideAddModal,shown:e.emitShownEvent}},[r("vue-form-renderer",{key:Array.isArray(e.value)?e.value.length:0,ref:"addRenderer",attrs:{page:0,config:e.popupConfig,"current-page":e.form,computed:e.formComputed,watchers:e.formWatchers,"debug-context":"Record List Add",_parent:e.validationData},on:{update:e.updateRowDataNamePrefix},model:{value:e.addItem,callback:function(i){e.addItem=i},expression:"addItem"}})],1):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"editModal",attrs:{static:!0,size:"lg","ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),title:e.$t("Edit Record"),"header-close-content":"×","data-cy":"modal-edit"},on:{ok:e.edit,hidden:function(i){return e.$refs.addRenderer.hasSubmitted(!1)},shown:e.emitShownEvent}},[r("vue-form-renderer",{key:e.editFormVersion,ref:"editRenderer",attrs:{page:0,config:e.popupConfig,"current-page":e.form,computed:e.formComputed,watchers:e.formWatchers,"debug-context":"Record List Edit",_parent:e.validationData},on:{update:e.updateRowDataNamePrefix},model:{value:e.editItem,callback:function(i){e.editItem=i},expression:"editItem"}})],1):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"deleteModal",attrs:{size:"lg","ok-title":e.$t("Delete"),"cancel-title":e.$t("Cancel"),title:e.$t("Delete Record"),"header-close-content":"×","data-cy":"modal-remove"},on:{ok:e.remove}},[r("p",[e._v(e._s(e.$t("Are you sure you want to remove this record?")))])]):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"infoModal",attrs:{size:"sm","ok-title":e.$t("OK"),title:e.$t("Information form"),"header-close-content":"×","ok-only":"","data-cy":"modal-not-assigned"},on:{ok:e.hideInformation}},[r("p",[e._v(e._s(e.$t("The form to be displayed is not assigned.")))])]):e._e(),e.editable&&e.selfReferenced?r("div",{staticClass:"alert alert-danger"},[e._v(" "+e._s(e.$t("The Record List control is not allowed to reference other controls on its own page to add or edit records. Specify a secondary page with controls to enter records."))+" ")]):e._e()],2)},yY=[],xY=ie(gY,bY,yY,!1,null,null);const Eu=xY.exports,wY={name:"FormRecordListStatic",components:{},mixins:[ef],props:["label","fields","value","editable","_config","form"],mounted(){},methods:{formatIfDate(t){return ee.formatIfDate(t)}}};var SY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"record-list"},[r("h4",[e._v(e._s(e.$t(e.label)))]),r("table",[r("thead",[r("tr",e._l(e.fields,function(i,a){return r("th",{key:a},[e._v(" "+e._s(i.content)+" ")])}),0)]),r("tbody",e._l(e.value,function(i,a){return r("tr",{key:a},e._l(e.fields,function(n,s){return r("td",{key:s},[e._v(" "+e._s(e.formatIfDate(e.mustache(n.value,i)))+" ")])}),0)}),0)])])},PY=[],CY=ie(wY,SY,PY,!1,null,null);const aS=CY.exports,TY={props:["label","fontSize","fontWeight","textAlign","verticalAlign","validationData","color","name"],computed:{styles(){return{fontSize:this.fontSize,fontWeight:this.fontWeight,textAlign:this.textAlign,verticalAlign:this.verticalAlign,color:this.color}},rendered(){if(!this.validationData)return this.label;try{return Kt.render(this.label,this.validationData)}catch{return this.label}}}};var kY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("div",{style:e.styles,domProps:{innerHTML:e._s(e.rendered)}})])},MY=[],DY=ie(TY,kY,MY,!1,null,null);const ju=DY.exports,AY={};var OY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"row"},[e._t("default")],2)},zY=[],EY=ie(AY,OY,zY,!1,null,null);const yp=EY.exports,jY="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ2IiBoZWlnaHQ9IjE1MyIgdmlld0JveD0iMCAwIDE0NiAxNTMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMTUuMDAxIDMzLjQ5OTZDMTE1LjAwMSA0MC4xMjczIDEyMC4zNzQgNDUuNSAxMjcuMDAxIDQ1LjVDMTMzLjYyOCA0NS41IDEzOS4wMDEgNDAuMTI3MyAxMzkuMDAxIDMzLjQ5OTZDMTM5LjAwMSAyNi44NzI3IDEzMy42MjggMjEuNSAxMjcuMDAxIDIxLjVDMTIwLjM3NCAyMS41IDExNS4wMDEgMjYuODcyNyAxMTUuMDAxIDMzLjQ5OTZaIiBmaWxsPSIjN0NEMEIwIi8+CjxwYXRoIGQ9Ik0xMjcuOTA3IDI2LjkzMjNMMTI5LjEwOCAzMC42MzA0SDEzMi45OThDMTMzLjYwMyAzMC42MzA0IDEzMy44NTYgMzEuNDA1MyAxMzMuMzY1IDMxLjc2MjFMMTMwLjIxOSAzNC4wNDc0TDEzMS40MjEgMzcuNzQ2NEMxMzEuNjA4IDM4LjMyMTkgMTMwLjk0OSAzOC44MDA3IDEzMC40NTkgMzguNDQ1N0wxMjcuMzEyIDM2LjE1ODdMMTI0LjE2NiAzOC40NDU3QzEyMy42NzcgMzguODAwNyAxMjMuMDE3IDM4LjMyMTkgMTIzLjIwNCAzNy43NDY0TDEyNC40MDYgMzQuMDQ3NEwxMjEuMjYgMzEuNzYyMUMxMjAuNzcgMzEuNDA1MyAxMjEuMDIyIDMwLjYzMDQgMTIxLjYyNyAzMC42MzA0SDEyNS41MTZMMTI2LjcxOCAyNi45MzIzQzEyNi45MDYgMjYuMzU1OSAxMjcuNzIgMjYuMzU1OSAxMjcuOTA3IDI2LjkzMjNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNODIuMzQ5MSAwLjc5Mjk2OUM3OS44NTk3IDguMjYwOTcgNzQuMTkwNCA5LjA5MDI5IDc0LjE5MDQgOS4wOTAyOUM3NC4xOTA0IDkuMDkwMjkgNzkuODU5NyA5LjkyMDk3IDgyLjM0OTEgMTcuMzg3NkM4NC44Mzg0IDkuOTIwOTcgOTAuNTA3OCA5LjA5MDI5IDkwLjUwNzggOS4wOTAyOUM5MC41MDc4IDkuMDkwMjkgODQuODM4NCA4LjI2MDk3IDgyLjM0OTEgMC43OTI5NjlaIiBmaWxsPSIjREVFRkZBIi8+CjxwYXRoIGQ9Ik00OS4zNTA0IDEzNS43OTNDNDYuODU5OCAxNDMuMjYxIDQxLjE5MDQgMTQ0LjA5IDQxLjE5MDQgMTQ0LjA5QzQxLjE5MDQgMTQ0LjA5IDQ2Ljg1OTggMTQ0LjkyIDQ5LjM1MDQgMTUyLjM4OEM1MS44Mzg0IDE0NC45MiA1Ny41MDkxIDE0NC4wOSA1Ny41MDkxIDE0NC4wOUM1Ny41MDkxIDE0NC4wOSA1MS44Mzg0IDE0My4yNjEgNDkuMzUwNCAxMzUuNzkzWiIgZmlsbD0iI0RFRUZGQSIvPgo8cGF0aCBkPSJNMTM5LjkwMiA5My43OTNDMTM4LjE1OCA5OS4wMjEgMTM0LjE5IDk5LjYwMjMgMTM0LjE5IDk5LjYwMjNDMTM0LjE5IDk5LjYwMjMgMTM4LjE1OCAxMDAuMTgyIDEzOS45MDIgMTA1LjQwOUMxNDEuNjQ1IDEwMC4xODIgMTQ1LjYxMyA5OS42MDIzIDE0NS42MTMgOTkuNjAyM0MxNDUuNjEzIDk5LjYwMjMgMTQxLjY0NSA5OS4wMjEgMTM5LjkwMiA5My43OTNaIiBmaWxsPSIjREVFRkZBIi8+CjxwYXRoIGQ9Ik04LjkwMTEyIDMwLjc5M0M3LjE1OTc5IDM2LjAxOTYgMy4xOTA0MyAzNi42MDEgMy4xOTA0MyAzNi42MDFDMy4xOTA0MyAzNi42MDEgNy4xNTk3OSAzNy4xODEgOC45MDExMiA0Mi40MDc2QzEwLjY0MzggMzcuMTgxIDE0LjYxMzEgMzYuNjAxIDE0LjYxMzEgMzYuNjAxQzE0LjYxMzEgMzYuNjAxIDEwLjY0MzggMzYuMDE5NiA4LjkwMTEyIDMwLjc5M1oiIGZpbGw9IiNERUVGRkEiLz4KPHBhdGggZD0iTTEyMS45NTYgNzUuNjcwMkMxMjEuOTU2IDEwNC44NzYgOTguMjc4NSAxMjguNTUzIDY5LjA3MzIgMTI4LjU1M0MzOS44Njc5IDEyOC41NTMgMTYuMTkwNCAxMDQuODc2IDE2LjE5MDQgNzUuNjcwMkMxNi4xOTA0IDQ2LjQ2NDkgMzkuODY3OSAyMi43OTMgNjkuMDczMiAyMi43OTNDOTguMjc4NSAyMi43OTMgMTIxLjk1NiA0Ni40NjQ5IDEyMS45NTYgNzUuNjcwMloiIGZpbGw9IiNERUVGRkEiLz4KPHBhdGggZD0iTTQ3LjYzNjQgODEuOTYyNUw2My4yNDYzIDkzLjM2ODdDNjQuNzg5NyA5NC40OTYyIDY2Ljk1NyA5NC4yMDA3IDY4LjEzOTMgOTIuNjk1NUw5MS42OTA4IDYyLjc4NDFDOTIuOTA1OCA2MS4yMzUxIDkyLjY0MzEgNTkuMDAyMSA5MS4wOTQxIDU3Ljc4N0M4OS41NTA3IDU2LjU3MTkgODcuMzE3NiA1Ni44MzQ3IDg2LjEwMjYgNTguMzc4MUw2NC42NzQ3IDg1LjYwMjFMNTEuODM0NiA3Ni4yMTU1QzUwLjI0NzMgNzUuMDYwNiA0OC4wMTk2IDc1LjQwNTUgNDYuODU5MiA3Ni45OTI3QzQ1LjcwNDQgNzguNTc5OSA0Ni4wNDkyIDgwLjgwMjEgNDcuNjM2NCA4MS45NjI1WiIgZmlsbD0iIzREODJDNiIvPgo8cGF0aCBkPSJNMC40MDAzOTEgMTI1Ljc1QzAuNDAwMzkxIDEzMy42MiA2Ljc4MDM5IDE0MCAxNC42NTEgMTQwQzIyLjUyMjUgMTQwIDI4LjkwMzQgMTMzLjYyIDI4LjkwMzQgMTI1Ljc1QzI4LjkwMzQgMTE3Ljg3OSAyMi41MjI1IDExMS41IDE0LjY1MSAxMTEuNUM2Ljc4MDM5IDExMS41IDAuNDAwMzkxIDExNy44NzkgMC40MDAzOTEgMTI1Ljc1WiIgZmlsbD0iIzc3QTlGMiIvPgo8cGF0aCBkPSJNMTYuMzE4NyAxMzAuMzI5QzE0LjE2MjUgMTMwLjM2NiAxMS45Nzk0IDEzMC4zOTUgOS45OTY5NSAxMzAuMjU4QzkuMzY5ODggMTMwLjIxNSA4LjgyNyAxMjkuMjE3IDkuNTg5MzQgMTI4LjkwM0M5LjI2ODY0IDEyOC43MzggOC45NDM1IDEyOC41NzkgOC44MDM3NSAxMjguMjE5QzguNjcxMTcgMTI3Ljg4IDguODI5NyAxMjcuNDE3IDkuMTg1MzQgMTI3LjMzQzguNDM3MzMgMTI3LjUxNCA4LjE0MjYxIDEyNi4zMjggOC43MjU3OCAxMjUuOTQ1QzguNDE2NzMgMTI1LjY4MiA4LjE1OTY1IDEyNS4zMzUgOC4wOTUxNSAxMjQuOTM1QzguMDI5NzUgMTI0LjUzNCA4LjE5MzY4IDEyNC4wODIgOC41NTAyMiAxMjMuODg4QzguNzg0MDMgMTIzLjc2MSA5LjA2MDg0IDEyMy43NTcgOS4zMjY4OSAxMjMuNzU1QzEwLjIyMzYgMTIzLjc0OCAxMS4xMjAzIDEyMy43NDEgMTIuMDE3IDEyMy43MzRDMTEuNzc0MiAxMjIuMzMyIDExLjcwMDggMTIwLjgwMyAxMi40MTM4IDExOS41NzFDMTIuNjI4OCAxMTkuMTk5IDEzLjIwNTggMTE4Ljc1NSAxMy42NjM1IDExOS4wNEMxNC4wOTI2IDExOS4zMDggMTMuOTc0MyAxMTkuOTczIDEzLjk1MTkgMTIwLjM5M0MxMy44NjMzIDEyMi4xMzggMTQuODU1OSAxMjMuODkzIDE2LjM5NzYgMTI0LjcxNUMxNi4zOTc2IDEyNC43MTUgMTYuMjk1NCAxMjguNDMzIDE2LjMxODcgMTMwLjMyOVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xNy4xMDI1IDEzMC4zMTVIMjAuMzYxNVYxMjQuNzA3SDE3LjEwMjVWMTMwLjMxNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",fne="",IY={props:["title","link","url"],data(){return{linkText:`View All ${this.link}`}},methods:{openLink(){window.open(this.url,"_blank")}}};var NY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"container content"},[r("img",{attrs:{src:jY,alt:"empty table"}}),r("span",{staticClass:"title"},[e._v(" "+e._s(e.$t(e.title))+" ")]),e.url!==""?r("b-link",{on:{click:function(i){return e.openLink()}}},[e._v(" "+e._s(e.$t(e.linkText))+" ")]):e._e()],1)},LY=[],FY=ie(IY,NY,LY,!1,null,"7665402d");const xp=FY.exports,RY="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDQuOEwxLjA2NjY3IDAuMzIwMDAzVjBIMFYxMC42NjY3VjE1LjczMzNIMS4wNjY2N1YxMC4yNjY3TDE2IDQuOFoiIGZpbGw9IiM1NTYyNzEiLz4KPC9zdmc+Cg==",pne="",BY=Dn(),HY={components:{formEmpty:xp,Recommendations:t=>{var e;t(((e=window.SharedComponents)==null?void 0:e.Recommendations)||{template:"<span></span>"})}},mixins:[BY,Ac],data(){var t,e;return{countInProgress:"0",countOverdue:"0",countResponse:"0",fields:[],data:[],tableData:[],orderBy:"ID",order_direction:"DESC",status:"",showTable:!0,tableHeaders:[],pmqlSearch:"",sortOrder:[{field:"ID",sortField:"ID",direction:"DESC"}],advancedFilter:"",tasksPreview:((t=window.SharedComponents)==null?void 0:t.TasksHome)||{},taskTooltip:((e=window.SharedComponents)==null?void 0:e.TaskTooltip)||{},rowPosition:{},ellipsisShow:!1,isTooltipVisible:!1,disableRuleTooltip:!1,hiderTimer:null}},computed:{noDataUrl(){var t,e;return`${(e=(t=window.ProcessMaker)==null?void 0:t.app)==null?void 0:e.url}/tasks`}},mounted(){this.setupColumns(),this.pmql=`(user_id = ${ProcessMaker.user.id}) AND (status = "In Progress")`,this.fetch(),this.$root.$on("dropdownSelectionTask",this.fetchData),this.$root.$on("searchTask",this.fetchSearch)},methods:{getSortParam(){return this.sortOrder instanceof Array&&this.sortOrder.length>0?`&order_by=${this.sortOrder[0].sortField}&order_direction=${this.sortOrder[0].direction}`:""},fetch(){Vue.nextTick(()=>{let t="",e="";this.pmql!==void 0&&(t=this.pmql),this.pmqlSearch&&(t=`${t} AND ${this.pmqlSearch}`),this.filterDropdowns!==void 0&&(e=this.filterDropdowns);let{filter:r}=this,i="";r&&r.length&&(r.isPMQL()?(t=`(${t}) and (${r})`,r=""):i=`&user_id=${window.ProcessMaker.user.id}&filter=${r}&statusfilter=ACTIVE,CLOSED`),this.previousFilter!==r&&(this.page=1),this.previousFilter=r,this.previousPmql!==t&&(this.page=1),this.previousPmql=t;const a=[];ProcessMaker.apiClient.get(`tasks?page=${this.page}&include=process,processRequest,processRequest.user,user,data&pmql=${encodeURIComponent(t)}
|
|
360
360
|
&per_page=${this.perPage}
|
|
361
361
|
${i}
|
|
362
362
|
${this.getSortParam()}
|