iss-library-form-renderer 1.17.22 → 1.17.23
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00b4":function(t,e,n){"use strict";n("ac1f");var r,o,i=n("23e7"),a=n("c65b"),u=n("1626"),c=n("825a"),s=n("577e"),l=(r=!1,(o=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&r),f=/./.test;i({target:"RegExp",proto:!0,forced:!l},{test:function(t){var e=c(this),n=s(t),r=e.exec;if(!u(r))return a(f,e,n);var o=a(r,e,n);return null!==o&&(c(o),!0)}})},"00ee":function(t,e,n){"use strict";var r={};r[n("b622")("toStringTag")]="z",t.exports="[object z]"===String(r)},"01b4":function(t,e,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=r},"0366":function(t,e,n){"use strict";var r=n("4625"),o=n("59ed"),i=n("40d5"),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},"04f8":function(t,e,n){"use strict";var r=n("1212"),o=n("d039"),i=n("cfe9").String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"057f":function(t,e,n){"use strict";var r=n("c6b6"),o=n("fc6a"),i=n("241c").f,a=n("f36a"),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"Window"===r(t)?function(t){try{return i(t)}catch(t){return a(u)}}(t):i(o(t))}},"06cf":function(t,e,n){"use strict";var r=n("83ab"),o=n("c65b"),i=n("d1e7"),a=n("5c6c"),u=n("fc6a"),c=n("a04b"),s=n("1a2d"),l=n("0cfb"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=u(t),e=c(e),l)try{return f(t,e)}catch(t){}if(s(t,e))return a(!o(i.f,t,e),t[e])}},"07d1":function(t,e,n){n("94ce")},"07df":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("3c7c"),a=(r=i)&&r.__esModule?r:{default:r};var u=function(t){var e=t.substr(0,13).split("").map((function(t){return parseInt(t,10)})).reduce((function(t,e,n){return t+e*(3-n%2*2)}),0);return 10*Math.ceil(e/10)-e},c=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{13}$/)&&(t+=u(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===u(this.data)}}]),e}(a.default);e.default=c},"07fa":function(t,e,n){"use strict";var r=n("50c4");t.exports=function(t){return r(t.length)}},"083a":function(t,e,n){"use strict";var r=n("0d51"),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw new o("Cannot delete property "+r(e)+" of "+r(t))}},"0a06":function(t,e,n){"use strict";var r=n("2444"),o=n("c532"),i=n("f6b4"),a=n("5270");function u(t){this.defaults=t,this.interceptors={request:new i,response:new i}}u.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}})),o.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}})),t.exports=u},"0aba":function(t,e,n){"use strict";n("43c7")},"0b42":function(t,e,n){"use strict";var r=n("e8b5"),o=n("68ee"),i=n("861d"),a=n("b622")("species"),u=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===u||r(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?u:e}},"0b43":function(t,e,n){"use strict";var r=n("04f8");t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},"0c47":function(t,e,n){"use strict";var r=n("cfe9");n("d44e")(r.JSON,"JSON",!0)},"0cb2":function(t,e,n){"use strict";var r=n("e330"),o=n("7b0b"),i=Math.floor,a=r("".charAt),u=r("".replace),c=r("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,d){var m=n+t.length,p=r.length,h=l;return void 0!==f&&(f=o(f),h=s),u(d,h,(function(o,u){var s;switch(a(u,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,n);case"'":return c(e,m);case"<":s=f[c(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>p){var d=i(l/10);return 0===d?o:d<=p?void 0===r[d-1]?a(u,1):r[d-1]+a(u,1):o}s=r[l-1]}return void 0===s?"":s}))}},"0cd8":function(t,e,n){"use strict";var r={name:"generate-report",components:{GenerateFormItem:n("12f6").a},props:["element","model","rules","remote","display","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModels:this.model}},methods:{fillingColumns:function(t){this.$emit("fillingColumns",t)}},watch:{model:{deep:!0,handler:function(t){this.dataModels=this.model}}}},o=n("2877"),i=Object(o.a)(r,(function(){var t,e=this,n=e.$createElement,r=e._self._c||n;return e.display[e.element.model]?r("table",{staticClass:"renderer-report",class:(t={},t[e.element.options&&e.element.options.customClass]=e.element.options&&e.element.options.customClass,t),style:{"border-top-width":e.element.options.borderWidth+"px","border-top-color":e.element.options.borderColor,"border-left-width":e.element.options.borderWidth+"px","border-left-color":e.element.options.borderColor,width:e.element.options.width||"100%"}},e._l(e.element.rows,(function(t,n){return r("tr",{key:n},e._l(t.columns,(function(t,o){var i;return t.options.invisible?e._e():r("td",{key:n+"-"+o,staticClass:"report-container-td",class:(i={},i[t.options.customClass]=t.options.customClass,i),style:{"border-right-width":e.element.options.borderWidth+"px","border-right-color":e.element.options.borderColor,"border-bottom-width":e.element.options.borderWidth+"px","border-bottom-color":e.element.options.borderColor,width:t.options.width,height:t.options.height},attrs:{colspan:t.options.colspan,rowspan:t.options.rowspan,valign:"top"}},[e._l(t.list,(function(t){return[r("generate-form-item",{key:t.key,attrs:{"container-key":e.containerKey,"data-source-value":e.dataSourceValue,display:e.display,edit:e.edit,"event-function":e.eventFunction,models:e.dataModels,platform:e.platform,preview:e.preview,"print-read":e.printRead,remote:e.remote,"remote-option-source":e.remoteOptionSource,rules:e.rules,widget:t},on:{fillingColumns:e.fillingColumns}})]}))],2)})),0)})),0):e._e()}),[],!1,null,null,null);e.a=i.exports},"0cfb":function(t,e,n){"use strict";var r=n("83ab"),o=n("d039"),i=n("cc12");t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){"use strict";var r=n("e330"),o=Error,i=r("".replace),a=String(new o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,c=u.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,u,"");return t}},"0d51":function(t,e,n){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0f01":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("8bbf"),o=new(n.n(r).a)},"107c":function(t,e,n){"use strict";var r=n("d039"),o=n("cfe9").RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},1148:function(t,e,n){"use strict";var r=n("5926"),o=n("577e"),i=n("1d80"),a=RangeError;t.exports=function(t){var e=o(i(this)),n="",u=r(t);if(u<0||u===1/0)throw new a("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(e+=e))1&u&&(n+=e);return n}},1212:function(t,e,n){"use strict";var r,o,i=n("cfe9"),a=n("b5db"),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,l=s&&s.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},"124f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("e762");var a=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"encode",value:function(){for(var t="110",e=0;e<this.data.length;e++){var n=parseInt(this.data[e]).toString(2);n=u(n,4-n.length);for(var r=0;r<n.length;r++)t+="0"==n[r]?"100":"110"}return{data:t+="1001",text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]+$/)}}]),e}(((r=i)&&r.__esModule?r:{default:r}).default);function u(t,e){for(var n=0;n<e;n++)t="0"+t;return t}e.default=a},1276:function(t,e,n){"use strict";var r=n("c65b"),o=n("e330"),i=n("d784"),a=n("825a"),u=n("7234"),c=n("1d80"),s=n("4840"),l=n("8aa5"),f=n("50c4"),d=n("577e"),m=n("dc4a"),p=n("14c3"),h=n("9f7f"),g=n("d039"),v=h.UNSUPPORTED_Y,b=Math.min,y=o([].push),_=o("".slice),w=!g((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),x="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",(function(t,e,n){var o="0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:r(e,this,t,n)}:e;return[function(e,n){var i=c(this),a=u(e)?void 0:m(e,t);return a?r(a,e,i,n):r(o,d(i),e,n)},function(t,r){var i=a(this),u=d(t);if(!x){var c=n(o,i,u,r,o!==e);if(c.done)return c.value}var m=s(i,RegExp),h=i.unicode,g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(v?"g":"y"),w=new m(v?"^(?:"+i.source+")":i,g),O=void 0===r?4294967295:r>>>0;if(0===O)return[];if(0===u.length)return null===p(w,u)?[u]:[];for(var S=0,C=0,E=[];C<u.length;){w.lastIndex=v?0:C;var k,T=p(w,v?_(u,C):u);if(null===T||(k=b(f(w.lastIndex+(v?C:0)),u.length))===S)C=l(u,C,h);else{if(y(E,_(u,S,C)),E.length===O)return E;for(var M=1;M<=T.length-1;M++)if(y(E,T[M]),E.length===O)return E;C=S=k}}return y(E,_(u,S)),E}]}),x||!w,v)},"129f":function(t,e,n){"use strict";t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},"12f6":function(t,e,n){"use strict";var r=n("5530"),o=n("c7eb"),i=n("1da1"),a=(n("d9e2"),n("99af"),n("7db0"),n("c740"),n("caad"),n("a15b"),n("d81d"),n("14d9"),n("a434"),n("b0c0"),n("a9e3"),n("b680"),n("b64b"),n("d3b7"),n("25f0"),n("2532"),n("159b"),n("2909")),u=(n("4de4"),n("fb6a"),n("e9c4"),n("ac1f"),n("841c"),{STATIC_DATA:"static",API_DATA:"datasource",DICT_DATA:"dict",FUNCTIONS:"func",FORMS:"form",OPTION:"option"});var c=n("7694");function s(t,e){return l.apply(this,arguments)}function l(){return(l=Object(i.a)(Object(o.a)().mark((function t(e,n){var i,a;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={total:0,data:[]},t.prev=1,t.next=4,Object(c.f)(n);case 4:if("0000"===(a=t.sent).data.code){t.next=8;break}return e.$message.error("加载字典选项失败 : ".concat(a.data.message)),t.abrupt("return",i);case 8:return a.data.data.forEach((function(t){i.data.push(Object(r.a)(Object(r.a)({},t),{},{dataType:"dictItem",id:t.id,label:t.itemName,value:t.itemCode}))})),i.total=a.data.data.length,t.abrupt("return",i);case 13:return t.prev=13,t.t0=t.catch(1),e.$message.error("加载字典选项失败 : ".concat(t.t0.message)),t.abrupt("return",i);case 17:case"end":return t.stop()}}),t,null,[[1,13]])})))).apply(this,arguments)}var f=n("9a01"),d=(n("e260"),n("3ca3"),n("ddb0"),n("2b3d"),n("bf19"),n("9861"),n("88a7"),n("271a"),n("5494"),n("bcc9")),m=n("ff84"),p=n("60bb"),h=n.n(p),g={name:"UploadFileComponent",components:{BaseIcon:m.a},props:{value:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},limit:{type:Number,default:9},size:{type:Number,default:50},disabled:{type:Boolean,default:!1},tip:{type:String,default:""},printRead:{type:Boolean,default:!1},accept:{type:String,default:"*"},searchable:{type:Boolean,default:!1},isBatchDownload:{type:Boolean,default:!1},widgetName:{type:String,default:null}},model:{prop:"value",event:"change"},inject:{edit:{type:Boolean,default:!1}},watch:{value:{handler:function(t){this.searchValue.length||(this.displayValue=h.a.cloneDeep(t))}}},created:function(){this.fileList=(this.value||[]).map((function(t){return t.status="success",t})),this.handleEmitChange()},data:function(){return{fileList:[],serverInfo:Object(c.l)(),multipleSelection:[],searchValue:"",displayValue:[],selectedRows:[]}},methods:{handleDownload:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var r,i,a,u,s,l,f,d,m;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.fileName,i=t.originalName,t.fileName||(a=new URL(t.url),u=new URLSearchParams(a.search),r=u.get("fileName"),i=u.get("originalName")),n.prev=3,s={fileName:r,originalName:i},n.next=7,Object(c.d)(s);case 7:200===(l=n.sent).status?(f=new Blob([l.data]),d=document.createElement("a"),m=URL.createObjectURL(f),d.href=m,d.download="".concat(t.name),document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(m)):e.$message.warning("下载文件出错"),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(3);case 14:case"end":return n.stop()}}),n,null,[[3,11]])})))()},onSearch:function(){var t=this;this.searchValue.length?this.displayValue=h.a.cloneDeep(this.value.filter((function(e){return e.name.toLowerCase().indexOf(t.searchValue.toLowerCase())>-1}))):this.displayValue=h.a.cloneDeep(this.value)},batchDownload:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.a)(t.selectedRows,t.widgetName);case 2:case"end":return e.stop()}}),e)})))()},handleSelectionChange:function(t){this.selectedRows=t,this.multipleSelection=t},handleRemove:function(t,e){this.fileList=e,this.$emit("onRemove",t),this.handleEmitChange()},handlePreview:function(t){window.open(t.url,"_blank")},handleSuccess:function(t,e,n){if("0000"!==t.code){this.$message.error("文件上传失败!");var r=0;return n.forEach((function(t,n){t.name===e.name&&(r=n)})),void n.splice(r,1)}this.$emit("onSuccess");var o=n.findIndex((function(t){return t.uid===e.uid}));o>=0&&(n[o]={uid:e.uid,status:"success",name:e.name,url:"".concat(this.serverInfo.baseUrl).concat(t.data&&t.data.length&&t.data[0],"&originalName=").concat(encodeURI(e.name)),fileName:t.data&&t.data.length&&t.data[0],originalName:encodeURI(e.name)},this.fileList=n,this.handleEmitChange())},handleExceed:function(t,e){this.$message.warning("本次选择了 ".concat(t.length," 个文件,共选择了 ").concat(t.length+e.length," 个文件,已超出当前限制 ").concat(this.limit," 个文件"))},handleBeforeUpload:function(t){if(t.size>1024*this.size*1024)return this.$message.error("".concat(t.name," 文件大小已大于 ").concat(this.size," MB ,上传失败!")),!1},handleEmitChange:function(){var t=this.fileList.filter((function(t){return"success"===t.status})).map((function(t){return{name:t.name,url:t.url,fileName:t.fileName,originalName:t.originalName}}));this.$emit("change",t)}}},v=(n("7119"),n("2877")),b=Object(v.a)(g,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.printRead?n("div",{staticClass:"upload-file-preview-container"},[t.edit&&(t.searchable||t.isBatchDownload)?n("div",{staticClass:"header"},[n("div",{staticClass:"header-item left"},[t.searchable?n("el-input",{staticClass:"header-sub-item",attrs:{placeholder:"按文件名搜索",size:"mini","validate-event":!1,disabled:!t.value.length,clearable:!0},on:{change:t.onSearch},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[n("el-button",{attrs:{slot:"append",size:"mini"},on:{click:t.onSearch},slot:"append"},[n("base-icon",{attrs:{"icon-class":"search-line"}})],1)],1):t._e(),t.isBatchDownload?n("el-button",{staticClass:"header-sub-item",attrs:{size:"mini",type:"primary",disabled:!t.multipleSelection.length},on:{click:t.batchDownload}},[t._v(" 批量下载 ")]):t._e()],1)]):t._e(),n("div",{staticClass:"body"},[n("el-table",{staticClass:"iss-form-renderer-table outside-border",attrs:{data:t.displayValue,"show-header":t.edit,size:"mini","highlight-current-row":"",stripe:""},on:{"selection-change":t.handleSelectionChange}},[t.edit?n("el-table-column",{attrs:{type:"selection"}}):t._e(),n("el-table-column",{attrs:{label:"文件名"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-tooltip",{attrs:{content:"下载/预览","open-delay":500,placement:"right"}},[n("el-link",{attrs:{underline:!1},on:{click:function(n){return t.handleDownload(e.row)}}},[t._v(" "+t._s(e.row.name)+" ")])],1)]}}])})],1)],1)]):n("el-upload",{staticClass:"iss-upload-file",attrs:{action:t.serverInfo.action,"before-upload":t.handleBeforeUpload,disabled:t.disabled,"file-list":t.fileList,headers:t.serverInfo.headers,limit:t.limit,multiple:t.multiple,"on-exceed":t.handleExceed,"on-preview":t.handlePreview,"on-remove":t.handleRemove,"on-success":t.handleSuccess,accept:t.accept}},[n("el-button",{staticClass:"iss-upload-button",attrs:{disabled:t.disabled,size:"mini",type:"primary"}},[n("base-icon",{attrs:{"icon-class":"file-upload-line"}}),t._v(" 点击上传 ")],1),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v(" 1.限制上传 "+t._s(t.multiple?t.limit:"1")+" 个附件,且每个附件不超过 "+t._s(t.size)+" MB "),t.tip?[n("br"),t._v(" 2."+t._s(t.tip)+" ")]:t._e()],2)],1)],1)}),[],!1,null,null,null).exports,y={name:"UploadImageComponent",components:{},props:{value:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},limit:{type:Number,default:9},size:{type:Number,default:50},disabled:{type:Boolean,default:!1},tip:{type:String,default:""},printRead:{type:Boolean,default:!1}},model:{prop:"value",event:"change"},data:function(){return{fileList:[],serverInfo:Object(c.l)(),dialogImageUrl:"",dialogVisible:!1}},created:function(){this.fileList=(this.value||[]).map((function(t){return t.status="success",t})),this.handleEmitChange()},methods:{handleRemove:function(t,e){this.fileList=e,this.$emit("onRemove",t),this.handleEmitChange()},handlePreview:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var r,i,a,u,s,l;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.fileName,n.prev=1,t.fileName||(i=new URL(t.url),a=new URLSearchParams(i.search),r=a.get("fileName")),u={fileName:r},n.next=6,Object(c.d)(u);case 6:200===(s=n.sent).status?(l=new Blob([s.data]),e.dialogImageUrl=URL.createObjectURL(l),e.dialogVisible=!0):e.$message.warning("预览文件出错"),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(1);case 13:case"end":return n.stop()}}),n,null,[[1,10]])})))()},handleClosePreview:function(){this.dialogImageUrl="",this.dialogVisible=!1},handleSuccess:function(t,e,n){if("0000"!==t.code){this.$message.error("文件上传失败!");var r=0;return n.forEach((function(t,n){t.name===e.name&&(r=n)})),void n.splice(r,1)}this.$emit("onSuccess");var o=n.findIndex((function(t){return t.uid===e.uid}));o>=0&&(n[o]={status:"success",name:e.name,url:"".concat(this.serverInfo.baseUrl).concat(t.data&&t.data.length&&t.data[0]),fileName:t.data&&t.data.length&&t.data[0]},this.fileList=n,this.handleEmitChange())},handleExceed:function(t,e){this.$message.warning("本次选择了 ".concat(t.length," 个图片,共选择了 ").concat(t.length+e.length," 个图片,已超出当前限制 ").concat(this.limit," 个图片"))},handleDownload:function(t){},handleBeforeUpload:function(t){if(t.size>1024*this.size*1024)return this.$message.error("".concat(t.name," 图片大小已大于 ").concat(this.size," MB ,上传失败!")),!1},handleEmitChange:function(){var t=this.fileList.filter((function(t){return"success"===t.status})).map((function(t){return{name:t.name,url:t.url,fileName:t.fileName}}));this.$emit("change",t)}}},_=(n("c5f1"),Object(v.a)(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-upload",{staticClass:"iss-upload-file",class:{"print-read":t.printRead},attrs:{action:t.serverInfo.action,"before-upload":t.handleBeforeUpload,disabled:t.disabled||t.printRead,"file-list":t.fileList,headers:t.serverInfo.headers,limit:t.limit,multiple:t.multiple,"on-exceed":t.handleExceed,"on-preview":t.handlePreview,"on-remove":t.handleRemove,"on-success":t.handleSuccess,accept:"image/*","list-type":"picture-card"}},[n("div",{staticClass:"iss-upload-button",attrs:{size:"mini",type:"primary"}},[n("base-icon",{attrs:{"icon-class":"image-add-fill"}})],1),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v(" 1.限制上传 "+t._s(t.multiple?t.limit:"1")+" 个图片,且每个附件不超过 "+t._s(t.size)+" MB "),n("br"),t._v(" 2.只能上传图片类型文件 "),t.tip?[n("br"),t._v(" 3."+t._s(t.tip)+" ")]:t._e(),t.dialogVisible?n("el-dialog",{staticClass:"iss-form-renderer-dialog-wrapper",attrs:{visible:t.dialogVisible,"custom-class":"iss-form-renderer-dialog-control",width:"800px","append-to-body":"",title:"图片预览","show-close":!0,"before-close":t.handleClosePreview},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.dialogImageUrl,fit:"contain"}})],1):t._e()],2)])}),[],!1,null,null,null).exports),w=n("ec26"),x={name:"UUIDComponent",props:{value:{type:String,default:""},printRead:{type:Boolean,default:!1},customStyle:{type:Object,default:function(){return{}}}},model:{prop:"value",event:"change"},mounted:function(){this.value||this.$emit("change",Object(w.a)())},watch:{value:function(){this.value||this.$emit("change",Object(w.a)())}}},O=Object(v.a)(x,(function(){var t=this.$createElement;return(this._self._c||t)("el-input",{attrs:{disabled:!0,value:this.value}})}),[],!1,null,null,null).exports,S=n("5176"),C=n.n(S);var E=function(){this.__data__=[],this.size=0};var k=function(t,e){return t===e||t!=t&&e!=e};var T=function(t,e){for(var n=t.length;n--;)if(k(t[n][0],e))return n;return-1},M=Array.prototype.splice;var D=function(t){var e=this.__data__,n=T(e,t);return!(n<0)&&(n==e.length-1?e.pop():M.call(e,n,1),--this.size,!0)};var A=function(t){var e=this.__data__,n=T(e,t);return n<0?void 0:e[n][1]};var P=function(t){return T(this.__data__,t)>-1};var R=function(t,e){var n=this.__data__,r=T(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function I(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}I.prototype.clear=E,I.prototype.delete=D,I.prototype.get=A,I.prototype.has=P,I.prototype.set=R;var z=I;var j=function(){this.__data__=new z,this.size=0};var L=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var B=function(t){return this.__data__.get(t)};var F=function(t){return this.__data__.has(t)},N=n("26ee"),H=N.a.Symbol,V=Object.prototype,U=V.hasOwnProperty,W=V.toString,$=H?H.toStringTag:void 0;var G=function(t){var e=U.call(t,$),n=t[$];try{t[$]=void 0;var r=!0}catch(t){}var o=W.call(t);return r&&(e?t[$]=n:delete t[$]),o},K=Object.prototype.toString;var q=function(t){return K.call(t)},X=H?H.toStringTag:void 0;var Y=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":X&&X in Object(t)?G(t):q(t)};var J=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var Q,Z=function(t){if(!J(t))return!1;var e=Y(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},tt=N.a["__core-js_shared__"],et=(Q=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"";var nt=function(t){return!!et&&et in t},rt=Function.prototype.toString;var ot=function(t){if(null!=t){try{return rt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},it=/^\[object .+?Constructor\]$/,at=Function.prototype,ut=Object.prototype,ct=at.toString,st=ut.hasOwnProperty,lt=RegExp("^"+ct.call(st).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ft=function(t){return!(!J(t)||nt(t))&&(Z(t)?lt:it).test(ot(t))};var dt=function(t,e){return null==t?void 0:t[e]};var mt=function(t,e){var n=dt(t,e);return ft(n)?n:void 0},pt=mt(N.a,"Map"),ht=mt(Object,"create");var gt=function(){this.__data__=ht?ht(null):{},this.size=0};var vt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},bt=Object.prototype.hasOwnProperty;var yt=function(t){var e=this.__data__;if(ht){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return bt.call(e,t)?e[t]:void 0},_t=Object.prototype.hasOwnProperty;var wt=function(t){var e=this.__data__;return ht?void 0!==e[t]:_t.call(e,t)};var xt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ht&&void 0===e?"__lodash_hash_undefined__":e,this};function Ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ot.prototype.clear=gt,Ot.prototype.delete=vt,Ot.prototype.get=yt,Ot.prototype.has=wt,Ot.prototype.set=xt;var St=Ot;var Ct=function(){this.size=0,this.__data__={hash:new St,map:new(pt||z),string:new St}};var Et=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var kt=function(t,e){var n=t.__data__;return Et(e)?n["string"==typeof e?"string":"hash"]:n.map};var Tt=function(t){var e=kt(this,t).delete(t);return this.size-=e?1:0,e};var Mt=function(t){return kt(this,t).get(t)};var Dt=function(t){return kt(this,t).has(t)};var At=function(t,e){var n=kt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Pt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Pt.prototype.clear=Ct,Pt.prototype.delete=Tt,Pt.prototype.get=Mt,Pt.prototype.has=Dt,Pt.prototype.set=At;var Rt=Pt;var It=function(t,e){var n=this.__data__;if(n instanceof z){var r=n.__data__;if(!pt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Rt(r)}return n.set(t,e),this.size=n.size,this};function zt(t){var e=this.__data__=new z(t);this.size=e.size}zt.prototype.clear=j,zt.prototype.delete=L,zt.prototype.get=B,zt.prototype.has=F,zt.prototype.set=It;var jt=zt;var Lt=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},Bt=function(){try{var t=mt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var Ft=function(t,e,n){"__proto__"==e&&Bt?Bt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},Nt=Object.prototype.hasOwnProperty;var Ht=function(t,e,n){var r=t[e];Nt.call(t,e)&&k(r,n)&&(void 0!==n||e in t)||Ft(t,e,n)};var Vt=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var u=e[i],c=r?r(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),o?Ft(n,u,c):Ht(n,u,c)}return n};var Ut=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};var Wt=function(t){return null!=t&&"object"==typeof t};var $t=function(t){return Wt(t)&&"[object Arguments]"==Y(t)},Gt=Object.prototype,Kt=Gt.hasOwnProperty,qt=Gt.propertyIsEnumerable,Xt=$t(function(){return arguments}())?$t:function(t){return Wt(t)&&Kt.call(t,"callee")&&!qt.call(t,"callee")},Yt=Array.isArray,Jt=n("58e0"),Qt=/^(?:0|[1-9]\d*)$/;var Zt=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Qt.test(t))&&t>-1&&t%1==0&&t<e};var te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},ee={};ee["[object Float32Array]"]=ee["[object Float64Array]"]=ee["[object Int8Array]"]=ee["[object Int16Array]"]=ee["[object Int32Array]"]=ee["[object Uint8Array]"]=ee["[object Uint8ClampedArray]"]=ee["[object Uint16Array]"]=ee["[object Uint32Array]"]=!0,ee["[object Arguments]"]=ee["[object Array]"]=ee["[object ArrayBuffer]"]=ee["[object Boolean]"]=ee["[object DataView]"]=ee["[object Date]"]=ee["[object Error]"]=ee["[object Function]"]=ee["[object Map]"]=ee["[object Number]"]=ee["[object Object]"]=ee["[object RegExp]"]=ee["[object Set]"]=ee["[object String]"]=ee["[object WeakMap]"]=!1;var ne=function(t){return Wt(t)&&te(t.length)&&!!ee[Y(t)]};var re=function(t){return function(e){return t(e)}},oe=n("c6eb"),ie=oe.a&&oe.a.isTypedArray,ae=ie?re(ie):ne,ue=Object.prototype.hasOwnProperty;var ce=function(t,e){var n=Yt(t),r=!n&&Xt(t),o=!n&&!r&&Object(Jt.a)(t),i=!n&&!r&&!o&&ae(t),a=n||r||o||i,u=a?Ut(t.length,String):[],c=u.length;for(var s in t)!e&&!ue.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Zt(s,c))||u.push(s);return u},se=Object.prototype;var le=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||se)};var fe=function(t,e){return function(n){return t(e(n))}},de=fe(Object.keys,Object),me=Object.prototype.hasOwnProperty;var pe=function(t){if(!le(t))return de(t);var e=[];for(var n in Object(t))me.call(t,n)&&"constructor"!=n&&e.push(n);return e};var he=function(t){return null!=t&&te(t.length)&&!Z(t)};var ge=function(t){return he(t)?ce(t):pe(t)};var ve=function(t,e){return t&&Vt(e,ge(e),t)};var be=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},ye=Object.prototype.hasOwnProperty;var _e=function(t){if(!J(t))return be(t);var e=le(t),n=[];for(var r in t)("constructor"!=r||!e&&ye.call(t,r))&&n.push(r);return n};var we=function(t){return he(t)?ce(t,!0):_e(t)};var xe=function(t,e){return t&&Vt(e,we(e),t)},Oe=n("dff1");var Se=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};var Ce=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i};var Ee=function(){return[]},ke=Object.prototype.propertyIsEnumerable,Te=Object.getOwnPropertySymbols,Me=Te?function(t){return null==t?[]:(t=Object(t),Ce(Te(t),(function(e){return ke.call(t,e)})))}:Ee;var De=function(t,e){return Vt(t,Me(t),e)};var Ae=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t},Pe=fe(Object.getPrototypeOf,Object),Re=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Ae(e,Me(t)),t=Pe(t);return e}:Ee;var Ie=function(t,e){return Vt(t,Re(t),e)};var ze=function(t,e,n){var r=e(t);return Yt(t)?r:Ae(r,n(t))};var je=function(t){return ze(t,ge,Me)};var Le=function(t){return ze(t,we,Re)},Be=mt(N.a,"DataView"),Fe=mt(N.a,"Promise"),Ne=mt(N.a,"Set"),He=mt(N.a,"WeakMap"),Ve=ot(Be),Ue=ot(pt),We=ot(Fe),$e=ot(Ne),Ge=ot(He),Ke=Y;(Be&&"[object DataView]"!=Ke(new Be(new ArrayBuffer(1)))||pt&&"[object Map]"!=Ke(new pt)||Fe&&"[object Promise]"!=Ke(Fe.resolve())||Ne&&"[object Set]"!=Ke(new Ne)||He&&"[object WeakMap]"!=Ke(new He))&&(Ke=function(t){var e=Y(t),n="[object Object]"==e?t.constructor:void 0,r=n?ot(n):"";if(r)switch(r){case Ve:return"[object DataView]";case Ue:return"[object Map]";case We:return"[object Promise]";case $e:return"[object Set]";case Ge:return"[object WeakMap]"}return e});var qe=Ke,Xe=Object.prototype.hasOwnProperty;var Ye=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Xe.call(t,"index")&&(n.index=t.index,n.input=t.input),n},Je=N.a.Uint8Array;var Qe=function(t){var e=new t.constructor(t.byteLength);return new Je(e).set(new Je(t)),e};var Ze=function(t,e){var n=e?Qe(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)},tn=/\w*$/;var en=function(t){var e=new t.constructor(t.source,tn.exec(t));return e.lastIndex=t.lastIndex,e},nn=H?H.prototype:void 0,rn=nn?nn.valueOf:void 0;var on=function(t){return rn?Object(rn.call(t)):{}};var an=function(t,e){var n=e?Qe(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var un=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Qe(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return Ze(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return an(t,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return en(t);case"[object Set]":return new r;case"[object Symbol]":return on(t)}},cn=Object.create,sn=function(){function t(){}return function(e){if(!J(e))return{};if(cn)return cn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var ln=function(t){return"function"!=typeof t.constructor||le(t)?{}:sn(Pe(t))};var fn=function(t){return Wt(t)&&"[object Map]"==qe(t)},dn=oe.a&&oe.a.isMap,mn=dn?re(dn):fn;var pn=function(t){return Wt(t)&&"[object Set]"==qe(t)},hn=oe.a&&oe.a.isSet,gn=hn?re(hn):pn,vn={};vn["[object Arguments]"]=vn["[object Array]"]=vn["[object ArrayBuffer]"]=vn["[object DataView]"]=vn["[object Boolean]"]=vn["[object Date]"]=vn["[object Float32Array]"]=vn["[object Float64Array]"]=vn["[object Int8Array]"]=vn["[object Int16Array]"]=vn["[object Int32Array]"]=vn["[object Map]"]=vn["[object Number]"]=vn["[object Object]"]=vn["[object RegExp]"]=vn["[object Set]"]=vn["[object String]"]=vn["[object Symbol]"]=vn["[object Uint8Array]"]=vn["[object Uint8ClampedArray]"]=vn["[object Uint16Array]"]=vn["[object Uint32Array]"]=!0,vn["[object Error]"]=vn["[object Function]"]=vn["[object WeakMap]"]=!1;var bn=function t(e,n,r,o,i,a){var u,c=1&n,s=2&n,l=4&n;if(r&&(u=i?r(e,o,i,a):r(e)),void 0!==u)return u;if(!J(e))return e;var f=Yt(e);if(f){if(u=Ye(e),!c)return Se(e,u)}else{var d=qe(e),m="[object Function]"==d||"[object GeneratorFunction]"==d;if(Object(Jt.a)(e))return Object(Oe.a)(e,c);if("[object Object]"==d||"[object Arguments]"==d||m&&!i){if(u=s||m?{}:ln(e),!c)return s?Ie(e,xe(u,e)):De(e,ve(u,e))}else{if(!vn[d])return i?e:{};u=un(e,d,c)}}a||(a=new jt);var p=a.get(e);if(p)return p;a.set(e,u),gn(e)?e.forEach((function(o){u.add(t(o,n,r,o,e,a))})):mn(e)&&e.forEach((function(o,i){u.set(i,t(o,n,r,i,e,a))}));var h=f?void 0:(l?s?Le:je:s?we:ge)(e);return Lt(h||e,(function(o,i){h&&(o=e[i=o]),Ht(u,i,t(o,n,r,i,e,a))})),u};var yn=function(t){return bn(t,5)};const _n={},wn={},xn=C.a[86],On=[];let Sn=[];_n[""]="全部";for(const t in xn)On.push({value:t,label:xn[t]}),_n[t]=xn[t],wn[xn[t]]={code:t},wn[xn[t]]["全部"]={code:""};for(let t=0,e=On.length;t<e;t++){const e=On[t].value,n=On[t].label,r=[];for(const t in C.a[e])r.push({value:t,label:C.a[e][t]}),_n[t]=C.a[e][t],wn[n][C.a[e][t]]={code:t},wn[n][C.a[e][t]]["全部"]={code:""};r.length&&(On[t].children=r)}Sn=yn(On);for(let t=0,e=On.length;t<e;t++){const e=On[t].children,n=On[t].label;if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t].value,o=e[t].label,i=[];for(const t in C.a[r])i.push({value:t,label:C.a[r][t]}),_n[t]=C.a[r][t],wn[n][o][C.a[r][t]]={code:t};i.length&&(e[t].children=i)}}const Cn=yn(Sn);Cn.unshift({value:"",label:"全部"});for(let t=0,e=Cn.length;t<e;t++){const e=Cn[t].children;if(e&&e.length){e.unshift({value:"",label:"全部"});for(let t=0,n=e.length;t<n;t++){const n=e[t].children;n&&n.length&&n.unshift({value:"",label:"全部"})}}}const En=yn(On);En.unshift({value:"",label:"全部"});for(let t=0,e=En.length;t<e;t++){const e=En[t].children;if(e&&e.length){e.unshift({value:"",label:"全部"});for(let t=0,n=e.length;t<n;t++){const n=e[t].children;n&&n.length&&n.unshift({value:"",label:"全部"})}}}var kn={name:"AddressComponent",props:{value:{type:Object,default:function(){}},printRead:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isAddressDetail:{type:Boolean,default:!0}},model:{prop:"value",event:"change"},watch:{value:{handler:function(){this.form=this.value?this.value:this.form,this.getDisplayValue()},deep:!0,immediate:!0}},computed:{printValue:function(){var t="";return this.form.postAddress.length&&this.form.postAddress.forEach((function(e){t+=e.length?_n[e]:""})),t+this.form.details}},data:function(){return{form:{postAddress:[],province:"",city:"",district:"",details:""},options:On}},methods:{getDisplayValue:function(){var t=this;this.form.postAddress.length&&this.form.postAddress.forEach((function(e,n){var r=_n[e];switch(n){case 0:t.form.province=r;break;case 1:t.form.city=r;break;case 2:t.form.district=r}}))},handleChange:function(){this.$set(this.form,"province",""),this.$set(this.form,"city",""),this.$set(this.form,"district",""),this.getDisplayValue(),this.$emit("change",this.form)}}},Tn=(n("5589"),Object(v.a)(kn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"address-component-container"},[t.printRead?[n("el-input",{staticClass:"print-read",attrs:{row:3,value:t.printValue,resize:"none",type:"textarea"}})]:[n("el-cascader",{attrs:{disabled:t.disabled,options:t.options,clearable:"",filterable:"",placeholder:"请选择省、市、区(县)",size:"mini"},on:{change:t.handleChange},model:{value:t.form.postAddress,callback:function(e){t.$set(t.form,"postAddress",e)},expression:"form.postAddress"}}),t.isAddressDetail?n("el-input",{staticClass:"address-component-detail",attrs:{disabled:t.disabled,rows:2,placeholder:"请输入详细地址",resize:"none",type:"textarea"},on:{change:t.handleChange},model:{value:t.form.details,callback:function(e){t.$set(t.form,"details",e)},expression:"form.details"}}):t._e()]],2)}),[],!1,null,"7c858ee4",null).exports),Mn={extends:n("5f72").Select,props:{customMultiple:{type:Boolean,default:!1}},methods:{handleOptionSelect:function(t,e){var n=this;if(this.multiple&&this.customMultiple){var r=(this.value||[]).slice(),o=this.getValueIndex(r,t.value);o>-1?r.splice(o,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(t.value),this.$emit("input",r),this.emitChange(r),t.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else if(this.multiple&&!this.customMultiple){var i=[t.value];this.$emit("input",i),this.emitChange(i),t.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.visible=!1}else this.$emit("input",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(t)}))}}},Dn=Object(v.a)(Mn,void 0,void 0,!1,null,null,null).exports,An=n("e2e6"),Pn=(n("8ba4"),n("eac8")),Rn=n.n(Pn),In=n("c32d"),zn=n.n(In);zn.a.locale("zh-cn");var jn=function(t){return function(t){return null!=t&&(!isNaN(new Date(t).getTime())&&!Array.isArray(t))}(t)?new Date(t):null},Ln=function(t){return zn()(t).format("YYYY-MM-DD")},Bn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd",n=jn(t);return n?Rn.a.format(n,e||"yyyy-MM-dd"):""};function Fn(t,e){var n=e&&e.format?e.format:"yyyy-MM-dd HH:mm:ss",r=e&&e.customFormat?e.customFormat:null;return t&&Number.isInteger(t)?function(t,e,n){return Bn(t,"custom"===e?n:e)}(t,n,r):t}var Nn,Hn={name:"TextComponent",props:{align:{type:String,default:"left"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#3E464C"},fontWeight:{type:String,default:"normal"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"inherit"},marginTop:Number,marginBottom:Number}},Vn=(n("f3a4"),Object(v.a)(Hn,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"text-component",style:{textAlign:t.align,color:t.fontColor,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,fontFamily:t.fontFamily,marginTop:t.marginTop+"px",marginBottom:t.marginBottom+"px"}},[t._t("default")],2)}),[],!1,null,"71ca9a5c",null).exports),Un={name:"generate-table-item",components:{AddressComponent:Tn,OrganizationSelector:f.a,UploadComponent:b,UploadImageComponent:_,UuidComponent:O,CustomSelectComponent:Dn,TextComponent:Vn},props:["widget","value","models","remote","isTable","isInTable","disabled","edit","remoteOptionSource","rules","platform","preview","dataSourceValue","eventFunction","rowIndex","tableName","printRead","scopeRowData"],data:function(){return{DATASOURCE_TYPE:u,dataModel:this.value,dataModels:this.models,key:(new Date).getTime(),modelName:this.widget.model,optionLoading:!1,optionLoadFailed:!1,options:[],visible:!0,printValue:""}},inject:["variable","formValue"],computed:{isRemote:function(){return this.widget.options.remote!==u.STATIC_DATA},digitalValue:function(){var t="",e=this.widget.options.showSuffix?this.widget.options.suffix:"";return isNaN(Number(this.dataModel))||(t=this.widget.options.closePrecision?Number(this.dataModel)+e:Number(this.dataModel).toFixed(this.widget.options.precision)+e),t}},created:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.widget.options.remote===u.FUNCTIONS&&t.remote[t.widget.options.remoteFunc]&&t.remote[t.widget.options.remoteFunc]((function(e){t.loadOptions(e)})),t.widget.options.remote===u.OPTION&&t.remoteOptionSource[t.widget.options.remoteOptionSource]&&t.loadOptions(t.remoteOptionSource[t.widget.options.remoteOptionSource]),t.widget.options.remote===u.API_DATA&&t.dataSourceValue&&(n=t.dataSourceValue.find((function(e){return e.key===t.widget.options.remoteDataSource})))&&n.value&&t.loadOptions(n.value),"cascader"===t.widget.type&&(t.options=t.widget.options.remoteOptions);case 4:case"end":return e.stop()}}),e)})))()},mounted:function(){!this.widget.options.useDynamicValue||this.dataModel||this.printRead||(this.dataModel=(new Date).getTime())},methods:{getParentCode:function(t){return this.widget.options.isInitNode&&this.widget.options.initNode&&this.widget.options.initNode.length?this.widget.options.initNode[0][t]:"code"===t?this.variable.USER_REGION_CODE:this.variable.USER_REGION},getCascaderPrintValue:function(){var t="";if(void 0!==this.scopeRowData["".concat(this.widget.model,"_").concat(An.a)])t=(this.scopeRowData["".concat(this.widget.model,"_").concat(An.a)]||[]).join(" / ");else if(this.$refs["icd-form-".concat(this.widget.model)]){var e=this.$refs["icd-form-".concat(this.widget.model)].getCheckedNodes(),n=e&&e.length&&e[0]&&e[0].pathLabels?e[0].pathLabels:[];t=this.isRemote?n.join(" / "):this.dataModel.join(" / ")}return t},loadCascaderOptions:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,r;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.dataModel&&t.dataModel.length&&t.options&&t.options.length)){e.next=6;break}return n=t.options.findIndex((function(e){return e.value===t.dataModel[0]})),e.next=4,t.getChildren(t.options[n],1,t.dataModel);case 4:(r=e.sent)&&r.length?t.$set(t.options[n],"children",r):t.$set(t.options[n],"leaf",!0);case 6:case"end":return e.stop()}}),e)})))()},getChildren:function(t,e,n){var r=this;return Object(i.a)(Object(o.a)().mark((function i(){var a,u;return Object(o.a)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,r.loadDictOption(t);case 2:if(!((a=o.sent)&&a.length&&e<n.length)){o.next=11;break}return u=a.findIndex((function(t){return t.value===n[e]})),o.t0=r,o.t1=a[u],o.next=9,r.getChildren(a[u],e+1,n);case 9:o.t2=o.sent,o.t0.$set.call(o.t0,o.t1,"children",o.t2);case 11:return o.abrupt("return",a);case 12:case"end":return o.stop()}}),i)})))()},loadDictOption:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var i;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.loading=!0,n.prev=1,n.next=4,s(e,{dictId:t.dictId,parentId:t.id});case 4:return(i=n.sent).data&&i.data.length&&(i.data=i.data.map((function(t){return Object(r.a)(Object(r.a)({},t),{},{leaf:"0"===t.hasChild})}))),n.abrupt("return",i.data);case 9:return n.prev=9,n.t0=n.catch(1),e.$message.error(n.t0),n.abrupt("return",null);case 13:return n.prev=13,e.loading=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[1,9,13,16]])})))()},fillingColumns:function(t){this.$emit("fillingColumns",t)},loadOptions:function(t){var e=this;this.widget.options.remoteOptions=t.map((function(t){return e.widget.options.props.children&&e.widget.options.props.children.length&&Object.keys(t).includes(e.widget.options.props.children)?{value:t[e.widget.options.props.value],label:t[e.widget.options.props.label],children:e.processRemoteProps(t[e.widget.options.props.children],e.widget.options.props)}:{value:t[e.widget.options.props.value],label:t[e.widget.options.props.label]}}))},cascaderLazyLoad:function(t,e){var n=this;return Object(i.a)(Object(o.a)().mark((function r(){var i,a;return Object(o.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.root){r.next=3;break}return e(),r.abrupt("return");case 3:return r.next=5,s(n,{dictId:t.data.dictId,parentId:t.data.id});case 5:(i=r.sent).data?(t.children&&t.children.length?e():e(i.data),a=t.children.map((function(t){return t.data.id})),e(i.data.filter((function(t){return a.indexOf(t.id)<0})))):n.optionLoadFailed=!0;case 7:case"end":return r.stop()}}),r)})))()},handleLoadDictOptions:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,r;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.widget.options.remoteOptions&&t.widget.options.remoteOptions.length||t.optionLoading)){e.next=2;break}return e.abrupt("return");case 2:if(t.optionLoading=!0,t.optionLoadFailed=!1,n={},"dict"!==(r=t.widget.options.remoteOption.remoteDict).dictDataType){e.next=12;break}return e.next=9,s(t,{dictId:r.dictId,parentId:"#"});case 9:n=e.sent,e.next=16;break;case 12:if("dictItem"!==r.dictDataType){e.next=16;break}return e.next=15,s(t,{dictId:r.dictId,parentId:r.dictOptionId});case 15:n=e.sent;case 16:n.data?t.widget.options.remoteOptions=n.data:t.optionLoadFailed=!0,t.optionLoading=!1;case 18:case"end":return e.stop()}}),e)})))()},processRemoteProps:function(t,e){var n=this;return t&&t.length?t.map((function(t){return n.processRemoteProps(t[e.children],e).length?{value:t[e.value],label:t[e.label],children:n.processRemoteProps(t[e.children],e)}:{value:t[e.value],label:t[e.label]}})):[]},onCascaderChange:function(t){var e=this;t&&this.$nextTick((function(){e.$parent&&e.$parent.clearValidate&&e.$parent.clearValidate(),e.$parent&&e.$parent.$parent&&e.$parent.$parent.$refs.generateFormItem&&e.$parent.$parent.$refs.generateFormItem.clearValidate()}))},getCascaderText:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.length>=1&&e){var r=e.find((function(e){return e.value===t[0]}));return r&&n.push(r.label),t.splice(0,1),this.getCascaderText(t,r.children,n)}if(0===t.length)return n},handleOnClick:function(){if(this.widget.events&&this.widget.events.onClick){var t=this.widget.events.onClick;this.isTable&&this.tableName?this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex}):this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model})}},handleOnFocus:function(){if(this.widget.events&&this.widget.events.onFocus){var t=this.widget.events.onFocus;this.isTable&&this.tableName?this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex}):this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model})}},handleOnBlur:function(){if(this.widget.events&&this.widget.events.onBlur){var t=this.widget.events.onBlur;this.isTable&&this.tableName?this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex}):this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model})}},queryColumns:function(t,e){var n=this;return Object(i.a)(Object(o.a)().mark((function i(){var a,u,s;return Object(o.a)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=[],u=n.widget.options.relatedFormInfo.targetColumn,o.next=4,Object(c.h)({size:9999,current:1,formId:n.widget.options.relatedFormInfo.formId});case 4:if((s=o.sent).data&&s.data.code&&"0000"===s.data.code){o.next=7;break}throw new Error(s&&s.data&&s.data.message?s.data.message:"获取表单数据列表失败");case 7:if(!s.data.data.records.length){o.next=11;break}return o.next=10,n.getColumnList();case 10:a=s.data.data.records.filter((function(e){return-1!==JSON.stringify(e[u]).search(t)})).map((function(t){return Object(r.a)({value:null!==t[u]?n.getOptionLabel(t,u).substring(0,100):""},t)}));case 11:e(a);case 12:case"end":return o.stop()}}),i)})))()},selectData:function(t){if(0!==this.widget.options.relatedFormInfo.dataFillRules.length){var e={value:{},fillingRules:[],selectedItem:{label:t[this.widget.options.relatedFormInfo.targetColumn],value:t.ID,widgetModel:this.widget.model,type:"input"}};e.fillingRules=this.widget.options.relatedFormInfo.dataFillRules;var n=h.a.cloneDeep(t);this.$delete(n,"value"),e.value=n,this.$emit("fillingColumns",e)}},getOptionLabel:function(t,e){var n=this.columnList.find((function(t){return t.columnName===e})),r=t[e].toString();return"date"===n.widgetType&&(r=Fn(t[e],n.rawOptions)),"address"===n.widgetType&&(r="".concat(t[e].province||"").concat(t[e].city||"").concat(t[e].district||"").concat(t[e].details||"")),"organization"===n.widgetType&&(r="",t[e]&&Array.isArray(t[e])&&t[e].length&&t[e].forEach((function(n,o){r+="".concat(n.name).concat(o!==t[e].length-1?" > ":"")}))),"member"===n.widgetType&&(r="",t[e]&&Array.isArray(t[e])&&t[e].length&&t[e].forEach((function(n,o){r+="".concat(n.name).concat(o!==t[e].length-1?",":"")}))),r},getColumnList:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,Object(c.e)({formId:t.widget.options.relatedFormInfo.formId});case 4:"0000"!==(n=e.sent).data.code?t.$message.error(n.data.message||"获取表单数据列表失败"):t.columnList=n.data.data,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),t.$message.error(e.t0);case 12:return e.prev=12,t.loading=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,8,12,15]])})))()}},watch:{value:function(t){this.dataModel=t},dataModel:function(t){this.$emit("input",t),this.isTable&&this.tableName&&this.$emit("on-table-change",{value:t,field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex,haveEvent:this.widget.events&&this.widget.events.onChange})},remoteOptionSource:{deep:!0,handler:function(){Object.keys(this.remoteOptionSource).indexOf(this.widget.options.remoteOptionSource)>=0&&this.widget.options.remote!==u.STATIC_DATA&&"option"===this.widget.options.remoteType&&this.loadOptions(this.remoteOptionSource[this.widget.options.remoteOptionSource])}},dataSourceValue:{deep:!0,handler:function(){var t=this;if(this.dataSourceValue){var e=this.dataSourceValue.find((function(e){return e.key===t.widget.options.remoteDataSource}));e&&e.value&&this.loadOptions(e.value)}}},printRead:{deep:!0,immediate:!0,handler:(Nn=Object(i.a)(Object(o.a)().mark((function t(e){return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("cascader"!==this.widget.type){t.next=11;break}if(!e){t.next=4;break}t.next=11;break;case 4:if(this.widget.options.remote!==u.DICT_DATA||!this.widget.options.remoteOption||!this.widget.options.remoteOption.remoteDict){t.next=11;break}if(!this.edit){t.next=11;break}return t.next=8,this.handleLoadDictOptions();case 8:return this.options=this.widget.options.remoteOptions,t.next=11,this.loadCascaderOptions();case 11:case"end":return t.stop()}}),t,this)}))),function(t){return Nn.apply(this,arguments)})}}},Wn=Object(v.a)(Un,(function(){var t,e=this,n=e.$createElement,r=e._self._c||n;return r("div",{class:{"print-read-mode":e.printRead}},["input"===e.widget.type?[e.printRead?[r("div",{staticClass:"custom-input-section"},[e._v(" "+e._s(e.widget.options.showPassword?"*********":e.dataModel)+" ")])]:[e.widget.options.relatedFormEnabled?[e.widget.options.dataTypeCheck&&"number"===e.widget.options.dataType?r("el-autocomplete",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,"fetch-suggestions":e.queryColumns,type:"number",maxlength:100},on:{blur:function(t){return t.stopPropagation(),e.handleOnBlur.apply(null,arguments)},focus:function(t){return t.stopPropagation(),e.handleOnFocus.apply(null,arguments)},select:e.selectData},model:{value:e.dataModel,callback:function(t){e.dataModel=e._n(t)},expression:"dataModel"}}):r("el-autocomplete",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,"fetch-suggestions":e.queryColumns,type:e.widget.options.dataTypeCheck?e.widget.options.dataType:"text","show-word-limit":"",maxlength:100},on:{blur:function(t){return t.stopPropagation(),e.handleOnBlur.apply(null,arguments)},focus:function(t){return t.stopPropagation(),e.handleOnFocus.apply(null,arguments)},select:e.selectData},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:[!e.widget.options.dataTypeCheck||"number"!==e.widget.options.dataType&&"integer"!==e.widget.options.dataType&&"float"!==e.widget.options.dataType?r("el-input",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,type:e.widget.options.dataTypeCheck?e.widget.options.dataType:"text",maxlength:"50"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}):r("el-input",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,type:"number"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=e._n(t)},expression:"dataModel"}})]]]:e._e(),"textarea"===e.widget.type?[e.printRead?[r("div",{staticClass:"custom-textarea-section"},[e._v(" "+e._s(e.dataModel)+" ")])]:[r("el-input",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,rows:e.widget.options.rows,autosize:!!e.widget.options.autosize&&{minRows:e.widget.options.rows},type:"textarea"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"number"===e.widget.type?[e.printRead?[e._v(" "+e._s(e.digitalValue)+" ")]:[r("el-input-number",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"auto"},attrs:{controls:!e.printRead&&e.widget.options.controls,"controls-position":e.widget.options.controlsPosition,disabled:e.printRead||!e.edit||e.widget.options.disabled,max:e.widget.options.max,min:e.widget.options.min,precision:e.widget.options.closePrecision?void 0:e.widget.options.precision,step:e.widget.options.step},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.widget.options.showSuffix?r("span",{staticClass:"iss-number-unit"},[e._v(" "+e._s(e.widget.options.suffix))]):e._e()]]:e._e(),"radio"===e.widget.type?[e.printRead?[e.isRemote?[e._v(" "+e._s(e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel}))&&e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel})).label||"")+" ")]:[e._v(" "+e._s(e.dataModel||"")+" ")]]:[e.optionLoading?[r("i",{staticClass:"el-icon-loading"}),e._v(" 正在加载选项... ")]:e._e(),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e(),r("el-radio-group",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},["button"===e.widget.options.optionStyle?e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-radio-button",{key:t.value+n,style:{display:"inline-block"},attrs:{label:t.value}},[e._v(" "+e._s(t.label)+" ")])})):e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-radio",{key:t.value+n,style:{display:"mobile"===e.platform&&"border"===e.widget.options.optionStyle?"block":e.widget.options.inline?"inline-block":"block"},attrs:{border:"border"===e.widget.options.optionStyle,label:t.value}},[e._v(" "+e._s(t.label)+" ")])}))],2)]]:e._e(),"checkbox"===e.widget.type?[e.printRead?[e.isRemote?[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return e.widget.options.remoteOptions.find((function(e){return e.value===t}))&&e.widget.options.remoteOptions.find((function(e){return e.value===t})).label})).join("、")||"")+" ")]:[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return e.widget.options.options.find((function(e){return e.value===t}))&&e.widget.options.options.find((function(e){return e.value===t})).label})).join("、")||"")+" ")]]:[e.optionLoading?[r("i",{staticClass:"el-icon-loading"}),e._v(" 正在加载选项... ")]:e._e(),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e(),r("el-checkbox-group",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},["button"===e.widget.options.optionStyle?e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-checkbox-button",{key:t.value+n,style:{display:"inline-block"},attrs:{label:t.value}},[e._v(" "+e._s(t.label)+" ")])})):e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-checkbox",{key:t.value+n,style:{display:"mobile"===e.platform&&"border"===e.widget.options.optionStyle?"block":e.widget.options.inline?"inline-block":"block"},attrs:{border:"border"===e.widget.options.optionStyle,label:t.value}},[e._v(" "+e._s(t.label)+" ")])}))],2)]]:e._e(),"time"===e.widget.type?[e.printRead?[e._v(" "+e._s(e.dataModel)+" ")]:[r("el-time-picker",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{arrowControl:e.widget.options.arrowControl,clearable:e.widget.options.clearable,disabled:!e.edit||e.widget.options.disabled,editable:e.widget.options.editable,"end-placeholder":e.widget.options.endPlaceholder,"is-range":e.widget.options.isRange,placeholder:e.widget.options.placeholder,readonly:e.widget.options.readonly,"start-placeholder":e.widget.options.startPlaceholder,"value-format":e.widget.options.format},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"date"===e.widget.type?[r("el-date-picker",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{clearable:e.widget.options.clearable,disabled:e.printRead||!e.edit||e.widget.options.disabled,editable:e.widget.options.editable,"end-placeholder":e.widget.options.endPlaceholder,format:"custom"===e.widget.options.format?e.widget.options.customFormat:e.widget.options.format,placeholder:e.widget.options.placeholder,readonly:e.widget.options.readonly,"start-placeholder":e.widget.options.startPlaceholder,type:e.widget.options.type,"value-format":"timestamp"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"rate"===e.widget.type?[r("el-rate",{ref:"icd-form-"+e.widget.model,style:e.widget.options.clearable?"float:left":"",attrs:{"allow-half":e.widget.options.allowHalf,disabled:e.printRead||!e.edit||e.widget.options.disabled,"icon-classes":["ri-star-fill","ri-star-fill","ri-star-fill"],max:e.widget.options.max,"score-template":"{value}"+e.widget.options.suffix,"show-score":e.widget.options.showScore,"disabled-void-icon-class":"ri-star-fill","void-icon-class":"ri-star-line"},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.widget.options.clearable?r("el-link",{staticStyle:{float:"left","margin-left":"1rem"},attrs:{underline:!1,type:"primary"},on:{click:function(t){e.dataModel=0}}},[e._v("清空")]):e._e()]:e._e(),"select"===e.widget.type?[e.printRead?[e.isRemote?[e._v(" "+e._s(("object"==typeof e.dataModel&&e.dataModel?e.dataModel.map((function(t){return e.widget.options.remoteOptions.find((function(e){return e.value===t}))&&e.widget.options.remoteOptions.find((function(e){return e.value===t})).label})).join("、"):e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel}))&&e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel})).label)||"")+" ")]:[e._v(" "+e._s(("object"==typeof e.dataModel&&e.dataModel?e.dataModel.map((function(t){return e.widget.options.options.find((function(e){return e.value===t}))&&e.widget.options.options.find((function(e){return e.value===t})).label})).join("、"):e.widget.options.options.find((function(t){return t.value===e.dataModel}))&&e.widget.options.options.find((function(t){return t.value===e.dataModel})).label)||"")+" ")]]:[r("custom-select-component",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{clearable:e.widget.options.clearable,"custom-multiple":e.widget.options.multiple,disabled:!e.edit||e.widget.options.disabled,filterable:e.widget.options.filterable,loading:e.optionLoading,placeholder:e.widget.options.placeholder,"loading-text":"正在加载选项",multiple:""},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,e){return r("el-option",{key:t.id||t.value+e,attrs:{label:t.label,value:t.value}})})),1),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e()]]:e._e(),"switches"===e.widget.type?[e.printRead?[e._v(" "+e._s(!0===e.dataModel?e.widget.options.activeText||"是":!1===e.dataModel?e.widget.options.inactiveText||"否":"")+" ")]:[r("el-switch",{ref:"icd-form-"+e.widget.model,attrs:{"active-text":e.widget.options.activeText,disabled:!e.edit||e.widget.options.disabled,"inactive-text":e.widget.options.inactiveText},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"slider"===e.widget.type?[e.printRead?[e._v(" "+e._s(e.dataModel+e.widget.options.suffix)+" ")]:[r("el-slider",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,"format-tooltip":function(t){return t+e.widget.options.suffix},max:e.widget.options.max,min:e.widget.options.min,range:e.widget.options.range,"show-input":e.widget.options.showInput,step:e.widget.options.step},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"editor"===e.widget.type?[r("rich-editor",{ref:"icd-form-"+e.widget.model,attrs:{"custom-style":{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%",cursor:!e.edit||e.widget.options.disabled?"no-drop":"",backgroundColor:!e.edit||e.widget.options.disabled?"#F5F7FA":""},disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,readonly:!0},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),["organization","member"].indexOf(e.widget.type)>-1?[e.printRead?[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return t.name})).join("、")||"")+" ")]:[r("organization-selector",{ref:"icd-form-"+e.widget.model,attrs:{"dialog-title":"选择"+("ORGAN"===e.widget.options.optionScopeType?"组织机构":"人员"),"custom-style":{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},disabled:e.printRead||!e.edit||e.widget.options.disabled,multiple:e.widget.options.multiple,"parent-code":e.getParentCode("code"),"parent-name":e.getParentCode("name"),"option-scope-type":e.widget.options.optionScopeType,placeholder:e.widget.options.placeholder,platform:e.platform},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"cascader"===e.widget.type?[e.printRead?[e._v(e._s(e.getCascaderPrintValue()))]:[r("el-cascader",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{clearable:e.widget.options.clearable,disabled:e.printRead||!e.edit||e.widget.options.disabled,filterable:e.widget.options.filterable,loading:e.optionLoading,options:e.isRemote?e.options:e.widget.options.options,placeholder:e.widget.options.placeholder,props:{lazy:e.isRemote,lazyLoad:e.cascaderLazyLoad,checkStrictly:e.widget.options.checkStrictly},"collapse-tags":"","loading-text":"正在加载选项"},on:{blur:e.handleOnBlur,change:e.onCascaderChange,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e()]]:e._e(),"upload"===e.widget.type?[r("upload-component",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled,limit:e.widget.options.limit,multiple:e.widget.options.multiple,"print-read":e.printRead,size:e.widget.options.size,accept:e.widget.options.accept,tip:e.widget.options.tip},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"imageUpload"===e.widget.type?[r("upload-image-component",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled,limit:e.widget.options.limit,multiple:e.widget.options.multiple,"print-read":e.printRead,size:e.widget.options.size,tip:e.widget.options.tip},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"uuid"===e.widget.type?[r("uuid-component",{ref:"icd-form-"+e.widget.model,attrs:{"custom-style":{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},"print-read":e.printRead},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"address"===e.widget.type?[r("address-component",{ref:"icd-form-"+e.widget.model,attrs:{disabled:e.widget.options.disabled||!e.edit,"is-address-detail":e.widget.options.isAddressDetail,"print-read":e.printRead},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"button"===e.widget.type?[r("text-component",{staticStyle:{"text-align":"center"},attrs:{align:e.widget.options.contentPosition}},[e.widget.options.showInPrintRead||!e.printRead?r("el-button",{ref:"icd-form-"+e.widget.model,class:(t={},t[e.widget.options&&e.widget.options.customClass]=e.widget.options&&e.widget.options.customClass,t),style:e.widget.options.customWidth?{width:e.widget.options.width+"%"}:"",attrs:{circle:e.widget.options.buttonCircle,disabled:!e.edit||e.widget.options.disabled,plain:e.widget.options.buttonPlain,round:e.widget.options.buttonRound,size:e.widget.options.buttonSize,type:e.widget.options.buttonType},on:{click:e.handleOnClick}},[e._v(" "+e._s(e.widget.options.buttonName)+" ")]):e._e()],1)]:e._e()],2)}),[],!1,null,null,null).exports,$n={name:"StepOne",inject:{currentFormId:{default:""},formPublishVersionId:{default:""}},props:{widgetKey:{type:String,default:""},widgetName:{type:String,default:null}},data:function(){return{loading:!1,fileList:[],result:{state:!1,message:"处理失败"},fileName:""}},methods:{handleChange:function(t,e){this.$refs.upload.clearFiles(),this.fileList=e},handleUpload:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,r,i;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.fileList[0].raw).size/1024/1024<1){e.next=4;break}return t.$message.error("上传文件大小不能超过 1MB!"),e.abrupt("return");case 4:return t.loading=!0,t.$emit("onUpload"),(r=new FormData).append("file",n),r.append("formId",t.currentFormId),e.prev=9,e.next=12,Object(c.o)(r);case 12:if("0000"!==(i=e.sent).data.code){e.next=20;break}return t.fileName=i.data.data,e.next=17,t.handleImport();case 17:t.$emit("onNext",t.result),e.next=22;break;case 20:t.$message.error(i.data.message);case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(9),t.$message.error(e.t0.message);case 27:return e.prev=27,t.loading=!1,t.$emit("onUploadEnd"),t.fileList=[],e.finish(27);case 32:case"end":return e.stop()}}),e,null,[[9,24,27,32]])})))()},handleImport:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.processing=!0,e.prev=1,e.next=4,Object(c.b)({fileName:t.fileName,formId:t.currentFormId,previewFlag:!0,tableWidgetKey:t.widgetKey,versionId:t.formPublishVersionId}).then((function(e){t.result.state="0000"===e.data.code,t.result.message=e.data.message||("0000"===e.data.code?"处理成功":"处理失败"),t.result.data=e.data.data})).catch((function(e){t.result.state=!1,t.result.message=e.message||e.data.message}));case 4:e.next=10;break;case 6:e.prev=6,e.t0=e.catch(1),t.result.state=!1,t.result.message=e.t0.message;case 10:return e.prev=10,t.processing=!1,e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[1,6,10,13]])})))()},downloadModel:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,r,i;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$emit("onUpload"),t.loading=!0,e.prev=2,e.next=5,Object(c.c)({formId:t.currentFormId,tableWidgetKey:t.widgetKey});case 5:(n=e.sent).data?(r=window.URL.createObjectURL(new Blob([n.data],{type:"application/vnd.ms-excel"})),(i=document.createElement("a")).href=r,i.setAttribute("download","子表单".concat(t.widgetName?"_"+t.widgetName:"","_").concat(t.widgetKey,"_导入模板.xlsx")),document.body.appendChild(i),i.click()):t.$message.error(n.data.message||"下载子表单导出模板失败"),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),t.$message.error(e.t0);case 13:return e.prev=13,t.loading=!1,t.$emit("onUploadEnd"),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[2,9,13,17]])})))()}}},Gn=(n("858e"),Object(v.a)($n,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"step-one-container"},[n("div",{staticClass:"row-item opt-top-bar"},[t._v(" 为了保证数据导入顺利,推荐您下载使用导入模版,并按照规范示例录入数据 "),n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.downloadModel}},[t._v("下载导入模板")])],1),n("div",{staticClass:"row-item upload-bar"},[n("el-upload",{ref:"upload",staticClass:"upload-excel",attrs:{"http-request":t.handleUpload,multiple:!1,"on-change":t.handleChange,"show-file-list":!1,accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel,.xlsx,.xls",action:"",drag:""}},[n("base-icon",{staticClass:"el-icon-upload",attrs:{"icon-class":"upload-2-line"}}),n("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),n("em",[t._v("点击上传")])])],1)],1),t._m(0)])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row-item note-bar"},[e("ul",{staticClass:"upload-info"},[e("li",[this._v("支持 1MB 以内的xlsx格式文件")]),e("li",[this._v("导入文件第一、第二行表头(默认隐藏)不允许修改或删除")]),e("li",[this._v("导入文件中,数据不可存在空行")]),e("li",[this._v("导入文件中,如某项数据不符合设定表单中组件的校验规则,则存入系统值为空。如:必填项,长度,字典选项等")])])])}],!1,null,"9710d6b6",null).exports),Kn={name:"StepTwo",props:{displayData:{type:Object,default:null}},data:function(){return{status:"success",statusMap:{success:"导入成功",warning:"部分导入成功",error:"导入失败"}}},mounted:function(){this.status=this.displayData&&this.displayData.state?"success":"error"}},qn={name:"DataImport",components:{StepTwo:Object(v.a)(Kn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"step-two-container"},[n("el-result",{attrs:{icon:t.status,title:t.statusMap[t.status]}},["success"!==t.status?n("template",{slot:"subTitle"},[t._v(" "+t._s(t.displayData&&t.displayData.message)+" ")]):n("template",{slot:"subTitle"},[t._v(" 成功导入数据 : "+t._s(t.displayData&&t.displayData.data&&t.displayData.data.successCount)+"条 ")])],2)],1)}),[],!1,null,null,null).exports,StepOne:Gn},inject:["currentFormId"],props:{isDisplay:{type:Boolean,default:!1},widgetKey:{type:String,default:""},widgetName:{type:String,default:null}},model:{prop:"isDisplay",event:"change"},data:function(){return{loading:!1,activeStep:0,uploadResData:null}},methods:{onNext:function(t){this.activeStep+=1,this.uploadResData=t,this.loading=!1}}},Xn=(n("4232"),Object(v.a)(qn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,visible:t.isDisplay,"append-to-body":"","custom-class":"data-import-container",title:"批量导入"},on:{close:function(e){return t.$emit("onClose")}}},[n("div",{staticClass:"header"},[n("el-steps",{attrs:{active:t.activeStep,"finish-status":"success","align-center":""}},[n("el-step",{attrs:{title:"数据上传"}}),n("el-step",{attrs:{title:"完成"}})],1)],1),n("div",{staticClass:"body"},[0===t.activeStep?n("step-one",{attrs:{"widget-key":t.widgetKey,"widget-name":t.widgetName},on:{onUpload:function(e){t.loading=!0},onUploadEnd:function(e){t.loading=!1},onNext:t.onNext}}):t._e(),1===t.activeStep?n("step-two",{attrs:{"display-data":t.uploadResData}}):t._e()],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){return t.$emit("onClose")}}},[t._v("取消")]),t.activeStep>0?n("el-button",{on:{click:function(e){t.activeStep-=1}}},[t._v("上一步")]):t._e(),1===t.activeStep?n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.$emit("onComplete",t.uploadResData)}}},[t._v("完成")]):t._e()],1)])}),[],!1,null,null,null).exports),Yn={components:{BaseIcon:m.a,GenerateTableItem:Wn,DataImport:Xn},props:["columns","value","models","remote","disabledData","rules","name","remoteOptionSource","preview","platform","dataSourceValue","eventFunction","widget","printRead","paging","pageSize"],data:function(){return{tableData:this.value,displayFields:{},changeItem:{},pagingData:[],currentPage:1,currentActive:[],displayDataImport:!1,visible:!0,optionLoading:!1,optionLoadFailed:!1,selectedRows:[],isSelectedAll:!1,orderTypes:["input","textarea","number","date"]}},computed:{mode:function(){return"pc"===this.platform?"section"===this.widget.options.displayMode?"section":"table":"section"},isNotMaxRow:function(){return!this.widget.options.maxLimit||this.tableData&&this.tableData.length<(this.widget.options.maxRows||1e3)}},inject:["variable","currentFormId"],created:function(){for(var t=0;t<this.columns.length;t++)this.displayFields[this.columns[t].model]=!this.columns[t].options.hidden;this.loadPagingData()},mounted:function(){var t=this;this.tableData.forEach((function(e){e._uuid=Object(w.a)(),"section"===t.mode&&(e.checked=!1),delete e.SYS_DATA_SORT})),this.visible=!1,this.columns&&this.columns.length&&this.columns.map(function(){var e=Object(i.a)(Object(o.a)().mark((function e(n){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.options.remote!==u.DICT_DATA||!n.options.remoteOption||!n.options.remoteOption.remoteDict||"cascader"===n.type){e.next=4;break}return e.next=3,t.handleLoadDictOptions(n);case 3:n=e.sent;case 4:return e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.$nextTick((function(){t.visible=!0}))},methods:{selectedAll:function(t){this.selectedRows=t?h.a.cloneDeep(this.paging?this.pagingData:this.tableData):[],(this.paging?this.pagingData:this.tableData).forEach((function(e){e.checked=t}))},handleCardSelectionChange:function(t,e){t?this.selectedRows.push(e):this.selectedRows=this.selectedRows.filter((function(t){return t._uuid!==e._uuid}))},rowMove:function(t,e){var n=this.tableData.findIndex((function(e){return e._uuid===t}));if("up"===e){var r=this.tableData[n-1];r&&(this.tableData.splice(n-1,1),this.tableData.splice(n,0,r))}else{var o=this.tableData[n+1];o&&(this.tableData.splice(n+1,1),this.tableData.splice(n,0,o))}this.tableData.forEach((function(t,e){t.SYS_DATA_SORT=e})),this.loadPagingData()},batchDelete:function(){var t=this,e=this.selectedRows.map((function(t){return t._uuid}));this.$confirm("将永久删除已勾选的数据,确认删除?","提示",{confirmButtonText:"确认"}).then((function(){t.tableData=t.tableData.filter((function(t){return e.indexOf(t._uuid)<0})),t.$emit("onValueChange",t.tableData),t.paging&&(t.currentPage=1,t.loadPagingData(),t.selectedRows=[]),t.isSelectedAll=!1})).catch((function(){}))},handleSelectionChange:function(t){this.selectedRows=t},handleLoadDictOptions:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var r,i;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.optionLoading=!0,e.optionLoadFailed=!1,r={},"dict"!==(i=t.options.remoteOption.remoteDict).dictDataType){n.next=10;break}return n.next=7,s(e,{dictId:i.dictId,parentId:"#"});case 7:r=n.sent,n.next=14;break;case 10:if("dictItem"!==i.dictDataType){n.next=14;break}return n.next=13,s(e,{dictId:i.dictId,parentId:i.dictOptionId});case 13:r=n.sent;case 14:return r.data?t.options.remoteOptions=r.data:e.optionLoadFailed=!0,e.optionLoading=!1,n.abrupt("return",t);case 17:case"end":return n.stop()}}),n)})))()},onDataImportComplete:function(t){var e=this;this.displayDataImport=!1,this.visible=!1,t.data&&t.data.dataList&&(this.models[this.widget.model]=[].concat(Object(a.a)(t.data.dataList),Object(a.a)(this.tableData))),this.loadPagingData(),this.$nextTick((function(){e.visible=!0}))},handleAddRow:function(t,e){for(var n=this,r={},o=0;o<this.columns.length;o++)if(this.columns[o].options.isVariableDefaultValue){var i="未初始化变量数据";this.variable&&(i=this.variable[this.columns[o].options.defaultVariable]||""),r[this.columns[o].model]=i}else r[this.columns[o].model]=this.columns[o].options.defaultValue;if(r._uuid=Object(w.a)(),e?this.tableData.splice(t+1,0,r):this.tableData.push(r),this.widget&&this.widget.events&&this.widget.events.onRowAdd){var a=this.widget.events.onRowAdd;this.eventFunction[a]&&this.eventFunction[a]({rowIndex:this.tableData.length-1,field:this.widget.model})}this.changeItem={},this.paging&&this.$nextTick((function(){n.tableData.length>n.currentPage*n.pageSize&&!e&&(n.currentPage=parseInt((n.tableData.length-1)/n.pageSize)+1),n.loadPagingData()}));try{this.currentActive.push((this.paging?this.pageSize*(this.currentPage-1):0)+(this.tableData.length-1))}catch(t){}},handleRemove:function(t){var e=this;this.$confirm("是否删除该行数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){if(e.tableData.splice(t,1),e.widget&&e.widget.events&&e.widget.events.onRowRemove){var n=e.widget.events.onRowRemove;e.eventFunction[n]&&e.eventFunction[n]({removeIndex:t,field:e.widget.model})}e.changeItem={},e.pagingData=[],e.paging&&e.$nextTick((function(){e.tableData.length%e.pageSize==0&&e.currentPage>parseInt(e.tableData.length/e.pageSize)&&(e.currentPage=parseInt(e.tableData.length/e.pageSize)),e.loadPagingData()}))})).catch((function(){}))},hide:function(t){var e=this;Object.keys(this.displayFields).forEach((function(n){t.indexOf(n)>=0&&e.$set(e.displayFields,n,!1)})),this.displayFields=Object(r.a)({},this.displayFields)},display:function(t){var e=this;Object.keys(this.displayFields).forEach((function(n){t.indexOf(n)>=0&&e.$set(e.displayFields,n,!0)})),this.displayFields=Object(r.a)({},this.displayFields)},disabled:function(t,e){for(var n=0;n<this.columns.length;n++)t.indexOf(this.columns[n].model)>=0&&this.$set(this.columns[n].options,"disabled",e)},setDisabled:function(t,e){for(var n=0;n<this.columns.length;n++)t.indexOf(this.columns[n].model)>=0&&this.$set(this.columns[n].options,"disabled",e)},setReadOnly:function(t,e){for(var n=0;n<this.columns.length;n++)t.indexOf(this.columns[n].model)>=0&&this.$set(this.columns[n].options,"readonly",e)},sortChange:function(t){if(this.paging){var e="descending"===t.order?"desc":"asc";this.tableData=h.a.orderBy(this.tableData,[t.prop],[e])}},handleTableChange:function(t){this.changeItem=t},handlePageChange:function(t){var e=this;"section"===this.mode&&(this.selectedRows=[],(this.paging?this.pagingData:this.tableData).forEach((function(t){t.checked=!1})),this.isSelectedAll=!1),this.currentPage=t,this.pagingData=[],this.$nextTick((function(){e.loadPagingData(),e.$refs[e.name+"-item"].forEach((function(t){t.clearValidate()}))}))},loadPagingData:function(){var t=(this.currentPage-1)*this.pageSize,e=t+this.pageSize;this.pagingData=this.tableData.slice(t,e)}},watch:{value:function(t){Array.isArray(t)?this.tableData=t:(this.tableData=[],Function("console.error('子表单:请设置正确Array格式的数据,当前为".concat(t,"');"))())},tableData:{deep:!0,immediate:!0,handler:function(){this.loadPagingData(),this.changeItem.haveEvent&&this.eventFunction[this.changeItem.haveEvent](this.changeItem)}}}},Jn=Object(v.a)(Yn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.optionLoading,expression:"optionLoading"}],staticClass:"renderer-table",class:{"is-disabled":t.disabledData}},[!t.widget.options.dataImport||t.currentFormId&&t.currentFormId.length?t._e():n("el-tag",{attrs:{size:"small",type:"warning"}},[t._v(" 预览状态暂无法使用批量导入功能 ")]),!t.printRead&&t.widget&&t.widget.options&&(t.widget.options.dataImport||t.widget.options.batchDelete)?n("div",{staticClass:"header-opt-bar"},["section"===t.mode&&t.widget.options.batchDelete?n("el-checkbox",{ref:"selectedAllBtn",staticClass:"header-opt-bar-item select-all",attrs:{size:"mini"},on:{change:t.selectedAll},model:{value:t.isSelectedAll,callback:function(e){t.isSelectedAll=e},expression:"isSelectedAll"}},[t._v("全选")]):t._e(),t.widget.options.dataImport?n("el-button",{staticClass:"header-opt-bar-item",attrs:{disabled:!t.currentFormId||!t.currentFormId.length,size:"mini",type:"primary"},on:{click:function(e){t.displayDataImport=!0}}},[n("base-icon",{attrs:{"icon-class":"upload-2-fill"}}),t._v(" 批量导入 ")],1):t._e(),t.widget.options.batchDelete?n("el-button",{staticClass:"header-opt-bar-item",attrs:{size:"mini",disabled:!t.selectedRows.length},on:{click:t.batchDelete}},[n("base-icon",{attrs:{"icon-class":"delete-bin-line"}}),t._v(" 批量删除 ")],1):t._e()],1):t._e(),t.visible?n("div",["table"===t.mode?n("el-table",{staticClass:"renderer-table-pc",attrs:{data:t.paging?t.pagingData:t.tableData,border:"",size:"small",stripe:""},on:{"sort-change":t.sortChange,"selection-change":t.handleSelectionChange}},[!t.printRead&&t.widget.options.batchDelete?n("el-table-column",{attrs:{type:"selection",width:"40",align:"center"}}):t._e(),n("el-table-column",{attrs:{"header-align":"center",align:"center",fixed:"",label:"序号",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"scope-index"},[n("span",[t._v(t._s((t.paging?t.pageSize*(t.currentPage-1):0)+e.$index+1))])]),n("div",{staticClass:"scope-action"},[t.printRead?t._e():n("el-button",{staticClass:"renderer-table-row-add",attrs:{disabled:t.disabledData,icon:"el-icon-plus",size:"mini",type:"text"},on:{click:function(n){t.handleAddRow((t.paging?t.pageSize*(t.currentPage-1):0)+e.$index,!0)}}}),t.printRead?t._e():n("el-button",{staticClass:"renderer-table-delete",attrs:{disabled:t.disabledData,icon:"el-icon-delete",size:"mini",type:"text"},on:{click:function(n){t.handleRemove((t.paging?t.pageSize*(t.currentPage-1):0)+e.$index)}}}),t.printRead?n("span",[t._v(t._s((t.paging?t.pageSize*(t.currentPage-1):0)+e.$index+1))]):t._e()],1)]}}],null,!1,2614476158)}),0===t.columns.length?n("el-table-column"):[t._l(t.columns,(function(e){return[t.displayFields[e.model]?n("el-table-column",{key:e.key,attrs:{prop:e.model,sortable:(t.preview||t.printRead)&&t.orderTypes.includes(e.type),"sort-orders":["ascending","descending"],"header-align":"center",label:e.options.hideLabel?"":e.name,align:"number"===e.type?"right":"center","label-class-name":e.options.required?"required":"","min-width":e.options.isWidgetWidth?2*e.options.width+"px":"200px"},scopedSlots:t._u([{key:"default",fn:function(r){return[t.displayFields[e.model]?n("el-form-item",{ref:t.name+"-item",refInFor:!0,attrs:{prop:t.name+"."+((t.paging?t.pageSize*(t.currentPage-1):0)+r.$index)+"."+e.model,rules:t.rules[t.name+"."+e.model]}},[n("generate-table-item",{attrs:{"data-source-value":t.dataSourceValue,edit:!t.disabledData,"event-function":t.eventFunction,"is-in-table":!0,"is-table":!0,models:t.tableData[(t.paging?t.pageSize*(t.currentPage-1):0)+r.$index],platform:t.platform,"print-read":t.printRead||e.options.readonly,remote:t.remote,"remote-option-source":t.remoteOptionSource,"row-index":(t.paging?t.pageSize*(t.currentPage-1):0)+r.$index,"table-name":t.name,widget:e,"scope-row-data":r.row},on:{"on-table-change":t.handleTableChange},model:{value:r.row[e.model],callback:function(n){t.$set(r.row,e.model,n)},expression:"scope.row[column.model]"}})],1):t._e()]}}],null,!0)}):t._e()]})),!t.printRead&&t.widget.options.rowMove?n("el-table-column",{attrs:{"header-align":"center",align:"center",label:"操作",width:"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.rowMove(e.row._uuid,"up")}}},[t._v("上移")]),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.rowMove(e.row._uuid,"down")}}},[t._v("下移")])]}}],null,!1,3921725826)}):t._e()]],2):n("el-collapse",{staticClass:"renderer-table-mobile",model:{value:t.currentActive,callback:function(e){t.currentActive=e},expression:"currentActive"}},t._l(t.paging?t.pagingData:t.tableData,(function(e,r){return n("el-collapse-item",{key:(t.paging?t.pageSize*(t.currentPage-1):0)+r,staticClass:"renderer-table-mobile-item",attrs:{name:(t.paging?t.pageSize*(t.currentPage-1):0)+r}},[n("div",{staticClass:"renderer-table-mobile-item-top",attrs:{slot:"title"},slot:"title"},[!t.printRead&&t.widget.options.batchDelete?n("el-checkbox",{staticClass:"renderer-table-mobile-checkbox",on:{change:function(n){return t.handleCardSelectionChange(n,e)}},model:{value:e.checked,callback:function(n){t.$set(e,"checked",n)},expression:"t.checked"}}):t._e(),t.widget.options.enableDynamicTableTitle&&t.widget.options.relatedField?n("span",{staticClass:"renderer-table-mobile-title"},[t._v(t._s(t.tableData[(t.paging?t.pageSize*(t.currentPage-1):0)+r][t.widget.options.relatedField]))]):n("span",{staticClass:"renderer-table-mobile-title"},[t._v(t._s((t.paging?t.pageSize*(t.currentPage-1):0)+r+1))]),t.printRead?t._e():[t.widget.options.rowMove?[n("el-button",{staticClass:"renderer-table-mobile-move",attrs:{disabled:t.disabledData,size:"mini",type:"text",title:"上移"},on:{click:function(n){return t.rowMove(e._uuid,"up")}}},[n("base-icon",{attrs:{"icon-class":"arrow-up-fill"}})],1),n("el-button",{staticClass:"renderer-table-mobile-move",attrs:{disabled:t.disabledData,size:"mini",type:"text",title:"下移"},on:{click:function(n){return t.rowMove(e._uuid,"down")}}},[n("base-icon",{attrs:{"icon-class":"arrow-down-fill"}})],1)]:t._e(),n("el-button",{staticClass:"renderer-table-mobile-delete",attrs:{disabled:t.disabledData,size:"mini",type:"text",title:"删除"},on:{click:function(e){t.handleRemove((t.paging?t.pageSize*(t.currentPage-1):0)+r)}}},[n("base-icon",{attrs:{"icon-class":"delete-bin-line"}})],1)]],2),n("div",{staticClass:"renderer-table-mobile-item-content"},[t._l(t.columns,(function(e){return[t.displayFields[e.model]?n("el-form-item",{key:e.key,ref:t.name+"-item",refInFor:!0,attrs:{label:e.options.hideLabel?"":e.name,"label-width":e.options.hideLabel?"0px":e.options.isLabelWidth?e.options.labelWidth+"px":"",prop:t.name+"."+((t.paging?t.pageSize*(t.currentPage-1):0)+r)+"."+e.model,rules:t.rules[t.name+"."+e.model]}},[t.displayFields[e.model]?n("generate-table-item",{attrs:{"data-source-value":t.dataSourceValue,edit:!t.disabledData,"event-function":t.eventFunction,"is-in-table":!1,"is-table":!0,models:t.tableData[(t.paging?t.pageSize*(t.currentPage-1):0)+r],platform:t.platform,"print-read":t.printRead||e.options.readonly,remote:t.remote,"remote-option-source":t.remoteOptionSource,"row-index":(t.paging?t.pageSize*(t.currentPage-1):0)+r,"table-name":t.name,widget:e,"scope-row-data":t.tableData[(t.paging?t.pageSize*(t.currentPage-1):0)+r]},on:{"on-table-change":t.handleTableChange},model:{value:t.tableData[(t.paging?t.pageSize*(t.currentPage-1):0)+r][e.model],callback:function(n){t.$set(t.tableData[(t.paging?t.pageSize*(t.currentPage-1):0)+r],e.model,n)},expression:"tableData[(paging ? pageSize * (currentPage - 1) : 0) + index][column.model]"}}):t._e()],1):t._e()]}))],2)])})),1)],1):t._e(),n("el-row",[n("el-col",{attrs:{span:"table"!==t.mode||t.disabledData?24:12,xs:24}},[!t.disabledData&&t.isNotMaxRow?n("el-button",{staticClass:"btn-new-data",class:{"is-short":"table"===t.mode},attrs:{type:"table"===t.mode?"text":"default",size:"medium"},on:{click:t.handleAddRow}},[n("base-icon",{attrs:{"icon-class":"add-line"}}),t._v(" 添加 ")],1):t._e(),t.widget.options.maxLimit?n("span",{staticClass:"max-limit-tip"},[t._v("最多可填写 "+t._s(t.widget.options.maxRows)+" 条数据,当前已填写 "+t._s(t.tableData&&t.tableData.length)+" 条")]):t._e()],1),n("el-col",{attrs:{span:"table"!==t.mode||t.disabledData?24:12,xs:24}},[t.paging&&t.tableData.length?n("el-pagination",{staticClass:"pagination-data",attrs:{background:"","current-page":t.currentPage,"page-size":t.pageSize,"pager-count":5,total:t.tableData.length,layout:"total, prev, pager, next"},on:{"current-change":t.handlePageChange}}):t._e()],1)],1),t.displayDataImport?n("data-import",{attrs:{"widget-key":t.widget.key,"widget-name":t.widget.name},on:{onClose:function(e){t.displayDataImport=!1},onComplete:t.onDataImportComplete},model:{value:t.displayDataImport,callback:function(e){t.displayDataImport=e},expression:"displayDataImport"}}):t._e()],1)}),[],!1,null,null,null).exports,Qn=n("905a"),Zn=n.n(Qn),tr=n("f3ef"),er=n.n(tr),nr=(n("fd8a"),n("46c3"),n("84ec"),n("7193"),n("4ea8"),n("8863"),n("bc54"),n("07d1"),n("bc3a")),rr=n.n(nr),or={components:{TinyMce:Zn.a},props:{value:{type:String,default:""},placeholder:{type:String,default:""},customStyle:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},containerKey:{type:String,default:""}},mounted:function(){this.serverInfo=Object(c.l)(),er.a.init({}),this.dataModel=this.value},data:function(){var t,e=this;return{serverInfo:"",dataModel:this.value,init:{selector:"#".concat(this.containerKey),auto_focus:!1,language_url:window.ISS_LIBRARY_FORM_DESIGNER_OPTIONS.mce_language_url,language:"zh_CN",skin_url:window.ISS_LIBRARY_FORM_DESIGNER_OPTIONS.mce_skin_url,content_css:window.ISS_LIBRARY_FORM_DESIGNER_OPTIONS.mce_content_css,menubar:!1,toolbar:"undo redo | image | fontselect fontsizeselect | bold italic underline strikethrough | forecolor backcolor | bullist numlist | alignleft aligncenter alignright alignjustify | table | styleselect |",font_formats:"宋体='宋体';仿宋='仿宋';微软雅黑='微软雅黑';楷体='楷体';隶书='隶书';幼圆='幼圆';苹方='PingFang SC';Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings",toolbar_mode:"sliding",statusbar:!1,plugins:["lists","autoresize","image","paste","table"],automatic_uploads:!0,image_description:!1,images_upload_url:"",file_picker_types:["image"],images_upload_handler:(t=Object(i.a)(Object(o.a)().mark((function t(n,r,i){var a,u;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(a=new FormData).append("file",n.blob(),n.filename()),t.prev=3,t.next=6,rr.a.post(e.serverInfo.action,a);case 6:"0000"===(u=t.sent).data.code?r("".concat(e.serverInfo.baseUrl).concat(u.data.data&&u.data.data.length&&u.data.data[0])):i(u.data.message),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),i(t.t0.message);case 13:case"end":return t.stop()}}),t,null,[[3,10]])}))),function(e,n,r){return t.apply(this,arguments)}),min_height:250,paste_data_images:!1,smart_paste:!1}}},methods:{onEditorInput:function(){this.$emit("input",this.value)}},watch:{dataModel:function(t){this.$emit("input",t)},value:function(t){this.dataModel=t}}},ir=Object(v.a)(or,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rich-editor",class:{"is-disabled":t.disabled}},[n("tiny-mce",{ref:"tinymceEditor",style:t.customStyle,attrs:{id:t.containerKey,disabled:t.disabled,init:t.init,placeholder:t.placeholder,readonly:t.readonly},on:{input:t.onEditorInput},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})],1)}),[],!1,null,null,null).exports,ar={current:1,size:10,sizeList:[10,20,50,100],pageSizeShort:5,pageSizesShort:[5,10,20,50],pageLayout:"total, prev, pager, next, sizes"},ur={select:!0,cascader:!0,radio:!0,checkbox:!0},cr={time:!0,date:!0,datetime:!0},sr={number:!0},lr={switches:!0},fr={address:!0},dr={rate:!0},mr={relatedForm:!0},pr={organization:!0,member:!0},hr={name:"RateRender",props:{colData:{type:Object,default:function(){}},col:{type:Object,default:function(){}}},data:function(){return{content:0}},mounted:function(){this.content=this.colData[this.col.columnName]}},gr=Object(v.a)(hr,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{attrs:{className:"rate-render-container"}},[t.colData[t.col.columnName]?[t._v(" "+t._s(t.colData[t.col.columnName])+" "+t._s(t.col.rawOptions.showScore&&void 0!==t.col.rawOptions.suffix?t.col.rawOptions.suffix:"")+" ")]:t._e()],2)}),[],!1,null,null,null).exports,vr={name:"SwitchRender",props:{colData:{type:Object,default:function(){}},col:{type:Object,default:function(){}}},mounted:function(){this.getContent()},methods:{getContent:function(){return this.col.rawOptions?this.colData[this.col.columnName]?this.col.rawOptions.activeText||"是":this.col.rawOptions.inactiveText||"否":this.colData[this.col.columnName]?"是":"否"}}},br={name:"TableColumnRender",components:{SwitchRender:Object(v.a)(vr,(function(){var t=this.$createElement;return(this._self._c||t)("el-tag",{attrs:{type:"info"}},[this._v(this._s(this.getContent()))])}),[],!1,null,null,null).exports,RateRender:gr},props:{col:{type:Object,default:null},colData:{type:Object,default:null},columnStatusList:{type:Array,default:null}},data:function(){return{WIDGET_COMP_SWITCH_MAP:lr,WIDGET_DATETIME_MAP:cr,WIDGET_OPTION_MAP:ur,WIDGET_COMP_ARRAY_OBJECT_MAP:pr,selectionTypeSuffix:An.a,WIDGET_NUMBER_MAP:sr,WIDGET_COMP_ADDRESS_MAP:fr,WIDGET_COMP_RATE_MAP:dr,WIDGET_COMP_RELATED_FORM_MAP:mr}},methods:{getColumnStatusType:function(t,e){var n="empty";return t&&Array.isArray(t)&&t.length&&t.forEach((function(t){t.columnStatusValue&&t.columnStatusValue===String(e)&&(n=t.columnStatusType)})),n},getColumnStatusName:function(t,e){var n=e;return t&&Array.isArray(t)&&t.length&&t.forEach((function(t){t.columnStatusValue&&t.columnStatusValue===String(e)&&(n=t.columnStatusName)})),n},timeRender:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"datetime",n=arguments.length>2?arguments[2]:void 0;return t&&Number.isInteger(t)?this.formatDateMapper(t,e,n.format,n.customFormat):t},handleLinkURL:function(t,e){var n=t.linkUrl,r=t.linkParams&&t.linkParams.split(",")||[];try{var o=new URL(n);r&&r.length&&r.forEach((function(t){o.searchParams.append(t,e[t])})),window.open(o.href,"_blank")}catch(t){this.$message("打开链接错误:".concat(t.message))}},handleOpenDetail:function(){this.$emit("detail",this.colData)},formatDateMapper:function(t,e,n,r){if("custom"===n)return Bn(t,r);switch(e){case"date":return Ln(t);case"month":return o=t,zn()(o).format("YYYY-MM");case"year":return function(t){return zn()(t).format("YYYY")}(t);case"datetime":return function(t){return zn()(t).format("YYYY-MM-DD HH:mm:ss")}(t);default:return Ln(t)}var o}}},yr=(n("8f5e"),Object(v.a)(br,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.colData?n("div",{staticClass:"table-column-render-container"},[t.col.columnStatusEnabled&&t.columnStatusList&&t.columnStatusList.length&&"empty"!==t.getColumnStatusType(t.columnStatusList,t.colData[t.col.columnName])?[n("el-tag",{staticClass:"custom-status-tag",attrs:{type:t.getColumnStatusType(t.columnStatusList,t.colData[t.col.columnName]),size:"mini"}},["info"===t.getColumnStatusType(t.columnStatusList,t.colData[t.col.columnName])?n("base-icon",{attrs:{"icon-class":"indeterminate-circle-fill"}}):"warning"===t.getColumnStatusType(t.columnStatusList,t.colData[t.col.columnName])?n("base-icon",{attrs:{"icon-class":"time-fill"}}):"success"===t.getColumnStatusType(t.columnStatusList,t.colData[t.col.columnName])?n("base-icon",{attrs:{"icon-class":"checkbox-circle-fill"}}):"danger"===t.getColumnStatusType(t.columnStatusList,t.colData[t.col.columnName])?n("base-icon",{attrs:{"icon-class":"compass-4-fill"}}):t._e(),t._v(" "+t._s(t.getColumnStatusName(t.columnStatusList,t.colData[t.col.columnName]))+" ")],1)]:[t.WIDGET_OPTION_MAP[t.col.widgetType]&&Array.isArray(t.colData[t.col.columnName])?t._l(t.colData[t.col.columnName+"_"+t.selectionTypeSuffix],(function(e,r){return n("span",{key:e.value||e.id||e.label},[r>0?n("label",{key:r},[t._v(",")]):t._e(),n("el-tag",{staticClass:"in-table-tag",attrs:{type:"info"}},[t._v(" "+t._s(e)+" ")])],1)})):t.WIDGET_OPTION_MAP[t.col.widgetType]&&t.colData[t.col.columnName+"_"+t.selectionTypeSuffix]?n("el-tag",{attrs:{type:"info"}},[t._v(" "+t._s(t.colData[t.col.columnName+"_"+t.selectionTypeSuffix])+" ")]):t.WIDGET_DATETIME_MAP[t.col.widgetType]?[t._v(" "+t._s(t.timeRender(t.colData[t.col.columnName],t.col.rawOptions&&t.col.rawOptions.type,t.col.rawOptions))+" ")]:t.WIDGET_COMP_SWITCH_MAP[t.col.widgetType]&&Object.keys(t.colData).indexOf(t.col.columnName)>-1&&null!==t.colData[t.col.columnName]?[n("switch-render",{attrs:{col:t.col,"col-data":t.colData}})]:t.WIDGET_COMP_RATE_MAP[t.col.widgetType]&&Object.keys(t.colData).indexOf(t.col.columnName)>-1&&null!==t.colData[t.col.columnName]?[n("rate-render",{attrs:{col:t.col,"col-data":t.colData}})]:t.WIDGET_COMP_ARRAY_OBJECT_MAP[t.col.widgetType]?[Array.isArray(t.colData[""+t.col.columnName])&&t.colData[""+t.col.columnName].length?t._l(t.colData[""+t.col.columnName],(function(e,r){return n("span",{key:e.code||e.name},[r>0?n("label",[t._v(",")]):t._e(),n("el-tag",{staticClass:"in-table-tag",attrs:{type:"info"}},[t._v(t._s(e.name))])],1)})):t._e()]:t.col.linkEnabled&&"url"===t.col.linkType&&t.col.linkUrl?[n("el-button",{staticClass:"btn-link",attrs:{type:"text"},on:{click:function(e){return t.handleLinkURL(t.col,t.colData)}}},[t._v(" "+t._s(t.colData[t.col.columnName])+" ")])]:t.col.linkEnabled&&"route"===t.col.linkType?[n("el-button",{staticClass:"btn-link",attrs:{type:"text"},on:{click:t.handleOpenDetail}},[t._v(t._s(t.colData[t.col.columnName]))])]:t.WIDGET_NUMBER_MAP[t.col.widgetType]?[t._v(" "+t._s(t.col.rawOptions.closePrecision?Number(t.colData[t.col.columnName]):Number(t.colData[t.col.columnName]).toFixed(t.col.rawOptions.precision))+" ")]:t.WIDGET_COMP_ADDRESS_MAP[t.col.widgetType]&&t.colData[t.col.columnName]?[t._v(" "+t._s((t.colData[t.col.columnName].province||"")+(t.colData[t.col.columnName].city||"")+(t.colData[t.col.columnName].district||"")+(t.colData[t.col.columnName].details||""))+" ")]:t.WIDGET_COMP_RELATED_FORM_MAP[t.col.widgetType]&&t.colData[t.col.columnName]?[t._v(" "+t._s(t.colData[t.col.columnName+"_"+t.selectionTypeSuffix]||t.colData[t.col.columnName])+" ")]:[t._v(" "+t._s(t.colData[t.col.columnName])+" ")]]],2):t._e()}),[],!1,null,"16461144",null).exports),_r={name:"SelectionListDialog",components:{BaseIcon:m.a,TableColumnRender:yr},props:{visible:{type:Boolean,default:!1},widget:{default:function(){}}},model:{prop:"visible",event:"change"},inject:["currentFormId","preview"],mounted:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.disabled=!1,!t.widget.options){e.next=13;break}if(t.widget.options.relatedFormInfo.targetColumn&&t.widget.options.relatedFormInfo.targetColumn.length?t.targetColumn=t.widget.options.relatedFormInfo.targetColumn:(t.$message.error("未选择关联字段"),t.disabled=!0),t.widget.options.relatedFormInfo.formId&&t.widget.options.relatedFormInfo.formId.length){e.next=8;break}t.$message.error("未选择关联表单"),t.disabled=!0,e.next=13;break;case 8:return t.formId=t.widget.options.relatedFormInfo.formId,e.next=11,t.getColumnList();case 11:return e.next=13,t.getFormDataListByPage();case 13:case"end":return e.stop()}}),e)})))()},data:function(){return{pagingConfig:ar,loading:!1,tableData:{columns:[],data:[],total:0},filterData:{current:ar.current,size:ar.size,data:[]},searchValue:"",formId:"",currentRow:{},targetColumn:"",disabled:!1}},methods:{getDisplayColumns:function(t){return t.filter((function(t){return["upload","imageUpload","editor","qrCode"].indexOf(t.widgetType)<0}))},handleReset:function(){this.filterData={current:ar.current,size:ar.size,data:[]},this.searchValue="",this.getFormDataListByPage()},handleSearch:function(){this.$set(this.filterData,"current",ar.current),this.searchValue.length?this.filterData.data[0]={columnName:this.targetColumn,operateType:"CONTAIN",value:this.searchValue,valueType:"FIXED",widgetType:"input"}:this.filterData.data=[],this.getFormDataListByPage()},handleRowDoubleClick:function(t){this.currentRow=t,this.handleConfirm()},handleCurrentChange:function(t){this.currentRow=t},getColumnList:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,i;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,Object(c.e)({formId:t.formId});case 4:if((n=e.sent).data&&n.data.code&&"0000"===n.data.code){e.next=7;break}throw new Error(n&&n.data&&n.data.message?n.data.message:"获取表单数据列表失败");case 7:n.data.data&&n.data.data.length&&(i=t.widget.options.relatedFormInfo.showColumns.map((function(t){if(t.showFlag)return t.columnName})),t.$set(t.tableData,"columns",n.data.data.map((function(t){return Object(r.a)(Object(r.a)({},t),{},{showFlag:!i.length||i.indexOf(t.columnName)>-1})})))),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),t.$message.error(e.t0);case 13:return e.prev=13,t.loading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,10,13,16]])})))()},getFormDataListByPage:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,i;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.loading=!0,e.prev=1,n=Object(r.a)({formId:t.formId},t.filterData),t.preview){e.next=8;break}if(t.currentFormId&&t.currentFormId.length){e.next=6;break}throw new Error("未获取当前表单ID, 无法加载关联选项");case 6:t.$set(n,"fromFormId",t.currentFormId),t.$set(n,"fromFormRelatedColumn",t.widget.model);case 8:return e.next=10,Object(c.h)(n);case 10:if((i=e.sent).data&&i.data.code&&"0000"===i.data.code){e.next=13;break}throw new Error(i&&i.data&&i.data.message?i.data.message:"获取表单数据列表失败");case 13:t.$set(t.tableData,"data",i.data.data.records),t.$set(t.tableData,"total",i.data.data.total),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(1),t.$message.error(e.t0);case 20:return e.prev=20,t.loading=!1,e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[1,17,20,23]])})))()},handleConfirm:function(){Object.keys(this.currentRow).length>0&&this.$emit("confirm",this.currentRow),this.$emit("change",!1)}}},wr=(n("6d4d"),n("0aba"),{name:"RelatedForm",components:{SelectionListDialog:Object(v.a)(_r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{staticClass:"iss-form-renderer-dialog-wrapper",attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,title:"选择关联数据 "+t.widget.options.relatedFormInfo.formName,visible:t.visible,"append-to-body":"","custom-class":"iss-form-renderer-dialog-control selection-dialog-container",width:"1100px"},on:{close:function(e){return t.$emit("change",!1)}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"main"},[n("div",{staticClass:"filter-bar"},[n("el-input",{attrs:{disabled:t.disabled,placeholder:"按关联字段搜索"},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[n("base-icon",{attrs:{slot:"prefix","icon-class":"search-line"},slot:"prefix"})],1),n("el-button",{attrs:{type:"primary"},on:{click:t.handleSearch}},[n("base-icon",{attrs:{"icon-class":"search-line"}}),t._v(" 搜索 ")],1),n("el-button",{on:{click:t.handleReset}},[n("base-icon",{attrs:{"icon-class":"search-line"}}),t._v(" 重置 ")],1)],1),n("div",{staticClass:"iss-form-renderer-table-area"},[t.tableData.columns.length?[n("el-table",{staticClass:"iss-form-renderer-table outside-border",attrs:{data:t.tableData.data,"highlight-current-row":"",stripe:""},on:{"current-change":t.handleCurrentChange}},[n("el-table-column",{attrs:{label:"序号",type:"index",width:"50"}}),t._l(t.getDisplayColumns(t.tableData.columns),(function(e){return[e.showFlag?n("el-table-column",{key:e.ID,attrs:{align:e.columnAlign,fixed:!!e.columnFixedEnabled&&(e.columnFixed||!0),label:e.columnLabel,"min-width":e.columnCustomWidthEnabled&&e.columnCustomWidth?e.columnCustomWidth+"%":25*(e.columnLabel.length<5?5:e.columnLabel.length)+"%",prop:e.columnName,"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(r){return[n("div",{attrs:{type:"text"},on:{dblclick:function(e){return t.handleRowDoubleClick(r.row)}}},[n("table-column-render",{attrs:{col:e,"col-data":r.row,"column-status-list":e.columnStatusList}})],1)]}}],null,!0)}):t._e()]})),t.tableData.data.length?t._e():n("el-empty",{attrs:{slot:"empty",content:"暂无数据"},slot:"empty"},[n("div",{staticClass:"empty-image",attrs:{slot:"image"},slot:"image"})])],2),t.tableData.data.length?n("el-pagination",{staticClass:"iss-form-renderer-pagination",attrs:{"current-page":t.filterData.current,layout:t.pagingConfig.pageLayout,"page-size":t.filterData.size,"page-sizes":t.pagingConfig.pageSizes,total:t.tableData.total,background:""},on:{"update:currentPage":function(e){return t.$set(t.filterData,"current",e)},"update:current-page":function(e){return t.$set(t.filterData,"current",e)},"update:pageSize":function(e){return t.$set(t.filterData,"size",e)},"update:page-size":function(e){return t.$set(t.filterData,"size",e)},"size-change":t.getFormDataListByPage,"current-change":t.getFormDataListByPage}}):t._e()]:[n("el-empty",{attrs:{content:"未设置展示列"}},[n("div",{staticClass:"empty-image",attrs:{slot:"image"},slot:"image"})])]],2)]),n("template",{slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$emit("change",!1)}}},[t._v("取消")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.handleConfirm}},[t._v("确定")])],1)],2)}),[],!1,null,"79cdf4cc",null).exports,BaseIcon:m.a},props:{selected:{default:function(){return""}},placeholder:{default:function(){return""}},printRead:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},widget:{default:function(){}},models:{default:function(){return[]}}},model:{prop:"selected",event:"change"},inject:["currentFormId","preview","formValue"],created:function(){this.$emit("change",this.selected)},mounted:function(){var t=this;this.widget&&(this.displayValue=this.formValue[this.widget.model+"_"+An.a],this.disabledValue=this.disabled,this.disabled||(this.disabledValue=!this.widget.options.relatedFormInfo.targetColumn.length),this.selected&&this.selected.length&&this.widget.options.relatedFormInfo.formId.length&&(this.handleVisibleChange(!0),this.options&&!this.options.filter((function(e){return e.value===t.selected})).length&&this.options.push({label:this.formValue[this.widget.model+"_"+An.a]||"",value:this.selected})),this.selected&&this.selected.length&&this.handleChange(this.selected))},data:function(){return{selectionTypeSuffix:An.a,displayValue:"",loading:!1,visible:!1,options:[],formId:"",formDataList:[],filterParams:{current:1,size:10,data:[]},printValue:"",disabledValue:!1,columnList:[]}},methods:{getColumnList:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,Object(c.e)({formId:t.formId});case 4:"0000"!==(n=e.sent).data.code?t.$message.error(n.data.message||"获取表单数据列表失败"):t.columnList=n.data.data,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),t.$message.error(e.t0);case 12:return e.prev=12,t.loading=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,8,12,15]])})))()},handleSelectFilter:function(t){t&&t.length?this.filterParams.data[0]={columnName:this.widget.options.relatedFormInfo.targetColumn,operateType:"CONTAIN",value:t,valueType:"FIXED",widgetType:"input"}:this.$set(this.filterParams,"data",[]),this.getDisplayOption()},handleVisibleChange:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.widget||!t){n.next=11;break}if(e.widget.options.relatedFormInfo.formId.length){n.next=5;break}e.$message.error("无法解析到表单ID"),n.next=11;break;case 5:return e.formId=e.widget.options.relatedFormInfo.formId,e.$set(e.filterParams,"data",[]),n.next=9,e.getColumnList();case 9:return n.next=11,e.getDisplayOption();case 11:case"end":return n.stop()}}),n)})))()},getDisplayOption:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,i;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.loading=!0,e.prev=1,n=Object(r.a)({formId:t.formId},t.filterParams),t.preview){e.next=8;break}if(t.currentFormId&&t.currentFormId.length){e.next=6;break}throw new Error("未获取当前表单ID, 无法加载关联选项");case 6:t.$set(n,"fromFormId",t.currentFormId),t.$set(n,"fromFormRelatedColumn",t.widget.model);case 8:return e.next=10,Object(c.h)(n);case 10:if((i=e.sent).data&&i.data.code&&"0000"===i.data.code){e.next=13;break}throw new Error(i&&i.data&&i.data.message?i.data.message:"获取表单数据列表失败");case 13:i.data.data.records.length&&(t.formDataList=i.data.data.records,t.options=t.formDataList.map((function(e){return{label:t.getOptionLabel(e,t.widget.options.relatedFormInfo.targetColumn),value:e.ID}})).filter((function(t){return t.label}))),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(1),t.$message.error(e.t0);case 20:return e.prev=20,t.loading=!1,e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[1,16,20,23]])})))()},getOptionLabel:function(t,e){var n=this.columnList.find((function(t){return t.columnName===e})),r=t[e]?t[e].toString():null;return"date"===n.widgetType&&(r=Fn(t[e],n.rawOptions)),"address"===n.widgetType&&(r="".concat(t[e].province||"").concat(t[e].city||"").concat(t[e].district||"").concat(t[e].details||"")),"organization"===n.widgetType&&(r="",t[e]&&Array.isArray(t[e])&&t[e].length&&t[e].forEach((function(n,o){r+="".concat(n.name).concat(o!==t[e].length-1?" > ":"")}))),"member"===n.widgetType&&(r="",t[e]&&Array.isArray(t[e])&&t[e].length&&t[e].forEach((function(n,o){r+="".concat(n.name).concat(o!==t[e].length-1?",":"")}))),r},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(t){this.displayValue=t[this.widget.options.relatedFormInfo.targetColumn];var e={label:t[this.widget.options.relatedFormInfo.targetColumn],value:t.ID};this.options.filter((function(e){return e.value===t.ID})).length||this.options.push(e),this.$emit("change",t.ID);var n={value:t,fillingRules:this.widget.options.relatedFormInfo.dataFillRules,selectedItem:Object(r.a)(Object(r.a)({},e),{},{widgetModel:this.widget.model})};this.$emit("fillingColumns",n)}},handleChange:function(t){this.$emit("change",t);var e=this.options.filter((function(e){return e.value===t})),n=e&&e.length?e[0]:{label:"",value:""};this.$set(n,"widgetModel",this.widget.model),this.$emit("fillingColumns",{value:this.formDataList.filter((function(e){return e.ID===t}))[0],fillingRules:this.widget.options.relatedFormInfo.dataFillRules,selectedItem:n})}}}),xr=(n("99c2"),Object(v.a)(wr,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"related-form-container"},[t.printRead&&t.selected&&t.widget?[t._v(" "+t._s(t.displayValue)+" ")]:t.printRead?t._e():[n("el-select",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"main",attrs:{clearable:t.clearable,disabled:t.disabledValue,"filter-method":t.handleSelectFilter,placeholder:t.placeholder,value:t.selected,filterable:""},on:{change:t.handleChange,"visible-change":t.handleVisibleChange}},t._l(t.options,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value},nativeOn:{click:function(n){n.stopPropagation(),t.displayValue=e.label}}})})),1),n("el-button",{staticClass:"suffix",attrs:{disabled:t.disabledValue},on:{click:function(e){t.visible=!0}}},[n("base-icon",{attrs:{"icon-class":"links-line"}})],1)],t.visible?n("SelectionListDialog",{attrs:{widget:t.widget},on:{confirm:t.handleConfirm},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}}):t._e()],2)}),[],!1,null,"b1da594e",null).exports),Or=n("bfce"),Sr={name:"GenerateElementItem",components:{BaseIcon:m.a,RelatedForm:xr,AddressComponent:Tn,GenerateTable:Jn,OrganizationSelector:f.a,RichEditor:ir,UploadComponent:b,UploadImageComponent:_,UuidComponent:O,CustomSelectComponent:Dn,QrCodeComponent:Or.a},props:["widget","value","models","remote","isTable","disabled","edit","remoteOptionSource","rules","platform","preview","dataSourceValue","eventFunction","rowIndex","tableName","printRead"],data:function(){return{qrCodeValue:"",selectionTypeSuffix:An.a,DATASOURCE_TYPE:u,dataModel:this.value,dataModels:this.models,key:(new Date).getTime(),modelName:this.widget.model,optionLoading:!1,optionLoadFailed:!1,options:[],visible:!0,printValue:"",columnList:[]}},inject:["variable","formValue","currentFormId"],computed:{isRemote:function(){return this.widget.options.remote!==u.STATIC_DATA},digitalValue:function(){var t="",e=this.widget.options.showSuffix?this.widget.options.suffix:"";return isNaN(Number(this.dataModel))||(t=this.widget.options.closePrecision?Number(this.dataModel)+e:Number(this.dataModel).toFixed(this.widget.options.precision)+e),t}},created:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.widget.options.remote===u.FUNCTIONS&&t.remote[t.widget.options.remoteFunc]&&t.remote[t.widget.options.remoteFunc]((function(e){t.loadOptions(e)})),t.widget.options.remote===u.OPTION&&t.remoteOptionSource[t.widget.options.remoteOptionSource]&&t.loadOptions(t.remoteOptionSource[t.widget.options.remoteOptionSource]),t.widget.options.remote===u.API_DATA&&t.dataSourceValue&&(n=t.dataSourceValue.find((function(e){return e.key===t.widget.options.remoteDataSource})))&&n.value&&t.loadOptions(n.value),t.widget.options.remote!==u.DICT_DATA||!t.widget.options.remoteOption||!t.widget.options.remoteOption.remoteDict){e.next=11;break}if(!t.edit){e.next=11;break}return e.next=7,t.handleLoadDictOptions();case 7:if("cascader"!==t.widget.type){e.next=11;break}return t.options=t.widget.options.remoteOptions,e.next=11,t.loadCascaderOptions();case 11:"checkbox"!==t.widget.type||t.dataModel||(t.dataModel=[]);case 12:case"end":return e.stop()}}),e)})))()},mounted:function(){this.widget.options.useDynamicValue&&!this.dataModel&&(this.dataModel=(new Date).getTime())},methods:{onTableDataModelChange:function(t){this.dataModel=h.a.cloneDeep(t)},getParentCode:function(t){return this.widget.options.isInitNode&&this.widget.options.initNode&&this.widget.options.initNode.length?this.widget.options.initNode[0][t]:"code"===t?this.variable.USER_REGION_CODE:this.variable.USER_REGION},getCascaderPrintValue:function(){if(void 0!==this.formValue["".concat(this.widget.model,"_").concat(An.a)])this.printValue=(this.formValue["".concat(this.widget.model,"_").concat(An.a)]||[]).join(" / ");else if(this.$refs["icd-form-".concat(this.widget.model)]){var t=this.$refs["icd-form-".concat(this.widget.model)].getCheckedNodes(),e=t&&t.length?t[0].pathLabels:[];this.printValue=this.isRemote?e.join(" / "):this.dataModel.join(" / ")}},loadCascaderOptions:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,r;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.dataModel&&t.dataModel.length&&t.options&&t.options.length)){e.next=6;break}return n=t.options.findIndex((function(e){return e.value===t.dataModel[0]})),e.next=4,t.getChildren(t.options[n],1,t.dataModel);case 4:(r=e.sent)&&r.length?t.$set(t.options[n],"children",r):t.$set(t.options[n],"leaf",!0);case 6:case"end":return e.stop()}}),e)})))()},getChildren:function(t,e,n){var r=this;return Object(i.a)(Object(o.a)().mark((function i(){var a,u;return Object(o.a)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,r.loadDictOption(t);case 2:if(!((a=o.sent)&&a.length&&e<n.length)){o.next=11;break}return u=a.findIndex((function(t){return t.value===n[e]})),o.t0=r,o.t1=a[u],o.next=9,r.getChildren(a[u],e+1,n);case 9:o.t2=o.sent,o.t0.$set.call(o.t0,o.t1,"children",o.t2);case 11:return o.abrupt("return",a);case 12:case"end":return o.stop()}}),i)})))()},loadDictOption:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var i;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.loading=!0,n.prev=1,n.next=4,s(e,{dictId:t.dictId,parentId:t.id});case 4:return(i=n.sent).data&&i.data.length&&(i.data=i.data.map((function(t){return Object(r.a)(Object(r.a)({},t),{},{leaf:"0"===t.hasChild})}))),n.abrupt("return",i.data);case 9:return n.prev=9,n.t0=n.catch(1),e.$message.error(n.t0),n.abrupt("return",null);case 13:return n.prev=13,e.loading=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[1,9,13,16]])})))()},fillingColumns:function(t){this.$emit("fillingColumns",t)},loadOptions:function(t){var e=this;this.widget.options.remoteOptions=t.map((function(t){return e.widget.options.props.children&&e.widget.options.props.children.length&&Object.keys(t).includes(e.widget.options.props.children)?{value:t[e.widget.options.props.value],label:t[e.widget.options.props.label],children:e.processRemoteProps(t[e.widget.options.props.children],e.widget.options.props)}:{value:t[e.widget.options.props.value],label:t[e.widget.options.props.label]}}))},cascaderLazyLoad:function(t,e){var n=this;return Object(i.a)(Object(o.a)().mark((function r(){var i;return Object(o.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.root){r.next=3;break}return e(),r.abrupt("return");case 3:return r.next=5,s(n,{dictId:t.data.dictId,parentId:t.data.id});case 5:(i=r.sent).data?e(i.data):n.optionLoadFailed=!0;case 7:case"end":return r.stop()}}),r)})))()},handleLoadDictOptions:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,r;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.widget.options.remoteOptions&&t.widget.options.remoteOptions.length||t.optionLoading)){e.next=2;break}return e.abrupt("return");case 2:if(t.optionLoading=!0,t.optionLoadFailed=!1,n={},"dict"!==(r=t.widget.options.remoteOption.remoteDict).dictDataType){e.next=12;break}return e.next=9,s(t,{dictId:r.dictId,parentId:"#"});case 9:n=e.sent,e.next=16;break;case 12:if("dictItem"!==r.dictDataType){e.next=16;break}return e.next=15,s(t,{dictId:r.dictId,parentId:r.dictOptionId});case 15:n=e.sent;case 16:n.data?t.widget.options.remoteOptions=n.data:t.optionLoadFailed=!0,t.optionLoading=!1;case 18:case"end":return e.stop()}}),e)})))()},processRemoteProps:function(t,e){var n=this;return t&&t.length?t.map((function(t){return n.processRemoteProps(t[e.children],e).length?{value:t[e.value],label:t[e.label],children:n.processRemoteProps(t[e.children],e)}:{value:t[e.value],label:t[e.label]}})):[]},onCascaderChange:function(t){var e=this;t&&this.$nextTick((function(){e.$parent&&e.$parent.clearValidate&&e.$parent.clearValidate(),e.$parent&&e.$parent.$parent&&e.$parent.$parent.$refs.generateFormItem&&e.$parent.$parent.$refs.generateFormItem.clearValidate()}))},getCascaderText:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.length>=1&&e){var r=e.find((function(e){return e.value===t[0]}));return r&&n.push(r.label),t.splice(0,1),this.getCascaderText(t,r.children,n)}if(0===t.length)return n},handleOnFocus:function(){if(this.widget.events&&this.widget.events.onFocus){var t=this.widget.events.onFocus;this.isTable&&this.tableName?this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex}):this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model})}},handleOnBlur:function(){if(this.widget.events&&this.widget.events.onBlur){var t=this.widget.events.onBlur;this.isTable&&this.tableName?this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex}):this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model})}},onUploadSuccess:function(){if(this.widget.events&&this.widget.events.onUploadSuccess){var t=this.widget.events.onUploadSuccess;this.eventFunction[t]&&this.eventFunction[t]()}},onUploadFileRemoved:function(t){if(this.widget.events&&this.widget.events.onRemoveUploadFile){var e=this.widget.events.onRemoveUploadFile;this.eventFunction[e]&&this.eventFunction[e]({removedFile:t})}},queryColumns:function(t,e){var n=this;return Object(i.a)(Object(o.a)().mark((function i(){var a,u,s;return Object(o.a)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=[],u=n.widget.options.relatedFormInfo.targetColumn,o.next=4,Object(c.h)({size:50,current:1,formId:n.widget.options.relatedFormInfo.formId,data:[{columnName:u,operateType:"CONTAIN",value:t,valueType:"FIXED",widgetType:"input"}]});case 4:if((s=o.sent).data&&s.data.code&&"0000"===s.data.code){o.next=7;break}throw new Error(s&&s.data&&s.data.message?s.data.message:"获取表单数据列表失败");case 7:if(!s.data.data.records.length){o.next=12;break}if(!n.columnList||0!==n.columnList.length){o.next=11;break}return o.next=11,n.getColumnList();case 11:a=s.data.data.records.map((function(t){return Object(r.a)({value:null!==t[u]?n.getOptionLabel(t,u).substring(0,100):""},t)}));case 12:e(a);case 13:case"end":return o.stop()}}),i)})))()},selectData:function(t){if(0!==this.widget.options.relatedFormInfo.dataFillRules.length){var e={value:{},fillingRules:[],selectedItem:{label:t[this.widget.options.relatedFormInfo.targetColumn],value:t.ID,widgetModel:this.widget.model,type:"input"}};e.fillingRules=this.widget.options.relatedFormInfo.dataFillRules;var n=h.a.cloneDeep(t);this.$delete(n,"value"),e.value=n,this.$emit("fillingColumns",e)}},getOptionLabel:function(t,e){var n=this.columnList.find((function(t){return t.columnName===e})),r=t[e].toString();return"date"===n.widgetType&&(r=Fn(t[e],n.rawOptions)),"address"===n.widgetType&&(r="".concat(t[e].province||"").concat(t[e].city||"").concat(t[e].district||"").concat(t[e].details||"")),"organization"===n.widgetType&&(r="",t[e]&&Array.isArray(t[e])&&t[e].length&&t[e].forEach((function(n,o){r+="".concat(n.name).concat(o!==t[e].length-1?" > ":"")}))),"member"===n.widgetType&&(r="",t[e]&&Array.isArray(t[e])&&t[e].length&&t[e].forEach((function(n,o){r+="".concat(n.name).concat(o!==t[e].length-1?",":"")}))),r},getColumnList:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,Object(c.e)({formId:t.widget.options.relatedFormInfo.formId});case 4:"0000"!==(n=e.sent).data.code?t.$message.error(n.data.message||"获取表单数据列表失败"):t.columnList=n.data.data,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),t.$message.error(e.t0);case 12:return e.prev=12,t.loading=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,8,12,15]])})))()}},watch:{value:function(t){this.dataModel=t},dataModel:function(t){this.$emit("input",t),this.isTable&&this.tableName&&this.$emit("on-table-change",{value:t,field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex,haveEvent:this.widget.events&&this.widget.events.onChange})},remoteOptionSource:{deep:!0,handler:function(){Object.keys(this.remoteOptionSource).indexOf(this.widget.options.remoteOptionSource)>=0&&this.widget.options.remote!==u.STATIC_DATA&&"option"===this.widget.options.remoteType&&this.loadOptions(this.remoteOptionSource[this.widget.options.remoteOptionSource])}},dataSourceValue:{deep:!0,handler:function(){var t=this;if(this.dataSourceValue){var e=this.dataSourceValue.find((function(e){return e.key===t.widget.options.remoteDataSource}));e&&e.value&&this.loadOptions(e.value)}}},printRead:{deep:!0,immediate:!0,handler:function(){var t=Object(i.a)(Object(o.a)().mark((function t(e){return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("cascader"!==this.widget.type){t.next=12;break}if(!e){t.next=5;break}this.getCascaderPrintValue(),t.next=12;break;case 5:if(this.widget.options.remote!==u.DICT_DATA||!this.widget.options.remoteOption||!this.widget.options.remoteOption.remoteDict){t.next=12;break}if(!this.edit){t.next=12;break}return t.next=9,this.handleLoadDictOptions();case 9:return this.options=this.widget.options.remoteOptions,t.next=12,this.loadCascaderOptions();case 12:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}}},Cr=Object(v.a)(Sr,(function(){var t,e=this,n=e.$createElement,r=e._self._c||n;return r("el-form-item",{staticClass:"renderer-form-item",class:(t={},t[e.widget.options&&e.widget.options.customClass]=e.widget.options&&e.widget.options.customClass,t["no-label-form-item"]=e.widget.options.isLabelWidth&&0===e.widget.options.labelWidth,t["print-read-mode"]=e.printRead,t),attrs:{label:e.widget.options.hideLabel?"":e.widget.name,"label-width":e.widget.options.hideLabel?"0px":e.widget.options.isLabelWidth?e.widget.options.labelWidth+"px":"",prop:e.widget.model,required:e.widget.options.required,"status-icon":!0}},["input"===e.widget.type?[e.printRead?[r("div",{staticClass:"custom-input-section"},[e._v(" "+e._s(e.widget.options.showPassword?"*********":e.dataModel)+" ")])]:[e.widget.options.relatedFormEnabled?[e.widget.options.dataTypeCheck&&"number"===e.widget.options.dataType?r("el-autocomplete",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,"fetch-suggestions":e.queryColumns,debounce:0,type:"number",maxlength:100},on:{blur:function(t){return t.stopPropagation(),e.handleOnBlur.apply(null,arguments)},focus:function(t){return t.stopPropagation(),e.handleOnFocus.apply(null,arguments)},select:e.selectData},model:{value:e.dataModel,callback:function(t){e.dataModel=e._n(t)},expression:"dataModel"}}):r("el-autocomplete",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,"fetch-suggestions":e.queryColumns,debounce:0,type:e.widget.options.dataTypeCheck?e.widget.options.dataType:"text","show-word-limit":"",maxlength:100},on:{blur:function(t){return t.stopPropagation(),e.handleOnBlur.apply(null,arguments)},focus:function(t){return t.stopPropagation(),e.handleOnFocus.apply(null,arguments)},select:e.selectData},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:[e.widget.options.dataTypeCheck&&"number"===e.widget.options.dataType?r("el-input",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,type:"number"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=e._n(t)},expression:"dataModel"}}):r("el-input",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,type:e.widget.options.dataTypeCheck?e.widget.options.dataType:"text",maxlength:"100","show-word-limit":""},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]]:e._e(),"textarea"===e.widget.type?[e.printRead?[r("div",{staticClass:"custom-textarea-section"},[e._v(" "+e._s(e.dataModel)+" ")])]:[r("el-input",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{autosize:!!e.widget.options.autosize&&{minRows:e.widget.options.rows},disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,rows:e.widget.options.rows,type:"textarea"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"number"===e.widget.type?[e.printRead?[e._v(" "+e._s(e.digitalValue)+" ")]:[r("el-input-number",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"auto"},attrs:{controls:!e.printRead&&e.widget.options.controls,"controls-position":e.widget.options.controlsPosition,disabled:e.printRead||!e.edit||e.widget.options.disabled,max:e.widget.options.max,min:e.widget.options.min,precision:e.widget.options.closePrecision?void 0:e.widget.options.precision,step:e.widget.options.step},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.widget.options.showSuffix?r("span",{staticClass:"iss-number-unit"},[e._v(" "+e._s(e.widget.options.suffix))]):e._e()]]:e._e(),"radio"===e.widget.type?[e.printRead?[e.isRemote?[e._v(" "+e._s(e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel}))&&e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel})).label||"")+" ")]:[e._v(" "+e._s(e.dataModel||"")+" ")]]:[e.optionLoading?[r("i",{staticClass:"el-icon-loading"}),e._v(" 正在加载选项... ")]:e._e(),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e(),r("el-radio-group",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},["button"===e.widget.options.optionStyle?e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-radio-button",{key:t.value+n,style:{display:"inline-block"},attrs:{label:t.value}},[e._v(" "+e._s(t.label)+" ")])})):e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-radio",{key:t.value+n,style:{display:"mobile"===e.platform&&"border"===e.widget.options.optionStyle?"block":e.widget.options.inline?"inline-block":"block"},attrs:{border:"border"===e.widget.options.optionStyle,label:t.value}},[e._v(" "+e._s(t.label)+" ")])}))],2)]]:e._e(),"checkbox"===e.widget.type?[e.printRead?[e.isRemote?[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return e.widget.options.remoteOptions.find((function(e){return e.value===t}))&&e.widget.options.remoteOptions.find((function(e){return e.value===t})).label})).join("、")||"")+" ")]:[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return e.widget.options.options.find((function(e){return e.value===t}))&&e.widget.options.options.find((function(e){return e.value===t})).label})).join("、")||"")+" ")]]:[e.optionLoading?[r("i",{staticClass:"el-icon-loading"}),e._v(" 正在加载选项... ")]:e._e(),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e(),r("el-checkbox-group",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},["button"===e.widget.options.optionStyle?e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-checkbox-button",{key:t.value+n,style:{display:"inline-block"},attrs:{label:t.value}},[e._v(" "+e._s(t.label)+" ")])})):e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-checkbox",{key:t.value+n,style:{display:"mobile"===e.platform&&"border"===e.widget.options.optionStyle?"block":e.widget.options.inline?"inline-block":"block"},attrs:{border:"border"===e.widget.options.optionStyle,label:t.value}},[e._v(" "+e._s(t.label)+" ")])}))],2)]]:e._e(),"time"===e.widget.type?[e.printRead?[e._v(" "+e._s(e.dataModel)+" ")]:[r("el-time-picker",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{arrowControl:e.widget.options.arrowControl,clearable:e.widget.options.clearable,disabled:!e.edit||e.widget.options.disabled,editable:e.widget.options.editable,"end-placeholder":e.widget.options.endPlaceholder,"is-range":e.widget.options.isRange,placeholder:e.widget.options.placeholder,readonly:e.widget.options.readonly,"start-placeholder":e.widget.options.startPlaceholder,"value-format":e.widget.options.format},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"date"===e.widget.type?[r("el-date-picker",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{clearable:e.widget.options.clearable,disabled:e.printRead||!e.edit||e.widget.options.disabled,editable:e.widget.options.editable,"end-placeholder":e.widget.options.endPlaceholder,format:"custom"===e.widget.options.format?e.widget.options.customFormat:e.widget.options.format,placeholder:e.widget.options.placeholder,readonly:e.widget.options.readonly,"start-placeholder":e.widget.options.startPlaceholder,type:e.widget.options.type,"value-format":"timestamp"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"rate"===e.widget.type?[r("el-rate",{ref:"icd-form-"+e.widget.model,style:e.widget.options.clearable?"float:left":"",attrs:{"allow-half":e.widget.options.allowHalf,disabled:e.printRead||!e.edit||e.widget.options.disabled,"icon-classes":["ri-star-fill","ri-star-fill","ri-star-fill"],max:e.widget.options.max,"score-template":"{value}"+e.widget.options.suffix,"show-score":e.widget.options.showScore,"disabled-void-icon-class":"ri-star-fill","void-icon-class":"ri-star-line"},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.widget.options.clearable?r("el-link",{staticStyle:{float:"left","margin-left":"1rem"},attrs:{underline:!1,type:"primary"},on:{click:function(t){e.dataModel=0}}},[e._v("清空")]):e._e()]:e._e(),"select"===e.widget.type?[e.printRead?[e.isRemote?[e._v(" "+e._s(("object"==typeof e.dataModel&&e.dataModel?e.dataModel.map((function(t){return e.widget.options.remoteOptions.find((function(e){return e.value===t}))&&e.widget.options.remoteOptions.find((function(e){return e.value===t})).label})).join("、"):e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel}))&&e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel})).label)||"")+" ")]:[e._v(" "+e._s(("object"==typeof e.dataModel&&e.dataModel?e.dataModel.map((function(t){return e.widget.options.options.find((function(e){return e.value===t}))&&e.widget.options.options.find((function(e){return e.value===t})).label})).join("、"):e.widget.options.options.find((function(t){return t.value===e.dataModel}))&&e.widget.options.options.find((function(t){return t.value===e.dataModel})).label)||"")+" ")]]:[r("custom-select-component",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{clearable:e.widget.options.clearable,"custom-multiple":e.widget.options.multiple,disabled:!e.edit||e.widget.options.disabled,filterable:e.widget.options.filterable,loading:e.optionLoading,placeholder:e.widget.options.placeholder,"loading-text":"正在加载选项",multiple:""},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,e){return r("el-option",{key:t.id||t.value+e,attrs:{label:t.label,value:t.value}})})),1),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e()]]:e._e(),"switches"===e.widget.type?[e.printRead?[e._v(" "+e._s(!0===e.dataModel?e.widget.options.activeText||"是":!1===e.dataModel?e.widget.options.inactiveText||"否":"")+" ")]:[r("el-switch",{ref:"icd-form-"+e.widget.model,attrs:{"active-text":e.widget.options.activeText,disabled:!e.edit||e.widget.options.disabled,"inactive-text":e.widget.options.inactiveText},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"slider"===e.widget.type?[e.printRead?[e._v(" "+e._s(e.dataModel+e.widget.options.suffix)+" ")]:[r("el-slider",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,"format-tooltip":function(t){return t+e.widget.options.suffix},max:e.widget.options.max,min:e.widget.options.min,range:e.widget.options.range,"show-input":e.widget.options.showInput,step:e.widget.options.step},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"editor"===e.widget.type?[r("rich-editor",{ref:"icd-form-"+e.widget.model,attrs:{"custom-style":{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%",cursor:!e.edit||e.widget.options.disabled?"no-drop":"",backgroundColor:!e.edit||e.widget.options.disabled?"#F5F7FA":""},disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,readonly:!0},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),["organization","member"].indexOf(e.widget.type)>-1?[e.printRead?[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return t.name})).join("、")||"")+" ")]:[r("organization-selector",{ref:"icd-form-"+e.widget.model,attrs:{"dialog-title":"选择"+("ORGAN"===e.widget.options.optionScopeType?"组织机构":"人员"),"custom-style":{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},disabled:e.printRead||!e.edit||e.widget.options.disabled,multiple:e.widget.options.multiple,"parent-code":e.getParentCode("code"),"parent-name":e.getParentCode("name"),"option-scope-type":e.widget.options.optionScopeType,placeholder:e.widget.options.placeholder,platform:e.platform},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"cascader"===e.widget.type?[e.printRead?[e._v(e._s(e.printValue))]:[r("el-cascader",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{clearable:e.widget.options.clearable,disabled:e.printRead||!e.edit||e.widget.options.disabled,filterable:e.widget.options.filterable,loading:e.optionLoading,options:e.isRemote?e.options:e.widget.options.options,placeholder:e.widget.options.placeholder,props:{lazy:e.isRemote,lazyLoad:e.cascaderLazyLoad,checkStrictly:e.widget.options.checkStrictly},"collapse-tags":"","loading-text":"正在加载选项"},on:{blur:e.handleOnBlur,change:e.onCascaderChange,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e()]]:e._e(),"upload"===e.widget.type?[r("upload-component",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled,limit:e.widget.options.limit,multiple:e.widget.options.multiple,"print-read":e.printRead,size:e.widget.options.size,tip:e.widget.options.tip,accept:e.widget.options.accept,searchable:e.widget.options.searchable,"is-batch-download":e.widget.options.isBatchDownload,"widget-name":e.widget.name},on:{onSuccess:e.onUploadSuccess,onRemove:e.onUploadFileRemoved},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"imageUpload"===e.widget.type?[r("upload-image-component",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled,limit:e.widget.options.limit,multiple:e.widget.options.multiple,"print-read":e.printRead,size:e.widget.options.size,tip:e.widget.options.tip},on:{onSuccess:e.onUploadSuccess,onRemove:e.onUploadFileRemoved},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"uuid"===e.widget.type?[r("uuid-component",{ref:"icd-form-"+e.widget.model,attrs:{"custom-style":{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},"print-read":e.printRead},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"sequence"===e.widget.type?[e.currentFormId&&e.currentFormId.length?[e.printRead?[e._v(e._s(e.dataModel))]:r("el-input",{attrs:{value:e.dataModel&&e.dataModel.length?e.dataModel.toString():"仅限编辑和详情页面展示",resize:"none",disabled:""}})]:[e._v("仅限编辑和详情页面展示")]]:e._e(),"address"===e.widget.type?[r("address-component",{ref:"icd-form-"+e.widget.model,attrs:{disabled:e.widget.options.disabled||!e.edit,"is-address-detail":e.widget.options.isAddressDetail,"print-read":e.printRead},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"relatedForm"===e.widget.type?[r("related-form",{attrs:{clearable:e.widget.options.clearable,disabled:e.printRead||!e.edit||e.widget.options.disabled,models:e.dataModels,placeholder:e.widget.options.placeholder,"print-read":e.printRead,widget:e.widget},on:{fillingColumns:e.fillingColumns},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"table"===e.widget.type?[r("generate-table",{ref:"icd-form-"+e.widget.model,attrs:{columns:e.widget.tableColumns,"data-source-value":e.dataSourceValue,"disabled-data":!e.edit||e.widget.options.disabled||e.printRead,"event-function":e.eventFunction,models:e.dataModels,name:e.widget.model,"page-size":e.widget.options.pageSize,paging:e.widget.options.paging,platform:e.platform,preview:e.preview,"print-read":e.printRead,remote:e.remote,"remote-option-source":e.remoteOptionSource,rules:e.rules,value:e.dataModel,widget:e.widget},on:{onValueChange:e.onTableDataModelChange}})]:e._e(),"qrCode"===e.widget.type?[r("qr-code-component",{attrs:{options:e.widget.options,"data-models":e.dataModels}})]:e._e()],2)}),[],!1,null,null,null).exports,Er={props:["widget","edit","isTable","printRead","eventFunction","platform"],components:{TextComponent:Vn},data:function(){return{key:Math.random().toString(36).slice(-8),widgetKey:Math.random().toString(36).slice(-8)}},methods:{handleOnClick:function(){if(this.widget.events&&this.widget.events.onClick){var t=this.widget.events.onClick;this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model})}}}},kr=Object(v.a)(Er,(function(){var t,e,n,r,o,i,a=this,u=a.$createElement,c=a._self._c||u;return c("div",{staticClass:"renderer-display-item"},["divider"===a.widget.type?[c("div",{class:(t={},t[a.widget.options&&a.widget.options.customClass]=a.widget.options&&a.widget.options.customClass,t),style:{paddingTop:a.widget.options.paddingTop+"px",paddingBottom:a.widget.options.paddingBottom+"px"}},[c("el-divider",{ref:"icd-form-"+a.widget.model,attrs:{"content-position":a.widget.options.contentPosition}},[a._v(" "+a._s(a.widget.options.text)+" ")])],1)]:a._e(),"text"===a.widget.type?[c("text-component",{ref:"icd-form-"+a.widget.model,class:(e={},e[a.widget.options&&a.widget.options.customClass]=a.widget.options&&a.widget.options.customClass,e),attrs:{align:a.widget.options.contentPosition,"font-color":a.widget.options.fontColor,"font-family":a.widget.options.fontFamily,"font-size":a.widget.options.fontSize,"font-style":a.widget.options.fontStyle,"font-weight":a.widget.options.fontWeight,"margin-bottom":a.widget.options.marginBottom,"margin-top":a.widget.options.marginTop}},[a._v(" "+a._s(a.widget.options.text)+" ")])]:a._e(),"button"===a.widget.type?[c("text-component",{attrs:{align:a.widget.options.contentPosition}},[a.widget.options.showInPrintRead||!a.printRead?c("el-button",{ref:"icd-form-"+a.widget.model,class:(n={},n[a.widget.options&&a.widget.options.customClass]=a.widget.options&&a.widget.options.customClass,n),style:a.widget.options.customWidth?{width:a.widget.options.width+"%"}:"",attrs:{circle:a.widget.options.buttonCircle,disabled:!a.edit||a.widget.options.disabled,plain:a.widget.options.buttonPlain,round:a.widget.options.buttonRound,size:a.widget.options.buttonSize,type:a.widget.options.buttonType},on:{click:a.handleOnClick}},[a._v(" "+a._s(a.widget.options.buttonName)+" ")]):a._e()],1)]:a._e(),"link"===a.widget.type?[c("text-component",{attrs:{align:a.widget.options.contentPosition}},[c("el-link",{ref:"icd-form-"+a.widget.model,class:(r={},r[a.widget.options&&a.widget.options.customClass]=a.widget.options&&a.widget.options.customClass,r),attrs:{disabled:a.widget.options.disabled,href:a.widget.options.href,type:a.widget.options.linkType,underline:a.widget.options.underline,target:"_blank"},on:{click:a.handleOnClick}},[a._v(" "+a._s(a.widget.options.text)+" ")])],1)]:a._e(),"image"===a.widget.type?[c("el-image",{ref:"icd-form-"+a.widget.model,class:(o={},o[a.widget.options&&a.widget.options.customClass]=a.widget.options&&a.widget.options.customClass,o),style:{width:a.widget.options.width+"%",height:a.widget.options.autoHeight?"auto":a.widget.options.height+"px"},attrs:{alt:a.widget.name,fit:a.widget.options.autoHeight?"fill":a.widget.options.fit,src:a.widget.options.src},nativeOn:{click:function(t){return a.handleOnClick.apply(null,arguments)}}},[c("div",{staticClass:"iss-image-load-failed",attrs:{slot:"error"},slot:"error"},[c("div",{staticClass:"iss-empty-image"}),a.widget.options.src?c("span",[a._v("图片加载失败,请配置正确的图片链接地址或上传图片")]):c("span",[a._v("请上传图片或配置图片链接地址")])])])]:a._e(),"iframe"===a.widget.type?[a.widget.options.href?c("iframe",{ref:"icd-form-"+a.widget.model,staticClass:"iss-iframe",class:(i={},i[a.widget.options&&a.widget.options.customClass]=a.widget.options&&a.widget.options.customClass,i),style:{width:a.widget.options.width+"%",height:a.widget.options.height+"px"},attrs:{src:a.widget.options.href}}):c("div",{staticClass:"iss-image-load-failed",style:{width:a.widget.options.width+"%",height:a.widget.options.height+"px"}},[c("div",{staticClass:"iss-empty-image"}),c("span",[a._v("请配置网页URL地址")])])]:a._e()],2)}),[],!1,null,null,null).exports,Tr=n("0f01"),Mr={qrCode:{name:"条码",icon:"qr-code-line",qrCodeRelatedFieldsFilters:["input","textarea","number","radio","checkbox","select","date","rate","switches","slider","address","organization","member","cascader","editor","uuid","sequence"]},personName:{name:"姓名",icon:"user-line",showDefaultValue:!0},personGender:{name:"性别",icon:"men-line",showDefaultValue:!0},idCard:{name:"身份证号码",icon:"folder-user-line",showDefaultValue:!0},unifiedSocialCreditCode:{name:"统一社会信用代码",icon:"barcode-box-line",showDefaultValue:!0},cellPhoneNumber:{name:"手机号码",icon:"smartphone-line",showDefaultValue:!0},telephoneNumber:{name:"固定电话",icon:"phone-line",showDefaultValue:!0},email:{name:"电子邮箱",icon:"mail-line",showDefaultValue:!0},zipCode:{name:"邮政编码",icon:"mail-settings-line",showDefaultValue:!0},administrativeDivision:{name:"行政区划",icon:"government-line"},remark:{name:"备注",icon:"sticky-note-line",showDefaultValue:!0},funds:{name:"资金",icon:"money-cny-box-line",showDefaultValue:!0},carNumber:{name:"车牌号",icon:"car-line",showDefaultValue:!0},text:{name:"文字",icon:"character-recognition-line",notFormItem:!0},input:{name:"单行文本",icon:"layout-left-2-line",showDefaultValue:!0},textarea:{name:"多行文本",icon:"file-list-line",showDefaultValue:!0},number:{name:"数字",icon:"increase-decrease-line",showDefaultValue:!0},radio:{name:"单选框组",icon:"radio-button-line"},checkbox:{name:"多选框组",icon:"checkbox-line"},select:{name:"下拉选择框",icon:"arrow-down-line"},time:{name:"时间选择器",icon:"time-line",showDefaultValue:!0},date:{name:"日期选择器",icon:"calendar-line",showDefaultValue:!0},rate:{name:"评分",icon:"star-smile-line",showDefaultValue:!0},switches:{name:"开关",icon:"toggle-line",showDefaultValue:!0},slider:{name:"滑块",icon:"equalizer-line",showDefaultValue:!0},button:{name:"按钮",icon:"mouse-line",notFormItem:!0},link:{name:"文字链接",icon:"t-box-line",notFormItem:!0},editor:{name:"富文本",icon:"edit-circle-line",showDefaultValue:!0},cascader:{name:"级联选择器",icon:"link"},divider:{name:"分割线",icon:"separator",notFormItem:!0},grid:{name:"栅格布局",icon:"layout-column-line",notFormItem:!0,isContainer:!0,allowList:[]},table:{name:"子表单",icon:"terminal-window-line",notFormItem:!0,isContainer:!0,allowList:["input","textarea","number","radio","checkbox","select","date","rate","switches","slider","upload","imageUpload","address","organization","member","uuid","cascader","button"]},tabs:{name:"标签页",icon:"window-2-line",notFormItem:!0,isContainer:!0,allowList:["grid","table"]},report:{name:"网格布局",icon:"table-line",notFormItem:!0,isContainer:!0,allowList:[]},td:{name:"TD",icon:"table-line",notFormItem:!0},card:{name:"卡片",icon:"input-method-line",notFormItem:!0,isContainer:!0,allowList:["grid","table"]},collapse:{name:"折叠面板",icon:"stack-line",notFormItem:!0,isContainer:!0,allowList:["grid","table"]},upload:{name:"上传附件",icon:"file-upload-line",showDefaultValue:!1},imageUpload:{name:"上传图片",icon:"image-add-fill",showDefaultValue:!1},organization:{name:"组织机构",icon:"organization-chart",showDefaultValue:!1,shareFormNotApplicableTip:!0},member:{name:"人员选择",icon:"user-2-line",showDefaultValue:!1,shareFormNotApplicableTip:!0},uuid:{name:"唯一标识码",icon:"repeat-one-line",showDefaultValue:!1},sequence:{name:"流水号",icon:"barcode-box-line",showDefaultValue:!1},address:{name:"地址",icon:"map-pin-line",showDefaultValue:!1},relatedForm:{name:"关联表单",icon:"links-line",showDefaultValue:!1,shareFormNotApplicableTip:!0},iframe:{name:"嵌入网页",icon:"window-fill",showDefaultValue:!1,notFormItem:!0},image:{name:"嵌入图片",icon:"image-line",showDefaultValue:!1,notFormItem:!0}},Dr={components:{GenerateElementItem:Cr,GenerateDisplayItem:kr},props:["widget","models","rules","remote","display","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModel:this.models[this.widget.model],dataModels:this.models,componentConfig:Mr}},methods:{fillingColumns:function(t){this.$emit("fillingColumns",t)}},watch:{dataModel:{deep:!0,handler:function(t){if(Tr.a.$emit("on-change-"+this.containerKey,t,this.widget.model,this.containerKey),this.widget.events&&this.widget.events.onChange){var e=this.widget.events.onChange;this.eventFunction[e]&&this.eventFunction[e]({value:t,field:this.widget.model})}}},models:{deep:!0,handler:function(t){this.dataModels=t,this.dataModel=t[this.widget.model]}}}},Ar=Object(v.a)(Dr,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.widget.key&&t.display[t.widget.model]?n("div",{staticClass:"iss-form-renderer-form-item",attrs:{"data-id":t.widget.model}},[t.componentConfig[t.widget.type]&&t.componentConfig[t.widget.type].notFormItem&&"table"!==t.widget.type?n("generate-display-item",{key:t.widget.key,attrs:{edit:t.edit,"event-function":t.eventFunction,"is-table":!1,platform:t.platform,"print-read":t.printRead,widget:t.widget}}):n("generate-element-item",{key:t.widget.key,ref:"generateFormItem",attrs:{"data-source-value":t.dataSourceValue,edit:t.edit,"event-function":t.eventFunction,"is-table":!1,models:t.dataModels,platform:t.platform,preview:t.preview,"print-read":t.printRead||t.widget.options.readonly,remote:t.remote,"remote-option-source":t.remoteOptionSource,rules:t.rules,widget:t.widget},on:{fillingColumns:t.fillingColumns},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})],1):t._e()}),[],!1,null,null,null);e.a=Ar.exports},"131a":function(t,e,n){"use strict";n("23e7")({target:"Object",stat:!0},{setPrototypeOf:n("d2bb")})},"13d2":function(t,e,n){"use strict";var r=n("e330"),o=n("d039"),i=n("1626"),a=n("1a2d"),u=n("83ab"),c=n("5e77").CONFIGURABLE,s=n("8925"),l=n("69f3"),f=l.enforce,d=l.get,m=String,p=Object.defineProperty,h=r("".slice),g=r("".replace),v=r([].join),b=u&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),_=t.exports=function(t,e,n){"Symbol("===h(m(e),0,7)&&(e="["+g(m(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(u?p(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?u&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=v(y,"string"==typeof e?e:"")),t};Function.prototype.toString=_((function(){return i(this)&&d(this).source||s(this)}),"toString")},"14c3":function(t,e,n){"use strict";var r=n("c65b"),o=n("825a"),i=n("1626"),a=n("c6b6"),u=n("9263"),c=TypeError;t.exports=function(t,e){var n=t.exec;if(i(n)){var s=r(n,t,e);return null!==s&&o(s),s}if("RegExp"===a(t))return r(u,t,e);throw new c("RegExp#exec called on incompatible receiver")}},"14d9":function(t,e,n){"use strict";var r=n("23e7"),o=n("7b0b"),i=n("07fa"),a=n("3a34"),u=n("3511");r({target:"Array",proto:!0,arity:1,forced:n("d039")((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=o(this),n=i(e),r=arguments.length;u(n+r);for(var c=0;c<r;c++)e[n]=arguments[c],n++;return a(e,n),n}})},"14e5":function(t,e,n){"use strict";var r=n("23e7"),o=n("c65b"),i=n("59ed"),a=n("f069"),u=n("e667"),c=n("2266");r({target:"Promise",stat:!0,forced:n("5eed")},{all:function(t){var e=this,n=a.f(e),r=n.resolve,s=n.reject,l=u((function(){var n=i(e.resolve),a=[],u=0,l=1;c(t,(function(t){var i=u++,c=!1;l++,o(n,e,t).then((function(t){c||(c=!0,a[i]=t,--l||r(a))}),s)})),--l||r(a)}));return l.error&&s(l.value),n.promise}})},"157a":function(t,e,n){"use strict";var r=n("cfe9"),o=n("83ab"),i=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!o)return r[t];var e=i(r,t);return e&&e.value}},"159b":function(t,e,n){"use strict";var r=n("cfe9"),o=n("fdbc"),i=n("785a"),a=n("17c2"),u=n("9112"),c=function(t){if(t&&t.forEach!==a)try{u(t,"forEach",a)}catch(e){t.forEach=a}};for(var s in o)o[s]&&c(r[s]&&r[s].prototype);c(i)},1626:function(t,e,n){"use strict";var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},1787:function(t,e,n){"use strict";var r=n("861d");t.exports=function(t){return r(t)||null===t}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,o=n("a640")("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"18c3":function(t,e,n){},"19aa":function(t,e,n){"use strict";var r=n("3a9b"),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new o("Incorrect invocation")}},"1a2d":function(t,e,n){"use strict";var r=n("e330"),o=n("7b0b"),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},"1ba5":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n("bdfe"),u=(r=a)&&r.__esModule?r:{default:r};var c=function(t){return(10-t.substr(0,7).split("").map((function(t){return+t})).reduce((function(t,e,n){return n%2?t+e:t+3*e}),0)%10)%10},s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{7}$/)&&(t+=c(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===c(this.data)}},{key:"leftText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var t=this.data.substr(0,4);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,"LLLL")}},{key:"rightText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var t=this.data.substr(4,4);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRR")}}]),e}(u.default);e.default=s},"1be4":function(t,e,n){"use strict";var r=n("d066");t.exports=r("document","documentElement")},"1c59":function(t,e,n){"use strict";n("6d61")("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n("6566"))},"1c7e":function(t,e,n){"use strict";var r=n("b622")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},"1d80":function(t,e,n){"use strict";var r=n("7234"),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},"1da1":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("d3b7"),n("e6cf");function r(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}},"1dde":function(t,e,n){"use strict";var r=n("d039"),o=n("b622"),i=n("1212"),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1ddec":function(t,e,n){},"1e5a":function(t,e,n){"use strict";var r=n("23e7"),o=n("9961");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("symmetricDifference")},{symmetricDifference:o})},"1e70":function(t,e,n){"use strict";var r=n("23e7"),o=n("a5f7");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("difference")},{difference:o})},"1f68":function(t,e,n){"use strict";var r=n("83ab"),o=n("edd0"),i=n("861d"),a=n("1787"),u=n("7b0b"),c=n("1d80"),s=Object.getPrototypeOf,l=Object.setPrototypeOf,f=Object.prototype;if(r&&s&&l&&!("__proto__"in f))try{o(f,"__proto__",{configurable:!0,get:function(){return s(u(this))},set:function(t){var e=c(this);a(t)&&i(e)&&l(e,t)}})}catch(t){}},2266:function(t,e,n){"use strict";var r=n("0366"),o=n("c65b"),i=n("825a"),a=n("0d51"),u=n("e95a"),c=n("07fa"),s=n("3a9b"),l=n("9a1f"),f=n("35a1"),d=n("2a62"),m=TypeError,p=function(t,e){this.stopped=t,this.result=e},h=p.prototype;t.exports=function(t,e,n){var g,v,b,y,_,w,x,O=n&&n.that,S=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),T=r(e,O),M=function(t){return g&&d(g,"normal",t),new p(!0,t)},D=function(t){return S?(i(t),k?T(t[0],t[1],M):T(t[0],t[1])):k?T(t,M):T(t)};if(C)g=t.iterator;else if(E)g=t;else{if(!(v=f(t)))throw new m(a(t)+" is not iterable");if(u(v)){for(b=0,y=c(t);y>b;b++)if((_=D(t[b]))&&s(h,_))return _;return new p(!1)}g=l(t,v)}for(w=C?t.next:g.next;!(x=o(w,g)).done;){try{_=D(x.value)}catch(t){d(g,"throw",t)}if("object"==typeof _&&_&&s(h,_))return _}return new p(!1)}},2389:function(t){t.exports=JSON.parse('{"86":{"110000":"北京市","120000":"天津市","130000":"河北省","140000":"山西省","150000":"内蒙古自治区","210000":"辽宁省","220000":"吉林省","230000":"黑龙江省","310000":"上海市","320000":"江苏省","330000":"浙江省","340000":"安徽省","350000":"福建省","360000":"江西省","370000":"山东省","410000":"河南省","420000":"湖北省","430000":"湖南省","440000":"广东省","450000":"广西壮族自治区","460000":"海南省","500000":"重庆市","510000":"四川省","520000":"贵州省","530000":"云南省","540000":"西藏自治区","610000":"陕西省","620000":"甘肃省","630000":"青海省","640000":"宁夏回族自治区","650000":"新疆维吾尔自治区","710000":"台湾省","810000":"香港特别行政区","820000":"澳门特别行政区"},"110000":{"110100":"市辖区"},"110100":{"110101":"东城区","110102":"西城区","110105":"朝阳区","110106":"丰台区","110107":"石景山区","110108":"海淀区","110109":"门头沟区","110111":"房山区","110112":"通州区","110113":"顺义区","110114":"昌平区","110115":"大兴区","110116":"怀柔区","110117":"平谷区","110118":"密云区","110119":"延庆区"},"120000":{"120100":"市辖区"},"120100":{"120101":"和平区","120102":"河东区","120103":"河西区","120104":"南开区","120105":"河北区","120106":"红桥区","120110":"东丽区","120111":"西青区","120112":"津南区","120113":"北辰区","120114":"武清区","120115":"宝坻区","120116":"滨海新区","120117":"宁河区","120118":"静海区","120119":"蓟州区"},"130000":{"130100":"石家庄市","130200":"唐山市","130300":"秦皇岛市","130400":"邯郸市","130500":"邢台市","130600":"保定市","130700":"张家口市","130800":"承德市","130900":"沧州市","131000":"廊坊市","131100":"衡水市"},"130100":{"130101":"市辖区","130102":"长安区","130104":"桥西区","130105":"新华区","130107":"井陉矿区","130108":"裕华区","130109":"藁城区","130110":"鹿泉区","130111":"栾城区","130121":"井陉县","130123":"正定县","130125":"行唐县","130126":"灵寿县","130127":"高邑县","130128":"深泽县","130129":"赞皇县","130130":"无极县","130131":"平山县","130132":"元氏县","130133":"赵县","130171":"石家庄高新技术产业开发区","130172":"石家庄循环化工园区","130181":"辛集市","130183":"晋州市","130184":"新乐市"},"130200":{"130201":"市辖区","130202":"路南区","130203":"路北区","130204":"古冶区","130205":"开平区","130207":"丰南区","130208":"丰润区","130209":"曹妃甸区","130224":"滦南县","130225":"乐亭县","130227":"迁西县","130229":"玉田县","130271":"河北唐山芦台经济开发区","130272":"唐山市汉沽管理区","130273":"唐山高新技术产业开发区","130274":"河北唐山海港经济开发区","130281":"遵化市","130283":"迁安市","130284":"滦州市"},"130300":{"130301":"市辖区","130302":"海港区","130303":"山海关区","130304":"北戴河区","130306":"抚宁区","130321":"青龙满族自治县","130322":"昌黎县","130324":"卢龙县","130371":"秦皇岛市经济技术开发区","130372":"北戴河新区"},"130400":{"130401":"市辖区","130402":"邯山区","130403":"丛台区","130404":"复兴区","130406":"峰峰矿区","130407":"肥乡区","130408":"永年区","130423":"临漳县","130424":"成安县","130425":"大名县","130426":"涉县","130427":"磁县","130430":"邱县","130431":"鸡泽县","130432":"广平县","130433":"馆陶县","130434":"魏县","130435":"曲周县","130471":"邯郸经济技术开发区","130473":"邯郸冀南新区","130481":"武安市"},"130500":{"130501":"市辖区","130502":"桥东区","130503":"桥西区","130521":"邢台县","130522":"临城县","130523":"内丘县","130524":"柏乡县","130525":"隆尧县","130526":"任县","130527":"南和县","130528":"宁晋县","130529":"巨鹿县","130530":"新河县","130531":"广宗县","130532":"平乡县","130533":"威县","130534":"清河县","130535":"临西县","130571":"河北邢台经济开发区","130581":"南宫市","130582":"沙河市"},"130600":{"130601":"市辖区","130602":"竞秀区","130606":"莲池区","130607":"满城区","130608":"清苑区","130609":"徐水区","130623":"涞水县","130624":"阜平县","130626":"定兴县","130627":"唐县","130628":"高阳县","130629":"容城县","130630":"涞源县","130631":"望都县","130632":"安新县","130633":"易县","130634":"曲阳县","130635":"蠡县","130636":"顺平县","130637":"博野县","130638":"雄县","130671":"保定高新技术产业开发区","130672":"保定白沟新城","130681":"涿州市","130682":"定州市","130683":"安国市","130684":"高碑店市"},"130700":{"130701":"市辖区","130702":"桥东区","130703":"桥西区","130705":"宣化区","130706":"下花园区","130708":"万全区","130709":"崇礼区","130722":"张北县","130723":"康保县","130724":"沽源县","130725":"尚义县","130726":"蔚县","130727":"阳原县","130728":"怀安县","130730":"怀来县","130731":"涿鹿县","130732":"赤城县","130771":"张家口经济开发区","130772":"张家口市察北管理区","130773":"张家口市塞北管理区"},"130800":{"130801":"市辖区","130802":"双桥区","130803":"双滦区","130804":"鹰手营子矿区","130821":"承德县","130822":"兴隆县","130824":"滦平县","130825":"隆化县","130826":"丰宁满族自治县","130827":"宽城满族自治县","130828":"围场满族蒙古族自治县","130871":"承德高新技术产业开发区","130881":"平泉市"},"130900":{"130901":"市辖区","130902":"新华区","130903":"运河区","130921":"沧县","130922":"青县","130923":"东光县","130924":"海兴县","130925":"盐山县","130926":"肃宁县","130927":"南皮县","130928":"吴桥县","130929":"献县","130930":"孟村回族自治县","130971":"河北沧州经济开发区","130972":"沧州高新技术产业开发区","130973":"沧州渤海新区","130981":"泊头市","130982":"任丘市","130983":"黄骅市","130984":"河间市"},"131000":{"131001":"市辖区","131002":"安次区","131003":"广阳区","131022":"固安县","131023":"永清县","131024":"香河县","131025":"大城县","131026":"文安县","131028":"大厂回族自治县","131071":"廊坊经济技术开发区","131081":"霸州市","131082":"三河市"},"131100":{"131101":"市辖区","131102":"桃城区","131103":"冀州区","131121":"枣强县","131122":"武邑县","131123":"武强县","131124":"饶阳县","131125":"安平县","131126":"故城县","131127":"景县","131128":"阜城县","131171":"河北衡水高新技术产业开发区","131172":"衡水滨湖新区","131182":"深州市"},"140000":{"140100":"太原市","140200":"大同市","140300":"阳泉市","140400":"长治市","140500":"晋城市","140600":"朔州市","140700":"晋中市","140800":"运城市","140900":"忻州市","141000":"临汾市","141100":"吕梁市"},"140100":{"140101":"市辖区","140105":"小店区","140106":"迎泽区","140107":"杏花岭区","140108":"尖草坪区","140109":"万柏林区","140110":"晋源区","140121":"清徐县","140122":"阳曲县","140123":"娄烦县","140171":"山西转型综合改革示范区","140181":"古交市"},"140200":{"140201":"市辖区","140212":"新荣区","140213":"平城区","140214":"云冈区","140215":"云州区","140221":"阳高县","140222":"天镇县","140223":"广灵县","140224":"灵丘县","140225":"浑源县","140226":"左云县","140271":"山西大同经济开发区"},"140300":{"140301":"市辖区","140302":"城区","140303":"矿区","140311":"郊区","140321":"平定县","140322":"盂县"},"140400":{"140401":"市辖区","140403":"潞州区","140404":"上党区","140405":"屯留区","140406":"潞城区","140423":"襄垣县","140425":"平顺县","140426":"黎城县","140427":"壶关县","140428":"长子县","140429":"武乡县","140430":"沁县","140431":"沁源县","140471":"山西长治高新技术产业园区"},"140500":{"140501":"市辖区","140502":"城区","140521":"沁水县","140522":"阳城县","140524":"陵川县","140525":"泽州县","140581":"高平市"},"140600":{"140601":"市辖区","140602":"朔城区","140603":"平鲁区","140621":"山阴县","140622":"应县","140623":"右玉县","140671":"山西朔州经济开发区","140681":"怀仁市"},"140700":{"140701":"市辖区","140702":"榆次区","140721":"榆社县","140722":"左权县","140723":"和顺县","140724":"昔阳县","140725":"寿阳县","140726":"太谷县","140727":"祁县","140728":"平遥县","140729":"灵石县","140781":"介休市"},"140800":{"140801":"市辖区","140802":"盐湖区","140821":"临猗县","140822":"万荣县","140823":"闻喜县","140824":"稷山县","140825":"新绛县","140826":"绛县","140827":"垣曲县","140828":"夏县","140829":"平陆县","140830":"芮城县","140881":"永济市","140882":"河津市"},"140900":{"140901":"市辖区","140902":"忻府区","140921":"定襄县","140922":"五台县","140923":"代县","140924":"繁峙县","140925":"宁武县","140926":"静乐县","140927":"神池县","140928":"五寨县","140929":"岢岚县","140930":"河曲县","140931":"保德县","140932":"偏关县","140971":"五台山风景名胜区","140981":"原平市"},"141000":{"141001":"市辖区","141002":"尧都区","141021":"曲沃县","141022":"翼城县","141023":"襄汾县","141024":"洪洞县","141025":"古县","141026":"安泽县","141027":"浮山县","141028":"吉县","141029":"乡宁县","141030":"大宁县","141031":"隰县","141032":"永和县","141033":"蒲县","141034":"汾西县","141081":"侯马市","141082":"霍州市"},"141100":{"141101":"市辖区","141102":"离石区","141121":"文水县","141122":"交城县","141123":"兴县","141124":"临县","141125":"柳林县","141126":"石楼县","141127":"岚县","141128":"方山县","141129":"中阳县","141130":"交口县","141181":"孝义市","141182":"汾阳市"},"150000":{"150100":"呼和浩特市","150200":"包头市","150300":"乌海市","150400":"赤峰市","150500":"通辽市","150600":"鄂尔多斯市","150700":"呼伦贝尔市","150800":"巴彦淖尔市","150900":"乌兰察布市","152200":"兴安盟","152500":"锡林郭勒盟","152900":"阿拉善盟"},"150100":{"150101":"市辖区","150102":"新城区","150103":"回民区","150104":"玉泉区","150105":"赛罕区","150121":"土默特左旗","150122":"托克托县","150123":"和林格尔县","150124":"清水河县","150125":"武川县","150171":"呼和浩特金海工业园区","150172":"呼和浩特经济技术开发区"},"150200":{"150201":"市辖区","150202":"东河区","150203":"昆都仑区","150204":"青山区","150205":"石拐区","150206":"白云鄂博矿区","150207":"九原区","150221":"土默特右旗","150222":"固阳县","150223":"达尔罕茂明安联合旗","150271":"包头稀土高新技术产业开发区"},"150300":{"150301":"市辖区","150302":"海勃湾区","150303":"海南区","150304":"乌达区"},"150400":{"150401":"市辖区","150402":"红山区","150403":"元宝山区","150404":"松山区","150421":"阿鲁科尔沁旗","150422":"巴林左旗","150423":"巴林右旗","150424":"林西县","150425":"克什克腾旗","150426":"翁牛特旗","150428":"喀喇沁旗","150429":"宁城县","150430":"敖汉旗"},"150500":{"150501":"市辖区","150502":"科尔沁区","150521":"科尔沁左翼中旗","150522":"科尔沁左翼后旗","150523":"开鲁县","150524":"库伦旗","150525":"奈曼旗","150526":"扎鲁特旗","150571":"通辽经济技术开发区","150581":"霍林郭勒市"},"150600":{"150601":"市辖区","150602":"东胜区","150603":"康巴什区","150621":"达拉特旗","150622":"准格尔旗","150623":"鄂托克前旗","150624":"鄂托克旗","150625":"杭锦旗","150626":"乌审旗","150627":"伊金霍洛旗"},"150700":{"150701":"市辖区","150702":"海拉尔区","150703":"扎赉诺尔区","150721":"阿荣旗","150722":"莫力达瓦达斡尔族自治旗","150723":"鄂伦春自治旗","150724":"鄂温克族自治旗","150725":"陈巴尔虎旗","150726":"新巴尔虎左旗","150727":"新巴尔虎右旗","150781":"满洲里市","150782":"牙克石市","150783":"扎兰屯市","150784":"额尔古纳市","150785":"根河市"},"150800":{"150801":"市辖区","150802":"临河区","150821":"五原县","150822":"磴口县","150823":"乌拉特前旗","150824":"乌拉特中旗","150825":"乌拉特后旗","150826":"杭锦后旗"},"150900":{"150901":"市辖区","150902":"集宁区","150921":"卓资县","150922":"化德县","150923":"商都县","150924":"兴和县","150925":"凉城县","150926":"察哈尔右翼前旗","150927":"察哈尔右翼中旗","150928":"察哈尔右翼后旗","150929":"四子王旗","150981":"丰镇市"},"152200":{"152201":"乌兰浩特市","152202":"阿尔山市","152221":"科尔沁右翼前旗","152222":"科尔沁右翼中旗","152223":"扎赉特旗","152224":"突泉县"},"152500":{"152501":"二连浩特市","152502":"锡林浩特市","152522":"阿巴嘎旗","152523":"苏尼特左旗","152524":"苏尼特右旗","152525":"东乌珠穆沁旗","152526":"西乌珠穆沁旗","152527":"太仆寺旗","152528":"镶黄旗","152529":"正镶白旗","152530":"正蓝旗","152531":"多伦县","152571":"乌拉盖管委会"},"152900":{"152921":"阿拉善左旗","152922":"阿拉善右旗","152923":"额济纳旗","152971":"内蒙古阿拉善经济开发区"},"210000":{"210100":"沈阳市","210200":"大连市","210300":"鞍山市","210400":"抚顺市","210500":"本溪市","210600":"丹东市","210700":"锦州市","210800":"营口市","210900":"阜新市","211000":"辽阳市","211100":"盘锦市","211200":"铁岭市","211300":"朝阳市","211400":"葫芦岛市"},"210100":{"210101":"市辖区","210102":"和平区","210103":"沈河区","210104":"大东区","210105":"皇姑区","210106":"铁西区","210111":"苏家屯区","210112":"浑南区","210113":"沈北新区","210114":"于洪区","210115":"辽中区","210123":"康平县","210124":"法库县","210181":"新民市"},"210200":{"210201":"市辖区","210202":"中山区","210203":"西岗区","210204":"沙河口区","210211":"甘井子区","210212":"旅顺口区","210213":"金州区","210214":"普兰店区","210224":"长海县","210281":"瓦房店市","210283":"庄河市"},"210300":{"210301":"市辖区","210302":"铁东区","210303":"铁西区","210304":"立山区","210311":"千山区","210321":"台安县","210323":"岫岩满族自治县","210381":"海城市"},"210400":{"210401":"市辖区","210402":"新抚区","210403":"东洲区","210404":"望花区","210411":"顺城区","210421":"抚顺县","210422":"新宾满族自治县","210423":"清原满族自治县"},"210500":{"210501":"市辖区","210502":"平山区","210503":"溪湖区","210504":"明山区","210505":"南芬区","210521":"本溪满族自治县","210522":"桓仁满族自治县"},"210600":{"210601":"市辖区","210602":"元宝区","210603":"振兴区","210604":"振安区","210624":"宽甸满族自治县","210681":"东港市","210682":"凤城市"},"210700":{"210701":"市辖区","210702":"古塔区","210703":"凌河区","210711":"太和区","210726":"黑山县","210727":"义县","210781":"凌海市","210782":"北镇市"},"210800":{"210801":"市辖区","210802":"站前区","210803":"西市区","210804":"鲅鱼圈区","210811":"老边区","210881":"盖州市","210882":"大石桥市"},"210900":{"210901":"市辖区","210902":"海州区","210903":"新邱区","210904":"太平区","210905":"清河门区","210911":"细河区","210921":"阜新蒙古族自治县","210922":"彰武县"},"211000":{"211001":"市辖区","211002":"白塔区","211003":"文圣区","211004":"宏伟区","211005":"弓长岭区","211011":"太子河区","211021":"辽阳县","211081":"灯塔市"},"211100":{"211101":"市辖区","211102":"双台子区","211103":"兴隆台区","211104":"大洼区","211122":"盘山县"},"211200":{"211201":"市辖区","211202":"银州区","211204":"清河区","211221":"铁岭县","211223":"西丰县","211224":"昌图县","211281":"调兵山市","211282":"开原市"},"211300":{"211301":"市辖区","211302":"双塔区","211303":"龙城区","211321":"朝阳县","211322":"建平县","211324":"喀喇沁左翼蒙古族自治县","211381":"北票市","211382":"凌源市"},"211400":{"211401":"市辖区","211402":"连山区","211403":"龙港区","211404":"南票区","211421":"绥中县","211422":"建昌县","211481":"兴城市"},"220000":{"220100":"长春市","220200":"吉林市","220300":"四平市","220400":"辽源市","220500":"通化市","220600":"白山市","220700":"松原市","220800":"白城市","222400":"延边朝鲜族自治州"},"220100":{"220101":"市辖区","220102":"南关区","220103":"宽城区","220104":"朝阳区","220105":"二道区","220106":"绿园区","220112":"双阳区","220113":"九台区","220122":"农安县","220171":"长春经济技术开发区","220172":"长春净月高新技术产业开发区","220173":"长春高新技术产业开发区","220174":"长春汽车经济技术开发区","220182":"榆树市","220183":"德惠市"},"220200":{"220201":"市辖区","220202":"昌邑区","220203":"龙潭区","220204":"船营区","220211":"丰满区","220221":"永吉县","220271":"吉林经济开发区","220272":"吉林高新技术产业开发区","220273":"吉林中国新加坡食品区","220281":"蛟河市","220282":"桦甸市","220283":"舒兰市","220284":"磐石市"},"220300":{"220301":"市辖区","220302":"铁西区","220303":"铁东区","220322":"梨树县","220323":"伊通满族自治县","220381":"公主岭市","220382":"双辽市"},"220400":{"220401":"市辖区","220402":"龙山区","220403":"西安区","220421":"东丰县","220422":"东辽县"},"220500":{"220501":"市辖区","220502":"东昌区","220503":"二道江区","220521":"通化县","220523":"辉南县","220524":"柳河县","220581":"梅河口市","220582":"集安市"},"220600":{"220601":"市辖区","220602":"浑江区","220605":"江源区","220621":"抚松县","220622":"靖宇县","220623":"长白朝鲜族自治县","220681":"临江市"},"220700":{"220701":"市辖区","220702":"宁江区","220721":"前郭尔罗斯蒙古族自治县","220722":"长岭县","220723":"乾安县","220771":"吉林松原经济开发区","220781":"扶余市"},"220800":{"220801":"市辖区","220802":"洮北区","220821":"镇赉县","220822":"通榆县","220871":"吉林白城经济开发区","220881":"洮南市","220882":"大安市"},"222400":{"222401":"延吉市","222402":"图们市","222403":"敦化市","222404":"珲春市","222405":"龙井市","222406":"和龙市","222424":"汪清县","222426":"安图县"},"230000":{"230100":"哈尔滨市","230200":"齐齐哈尔市","230300":"鸡西市","230400":"鹤岗市","230500":"双鸭山市","230600":"大庆市","230700":"伊春市","230800":"佳木斯市","230900":"七台河市","231000":"牡丹江市","231100":"黑河市","231200":"绥化市","232700":"大兴安岭地区"},"230100":{"230101":"市辖区","230102":"道里区","230103":"南岗区","230104":"道外区","230108":"平房区","230109":"松北区","230110":"香坊区","230111":"呼兰区","230112":"阿城区","230113":"双城区","230123":"依兰县","230124":"方正县","230125":"宾县","230126":"巴彦县","230127":"木兰县","230128":"通河县","230129":"延寿县","230183":"尚志市","230184":"五常市"},"230200":{"230201":"市辖区","230202":"龙沙区","230203":"建华区","230204":"铁锋区","230205":"昂昂溪区","230206":"富拉尔基区","230207":"碾子山区","230208":"梅里斯达斡尔族区","230221":"龙江县","230223":"依安县","230224":"泰来县","230225":"甘南县","230227":"富裕县","230229":"克山县","230230":"克东县","230231":"拜泉县","230281":"讷河市"},"230300":{"230301":"市辖区","230302":"鸡冠区","230303":"恒山区","230304":"滴道区","230305":"梨树区","230306":"城子河区","230307":"麻山区","230321":"鸡东县","230381":"虎林市","230382":"密山市"},"230400":{"230401":"市辖区","230402":"向阳区","230403":"工农区","230404":"南山区","230405":"兴安区","230406":"东山区","230407":"兴山区","230421":"萝北县","230422":"绥滨县"},"230500":{"230501":"市辖区","230502":"尖山区","230503":"岭东区","230505":"四方台区","230506":"宝山区","230521":"集贤县","230522":"友谊县","230523":"宝清县","230524":"饶河县"},"230600":{"230601":"市辖区","230602":"萨尔图区","230603":"龙凤区","230604":"让胡路区","230605":"红岗区","230606":"大同区","230621":"肇州县","230622":"肇源县","230623":"林甸县","230624":"杜尔伯特蒙古族自治县","230671":"大庆高新技术产业开发区"},"230700":{"230701":"市辖区","230717":"伊美区","230718":"乌翠区","230719":"友好区","230722":"嘉荫县","230723":"汤旺县","230724":"丰林县","230725":"大箐山县","230726":"南岔县","230751":"金林区","230781":"铁力市"},"230800":{"230801":"市辖区","230803":"向阳区","230804":"前进区","230805":"东风区","230811":"郊区","230822":"桦南县","230826":"桦川县","230828":"汤原县","230881":"同江市","230882":"富锦市","230883":"抚远市"},"230900":{"230901":"市辖区","230902":"新兴区","230903":"桃山区","230904":"茄子河区","230921":"勃利县"},"231000":{"231001":"市辖区","231002":"东安区","231003":"阳明区","231004":"爱民区","231005":"西安区","231025":"林口县","231071":"牡丹江经济技术开发区","231081":"绥芬河市","231083":"海林市","231084":"宁安市","231085":"穆棱市","231086":"东宁市"},"231100":{"231101":"市辖区","231102":"爱辉区","231123":"逊克县","231124":"孙吴县","231181":"北安市","231182":"五大连池市","231183":"嫩江市"},"231200":{"231201":"市辖区","231202":"北林区","231221":"望奎县","231222":"兰西县","231223":"青冈县","231224":"庆安县","231225":"明水县","231226":"绥棱县","231281":"安达市","231282":"肇东市","231283":"海伦市"},"232700":{"232701":"漠河市","232721":"呼玛县","232722":"塔河县","232761":"加格达奇区","232762":"松岭区","232763":"新林区","232764":"呼中区"},"310000":{"310100":"市辖区"},"310100":{"310101":"黄浦区","310104":"徐汇区","310105":"长宁区","310106":"静安区","310107":"普陀区","310109":"虹口区","310110":"杨浦区","310112":"闵行区","310113":"宝山区","310114":"嘉定区","310115":"浦东新区","310116":"金山区","310117":"松江区","310118":"青浦区","310120":"奉贤区","310151":"崇明区"},"320000":{"320100":"南京市","320200":"无锡市","320300":"徐州市","320400":"常州市","320500":"苏州市","320600":"南通市","320700":"连云港市","320800":"淮安市","320900":"盐城市","321000":"扬州市","321100":"镇江市","321200":"泰州市","321300":"宿迁市"},"320100":{"320101":"市辖区","320102":"玄武区","320104":"秦淮区","320105":"建邺区","320106":"鼓楼区","320111":"浦口区","320113":"栖霞区","320114":"雨花台区","320115":"江宁区","320116":"六合区","320117":"溧水区","320118":"高淳区"},"320200":{"320201":"市辖区","320205":"锡山区","320206":"惠山区","320211":"滨湖区","320213":"梁溪区","320214":"新吴区","320281":"江阴市","320282":"宜兴市"},"320300":{"320301":"市辖区","320302":"鼓楼区","320303":"云龙区","320305":"贾汪区","320311":"泉山区","320312":"铜山区","320321":"丰县","320322":"沛县","320324":"睢宁县","320371":"徐州经济技术开发区","320381":"新沂市","320382":"邳州市"},"320400":{"320401":"市辖区","320402":"天宁区","320404":"钟楼区","320411":"新北区","320412":"武进区","320413":"金坛区","320481":"溧阳市"},"320500":{"320501":"市辖区","320505":"虎丘区","320506":"吴中区","320507":"相城区","320508":"姑苏区","320509":"吴江区","320571":"苏州工业园区","320581":"常熟市","320582":"张家港市","320583":"昆山市","320585":"太仓市"},"320600":{"320601":"市辖区","320602":"崇川区","320611":"港闸区","320612":"通州区","320623":"如东县","320671":"南通经济技术开发区","320681":"启东市","320682":"如皋市","320684":"海门市","320685":"海安市"},"320700":{"320701":"市辖区","320703":"连云区","320706":"海州区","320707":"赣榆区","320722":"东海县","320723":"灌云县","320724":"灌南县","320771":"连云港经济技术开发区","320772":"连云港高新技术产业开发区"},"320800":{"320801":"市辖区","320803":"淮安区","320804":"淮阴区","320812":"清江浦区","320813":"洪泽区","320826":"涟水县","320830":"盱眙县","320831":"金湖县","320871":"淮安经济技术开发区"},"320900":{"320901":"市辖区","320902":"亭湖区","320903":"盐都区","320904":"大丰区","320921":"响水县","320922":"滨海县","320923":"阜宁县","320924":"射阳县","320925":"建湖县","320971":"盐城经济技术开发区","320981":"东台市"},"321000":{"321001":"市辖区","321002":"广陵区","321003":"邗江区","321012":"江都区","321023":"宝应县","321071":"扬州经济技术开发区","321081":"仪征市","321084":"高邮市"},"321100":{"321101":"市辖区","321102":"京口区","321111":"润州区","321112":"丹徒区","321171":"镇江新区","321181":"丹阳市","321182":"扬中市","321183":"句容市"},"321200":{"321201":"市辖区","321202":"海陵区","321203":"高港区","321204":"姜堰区","321271":"泰州医药高新技术产业开发区","321281":"兴化市","321282":"靖江市","321283":"泰兴市"},"321300":{"321301":"市辖区","321302":"宿城区","321311":"宿豫区","321322":"沭阳县","321323":"泗阳县","321324":"泗洪县","321371":"宿迁经济技术开发区"},"330000":{"330100":"杭州市","330200":"宁波市","330300":"温州市","330400":"嘉兴市","330500":"湖州市","330600":"绍兴市","330700":"金华市","330800":"衢州市","330900":"舟山市","331000":"台州市","331100":"丽水市"},"330100":{"330101":"市辖区","330102":"上城区","330103":"下城区","330104":"江干区","330105":"拱墅区","330106":"西湖区","330108":"滨江区","330109":"萧山区","330110":"余杭区","330111":"富阳区","330112":"临安区","330122":"桐庐县","330127":"淳安县","330182":"建德市"},"330200":{"330201":"市辖区","330203":"海曙区","330205":"江北区","330206":"北仑区","330211":"镇海区","330212":"鄞州区","330213":"奉化区","330225":"象山县","330226":"宁海县","330281":"余姚市","330282":"慈溪市"},"330300":{"330301":"市辖区","330302":"鹿城区","330303":"龙湾区","330304":"瓯海区","330305":"洞头区","330324":"永嘉县","330326":"平阳县","330327":"苍南县","330328":"文成县","330329":"泰顺县","330371":"温州经济技术开发区","330381":"瑞安市","330382":"乐清市","330383":"龙港市"},"330400":{"330401":"市辖区","330402":"南湖区","330411":"秀洲区","330421":"嘉善县","330424":"海盐县","330481":"海宁市","330482":"平湖市","330483":"桐乡市"},"330500":{"330501":"市辖区","330502":"吴兴区","330503":"南浔区","330521":"德清县","330522":"长兴县","330523":"安吉县"},"330600":{"330601":"市辖区","330602":"越城区","330603":"柯桥区","330604":"上虞区","330624":"新昌县","330681":"诸暨市","330683":"嵊州市"},"330700":{"330701":"市辖区","330702":"婺城区","330703":"金东区","330723":"武义县","330726":"浦江县","330727":"磐安县","330781":"兰溪市","330782":"义乌市","330783":"东阳市","330784":"永康市"},"330800":{"330801":"市辖区","330802":"柯城区","330803":"衢江区","330822":"常山县","330824":"开化县","330825":"龙游县","330881":"江山市"},"330900":{"330901":"市辖区","330902":"定海区","330903":"普陀区","330921":"岱山县","330922":"嵊泗县"},"331000":{"331001":"市辖区","331002":"椒江区","331003":"黄岩区","331004":"路桥区","331022":"三门县","331023":"天台县","331024":"仙居县","331081":"温岭市","331082":"临海市","331083":"玉环市"},"331100":{"331101":"市辖区","331102":"莲都区","331121":"青田县","331122":"缙云县","331123":"遂昌县","331124":"松阳县","331125":"云和县","331126":"庆元县","331127":"景宁畲族自治县","331181":"龙泉市"},"340000":{"340100":"合肥市","340200":"芜湖市","340300":"蚌埠市","340400":"淮南市","340500":"马鞍山市","340600":"淮北市","340700":"铜陵市","340800":"安庆市","341000":"黄山市","341100":"滁州市","341200":"阜阳市","341300":"宿州市","341500":"六安市","341600":"亳州市","341700":"池州市","341800":"宣城市"},"340100":{"340101":"市辖区","340102":"瑶海区","340103":"庐阳区","340104":"蜀山区","340111":"包河区","340121":"长丰县","340122":"肥东县","340123":"肥西县","340124":"庐江县","340171":"合肥高新技术产业开发区","340172":"合肥经济技术开发区","340173":"合肥新站高新技术产业开发区","340181":"巢湖市"},"340200":{"340201":"市辖区","340202":"镜湖区","340203":"弋江区","340207":"鸠江区","340208":"三山区","340221":"芜湖县","340222":"繁昌县","340223":"南陵县","340225":"无为县","340271":"芜湖经济技术开发区","340272":"安徽芜湖长江大桥经济开发区"},"340300":{"340301":"市辖区","340302":"龙子湖区","340303":"蚌山区","340304":"禹会区","340311":"淮上区","340321":"怀远县","340322":"五河县","340323":"固镇县","340371":"蚌埠市高新技术开发区","340372":"蚌埠市经济开发区"},"340400":{"340401":"市辖区","340402":"大通区","340403":"田家庵区","340404":"谢家集区","340405":"八公山区","340406":"潘集区","340421":"凤台县","340422":"寿县"},"340500":{"340501":"市辖区","340503":"花山区","340504":"雨山区","340506":"博望区","340521":"当涂县","340522":"含山县","340523":"和县"},"340600":{"340601":"市辖区","340602":"杜集区","340603":"相山区","340604":"烈山区","340621":"濉溪县"},"340700":{"340701":"市辖区","340705":"铜官区","340706":"义安区","340711":"郊区","340722":"枞阳县"},"340800":{"340801":"市辖区","340802":"迎江区","340803":"大观区","340811":"宜秀区","340822":"怀宁县","340825":"太湖县","340826":"宿松县","340827":"望江县","340828":"岳西县","340871":"安徽安庆经济开发区","340881":"桐城市","340882":"潜山市"},"341000":{"341001":"市辖区","341002":"屯溪区","341003":"黄山区","341004":"徽州区","341021":"歙县","341022":"休宁县","341023":"黟县","341024":"祁门县"},"341100":{"341101":"市辖区","341102":"琅琊区","341103":"南谯区","341122":"来安县","341124":"全椒县","341125":"定远县","341126":"凤阳县","341171":"苏滁现代产业园","341172":"滁州经济技术开发区","341181":"天长市","341182":"明光市"},"341200":{"341201":"市辖区","341202":"颍州区","341203":"颍东区","341204":"颍泉区","341221":"临泉县","341222":"太和县","341225":"阜南县","341226":"颍上县","341271":"阜阳合肥现代产业园区","341272":"阜阳经济技术开发区","341282":"界首市"},"341300":{"341301":"市辖区","341302":"埇桥区","341321":"砀山县","341322":"萧县","341323":"灵璧县","341324":"泗县","341371":"宿州马鞍山现代产业园区","341372":"宿州经济技术开发区"},"341500":{"341501":"市辖区","341502":"金安区","341503":"裕安区","341504":"叶集区","341522":"霍邱县","341523":"舒城县","341524":"金寨县","341525":"霍山县"},"341600":{"341601":"市辖区","341602":"谯城区","341621":"涡阳县","341622":"蒙城县","341623":"利辛县"},"341700":{"341701":"市辖区","341702":"贵池区","341721":"东至县","341722":"石台县","341723":"青阳县"},"341800":{"341801":"市辖区","341802":"宣州区","341821":"郎溪县","341823":"泾县","341824":"绩溪县","341825":"旌德县","341871":"宣城市经济开发区","341881":"宁国市","341882":"广德市"},"350000":{"350100":"福州市","350200":"厦门市","350300":"莆田市","350400":"三明市","350500":"泉州市","350600":"漳州市","350700":"南平市","350800":"龙岩市","350900":"宁德市"},"350100":{"350101":"市辖区","350102":"鼓楼区","350103":"台江区","350104":"仓山区","350105":"马尾区","350111":"晋安区","350112":"长乐区","350121":"闽侯县","350122":"连江县","350123":"罗源县","350124":"闽清县","350125":"永泰县","350128":"平潭县","350181":"福清市"},"350200":{"350201":"市辖区","350203":"思明区","350205":"海沧区","350206":"湖里区","350211":"集美区","350212":"同安区","350213":"翔安区"},"350300":{"350301":"市辖区","350302":"城厢区","350303":"涵江区","350304":"荔城区","350305":"秀屿区","350322":"仙游县"},"350400":{"350401":"市辖区","350402":"梅列区","350403":"三元区","350421":"明溪县","350423":"清流县","350424":"宁化县","350425":"大田县","350426":"尤溪县","350427":"沙县","350428":"将乐县","350429":"泰宁县","350430":"建宁县","350481":"永安市"},"350500":{"350501":"市辖区","350502":"鲤城区","350503":"丰泽区","350504":"洛江区","350505":"泉港区","350521":"惠安县","350524":"安溪县","350525":"永春县","350526":"德化县","350527":"金门县","350581":"石狮市","350582":"晋江市","350583":"南安市"},"350600":{"350601":"市辖区","350602":"芗城区","350603":"龙文区","350622":"云霄县","350623":"漳浦县","350624":"诏安县","350625":"长泰县","350626":"东山县","350627":"南靖县","350628":"平和县","350629":"华安县","350681":"龙海市"},"350700":{"350701":"市辖区","350702":"延平区","350703":"建阳区","350721":"顺昌县","350722":"浦城县","350723":"光泽县","350724":"松溪县","350725":"政和县","350781":"邵武市","350782":"武夷山市","350783":"建瓯市"},"350800":{"350801":"市辖区","350802":"新罗区","350803":"永定区","350821":"长汀县","350823":"上杭县","350824":"武平县","350825":"连城县","350881":"漳平市"},"350900":{"350901":"市辖区","350902":"蕉城区","350921":"霞浦县","350922":"古田县","350923":"屏南县","350924":"寿宁县","350925":"周宁县","350926":"柘荣县","350981":"福安市","350982":"福鼎市"},"360000":{"360100":"南昌市","360200":"景德镇市","360300":"萍乡市","360400":"九江市","360500":"新余市","360600":"鹰潭市","360700":"赣州市","360800":"吉安市","360900":"宜春市","361000":"抚州市","361100":"上饶市"},"360100":{"360101":"市辖区","360102":"东湖区","360103":"西湖区","360104":"青云谱区","360105":"湾里区","360111":"青山湖区","360112":"新建区","360121":"南昌县","360123":"安义县","360124":"进贤县"},"360200":{"360201":"市辖区","360202":"昌江区","360203":"珠山区","360222":"浮梁县","360281":"乐平市"},"360300":{"360301":"市辖区","360302":"安源区","360313":"湘东区","360321":"莲花县","360322":"上栗县","360323":"芦溪县"},"360400":{"360401":"市辖区","360402":"濂溪区","360403":"浔阳区","360404":"柴桑区","360423":"武宁县","360424":"修水县","360425":"永修县","360426":"德安县","360428":"都昌县","360429":"湖口县","360430":"彭泽县","360481":"瑞昌市","360482":"共青城市","360483":"庐山市"},"360500":{"360501":"市辖区","360502":"渝水区","360521":"分宜县"},"360600":{"360601":"市辖区","360602":"月湖区","360603":"余江区","360681":"贵溪市"},"360700":{"360701":"市辖区","360702":"章贡区","360703":"南康区","360704":"赣县区","360722":"信丰县","360723":"大余县","360724":"上犹县","360725":"崇义县","360726":"安远县","360727":"龙南县","360728":"定南县","360729":"全南县","360730":"宁都县","360731":"于都县","360732":"兴国县","360733":"会昌县","360734":"寻乌县","360735":"石城县","360781":"瑞金市"},"360800":{"360801":"市辖区","360802":"吉州区","360803":"青原区","360821":"吉安县","360822":"吉水县","360823":"峡江县","360824":"新干县","360825":"永丰县","360826":"泰和县","360827":"遂川县","360828":"万安县","360829":"安福县","360830":"永新县","360881":"井冈山市"},"360900":{"360901":"市辖区","360902":"袁州区","360921":"奉新县","360922":"万载县","360923":"上高县","360924":"宜丰县","360925":"靖安县","360926":"铜鼓县","360981":"丰城市","360982":"樟树市","360983":"高安市"},"361000":{"361001":"市辖区","361002":"临川区","361003":"东乡区","361021":"南城县","361022":"黎川县","361023":"南丰县","361024":"崇仁县","361025":"乐安县","361026":"宜黄县","361027":"金溪县","361028":"资溪县","361030":"广昌县"},"361100":{"361101":"市辖区","361102":"信州区","361103":"广丰区","361104":"广信区","361123":"玉山县","361124":"铅山县","361125":"横峰县","361126":"弋阳县","361127":"余干县","361128":"鄱阳县","361129":"万年县","361130":"婺源县","361181":"德兴市"},"370000":{"370100":"济南市","370200":"青岛市","370300":"淄博市","370400":"枣庄市","370500":"东营市","370600":"烟台市","370700":"潍坊市","370800":"济宁市","370900":"泰安市","371000":"威海市","371100":"日照市","371300":"临沂市","371400":"德州市","371500":"聊城市","371600":"滨州市","371700":"菏泽市"},"370100":{"370101":"市辖区","370102":"历下区","370103":"市中区","370104":"槐荫区","370105":"天桥区","370112":"历城区","370113":"长清区","370114":"章丘区","370115":"济阳区","370116":"莱芜区","370117":"钢城区","370124":"平阴县","370126":"商河县","370171":"济南高新技术产业开发区"},"370200":{"370201":"市辖区","370202":"市南区","370203":"市北区","370211":"黄岛区","370212":"崂山区","370213":"李沧区","370214":"城阳区","370215":"即墨区","370271":"青岛高新技术产业开发区","370281":"胶州市","370283":"平度市","370285":"莱西市"},"370300":{"370301":"市辖区","370302":"淄川区","370303":"张店区","370304":"博山区","370305":"临淄区","370306":"周村区","370321":"桓台县","370322":"高青县","370323":"沂源县"},"370400":{"370401":"市辖区","370402":"市中区","370403":"薛城区","370404":"峄城区","370405":"台儿庄区","370406":"山亭区","370481":"滕州市"},"370500":{"370501":"市辖区","370502":"东营区","370503":"河口区","370505":"垦利区","370522":"利津县","370523":"广饶县","370571":"东营经济技术开发区","370572":"东营港经济开发区"},"370600":{"370601":"市辖区","370602":"芝罘区","370611":"福山区","370612":"牟平区","370613":"莱山区","370634":"长岛县","370671":"烟台高新技术产业开发区","370672":"烟台经济技术开发区","370681":"龙口市","370682":"莱阳市","370683":"莱州市","370684":"蓬莱市","370685":"招远市","370686":"栖霞市","370687":"海阳市"},"370700":{"370701":"市辖区","370702":"潍城区","370703":"寒亭区","370704":"坊子区","370705":"奎文区","370724":"临朐县","370725":"昌乐县","370772":"潍坊滨海经济技术开发区","370781":"青州市","370782":"诸城市","370783":"寿光市","370784":"安丘市","370785":"高密市","370786":"昌邑市"},"370800":{"370801":"市辖区","370811":"任城区","370812":"兖州区","370826":"微山县","370827":"鱼台县","370828":"金乡县","370829":"嘉祥县","370830":"汶上县","370831":"泗水县","370832":"梁山县","370871":"济宁高新技术产业开发区","370881":"曲阜市","370883":"邹城市"},"370900":{"370901":"市辖区","370902":"泰山区","370911":"岱岳区","370921":"宁阳县","370923":"东平县","370982":"新泰市","370983":"肥城市"},"371000":{"371001":"市辖区","371002":"环翠区","371003":"文登区","371071":"威海火炬高技术产业开发区","371072":"威海经济技术开发区","371073":"威海临港经济技术开发区","371082":"荣成市","371083":"乳山市"},"371100":{"371101":"市辖区","371102":"东港区","371103":"岚山区","371121":"五莲县","371122":"莒县","371171":"日照经济技术开发区"},"371300":{"371301":"市辖区","371302":"兰山区","371311":"罗庄区","371312":"河东区","371321":"沂南县","371322":"郯城县","371323":"沂水县","371324":"兰陵县","371325":"费县","371326":"平邑县","371327":"莒南县","371328":"蒙阴县","371329":"临沭县","371371":"临沂高新技术产业开发区","371372":"临沂经济技术开发区","371373":"临沂临港经济开发区"},"371400":{"371401":"市辖区","371402":"德城区","371403":"陵城区","371422":"宁津县","371423":"庆云县","371424":"临邑县","371425":"齐河县","371426":"平原县","371427":"夏津县","371428":"武城县","371471":"德州经济技术开发区","371472":"德州运河经济开发区","371481":"乐陵市","371482":"禹城市"},"371500":{"371501":"市辖区","371502":"东昌府区","371503":"茌平区","371521":"阳谷县","371522":"莘县","371524":"东阿县","371525":"冠县","371526":"高唐县","371581":"临清市"},"371600":{"371601":"市辖区","371602":"滨城区","371603":"沾化区","371621":"惠民县","371622":"阳信县","371623":"无棣县","371625":"博兴县","371681":"邹平市"},"371700":{"371701":"市辖区","371702":"牡丹区","371703":"定陶区","371721":"曹县","371722":"单县","371723":"成武县","371724":"巨野县","371725":"郓城县","371726":"鄄城县","371728":"东明县","371771":"菏泽经济技术开发区","371772":"菏泽高新技术开发区"},"410000":{"410100":"郑州市","410200":"开封市","410300":"洛阳市","410400":"平顶山市","410500":"安阳市","410600":"鹤壁市","410700":"新乡市","410800":"焦作市","410900":"濮阳市","411000":"许昌市","411100":"漯河市","411200":"三门峡市","411300":"南阳市","411400":"商丘市","411500":"信阳市","411600":"周口市","411700":"驻马店市","419000":"省直辖县级行政区划"},"410100":{"410101":"市辖区","410102":"中原区","410103":"二七区","410104":"管城回族区","410105":"金水区","410106":"上街区","410108":"惠济区","410122":"中牟县","410171":"郑州经济技术开发区","410172":"郑州高新技术产业开发区","410173":"郑州航空港经济综合实验区","410181":"巩义市","410182":"荥阳市","410183":"新密市","410184":"新郑市","410185":"登封市"},"410200":{"410201":"市辖区","410202":"龙亭区","410203":"顺河回族区","410204":"鼓楼区","410205":"禹王台区","410212":"祥符区","410221":"杞县","410222":"通许县","410223":"尉氏县","410225":"兰考县"},"410300":{"410301":"市辖区","410302":"老城区","410303":"西工区","410304":"瀍河回族区","410305":"涧西区","410306":"吉利区","410311":"洛龙区","410322":"孟津县","410323":"新安县","410324":"栾川县","410325":"嵩县","410326":"汝阳县","410327":"宜阳县","410328":"洛宁县","410329":"伊川县","410371":"洛阳高新技术产业开发区","410381":"偃师市"},"410400":{"410401":"市辖区","410402":"新华区","410403":"卫东区","410404":"石龙区","410411":"湛河区","410421":"宝丰县","410422":"叶县","410423":"鲁山县","410425":"郏县","410471":"平顶山高新技术产业开发区","410472":"平顶山市城乡一体化示范区","410481":"舞钢市","410482":"汝州市"},"410500":{"410501":"市辖区","410502":"文峰区","410503":"北关区","410505":"殷都区","410506":"龙安区","410522":"安阳县","410523":"汤阴县","410526":"滑县","410527":"内黄县","410571":"安阳高新技术产业开发区","410581":"林州市"},"410600":{"410601":"市辖区","410602":"鹤山区","410603":"山城区","410611":"淇滨区","410621":"浚县","410622":"淇县","410671":"鹤壁经济技术开发区"},"410700":{"410701":"市辖区","410702":"红旗区","410703":"卫滨区","410704":"凤泉区","410711":"牧野区","410721":"新乡县","410724":"获嘉县","410725":"原阳县","410726":"延津县","410727":"封丘县","410771":"新乡高新技术产业开发区","410772":"新乡经济技术开发区","410773":"新乡市平原城乡一体化示范区","410781":"卫辉市","410782":"辉县市","410783":"长垣市"},"410800":{"410801":"市辖区","410802":"解放区","410803":"中站区","410804":"马村区","410811":"山阳区","410821":"修武县","410822":"博爱县","410823":"武陟县","410825":"温县","410871":"焦作城乡一体化示范区","410882":"沁阳市","410883":"孟州市"},"410900":{"410901":"市辖区","410902":"华龙区","410922":"清丰县","410923":"南乐县","410926":"范县","410927":"台前县","410928":"濮阳县","410971":"河南濮阳工业园区","410972":"濮阳经济技术开发区"},"411000":{"411001":"市辖区","411002":"魏都区","411003":"建安区","411024":"鄢陵县","411025":"襄城县","411071":"许昌经济技术开发区","411081":"禹州市","411082":"长葛市"},"411100":{"411101":"市辖区","411102":"源汇区","411103":"郾城区","411104":"召陵区","411121":"舞阳县","411122":"临颍县","411171":"漯河经济技术开发区"},"411200":{"411201":"市辖区","411202":"湖滨区","411203":"陕州区","411221":"渑池县","411224":"卢氏县","411271":"河南三门峡经济开发区","411281":"义马市","411282":"灵宝市"},"411300":{"411301":"市辖区","411302":"宛城区","411303":"卧龙区","411321":"南召县","411322":"方城县","411323":"西峡县","411324":"镇平县","411325":"内乡县","411326":"淅川县","411327":"社旗县","411328":"唐河县","411329":"新野县","411330":"桐柏县","411371":"南阳高新技术产业开发区","411372":"南阳市城乡一体化示范区","411381":"邓州市"},"411400":{"411401":"市辖区","411402":"梁园区","411403":"睢阳区","411421":"民权县","411422":"睢县","411423":"宁陵县","411424":"柘城县","411425":"虞城县","411426":"夏邑县","411471":"豫东综合物流产业聚集区","411472":"河南商丘经济开发区","411481":"永城市"},"411500":{"411501":"市辖区","411502":"浉河区","411503":"平桥区","411521":"罗山县","411522":"光山县","411523":"新县","411524":"商城县","411525":"固始县","411526":"潢川县","411527":"淮滨县","411528":"息县","411571":"信阳高新技术产业开发区"},"411600":{"411601":"市辖区","411602":"川汇区","411603":"淮阳区","411621":"扶沟县","411622":"西华县","411623":"商水县","411624":"沈丘县","411625":"郸城县","411627":"太康县","411628":"鹿邑县","411671":"河南周口经济开发区","411681":"项城市"},"411700":{"411701":"市辖区","411702":"驿城区","411721":"西平县","411722":"上蔡县","411723":"平舆县","411724":"正阳县","411725":"确山县","411726":"泌阳县","411727":"汝南县","411728":"遂平县","411729":"新蔡县","411771":"河南驻马店经济开发区"},"419000":{"419001":"济源市"},"420000":{"420100":"武汉市","420200":"黄石市","420300":"十堰市","420500":"宜昌市","420600":"襄阳市","420700":"鄂州市","420800":"荆门市","420900":"孝感市","421000":"荆州市","421100":"黄冈市","421200":"咸宁市","421300":"随州市","422800":"恩施土家族苗族自治州","429000":"省直辖县级行政区划"},"420100":{"420101":"市辖区","420102":"江岸区","420103":"江汉区","420104":"硚口区","420105":"汉阳区","420106":"武昌区","420107":"青山区","420111":"洪山区","420112":"东西湖区","420113":"汉南区","420114":"蔡甸区","420115":"江夏区","420116":"黄陂区","420117":"新洲区"},"420200":{"420201":"市辖区","420202":"黄石港区","420203":"西塞山区","420204":"下陆区","420205":"铁山区","420222":"阳新县","420281":"大冶市"},"420300":{"420301":"市辖区","420302":"茅箭区","420303":"张湾区","420304":"郧阳区","420322":"郧西县","420323":"竹山县","420324":"竹溪县","420325":"房县","420381":"丹江口市"},"420500":{"420501":"市辖区","420502":"西陵区","420503":"伍家岗区","420504":"点军区","420505":"猇亭区","420506":"夷陵区","420525":"远安县","420526":"兴山县","420527":"秭归县","420528":"长阳土家族自治县","420529":"五峰土家族自治县","420581":"宜都市","420582":"当阳市","420583":"枝江市"},"420600":{"420601":"市辖区","420602":"襄城区","420606":"樊城区","420607":"襄州区","420624":"南漳县","420625":"谷城县","420626":"保康县","420682":"老河口市","420683":"枣阳市","420684":"宜城市"},"420700":{"420701":"市辖区","420702":"梁子湖区","420703":"华容区","420704":"鄂城区"},"420800":{"420801":"市辖区","420802":"东宝区","420804":"掇刀区","420822":"沙洋县","420881":"钟祥市","420882":"京山市"},"420900":{"420901":"市辖区","420902":"孝南区","420921":"孝昌县","420922":"大悟县","420923":"云梦县","420981":"应城市","420982":"安陆市","420984":"汉川市"},"421000":{"421001":"市辖区","421002":"沙市区","421003":"荆州区","421022":"公安县","421023":"监利县","421024":"江陵县","421071":"荆州经济技术开发区","421081":"石首市","421083":"洪湖市","421087":"松滋市"},"421100":{"421101":"市辖区","421102":"黄州区","421121":"团风县","421122":"红安县","421123":"罗田县","421124":"英山县","421125":"浠水县","421126":"蕲春县","421127":"黄梅县","421171":"龙感湖管理区","421181":"麻城市","421182":"武穴市"},"421200":{"421201":"市辖区","421202":"咸安区","421221":"嘉鱼县","421222":"通城县","421223":"崇阳县","421224":"通山县","421281":"赤壁市"},"421300":{"421301":"市辖区","421303":"曾都区","421321":"随县","421381":"广水市"},"422800":{"422801":"恩施市","422802":"利川市","422822":"建始县","422823":"巴东县","422825":"宣恩县","422826":"咸丰县","422827":"来凤县","422828":"鹤峰县"},"429000":{"429004":"仙桃市","429005":"潜江市","429006":"天门市","429021":"神农架林区"},"430000":{"430100":"长沙市","430200":"株洲市","430300":"湘潭市","430400":"衡阳市","430500":"邵阳市","430600":"岳阳市","430700":"常德市","430800":"张家界市","430900":"益阳市","431000":"郴州市","431100":"永州市","431200":"怀化市","431300":"娄底市","433100":"湘西土家族苗族自治州"},"430100":{"430101":"市辖区","430102":"芙蓉区","430103":"天心区","430104":"岳麓区","430105":"开福区","430111":"雨花区","430112":"望城区","430121":"长沙县","430181":"浏阳市","430182":"宁乡市"},"430200":{"430201":"市辖区","430202":"荷塘区","430203":"芦淞区","430204":"石峰区","430211":"天元区","430212":"渌口区","430223":"攸县","430224":"茶陵县","430225":"炎陵县","430271":"云龙示范区","430281":"醴陵市"},"430300":{"430301":"市辖区","430302":"雨湖区","430304":"岳塘区","430321":"湘潭县","430371":"湖南湘潭高新技术产业园区","430372":"湘潭昭山示范区","430373":"湘潭九华示范区","430381":"湘乡市","430382":"韶山市"},"430400":{"430401":"市辖区","430405":"珠晖区","430406":"雁峰区","430407":"石鼓区","430408":"蒸湘区","430412":"南岳区","430421":"衡阳县","430422":"衡南县","430423":"衡山县","430424":"衡东县","430426":"祁东县","430471":"衡阳综合保税区","430472":"湖南衡阳高新技术产业园区","430473":"湖南衡阳松木经济开发区","430481":"耒阳市","430482":"常宁市"},"430500":{"430501":"市辖区","430502":"双清区","430503":"大祥区","430511":"北塔区","430522":"新邵县","430523":"邵阳县","430524":"隆回县","430525":"洞口县","430527":"绥宁县","430528":"新宁县","430529":"城步苗族自治县","430581":"武冈市","430582":"邵东市"},"430600":{"430601":"市辖区","430602":"岳阳楼区","430603":"云溪区","430611":"君山区","430621":"岳阳县","430623":"华容县","430624":"湘阴县","430626":"平江县","430671":"岳阳市屈原管理区","430681":"汨罗市","430682":"临湘市"},"430700":{"430701":"市辖区","430702":"武陵区","430703":"鼎城区","430721":"安乡县","430722":"汉寿县","430723":"澧县","430724":"临澧县","430725":"桃源县","430726":"石门县","430771":"常德市西洞庭管理区","430781":"津市市"},"430800":{"430801":"市辖区","430802":"永定区","430811":"武陵源区","430821":"慈利县","430822":"桑植县"},"430900":{"430901":"市辖区","430902":"资阳区","430903":"赫山区","430921":"南县","430922":"桃江县","430923":"安化县","430971":"益阳市大通湖管理区","430972":"湖南益阳高新技术产业园区","430981":"沅江市"},"431000":{"431001":"市辖区","431002":"北湖区","431003":"苏仙区","431021":"桂阳县","431022":"宜章县","431023":"永兴县","431024":"嘉禾县","431025":"临武县","431026":"汝城县","431027":"桂东县","431028":"安仁县","431081":"资兴市"},"431100":{"431101":"市辖区","431102":"零陵区","431103":"冷水滩区","431121":"祁阳县","431122":"东安县","431123":"双牌县","431124":"道县","431125":"江永县","431126":"宁远县","431127":"蓝山县","431128":"新田县","431129":"江华瑶族自治县","431171":"永州经济技术开发区","431172":"永州市金洞管理区","431173":"永州市回龙圩管理区"},"431200":{"431201":"市辖区","431202":"鹤城区","431221":"中方县","431222":"沅陵县","431223":"辰溪县","431224":"溆浦县","431225":"会同县","431226":"麻阳苗族自治县","431227":"新晃侗族自治县","431228":"芷江侗族自治县","431229":"靖州苗族侗族自治县","431230":"通道侗族自治县","431271":"怀化市洪江管理区","431281":"洪江市"},"431300":{"431301":"市辖区","431302":"娄星区","431321":"双峰县","431322":"新化县","431381":"冷水江市","431382":"涟源市"},"433100":{"433101":"吉首市","433122":"泸溪县","433123":"凤凰县","433124":"花垣县","433125":"保靖县","433126":"古丈县","433127":"永顺县","433130":"龙山县","433173":"湖南永顺经济开发区"},"440000":{"440100":"广州市","440200":"韶关市","440300":"深圳市","440400":"珠海市","440500":"汕头市","440600":"佛山市","440700":"江门市","440800":"湛江市","440900":"茂名市","441200":"肇庆市","441300":"惠州市","441400":"梅州市","441500":"汕尾市","441600":"河源市","441700":"阳江市","441800":"清远市","441900":"东莞市","442000":"中山市","445100":"潮州市","445200":"揭阳市","445300":"云浮市"},"440100":{"440101":"市辖区","440103":"荔湾区","440104":"越秀区","440105":"海珠区","440106":"天河区","440111":"白云区","440112":"黄埔区","440113":"番禺区","440114":"花都区","440115":"南沙区","440117":"从化区","440118":"增城区"},"440200":{"440201":"市辖区","440203":"武江区","440204":"浈江区","440205":"曲江区","440222":"始兴县","440224":"仁化县","440229":"翁源县","440232":"乳源瑶族自治县","440233":"新丰县","440281":"乐昌市","440282":"南雄市"},"440300":{"440301":"市辖区","440303":"罗湖区","440304":"福田区","440305":"南山区","440306":"宝安区","440307":"龙岗区","440308":"盐田区","440309":"龙华区","440310":"坪山区","440311":"光明区"},"440400":{"440401":"市辖区","440402":"香洲区","440403":"斗门区","440404":"金湾区"},"440500":{"440501":"市辖区","440507":"龙湖区","440511":"金平区","440512":"濠江区","440513":"潮阳区","440514":"潮南区","440515":"澄海区","440523":"南澳县"},"440600":{"440601":"市辖区","440604":"禅城区","440605":"南海区","440606":"顺德区","440607":"三水区","440608":"高明区"},"440700":{"440701":"市辖区","440703":"蓬江区","440704":"江海区","440705":"新会区","440781":"台山市","440783":"开平市","440784":"鹤山市","440785":"恩平市"},"440800":{"440801":"市辖区","440802":"赤坎区","440803":"霞山区","440804":"坡头区","440811":"麻章区","440823":"遂溪县","440825":"徐闻县","440881":"廉江市","440882":"雷州市","440883":"吴川市"},"440900":{"440901":"市辖区","440902":"茂南区","440904":"电白区","440981":"高州市","440982":"化州市","440983":"信宜市"},"441200":{"441201":"市辖区","441202":"端州区","441203":"鼎湖区","441204":"高要区","441223":"广宁县","441224":"怀集县","441225":"封开县","441226":"德庆县","441284":"四会市"},"441300":{"441301":"市辖区","441302":"惠城区","441303":"惠阳区","441322":"博罗县","441323":"惠东县","441324":"龙门县"},"441400":{"441401":"市辖区","441402":"梅江区","441403":"梅县区","441422":"大埔县","441423":"丰顺县","441424":"五华县","441426":"平远县","441427":"蕉岭县","441481":"兴宁市"},"441500":{"441501":"市辖区","441502":"城区","441521":"海丰县","441523":"陆河县","441581":"陆丰市"},"441600":{"441601":"市辖区","441602":"源城区","441621":"紫金县","441622":"龙川县","441623":"连平县","441624":"和平县","441625":"东源县"},"441700":{"441701":"市辖区","441702":"江城区","441704":"阳东区","441721":"阳西县","441781":"阳春市"},"441800":{"441801":"市辖区","441802":"清城区","441803":"清新区","441821":"佛冈县","441823":"阳山县","441825":"连山壮族瑶族自治县","441826":"连南瑶族自治县","441881":"英德市","441882":"连州市"},"441900":{"441900003":"东城街道","441900004":"南城街道","441900005":"万江街道","441900006":"莞城街道","441900101":"石碣镇","441900102":"石龙镇","441900103":"茶山镇","441900104":"石排镇","441900105":"企石镇","441900106":"横沥镇","441900107":"桥头镇","441900108":"谢岗镇","441900109":"东坑镇","441900110":"常平镇","441900111":"寮步镇","441900112":"樟木头镇","441900113":"大朗镇","441900114":"黄江镇","441900115":"清溪镇","441900116":"塘厦镇","441900117":"凤岗镇","441900118":"大岭山镇","441900119":"长安镇","441900121":"虎门镇","441900122":"厚街镇","441900123":"沙田镇","441900124":"道滘镇","441900125":"洪梅镇","441900126":"麻涌镇","441900127":"望牛墩镇","441900128":"中堂镇","441900129":"高埗镇","441900401":"松山湖","441900402":"东莞港","441900403":"东莞生态园"},"442000":{"442000001":"石岐街道","442000002":"东区街道","442000003":"中山港街道","442000004":"西区街道","442000005":"南区街道","442000006":"五桂山街道","442000100":"小榄镇","442000101":"黄圃镇","442000102":"民众镇","442000103":"东凤镇","442000104":"东升镇","442000105":"古镇镇","442000106":"沙溪镇","442000107":"坦洲镇","442000108":"港口镇","442000109":"三角镇","442000110":"横栏镇","442000111":"南头镇","442000112":"阜沙镇","442000113":"南朗镇","442000114":"三乡镇","442000115":"板芙镇","442000116":"大涌镇","442000117":"神湾镇"},"445100":{"445101":"市辖区","445102":"湘桥区","445103":"潮安区","445122":"饶平县"},"445200":{"445201":"市辖区","445202":"榕城区","445203":"揭东区","445222":"揭西县","445224":"惠来县","445281":"普宁市"},"445300":{"445301":"市辖区","445302":"云城区","445303":"云安区","445321":"新兴县","445322":"郁南县","445381":"罗定市"},"450000":{"450100":"南宁市","450200":"柳州市","450300":"桂林市","450400":"梧州市","450500":"北海市","450600":"防城港市","450700":"钦州市","450800":"贵港市","450900":"玉林市","451000":"百色市","451100":"贺州市","451200":"河池市","451300":"来宾市","451400":"崇左市"},"450100":{"450101":"市辖区","450102":"兴宁区","450103":"青秀区","450105":"江南区","450107":"西乡塘区","450108":"良庆区","450109":"邕宁区","450110":"武鸣区","450123":"隆安县","450124":"马山县","450125":"上林县","450126":"宾阳县","450127":"横县"},"450200":{"450201":"市辖区","450202":"城中区","450203":"鱼峰区","450204":"柳南区","450205":"柳北区","450206":"柳江区","450222":"柳城县","450223":"鹿寨县","450224":"融安县","450225":"融水苗族自治县","450226":"三江侗族自治县"},"450300":{"450301":"市辖区","450302":"秀峰区","450303":"叠彩区","450304":"象山区","450305":"七星区","450311":"雁山区","450312":"临桂区","450321":"阳朔县","450323":"灵川县","450324":"全州县","450325":"兴安县","450326":"永福县","450327":"灌阳县","450328":"龙胜各族自治县","450329":"资源县","450330":"平乐县","450332":"恭城瑶族自治县","450381":"荔浦市"},"450400":{"450401":"市辖区","450403":"万秀区","450405":"长洲区","450406":"龙圩区","450421":"苍梧县","450422":"藤县","450423":"蒙山县","450481":"岑溪市"},"450500":{"450501":"市辖区","450502":"海城区","450503":"银海区","450512":"铁山港区","450521":"合浦县"},"450600":{"450601":"市辖区","450602":"港口区","450603":"防城区","450621":"上思县","450681":"东兴市"},"450700":{"450701":"市辖区","450702":"钦南区","450703":"钦北区","450721":"灵山县","450722":"浦北县"},"450800":{"450801":"市辖区","450802":"港北区","450803":"港南区","450804":"覃塘区","450821":"平南县","450881":"桂平市"},"450900":{"450901":"市辖区","450902":"玉州区","450903":"福绵区","450921":"容县","450922":"陆川县","450923":"博白县","450924":"兴业县","450981":"北流市"},"451000":{"451001":"市辖区","451002":"右江区","451003":"田阳区","451022":"田东县","451023":"平果县","451024":"德保县","451026":"那坡县","451027":"凌云县","451028":"乐业县","451029":"田林县","451030":"西林县","451031":"隆林各族自治县","451081":"靖西市"},"451100":{"451101":"市辖区","451102":"八步区","451103":"平桂区","451121":"昭平县","451122":"钟山县","451123":"富川瑶族自治县"},"451200":{"451201":"市辖区","451202":"金城江区","451203":"宜州区","451221":"南丹县","451222":"天峨县","451223":"凤山县","451224":"东兰县","451225":"罗城仫佬族自治县","451226":"环江毛南族自治县","451227":"巴马瑶族自治县","451228":"都安瑶族自治县","451229":"大化瑶族自治县"},"451300":{"451301":"市辖区","451302":"兴宾区","451321":"忻城县","451322":"象州县","451323":"武宣县","451324":"金秀瑶族自治县","451381":"合山市"},"451400":{"451401":"市辖区","451402":"江州区","451421":"扶绥县","451422":"宁明县","451423":"龙州县","451424":"大新县","451425":"天等县","451481":"凭祥市"},"460000":{"460100":"海口市","460200":"三亚市","460300":"三沙市","460400":"儋州市","469000":"省直辖县级行政区划"},"460100":{"460101":"市辖区","460105":"秀英区","460106":"龙华区","460107":"琼山区","460108":"美兰区"},"460200":{"460201":"市辖区","460202":"海棠区","460203":"吉阳区","460204":"天涯区","460205":"崖州区"},"460300":{"460321":"西沙群岛","460322":"南沙群岛","460323":"中沙群岛的岛礁及其海域"},"460400":{"460400100":"那大镇","460400101":"和庆镇","460400102":"南丰镇","460400103":"大成镇","460400104":"雅星镇","460400105":"兰洋镇","460400106":"光村镇","460400107":"木棠镇","460400108":"海头镇","460400109":"峨蔓镇","460400111":"王五镇","460400112":"白马井镇","460400113":"中和镇","460400114":"排浦镇","460400115":"东成镇","460400116":"新州镇","460400499":"洋浦经济开发区","460400500":"华南热作学院"},"469000":{"469001":"五指山市","469002":"琼海市","469005":"文昌市","469006":"万宁市","469007":"东方市","469021":"定安县","469022":"屯昌县","469023":"澄迈县","469024":"临高县","469025":"白沙黎族自治县","469026":"昌江黎族自治县","469027":"乐东黎族自治县","469028":"陵水黎族自治县","469029":"保亭黎族苗族自治县","469030":"琼中黎族苗族自治县"},"500000":{"500100":"市辖区","500200":"县"},"500100":{"500101":"万州区","500102":"涪陵区","500103":"渝中区","500104":"大渡口区","500105":"江北区","500106":"沙坪坝区","500107":"九龙坡区","500108":"南岸区","500109":"北碚区","500110":"綦江区","500111":"大足区","500112":"渝北区","500113":"巴南区","500114":"黔江区","500115":"长寿区","500116":"江津区","500117":"合川区","500118":"永川区","500119":"南川区","500120":"璧山区","500151":"铜梁区","500152":"潼南区","500153":"荣昌区","500154":"开州区","500155":"梁平区","500156":"武隆区"},"500200":{"500229":"城口县","500230":"丰都县","500231":"垫江县","500233":"忠县","500235":"云阳县","500236":"奉节县","500237":"巫山县","500238":"巫溪县","500240":"石柱土家族自治县","500241":"秀山土家族苗族自治县","500242":"酉阳土家族苗族自治县","500243":"彭水苗族土家族自治县"},"510000":{"510100":"成都市","510300":"自贡市","510400":"攀枝花市","510500":"泸州市","510600":"德阳市","510700":"绵阳市","510800":"广元市","510900":"遂宁市","511000":"内江市","511100":"乐山市","511300":"南充市","511400":"眉山市","511500":"宜宾市","511600":"广安市","511700":"达州市","511800":"雅安市","511900":"巴中市","512000":"资阳市","513200":"阿坝藏族羌族自治州","513300":"甘孜藏族自治州","513400":"凉山彝族自治州"},"510100":{"510101":"市辖区","510104":"锦江区","510105":"青羊区","510106":"金牛区","510107":"武侯区","510108":"成华区","510112":"龙泉驿区","510113":"青白江区","510114":"新都区","510115":"温江区","510116":"双流区","510117":"郫都区","510121":"金堂县","510129":"大邑县","510131":"蒲江县","510132":"新津县","510181":"都江堰市","510182":"彭州市","510183":"邛崃市","510184":"崇州市","510185":"简阳市"},"510300":{"510301":"市辖区","510302":"自流井区","510303":"贡井区","510304":"大安区","510311":"沿滩区","510321":"荣县","510322":"富顺县"},"510400":{"510401":"市辖区","510402":"东区","510403":"西区","510411":"仁和区","510421":"米易县","510422":"盐边县"},"510500":{"510501":"市辖区","510502":"江阳区","510503":"纳溪区","510504":"龙马潭区","510521":"泸县","510522":"合江县","510524":"叙永县","510525":"古蔺县"},"510600":{"510601":"市辖区","510603":"旌阳区","510604":"罗江区","510623":"中江县","510681":"广汉市","510682":"什邡市","510683":"绵竹市"},"510700":{"510701":"市辖区","510703":"涪城区","510704":"游仙区","510705":"安州区","510722":"三台县","510723":"盐亭县","510725":"梓潼县","510726":"北川羌族自治县","510727":"平武县","510781":"江油市"},"510800":{"510801":"市辖区","510802":"利州区","510811":"昭化区","510812":"朝天区","510821":"旺苍县","510822":"青川县","510823":"剑阁县","510824":"苍溪县"},"510900":{"510901":"市辖区","510903":"船山区","510904":"安居区","510921":"蓬溪县","510923":"大英县","510981":"射洪市"},"511000":{"511001":"市辖区","511002":"市中区","511011":"东兴区","511024":"威远县","511025":"资中县","511071":"内江经济开发区","511083":"隆昌市"},"511100":{"511101":"市辖区","511102":"市中区","511111":"沙湾区","511112":"五通桥区","511113":"金口河区","511123":"犍为县","511124":"井研县","511126":"夹江县","511129":"沐川县","511132":"峨边彝族自治县","511133":"马边彝族自治县","511181":"峨眉山市"},"511300":{"511301":"市辖区","511302":"顺庆区","511303":"高坪区","511304":"嘉陵区","511321":"南部县","511322":"营山县","511323":"蓬安县","511324":"仪陇县","511325":"西充县","511381":"阆中市"},"511400":{"511401":"市辖区","511402":"东坡区","511403":"彭山区","511421":"仁寿县","511423":"洪雅县","511424":"丹棱县","511425":"青神县"},"511500":{"511501":"市辖区","511502":"翠屏区","511503":"南溪区","511504":"叙州区","511523":"江安县","511524":"长宁县","511525":"高县","511526":"珙县","511527":"筠连县","511528":"兴文县","511529":"屏山县"},"511600":{"511601":"市辖区","511602":"广安区","511603":"前锋区","511621":"岳池县","511622":"武胜县","511623":"邻水县","511681":"华蓥市"},"511700":{"511701":"市辖区","511702":"通川区","511703":"达川区","511722":"宣汉县","511723":"开江县","511724":"大竹县","511725":"渠县","511771":"达州经济开发区","511781":"万源市"},"511800":{"511801":"市辖区","511802":"雨城区","511803":"名山区","511822":"荥经县","511823":"汉源县","511824":"石棉县","511825":"天全县","511826":"芦山县","511827":"宝兴县"},"511900":{"511901":"市辖区","511902":"巴州区","511903":"恩阳区","511921":"通江县","511922":"南江县","511923":"平昌县","511971":"巴中经济开发区"},"512000":{"512001":"市辖区","512002":"雁江区","512021":"安岳县","512022":"乐至县"},"513200":{"513201":"马尔康市","513221":"汶川县","513222":"理县","513223":"茂县","513224":"松潘县","513225":"九寨沟县","513226":"金川县","513227":"小金县","513228":"黑水县","513230":"壤塘县","513231":"阿坝县","513232":"若尔盖县","513233":"红原县"},"513300":{"513301":"康定市","513322":"泸定县","513323":"丹巴县","513324":"九龙县","513325":"雅江县","513326":"道孚县","513327":"炉霍县","513328":"甘孜县","513329":"新龙县","513330":"德格县","513331":"白玉县","513332":"石渠县","513333":"色达县","513334":"理塘县","513335":"巴塘县","513336":"乡城县","513337":"稻城县","513338":"得荣县"},"513400":{"513401":"西昌市","513422":"木里藏族自治县","513423":"盐源县","513424":"德昌县","513425":"会理县","513426":"会东县","513427":"宁南县","513428":"普格县","513429":"布拖县","513430":"金阳县","513431":"昭觉县","513432":"喜德县","513433":"冕宁县","513434":"越西县","513435":"甘洛县","513436":"美姑县","513437":"雷波县"},"520000":{"520100":"贵阳市","520200":"六盘水市","520300":"遵义市","520400":"安顺市","520500":"毕节市","520600":"铜仁市","522300":"黔西南布依族苗族自治州","522600":"黔东南苗族侗族自治州","522700":"黔南布依族苗族自治州"},"520100":{"520101":"市辖区","520102":"南明区","520103":"云岩区","520111":"花溪区","520112":"乌当区","520113":"白云区","520115":"观山湖区","520121":"开阳县","520122":"息烽县","520123":"修文县","520181":"清镇市"},"520200":{"520201":"钟山区","520203":"六枝特区","520221":"水城县","520281":"盘州市"},"520300":{"520301":"市辖区","520302":"红花岗区","520303":"汇川区","520304":"播州区","520322":"桐梓县","520323":"绥阳县","520324":"正安县","520325":"道真仡佬族苗族自治县","520326":"务川仡佬族苗族自治县","520327":"凤冈县","520328":"湄潭县","520329":"余庆县","520330":"习水县","520381":"赤水市","520382":"仁怀市"},"520400":{"520401":"市辖区","520402":"西秀区","520403":"平坝区","520422":"普定县","520423":"镇宁布依族苗族自治县","520424":"关岭布依族苗族自治县","520425":"紫云苗族布依族自治县"},"520500":{"520501":"市辖区","520502":"七星关区","520521":"大方县","520522":"黔西县","520523":"金沙县","520524":"织金县","520525":"纳雍县","520526":"威宁彝族回族苗族自治县","520527":"赫章县"},"520600":{"520601":"市辖区","520602":"碧江区","520603":"万山区","520621":"江口县","520622":"玉屏侗族自治县","520623":"石阡县","520624":"思南县","520625":"印江土家族苗族自治县","520626":"德江县","520627":"沿河土家族自治县","520628":"松桃苗族自治县"},"522300":{"522301":"兴义市","522302":"兴仁市","522323":"普安县","522324":"晴隆县","522325":"贞丰县","522326":"望谟县","522327":"册亨县","522328":"安龙县"},"522600":{"522601":"凯里市","522622":"黄平县","522623":"施秉县","522624":"三穗县","522625":"镇远县","522626":"岑巩县","522627":"天柱县","522628":"锦屏县","522629":"剑河县","522630":"台江县","522631":"黎平县","522632":"榕江县","522633":"从江县","522634":"雷山县","522635":"麻江县","522636":"丹寨县"},"522700":{"522701":"都匀市","522702":"福泉市","522722":"荔波县","522723":"贵定县","522725":"瓮安县","522726":"独山县","522727":"平塘县","522728":"罗甸县","522729":"长顺县","522730":"龙里县","522731":"惠水县","522732":"三都水族自治县"},"530000":{"530100":"昆明市","530300":"曲靖市","530400":"玉溪市","530500":"保山市","530600":"昭通市","530700":"丽江市","530800":"普洱市","530900":"临沧市","532300":"楚雄彝族自治州","532500":"红河哈尼族彝族自治州","532600":"文山壮族苗族自治州","532800":"西双版纳傣族自治州","532900":"大理白族自治州","533100":"德宏傣族景颇族自治州","533300":"怒江傈僳族自治州","533400":"迪庆藏族自治州"},"530100":{"530101":"市辖区","530102":"五华区","530103":"盘龙区","530111":"官渡区","530112":"西山区","530113":"东川区","530114":"呈贡区","530115":"晋宁区","530124":"富民县","530125":"宜良县","530126":"石林彝族自治县","530127":"嵩明县","530128":"禄劝彝族苗族自治县","530129":"寻甸回族彝族自治县","530181":"安宁市"},"530300":{"530301":"市辖区","530302":"麒麟区","530303":"沾益区","530304":"马龙区","530322":"陆良县","530323":"师宗县","530324":"罗平县","530325":"富源县","530326":"会泽县","530381":"宣威市"},"530400":{"530401":"市辖区","530402":"红塔区","530403":"江川区","530422":"澄江县","530423":"通海县","530424":"华宁县","530425":"易门县","530426":"峨山彝族自治县","530427":"新平彝族傣族自治县","530428":"元江哈尼族彝族傣族自治县"},"530500":{"530501":"市辖区","530502":"隆阳区","530521":"施甸县","530523":"龙陵县","530524":"昌宁县","530581":"腾冲市"},"530600":{"530601":"市辖区","530602":"昭阳区","530621":"鲁甸县","530622":"巧家县","530623":"盐津县","530624":"大关县","530625":"永善县","530626":"绥江县","530627":"镇雄县","530628":"彝良县","530629":"威信县","530681":"水富市"},"530700":{"530701":"市辖区","530702":"古城区","530721":"玉龙纳西族自治县","530722":"永胜县","530723":"华坪县","530724":"宁蒗彝族自治县"},"530800":{"530801":"市辖区","530802":"思茅区","530821":"宁洱哈尼族彝族自治县","530822":"墨江哈尼族自治县","530823":"景东彝族自治县","530824":"景谷傣族彝族自治县","530825":"镇沅彝族哈尼族拉祜族自治县","530826":"江城哈尼族彝族自治县","530827":"孟连傣族拉祜族佤族自治县","530828":"澜沧拉祜族自治县","530829":"西盟佤族自治县"},"530900":{"530901":"市辖区","530902":"临翔区","530921":"凤庆县","530922":"云县","530923":"永德县","530924":"镇康县","530925":"双江拉祜族佤族布朗族傣族自治县","530926":"耿马傣族佤族自治县","530927":"沧源佤族自治县"},"532300":{"532301":"楚雄市","532322":"双柏县","532323":"牟定县","532324":"南华县","532325":"姚安县","532326":"大姚县","532327":"永仁县","532328":"元谋县","532329":"武定县","532331":"禄丰县"},"532500":{"532501":"个旧市","532502":"开远市","532503":"蒙自市","532504":"弥勒市","532523":"屏边苗族自治县","532524":"建水县","532525":"石屏县","532527":"泸西县","532528":"元阳县","532529":"红河县","532530":"金平苗族瑶族傣族自治县","532531":"绿春县","532532":"河口瑶族自治县"},"532600":{"532601":"文山市","532622":"砚山县","532623":"西畴县","532624":"麻栗坡县","532625":"马关县","532626":"丘北县","532627":"广南县","532628":"富宁县"},"532800":{"532801":"景洪市","532822":"勐海县","532823":"勐腊县"},"532900":{"532901":"大理市","532922":"漾濞彝族自治县","532923":"祥云县","532924":"宾川县","532925":"弥渡县","532926":"南涧彝族自治县","532927":"巍山彝族回族自治县","532928":"永平县","532929":"云龙县","532930":"洱源县","532931":"剑川县","532932":"鹤庆县"},"533100":{"533102":"瑞丽市","533103":"芒市","533122":"梁河县","533123":"盈江县","533124":"陇川县"},"533300":{"533301":"泸水市","533323":"福贡县","533324":"贡山独龙族怒族自治县","533325":"兰坪白族普米族自治县"},"533400":{"533401":"香格里拉市","533422":"德钦县","533423":"维西傈僳族自治县"},"540000":{"540100":"拉萨市","540200":"日喀则市","540300":"昌都市","540400":"林芝市","540500":"山南市","540600":"那曲市","542500":"阿里地区"},"540100":{"540101":"市辖区","540102":"城关区","540103":"堆龙德庆区","540104":"达孜区","540121":"林周县","540122":"当雄县","540123":"尼木县","540124":"曲水县","540127":"墨竹工卡县","540171":"格尔木藏青工业园区","540172":"拉萨经济技术开发区","540173":"西藏文化旅游创意园区","540174":"达孜工业园区"},"540200":{"540202":"桑珠孜区","540221":"南木林县","540222":"江孜县","540223":"定日县","540224":"萨迦县","540225":"拉孜县","540226":"昂仁县","540227":"谢通门县","540228":"白朗县","540229":"仁布县","540230":"康马县","540231":"定结县","540232":"仲巴县","540233":"亚东县","540234":"吉隆县","540235":"聂拉木县","540236":"萨嘎县","540237":"岗巴县"},"540300":{"540302":"卡若区","540321":"江达县","540322":"贡觉县","540323":"类乌齐县","540324":"丁青县","540325":"察雅县","540326":"八宿县","540327":"左贡县","540328":"芒康县","540329":"洛隆县","540330":"边坝县"},"540400":{"540402":"巴宜区","540421":"工布江达县","540422":"米林县","540423":"墨脱县","540424":"波密县","540425":"察隅县","540426":"朗县"},"540500":{"540501":"市辖区","540502":"乃东区","540521":"扎囊县","540522":"贡嘎县","540523":"桑日县","540524":"琼结县","540525":"曲松县","540526":"措美县","540527":"洛扎县","540528":"加查县","540529":"隆子县","540530":"错那县","540531":"浪卡子县"},"540600":{"540602":"色尼区","540621":"嘉黎县","540622":"比如县","540623":"聂荣县","540624":"安多县","540625":"申扎县","540626":"索县","540627":"班戈县","540628":"巴青县","540629":"尼玛县","540630":"双湖县"},"542500":{"542521":"普兰县","542522":"札达县","542523":"噶尔县","542524":"日土县","542525":"革吉县","542526":"改则县","542527":"措勤县"},"610000":{"610100":"西安市","610200":"铜川市","610300":"宝鸡市","610400":"咸阳市","610500":"渭南市","610600":"延安市","610700":"汉中市","610800":"榆林市","610900":"安康市","611000":"商洛市"},"610100":{"610101":"市辖区","610102":"新城区","610103":"碑林区","610104":"莲湖区","610111":"灞桥区","610112":"未央区","610113":"雁塔区","610114":"阎良区","610115":"临潼区","610116":"长安区","610117":"高陵区","610118":"鄠邑区","610122":"蓝田县","610124":"周至县"},"610200":{"610201":"市辖区","610202":"王益区","610203":"印台区","610204":"耀州区","610222":"宜君县"},"610300":{"610301":"市辖区","610302":"渭滨区","610303":"金台区","610304":"陈仓区","610322":"凤翔县","610323":"岐山县","610324":"扶风县","610326":"眉县","610327":"陇县","610328":"千阳县","610329":"麟游县","610330":"凤县","610331":"太白县"},"610400":{"610401":"市辖区","610402":"秦都区","610403":"杨陵区","610404":"渭城区","610422":"三原县","610423":"泾阳县","610424":"乾县","610425":"礼泉县","610426":"永寿县","610428":"长武县","610429":"旬邑县","610430":"淳化县","610431":"武功县","610481":"兴平市","610482":"彬州市"},"610500":{"610501":"市辖区","610502":"临渭区","610503":"华州区","610522":"潼关县","610523":"大荔县","610524":"合阳县","610525":"澄城县","610526":"蒲城县","610527":"白水县","610528":"富平县","610581":"韩城市","610582":"华阴市"},"610600":{"610601":"市辖区","610602":"宝塔区","610603":"安塞区","610621":"延长县","610622":"延川县","610625":"志丹县","610626":"吴起县","610627":"甘泉县","610628":"富县","610629":"洛川县","610630":"宜川县","610631":"黄龙县","610632":"黄陵县","610681":"子长市"},"610700":{"610701":"市辖区","610702":"汉台区","610703":"南郑区","610722":"城固县","610723":"洋县","610724":"西乡县","610725":"勉县","610726":"宁强县","610727":"略阳县","610728":"镇巴县","610729":"留坝县","610730":"佛坪县"},"610800":{"610801":"市辖区","610802":"榆阳区","610803":"横山区","610822":"府谷县","610824":"靖边县","610825":"定边县","610826":"绥德县","610827":"米脂县","610828":"佳县","610829":"吴堡县","610830":"清涧县","610831":"子洲县","610881":"神木市"},"610900":{"610901":"市辖区","610902":"汉滨区","610921":"汉阴县","610922":"石泉县","610923":"宁陕县","610924":"紫阳县","610925":"岚皋县","610926":"平利县","610927":"镇坪县","610928":"旬阳县","610929":"白河县"},"611000":{"611001":"市辖区","611002":"商州区","611021":"洛南县","611022":"丹凤县","611023":"商南县","611024":"山阳县","611025":"镇安县","611026":"柞水县"},"620000":{"620100":"兰州市","620200":"嘉峪关市","620300":"金昌市","620400":"白银市","620500":"天水市","620600":"武威市","620700":"张掖市","620800":"平凉市","620900":"酒泉市","621000":"庆阳市","621100":"定西市","621200":"陇南市","622900":"临夏回族自治州","623000":"甘南藏族自治州"},"620100":{"620101":"市辖区","620102":"城关区","620103":"七里河区","620104":"西固区","620105":"安宁区","620111":"红古区","620121":"永登县","620122":"皋兰县","620123":"榆中县","620171":"兰州新区"},"620200":{"620201":"市辖区"},"620300":{"620301":"市辖区","620302":"金川区","620321":"永昌县"},"620400":{"620401":"市辖区","620402":"白银区","620403":"平川区","620421":"靖远县","620422":"会宁县","620423":"景泰县"},"620500":{"620501":"市辖区","620502":"秦州区","620503":"麦积区","620521":"清水县","620522":"秦安县","620523":"甘谷县","620524":"武山县","620525":"张家川回族自治县"},"620600":{"620601":"市辖区","620602":"凉州区","620621":"民勤县","620622":"古浪县","620623":"天祝藏族自治县"},"620700":{"620701":"市辖区","620702":"甘州区","620721":"肃南裕固族自治县","620722":"民乐县","620723":"临泽县","620724":"高台县","620725":"山丹县"},"620800":{"620801":"市辖区","620802":"崆峒区","620821":"泾川县","620822":"灵台县","620823":"崇信县","620825":"庄浪县","620826":"静宁县","620881":"华亭市"},"620900":{"620901":"市辖区","620902":"肃州区","620921":"金塔县","620922":"瓜州县","620923":"肃北蒙古族自治县","620924":"阿克塞哈萨克族自治县","620981":"玉门市","620982":"敦煌市"},"621000":{"621001":"市辖区","621002":"西峰区","621021":"庆城县","621022":"环县","621023":"华池县","621024":"合水县","621025":"正宁县","621026":"宁县","621027":"镇原县"},"621100":{"621101":"市辖区","621102":"安定区","621121":"通渭县","621122":"陇西县","621123":"渭源县","621124":"临洮县","621125":"漳县","621126":"岷县"},"621200":{"621201":"市辖区","621202":"武都区","621221":"成县","621222":"文县","621223":"宕昌县","621224":"康县","621225":"西和县","621226":"礼县","621227":"徽县","621228":"两当县"},"622900":{"622901":"临夏市","622921":"临夏县","622922":"康乐县","622923":"永靖县","622924":"广河县","622925":"和政县","622926":"东乡族自治县","622927":"积石山保安族东乡族撒拉族自治县"},"623000":{"623001":"合作市","623021":"临潭县","623022":"卓尼县","623023":"舟曲县","623024":"迭部县","623025":"玛曲县","623026":"碌曲县","623027":"夏河县"},"630000":{"630100":"西宁市","630200":"海东市","632200":"海北藏族自治州","632300":"黄南藏族自治州","632500":"海南藏族自治州","632600":"果洛藏族自治州","632700":"玉树藏族自治州","632800":"海西蒙古族藏族自治州"},"630100":{"630101":"市辖区","630102":"城东区","630103":"城中区","630104":"城西区","630105":"城北区","630121":"大通回族土族自治县","630122":"湟中县","630123":"湟源县"},"630200":{"630202":"乐都区","630203":"平安区","630222":"民和回族土族自治县","630223":"互助土族自治县","630224":"化隆回族自治县","630225":"循化撒拉族自治县"},"632200":{"632221":"门源回族自治县","632222":"祁连县","632223":"海晏县","632224":"刚察县"},"632300":{"632321":"同仁县","632322":"尖扎县","632323":"泽库县","632324":"河南蒙古族自治县"},"632500":{"632521":"共和县","632522":"同德县","632523":"贵德县","632524":"兴海县","632525":"贵南县"},"632600":{"632621":"玛沁县","632622":"班玛县","632623":"甘德县","632624":"达日县","632625":"久治县","632626":"玛多县"},"632700":{"632701":"玉树市","632722":"杂多县","632723":"称多县","632724":"治多县","632725":"囊谦县","632726":"曲麻莱县"},"632800":{"632801":"格尔木市","632802":"德令哈市","632803":"茫崖市","632821":"乌兰县","632822":"都兰县","632823":"天峻县","632857":"大柴旦行政委员会"},"640000":{"640100":"银川市","640200":"石嘴山市","640300":"吴忠市","640400":"固原市","640500":"中卫市"},"640100":{"640101":"市辖区","640104":"兴庆区","640105":"西夏区","640106":"金凤区","640121":"永宁县","640122":"贺兰县","640181":"灵武市"},"640200":{"640201":"市辖区","640202":"大武口区","640205":"惠农区","640221":"平罗县"},"640300":{"640301":"市辖区","640302":"利通区","640303":"红寺堡区","640323":"盐池县","640324":"同心县","640381":"青铜峡市"},"640400":{"640401":"市辖区","640402":"原州区","640422":"西吉县","640423":"隆德县","640424":"泾源县","640425":"彭阳县"},"640500":{"640501":"市辖区","640502":"沙坡头区","640521":"中宁县","640522":"海原县"},"650000":{"650100":"乌鲁木齐市","650200":"克拉玛依市","650400":"吐鲁番市","650500":"哈密市","652300":"昌吉回族自治州","652700":"博尔塔拉蒙古自治州","652800":"巴音郭楞蒙古自治州","652900":"阿克苏地区","653000":"克孜勒苏柯尔克孜自治州","653100":"喀什地区","653200":"和田地区","654000":"伊犁哈萨克自治州","654200":"塔城地区","654300":"阿勒泰地区","659000":"自治区直辖县级行政区划"},"650100":{"650101":"市辖区","650102":"天山区","650103":"沙依巴克区","650104":"新市区","650105":"水磨沟区","650106":"头屯河区","650107":"达坂城区","650109":"米东区","650121":"乌鲁木齐县"},"650200":{"650201":"市辖区","650202":"独山子区","650203":"克拉玛依区","650204":"白碱滩区","650205":"乌尔禾区"},"650400":{"650402":"高昌区","650421":"鄯善县","650422":"托克逊县"},"650500":{"650502":"伊州区","650521":"巴里坤哈萨克自治县","650522":"伊吾县"},"652300":{"652301":"昌吉市","652302":"阜康市","652323":"呼图壁县","652324":"玛纳斯县","652325":"奇台县","652327":"吉木萨尔县","652328":"木垒哈萨克自治县"},"652700":{"652701":"博乐市","652702":"阿拉山口市","652722":"精河县","652723":"温泉县"},"652800":{"652801":"库尔勒市","652822":"轮台县","652823":"尉犁县","652824":"若羌县","652825":"且末县","652826":"焉耆回族自治县","652827":"和静县","652828":"和硕县","652829":"博湖县","652871":"库尔勒经济技术开发区"},"652900":{"652901":"阿克苏市","652922":"温宿县","652923":"库车县","652924":"沙雅县","652925":"新和县","652926":"拜城县","652927":"乌什县","652928":"阿瓦提县","652929":"柯坪县"},"653000":{"653001":"阿图什市","653022":"阿克陶县","653023":"阿合奇县","653024":"乌恰县"},"653100":{"653101":"喀什市","653121":"疏附县","653122":"疏勒县","653123":"英吉沙县","653124":"泽普县","653125":"莎车县","653126":"叶城县","653127":"麦盖提县","653128":"岳普湖县","653129":"伽师县","653130":"巴楚县","653131":"塔什库尔干塔吉克自治县"},"653200":{"653201":"和田市","653221":"和田县","653222":"墨玉县","653223":"皮山县","653224":"洛浦县","653225":"策勒县","653226":"于田县","653227":"民丰县"},"654000":{"654002":"伊宁市","654003":"奎屯市","654004":"霍尔果斯市","654021":"伊宁县","654022":"察布查尔锡伯自治县","654023":"霍城县","654024":"巩留县","654025":"新源县","654026":"昭苏县","654027":"特克斯县","654028":"尼勒克县"},"654200":{"654201":"塔城市","654202":"乌苏市","654221":"额敏县","654223":"沙湾县","654224":"托里县","654225":"裕民县","654226":"和布克赛尔蒙古自治县"},"654300":{"654301":"阿勒泰市","654321":"布尔津县","654322":"富蕴县","654323":"福海县","654324":"哈巴河县","654325":"青河县","654326":"吉木乃县"},"659000":{"659001":"石河子市","659002":"阿拉尔市","659003":"图木舒克市","659004":"五家渠市","659006":"铁门关市"},"710000":{"710100":"台北市","710200":"高雄市","710300":"基隆市","710400":"台中市","710500":"台南市","710600":"新竹市","710700":"嘉义市"},"710100":{"710101":"内湖区","710102":"南港区","710103":"中正区","710104":"松山区","710105":"信义区","710106":"大安区","710107":"中山区","710108":"文山区","710109":"大同区","710110":"万华区","710111":"士林区","710112":"北投区"},"710200":{"710201":"新兴区","710202":"前金区","710203":"芩雅区","710204":"盐埕区","710205":"鼓山区","710206":"旗津区","710207":"前镇区","710208":"三民区","710209":"左营区","710210":"楠梓区","710211":"小港区"},"710300":{"710301":"仁爱区","710302":"信义区","710303":"中正区","710304":"暖暖区","710305":"安乐区","710307":"七堵区"},"710400":{"710301":"中区","710302":"东区","710303":"南区","710304":"西区","710305":"北区","710306":"北屯区","710307":"西屯区","710308":"南屯区"},"710500":{"710501":"中西区","710502":"东区","710503":"南区","710504":"北区","710505":"安平区","710506":"安南区"},"710600":{"710601":"东区","710602":"北区","710603":"香山区"},"710700":{"710701":"东区","710702":"西区"},"810000":{"810001":"中西區","810002":"灣仔區","810003":"東區","810004":"南區","810005":"油尖旺區","810006":"深水埗區","810007":"九龍城區","810008":"黃大仙區","810009":"觀塘區","810010":"荃灣區","810011":"屯門區","810012":"元朗區","810013":"北區","810014":"大埔區","810015":"西貢區","810016":"沙田區","810017":"葵青區","810018":"離島區"},"820000":{"820001":"花地瑪堂區","820002":"花王堂區","820003":"望德堂區","820004":"大堂區","820005":"風順堂區","820006":"嘉模堂區","820007":"路氹填海區","820008":"聖方濟各堂區"}}')},"23cb":function(t,e,n){"use strict";var r=n("5926"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},"23dc":function(t,e,n){"use strict";n("d44e")(Math,"Math",!0)},"23e7":function(t,e,n){"use strict";var r=n("cfe9"),o=n("06cf").f,i=n("9112"),a=n("cb2d"),u=n("6374"),c=n("e893"),s=n("94ca");t.exports=function(t,e){var n,l,f,d,m,p=t.target,h=t.global,g=t.stat;if(n=h?r:g?r[p]||u(p,{}):r[p]&&r[p].prototype)for(l in e){if(d=e[l],f=t.dontCallGetSet?(m=o(n,l))&&m.value:n[l],!s(h?l:p+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(t.sham||f&&f.sham)&&i(d,"sham",!0),a(n,l,d,t)}}},2401:function(t,e){!function(){"use strict";var t,e,n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(t){return function(e){return r=typeof(n=e),(null===n?"null":"object"===r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===t;var n,r}},o=function(t){return function(e){return typeof e===t}},i=r("string"),a=r("object"),u=r("array"),c=o("boolean"),s=o("function"),l=o("number"),f=function(){},d=function(t){return function(){return t}},m=function(t){return t},p=function(t,e){return t===e},h=function(t){return function(e){return!t(e)}},g=d(!1),v=d(!0),b=function(){return y},y={fold:function(t,e){return t()},isSome:g,isNone:v,getOr:e=m,getOrThunk:t=function(t){return t()},getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:e,orThunk:t,map:b,each:f,bind:b,exists:g,forall:v,filter:function(){return b()},toArray:function(){return[]},toString:d("none()")},_=function(t){var e=d(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:v,isNone:g,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return _(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:y},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},w={some:_,none:b,from:function(t){return null==t?y:_(t)}},x=Array.prototype.slice,O=Array.prototype.push,S=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},C=function(t,e){for(var n=0,r=t.length;n<r;n++){e(t[n],n)}},E=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n},k=function(t,e,n){return C(t,(function(t,r){n=e(n,t,r)})),n},T=function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return w.some(i);if(n(i,r))break}return w.none()},M=function(t,e){return T(t,e,g)},D=function(t,e){return function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!u(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);O.apply(e,t[n])}return e}(S(t,e))},A=function(t){var e=x.call(t,0);return e.reverse(),e},P=function(t,e){return e>=0&&e<t.length?w.some(t[e]):w.none()},R=function(t){return P(t,0)},I=function(t){return P(t,t.length-1)},z=function(){return(z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};var j,L=function(){return B(0,0)},B=function(t,e){return{major:t,minor:e}},F={nu:B,detect:function(t,e){var n=String(e).toLowerCase();return 0===t.length?L():function(t,e){var n=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}}(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return B(r(1),r(2))}(t,n)},unknown:L},N=function(t,e){return function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return w.none()}(e.brands,(function(e){var n=e.brand.toLowerCase();return M(t,(function(t){var e;return n===(null===(e=t.brand)||void 0===e?void 0:e.toLowerCase())})).map((function(t){return{current:t.name,version:F.nu(parseInt(e.version,10),0)}}))}))},H=function(t,e){var n=String(e).toLowerCase();return M(t,(function(t){return t.search(n)}))},V=function(t,e){return-1!==t.indexOf(e)},U=(j=/^\s+|\s+$/g,function(t){return t.replace(j,"")}),W=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,$=function(t){return function(e){return V(e,t)}},G=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return V(t,"edge/")&&V(t,"chrome")&&V(t,"safari")&&V(t,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,W],search:function(t){return V(t,"chrome")&&!V(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return V(t,"msie")||V(t,"trident")}},{name:"Opera",versionRegexes:[W,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:$("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:$("firefox")},{name:"Safari",versionRegexes:[W,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(V(t,"safari")||V(t,"mobile/"))&&V(t,"applewebkit")}}],K=[{name:"Windows",search:$("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return V(t,"iphone")||V(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:$("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:$("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:$("linux"),versionRegexes:[]},{name:"Solaris",search:$("sunos"),versionRegexes:[]},{name:"FreeBSD",search:$("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:$("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],q={browsers:d(G),oses:d(K)},X=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r("Edge"),isChrome:r("Chrome"),isIE:r("IE"),isOpera:r("Opera"),isFirefox:r("Firefox"),isSafari:r("Safari")}},Y={unknown:function(){return X({current:void 0,version:F.unknown()})},nu:X,edge:d("Edge"),chrome:d("Chrome"),ie:d("IE"),opera:d("Opera"),firefox:d("Firefox"),safari:d("Safari")},J=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r("Windows"),isiOS:r("iOS"),isAndroid:r("Android"),isOSX:r("OSX"),isLinux:r("Linux"),isSolaris:r("Solaris"),isFreeBSD:r("FreeBSD"),isChromeOS:r("ChromeOS")}},Q={unknown:function(){return J({current:void 0,version:F.unknown()})},nu:J,windows:d("Windows"),ios:d("iOS"),android:d("Android"),linux:d("Linux"),osx:d("OSX"),solaris:d("Solaris"),freebsd:d("FreeBSD"),chromeos:d("ChromeOS")},Z=function(t,e,n){var r=q.browsers(),o=q.oses(),i=e.bind((function(t){return N(r,t)})).orThunk((function(){return function(t,e){return H(t,e).map((function(t){var n=F.detect(t.versionRegexes,e);return{current:t.name,version:n}}))}(r,t)})).fold(Y.unknown,Y.nu),a=function(t,e){return H(t,e).map((function(t){var n=F.detect(t.versionRegexes,e);return{current:t.name,version:n}}))}(o,t).fold(Q.unknown,Q.nu),u=function(t,e,n,r){var o=t.isiOS()&&!0===/ipad/i.test(n),i=t.isiOS()&&!o,a=t.isiOS()||t.isAndroid(),u=a||r("(pointer:coarse)"),c=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!c,l=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),f=!s&&!c&&!l;return{isiPad:d(o),isiPhone:d(i),isTablet:d(c),isPhone:d(s),isTouch:d(u),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:d(l),isDesktop:d(f)}}(a,i,t,n);return{browser:i,os:a,deviceType:u}},tt=function(t){return window.matchMedia(t).matches},et=function(t){var e,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,e=t.apply(null,r)),e}}((function(){return Z(navigator.userAgent,w.from(navigator.userAgentData),tt)})),nt=function(t){if(null==t)throw new Error("Node cannot be null or undefined");return{dom:t}},rt={fromHtml:function(t,e){var n=(e||document).createElement("div");if(n.innerHTML=t,!n.hasChildNodes()||n.childNodes.length>1)throw new Error("HTML must have a single root node");return nt(n.childNodes[0])},fromTag:function(t,e){var n=(e||document).createElement(t);return nt(n)},fromText:function(t,e){var n=(e||document).createTextNode(t);return nt(n)},fromDom:nt,fromPoint:function(t,e,n){return w.from(t.dom.elementFromPoint(e,n)).map(nt)}},ot=function(t,e){return t.dom===e.dom},it=function(t,e){return n=t.dom,r=e.dom,function(t,e,n){return 0!=(t.compareDocumentPosition(e)&n)}(n,r,Node.DOCUMENT_POSITION_CONTAINED_BY);var n,r},at=function(t,e){return et().browser.isIE()?it(t,e):function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)}(t,e)},ut=function(t,e){var n=t.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},ct=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),st=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),lt=tinymce.util.Tools.resolve("tinymce.util.VK"),ft=Object.keys,dt=function(t,e){for(var n=ft(t),r=0,o=n.length;r<o;r++){var i=n[r];e(t[i],i)}},mt=function(t,e){var n={};return function(t,e,n,r){dt(t,(function(t,o){(e(t,o)?n:r)(t,o)}))}(t,e,function(t){return function(e,n){t[n]=e}}(n),f),n};"undefined"!=typeof window?window:Function("return this;")();var pt,ht=function(t){return t.dom.nodeName.toLowerCase()},gt=(pt=1,function(t){return function(t){return t.dom.nodeType}(t)===pt}),vt=function(t){return function(e){return gt(e)&&ht(e)===t}},bt=function(t,e){var n=t.dom;dt(e,(function(t,e){!function(t,e,n){if(!(i(n)||c(n)||l(n)))throw new Error("Attribute value was not simple");t.setAttribute(e,n+"")}(n,e,t)}))},yt=function(t){return k(t.dom.attributes,(function(t,e){return t[e.name]=e.value,t}),{})},_t=function(t){return w.from(t.dom.parentNode).map(rt.fromDom)},wt=function(t){return S(t.dom.childNodes,rt.fromDom)},xt=function(t,e){var n=t.dom.childNodes;return w.from(n[e]).map(rt.fromDom)},Ot=function(t){return xt(t,0)},St=function(t){return xt(t,t.dom.childNodes.length-1)},Ct=function(t,e){_t(t).each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},Et=function(t,e){t.dom.appendChild(e.dom)},kt=function(t,e){C(e,(function(e){Et(t,e)}))},Tt=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},Mt=function(t){return function(t,e){return rt.fromDom(t.dom.cloneNode(e))}(t,!0)},Dt=function(t,e){var n=function(t,e){var n=rt.fromTag(e),r=yt(t);return bt(n,r),n}(t,e);Ct(t,n);var r=wt(t);return kt(n,r),Tt(t),n},At=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Pt=tinymce.util.Tools.resolve("tinymce.util.Tools"),Rt=function(t){return function(e){return e&&e.nodeName.toLowerCase()===t}},It=function(t){return function(e){return e&&t.test(e.nodeName)}},zt=function(t){return t&&3===t.nodeType},jt=It(/^(OL|UL|DL)$/),Lt=It(/^(OL|UL)$/),Bt=Rt("ol"),Ft=It(/^(LI|DT|DD)$/),Nt=It(/^(DT|DD)$/),Ht=It(/^(TH|TD)$/),Vt=Rt("br"),Ut=function(t,e){return e&&!!t.schema.getTextBlockElements()[e.nodeName]},Wt=function(t,e){return t&&t.nodeName in e},$t=function(t,e,n){var r=t.isEmpty(e);return!(n&&t.select("span[data-mce-type=bookmark]",e).length>0)&&r},Gt=function(t,e){return t.isChildOf(e,t.getRoot())},Kt=function(t,e){var n,r,o,i=t.dom,a=t.schema.getBlockElements(),u=i.createFragment(),c=function(t){var e=t.getParam("forced_root_block","p");return!1===e?"":!0===e?"p":e}(t);if(c&&((r=i.create(c)).tagName===c.toUpperCase()&&i.setAttribs(r,function(t){return t.getParam("forced_root_block_attrs",{})}(t)),Wt(e.firstChild,a)||u.appendChild(r)),e)for(;n=e.firstChild;){var s=n.nodeName;o||"SPAN"===s&&"bookmark"===n.getAttribute("data-mce-type")||(o=!0),Wt(n,a)?(u.appendChild(n),r=null):c?(r||(r=i.create(c),u.appendChild(r)),r.appendChild(n)):u.appendChild(n)}return c?o||r.appendChild(i.create("br",{"data-mce-bogus":"1"})):u.appendChild(i.create("br")),u},qt=At.DOM,Xt=vt("dd"),Yt=vt("dt"),Jt=function(t,e){Xt(e)?Dt(e,"dt"):Yt(e)&&_t(e).each((function(n){return function(t,e,n){var r=qt.select('span[data-mce-type="bookmark"]',e),o=Kt(t,n),i=qt.createRng();i.setStartAfter(n),i.setEndAfter(e);for(var a,u=i.extractContents(),c=u.firstChild;c;c=c.firstChild)if("LI"===c.nodeName&&t.dom.isEmpty(c)){qt.remove(c);break}t.dom.isEmpty(u)||qt.insertAfter(u,e),qt.insertAfter(o,e),$t(t.dom,n.parentNode)&&(a=n.parentNode,Pt.each(r,(function(t){a.parentNode.insertBefore(t,n.parentNode)})),qt.remove(a)),qt.remove(n),$t(t.dom,e)&&qt.remove(e)}(t,n.dom,e.dom)}))},Qt=function(t){Yt(t)&&Dt(t,"dd")},Zt=function(t,e){if(zt(t))return{container:t,offset:e};var n=ct.getNode(t,e);return zt(n)?{container:n,offset:e>=t.childNodes.length?n.data.length:0}:n.previousSibling&&zt(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&zt(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:t,offset:e}},te=function(t){var e=t.cloneRange(),n=Zt(t.startContainer,t.startOffset);e.setStart(n.container,n.offset);var r=Zt(t.endContainer,t.endOffset);return e.setEnd(r.container,r.offset),e},ee=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),ne=function(t,e){var n=e||t.selection.getStart(!0);return t.dom.getParent(n,"OL,UL,DL",ie(t,n))},re=function(t){var e=ne(t),n=t.selection.getSelectedBlocks();return function(t,e){return t&&1===e.length&&e[0]===t}(e,n)?function(t){return E(t.querySelectorAll("ol,ul,dl"),jt)}(e):E(n,(function(t){return jt(t)&&e!==t}))},oe=function(t){var e=t.selection.getSelectedBlocks();return E(function(t,e){var n=Pt.map(e,(function(e){var n=t.dom.getParent(e,"li,dd,dt",ie(t,e));return n||e}));return ee.unique(n)}(t,e),Ft)},ie=function(t,e){var n=t.dom.getParents(e,"TD,TH");return n.length>0?n[0]:t.getBody()},ae=function(t,e){var n=t.dom.getParents(e,"ol,ul",ie(t,e));return I(n)},ue=function(t){var e=function(t){var e=ae(t,t.selection.getStart()),n=E(t.selection.getSelectedBlocks(),Lt);return e.toArray().concat(n)}(t);return ce(t,e)},ce=function(t,e){var n=S(e,(function(e){return ae(t,e).getOr(e)}));return ee.unique(n)},se=function(t,e,n){return void 0===n&&(n=p),t.exists((function(t){return n(t,e)}))},le=function(t,e,n){return t.isSome()&&e.isSome()?w.some(n(t.getOrDie(),e.getOrDie())):w.none()},fe=function(t,e,n){return t.fire("ListMutation",{action:e,element:n})},de=function(t,e,n){if(!i(n))throw new Error("CSS value must be a string: "+n);(function(t){return void 0!==t.style&&s(t.style.getPropertyValue)})(t)&&t.style.setProperty(e,n)},me=function(t,e){Et(t.item,e.list)},pe=function(t,e){var n={list:rt.fromTag(e,t),item:rt.fromTag("li",t)};return Et(n.list,n.item),n},he=function(t,e,n){var r=e.slice(0,n.depth);return I(r).each((function(e){!function(t,e){Et(t.list,e),t.item=e}(e,function(t,e,n){var r=rt.fromTag("li",t);return bt(r,e),kt(r,n),r}(t,n.itemAttributes,n.content)),function(t,e){ht(t.list)!==e.listType&&(t.list=Dt(t.list,e.listType)),bt(t.list,e.listAttributes)}(e,n)})),r},ge=function(t,e,n){var r,o=function(t,e,n){for(var r=[],o=0;o<n;o++)r.push(pe(t,e.listType));return r}(t,n,n.depth-e.length);return function(t){for(var e=1;e<t.length;e++)me(t[e-1],t[e])}(o),function(t,e){for(var n=0;n<t.length-1;n++)r=t[n].item,o="list-style-type",i="none",a=void 0,a=r.dom,de(a,o,i);var r,o,i,a;I(t).each((function(t){bt(t.list,e.listAttributes),bt(t.item,e.itemAttributes),kt(t.item,e.content)}))}(o,n),r=o,le(I(e),R(r),me),e.concat(o)},ve=function(t){return ut(t,"OL,UL")},be=function(t){return Ot(t).exists(ve)},ye=function(t){return t.depth>0},_e=function(t){return t.isSelected},we=function(t){var e=wt(t),n=St(t).exists(ve)?e.slice(0,-1):e;return S(n,Mt)},xe=function(t){return C(t,(function(e,n){(function(t,e){var n=t[e].depth,r=function(t){return t.depth===n&&!t.dirty},o=function(t){return t.depth<n};return T(A(t.slice(0,e)),r,o).orThunk((function(){return T(t.slice(e+1),r,o)}))})(t,n).fold((function(){e.dirty&&function(t){t.listAttributes=mt(t.listAttributes,(function(t,e){return"start"!==e}))}(e)}),(function(t){return r=t,(n=e).listType=r.listType,void(n.listAttributes=z({},r.listAttributes));var n,r}))})),t},Oe=function(t,e,n,r){return Ot(r).filter(ve).fold((function(){e.each((function(t){ot(t.start,r)&&n.set(!0)}));var o=function(t,e,n){return _t(t).filter(gt).map((function(r){return{depth:e,dirty:!1,isSelected:n,content:we(t),itemAttributes:yt(t),listAttributes:yt(r),listType:ht(r)}}))}(r,t,n.get());e.each((function(t){ot(t.end,r)&&n.set(!1)}));var i=St(r).filter(ve).map((function(r){return Se(t,e,n,r)})).getOr([]);return o.toArray().concat(i)}),(function(r){return Se(t,e,n,r)}))},Se=function(t,e,n,r){return D(wt(r),(function(r){return(ve(r)?Se:Oe)(t+1,e,n,r)}))},Ce=function(t,e){var n=xe(e);return S(n,(function(e){var n,r,o,i=(n=e.content,o=(r||document).createDocumentFragment(),C(n,(function(t){o.appendChild(t.dom)})),rt.fromDom(o));return rt.fromDom(Kt(t,i.dom))}))},Ee=function(t,e){var n=xe(e);return function(t,e){var n=k(e,(function(e,n){return n.depth>e.length?ge(t,e,n):he(t,e,n)}),[]);return R(n).map((function(t){return t.list}))}(t.contentDocument,n).toArray()},ke=function(t,e,n){var r=function(t,e){var n,r=(n=!1,{get:function(){return n},set:function(t){n=t}});return S(t,(function(t){return{sourceList:t,entries:Se(0,e,r,t)}}))}(e,function(t){var e=S(oe(t),rt.fromDom);return le(M(e,h(be)),M(A(e),h(be)),(function(t,e){return{start:t,end:e}}))}(t));C(r,(function(e){!function(t,e){C(E(t,_e),(function(t){return function(t,e){switch(t){case"Indent":e.depth++;break;case"Outdent":e.depth--;break;case"Flatten":e.depth=0}e.dirty=!0}(e,t)}))}(e.entries,n);var r,o=function(t,e){return D(function(t,e){if(0===t.length)return[];for(var n=e(t[0]),r=[],o=[],i=0,a=t.length;i<a;i++){var u=t[i],c=e(u);c!==n&&(r.push(o),o=[]),n=c,o.push(u)}return 0!==o.length&&r.push(o),r}(e,ye),(function(e){return R(e).exists(ye)?Ee(t,e):Ce(t,e)}))}(t,e.entries);C(o,(function(e){fe(t,"Indent"===n?"IndentList":"OutdentList",e.dom)})),r=e.sourceList,C(o,(function(t){Ct(r,t)})),Tt(e.sourceList)}))},Te=function(t,e){var n=S(ue(t),rt.fromDom),r=S(function(t){return E(oe(t),Nt)}(t),rt.fromDom),o=!1;if(n.length||r.length){var i=t.selection.getBookmark();ke(t,n,e),function(t,e,n){C(n,"Indent"===e?Qt:function(e){return Jt(t,e)})}(t,e,r),t.selection.moveToBookmark(i),t.selection.setRng(te(t.selection.getRng())),t.nodeChanged(),o=!0}return o},Me=function(t){return Te(t,"Indent")},De=function(t){return Te(t,"Outdent")},Ae=function(t){return Te(t,"Flatten")},Pe=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),Re=At.DOM,Ie=function(t){var e={},n=function(n){var r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];if(1===r.nodeType){var i=Re.create("span",{"data-mce-type":"bookmark"});r.hasChildNodes()?(o=Math.min(o,r.childNodes.length-1),n?r.insertBefore(i,r.childNodes[o]):Re.insertAfter(i,r.childNodes[o])):r.appendChild(i),r=i,o=0}e[n?"startContainer":"endContainer"]=r,e[n?"startOffset":"endOffset"]=o};return n(!0),t.collapsed||n(),e},ze=function(t){var e=function(e){var n,r=n=t[e?"startContainer":"endContainer"],o=t[e?"startOffset":"endOffset"];r&&(1===r.nodeType&&(o=function(t){for(var e=t.parentNode.firstChild,n=0;e;){if(e===t)return n;1===e.nodeType&&"bookmark"===e.getAttribute("data-mce-type")||n++,e=e.nextSibling}return-1}(r),r=r.parentNode,Re.remove(n),!r.hasChildNodes()&&Re.isBlock(r)&&r.appendChild(Re.create("br"))),t[e?"startContainer":"endContainer"]=r,t[e?"startOffset":"endOffset"]=o)};e(!0),e();var n=Re.createRng();return n.setStart(t.startContainer,t.startOffset),t.endContainer&&n.setEnd(t.endContainer,t.endOffset),te(n)},je=function(t){switch(t){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},Le=function(t){return/\btox\-/.test(t.className)},Be=function(t,e,n){var r=function(t){var r=T(t.parents,jt,Ht).filter((function(t){return t.nodeName===e&&!Le(t)})).isSome();n(r)},o=t.dom.getParents(t.selection.getNode());return r({parents:o}),t.on("NodeChange",r),function(){return t.off("NodeChange",r)}},Fe=function(t,e){Pt.each(e,(function(e,n){t.setAttribute(n,e)}))},Ne=function(t,e,n){!function(t,e,n){var r=n["list-style-type"]?n["list-style-type"]:null;t.setStyle(e,"list-style-type",r)}(t,e,n),function(t,e,n){Fe(e,n["list-attributes"]),Pt.each(t.select("li",e),(function(t){Fe(t,n["list-item-attributes"])}))}(t,e,n)},He=function(t,e,n,r){var o=e[n?"startContainer":"endContainer"],i=e[n?"startOffset":"endOffset"];for(1===o.nodeType&&(o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o),!n&&Vt(o.nextSibling)&&(o=o.nextSibling);o.parentNode!==r;){if(Ut(t,o))return o;if(/^(TD|TH)$/.test(o.parentNode.nodeName))return o;o=o.parentNode}return o},Ve=function(t,e,n){var r=t.selection.getRng(),o="LI",i=ie(t,t.selection.getStart(!0)),a=t.dom;if("false"!==a.getContentEditable(t.selection.getNode())){"DL"===(e=e.toUpperCase())&&(o="DT");var u=Ie(r),c=function(t,e,n){for(var r,o=[],i=t.dom,a=He(t,e,!0,n),u=He(t,e,!1,n),c=[],s=a;s&&(c.push(s),s!==u);s=s.nextSibling);return Pt.each(c,(function(e){if(Ut(t,e))return o.push(e),void(r=null);if(i.isBlock(e)||Vt(e))return Vt(e)&&i.remove(e),void(r=null);var a=e.nextSibling;Pe.isBookmarkNode(e)&&(jt(a)||Ut(t,a)||!a&&e.parentNode===n)?r=null:(r||(r=i.create("p"),e.parentNode.insertBefore(r,e),o.push(r)),r.appendChild(e))})),o}(t,r,i);Pt.each(c,(function(r){var i,u=r.previousSibling,c=r.parentNode;Ft(c)||(u&&jt(u)&&u.nodeName===e&&function(t,e,n){var r=t.getStyle(e,"list-style-type"),o=n?n["list-style-type"]:"";return r===(o=null===o?"":o)}(a,u,n)?(i=u,r=a.rename(r,o),u.appendChild(r)):(i=a.create(e),r.parentNode.insertBefore(i,r),i.appendChild(r),r=a.rename(r,o)),function(t,e,n){Pt.each(n,(function(n){var r;return t.setStyle(e,((r={})[n]="",r))}))}(a,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),Ne(a,i,n),We(t.dom,i))})),t.selection.setRng(ze(u))}},Ue=function(t,e,n){return function(t,e){return t&&e&&jt(t)&&t.nodeName===e.nodeName}(e,n)&&function(t,e,n){return t.getStyle(e,"list-style-type",!0)===t.getStyle(n,"list-style-type",!0)}(t,e,n)&&(r=n,e.className===r.className);var r},We=function(t,e){var n,r;if(n=e.nextSibling,Ue(t,e,n)){for(;r=n.firstChild;)e.appendChild(r);t.remove(n)}if(n=e.previousSibling,Ue(t,e,n)){for(;r=n.lastChild;)e.insertBefore(r,e.firstChild);t.remove(n)}},$e=function(t,e,n,r,o){var i=jt(e);if(i&&e.nodeName===r&&!Ge(o))Ae(t);else{Ve(t,r,o);var a=Ie(t.selection.getRng()),u=i?function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([e],n,!0):n;Pt.each(u,(function(e){!function(t,e,n,r){if(e.nodeName!==n){var o=t.dom.rename(e,n);Ne(t.dom,o,r),fe(t,je(n),o)}else Ne(t.dom,e,r),fe(t,je(n),e)}(t,e,r,o)})),t.selection.setRng(ze(a))}},Ge=function(t){return"list-style-type"in t},Ke=function(t,e,n){var r=ne(t),o=re(t),i=a(n)?n:{};o.length>0?$e(t,r,o,e,i):function(t,e,n,r){if(e!==t.getBody())if(e)if(e.nodeName!==n||Ge(r)||Le(e)){var o=Ie(t.selection.getRng());Ne(t.dom,e,r);var i=t.dom.rename(e,n);We(t.dom,i),t.selection.setRng(ze(o)),Ve(t,n,r),fe(t,je(n),i)}else Ae(t);else Ve(t,n,r),fe(t,je(n),e)}(t,r,e,i)},qe=At.DOM,Xe=function(t,e){var n=Pt.grep(t.select("ol,ul",e));Pt.each(n,(function(e){!function(t,e){var n,r=e.parentNode;"LI"===r.nodeName&&r.firstChild===e&&((n=r.previousSibling)&&"LI"===n.nodeName?(n.appendChild(e),$t(t,r)&&qe.remove(r)):qe.setStyle(r,"listStyleType","none"));jt(r)&&((n=r.previousSibling)&&"LI"===n.nodeName&&n.appendChild(e))}(t,e)}))},Ye=function(t,e,n,r){var o=e.startContainer,i=e.startOffset;if(zt(o)&&(n?i<o.data.length:i>0))return o;var a=t.schema.getNonEmptyElements();1===o.nodeType&&(o=ct.getNode(o,i));var u=new st(o,r);for(n&&function(t,e){return!!Vt(e)&&(t.isBlock(e.nextSibling)&&!Vt(e.previousSibling))}(t.dom,o)&&u.next();o=u[n?"next":"prev2"]();){if("LI"===o.nodeName&&!o.hasChildNodes())return o;if(a[o.nodeName])return o;if(zt(o)&&o.data.length>0)return o}},Je=function(t,e){var n=e.childNodes;return 1===n.length&&!jt(n[0])&&t.isBlock(n[0])},Qe=function(t,e,n){var r,o=Je(t,n)?n.firstChild:n;if(function(t,e){Je(t,e)&&t.remove(e.firstChild,!0)}(t,e),!$t(t,e,!0))for(;r=e.firstChild;)o.appendChild(r)},Ze=function(t,e,n){var r,o=e.parentNode;if(Gt(t,e)&&Gt(t,n)){jt(n.lastChild)&&(r=n.lastChild),o===n.lastChild&&Vt(o.previousSibling)&&t.remove(o.previousSibling);var i=n.lastChild;i&&Vt(i)&&e.hasChildNodes()&&t.remove(i),$t(t,n,!0)&&t.$(n).empty(),Qe(t,e,n),r&&n.appendChild(r);var a=at(rt.fromDom(n),rt.fromDom(e))?t.getParents(e,jt,n):[];t.remove(e),C(a,(function(e){$t(t,e)&&e!==t.getRoot()&&t.remove(e)}))}},tn=function(t,e,n,r){var o=t.dom;if(o.isEmpty(r))!function(t,e,n){t.dom.$(n).empty(),Ze(t.dom,e,n),t.selection.setCursorLocation(n,0)}(t,n,r);else{var i=Ie(e);Ze(o,n,r),t.selection.setRng(ze(i))}},en=function(t,e){var n=t.dom,r=t.selection,o=r.getStart(),i=ie(t,o),a=n.getParent(r.getStart(),"LI",i);if(a){var u=a.parentNode;if(u===t.getBody()&&$t(n,u))return!0;var c=te(r.getRng()),s=n.getParent(Ye(t,c,e,i),"LI",i);if(s&&s!==a)return t.undoManager.transact((function(){var n;e?tn(t,c,s,a):(n=a).parentNode.firstChild===n?De(t):function(t,e,n,r){var o=Ie(e);Ze(t.dom,n,r);var i=ze(o);t.selection.setRng(i)}(t,c,a,s)})),!0;if(!s&&!e&&0===c.startOffset&&0===c.endOffset)return t.undoManager.transact((function(){Ae(t)})),!0}return!1},nn=function(t,e){return en(t,e)||function(t,e){var n=t.dom,r=t.selection.getStart(),o=ie(t,r),i=n.getParent(r,n.isBlock,o);if(i&&n.isEmpty(i)){var a=te(t.selection.getRng()),u=n.getParent(Ye(t,a,e,o),"LI",o);if(u)return t.undoManager.transact((function(){!function(t,e,n){var r=t.getParent(e.parentNode,t.isBlock,n);t.remove(e),r&&t.isEmpty(r)&&t.remove(r)}(n,i,o),We(n,u.parentNode),t.selection.select(u,!0),t.selection.collapse(e)})),!0}return!1}(t,e)},rn=function(t,e){return t.selection.isCollapsed()?nn(t,e):function(t){var e=t.selection.getStart(),n=ie(t,e);return!!(t.dom.getParent(e,"LI,DT,DD",n)||oe(t).length>0)&&(t.undoManager.transact((function(){t.execCommand("Delete"),Xe(t.dom,t.getBody())})),!0)}(t)},on=function(t){var e=A(U(t).split("")),n=S(e,(function(t,e){var n=t.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,e)*n}));return k(n,(function(t,e){return t+e}),0)},an=function(t){if(--t<0)return"";var e=t%26,n=Math.floor(t/26);return an(n)+String.fromCharCode("A".charCodeAt(0)+e)},un=function(t){var e,n,r=ne(t);Bt(r)&&t.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:(e={start:t.dom.getAttrib(r,"start","1"),listStyleType:w.some(t.dom.getStyle(r,"list-style-type"))},n=parseInt(e.start,10),se(e.listStyleType,"upper-alpha")?an(n):se(e.listStyleType,"lower-alpha")?an(n).toLowerCase():e.start)},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(e){(function(t){switch(function(t){return/^[0-9]+$/.test(t)?2:function(t){return/^[A-Z]+$/.test(t)}(t)?0:function(t){return/^[a-z]+$/.test(t)}(t)?1:function(t){return t.length>0}(t)?4:3}(t)){case 2:return w.some({listStyleType:w.none(),start:t});case 0:return w.some({listStyleType:w.some("upper-alpha"),start:on(t).toString()});case 1:return w.some({listStyleType:w.some("lower-alpha"),start:on(t).toString()});case 3:return w.some({listStyleType:w.none(),start:""});case 4:return w.none()}})(e.getData().start).each((function(e){t.execCommand("mceListUpdate",!1,{attrs:{start:"1"===e.start?"":e.start},styles:{"list-style-type":e.listStyleType.getOr("")}})})),e.close()}})},cn=function(t,e){return function(){var n=ne(t);return n&&n.nodeName===e}},sn=function(t){t.addCommand("mceListProps",(function(){un(t)}))},ln=function(t){t.on("BeforeExecCommand",(function(e){var n=e.command.toLowerCase();"indent"===n?Me(t):"outdent"===n&&De(t)})),t.addCommand("InsertUnorderedList",(function(e,n){Ke(t,"UL",n)})),t.addCommand("InsertOrderedList",(function(e,n){Ke(t,"OL",n)})),t.addCommand("InsertDefinitionList",(function(e,n){Ke(t,"DL",n)})),t.addCommand("RemoveList",(function(){Ae(t)})),sn(t),t.addCommand("mceListUpdate",(function(e,n){a(n)&&function(t,e){var n=ne(t);t.undoManager.transact((function(){a(e.styles)&&t.dom.setStyles(n,e.styles),a(e.attrs)&&dt(e.attrs,(function(e,r){return t.dom.setAttrib(n,r,e)}))}))}(t,n)})),t.addQueryStateHandler("InsertUnorderedList",cn(t,"UL")),t.addQueryStateHandler("InsertOrderedList",cn(t,"OL")),t.addQueryStateHandler("InsertDefinitionList",cn(t,"DL"))},fn=function(t){(function(t){return t.getParam("lists_indent_on_tab",!0)})(t)&&function(t){t.on("keydown",(function(e){e.keyCode!==lt.TAB||lt.metaKeyPressed(e)||t.undoManager.transact((function(){(e.shiftKey?De(t):Me(t))&&e.preventDefault()}))}))}(t),function(t){t.on("keydown",(function(e){e.keyCode===lt.BACKSPACE?rn(t,!1)&&e.preventDefault():e.keyCode===lt.DELETE&&rn(t,!0)&&e.preventDefault()}))}(t)};n.add("lists",(function(t){return!1===t.hasPlugin("rtc",!0)?(fn(t),ln(t)):sn(t),function(t){var e=function(e){return function(){return t.execCommand(e)}};t.hasPlugin("advlist")||(t.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:e("InsertOrderedList"),onSetup:function(e){return Be(t,"OL",e.setActive)}}),t.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:e("InsertUnorderedList"),onSetup:function(e){return Be(t,"UL",e.setActive)}}))}(t),function(t){var e={text:"List properties...",icon:"ordered-list",onAction:function(){return t.execCommand("mceListProps")},onSetup:function(e){return Be(t,"OL",(function(t){return e.setDisabled(!t)}))}};t.ui.registry.addMenuItem("listprops",e),t.ui.registry.addContextMenu("lists",{update:function(e){var n=ne(t,e);return Bt(n)?["listprops"]:[]}})}(t),function(t){return{backspaceDelete:function(e){rn(t,e)}}}(t)}))}()},"241c":function(t,e,n){"use strict";var r=n("ca84"),o=n("7839").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"241e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPCE=e.UPC=e.EAN2=e.EAN5=e.EAN8=e.EAN13=void 0;var r=s(n("89a2")),o=s(n("1ba5")),i=s(n("583f")),a=s(n("a5d2")),u=s(n("e8b2")),c=s(n("be98"));function s(t){return t&&t.__esModule?t:{default:t}}e.EAN13=r.default,e.EAN8=o.default,e.EAN5=i.default,e.EAN2=a.default,e.UPC=u.default,e.UPCE=c.default},2444:function(t,e,n){"use strict";(function(e){var r=n("c532"),o=n("c8af"),i={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e)&&(u=n("b50d")),u),transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){c.headers[t]=r.merge(i)})),t.exports=c}).call(this,n("4362"))},2532:function(t,e,n){"use strict";var r=n("23e7"),o=n("e330"),i=n("5a34"),a=n("1d80"),u=n("577e"),c=n("ab13"),s=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~s(u(a(this)),u(i(t)),arguments.length>1?arguments[1]:void 0)}})},"25f0":function(t,e,n){"use strict";var r=n("5e77").PROPER,o=n("cb2d"),i=n("825a"),a=n("577e"),u=n("d039"),c=n("90d8"),s=RegExp.prototype,l=s.toString,f=u((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),d=r&&"toString"!==l.name;(f||d)&&o(s,"toString",(function(){var t=i(this);return"/"+a(t.source)+"/"+a(c(t))}),{unsafe:!0})},2626:function(t,e,n){"use strict";var r=n("d066"),o=n("edd0"),i=n("b622"),a=n("83ab"),u=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[u]&&o(e,u,{configurable:!0,get:function(){return this}})}},"26ee":function(t,e,n){"use strict";var r=n("5ea3"),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();e.a=i},"271a":function(t,e,n){"use strict";var r=n("cb2d"),o=n("e330"),i=n("577e"),a=n("d6d6"),u=URLSearchParams,c=u.prototype,s=o(c.getAll),l=o(c.has),f=new u("a=1");!f.has("a",2)&&f.has("a",void 0)||r(c,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var r=s(this,t);a(e,1);for(var o=i(n),u=0;u<r.length;)if(r[u++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0})},2877:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,u){var c,s="function"==typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},s._ssrRegister=c):o&&(c=u?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(s.functional){s._injectStyles=c;var l=s.render;s.render=function(t,e){return c.call(e),l(t,e)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:s}}n.d(e,"a",(function(){return r}))},2909:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return o}));n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");n("fb6a"),n("b0c0"),n("ac1f"),n("00b4"),n("25f0");n("d9e2");function o(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},"2a4a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.START_BIN="1010",e.END_BIN="11101",e.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},"2a62":function(t,e,n){"use strict";var r=n("c65b"),o=n("825a"),i=n("dc4a");t.exports=function(t,e,n){var a,u;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){u=!0,a=t}if("throw"===e)throw n;if(u)throw a;return o(a),n}},"2b3d":function(t,e,n){"use strict";n("4002")},"2ba4":function(t,e,n){"use strict";var r=n("40d5"),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},"2cf4":function(t,e,n){"use strict";var r,o,i,a,u=n("cfe9"),c=n("2ba4"),s=n("0366"),l=n("1626"),f=n("1a2d"),d=n("d039"),m=n("1be4"),p=n("f36a"),h=n("cc12"),g=n("d6d6"),v=n("52c8"),b=n("9adc"),y=u.setImmediate,_=u.clearImmediate,w=u.process,x=u.Dispatch,O=u.Function,S=u.MessageChannel,C=u.String,E=0,k={};d((function(){r=u.location}));var T=function(t){if(f(k,t)){var e=k[t];delete k[t],e()}},M=function(t){return function(){T(t)}},D=function(t){T(t.data)},A=function(t){u.postMessage(C(t),r.protocol+"//"+r.host)};y&&_||(y=function(t){g(arguments.length,1);var e=l(t)?t:O(t),n=p(arguments,1);return k[++E]=function(){c(e,void 0,n)},o(E),E},_=function(t){delete k[t]},b?o=function(t){w.nextTick(M(t))}:x&&x.now?o=function(t){x.now(M(t))}:S&&!v?(a=(i=new S).port2,i.port1.onmessage=D,o=s(a.postMessage,a)):u.addEventListener&&l(u.postMessage)&&!u.importScripts&&r&&"file:"!==r.protocol&&!d(A)?(o=A,u.addEventListener("message",D,!1)):o="onreadystatechange"in h("script")?function(t){m.appendChild(h("script")).onreadystatechange=function(){m.removeChild(this),T(t)}}:function(t){setTimeout(M(t),0)}),t.exports={set:y,clear:_}},"2d83":function(t,e,n){"use strict";var r=n("387f");t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f74":function(t,e,n){"use strict";e.a=function(){return!1}},"30b5":function(t,e,n){"use strict";var r=n("c532");function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}return i&&(t+=(-1===t.indexOf("?")?"?":"&")+i),t}},3410:function(t,e,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("7b0b"),a=n("e163"),u=n("e177");r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!u},{getPrototypeOf:function(t){return a(i(t))}})},"349c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE39=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("e762");var a=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=t.toUpperCase(),n.mod43&&(t+=function(t){return u[t]}(function(t){for(var e=0,n=0;n<t.length;n++)e+=l(t[n]);return e%=43}(t))),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"encode",value:function(){for(var t=s("*"),e=0;e<this.data.length;e++)t+=s(this.data[e])+"0";return{data:t+=s("*"),text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),e}(((r=i)&&r.__esModule?r:{default:r}).default),u=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],c=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function s(t){return function(t){return c[t].toString(2)}(l(t))}function l(t){return u.indexOf(t)}e.CODE39=a},3511:function(t,e,n){"use strict";var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},3529:function(t,e,n){"use strict";var r=n("23e7"),o=n("c65b"),i=n("59ed"),a=n("f069"),u=n("e667"),c=n("2266");r({target:"Promise",stat:!0,forced:n("5eed")},{race:function(t){var e=this,n=a.f(e),r=n.reject,s=u((function(){var a=i(e.resolve);c(t,(function(t){o(a,e,t).then(n.resolve,r)}))}));return s.error&&r(s.value),n.promise}})},"35a1":function(t,e,n){"use strict";var r=n("f5df"),o=n("dc4a"),i=n("7234"),a=n("3f8c"),u=n("b622")("iterator");t.exports=function(t){if(!i(t))return o(t,u)||o(t,"@@iterator")||a[r(t)]}},"37e8":function(t,e,n){"use strict";var r=n("83ab"),o=n("aed9"),i=n("9bf2"),a=n("825a"),u=n("fc6a"),c=n("df75");e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=u(e),o=c(e),s=o.length,l=0;s>l;)i.f(t,n=o[l++],r[n]);return t}},"384f":function(t,e,n){"use strict";var r=n("e330"),o=n("5388"),i=n("cb27"),a=i.Set,u=i.proto,c=r(u.forEach),s=r(u.keys),l=s(new a).next;t.exports=function(t,e,n){return n?o({iterator:s(t),next:l},e):c(t,e)}},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t}},3934:function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},"395e":function(t,e,n){"use strict";var r=n("dc19"),o=n("cb27").has,i=n("8e16"),a=n("7f65"),u=n("5388"),c=n("2a62");t.exports=function(t){var e=r(this),n=a(t);if(i(e)<n.size)return!1;var s=n.getIterator();return!1!==u(s,(function(t){if(!o(e,t))return c(s,"normal",!1)}))}},"3a34":function(t,e,n){"use strict";var r=n("83ab"),o=n("e8b5"),i=TypeError,a=Object.getOwnPropertyDescriptor,u=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=u?function(t,e){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){"use strict";var r=n("e330");t.exports=r({}.isPrototypeOf)},"3bbe":function(t,e,n){"use strict";var r=n("1787"),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},"3c7c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("2a4a"),a=n("e762");function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return-1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var t=this,e=this.data.match(/.{2}/g).map((function(e){return t.encodePair(e)})).join("");return{data:i.START_BIN+e+i.END_BIN,text:this.text}}},{key:"encodePair",value:function(t){var e=i.BINARIES[t[1]];return i.BINARIES[t[0]].split("").map((function(t,n){return("1"===t?"111":"1")+("1"===e[n]?"000":"0")})).join("")}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);e.default=s},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,o=n("577e"),i=n("69f3"),a=n("c6d2"),u=n("4754"),c=i.set,s=i.getterFor("String Iterator");a(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=s(this),n=e.string,o=e.index;return o>=n.length?u(void 0,!0):(t=r(n,o),e.index+=t.length,u(t,!1))}))},"3f8c":function(t,e,n){"use strict";t.exports={}},4002:function(t,e,n){"use strict";n("3ca3");var r,o=n("23e7"),i=n("83ab"),a=n("f354"),u=n("cfe9"),c=n("0366"),s=n("e330"),l=n("cb2d"),f=n("edd0"),d=n("19aa"),m=n("1a2d"),p=n("60da"),h=n("4df4"),g=n("f36a"),v=n("6547").codeAt,b=n("5fb2"),y=n("577e"),_=n("d44e"),w=n("d6d6"),x=n("5352"),O=n("69f3"),S=O.set,C=O.getterFor("URL"),E=x.URLSearchParams,k=x.getState,T=u.URL,M=u.TypeError,D=u.parseInt,A=Math.floor,P=Math.pow,R=s("".charAt),I=s(/./.exec),z=s([].join),j=s(1..toString),L=s([].pop),B=s([].push),F=s("".replace),N=s([].shift),H=s("".split),V=s("".slice),U=s("".toLowerCase),W=s([].unshift),$=/[a-z]/i,G=/[\d+-.a-z]/i,K=/\d/,q=/^0x/i,X=/^[0-7]+$/,Y=/^\d+$/,J=/^[\da-f]+$/i,Q=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Z=/[\0\t\n\r #/:<>?@[\\\]^|]/,tt=/^[\u0000-\u0020]+/,et=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,nt=/[\t\n\r]/g,rt=function(t){var e,n,r,o;if("number"==typeof t){for(e=[],n=0;n<4;n++)W(e,t%256),t=A(t/256);return z(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,o=0,i=0;i<8;i++)0!==t[i]?(o>n&&(e=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n?r:e}(t),n=0;n<8;n++)o&&0===t[n]||(o&&(o=!1),r===n?(e+=n?":":"::",o=!0):(e+=j(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},ot={},it=p({},ot,{" ":1,'"':1,"<":1,">":1,"`":1}),at=p({},it,{"#":1,"?":1,"{":1,"}":1}),ut=p({},at,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ct=function(t,e){var n=v(t,0);return n>32&&n<127&&!m(e,t)?t:encodeURIComponent(t)},st={ftp:21,file:null,http:80,https:443,ws:80,wss:443},lt=function(t,e){var n;return 2===t.length&&I($,R(t,0))&&(":"===(n=R(t,1))||!e&&"|"===n)},ft=function(t){var e;return t.length>1&<(V(t,0,2))&&(2===t.length||"/"===(e=R(t,2))||"\\"===e||"?"===e||"#"===e)},dt=function(t){return"."===t||"%2e"===U(t)},mt={},pt={},ht={},gt={},vt={},bt={},yt={},_t={},wt={},xt={},Ot={},St={},Ct={},Et={},kt={},Tt={},Mt={},Dt={},At={},Pt={},Rt={},It=function(t,e,n){var r,o,i,a=y(t);if(e){if(o=this.parse(a))throw new M(o);this.searchParams=null}else{if(void 0!==n&&(r=new It(n,!0)),o=this.parse(a,null,r))throw new M(o);(i=k(new E)).bindURL(this),this.searchParams=i}};It.prototype={type:"URL",parse:function(t,e,n){var o,i,a,u,c,s=this,l=e||mt,f=0,d="",p=!1,v=!1,b=!1;for(t=y(t),e||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=F(t,tt,""),t=F(t,et,"$1")),t=F(t,nt,""),o=h(t);f<=o.length;){switch(i=o[f],l){case mt:if(!i||!I($,i)){if(e)return"Invalid scheme";l=ht;continue}d+=U(i),l=pt;break;case pt:if(i&&(I(G,i)||"+"===i||"-"===i||"."===i))d+=U(i);else{if(":"!==i){if(e)return"Invalid scheme";d="",l=ht,f=0;continue}if(e&&(s.isSpecial()!==m(st,d)||"file"===d&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=d,e)return void(s.isSpecial()&&st[s.scheme]===s.port&&(s.port=null));d="","file"===s.scheme?l=Et:s.isSpecial()&&n&&n.scheme===s.scheme?l=gt:s.isSpecial()?l=_t:"/"===o[f+1]?(l=vt,f++):(s.cannotBeABaseURL=!0,B(s.path,""),l=At)}break;case ht:if(!n||n.cannotBeABaseURL&&"#"!==i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===i){s.scheme=n.scheme,s.path=g(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,l=Rt;break}l="file"===n.scheme?Et:bt;continue;case gt:if("/"!==i||"/"!==o[f+1]){l=bt;continue}l=wt,f++;break;case vt:if("/"===i){l=xt;break}l=Dt;continue;case bt:if(s.scheme=n.scheme,i===r)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query;else if("/"===i||"\\"===i&&s.isSpecial())l=yt;else if("?"===i)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query="",l=Pt;else{if("#"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.path.length--,l=Dt;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query,s.fragment="",l=Rt}break;case yt:if(!s.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,l=Dt;continue}l=xt}else l=wt;break;case _t:if(l=wt,"/"!==i||"/"!==R(d,f+1))continue;f++;break;case wt:if("/"!==i&&"\\"!==i){l=xt;continue}break;case xt:if("@"===i){p&&(d="%40"+d),p=!0,a=h(d);for(var _=0;_<a.length;_++){var w=a[_];if(":"!==w||b){var x=ct(w,ut);b?s.password+=x:s.username+=x}else b=!0}d=""}else if(i===r||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(p&&""===d)return"Invalid authority";f-=h(d).length+1,d="",l=Ot}else d+=i;break;case Ot:case St:if(e&&"file"===s.scheme){l=Tt;continue}if(":"!==i||v){if(i===r||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(s.isSpecial()&&""===d)return"Invalid host";if(e&&""===d&&(s.includesCredentials()||null!==s.port))return;if(u=s.parseHost(d))return u;if(d="",l=Mt,e)return;continue}"["===i?v=!0:"]"===i&&(v=!1),d+=i}else{if(""===d)return"Invalid host";if(u=s.parseHost(d))return u;if(d="",l=Ct,e===St)return}break;case Ct:if(!I(K,i)){if(i===r||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()||e){if(""!==d){var O=D(d,10);if(O>65535)return"Invalid port";s.port=s.isSpecial()&&O===st[s.scheme]?null:O,d=""}if(e)return;l=Mt;continue}return"Invalid port"}d+=i;break;case Et:if(s.scheme="file","/"===i||"\\"===i)l=kt;else{if(!n||"file"!==n.scheme){l=Dt;continue}switch(i){case r:s.host=n.host,s.path=g(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=g(n.path),s.query="",l=Pt;break;case"#":s.host=n.host,s.path=g(n.path),s.query=n.query,s.fragment="",l=Rt;break;default:ft(z(g(o,f),""))||(s.host=n.host,s.path=g(n.path),s.shortenPath()),l=Dt;continue}}break;case kt:if("/"===i||"\\"===i){l=Tt;break}n&&"file"===n.scheme&&!ft(z(g(o,f),""))&&(lt(n.path[0],!0)?B(s.path,n.path[0]):s.host=n.host),l=Dt;continue;case Tt:if(i===r||"/"===i||"\\"===i||"?"===i||"#"===i){if(!e&<(d))l=Dt;else if(""===d){if(s.host="",e)return;l=Mt}else{if(u=s.parseHost(d))return u;if("localhost"===s.host&&(s.host=""),e)return;d="",l=Mt}continue}d+=i;break;case Mt:if(s.isSpecial()){if(l=Dt,"/"!==i&&"\\"!==i)continue}else if(e||"?"!==i)if(e||"#"!==i){if(i!==r&&(l=Dt,"/"!==i))continue}else s.fragment="",l=Rt;else s.query="",l=Pt;break;case Dt:if(i===r||"/"===i||"\\"===i&&s.isSpecial()||!e&&("?"===i||"#"===i)){if(".."===(c=U(c=d))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(s.shortenPath(),"/"===i||"\\"===i&&s.isSpecial()||B(s.path,"")):dt(d)?"/"===i||"\\"===i&&s.isSpecial()||B(s.path,""):("file"===s.scheme&&!s.path.length&<(d)&&(s.host&&(s.host=""),d=R(d,0)+":"),B(s.path,d)),d="","file"===s.scheme&&(i===r||"?"===i||"#"===i))for(;s.path.length>1&&""===s.path[0];)N(s.path);"?"===i?(s.query="",l=Pt):"#"===i&&(s.fragment="",l=Rt)}else d+=ct(i,at);break;case At:"?"===i?(s.query="",l=Pt):"#"===i?(s.fragment="",l=Rt):i!==r&&(s.path[0]+=ct(i,ot));break;case Pt:e||"#"!==i?i!==r&&("'"===i&&s.isSpecial()?s.query+="%27":s.query+="#"===i?"%23":ct(i,ot)):(s.fragment="",l=Rt);break;case Rt:i!==r&&(s.fragment+=ct(i,it))}f++}},parseHost:function(t){var e,n,r;if("["===R(t,0)){if("]"!==R(t,t.length-1))return"Invalid host";if(!(e=function(t){var e,n,r,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,l=null,f=0,d=function(){return R(t,f)};if(":"===d()){if(":"!==R(t,1))return;f+=2,l=++s}for(;d();){if(8===s)return;if(":"!==d()){for(e=n=0;n<4&&I(J,d());)e=16*e+D(d(),16),f++,n++;if("."===d()){if(0===n)return;if(f-=n,s>6)return;for(r=0;d();){if(o=null,r>0){if(!("."===d()&&r<4))return;f++}if(!I(K,d()))return;for(;I(K,d());){if(i=D(d(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;f++}c[s]=256*c[s]+o,2!==++r&&4!==r||s++}if(4!==r)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;c[s++]=e}else{if(null!==l)return;f++,l=++s}}if(null!==l)for(a=s-l,s=7;0!==s&&a>0;)u=c[s],c[s--]=c[l+a-1],c[l+--a]=u;else if(8!==s)return;return c}(V(t,1,-1))))return"Invalid host";this.host=e}else if(this.isSpecial()){if(t=b(t),I(Q,t))return"Invalid host";if(null===(e=function(t){var e,n,r,o,i,a,u,c=H(t,".");if(c.length&&""===c[c.length-1]&&c.length--,(e=c.length)>4)return t;for(n=[],r=0;r<e;r++){if(""===(o=c[r]))return t;if(i=10,o.length>1&&"0"===R(o,0)&&(i=I(q,o)?16:8,o=V(o,8===i?1:2)),""===o)a=0;else{if(!I(10===i?Y:8===i?X:J,o))return t;a=D(o,i)}B(n,a)}for(r=0;r<e;r++)if(a=n[r],r===e-1){if(a>=P(256,5-e))return null}else if(a>255)return null;for(u=L(n),r=0;r<n.length;r++)u+=n[r]*P(256,3-r);return u}(t)))return"Invalid host";this.host=e}else{if(I(Z,t))return"Invalid host";for(e="",n=h(t),r=0;r<n.length;r++)e+=ct(n[r],ot);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return m(st,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&<(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,r=t.password,o=t.host,i=t.port,a=t.path,u=t.query,c=t.fragment,s=e+":";return null!==o?(s+="//",t.includesCredentials()&&(s+=n+(r?":"+r:"")+"@"),s+=rt(o),null!==i&&(s+=":"+i)):"file"===e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+z(a,"/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},setHref:function(t){var e=this.parse(t);if(e)throw new M(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new zt(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+rt(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(y(t)+":",mt)},getUsername:function(){return this.username},setUsername:function(t){var e=h(y(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=ct(e[n],ut)}},getPassword:function(){return this.password},setPassword:function(t){var e=h(y(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=ct(e[n],ut)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?rt(t):rt(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Ot)},getHostname:function(){var t=this.host;return null===t?"":rt(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,St)},getPort:function(){var t=this.port;return null===t?"":y(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=y(t))?this.port=null:this.parse(t,Ct))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+z(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Mt))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=y(t))?this.query=null:("?"===R(t,0)&&(t=V(t,1)),this.query="",this.parse(t,Pt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=y(t))?("#"===R(t,0)&&(t=V(t,1)),this.fragment="",this.parse(t,Rt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var zt=function(t){var e=d(this,jt),n=w(arguments.length,1)>1?arguments[1]:void 0,r=S(e,new It(t,!1,n));i||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},jt=zt.prototype,Lt=function(t,e){return{get:function(){return C(this)[t]()},set:e&&function(t){return C(this)[e](t)},configurable:!0,enumerable:!0}};if(i&&(f(jt,"href",Lt("serialize","setHref")),f(jt,"origin",Lt("getOrigin")),f(jt,"protocol",Lt("getProtocol","setProtocol")),f(jt,"username",Lt("getUsername","setUsername")),f(jt,"password",Lt("getPassword","setPassword")),f(jt,"host",Lt("getHost","setHost")),f(jt,"hostname",Lt("getHostname","setHostname")),f(jt,"port",Lt("getPort","setPort")),f(jt,"pathname",Lt("getPathname","setPathname")),f(jt,"search",Lt("getSearch","setSearch")),f(jt,"searchParams",Lt("getSearchParams")),f(jt,"hash",Lt("getHash","setHash"))),l(jt,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),l(jt,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),T){var Bt=T.createObjectURL,Ft=T.revokeObjectURL;Bt&&l(zt,"createObjectURL",c(Bt,T)),Ft&&l(zt,"revokeObjectURL",c(Ft,T))}_(zt,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:zt})},"408a":function(t,e,n){"use strict";var r=n("e330");t.exports=r(1..valueOf)},"40d5":function(t,e,n){"use strict";var r=n("d039");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4232:function(t,e,n){"use strict";n("18c3")},4260:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));n("4de4"),n("c740"),n("a630"),n("e260"),n("d81d"),n("fb6a"),n("a434"),n("d3b7"),n("e6cf"),n("ac1f"),n("25f0"),n("6062"),n("1e70"),n("79a4"),n("c1a1"),n("8b00"),n("a4e7"),n("1e5a"),n("72c3"),n("3ca3"),n("5319"),n("1276"),n("498a"),n("ddb0");var r=function(t){if(!t)return[];return(t=t.replace(/\/\*[\w\W]*?\*\//g,"").trim()).split(/}\s+./).filter((function(t){return t})).map((function(t){return"."!==(t=t.trim())[0]&&(t="."+t),"}"!==t[t.length-1]&&(t+="}"),t}))},o=function(t,e){var n=document.styleSheets[0];if(n.href){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r.appendChild(o),n=o.sheet||o.styleSheet}for(var i=0;n.cssRules.length>i;)n.cssRules[i].selectorText&&0===n.cssRules[i].selectorText.indexOf(e)?n.deleteRule(i):i++;for(var a=0;a<t.length;a++)n.insertRule(e+t[a],0)},i=function(t){var e=document.styleSheets[0];if(e.href)return!1;for(var n=0;e.cssRules.length>n;)e.cssRules[n].selectorText&&0===e.cssRules[n].selectorText.indexOf(t)?e.deleteRule(n):n++}},"428f":function(t,e,n){"use strict";var r=n("cfe9");t.exports=r},4362:function(t,e,n){var r,o;e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},o="/",e.cwd=function(){return o},e.chdir=function(t){r||(r=n("df7c")),o=r.resolve(t,o)},e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"43c7":function(t,e,n){},4461:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n("124f"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6e53");var u=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,a.mod11)(t),n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=u},"44ad":function(t,e,n){"use strict";var r=n("e330"),o=n("d039"),i=n("c6b6"),a=Object,u=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?u(t,""):a(t)}:a},"44d2":function(t,e,n){"use strict";var r=n("b622"),o=n("7c73"),i=n("9bf2").f,a=r("unscopables"),u=Array.prototype;void 0===u[a]&&i(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},"44de":function(t,e,n){"use strict";t.exports=function(t,e){}},"44e7":function(t,e,n){"use strict";var r=n("861d"),o=n("c6b6"),i=n("b622")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===o(t))}},4625:function(t,e,n){"use strict";var r=n("c6b6"),o=n("e330");t.exports=function(t){if("Function"===r(t))return o(t)}},"467f":function(t,e,n){"use strict";var r=n("2d83");t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"46c3":function(t,e){tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 01-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 00-1 1z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="M15.7 2l1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 01-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2zM18 12l-4.5-4L9 12h9zM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 01-2-2v-5h2zm8-7V4h6a2 2 0 012 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1l.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="M13 11l-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="M18.4 8l1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 01-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8zm1.6 7l-3-3-3 3h6z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 01-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 010-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 010-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 010-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 010-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 010-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 01-1-1v-2H7V9H5a1 1 0 110-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zm8.5-7.1h-11v2h11v-2z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0119 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 002.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 002-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 00-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 00-.8.8.8.8 0 01-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 012.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 110 18 9 9 0 010-18zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 003.2-2.1l-.2-.2a6 6 0 00-1-.6zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 01-2-2.8zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 01-.3-2zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1zm3-1.4l-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 00-1.3-3.5zm-9 0l2 .2V5.5a9 9 0 00-2 2.2zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 00-2-2.3zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 011.9-2.5zm4.4 0l.1.1a10 10 0 011.8 2.4l1.1-.7a7.5 7.5 0 00-3-1.8z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 110-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 01-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 012.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 11-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2 0l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V8H5a1 1 0 110-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V13H5a1 1 0 010-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 010-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 00-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 01-.7-.3 1 1 0 01-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 017 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 010 2H5a1 1 0 010-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 00-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 01-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8zm-2 2H5v5h6V6z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 012 2v7h-8v-2h6V6h-6V4z" opacity=".2"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v7h-8v7H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8-7h-6v5h6V6zm-8 0H5v5h6V6z"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 00-2 2v13c0 1.1.9 2 2 2h12a2 2 0 002-2V6a2 2 0 00-2-2H6zm0 12h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 11h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 6h8v3H6V6zm11 0c.6 0 1 .4 1 1v1a1 1 0 11-2 0V7c0-.6.4-1 1-1z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 012 2v13a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2h12zm0 12h-8v3h8v-3zM7 16a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8v-3zM7 11a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8V6zM7 6a1 1 0 00-1 1v1a1 1 0 102 0V7c0-.6-.4-1-1-1z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 01-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 011.2 1.5l-.1.1-4.1 3-4-3a1 1 0 011-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8l4 2.9a1 1 0 01-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 01-1-1v-4l-2 1.3a1 1 0 01-1.2-.1l-.1-.1a1 1 0 01.1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}})},"46c4":function(t,e,n){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},4727:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n("124f"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6e53");var u=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,a.mod10)(t),n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=u},4738:function(t,e,n){"use strict";var r=n("cfe9"),o=n("d256"),i=n("1626"),a=n("94ca"),u=n("8925"),c=n("b622"),s=n("8558"),l=n("c430"),f=n("1212"),d=o&&o.prototype,m=c("species"),p=!1,h=i(r.PromiseRejectionEvent),g=a("Promise",(function(){var t=u(o),e=t!==String(o);if(!e&&66===f)return!0;if(l&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(t)){var n=new o((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[m]=r,!(p=n.then((function(){}))instanceof r))return!0}return!(e||"BROWSER"!==s&&"DENO"!==s||h)}));t.exports={CONSTRUCTOR:g,REJECTION_EVENT:h,SUBCLASSING:p}},4754:function(t,e,n){"use strict";t.exports=function(t,e){return{value:t,done:e}}},4840:function(t,e,n){"use strict";var r=n("825a"),o=n("5087"),i=n("7234"),a=n("b622")("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||i(n=r(u)[a])?e:o(n)}},"485a":function(t,e,n){"use strict";var r=n("c65b"),o=n("1626"),i=n("861d"),a=TypeError;t.exports=function(t,e){var n,u;if("string"===e&&o(n=t.toString)&&!i(u=r(n,t)))return u;if(o(n=t.valueOf)&&!i(u=r(n,t)))return u;if("string"!==e&&o(n=t.toString)&&!i(u=r(n,t)))return u;throw new a("Can't convert object to primitive value")}},"498a":function(t,e,n){"use strict";var r=n("23e7"),o=n("58a8").trim;r({target:"String",proto:!0,forced:n("c8d2")("trim")},{trim:function(){return o(this)}})},"4b23":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("e762"),a=(r=i)&&r.__esModule?r:{default:r},u=n("f08e");var c=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.substring(1),n));return r.bytes=t.split("").map((function(t){return t.charCodeAt(0)})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var t=this.bytes,n=t.shift()-105,r=u.SET_BY_CODE[n];if(void 0===r)throw new RangeError("The encoding does not start with a start character.");!0===this.shouldEncodeAsEan128()&&t.unshift(u.FNC1);var o=e.next(t,1,r);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(n)+o.result+e.getBar((o.checksum+n)%u.MODULO)+e.getBar(u.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var t=this.options.ean128||!1;return"string"==typeof t&&(t="true"===t.toLowerCase()),t}}],[{key:"getBar",value:function(t){return u.BARS[t]?u.BARS[t].toString():""}},{key:"correctIndex",value:function(t,e){if(e===u.SET_A){var n=t.shift();return n<32?n+64:n-32}return e===u.SET_B?t.shift()-32:10*(t.shift()-48)+t.shift()-48}},{key:"next",value:function(t,n,r){if(!t.length)return{result:"",checksum:0};var o=void 0,i=void 0;if(t[0]>=200){i=t.shift()-105;var a=u.SWAP[i];void 0!==a?o=e.next(t,n+1,a):(r!==u.SET_A&&r!==u.SET_B||i!==u.SHIFT||(t[0]=r===u.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),o=e.next(t,n+1,r))}else i=e.correctIndex(t,r),o=e.next(t,n+1,r);var c=i*n;return{result:e.getBar(i)+o.result,checksum:c+o.checksum}}}]),e}(a.default);e.default=c},"4ced":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var o=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.object=e,this.encodings=n,this.options=r}return r(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();e.default=o},"4d64":function(t,e,n){"use strict";var r=n("fc6a"),o=n("23cb"),i=n("07fa"),a=function(t){return function(e,n,a){var u=r(e),c=i(u);if(0===c)return!t&&-1;var s,l=o(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").filter;r({target:"Array",proto:!0,forced:!n("1dde")("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var r=n("0366"),o=n("c65b"),i=n("7b0b"),a=n("9bdd"),u=n("e95a"),c=n("68ee"),s=n("07fa"),l=n("8418"),f=n("9a1f"),d=n("35a1"),m=Array;t.exports=function(t){var e=i(t),n=c(this),p=arguments.length,h=p>1?arguments[1]:void 0,g=void 0!==h;g&&(h=r(h,p>2?arguments[2]:void 0));var v,b,y,_,w,x,O=d(e),S=0;if(!O||this===m&&u(O))for(v=s(e),b=n?new this(v):m(v);v>S;S++)x=g?h(e[S],S):e[S],l(b,S,x);else for(b=n?new this:[],w=(_=f(e,O)).next;!(y=o(w,_)).done;S++)x=g?a(_,h,[y.value,S],!0):y.value,l(b,S,x);return b.length=S,b}},"4ea8":function(t,e,n){n("cdd9")},"4fad":function(t,e,n){"use strict";var r=n("d039"),o=n("861d"),i=n("c6b6"),a=n("d86b"),u=Object.isExtensible,c=r((function(){u(1)}));t.exports=c||a?function(t){return!!o(t)&&((!a||"ArrayBuffer"!==i(t))&&(!u||u(t)))}:u},5087:function(t,e,n){"use strict";var r=n("68ee"),o=n("0d51"),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a constructor")}},"50c4":function(t,e,n){"use strict";var r=n("5926"),o=Math.min;t.exports=function(t){var e=r(t);return e>0?o(e,9007199254740991):0}},5176:function(t,e,n){t.exports=n("2389")},"51eb":function(t,e,n){"use strict";var r=n("825a"),o=n("485a"),i=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new i("Incorrect hint");return o(this,t)}},5261:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var n in e)e.hasOwnProperty(n)&&(n=e[n],"string"==typeof t[n]&&(t[n]=parseInt(t[n],10)));"string"==typeof t.displayValue&&(t.displayValue="false"!=t.displayValue);return t}},5270:function(t,e,n){"use strict";var r=n("c532"),o=n("c401"),i=n("2e67"),a=n("2444"),u=n("d925"),c=n("e683");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.baseURL&&!u(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(s(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},"52c8":function(t,e,n){"use strict";var r=n("b5db");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5319:function(t,e,n){"use strict";var r=n("2ba4"),o=n("c65b"),i=n("e330"),a=n("d784"),u=n("d039"),c=n("825a"),s=n("1626"),l=n("7234"),f=n("5926"),d=n("50c4"),m=n("577e"),p=n("1d80"),h=n("8aa5"),g=n("dc4a"),v=n("0cb2"),b=n("14c3"),y=n("b622")("replace"),_=Math.max,w=Math.min,x=i([].concat),O=i([].push),S=i("".indexOf),C=i("".slice),E="$0"==="a".replace(/./,"$0"),k=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(t,e,n){var i=k?"$":"$0";return[function(t,n){var r=p(this),i=l(t)?void 0:g(t,y);return i?o(i,t,r,n):o(e,m(r),t,n)},function(t,o){var a=c(this),u=m(t);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var l=n(e,a,u,o);if(l.done)return l.value}var p=s(o);p||(o=m(o));var g,y=a.global;y&&(g=a.unicode,a.lastIndex=0);for(var E,k=[];null!==(E=b(a,u))&&(O(k,E),y);){""===m(E[0])&&(a.lastIndex=h(u,d(a.lastIndex),g))}for(var T,M="",D=0,A=0;A<k.length;A++){for(var P,R=m((E=k[A])[0]),I=_(w(f(E.index),u.length),0),z=[],j=1;j<E.length;j++)O(z,void 0===(T=E[j])?T:String(T));var L=E.groups;if(p){var B=x([R],z,I,u);void 0!==L&&O(B,L),P=m(r(o,void 0,B))}else P=v(R,u,I,z,L,o);I>=D&&(M+=C(u,D,I)+P,D=I+R.length)}return M+C(u,D)}]}),!!u((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||k)},5352:function(t,e,n){"use strict";n("e260"),n("f6d6");var r=n("23e7"),o=n("cfe9"),i=n("157a"),a=n("d066"),u=n("c65b"),c=n("e330"),s=n("83ab"),l=n("f354"),f=n("cb2d"),d=n("edd0"),m=n("6964"),p=n("d44e"),h=n("dcc3"),g=n("69f3"),v=n("19aa"),b=n("1626"),y=n("1a2d"),_=n("0366"),w=n("f5df"),x=n("825a"),O=n("861d"),S=n("577e"),C=n("7c73"),E=n("5c6c"),k=n("9a1f"),T=n("35a1"),M=n("4754"),D=n("d6d6"),A=n("b622"),P=n("addb"),R=A("iterator"),I=g.set,z=g.getterFor("URLSearchParams"),j=g.getterFor("URLSearchParamsIterator"),L=i("fetch"),B=i("Request"),F=i("Headers"),N=B&&B.prototype,H=F&&F.prototype,V=o.TypeError,U=o.encodeURIComponent,W=String.fromCharCode,$=a("String","fromCodePoint"),G=parseInt,K=c("".charAt),q=c([].join),X=c([].push),Y=c("".replace),J=c([].shift),Q=c([].splice),Z=c("".split),tt=c("".slice),et=c(/./.exec),nt=/\+/g,rt=/^[0-9a-f]+$/i,ot=function(t,e){var n=tt(t,e,e+2);return et(rt,n)?G(n,16):NaN},it=function(t){for(var e=0,n=128;n>0&&0!=(t&n);n>>=1)e++;return e},at=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},ut=function(t){for(var e=(t=Y(t,nt," ")).length,n="",r=0;r<e;){var o=K(t,r);if("%"===o){if("%"===K(t,r+1)||r+3>e){n+="%",r++;continue}var i=ot(t,r+1);if(i!=i){n+=o,r++;continue}r+=2;var a=it(i);if(0===a)o=W(i);else{if(1===a||a>4){n+="�",r++;continue}for(var u=[i],c=1;c<a&&!(++r+3>e||"%"!==K(t,r));){var s=ot(t,r+1);if(s!=s){r+=3;break}if(s>191||s<128)break;X(u,s),r+=2,c++}if(u.length!==a){n+="�";continue}var l=at(u);null===l?n+="�":o=$(l)}}n+=o,r++}return n},ct=/[!'()~]|%20/g,st={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},lt=function(t){return st[t]},ft=function(t){return Y(U(t),ct,lt)},dt=h((function(t,e){I(this,{type:"URLSearchParamsIterator",target:z(t).entries,index:0,kind:e})}),"URLSearchParams",(function(){var t=j(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,M(void 0,!0);var r=e[n];switch(t.kind){case"keys":return M(r.key,!1);case"values":return M(r.value,!1)}return M([r.key,r.value],!1)}),!0),mt=function(t){this.entries=[],this.url=null,void 0!==t&&(O(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===K(t,0)?tt(t,1):t:S(t)))};mt.prototype={type:"URLSearchParams",bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,o,i,a,c,s=this.entries,l=T(t);if(l)for(n=(e=k(t,l)).next;!(r=u(n,e)).done;){if(i=(o=k(x(r.value))).next,(a=u(i,o)).done||(c=u(i,o)).done||!u(i,o).done)throw new V("Expected sequence with length 2");X(s,{key:S(a.value),value:S(c.value)})}else for(var f in t)y(t,f)&&X(s,{key:f,value:S(t[f])})},parseQuery:function(t){if(t)for(var e,n,r=this.entries,o=Z(t,"&"),i=0;i<o.length;)(e=o[i++]).length&&(n=Z(e,"="),X(r,{key:ut(J(n)),value:ut(q(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],X(n,ft(t.key)+"="+ft(t.value));return q(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var pt=function(){v(this,ht);var t=arguments.length>0?arguments[0]:void 0,e=I(this,new mt(t));s||(this.size=e.entries.length)},ht=pt.prototype;if(m(ht,{append:function(t,e){var n=z(this);D(arguments.length,2),X(n.entries,{key:S(t),value:S(e)}),s||this.length++,n.updateURL()},delete:function(t){for(var e=z(this),n=D(arguments.length,1),r=e.entries,o=S(t),i=n<2?void 0:arguments[1],a=void 0===i?i:S(i),u=0;u<r.length;){var c=r[u];if(c.key!==o||void 0!==a&&c.value!==a)u++;else if(Q(r,u,1),void 0!==a)break}s||(this.size=r.length),e.updateURL()},get:function(t){var e=z(this).entries;D(arguments.length,1);for(var n=S(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){var e=z(this).entries;D(arguments.length,1);for(var n=S(t),r=[],o=0;o<e.length;o++)e[o].key===n&&X(r,e[o].value);return r},has:function(t){for(var e=z(this).entries,n=D(arguments.length,1),r=S(t),o=n<2?void 0:arguments[1],i=void 0===o?o:S(o),a=0;a<e.length;){var u=e[a++];if(u.key===r&&(void 0===i||u.value===i))return!0}return!1},set:function(t,e){var n=z(this);D(arguments.length,1);for(var r,o=n.entries,i=!1,a=S(t),u=S(e),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?Q(o,c--,1):(i=!0,r.value=u));i||X(o,{key:a,value:u}),s||(this.size=o.length),n.updateURL()},sort:function(){var t=z(this);P(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=z(this).entries,r=_(t,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((e=n[o++]).value,e.key,this)},keys:function(){return new dt(this,"keys")},values:function(){return new dt(this,"values")},entries:function(){return new dt(this,"entries")}},{enumerable:!0}),f(ht,R,ht.entries,{name:"entries"}),f(ht,"toString",(function(){return z(this).serialize()}),{enumerable:!0}),s&&d(ht,"size",{get:function(){return z(this).entries.length},configurable:!0,enumerable:!0}),p(pt,"URLSearchParams"),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:pt}),!l&&b(F)){var gt=c(H.has),vt=c(H.set),bt=function(t){if(O(t)){var e,n=t.body;if("URLSearchParams"===w(n))return e=t.headers?new F(t.headers):new F,gt(e,"content-type")||vt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),C(t,{body:E(0,S(n)),headers:E(0,e)})}return t};if(b(L)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return L(t,arguments.length>1?bt(arguments[1]):{})}}),b(B)){var yt=function(t){return v(this,N),new B(t,arguments.length>1?bt(arguments[1]):{})};N.constructor=yt,yt.prototype=N,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:yt})}}t.exports={URLSearchParams:pt,getState:z}},5388:function(t,e,n){"use strict";var r=n("c65b");t.exports=function(t,e,n){for(var o,i,a=n?t:t.iterator,u=t.next;!(o=r(u,a)).done;)if(void 0!==(i=e(o.value)))return i}},"53ca":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}},5494:function(t,e,n){"use strict";var r=n("83ab"),o=n("e330"),i=n("edd0"),a=URLSearchParams.prototype,u=o(a.forEach);r&&!("size"in a)&&i(a,"size",{get:function(){var t=0;return u(this,(function(){t++})),t},configurable:!0,enumerable:!0})},"54ca":function(t,e,n){},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("a4d3"),n("4de4"),n("14d9"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("159b");var r=n("ade3");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},5589:function(t,e,n){"use strict";n("e770")},5692:function(t,e,n){"use strict";var r=n("c6cd");t.exports=function(t,e){return r[t]||(r[t]=e||{})}},"56ef":function(t,e,n){"use strict";var r=n("d066"),o=n("e330"),i=n("241c"),a=n("7418"),u=n("825a"),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(u(t)),n=a.f;return n?c(e,n(t)):e}},5726:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("c243");e.default=function(t,e,n){var o=t.split("").map((function(t,n){return r.BINARIES[e[n]]})).map((function(e,n){return e?e[t[n]]:""}));if(n){var i=t.length-1;o=o.map((function(t,e){return e<i?t+n:t}))}return o.join("")}},"577e":function(t,e,n){"use strict";var r=n("f5df"),o=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},"57b9":function(t,e,n){"use strict";var r=n("c65b"),o=n("d066"),i=n("b622"),a=n("cb2d");t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,u=i("toPrimitive");e&&!e[u]&&a(e,u,(function(t){return r(n,this)}),{arity:1})}},"583f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("c243"),i=u(n("5726")),a=u(n("e762"));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var t,e=o.EAN5_STRUCTURE[(t=this.data,t.split("").map((function(t){return+t})).reduce((function(t,e,n){return n%2?t+9*e:t+3*e}),0)%10)];return{data:"1011"+(0,i.default)(this.data,e,"01"),text:this.text}}}]),e}(a.default);e.default=c},5899:function(t,e,n){"use strict";t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){"use strict";var r=n("e330"),o=n("1d80"),i=n("577e"),a=n("5899"),u=r("".replace),c=RegExp("^["+a+"]+"),s=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(t){return function(e){var n=i(o(e));return 1&t&&(n=u(n,c,"")),2&t&&(n=u(n,s,"$1")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},"58ab":function(t,e,n){},"58e0":function(t,e,n){"use strict";(function(t){var r=n("26ee"),o=n("2f74"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===i?r.a.Buffer:void 0,c=(u?u.isBuffer:void 0)||o.a;e.a=c}).call(this,n("dd40")(t))},5926:function(t,e,n){"use strict";var r=n("b42e");t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},"59ed":function(t,e,n){"use strict";var r=n("1626"),o=n("0d51"),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},"5a34":function(t,e,n){"use strict";var r=n("44e7"),o=TypeError;t.exports=function(t){if(r(t))throw new o("The method doesn't accept regular expressions");return t}},"5a47":function(t,e,n){"use strict";var r=n("23e7"),o=n("04f8"),i=n("d039"),a=n("7418"),u=n("7b0b");r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(u(t)):[]}})},"5c6c":function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,n){"use strict";var r=n("83ab"),o=n("1a2d"),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},"5e7e":function(t,e,n){"use strict";var r,o,i,a=n("23e7"),u=n("c430"),c=n("9adc"),s=n("cfe9"),l=n("c65b"),f=n("cb2d"),d=n("d2bb"),m=n("d44e"),p=n("2626"),h=n("59ed"),g=n("1626"),v=n("861d"),b=n("19aa"),y=n("4840"),_=n("2cf4").set,w=n("b575"),x=n("44de"),O=n("e667"),S=n("01b4"),C=n("69f3"),E=n("d256"),k=n("4738"),T=n("f069"),M=k.CONSTRUCTOR,D=k.REJECTION_EVENT,A=k.SUBCLASSING,P=C.getterFor("Promise"),R=C.set,I=E&&E.prototype,z=E,j=I,L=s.TypeError,B=s.document,F=s.process,N=T.f,H=N,V=!!(B&&B.createEvent&&s.dispatchEvent),U=function(t){var e;return!(!v(t)||!g(e=t.then))&&e},W=function(t,e){var n,r,o,i=e.value,a=1===e.state,u=a?t.ok:t.fail,c=t.resolve,s=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&X(e),e.rejection=1),!0===u?n=i:(f&&f.enter(),n=u(i),f&&(f.exit(),o=!0)),n===t.promise?s(new L("Promise-chain cycle")):(r=U(n))?l(r,n,c,s):c(n)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},$=function(t,e){t.notified||(t.notified=!0,w((function(){for(var n,r=t.reactions;n=r.get();)W(n,t);t.notified=!1,e&&!t.rejection&&K(t)})))},G=function(t,e,n){var r,o;V?((r=B.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!D&&(o=s["on"+t])?o(r):"unhandledrejection"===t&&x("Unhandled promise rejection",n)},K=function(t){l(_,s,(function(){var e,n=t.facade,r=t.value;if(q(t)&&(e=O((function(){c?F.emit("unhandledRejection",r,n):G("unhandledrejection",n,r)})),t.rejection=c||q(t)?2:1,e.error))throw e.value}))},q=function(t){return 1!==t.rejection&&!t.parent},X=function(t){l(_,s,(function(){var e=t.facade;c?F.emit("rejectionHandled",e):G("rejectionhandled",e,t.value)}))},Y=function(t,e,n){return function(r){t(e,r,n)}},J=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,$(t,!0))},Q=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new L("Promise can't be resolved itself");var r=U(e);r?w((function(){var n={done:!1};try{l(r,e,Y(Q,n,t),Y(J,n,t))}catch(e){J(n,e,t)}})):(t.value=e,t.state=1,$(t,!1))}catch(e){J({done:!1},e,t)}}};if(M&&(j=(z=function(t){b(this,j),h(t),l(r,this);var e=P(this);try{t(Y(Q,e),Y(J,e))}catch(t){J(e,t)}}).prototype,(r=function(t){R(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:null})}).prototype=f(j,"then",(function(t,e){var n=P(this),r=N(y(this,z));return n.parent=!0,r.ok=!g(t)||t,r.fail=g(e)&&e,r.domain=c?F.domain:void 0,0===n.state?n.reactions.add(r):w((function(){W(r,n)})),r.promise})),o=function(){var t=new r,e=P(t);this.promise=t,this.resolve=Y(Q,e),this.reject=Y(J,e)},T.f=N=function(t){return t===z||void 0===t?new o(t):H(t)},!u&&g(E)&&I!==Object.prototype)){i=I.then,A||f(I,"then",(function(t,e){var n=this;return new z((function(t,e){l(i,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete I.constructor}catch(t){}d&&d(I,j)}a({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:z}),m(z,"Promise",!1,!0),p("Promise")},"5ea3":function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n("c8ba"))},"5eed":function(t,e,n){"use strict";var r=n("d256"),o=n("1c7e"),i=n("4738").CONSTRUCTOR;t.exports=i||!o((function(t){r.all(t).then(void 0,(function(){}))}))},"5f72":function(t,e){t.exports=require("element-ui")},"5fb2":function(t,e,n){"use strict";var r=n("e330"),o=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",u=RangeError,c=r(i.exec),s=Math.floor,l=String.fromCharCode,f=r("".charCodeAt),d=r([].join),m=r([].push),p=r("".replace),h=r("".split),g=r("".toLowerCase),v=function(t){return t+22+75*(t<26)},b=function(t,e,n){var r=0;for(t=n?s(t/700):t>>1,t+=s(t/e);t>455;)t=s(t/35),r+=36;return s(r+36*t/(t+38))},y=function(t){var e,n,r=[],o=(t=function(t){for(var e=[],n=0,r=t.length;n<r;){var o=f(t,n++);if(o>=55296&&o<=56319&&n<r){var i=f(t,n++);56320==(64512&i)?m(e,((1023&o)<<10)+(1023&i)+65536):(m(e,o),n--)}else m(e,o)}return e}(t)).length,i=128,c=0,p=72;for(e=0;e<t.length;e++)(n=t[e])<128&&m(r,l(n));var h=r.length,g=h;for(h&&m(r,"-");g<o;){var y=2147483647;for(e=0;e<t.length;e++)(n=t[e])>=i&&n<y&&(y=n);var _=g+1;if(y-i>s((2147483647-c)/_))throw new u(a);for(c+=(y-i)*_,i=y,e=0;e<t.length;e++){if((n=t[e])<i&&++c>2147483647)throw new u(a);if(n===i){for(var w=c,x=36;;){var O=x<=p?1:x>=p+26?26:x-p;if(w<O)break;var S=w-O,C=36-O;m(r,l(v(O+S%C))),w=s(S/C),x+=36}m(r,l(v(w))),p=b(c,_,g===h),c=0,g++}}c++,i++}return d(r,"")};t.exports=function(t){var e,n,r=[],a=h(p(g(t),i,"."),".");for(e=0;e<a.length;e++)n=a[e],m(r,c(o,n)?"xn--"+y(n):n);return d(r,".")}},6062:function(t,e,n){"use strict";n("1c59")},"60bb":function(t,e){t.exports=require("lodash")},"60da":function(t,e,n){"use strict";var r=n("83ab"),o=n("e330"),i=n("c65b"),a=n("d039"),u=n("df75"),c=n("7418"),s=n("d1e7"),l=n("7b0b"),f=n("44ad"),d=Object.assign,m=Object.defineProperty,p=o([].concat);t.exports=!d||a((function(){if(r&&1!==d({b:1},d(m({},"a",{enumerable:!0,get:function(){m(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection");return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!==d({},t)[n]||"abcdefghijklmnopqrst"!==u(d({},e)).join("")}))?function(t,e){for(var n=l(t),o=arguments.length,a=1,d=c.f,m=s.f;o>a;)for(var h,g=f(arguments[a++]),v=d?p(u(g),d(g)):u(g),b=v.length,y=0;b>y;)h=v[y++],r&&!i(m,g,h)||(n[h]=g[h]);return n}:d},"62c5":function(t,e,n){"use strict";var r=d(n("ff846")),o=d(n("fd7c")),i=d(n("a2b0")),a=d(n("79f1")),u=d(n("b1d8")),c=d(n("5261")),s=d(n("bd8a")),l=n("dca2"),f=d(n("ca32"));function d(t){return t&&t.__esModule?t:{default:t}}var m=function(){},p=function(t,e,n){var r=new m;if(void 0===t)throw Error("No element to render on was provided.");return r._renderProperties=(0,u.default)(t),r._encodings=[],r._options=f.default,r._errorHandler=new s.default(r),void 0!==e&&((n=n||{}).format||(n.format=b()),r.options(n)[n.format](e,n).render()),r};for(var h in p.getModule=function(t){return r.default[t]},r.default)r.default.hasOwnProperty(h)&&g(r.default,h);function g(t,e){m.prototype[e]=m.prototype[e.toUpperCase()]=m.prototype[e.toLowerCase()]=function(n,r){var i=this;return i._errorHandler.wrapBarcodeCall((function(){r.text=void 0===r.text?void 0:""+r.text;var a=(0,o.default)(i._options,r);a=(0,c.default)(a);var u=t[e],s=v(n,u,a);return i._encodings.push(s),i}))}}function v(t,e,n){var r=new e(t=""+t,n);if(!r.valid())throw new l.InvalidInputException(r.constructor.name,t);var a=r.encode();a=(0,i.default)(a);for(var u=0;u<a.length;u++)a[u].options=(0,o.default)(n,a[u].options);return a}function b(){return r.default.CODE128?"CODE128":Object.keys(r.default)[0]}function y(t,e,n){e=(0,i.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,o.default)(n,e[r].options),(0,a.default)(e[r].options);(0,a.default)(n),new(0,t.renderer)(t.element,e,n).render(),t.afterRender&&t.afterRender()}m.prototype.options=function(t){return this._options=(0,o.default)(this._options,t),this},m.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},m.prototype.init=function(){var t;if(this._renderProperties)for(var e in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){t=this._renderProperties[e];var n=(0,o.default)(this._options,t.options);"auto"==n.format&&(n.format=b()),this._errorHandler.wrapBarcodeCall((function(){var e=v(n.value,r.default[n.format.toUpperCase()],n);y(t,e,n)}))}},m.prototype.render=function(){if(!this._renderProperties)throw new l.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)y(this._renderProperties[t],this._encodings,this._options);else y(this._renderProperties,this._encodings,this._options);return this},m.prototype._defaults=f.default,"undefined"!=typeof window&&(window.JsBarcode=p),"undefined"!=typeof jQuery&&(jQuery.fn.JsBarcode=function(t,e){var n=[];return jQuery(this).each((function(){n.push(this)})),p(n,t,e)}),t.exports=p},6374:function(t,e,n){"use strict";var r=n("cfe9"),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6547:function(t,e,n){"use strict";var r=n("e330"),o=n("5926"),i=n("577e"),a=n("1d80"),u=r("".charAt),c=r("".charCodeAt),s=r("".slice),l=function(t){return function(e,n){var r,l,f=i(a(e)),d=o(n),m=f.length;return d<0||d>=m?t?"":void 0:(r=c(f,d))<55296||r>56319||d+1===m||(l=c(f,d+1))<56320||l>57343?t?u(f,d):r:t?s(f,d,d+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},6566:function(t,e,n){"use strict";var r=n("7c73"),o=n("edd0"),i=n("6964"),a=n("0366"),u=n("19aa"),c=n("7234"),s=n("2266"),l=n("c6d2"),f=n("4754"),d=n("2626"),m=n("83ab"),p=n("f183").fastKey,h=n("69f3"),g=h.set,v=h.getterFor;t.exports={getConstructor:function(t,e,n,l){var f=t((function(t,o){u(t,d),g(t,{type:e,index:r(null),first:null,last:null,size:0}),m||(t.size=0),c(o)||s(o,t[l],{that:t,AS_ENTRIES:n})})),d=f.prototype,h=v(e),b=function(t,e,n){var r,o,i=h(t),a=y(t,e);return a?a.value=n:(i.last=a={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=a),r&&(r.next=a),m?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},y=function(t,e){var n,r=h(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===e)return n};return i(d,{clear:function(){for(var t=h(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=r(null),m?t.size=0:this.size=0},delete:function(t){var e=h(this),n=y(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first===n&&(e.first=r),e.last===n&&(e.last=o),m?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),i(d,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return b(this,0===t?0:t,e)}}:{add:function(t){return b(this,t=0===t?0:t,t)}}),m&&o(d,"size",{configurable:!0,get:function(){return h(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=v(e),i=v(r);l(t,e,(function(t,e){g(this,{type:r,target:t,state:o(t),kind:e,last:null})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?f("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=null,f(void 0,!0))}),n?"entries":"values",!n,!0),d(e)}}},"658f":function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=13)}([function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){t.exports=n(14)()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return m}));var r=n(0),o=n.n(r),i=n(1),a=n.n(i);function u(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=Number(t)?3:0)}var c=function(){function t(e){o()(this,t),this.mode=f.MODE_8BIT_BYTE,this.parsedData=[],this.data=e;for(var n=[],r=0,i=this.data.length;r<i;r++){var a=[],u=this.data.charCodeAt(r);u>65536?(a[0]=240|(1835008&u)>>>18,a[1]=128|(258048&u)>>>12,a[2]=128|(4032&u)>>>6,a[3]=128|63&u):u>2048?(a[0]=224|(61440&u)>>>12,a[1]=128|(4032&u)>>>6,a[2]=128|63&u):u>128?(a[0]=192|(1984&u)>>>6,a[1]=128|63&u):a[0]=u,n.push(a)}this.parsedData=Array.prototype.concat.apply([],n),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return a()(t,[{key:"getLength",value:function(){return this.parsedData.length}},{key:"write",value:function(t){for(var e=0,n=this.parsedData.length;e<n;e++)t.put(this.parsedData[e],8)}}]),t}(),s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.L;o()(this,t),this.moduleCount=0,this.dataList=[],this.typeNumber=e,this.errorCorrectLevel=n,this.moduleCount=0,this.dataList=[]}return a()(t,[{key:"addData",value:function(t){if(this.typeNumber<=0)this.typeNumber=function(t,e){for(var n=1,r=u(t),o=0,i=b.length;o<i;o++){var a=0;switch(e){case l.L:a=b[o][0];break;case l.M:a=b[o][1];break;case l.Q:a=b[o][2];break;case l.H:a=b[o][3]}if(r<=a)break;n++}if(n>b.length)throw new Error("Too long data");return n}(t,this.errorCorrectLevel);else{if(this.typeNumber>40)throw new Error("Invalid QR version: ".concat(this.typeNumber));if(!function(t,e,n){var r=u(e),o=t-1,i=0;switch(n){case l.L:i=b[o][0];break;case l.M:i=b[o][1];break;case l.Q:i=b[o][2];break;case l.H:i=b[o][3]}return r<=i}(this.typeNumber,t,this.errorCorrectLevel))throw new Error("Data is too long for QR version: ".concat(this.typeNumber))}var e=new c(t);this.dataList.push(e),this.dataCache=void 0}},{key:"isDark",value:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error("".concat(t,",").concat(e));return this.modules[t][e]}},{key:"getModuleCount",value:function(){return this.moduleCount}},{key:"make",value:function(){this.makeImpl(!1,this.getBestMaskPattern())}},{key:"makeImpl",value:function(e,n){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++)this.modules[r][o]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,n),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,n)}},{key:"setupPositionProbePattern",value:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(this.modules[t+n][e+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)}},{key:"getBestMaskPattern",value:function(){if(Number.isInteger(this.maskPattern)&&Object.values(d).includes(this.maskPattern))return this.maskPattern;for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=m.getLostPoint(this);(0==n||t>r)&&(t=r,e=n)}return e}},{key:"setupTimingPattern",value:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)}},{key:"setupPositionAdjustPattern",value:function(){for(var t=m.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var n=0;n<t.length;n++){var r=t[e],o=t[n];if(null==this.modules[r][o])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)this.modules[r+i][o+a]=-2==i||2==i||-2==a||2==a||0==i&&0==a}}},{key:"setupTypeNumber",value:function(t){for(var e=m.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!t&&1==(e>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++)r=!t&&1==(e>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},{key:"setupTypeInfo",value:function(t,e){for(var n=this.errorCorrectLevel<<3|e,r=m.getBCHTypeInfo(n),o=0;o<15;o++){var i=!t&&1==(r>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++)i=!t&&1==(r>>o&1),o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i;this.modules[this.moduleCount-8][8]=!t}},{key:"mapData",value:function(t,e){for(var n=-1,r=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var u=0;u<2;u++)if(null==this.modules[r][a-u]){var c=!1;i<t.length&&(c=1==(t[i]>>>o&1)),m.getMask(e,r,a-u)&&(c=!c),this.modules[r][a-u]=c,-1==--o&&(i++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}}],[{key:"createData",value:function(e,n,r){for(var o=g.getRSBlocks(e,n),i=new v,a=0;a<r.length;a++){var u=r[a];i.put(u.mode,4),i.put(u.getLength(),m.getLengthInBits(u.mode,e)),u.write(i)}var c=0;for(a=0;a<o.length;a++)c+=o[a].dataCount;if(i.getLengthInBits()>8*c)throw new Error("code length overflow. (".concat(i.getLengthInBits(),">").concat(8*c,")"));for(i.getLengthInBits()+4<=8*c&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*c||(i.put(t.PAD0,8),i.getLengthInBits()>=8*c));)i.put(t.PAD1,8);return t.createBytes(i,o)}},{key:"createBytes",value:function(t,e){for(var n=0,r=0,o=0,i=new Array(e.length),a=new Array(e.length),u=0;u<e.length;u++){var c=e[u].dataCount,s=e[u].totalCount-c;r=Math.max(r,c),o=Math.max(o,s),i[u]=new Array(c);for(var l=0;l<i[u].length;l++)i[u][l]=255&t.buffer[l+n];n+=c;var f=m.getErrorCorrectPolynomial(s),d=new h(i[u],f.getLength()-1).mod(f);for(a[u]=new Array(f.getLength()-1),l=0;l<a[u].length;l++){var p=l+d.getLength()-a[u].length;a[u][l]=p>=0?d.get(p):0}}var g=0;for(l=0;l<e.length;l++)g+=e[l].totalCount;var v=new Array(g),b=0;for(l=0;l<r;l++)for(u=0;u<e.length;u++)l<i[u].length&&(v[b++]=i[u][l]);for(l=0;l<o;l++)for(u=0;u<e.length;u++)l<a[u].length&&(v[b++]=a[u][l]);return v}}]),t}();s.PAD0=236,s.PAD1=17;var l={L:1,M:0,Q:3,H:2},f={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},d={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},m=function(){function t(){o()(this,t)}return a()(t,null,[{key:"getBCHTypeInfo",value:function(e){for(var n=e<<10;t.getBCHDigit(n)-t.getBCHDigit(t.G15)>=0;)n^=t.G15<<t.getBCHDigit(n)-t.getBCHDigit(t.G15);return(e<<10|n)^t.G15_MASK}},{key:"getBCHTypeNumber",value:function(e){for(var n=e<<12;t.getBCHDigit(n)-t.getBCHDigit(t.G18)>=0;)n^=t.G18<<t.getBCHDigit(n)-t.getBCHDigit(t.G18);return e<<12|n}},{key:"getBCHDigit",value:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e}},{key:"getPatternPosition",value:function(e){return t.PATTERN_POSITION_TABLE[e-1]}},{key:"getMask",value:function(t,e,n){switch(t){case d.PATTERN000:return(e+n)%2==0;case d.PATTERN001:return e%2==0;case d.PATTERN010:return n%3==0;case d.PATTERN011:return(e+n)%3==0;case d.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case d.PATTERN101:return e*n%2+e*n%3==0;case d.PATTERN110:return(e*n%2+e*n%3)%2==0;case d.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:".concat(t))}}},{key:"getErrorCorrectPolynomial",value:function(t){for(var e=new h([1],0),n=0;n<t;n++)e=e.multiply(new h([1,p.gexp(n)],0));return e}},{key:"getLengthInBits",value:function(t,e){if(1<=e&&e<10)switch(t){case f.MODE_NUMBER:return 10;case f.MODE_ALPHA_NUM:return 9;case f.MODE_8BIT_BYTE:case f.MODE_KANJI:return 8;default:throw new Error("mode:".concat(t))}else if(e<27)switch(t){case f.MODE_NUMBER:return 12;case f.MODE_ALPHA_NUM:return 11;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 10;default:throw new Error("mode:".concat(t))}else{if(!(e<41))throw new Error("type:".concat(e));switch(t){case f.MODE_NUMBER:return 14;case f.MODE_ALPHA_NUM:return 13;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 12;default:throw new Error("mode:".concat(t))}}}},{key:"getLostPoint",value:function(t){for(var e=t.getModuleCount(),n=0,r=0;r<e;r++)for(var o=0;o<e;o++){for(var i=0,a=t.isDark(r,o),u=-1;u<=1;u++)if(!(r+u<0||e<=r+u))for(var c=-1;c<=1;c++)o+c<0||e<=o+c||0==u&&0==c||a==t.isDark(r+u,o+c)&&i++;i>5&&(n+=3+i-5)}for(r=0;r<e-1;r++)for(o=0;o<e-1;o++){var s=0;t.isDark(r,o)&&s++,t.isDark(r+1,o)&&s++,t.isDark(r,o+1)&&s++,t.isDark(r+1,o+1)&&s++,0!=s&&4!=s||(n+=3)}for(r=0;r<e;r++)for(o=0;o<e-6;o++)t.isDark(r,o)&&!t.isDark(r,o+1)&&t.isDark(r,o+2)&&t.isDark(r,o+3)&&t.isDark(r,o+4)&&!t.isDark(r,o+5)&&t.isDark(r,o+6)&&(n+=40);for(o=0;o<e;o++)for(r=0;r<e-6;r++)t.isDark(r,o)&&!t.isDark(r+1,o)&&t.isDark(r+2,o)&&t.isDark(r+3,o)&&t.isDark(r+4,o)&&!t.isDark(r+5,o)&&t.isDark(r+6,o)&&(n+=40);var l=0;for(o=0;o<e;o++)for(r=0;r<e;r++)t.isDark(r,o)&&l++;return n+Math.abs(100*l/e/e-50)/5*10}}]),t}();m.PATTERN_POSITION_TABLE=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],m.G15=1335,m.G18=7973,m.G15_MASK=21522;var p=function(){function t(){o()(this,t)}return a()(t,null,[{key:"glog",value:function(e){if(e<1)throw new Error("glog(".concat(e,")"));return t.LOG_TABLE[e]}},{key:"gexp",value:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t.EXP_TABLE[e]}}]),t}();p.EXP_TABLE=new Array(256),p.LOG_TABLE=new Array(256),p._constructor=function(){for(var t=0;t<8;t++)p.EXP_TABLE[t]=1<<t;for(t=8;t<256;t++)p.EXP_TABLE[t]=p.EXP_TABLE[t-4]^p.EXP_TABLE[t-5]^p.EXP_TABLE[t-6]^p.EXP_TABLE[t-8];for(t=0;t<255;t++)p.LOG_TABLE[p.EXP_TABLE[t]]=t}();var h=function(){function t(e,n){if(o()(this,t),null==e.length)throw new Error("".concat(e.length,"/").concat(n));for(var r=0;r<e.length&&0==e[r];)r++;this.num=new Array(e.length-r+n);for(var i=0;i<e.length-r;i++)this.num[i]=e[i+r]}return a()(t,[{key:"get",value:function(t){return this.num[t]}},{key:"getLength",value:function(){return this.num.length}},{key:"multiply",value:function(e){for(var n=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<e.getLength();o++)n[r+o]^=p.gexp(p.glog(this.get(r))+p.glog(e.get(o)));return new t(n,0)}},{key:"mod",value:function(e){if(this.getLength()-e.getLength()<0)return this;for(var n=p.glog(this.get(0))-p.glog(e.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(o=0;o<e.getLength();o++)r[o]^=p.gexp(p.glog(e.get(o))+n);return new t(r,0).mod(e)}}]),t}(),g=function(){function t(e,n){o()(this,t),this.totalCount=e,this.dataCount=n}return a()(t,null,[{key:"getRSBlocks",value:function(e,n){var r=t.getRsBlockTable(e,n);if(null==r)throw new Error("bad rs block @ typeNumber:".concat(e,"/errorCorrectLevel:").concat(n));for(var o=r.length/3,i=[],a=0;a<o;a++)for(var u=r[3*a+0],c=r[3*a+1],s=r[3*a+2],l=0;l<u;l++)i.push(new t(c,s));return i}},{key:"getRsBlockTable",value:function(e,n){switch(n){case l.L:return t.RS_BLOCK_TABLE[4*(e-1)+0];case l.M:return t.RS_BLOCK_TABLE[4*(e-1)+1];case l.Q:return t.RS_BLOCK_TABLE[4*(e-1)+2];case l.H:return t.RS_BLOCK_TABLE[4*(e-1)+3];default:return}}}]),t}();g.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];var v=function(){function t(){o()(this,t),this.buffer=[],this.length=0}return a()(t,[{key:"get",value:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)}},{key:"put",value:function(t,e){for(var n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))}},{key:"getLengthInBits",value:function(){return this.length}},{key:"putBit",value:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}]),t}(),b=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]},function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return s}));var r=n(2),o=n.n(r);function i(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function a(t,e){for(var n,r="",o=0,i=-1,a=0,u=0;u<=t.length;++u){if(u<t.length)n=t.charCodeAt(u);else{if(47===n)break;n=47}if(47===n){if(i===u-1||1===a);else if(i!==u-1&&2===a){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",o=0):o=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),i=u,a=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=u,a=0;continue}e&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+t.slice(i+1,u):r=t.slice(i+1,u),o=u-i-1;i=u,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var u={resolve:function(){for(var e,n="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var u;o>=0?u=arguments[o]:(void 0===e&&(e=t.cwd()),u=e),i(u),0!==u.length&&(n=u+"/"+n,r=47===u.charCodeAt(0))}return n=a(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(t){if(i(t),0===t.length)return".";var e=47===t.charCodeAt(0),n=47===t.charCodeAt(t.length-1);return 0!==(t=a(t,!e)).length||e||(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return i(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];i(n),n.length>0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":u.normalize(t)},relative:function(t,e){if(i(t),i(e),t===e)return"";if((t=u.resolve(t))===(e=u.resolve(e)))return"";for(var n=1;n<t.length&&47===t.charCodeAt(n);++n);for(var r=t.length,o=r-n,a=1;a<e.length&&47===e.charCodeAt(a);++a);for(var c=e.length-a,s=o<c?o:c,l=-1,f=0;f<=s;++f){if(f===s){if(c>s){if(47===e.charCodeAt(a+f))return e.slice(a+f+1);if(0===f)return e.slice(a+f)}else o>s&&(47===t.charCodeAt(n+f)?l=f:0===f&&(l=0));break}var d=t.charCodeAt(n+f);if(d!==e.charCodeAt(a+f))break;47===d&&(l=f)}var m="";for(f=n+l+1;f<=r;++f)f!==r&&47!==t.charCodeAt(f)||(0===m.length?m+="..":m+="/..");return m.length>0?m+e.slice(a+l):(a+=l,47===e.charCodeAt(a)&&++a,e.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(i(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!o){r=a;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"//":t.slice(0,r)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');i(t);var n,r=0,o=-1,a=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var u=e.length-1,c=-1;for(n=t.length-1;n>=0;--n){var s=t.charCodeAt(n);if(47===s){if(!a){r=n+1;break}}else-1===c&&(a=!1,c=n+1),u>=0&&(s===e.charCodeAt(u)?-1==--u&&(o=n):(u=-1,o=c))}return r===o?o=c:-1===o&&(o=t.length),t.slice(r,o)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){r=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":t.slice(r,o)},extname:function(t){i(t);for(var e=-1,n=0,r=-1,o=!0,a=0,u=t.length-1;u>=0;--u){var c=t.charCodeAt(u);if(47!==c)-1===r&&(o=!1,r=u+1),46===c?-1===e?e=u:1!==a&&(a=1):-1!==e&&(a=-1);else if(!o){n=u+1;break}}return-1===e||-1===r||0===a||1===a&&e===r-1&&e===n+1?"":t.slice(e,r)},format:function(t){if(null===t||"object"!==o()(t))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+o()(t));return function(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+"/"+r:r}(0,t)},parse:function(t){i(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,r=t.charCodeAt(0),o=47===r;o?(e.root="/",n=1):n=0;for(var a=-1,u=0,c=-1,s=!0,l=t.length-1,f=0;l>=n;--l)if(47!==(r=t.charCodeAt(l)))-1===c&&(s=!1,c=l+1),46===r?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);else if(!s){u=l+1;break}return-1===a||-1===c||0===f||1===f&&a===c-1&&a===u+1?-1!==c&&(e.base=e.name=0===u&&o?t.slice(1,c):t.slice(u,c)):(0===u&&o?(e.name=t.slice(1,a),e.base=t.slice(1,c)):(e.name=t.slice(u,a),e.base=t.slice(u,c)),e.ext=t.slice(a,c)),u>0?e.dir=t.slice(0,u-1):o&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};u.posix=u;var c=u.extname,s=u.basename}).call(this,n(19))},function(t,e){function n(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return _}));const r=(t,e,n={},o=n)=>{if(Array.isArray(e))e.forEach(e=>r(t,e,n,o));else if("function"==typeof e)e(t,n,o,r);else{const i=Object.keys(e)[0];Array.isArray(e[i])?(o[i]={},r(t,e[i],n,o[i])):o[i]=e[i](t,n,o,r)}return n},o=(t,e)=>(n,r,o,i)=>{e(n,r,o)&&i(n,t,r,o)},i=(t=0)=>e=>e.data[e.pos+t],a=t=>e=>e.data.subarray(e.pos,e.pos+=t),u=t=>e=>e.data.subarray(e.pos,e.pos+t),c=t=>e=>Array.from(a(t)(e)).map(t=>String.fromCharCode(t)).join(""),s=t=>e=>{const n=a(2)(e);return t?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]},l=(t,e)=>(n,r,o)=>{const i="function"==typeof e?e(n,r,o):e,u=a(t),c=new Array(i);for(var s=0;s<i;s++)c[s]=u(n);return c},f=t=>e=>{const n=(t=>t.data[t.pos++])(e),r=new Array(8);for(var o=0;o<8;o++)r[7-o]=!!(n&1<<o);return Object.keys(t).reduce((e,n)=>{const o=t[n];return o.length?e[n]=((t,e,n)=>{for(var r=0,o=0;o<n;o++)r+=t[e+o]&&2**(n-o-1);return r})(r,o.index,o.length):e[n]=r[o.index],e},{})};var d={blocks:t=>{const e=[],n=t.data.length;for(var r=0,o=(t=>t.data[t.pos++])(t);0!==o&&o;o=(t=>t.data[t.pos++])(t)){if(t.pos+o>=n){const o=n-t.pos;e.push(a(o)(t)),r+=o;break}e.push(a(o)(t)),r+=o}const i=new Uint8Array(r);for(var u=0,c=0;c<e.length;c++)i.set(e[c],u),u+=e[c].length;return i}};const m=o({gce:[{codes:a(2)},{byteSize:t=>t.data[t.pos++]},{extras:f({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:s(!0)},{transparentColorIndex:t=>t.data[t.pos++]},{terminator:t=>t.data[t.pos++]}]},t=>{var e=u(2)(t);return 33===e[0]&&249===e[1]}),p=o({image:[{code:t=>t.data[t.pos++]},{descriptor:[{left:s(!0)},{top:s(!0)},{width:s(!0)},{height:s(!0)},{lct:f({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},o({lct:l(3,(t,e,n)=>Math.pow(2,n.descriptor.lct.size+1))},(t,e,n)=>n.descriptor.lct.exists),{data:[{minCodeSize:t=>t.data[t.pos++]},d]}]},t=>44===i()(t)),h=o({text:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{preData:(t,e,n)=>a(n.text.blockSize)(t)},d]},t=>{var e=u(2)(t);return 33===e[0]&&1===e[1]}),g=o({application:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{id:(t,e,n)=>c(n.blockSize)(t)},d]},t=>{var e=u(2)(t);return 33===e[0]&&255===e[1]}),v=o({comment:[{codes:a(2)},d]},t=>{var e=u(2)(t);return 33===e[0]&&254===e[1]});var b=[{header:[{signature:c(3)},{version:c(3)}]},{lsd:[{width:s(!0)},{height:s(!0)},{gct:f({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:t=>t.data[t.pos++]},{pixelAspectRatio:t=>t.data[t.pos++]}]},o({gct:l(3,(t,e)=>Math.pow(2,e.lsd.gct.size+1))},(t,e)=>e.lsd.gct.exists),{frames:((t,e)=>(n,r,o,i)=>{const a=[];let u=n.pos;for(;e(n);){const e={};if(i(n,t,r,e),n.pos===u)break;u=n.pos,a.push(e)}return a})([m,g,v,p,h],t=>{var e=i()(t);return 33===e||44===e})}],y=function(t){var e=new Uint8Array(t);return r({data:e,pos:0},b)},_=function(t,e){return t.frames.filter((function(t){return t.image})).map((function(n){return function(t,e,n){if(t.image){var r=t.image,o=r.descriptor.width*r.descriptor.height,i=function(t,e,n){var r,o,i,a,u,c,s,l,f,d,m,p,h,g,v,b,y=n,_=new Array(n),w=new Array(4096),x=new Array(4096),O=new Array(4097);for(u=1+(o=1<<(d=t)),r=o+2,s=-1,i=(1<<(a=d+1))-1,l=0;l<o;l++)w[l]=0,x[l]=l;for(m=p=h=g=v=b=0,f=0;f<y;){if(0===g){if(p<a){m+=e[b]<<p,p+=8,b++;continue}if(l=m&i,m>>=a,p-=a,l>r||l==u)break;if(l==o){i=(1<<(a=d+1))-1,r=o+2,s=-1;continue}if(-1==s){O[g++]=x[l],s=l,h=l;continue}for(c=l,l==r&&(O[g++]=h,l=s);l>o;)O[g++]=x[l],l=w[l];h=255&x[l],O[g++]=h,r<4096&&(w[r]=s,x[r]=h,0==(++r&i)&&r<4096&&(a++,i+=r)),s=c}g--,_[v++]=O[g],f++}for(f=v;f<y;f++)_[f]=0;return _}(r.data.minCodeSize,r.data.blocks,o);r.descriptor.lct.interlaced&&(i=function(t,e){for(var n=new Array(t.length),r=t.length/e,o=function(r,o){var i=t.slice(o*e,(o+1)*e);n.splice.apply(n,[r*e,e].concat(i))},i=[0,4,2,1],a=[8,8,4,2],u=0,c=0;c<4;c++)for(var s=i[c];s<r;s+=a[c])o(s,u),u++;return n}(i,r.descriptor.width));var a={pixels:i,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?a.colorTable=r.lct:a.colorTable=e,t.gce&&(a.delay=10*(t.gce.delay||10),a.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(a.transparentIndex=t.gce.transparentColorIndex)),n&&(a.patch=function(t){for(var e=t.pixels.length,n=new Uint8ClampedArray(4*e),r=0;r<e;r++){var o=4*r,i=t.pixels[r],a=t.colorTable[i];n[o]=a[0],n[o+1]=a[1],n[o+2]=a[2],n[o+3]=i!==t.transparentIndex?255:0}return n}(a)),a}}(n,t.gct,e)}))}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return v}));var r=n(2),o=n.n(r),i=n(0),a=n.n(i),u=n(1),c=n.n(u),s=n(3),l=n.n(s),f=n(10),d=n(7),m=n(4),p=n(12),h=f.a.Canvas;function g(t){if(t)return new Promise((function(n,r){if("data"==t.slice(0,4)){var o=new Image;return o.onload=function(){n(o),e(o)},o.onerror=function(){r("Image load error"),e(o)},void(o.src=t)}var i=new Image;i.setAttribute("crossOrigin","Anonymous"),i.onload=function(){n(i)},i.onerror=function(){r("Image load error")},i.src=t}));function e(t){t.onload=null,t.onerror=null}}var v=function(){function e(t){a()(this,e);var n=Object.assign({},t);if(Object.keys(e.defaultOptions).forEach((function(t){t in n||Object.defineProperty(n,t,{value:e.defaultOptions[t],enumerable:!0,writable:!0})})),n.components?"object"===o()(n.components)&&Object.keys(e.defaultComponentOptions).forEach((function(t){t in n.components?Object.defineProperty(n.components,t,{value:Object.assign(Object.assign({},e.defaultComponentOptions[t]),n.components[t]),enumerable:!0,writable:!0}):Object.defineProperty(n.components,t,{value:e.defaultComponentOptions[t],enumerable:!0,writable:!0})})):n.components=e.defaultComponentOptions,null!==n.dotScale&&void 0!==n.dotScale){if(n.dotScale<=0||n.dotScale>1)throw new Error("dotScale should be in range (0, 1].");n.components.data.scale=n.dotScale,n.components.timing.scale=n.dotScale,n.components.alignment.scale=n.dotScale}this.options=n,this.canvas=new h(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new m.a(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}return c()(e,[{key:"draw",value:function(){var t=this;return new Promise((function(e){return t._draw().then(e)}))}},{key:"_clear",value:function(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"_draw",value:function(){var n,r,o,i,a,u,c,s,f,v,y,_,w,x,O,S,C,E,k;return function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,l.a.mark((function T(){var M,D,A,P,R,I,z,j,L,B,F,N,H,V,U,W,$,G,K,q,X,Y,J,Q,Z,tt,et,nt,rt,ot,it,at,ut,ct,st,lt,ft,dt,mt,pt,ht,gt,vt,bt,yt,_t,wt,xt,Ot,St,Ct,Et,kt,Tt,Mt,Dt,At,Pt,Rt,It,zt,jt,Lt,Bt,Ft,Nt,Ht,Vt,Ut,Wt,$t,Gt;return l.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(M=null===(n=this.qrCode)||void 0===n?void 0:n.moduleCount,D=this.options.size,((A=this.options.margin)<0||2*A>=D)&&(A=0),P=Math.ceil(A),R=D-2*A,I=this.options.whiteMargin,z=this.options.backgroundDimming,j=Math.ceil(R/M),F=new h(B=(L=j*M)+2*P,B),N=F.getContext("2d"),this._clear(),N.save(),N.translate(P,P),H=new h(B,B),V=H.getContext("2d"),U=null,W=[],!this.options.gifBackground){l.next=47;break}if($=Object(d.b)(this.options.gifBackground),U=$,W=Object(d.a)($,!0),!this.options.autoColor){l.next=45;break}G=0,K=0,q=0,X=0,Y=0;case 28:if(!(Y<W[0].colorTable.length)){l.next=41;break}if(!((J=W[0].colorTable[Y])[0]>200||J[1]>200||J[2]>200)){l.next=32;break}return l.abrupt("continue",38);case 32:if(0!==J[0]||0!==J[1]||0!==J[2]){l.next=34;break}return l.abrupt("continue",38);case 34:X++,G+=J[0],K+=J[1],q+=J[2];case 38:Y++,l.next=28;break;case 41:G=~~(G/X),K=~~(K/X),q=~~(q/X),this.options.colorDark="rgb(".concat(G,",").concat(K,",").concat(q,")");case 45:l.next=61;break;case 47:if(!this.options.backgroundImage){l.next=58;break}return l.next=50,g(this.options.backgroundImage);case 50:Q=l.sent,this.options.autoColor&&(Z=e._getAverageRGB(Q),this.options.colorDark="rgb(".concat(Z.r,",").concat(Z.g,",").concat(Z.b,")")),V.drawImage(Q,0,0,Q.width,Q.height,0,0,B,B),V.rect(0,0,B,B),V.fillStyle=z,V.fill(),l.next=61;break;case 58:V.rect(0,0,B,B),V.fillStyle=this.options.colorLight,V.fill();case 61:for(tt=m.c.getPatternPosition(this.qrCode.typeNumber),et=(null===(o=null===(r=this.options.components)||void 0===r?void 0:r.data)||void 0===o?void 0:o.scale)||.4,nt=.5*(1-et),rt=0;rt<M;rt++)for(ot=0;ot<M;ot++){for(it=this.qrCode.isDark(rt,ot),at=6==rt&&ot>=8&&ot<=M-8||6==ot&&rt>=8&&rt<=M-8,ut=ot<8&&(rt<8||rt>=M-8)||ot>=M-8&&rt<8||at,ct=1;ct<tt.length-1;ct++)ut=ut||rt>=tt[ct]-2&&rt<=tt[ct]+2&&ot>=tt[ct]-2&&ot<=tt[ct]+2;st=ot*j+(ut?0:nt*j),lt=rt*j+(ut?0:nt*j),N.strokeStyle=it?this.options.colorDark:this.options.colorLight,N.lineWidth=.5,N.fillStyle=it?this.options.colorDark:this.options.colorLight,0===tt.length?ut||N.fillRect(st,lt,(ut?1:et)*j,(ut?1:et)*j):(ft=ot<M-4&&ot>=M-4-5&&rt<M-4&&rt>=M-4-5,ut||ft||N.fillRect(st,lt,(ut?1:et)*j,(ut?1:et)*j))}if(dt=tt[tt.length-1],mt=this.options.colorLight,N.fillStyle=mt,N.fillRect(0,0,8*j,8*j),N.fillRect(0,(M-8)*j,8*j,8*j),N.fillRect((M-8)*j,0,8*j,8*j),(null===(a=null===(i=this.options.components)||void 0===i?void 0:i.timing)||void 0===a?void 0:a.protectors)&&(N.fillRect(8*j,6*j,(M-8-8)*j,j),N.fillRect(6*j,8*j,j,(M-8-8)*j)),(null===(c=null===(u=this.options.components)||void 0===u?void 0:u.cornerAlignment)||void 0===c?void 0:c.protectors)&&e._drawAlignProtector(N,dt,dt,j),!(null===(f=null===(s=this.options.components)||void 0===s?void 0:s.alignment)||void 0===f?void 0:f.protectors)){l.next=99;break}pt=0;case 75:if(!(pt<tt.length)){l.next=99;break}ht=0;case 77:if(!(ht<tt.length)){l.next=96;break}if(gt=tt[ht],vt=tt[pt],6!==gt||6!==vt&&vt!==dt){l.next=84;break}return l.abrupt("continue",93);case 84:if(6!==vt||6!==gt&>!==dt){l.next=88;break}return l.abrupt("continue",93);case 88:if(gt!==dt||vt!==dt){l.next=92;break}return l.abrupt("continue",93);case 92:e._drawAlignProtector(N,gt,vt,j);case 93:ht++,l.next=77;break;case 96:pt++,l.next=75;break;case 99:for(N.fillStyle=this.options.colorDark,N.fillRect(0,0,7*j,j),N.fillRect((M-7)*j,0,7*j,j),N.fillRect(0,6*j,7*j,j),N.fillRect((M-7)*j,6*j,7*j,j),N.fillRect(0,(M-7)*j,7*j,j),N.fillRect(0,(M-7+6)*j,7*j,j),N.fillRect(0,0,j,7*j),N.fillRect(6*j,0,j,7*j),N.fillRect((M-7)*j,0,j,7*j),N.fillRect((M-7+6)*j,0,j,7*j),N.fillRect(0,(M-7)*j,j,7*j),N.fillRect(6*j,(M-7)*j,j,7*j),N.fillRect(2*j,2*j,3*j,3*j),N.fillRect((M-7+2)*j,2*j,3*j,3*j),N.fillRect(2*j,(M-7+2)*j,3*j,3*j),bt=(null===(y=null===(v=this.options.components)||void 0===v?void 0:v.timing)||void 0===y?void 0:y.scale)||.4,yt=.5*(1-bt),_t=0;_t<M-8;_t+=2)e._drawDot(N,8+_t,6,j,yt,bt),e._drawDot(N,6,8+_t,j,yt,bt);wt=(null===(w=null===(_=this.options.components)||void 0===_?void 0:_.cornerAlignment)||void 0===w?void 0:w.scale)||.4,xt=.5*(1-wt),e._drawAlign(N,dt,dt,j,xt,wt,this.options.colorDark,(null===(O=null===(x=this.options.components)||void 0===x?void 0:x.cornerAlignment)||void 0===O?void 0:O.protectors)||!1),Ot=(null===(C=null===(S=this.options.components)||void 0===S?void 0:S.alignment)||void 0===C?void 0:C.scale)||.4,St=.5*(1-Ot),Ct=0;case 124:if(!(Ct<tt.length)){l.next=148;break}Et=0;case 126:if(!(Et<tt.length)){l.next=145;break}if(kt=tt[Et],Tt=tt[Ct],6!==kt||6!==Tt&&Tt!==dt){l.next=133;break}return l.abrupt("continue",142);case 133:if(6!==Tt||6!==kt&&kt!==dt){l.next=137;break}return l.abrupt("continue",142);case 137:if(kt!==dt||Tt!==dt){l.next=141;break}return l.abrupt("continue",142);case 141:e._drawAlign(N,kt,Tt,j,St,Ot,this.options.colorDark,(null===(k=null===(E=this.options.components)||void 0===E?void 0:E.alignment)||void 0===k?void 0:k.protectors)||!1);case 142:Et++,l.next=126;break;case 145:Ct++,l.next=124;break;case 148:if(I&&(N.fillStyle=this.options.backgroundColor,N.fillRect(-P,-P,B,P),N.fillRect(-P,L,B,P),N.fillRect(L,-P,P,B),N.fillRect(-P,-P,P,B)),!this.options.logoImage){l.next=179;break}return l.next=152,g(this.options.logoImage);case 152:Mt=l.sent,Dt=this.options.logoScale,At=this.options.logoMargin,Pt=this.options.logoCornerRadius,(Dt<=0||Dt>=1)&&(Dt=.2),At<0&&(At=0),Pt<0&&(Pt=0),zt=It=.5*(B-(Rt=L*Dt)),N.restore(),N.fillStyle=this.options.logoBackgroundColor,N.save(),e._prepareRoundedCornerClip(N,It-At,zt-At,Rt+2*At,Rt+2*At,Pt+At),N.clip(),jt=N.globalCompositeOperation,N.globalCompositeOperation="destination-out",N.fill(),N.globalCompositeOperation=jt,N.restore(),N.save(),e._prepareRoundedCornerClip(N,It,zt,Rt,Rt,Pt),N.clip(),N.drawImage(Mt,It,zt,Rt,Rt),N.restore(),N.save(),N.translate(P,P);case 179:if(!U){l.next=191;break}if(W.forEach((function(t){Lt||((Lt=new p.a(D,D)).setDelay(t.delay),Lt.setRepeat(0));var e=t.dims,n=e.width,r=e.height;Bt||(Bt=new h(n,r),(Ft=Bt.getContext("2d")).rect(0,0,Bt.width,Bt.height),Ft.fillStyle="#ffffff",Ft.fill()),Nt&&Vt&&n===Nt.width&&r===Nt.height||(Nt=new h(n,r),Ht=Nt.getContext("2d"),Vt=Ht.createImageData(n,r)),Vt.data.set(t.patch),Ht.putImageData(Vt,0,0),Ft.drawImage(Nt.getContext("2d").canvas,t.dims.left,t.dims.top);var o=new h(B,B),i=o.getContext("2d");i.drawImage(Bt.getContext("2d").canvas,0,0,B,B),i.rect(0,0,B,B),i.fillStyle=z,i.fill(),i.drawImage(F.getContext("2d").canvas,0,0,B,B);var a=new h(D,D),u=a.getContext("2d");u.drawImage(o.getContext("2d").canvas,0,0,D,D),Lt.addFrame(u.getImageData(0,0,a.width,a.height).data)})),Lt){l.next=183;break}throw new Error("No frames.");case 183:if(Lt.finish(),!b(this.canvas)){l.next=188;break}return Ut=Lt.stream().toFlattenUint8Array(),Wt=Ut.reduce((function(t,e){return t+String.fromCharCode(e)}),""),l.abrupt("return",Promise.resolve("data:image/gif;base64,".concat(window.btoa(Wt))));case 188:return l.abrupt("return",Promise.resolve(t.from(Lt.stream().toFlattenUint8Array())));case 191:if(V.drawImage(F.getContext("2d").canvas,0,0,B,B),N.drawImage(H.getContext("2d").canvas,-P,-P,B,B),($t=new h(D,D)).getContext("2d").drawImage(F.getContext("2d").canvas,0,0,D,D),this.canvas=$t,Gt=this.options.gifBackground?"gif":"png",!b(this.canvas)){l.next=200;break}return l.abrupt("return",Promise.resolve(this.canvas.toDataURL(Gt)));case 200:return l.abrupt("return",Promise.resolve(this.canvas.toBuffer(Gt)));case 201:case"end":return l.stop()}}),T,this)})))}}],[{key:"_prepareRoundedCornerClip",value:function(t,e,n,r,o,i){t.beginPath(),t.moveTo(e,n),t.arcTo(e+r,n,e+r,n+o,i),t.arcTo(e+r,n+o,e,n+o,i),t.arcTo(e,n+o,e,n,i),t.arcTo(e,n,e+r,n,i),t.closePath()}},{key:"_getAverageRGB",value:function(t){var e,n,r={r:0,g:0,b:0},o=-4,i={r:0,g:0,b:0},a=0;n=t.naturalHeight||t.height,e=t.naturalWidth||t.width;var u,c=new h(e,n).getContext("2d");if(!c)return r;c.drawImage(t,0,0);try{u=c.getImageData(0,0,e,n)}catch(t){return r}for(;(o+=20)<u.data.length;)u.data[o]>200||u.data[o+1]>200||u.data[o+2]>200||(++a,i.r+=u.data[o],i.g+=u.data[o+1],i.b+=u.data[o+2]);return i.r=~~(i.r/a),i.g=~~(i.g/a),i.b=~~(i.b/a),i}},{key:"_drawDot",value:function(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;t.fillRect((e+o)*r,(n+o)*r,i*r,i*r)}},{key:"_drawAlignProtector",value:function(t,e,n,r){t.clearRect((e-2)*r,(n-2)*r,5*r,5*r),t.fillRect((e-2)*r,(n-2)*r,5*r,5*r)}},{key:"_drawAlign",value:function(t,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,u=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=t.fillStyle;t.fillStyle=u,new Array(4).fill(0).map((function(u,c){e._drawDot(t,n-2+c,r-2,o,i,a),e._drawDot(t,n+2,r-2+c,o,i,a),e._drawDot(t,n+2-c,r+2,o,i,a),e._drawDot(t,n-2,r+2-c,o,i,a)})),e._drawDot(t,n,r,o,i,a),c||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((function(u,c){e._drawDot(t,n-1+c,r-1,o,i,a),e._drawDot(t,n+1,r-1+c,o,i,a),e._drawDot(t,n+1-c,r+1,o,i,a),e._drawDot(t,n-1,r+1-c,o,i,a)}))),t.fillStyle=s}}]),e}();function b(t){try{return t instanceof HTMLElement}catch(e){return"object"===o()(t)&&1===t.nodeType&&"object"===o()(t.style)&&"object"===o()(t.ownerDocument)}}v.CorrectLevel=m.b,v.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}},v.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:m.b.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:v.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"}}).call(this,n(15).Buffer)},function(t,e,n){"use strict";var r=n(11);const{asBuffer:o,asDownload:i,asZipDownload:a,atScale:u,options:c}=r.a,s=Symbol.for("toDataURL"),{CanvasRenderingContext2D:l,CanvasGradient:f,CanvasPattern:d,Image:m,ImageData:p,Path2D:h,DOMMatrix:g,DOMRect:v,DOMPoint:b}=window,y={Canvas:class{constructor(t,e){let n=document.createElement("canvas"),r=[];for(var[l,f]of(Object.defineProperty(n,"async",{value:!0,writable:!1,enumerable:!0}),Object.entries({png:()=>o(n,"image/png"),jpg:()=>o(n,"image/jpeg"),pages:()=>r.concat(n).map(t=>t.getContext("2d"))})))Object.defineProperty(n,l,{get:f});return Object.assign(n,{width:t,height:e,newPage(...t){var{width:e,height:o}=n,i=Object.assign(document.createElement("canvas"),{width:e,height:o});i.getContext("2d").drawImage(n,0,0),r.push(i);var[e,o]=t.length?t:[e,o];return Object.assign(n,{width:e,height:o}).getContext("2d")},saveAs(t,e){e="number"==typeof e?{quality:e}:e;let n=c(this.pages,{filename:t,...e}),{pattern:r,padding:o,mime:s,quality:l,matte:f,density:d,archive:m}=n,p=u(n.pages,d);return null==o?i(p[0],s,l,f,t):a(p,s,l,f,m,r,o)},toBuffer(t="png",e={}){e="number"==typeof e?{quality:e}:e;let n=c(this.pages,{extension:t,...e}),{mime:r,quality:i,matte:a,pages:s,density:l}=n,f=u(s,l,a)[0];return o(f,r,i,a)},[s]:n.toDataURL.bind(n),toDataURL(t="png",e={}){e="number"==typeof e?{quality:e}:e;let r=c(this.pages,{extension:t,...e}),{mime:o,quality:i,matte:a,pages:l,density:f}=r,d=u(l,f,a)[0],m=d[d===n?s:"toDataURL"](o,i);return Promise.resolve(m)}})}},loadImage:t=>new Promise((e,n)=>Object.assign(new m,{crossOrigin:"Anonymous",onload:e,onerror:n,src:t})),CanvasRenderingContext2D:l,CanvasGradient:f,CanvasPattern:d,Image:m,ImageData:p,Path2D:h,DOMMatrix:g,DOMRect:v,DOMPoint:b};e.a=y},function(t,e,n){"use strict";(function(t){var r=n(5);class o{constructor(){let e=void 0===t,n="image/png",r="image/jpeg",o="application/pdf",i="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:e?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:e?{png:n,jpg:r,jpeg:"image/jpeg",webp:"image/webp"}:{png:n,jpg:r,jpeg:"image/jpeg",pdf:o,svg:i},mimes:e?{[n]:"png",[r]:"jpg","image/webp":"webp"}:{[n]:"png",[r]:"jpg",[o]:"pdf",[i]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}class i{static for(t){return(new i).append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=0|this.crc,n=this.table,r=0,o=0|t.length;r<o;r++)e=e>>>8^n[255&(e^t[r])];return this.crc=e,this}}function a(t){let e=new Uint8Array(t),n=new DataView(e.buffer),r={array:e,view:n,size:t,set8:(t,e)=>(n.setUint8(t,e),r),set16:(t,e)=>(n.setUint16(t,e,!0),r),set32:(t,e)=>(n.setUint32(t,e,!0),r),bytes:(t,n)=>(e.set(n,t),r)};return r}i.prototype.table=(()=>{var t,e,n,r=[];for(t=0;t<256;t++){for(n=t,e=0;e<8;e++)n=1&n?n>>>1^3988292384:n>>>1;r[t]=n}return r})();class u{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let n=!e,r=u.encoder.encode(`${this.directory}/${n?"":t}`),o=new Uint8Array(n?0:await e.arrayBuffer()),c=30+r.length,s=c+o.length,{offset:l}=this,f=a(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,i.for(o)).set32(14,o.length).set32(18,o.length).set16(22,r.length);l+=c;let d=a(c+o.length+16).set32(0,67324752).bytes(4,f.array).bytes(30,r).bytes(c,o);l+=o.length,d.set32(s,134695760).bytes(s+4,f.array.slice(10,22)),l+=16,this.files.push({offset:l,folder:n,name:r,header:f,payload:d}),this.offset=l}toBuffer(){let t=this.files.reduce((t,{name:e})=>46+e.length+t,0),e=a(t+22),n=0;for(var{offset:r,name:o,header:i,folder:u}of this.files)e.set32(n,33639248).set16(n+4,20).bytes(n+6,i.array).set8(n+38,u?16:0).set32(n+42,r).bytes(n+46,o),n+=46+o.length;e.set32(n,101010256).set16(n+8,this.files.length).set16(n+10,this.files.length).set32(n+12,t).set32(n+16,this.offset);let c=new Uint8Array(this.offset+e.size),s=0;for(var{payload:l}of this.files)c.set(l.array,s),s+=l.size;return c.set(e.array,s),c}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}u.encoder=new TextEncoder;const c=(t,e,n,r)=>{if(r){let{width:e,height:n}=t,o=Object.assign(document.createElement("canvas"),{width:e,height:n}),i=o.getContext("2d");i.fillStyle=r,i.fillRect(0,0,e,n),i.drawImage(t,0,0),t=o}return new Promise((r,o)=>t.toBlob(r,e,n))},s=(t,e)=>{const n=window.URL.createObjectURL(e),r=document.createElement("a");r.style.display="none",r.href=n,r.setAttribute("download",t),void 0===r.download&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>window.URL.revokeObjectURL(n),100)},l={asBuffer:(...t)=>c(...t).then(t=>t.arrayBuffer()),asDownload:async(t,e,n,r,o)=>{s(o,await c(t,e,n,r))},asZipDownload:async(t,e,n,o,i,a,l)=>{let f=Object(r.a)(i,".zip")||"archive",d=new u(f);await Promise.all(t.map(async(t,r)=>{let i=(t=>a.replace("{}",String(t+1).padStart(l,"0")))(r);await d.add(i,await c(t,e,n,o))})),s(f+".zip",d.blob)},atScale:(t,e,n)=>t.map(t=>{if(1==e&&!n)return t.canvas;let r=document.createElement("canvas"),o=r.getContext("2d"),i=t.canvas?t.canvas:t;return r.width=i.width*e,r.height=i.height*e,n&&(o.fillStyle=n,o.fillRect(0,0,r.width,r.height)),o.scale(e,e),o.drawImage(i,0,0),r}),options:function(t,{filename:e="",extension:n="",format:i,page:a,quality:u,matte:c,density:s,outline:l,archive:f}={}){var{fromMime:d,toMime:m,expected:p}=new o,h=(f=f||"canvas",i||n.replace(/@\d+x$/i,"")||Object(r.b)(e)),g=(i=d(m(h)||h),m(i)),v=t.length;if(!h)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!i)throw new Error(`Unsupported file format "${h}" (expected ${p})`);if(!v)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let b,y,_=e.replace(/{(\d*)}/g,(t,e)=>(y=!0,e=parseInt(e,10),b=isFinite(e)?e:isFinite(b)?b:-1,"{}")),w=a>0?a-1:a<0?v+a:void 0;if(isFinite(w)&&w<0||w>=v)throw new RangeError(1==v?`Canvas only has a ‘page 1’ (${w} is out of bounds)`:`Canvas has pages 1–${v} (${w} is out of bounds)`);if(t=isFinite(w)?[t[w]]:y||"pdf"==i?t:t.slice(-1),void 0===u)u=.92;else if("number"!=typeof u||!isFinite(u)||u<0||u>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(void 0===s){let t=(n||Object(r.a)(e,h)).match(/@(\d+)x$/i);s=t?parseInt(t[1],10):1}else if("number"!=typeof s||!Number.isInteger(s)||s<1)throw new TypeError("The density option must be a non-negative integer");return void 0===l?l=!0:"svg"==i&&(l=!!l),{filename:e,pattern:_,format:i,mime:g,pages:t,padding:b,quality:u,matte:c,density:s,outline:l,archive:f}}};e.a=l}).call(this,n(8))},function(t,e,n){"use strict";var r=function(t,e){var n,r,o,i,a;function u(t,e,r,o,i){n[e][0]-=t*(n[e][0]-r)/1024,n[e][1]-=t*(n[e][1]-o)/1024,n[e][2]-=t*(n[e][2]-i)/1024}function c(t,e,r,o,i){for(var u,c,s=Math.abs(e-t),l=Math.min(e+t,256),f=e+1,d=e-1,m=1;f<l||d>s;)c=a[m++],f<l&&((u=n[f++])[0]-=c*(u[0]-r)/(1<<18),u[1]-=c*(u[1]-o)/(1<<18),u[2]-=c*(u[2]-i)/(1<<18)),d>s&&((u=n[d--])[0]-=c*(u[0]-r)/(1<<18),u[1]-=c*(u[1]-o)/(1<<18),u[2]-=c*(u[2]-i)/(1<<18))}function s(t,e,r){var a,u,c,s,l,f=~(1<<31),d=f,m=-1,p=m;for(a=0;a<256;a++)u=n[a],(c=Math.abs(u[0]-t)+Math.abs(u[1]-e)+Math.abs(u[2]-r))<f&&(f=c,m=a),(s=c-(o[a]>>12))<d&&(d=s,p=a),l=i[a]>>10,i[a]-=l,o[a]+=l<<10;return i[m]+=64,o[m]-=65536,p}this.buildColormap=function(){!function(){var t,e;for(n=[],r=new Int32Array(256),o=new Int32Array(256),i=new Int32Array(256),a=new Int32Array(32),t=0;t<256;t++)e=(t<<12)/256,n[t]=new Float64Array([e,e,e,0]),i[t]=256,o[t]=0}(),function(){var n,r,o,i,l,f,d=t.length,m=30+(e-1)/3,p=d/(3*e),h=~~(p/100),g=1024,v=2048,b=v>>6;for(b<=1&&(b=0),n=0;n<b;n++)a[n]=g*(256*(b*b-n*n)/(b*b));d<1509?(e=1,r=3):r=d%499!=0?1497:d%491!=0?1473:d%487!=0?1461:1509;var y=0;for(n=0;n<p;)if(u(g,f=s(o=(255&t[y])<<4,i=(255&t[y+1])<<4,l=(255&t[y+2])<<4),o,i,l),0!==b&&c(b,f,o,i,l),(y+=r)>=d&&(y-=d),0===h&&(h=1),++n%h==0)for(g-=g/m,(b=(v-=v/30)>>6)<=1&&(b=0),f=0;f<b;f++)a[f]=g*(256*(b*b-f*f)/(b*b))}(),function(){for(var t=0;t<256;t++)n[t][0]>>=4,n[t][1]>>=4,n[t][2]>>=4,n[t][3]=t}(),function(){var t,e,o,i,a,u,c=0,s=0;for(t=0;t<256;t++){for(a=t,u=(o=n[t])[1],e=t+1;e<256;e++)(i=n[e])[1]<u&&(a=e,u=i[1]);if(i=n[a],t!=a&&(e=i[0],i[0]=o[0],o[0]=e,e=i[1],i[1]=o[1],o[1]=e,e=i[2],i[2]=o[2],o[2]=e,e=i[3],i[3]=o[3],o[3]=e),u!=c){for(r[c]=s+t>>1,e=c+1;e<u;e++)r[e]=t;c=u,s=t}}for(r[c]=s+255>>1,e=c+1;e<256;e++)r[e]=255}()},this.getColormap=function(){for(var t=[],e=[],r=0;r<256;r++)e[n[r][3]]=r;for(var o=0,i=0;i<256;i++){var a=e[i];t[o++]=n[a][0],t[o++]=n[a][1],t[o++]=n[a][2]}return t},this.lookupRGB=function(t,e,o){for(var i,a,u,c=1e3,s=-1,l=r[e],f=l-1;l<256||f>=0;)l<256&&((u=(a=n[l])[1]-e)>=c?l=256:(l++,u<0&&(u=-u),(i=a[0]-t)<0&&(i=-i),(u+=i)<c&&((i=a[2]-o)<0&&(i=-i),(u+=i)<c&&(c=u,s=a[3])))),f>=0&&((u=e-(a=n[f])[1])>=c?f=-1:(f--,u<0&&(u=-u),(i=a[0]-t)<0&&(i=-i),(u+=i)<c&&((i=a[2]-o)<0&&(i=-i),(u+=i)<c&&(c=u,s=a[3]))));return s}},o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],i=function(t,e,n,r){var i,a,u,c,s,l,f,d,m,p=Math.max(2,r),h=new Uint8Array(256),g=new Int32Array(5003),v=new Int32Array(5003),b=0,y=0,_=!1;function w(t,e){h[a++]=t,a>=254&&S(e)}function x(t){O(5003),y=s+2,_=!0,k(s,t)}function O(t){for(var e=0;e<t;++e)g[e]=-1}function S(t){a>0&&(t.writeByte(a),t.writeBytes(h,0,a),a=0)}function C(t){return(1<<t)-1}function E(){return 0===f?-1:(--f,255&n[d++])}function k(t,e){for(i&=o[b],b>0?i|=t<<b:i=t,b+=m;b>=8;)w(255&i,e),i>>=8,b-=8;if((y>u||_)&&(_?(u=C(m=c),_=!1):(++m,u=12==m?4096:C(m))),t==l){for(;b>0;)w(255&i,e),i>>=8,b-=8;S(e)}}this.encode=function(n){n.writeByte(p),f=t*e,d=0,function(t,e){var n,r,o,i,f,d;for(_=!1,u=C(m=c=t),l=1+(s=1<<t-1),y=s+2,a=0,i=E(),d=0,n=5003;n<65536;n*=2)++d;d=8-d,O(5003),k(s,e);t:for(;-1!=(r=E());)if(n=(r<<12)+i,g[o=r<<d^i]!==n){if(g[o]>=0){f=5003-o,0===o&&(f=1);do{if((o-=f)<0&&(o+=5003),g[o]===n){i=v[o];continue t}}while(g[o]>=0)}k(i,e),i=r,y<4096?(v[o]=y++,g[o]=n):x(e)}else i=v[o];k(i,e),k(l,e)}(p+1,n),n.writeByte(0)}};function a(){this.page=-1,this.pages=[],this.newPage()}a.pageSize=4096,a.charMap={};for(var u=0;u<256;u++)a.charMap[u]=String.fromCharCode(u);function c(t,e){this.width=~~t,this.height=~~e,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new a}a.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(a.pageSize),this.cursor=0},a.prototype.getData=function(){for(var t="",e=0;e<this.pages.length;e++)for(var n=0;n<a.pageSize;n++)t+=a.charMap[this.pages[e][n]];return t},a.prototype.toFlattenUint8Array=function(){for(var t=[],e=0;e<this.pages.length;e++)if(e===this.pages.length-1){var n=Uint8Array.from(this.pages[e].slice(0,this.cursor));t.push(n)}else t.push(this.pages[e]);var r=new Uint8Array(t.reduce((function(t,e){return t+e.length}),0));return t.reduce((function(t,e){return r.set(e,t),t+e.length}),0),r},a.prototype.writeByte=function(t){this.cursor>=a.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},a.prototype.writeUTFBytes=function(t){for(var e=t.length,n=0;n<e;n++)this.writeByte(t.charCodeAt(n))},a.prototype.writeBytes=function(t,e,n){for(var r=n||t.length,o=e||0;o<r;o++)this.writeByte(t[o])},c.prototype.setDelay=function(t){this.delay=Math.round(t/10)},c.prototype.setFrameRate=function(t){this.delay=Math.round(100/t)},c.prototype.setDispose=function(t){t>=0&&(this.dispose=t)},c.prototype.setRepeat=function(t){this.repeat=t},c.prototype.setTransparent=function(t){this.transparent=t},c.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},c.prototype.finish=function(){this.out.writeByte(59)},c.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},c.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},c.prototype.setGlobalPalette=function(t){this.globalPalette=t},c.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},c.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},c.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new r(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},c.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var n=0,r=0;r<e;r++){var o=this.findClosestRGB(255&this.pixels[n++],255&this.pixels[n++],255&this.pixels[n++]);this.usedEntry[o]=!0,this.indexedPixels[r]=o}},c.prototype.ditherPixels=function(t,e){var n={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[2/8,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!t||!n[t])throw"Unknown dithering kernel: "+t;var r=n[t],o=0,i=this.height,a=this.width,u=this.pixels,c=e?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var s=0;s<i;s++){e&&(c*=-1);for(var l=1==c?0:a-1,f=1==c?a:0;l!==f;l+=c){var d=3*(o=s*a+l),m=u[d],p=u[d+1],h=u[d+2];d=this.findClosestRGB(m,p,h),this.usedEntry[d]=!0,this.indexedPixels[o]=d,d*=3;for(var g=m-this.colorTab[d],v=p-this.colorTab[d+1],b=h-this.colorTab[d+2],y=1==c?0:r.length-1,_=1==c?r.length:0;y!==_;y+=c){var w=r[y][1],x=r[y][2];if(w+l>=0&&w+l<a&&x+s>=0&&x+s<i){var O=r[y][0];d=o+w+x*a,u[d*=3]=Math.max(0,Math.min(255,u[d]+g*O)),u[d+1]=Math.max(0,Math.min(255,u[d+1]+v*O)),u[d+2]=Math.max(0,Math.min(255,u[d+2]+b*O))}}}}},c.prototype.findClosest=function(t,e){return this.findClosestRGB((16711680&t)>>16,(65280&t)>>8,255&t,e)},c.prototype.findClosestRGB=function(t,e,n,r){if(null===this.colorTab)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(t,e,n);for(var o=0,i=16777216,a=this.colorTab.length,u=0,c=0;u<a;c++){var s=t-(255&this.colorTab[u++]),l=e-(255&this.colorTab[u++]),f=n-(255&this.colorTab[u++]),d=s*s+l*l+f*f;(!r||this.usedEntry[c])&&d<i&&(i=d,o=c)}return o},c.prototype.getImagePixels=function(){var t=this.width,e=this.height;this.pixels=new Uint8Array(t*e*3);for(var n=this.image,r=0,o=0,i=0;i<e;i++)for(var a=0;a<t;a++)this.pixels[o++]=n[r++],this.pixels[o++]=n[r++],this.pixels[o++]=n[r++],r++},c.prototype.writeGraphicCtrlExt=function(){var t,e;this.out.writeByte(33),this.out.writeByte(249),this.out.writeByte(4),null===this.transparent?(t=0,e=0):(t=1,e=2),this.dispose>=0&&(e=7&this.dispose),e<<=2,this.out.writeByte(0|e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},c.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},c.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},c.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},c.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e<t;e++)this.out.writeByte(0)},c.prototype.writeShort=function(t){this.out.writeByte(255&t),this.out.writeByte(t>>8&255)},c.prototype.writePixels=function(){new i(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},c.prototype.stream=function(){return this.out},e.a=c},function(t,e,n){t.exports=n(20)},function(t,e,n){var r=n(2).default;function o(){"use strict";
|
|
1
|
+
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00b4":function(t,e,n){"use strict";n("ac1f");var r,o,i=n("23e7"),a=n("c65b"),u=n("1626"),c=n("825a"),s=n("577e"),l=(r=!1,(o=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&r),f=/./.test;i({target:"RegExp",proto:!0,forced:!l},{test:function(t){var e=c(this),n=s(t),r=e.exec;if(!u(r))return a(f,e,n);var o=a(r,e,n);return null!==o&&(c(o),!0)}})},"00ee":function(t,e,n){"use strict";var r={};r[n("b622")("toStringTag")]="z",t.exports="[object z]"===String(r)},"01b4":function(t,e,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=r},"0366":function(t,e,n){"use strict";var r=n("4625"),o=n("59ed"),i=n("40d5"),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},"04f8":function(t,e,n){"use strict";var r=n("1212"),o=n("d039"),i=n("cfe9").String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"057f":function(t,e,n){"use strict";var r=n("c6b6"),o=n("fc6a"),i=n("241c").f,a=n("f36a"),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"Window"===r(t)?function(t){try{return i(t)}catch(t){return a(u)}}(t):i(o(t))}},"06cf":function(t,e,n){"use strict";var r=n("83ab"),o=n("c65b"),i=n("d1e7"),a=n("5c6c"),u=n("fc6a"),c=n("a04b"),s=n("1a2d"),l=n("0cfb"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=u(t),e=c(e),l)try{return f(t,e)}catch(t){}if(s(t,e))return a(!o(i.f,t,e),t[e])}},"07d1":function(t,e,n){n("94ce")},"07df":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("3c7c"),a=(r=i)&&r.__esModule?r:{default:r};var u=function(t){var e=t.substr(0,13).split("").map((function(t){return parseInt(t,10)})).reduce((function(t,e,n){return t+e*(3-n%2*2)}),0);return 10*Math.ceil(e/10)-e},c=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{13}$/)&&(t+=u(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===u(this.data)}}]),e}(a.default);e.default=c},"07fa":function(t,e,n){"use strict";var r=n("50c4");t.exports=function(t){return r(t.length)}},"083a":function(t,e,n){"use strict";var r=n("0d51"),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw new o("Cannot delete property "+r(e)+" of "+r(t))}},"0a06":function(t,e,n){"use strict";var r=n("2444"),o=n("c532"),i=n("f6b4"),a=n("5270");function u(t){this.defaults=t,this.interceptors={request:new i,response:new i}}u.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}})),o.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}})),t.exports=u},"0aba":function(t,e,n){"use strict";n("43c7")},"0b42":function(t,e,n){"use strict";var r=n("e8b5"),o=n("68ee"),i=n("861d"),a=n("b622")("species"),u=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===u||r(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?u:e}},"0b43":function(t,e,n){"use strict";var r=n("04f8");t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},"0c47":function(t,e,n){"use strict";var r=n("cfe9");n("d44e")(r.JSON,"JSON",!0)},"0cb2":function(t,e,n){"use strict";var r=n("e330"),o=n("7b0b"),i=Math.floor,a=r("".charAt),u=r("".replace),c=r("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,d){var m=n+t.length,p=r.length,h=l;return void 0!==f&&(f=o(f),h=s),u(d,h,(function(o,u){var s;switch(a(u,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,n);case"'":return c(e,m);case"<":s=f[c(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>p){var d=i(l/10);return 0===d?o:d<=p?void 0===r[d-1]?a(u,1):r[d-1]+a(u,1):o}s=r[l-1]}return void 0===s?"":s}))}},"0cd8":function(t,e,n){"use strict";var r={name:"generate-report",components:{GenerateFormItem:n("12f6").a},props:["element","model","rules","remote","display","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModels:this.model}},methods:{fillingColumns:function(t){this.$emit("fillingColumns",t)}},watch:{model:{deep:!0,handler:function(t){this.dataModels=this.model}}}},o=n("2877"),i=Object(o.a)(r,(function(){var t,e=this,n=e.$createElement,r=e._self._c||n;return e.display[e.element.model]?r("table",{staticClass:"renderer-report",class:(t={},t[e.element.options&&e.element.options.customClass]=e.element.options&&e.element.options.customClass,t),style:{"border-top-width":e.element.options.borderWidth+"px","border-top-color":e.element.options.borderColor,"border-left-width":e.element.options.borderWidth+"px","border-left-color":e.element.options.borderColor,width:e.element.options.width||"100%"}},e._l(e.element.rows,(function(t,n){return r("tr",{key:n},e._l(t.columns,(function(t,o){var i;return t.options.invisible?e._e():r("td",{key:n+"-"+o,staticClass:"report-container-td",class:(i={},i[t.options.customClass]=t.options.customClass,i),style:{"border-right-width":e.element.options.borderWidth+"px","border-right-color":e.element.options.borderColor,"border-bottom-width":e.element.options.borderWidth+"px","border-bottom-color":e.element.options.borderColor,width:t.options.width,height:t.options.height},attrs:{colspan:t.options.colspan,rowspan:t.options.rowspan,valign:"top"}},[e._l(t.list,(function(t){return[r("generate-form-item",{key:t.key,attrs:{"container-key":e.containerKey,"data-source-value":e.dataSourceValue,display:e.display,edit:e.edit,"event-function":e.eventFunction,models:e.dataModels,platform:e.platform,preview:e.preview,"print-read":e.printRead,remote:e.remote,"remote-option-source":e.remoteOptionSource,rules:e.rules,widget:t},on:{fillingColumns:e.fillingColumns}})]}))],2)})),0)})),0):e._e()}),[],!1,null,null,null);e.a=i.exports},"0cfb":function(t,e,n){"use strict";var r=n("83ab"),o=n("d039"),i=n("cc12");t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){"use strict";var r=n("e330"),o=Error,i=r("".replace),a=String(new o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,c=u.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,u,"");return t}},"0d51":function(t,e,n){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0f01":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("8bbf"),o=new(n.n(r).a)},"107c":function(t,e,n){"use strict";var r=n("d039"),o=n("cfe9").RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},1148:function(t,e,n){"use strict";var r=n("5926"),o=n("577e"),i=n("1d80"),a=RangeError;t.exports=function(t){var e=o(i(this)),n="",u=r(t);if(u<0||u===1/0)throw new a("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(e+=e))1&u&&(n+=e);return n}},1212:function(t,e,n){"use strict";var r,o,i=n("cfe9"),a=n("b5db"),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,l=s&&s.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},"124f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("e762");var a=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"encode",value:function(){for(var t="110",e=0;e<this.data.length;e++){var n=parseInt(this.data[e]).toString(2);n=u(n,4-n.length);for(var r=0;r<n.length;r++)t+="0"==n[r]?"100":"110"}return{data:t+="1001",text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]+$/)}}]),e}(((r=i)&&r.__esModule?r:{default:r}).default);function u(t,e){for(var n=0;n<e;n++)t="0"+t;return t}e.default=a},1276:function(t,e,n){"use strict";var r=n("c65b"),o=n("e330"),i=n("d784"),a=n("825a"),u=n("7234"),c=n("1d80"),s=n("4840"),l=n("8aa5"),f=n("50c4"),d=n("577e"),m=n("dc4a"),p=n("14c3"),h=n("9f7f"),g=n("d039"),v=h.UNSUPPORTED_Y,b=Math.min,y=o([].push),_=o("".slice),w=!g((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),x="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",(function(t,e,n){var o="0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:r(e,this,t,n)}:e;return[function(e,n){var i=c(this),a=u(e)?void 0:m(e,t);return a?r(a,e,i,n):r(o,d(i),e,n)},function(t,r){var i=a(this),u=d(t);if(!x){var c=n(o,i,u,r,o!==e);if(c.done)return c.value}var m=s(i,RegExp),h=i.unicode,g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(v?"g":"y"),w=new m(v?"^(?:"+i.source+")":i,g),O=void 0===r?4294967295:r>>>0;if(0===O)return[];if(0===u.length)return null===p(w,u)?[u]:[];for(var S=0,C=0,E=[];C<u.length;){w.lastIndex=v?0:C;var k,T=p(w,v?_(u,C):u);if(null===T||(k=b(f(w.lastIndex+(v?C:0)),u.length))===S)C=l(u,C,h);else{if(y(E,_(u,S,C)),E.length===O)return E;for(var M=1;M<=T.length-1;M++)if(y(E,T[M]),E.length===O)return E;C=S=k}}return y(E,_(u,S)),E}]}),x||!w,v)},"129f":function(t,e,n){"use strict";t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},"12f6":function(t,e,n){"use strict";var r=n("5530"),o=n("c7eb"),i=n("1da1"),a=(n("d9e2"),n("99af"),n("7db0"),n("c740"),n("caad"),n("a15b"),n("d81d"),n("14d9"),n("a434"),n("b0c0"),n("a9e3"),n("b680"),n("b64b"),n("d3b7"),n("25f0"),n("2532"),n("159b"),n("2909")),u=(n("4de4"),n("fb6a"),n("e9c4"),n("ac1f"),n("841c"),{STATIC_DATA:"static",API_DATA:"datasource",DICT_DATA:"dict",FUNCTIONS:"func",FORMS:"form",OPTION:"option"});var c=n("7694");function s(t,e){return l.apply(this,arguments)}function l(){return(l=Object(i.a)(Object(o.a)().mark((function t(e,n){var i,a;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={total:0,data:[]},t.prev=1,t.next=4,Object(c.f)(n);case 4:if("0000"===(a=t.sent).data.code){t.next=8;break}return e.$message.error("加载字典选项失败 : ".concat(a.data.message)),t.abrupt("return",i);case 8:return a.data.data.forEach((function(t){i.data.push(Object(r.a)(Object(r.a)({},t),{},{dataType:"dictItem",id:t.id,label:t.itemName,value:t.itemCode}))})),i.total=a.data.data.length,t.abrupt("return",i);case 13:return t.prev=13,t.t0=t.catch(1),e.$message.error("加载字典选项失败 : ".concat(t.t0.message)),t.abrupt("return",i);case 17:case"end":return t.stop()}}),t,null,[[1,13]])})))).apply(this,arguments)}var f=n("9a01"),d=(n("e260"),n("3ca3"),n("ddb0"),n("2b3d"),n("bf19"),n("9861"),n("88a7"),n("271a"),n("5494"),n("bcc9")),m=n("ff84"),p=n("60bb"),h=n.n(p),g={name:"UploadFileComponent",components:{BaseIcon:m.a},props:{value:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},limit:{type:Number,default:9},size:{type:Number,default:50},disabled:{type:Boolean,default:!1},tip:{type:String,default:""},printRead:{type:Boolean,default:!1},accept:{type:String,default:"*"},searchable:{type:Boolean,default:!1},isBatchDownload:{type:Boolean,default:!1},widgetName:{type:String,default:null}},model:{prop:"value",event:"change"},inject:{edit:{type:Boolean,default:!1}},watch:{value:{handler:function(t){this.searchValue.length||(this.displayValue=h.a.cloneDeep(t))}}},created:function(){this.fileList=(this.value||[]).map((function(t){return t.status="success",t})),this.handleEmitChange()},data:function(){return{fileList:[],serverInfo:Object(c.l)(),multipleSelection:[],searchValue:"",displayValue:[],selectedRows:[]}},methods:{handleDownload:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var r,i,a,u,s,l,f,d,m;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.fileName,i=t.originalName,t.fileName||(a=new URL(t.url),u=new URLSearchParams(a.search),r=u.get("fileName"),i=u.get("originalName")),n.prev=3,s={fileName:r,originalName:i},n.next=7,Object(c.d)(s);case 7:200===(l=n.sent).status?(f=new Blob([l.data]),d=document.createElement("a"),m=URL.createObjectURL(f),d.href=m,d.download="".concat(t.name),document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(m)):e.$message.warning("下载文件出错"),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(3);case 14:case"end":return n.stop()}}),n,null,[[3,11]])})))()},onSearch:function(){var t=this;this.searchValue.length?this.displayValue=h.a.cloneDeep(this.value.filter((function(e){return e.name.toLowerCase().indexOf(t.searchValue.toLowerCase())>-1}))):this.displayValue=h.a.cloneDeep(this.value)},batchDownload:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.a)(t.selectedRows,t.widgetName);case 2:case"end":return e.stop()}}),e)})))()},handleSelectionChange:function(t){this.selectedRows=t,this.multipleSelection=t},handleRemove:function(t,e){this.fileList=e,this.$emit("onRemove",t),this.handleEmitChange()},handlePreview:function(t){this.handleDownload(t)},handleSuccess:function(t,e,n){if("0000"!==t.code){this.$message.error("文件上传失败!");var r=0;return n.forEach((function(t,n){t.name===e.name&&(r=n)})),void n.splice(r,1)}this.$emit("onSuccess");var o=n.findIndex((function(t){return t.uid===e.uid}));o>=0&&(n[o]={uid:e.uid,status:"success",name:e.name,url:"".concat(this.serverInfo.baseUrl).concat(t.data&&t.data.length&&t.data[0],"&originalName=").concat(encodeURI(e.name)),fileName:t.data&&t.data.length&&t.data[0],originalName:encodeURI(e.name)},this.fileList=n,this.handleEmitChange())},handleExceed:function(t,e){this.$message.warning("本次选择了 ".concat(t.length," 个文件,共选择了 ").concat(t.length+e.length," 个文件,已超出当前限制 ").concat(this.limit," 个文件"))},handleBeforeUpload:function(t){if(t.size>1024*this.size*1024)return this.$message.error("".concat(t.name," 文件大小已大于 ").concat(this.size," MB ,上传失败!")),!1},handleEmitChange:function(){var t=this.fileList.filter((function(t){return"success"===t.status})).map((function(t){return{name:t.name,url:t.url,fileName:t.fileName,originalName:t.originalName}}));this.$emit("change",t)}}},v=(n("1b11"),n("2877")),b=Object(v.a)(g,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.printRead?n("div",{staticClass:"upload-file-preview-container"},[t.edit&&(t.searchable||t.isBatchDownload)?n("div",{staticClass:"header"},[n("div",{staticClass:"header-item left"},[t.searchable?n("el-input",{staticClass:"header-sub-item",attrs:{placeholder:"按文件名搜索",size:"mini","validate-event":!1,disabled:!t.value.length,clearable:!0},on:{change:t.onSearch},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[n("el-button",{attrs:{slot:"append",size:"mini"},on:{click:t.onSearch},slot:"append"},[n("base-icon",{attrs:{"icon-class":"search-line"}})],1)],1):t._e(),t.isBatchDownload?n("el-button",{staticClass:"header-sub-item",attrs:{size:"mini",type:"primary",disabled:!t.multipleSelection.length},on:{click:t.batchDownload}},[t._v(" 批量下载 ")]):t._e()],1)]):t._e(),n("div",{staticClass:"body"},[n("el-table",{staticClass:"iss-form-renderer-table outside-border",attrs:{data:t.displayValue,"show-header":t.edit,size:"mini","highlight-current-row":"",stripe:""},on:{"selection-change":t.handleSelectionChange}},[t.edit?n("el-table-column",{attrs:{type:"selection"}}):t._e(),n("el-table-column",{attrs:{label:"文件名"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-tooltip",{attrs:{content:"下载/预览","open-delay":500,placement:"right"}},[n("el-link",{attrs:{underline:!1},on:{click:function(n){return t.handleDownload(e.row)}}},[t._v(" "+t._s(e.row.name)+" ")])],1)]}}])})],1)],1)]):n("el-upload",{staticClass:"iss-upload-file",attrs:{action:t.serverInfo.action,"before-upload":t.handleBeforeUpload,disabled:t.disabled,"file-list":t.fileList,headers:t.serverInfo.headers,limit:t.limit,multiple:t.multiple,"on-exceed":t.handleExceed,"on-preview":t.handlePreview,"on-remove":t.handleRemove,"on-success":t.handleSuccess,accept:t.accept}},[n("el-button",{staticClass:"iss-upload-button",attrs:{disabled:t.disabled,size:"mini",type:"primary"}},[n("base-icon",{attrs:{"icon-class":"file-upload-line"}}),t._v(" 点击上传 ")],1),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v(" 1.限制上传 "+t._s(t.multiple?t.limit:"1")+" 个附件,且每个附件不超过 "+t._s(t.size)+" MB "),t.tip?[n("br"),t._v(" 2."+t._s(t.tip)+" ")]:t._e()],2)],1)],1)}),[],!1,null,null,null).exports,y={name:"UploadImageComponent",components:{},props:{value:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},limit:{type:Number,default:9},size:{type:Number,default:50},disabled:{type:Boolean,default:!1},tip:{type:String,default:""},printRead:{type:Boolean,default:!1}},model:{prop:"value",event:"change"},data:function(){return{fileList:[],serverInfo:Object(c.l)(),dialogImageUrl:"",dialogVisible:!1}},created:function(){this.fileList=(this.value||[]).map((function(t){return t.status="success",t})),this.handleEmitChange()},methods:{handleRemove:function(t,e){this.fileList=e,this.$emit("onRemove",t),this.handleEmitChange()},handlePreview:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var r,i,a,u,s,l;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.fileName,n.prev=1,t.fileName||(i=new URL(t.url),a=new URLSearchParams(i.search),r=a.get("fileName")),u={fileName:r},n.next=6,Object(c.d)(u);case 6:200===(s=n.sent).status?(l=new Blob([s.data]),e.dialogImageUrl=URL.createObjectURL(l),e.dialogVisible=!0):e.$message.warning("预览文件出错"),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(1);case 13:case"end":return n.stop()}}),n,null,[[1,10]])})))()},handleClosePreview:function(){this.dialogImageUrl="",this.dialogVisible=!1},handleSuccess:function(t,e,n){if("0000"!==t.code){this.$message.error("文件上传失败!");var r=0;return n.forEach((function(t,n){t.name===e.name&&(r=n)})),void n.splice(r,1)}this.$emit("onSuccess");var o=n.findIndex((function(t){return t.uid===e.uid}));o>=0&&(n[o]={status:"success",name:e.name,url:"".concat(this.serverInfo.baseUrl).concat(t.data&&t.data.length&&t.data[0]),fileName:t.data&&t.data.length&&t.data[0]},this.fileList=n,this.handleEmitChange())},handleExceed:function(t,e){this.$message.warning("本次选择了 ".concat(t.length," 个图片,共选择了 ").concat(t.length+e.length," 个图片,已超出当前限制 ").concat(this.limit," 个图片"))},handleDownload:function(t){},handleBeforeUpload:function(t){if(t.size>1024*this.size*1024)return this.$message.error("".concat(t.name," 图片大小已大于 ").concat(this.size," MB ,上传失败!")),!1},handleEmitChange:function(){var t=this.fileList.filter((function(t){return"success"===t.status})).map((function(t){return{name:t.name,url:t.url,fileName:t.fileName}}));this.$emit("change",t)}}},_=(n("c5f1"),Object(v.a)(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-upload",{staticClass:"iss-upload-file",class:{"print-read":t.printRead},attrs:{action:t.serverInfo.action,"before-upload":t.handleBeforeUpload,disabled:t.disabled||t.printRead,"file-list":t.fileList,headers:t.serverInfo.headers,limit:t.limit,multiple:t.multiple,"on-exceed":t.handleExceed,"on-preview":t.handlePreview,"on-remove":t.handleRemove,"on-success":t.handleSuccess,accept:"image/*","list-type":"picture-card"}},[n("div",{staticClass:"iss-upload-button",attrs:{size:"mini",type:"primary"}},[n("base-icon",{attrs:{"icon-class":"image-add-fill"}})],1),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v(" 1.限制上传 "+t._s(t.multiple?t.limit:"1")+" 个图片,且每个附件不超过 "+t._s(t.size)+" MB "),n("br"),t._v(" 2.只能上传图片类型文件 "),t.tip?[n("br"),t._v(" 3."+t._s(t.tip)+" ")]:t._e(),t.dialogVisible?n("el-dialog",{staticClass:"iss-form-renderer-dialog-wrapper",attrs:{visible:t.dialogVisible,"custom-class":"iss-form-renderer-dialog-control",width:"800px","append-to-body":"",title:"图片预览","show-close":!0,"before-close":t.handleClosePreview},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.dialogImageUrl,fit:"contain"}})],1):t._e()],2)])}),[],!1,null,null,null).exports),w=n("ec26"),x={name:"UUIDComponent",props:{value:{type:String,default:""},printRead:{type:Boolean,default:!1},customStyle:{type:Object,default:function(){return{}}}},model:{prop:"value",event:"change"},mounted:function(){this.value||this.$emit("change",Object(w.a)())},watch:{value:function(){this.value||this.$emit("change",Object(w.a)())}}},O=Object(v.a)(x,(function(){var t=this.$createElement;return(this._self._c||t)("el-input",{attrs:{disabled:!0,value:this.value}})}),[],!1,null,null,null).exports,S=n("5176"),C=n.n(S);var E=function(){this.__data__=[],this.size=0};var k=function(t,e){return t===e||t!=t&&e!=e};var T=function(t,e){for(var n=t.length;n--;)if(k(t[n][0],e))return n;return-1},M=Array.prototype.splice;var D=function(t){var e=this.__data__,n=T(e,t);return!(n<0)&&(n==e.length-1?e.pop():M.call(e,n,1),--this.size,!0)};var A=function(t){var e=this.__data__,n=T(e,t);return n<0?void 0:e[n][1]};var P=function(t){return T(this.__data__,t)>-1};var R=function(t,e){var n=this.__data__,r=T(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function I(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}I.prototype.clear=E,I.prototype.delete=D,I.prototype.get=A,I.prototype.has=P,I.prototype.set=R;var z=I;var j=function(){this.__data__=new z,this.size=0};var L=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var B=function(t){return this.__data__.get(t)};var F=function(t){return this.__data__.has(t)},N=n("26ee"),H=N.a.Symbol,V=Object.prototype,U=V.hasOwnProperty,W=V.toString,$=H?H.toStringTag:void 0;var G=function(t){var e=U.call(t,$),n=t[$];try{t[$]=void 0;var r=!0}catch(t){}var o=W.call(t);return r&&(e?t[$]=n:delete t[$]),o},K=Object.prototype.toString;var q=function(t){return K.call(t)},X=H?H.toStringTag:void 0;var Y=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":X&&X in Object(t)?G(t):q(t)};var J=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var Q,Z=function(t){if(!J(t))return!1;var e=Y(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},tt=N.a["__core-js_shared__"],et=(Q=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"";var nt=function(t){return!!et&&et in t},rt=Function.prototype.toString;var ot=function(t){if(null!=t){try{return rt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},it=/^\[object .+?Constructor\]$/,at=Function.prototype,ut=Object.prototype,ct=at.toString,st=ut.hasOwnProperty,lt=RegExp("^"+ct.call(st).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ft=function(t){return!(!J(t)||nt(t))&&(Z(t)?lt:it).test(ot(t))};var dt=function(t,e){return null==t?void 0:t[e]};var mt=function(t,e){var n=dt(t,e);return ft(n)?n:void 0},pt=mt(N.a,"Map"),ht=mt(Object,"create");var gt=function(){this.__data__=ht?ht(null):{},this.size=0};var vt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},bt=Object.prototype.hasOwnProperty;var yt=function(t){var e=this.__data__;if(ht){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return bt.call(e,t)?e[t]:void 0},_t=Object.prototype.hasOwnProperty;var wt=function(t){var e=this.__data__;return ht?void 0!==e[t]:_t.call(e,t)};var xt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ht&&void 0===e?"__lodash_hash_undefined__":e,this};function Ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ot.prototype.clear=gt,Ot.prototype.delete=vt,Ot.prototype.get=yt,Ot.prototype.has=wt,Ot.prototype.set=xt;var St=Ot;var Ct=function(){this.size=0,this.__data__={hash:new St,map:new(pt||z),string:new St}};var Et=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var kt=function(t,e){var n=t.__data__;return Et(e)?n["string"==typeof e?"string":"hash"]:n.map};var Tt=function(t){var e=kt(this,t).delete(t);return this.size-=e?1:0,e};var Mt=function(t){return kt(this,t).get(t)};var Dt=function(t){return kt(this,t).has(t)};var At=function(t,e){var n=kt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Pt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Pt.prototype.clear=Ct,Pt.prototype.delete=Tt,Pt.prototype.get=Mt,Pt.prototype.has=Dt,Pt.prototype.set=At;var Rt=Pt;var It=function(t,e){var n=this.__data__;if(n instanceof z){var r=n.__data__;if(!pt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Rt(r)}return n.set(t,e),this.size=n.size,this};function zt(t){var e=this.__data__=new z(t);this.size=e.size}zt.prototype.clear=j,zt.prototype.delete=L,zt.prototype.get=B,zt.prototype.has=F,zt.prototype.set=It;var jt=zt;var Lt=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},Bt=function(){try{var t=mt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var Ft=function(t,e,n){"__proto__"==e&&Bt?Bt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},Nt=Object.prototype.hasOwnProperty;var Ht=function(t,e,n){var r=t[e];Nt.call(t,e)&&k(r,n)&&(void 0!==n||e in t)||Ft(t,e,n)};var Vt=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var u=e[i],c=r?r(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),o?Ft(n,u,c):Ht(n,u,c)}return n};var Ut=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};var Wt=function(t){return null!=t&&"object"==typeof t};var $t=function(t){return Wt(t)&&"[object Arguments]"==Y(t)},Gt=Object.prototype,Kt=Gt.hasOwnProperty,qt=Gt.propertyIsEnumerable,Xt=$t(function(){return arguments}())?$t:function(t){return Wt(t)&&Kt.call(t,"callee")&&!qt.call(t,"callee")},Yt=Array.isArray,Jt=n("58e0"),Qt=/^(?:0|[1-9]\d*)$/;var Zt=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Qt.test(t))&&t>-1&&t%1==0&&t<e};var te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},ee={};ee["[object Float32Array]"]=ee["[object Float64Array]"]=ee["[object Int8Array]"]=ee["[object Int16Array]"]=ee["[object Int32Array]"]=ee["[object Uint8Array]"]=ee["[object Uint8ClampedArray]"]=ee["[object Uint16Array]"]=ee["[object Uint32Array]"]=!0,ee["[object Arguments]"]=ee["[object Array]"]=ee["[object ArrayBuffer]"]=ee["[object Boolean]"]=ee["[object DataView]"]=ee["[object Date]"]=ee["[object Error]"]=ee["[object Function]"]=ee["[object Map]"]=ee["[object Number]"]=ee["[object Object]"]=ee["[object RegExp]"]=ee["[object Set]"]=ee["[object String]"]=ee["[object WeakMap]"]=!1;var ne=function(t){return Wt(t)&&te(t.length)&&!!ee[Y(t)]};var re=function(t){return function(e){return t(e)}},oe=n("c6eb"),ie=oe.a&&oe.a.isTypedArray,ae=ie?re(ie):ne,ue=Object.prototype.hasOwnProperty;var ce=function(t,e){var n=Yt(t),r=!n&&Xt(t),o=!n&&!r&&Object(Jt.a)(t),i=!n&&!r&&!o&&ae(t),a=n||r||o||i,u=a?Ut(t.length,String):[],c=u.length;for(var s in t)!e&&!ue.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Zt(s,c))||u.push(s);return u},se=Object.prototype;var le=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||se)};var fe=function(t,e){return function(n){return t(e(n))}},de=fe(Object.keys,Object),me=Object.prototype.hasOwnProperty;var pe=function(t){if(!le(t))return de(t);var e=[];for(var n in Object(t))me.call(t,n)&&"constructor"!=n&&e.push(n);return e};var he=function(t){return null!=t&&te(t.length)&&!Z(t)};var ge=function(t){return he(t)?ce(t):pe(t)};var ve=function(t,e){return t&&Vt(e,ge(e),t)};var be=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},ye=Object.prototype.hasOwnProperty;var _e=function(t){if(!J(t))return be(t);var e=le(t),n=[];for(var r in t)("constructor"!=r||!e&&ye.call(t,r))&&n.push(r);return n};var we=function(t){return he(t)?ce(t,!0):_e(t)};var xe=function(t,e){return t&&Vt(e,we(e),t)},Oe=n("dff1");var Se=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};var Ce=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i};var Ee=function(){return[]},ke=Object.prototype.propertyIsEnumerable,Te=Object.getOwnPropertySymbols,Me=Te?function(t){return null==t?[]:(t=Object(t),Ce(Te(t),(function(e){return ke.call(t,e)})))}:Ee;var De=function(t,e){return Vt(t,Me(t),e)};var Ae=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t},Pe=fe(Object.getPrototypeOf,Object),Re=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Ae(e,Me(t)),t=Pe(t);return e}:Ee;var Ie=function(t,e){return Vt(t,Re(t),e)};var ze=function(t,e,n){var r=e(t);return Yt(t)?r:Ae(r,n(t))};var je=function(t){return ze(t,ge,Me)};var Le=function(t){return ze(t,we,Re)},Be=mt(N.a,"DataView"),Fe=mt(N.a,"Promise"),Ne=mt(N.a,"Set"),He=mt(N.a,"WeakMap"),Ve=ot(Be),Ue=ot(pt),We=ot(Fe),$e=ot(Ne),Ge=ot(He),Ke=Y;(Be&&"[object DataView]"!=Ke(new Be(new ArrayBuffer(1)))||pt&&"[object Map]"!=Ke(new pt)||Fe&&"[object Promise]"!=Ke(Fe.resolve())||Ne&&"[object Set]"!=Ke(new Ne)||He&&"[object WeakMap]"!=Ke(new He))&&(Ke=function(t){var e=Y(t),n="[object Object]"==e?t.constructor:void 0,r=n?ot(n):"";if(r)switch(r){case Ve:return"[object DataView]";case Ue:return"[object Map]";case We:return"[object Promise]";case $e:return"[object Set]";case Ge:return"[object WeakMap]"}return e});var qe=Ke,Xe=Object.prototype.hasOwnProperty;var Ye=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Xe.call(t,"index")&&(n.index=t.index,n.input=t.input),n},Je=N.a.Uint8Array;var Qe=function(t){var e=new t.constructor(t.byteLength);return new Je(e).set(new Je(t)),e};var Ze=function(t,e){var n=e?Qe(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)},tn=/\w*$/;var en=function(t){var e=new t.constructor(t.source,tn.exec(t));return e.lastIndex=t.lastIndex,e},nn=H?H.prototype:void 0,rn=nn?nn.valueOf:void 0;var on=function(t){return rn?Object(rn.call(t)):{}};var an=function(t,e){var n=e?Qe(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var un=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Qe(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return Ze(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return an(t,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return en(t);case"[object Set]":return new r;case"[object Symbol]":return on(t)}},cn=Object.create,sn=function(){function t(){}return function(e){if(!J(e))return{};if(cn)return cn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var ln=function(t){return"function"!=typeof t.constructor||le(t)?{}:sn(Pe(t))};var fn=function(t){return Wt(t)&&"[object Map]"==qe(t)},dn=oe.a&&oe.a.isMap,mn=dn?re(dn):fn;var pn=function(t){return Wt(t)&&"[object Set]"==qe(t)},hn=oe.a&&oe.a.isSet,gn=hn?re(hn):pn,vn={};vn["[object Arguments]"]=vn["[object Array]"]=vn["[object ArrayBuffer]"]=vn["[object DataView]"]=vn["[object Boolean]"]=vn["[object Date]"]=vn["[object Float32Array]"]=vn["[object Float64Array]"]=vn["[object Int8Array]"]=vn["[object Int16Array]"]=vn["[object Int32Array]"]=vn["[object Map]"]=vn["[object Number]"]=vn["[object Object]"]=vn["[object RegExp]"]=vn["[object Set]"]=vn["[object String]"]=vn["[object Symbol]"]=vn["[object Uint8Array]"]=vn["[object Uint8ClampedArray]"]=vn["[object Uint16Array]"]=vn["[object Uint32Array]"]=!0,vn["[object Error]"]=vn["[object Function]"]=vn["[object WeakMap]"]=!1;var bn=function t(e,n,r,o,i,a){var u,c=1&n,s=2&n,l=4&n;if(r&&(u=i?r(e,o,i,a):r(e)),void 0!==u)return u;if(!J(e))return e;var f=Yt(e);if(f){if(u=Ye(e),!c)return Se(e,u)}else{var d=qe(e),m="[object Function]"==d||"[object GeneratorFunction]"==d;if(Object(Jt.a)(e))return Object(Oe.a)(e,c);if("[object Object]"==d||"[object Arguments]"==d||m&&!i){if(u=s||m?{}:ln(e),!c)return s?Ie(e,xe(u,e)):De(e,ve(u,e))}else{if(!vn[d])return i?e:{};u=un(e,d,c)}}a||(a=new jt);var p=a.get(e);if(p)return p;a.set(e,u),gn(e)?e.forEach((function(o){u.add(t(o,n,r,o,e,a))})):mn(e)&&e.forEach((function(o,i){u.set(i,t(o,n,r,i,e,a))}));var h=f?void 0:(l?s?Le:je:s?we:ge)(e);return Lt(h||e,(function(o,i){h&&(o=e[i=o]),Ht(u,i,t(o,n,r,i,e,a))})),u};var yn=function(t){return bn(t,5)};const _n={},wn={},xn=C.a[86],On=[];let Sn=[];_n[""]="全部";for(const t in xn)On.push({value:t,label:xn[t]}),_n[t]=xn[t],wn[xn[t]]={code:t},wn[xn[t]]["全部"]={code:""};for(let t=0,e=On.length;t<e;t++){const e=On[t].value,n=On[t].label,r=[];for(const t in C.a[e])r.push({value:t,label:C.a[e][t]}),_n[t]=C.a[e][t],wn[n][C.a[e][t]]={code:t},wn[n][C.a[e][t]]["全部"]={code:""};r.length&&(On[t].children=r)}Sn=yn(On);for(let t=0,e=On.length;t<e;t++){const e=On[t].children,n=On[t].label;if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t].value,o=e[t].label,i=[];for(const t in C.a[r])i.push({value:t,label:C.a[r][t]}),_n[t]=C.a[r][t],wn[n][o][C.a[r][t]]={code:t};i.length&&(e[t].children=i)}}const Cn=yn(Sn);Cn.unshift({value:"",label:"全部"});for(let t=0,e=Cn.length;t<e;t++){const e=Cn[t].children;if(e&&e.length){e.unshift({value:"",label:"全部"});for(let t=0,n=e.length;t<n;t++){const n=e[t].children;n&&n.length&&n.unshift({value:"",label:"全部"})}}}const En=yn(On);En.unshift({value:"",label:"全部"});for(let t=0,e=En.length;t<e;t++){const e=En[t].children;if(e&&e.length){e.unshift({value:"",label:"全部"});for(let t=0,n=e.length;t<n;t++){const n=e[t].children;n&&n.length&&n.unshift({value:"",label:"全部"})}}}var kn={name:"AddressComponent",props:{value:{type:Object,default:function(){}},printRead:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isAddressDetail:{type:Boolean,default:!0}},model:{prop:"value",event:"change"},watch:{value:{handler:function(){this.form=this.value?this.value:this.form,this.getDisplayValue()},deep:!0,immediate:!0}},computed:{printValue:function(){var t="";return this.form.postAddress.length&&this.form.postAddress.forEach((function(e){t+=e.length?_n[e]:""})),t+this.form.details}},data:function(){return{form:{postAddress:[],province:"",city:"",district:"",details:""},options:On}},methods:{getDisplayValue:function(){var t=this;this.form.postAddress.length&&this.form.postAddress.forEach((function(e,n){var r=_n[e];switch(n){case 0:t.form.province=r;break;case 1:t.form.city=r;break;case 2:t.form.district=r}}))},handleChange:function(){this.$set(this.form,"province",""),this.$set(this.form,"city",""),this.$set(this.form,"district",""),this.getDisplayValue(),this.$emit("change",this.form)}}},Tn=(n("5589"),Object(v.a)(kn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"address-component-container"},[t.printRead?[n("el-input",{staticClass:"print-read",attrs:{row:3,value:t.printValue,resize:"none",type:"textarea"}})]:[n("el-cascader",{attrs:{disabled:t.disabled,options:t.options,clearable:"",filterable:"",placeholder:"请选择省、市、区(县)",size:"mini"},on:{change:t.handleChange},model:{value:t.form.postAddress,callback:function(e){t.$set(t.form,"postAddress",e)},expression:"form.postAddress"}}),t.isAddressDetail?n("el-input",{staticClass:"address-component-detail",attrs:{disabled:t.disabled,rows:2,placeholder:"请输入详细地址",resize:"none",type:"textarea"},on:{change:t.handleChange},model:{value:t.form.details,callback:function(e){t.$set(t.form,"details",e)},expression:"form.details"}}):t._e()]],2)}),[],!1,null,"7c858ee4",null).exports),Mn={extends:n("5f72").Select,props:{customMultiple:{type:Boolean,default:!1}},methods:{handleOptionSelect:function(t,e){var n=this;if(this.multiple&&this.customMultiple){var r=(this.value||[]).slice(),o=this.getValueIndex(r,t.value);o>-1?r.splice(o,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(t.value),this.$emit("input",r),this.emitChange(r),t.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else if(this.multiple&&!this.customMultiple){var i=[t.value];this.$emit("input",i),this.emitChange(i),t.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.visible=!1}else this.$emit("input",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(t)}))}}},Dn=Object(v.a)(Mn,void 0,void 0,!1,null,null,null).exports,An=n("e2e6"),Pn=(n("8ba4"),n("eac8")),Rn=n.n(Pn),In=n("c32d"),zn=n.n(In);zn.a.locale("zh-cn");var jn=function(t){return function(t){return null!=t&&(!isNaN(new Date(t).getTime())&&!Array.isArray(t))}(t)?new Date(t):null},Ln=function(t){return zn()(t).format("YYYY-MM-DD")},Bn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd",n=jn(t);return n?Rn.a.format(n,e||"yyyy-MM-dd"):""};function Fn(t,e){var n=e&&e.format?e.format:"yyyy-MM-dd HH:mm:ss",r=e&&e.customFormat?e.customFormat:null;return t&&Number.isInteger(t)?function(t,e,n){return Bn(t,"custom"===e?n:e)}(t,n,r):t}var Nn,Hn={name:"TextComponent",props:{align:{type:String,default:"left"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#3E464C"},fontWeight:{type:String,default:"normal"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"inherit"},marginTop:Number,marginBottom:Number}},Vn=(n("f3a4"),Object(v.a)(Hn,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"text-component",style:{textAlign:t.align,color:t.fontColor,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,fontFamily:t.fontFamily,marginTop:t.marginTop+"px",marginBottom:t.marginBottom+"px"}},[t._t("default")],2)}),[],!1,null,"71ca9a5c",null).exports),Un={name:"generate-table-item",components:{AddressComponent:Tn,OrganizationSelector:f.a,UploadComponent:b,UploadImageComponent:_,UuidComponent:O,CustomSelectComponent:Dn,TextComponent:Vn},props:["widget","value","models","remote","isTable","isInTable","disabled","edit","remoteOptionSource","rules","platform","preview","dataSourceValue","eventFunction","rowIndex","tableName","printRead","scopeRowData"],data:function(){return{DATASOURCE_TYPE:u,dataModel:this.value,dataModels:this.models,key:(new Date).getTime(),modelName:this.widget.model,optionLoading:!1,optionLoadFailed:!1,options:[],visible:!0,printValue:""}},inject:["variable","formValue"],computed:{isRemote:function(){return this.widget.options.remote!==u.STATIC_DATA},digitalValue:function(){var t="",e=this.widget.options.showSuffix?this.widget.options.suffix:"";return isNaN(Number(this.dataModel))||(t=this.widget.options.closePrecision?Number(this.dataModel)+e:Number(this.dataModel).toFixed(this.widget.options.precision)+e),t}},created:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.widget.options.remote===u.FUNCTIONS&&t.remote[t.widget.options.remoteFunc]&&t.remote[t.widget.options.remoteFunc]((function(e){t.loadOptions(e)})),t.widget.options.remote===u.OPTION&&t.remoteOptionSource[t.widget.options.remoteOptionSource]&&t.loadOptions(t.remoteOptionSource[t.widget.options.remoteOptionSource]),t.widget.options.remote===u.API_DATA&&t.dataSourceValue&&(n=t.dataSourceValue.find((function(e){return e.key===t.widget.options.remoteDataSource})))&&n.value&&t.loadOptions(n.value),"cascader"===t.widget.type&&(t.options=t.widget.options.remoteOptions);case 4:case"end":return e.stop()}}),e)})))()},mounted:function(){!this.widget.options.useDynamicValue||this.dataModel||this.printRead||(this.dataModel=(new Date).getTime())},methods:{getParentCode:function(t){return this.widget.options.isInitNode&&this.widget.options.initNode&&this.widget.options.initNode.length?this.widget.options.initNode[0][t]:"code"===t?this.variable.USER_REGION_CODE:this.variable.USER_REGION},getCascaderPrintValue:function(){var t="";if(void 0!==this.scopeRowData["".concat(this.widget.model,"_").concat(An.a)])t=(this.scopeRowData["".concat(this.widget.model,"_").concat(An.a)]||[]).join(" / ");else if(this.$refs["icd-form-".concat(this.widget.model)]){var e=this.$refs["icd-form-".concat(this.widget.model)].getCheckedNodes(),n=e&&e.length&&e[0]&&e[0].pathLabels?e[0].pathLabels:[];t=this.isRemote?n.join(" / "):this.dataModel.join(" / ")}return t},loadCascaderOptions:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,r;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.dataModel&&t.dataModel.length&&t.options&&t.options.length)){e.next=6;break}return n=t.options.findIndex((function(e){return e.value===t.dataModel[0]})),e.next=4,t.getChildren(t.options[n],1,t.dataModel);case 4:(r=e.sent)&&r.length?t.$set(t.options[n],"children",r):t.$set(t.options[n],"leaf",!0);case 6:case"end":return e.stop()}}),e)})))()},getChildren:function(t,e,n){var r=this;return Object(i.a)(Object(o.a)().mark((function i(){var a,u;return Object(o.a)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,r.loadDictOption(t);case 2:if(!((a=o.sent)&&a.length&&e<n.length)){o.next=11;break}return u=a.findIndex((function(t){return t.value===n[e]})),o.t0=r,o.t1=a[u],o.next=9,r.getChildren(a[u],e+1,n);case 9:o.t2=o.sent,o.t0.$set.call(o.t0,o.t1,"children",o.t2);case 11:return o.abrupt("return",a);case 12:case"end":return o.stop()}}),i)})))()},loadDictOption:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var i;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.loading=!0,n.prev=1,n.next=4,s(e,{dictId:t.dictId,parentId:t.id});case 4:return(i=n.sent).data&&i.data.length&&(i.data=i.data.map((function(t){return Object(r.a)(Object(r.a)({},t),{},{leaf:"0"===t.hasChild})}))),n.abrupt("return",i.data);case 9:return n.prev=9,n.t0=n.catch(1),e.$message.error(n.t0),n.abrupt("return",null);case 13:return n.prev=13,e.loading=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[1,9,13,16]])})))()},fillingColumns:function(t){this.$emit("fillingColumns",t)},loadOptions:function(t){var e=this;this.widget.options.remoteOptions=t.map((function(t){return e.widget.options.props.children&&e.widget.options.props.children.length&&Object.keys(t).includes(e.widget.options.props.children)?{value:t[e.widget.options.props.value],label:t[e.widget.options.props.label],children:e.processRemoteProps(t[e.widget.options.props.children],e.widget.options.props)}:{value:t[e.widget.options.props.value],label:t[e.widget.options.props.label]}}))},cascaderLazyLoad:function(t,e){var n=this;return Object(i.a)(Object(o.a)().mark((function r(){var i,a;return Object(o.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.root){r.next=3;break}return e(),r.abrupt("return");case 3:return r.next=5,s(n,{dictId:t.data.dictId,parentId:t.data.id});case 5:(i=r.sent).data?(t.children&&t.children.length?e():e(i.data),a=t.children.map((function(t){return t.data.id})),e(i.data.filter((function(t){return a.indexOf(t.id)<0})))):n.optionLoadFailed=!0;case 7:case"end":return r.stop()}}),r)})))()},handleLoadDictOptions:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,r;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.widget.options.remoteOptions&&t.widget.options.remoteOptions.length||t.optionLoading)){e.next=2;break}return e.abrupt("return");case 2:if(t.optionLoading=!0,t.optionLoadFailed=!1,n={},"dict"!==(r=t.widget.options.remoteOption.remoteDict).dictDataType){e.next=12;break}return e.next=9,s(t,{dictId:r.dictId,parentId:"#"});case 9:n=e.sent,e.next=16;break;case 12:if("dictItem"!==r.dictDataType){e.next=16;break}return e.next=15,s(t,{dictId:r.dictId,parentId:r.dictOptionId});case 15:n=e.sent;case 16:n.data?t.widget.options.remoteOptions=n.data:t.optionLoadFailed=!0,t.optionLoading=!1;case 18:case"end":return e.stop()}}),e)})))()},processRemoteProps:function(t,e){var n=this;return t&&t.length?t.map((function(t){return n.processRemoteProps(t[e.children],e).length?{value:t[e.value],label:t[e.label],children:n.processRemoteProps(t[e.children],e)}:{value:t[e.value],label:t[e.label]}})):[]},onCascaderChange:function(t){var e=this;t&&this.$nextTick((function(){e.$parent&&e.$parent.clearValidate&&e.$parent.clearValidate(),e.$parent&&e.$parent.$parent&&e.$parent.$parent.$refs.generateFormItem&&e.$parent.$parent.$refs.generateFormItem.clearValidate()}))},getCascaderText:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.length>=1&&e){var r=e.find((function(e){return e.value===t[0]}));return r&&n.push(r.label),t.splice(0,1),this.getCascaderText(t,r.children,n)}if(0===t.length)return n},handleOnClick:function(){if(this.widget.events&&this.widget.events.onClick){var t=this.widget.events.onClick;this.isTable&&this.tableName?this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex}):this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model})}},handleOnFocus:function(){if(this.widget.events&&this.widget.events.onFocus){var t=this.widget.events.onFocus;this.isTable&&this.tableName?this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex}):this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model})}},handleOnBlur:function(){if(this.widget.events&&this.widget.events.onBlur){var t=this.widget.events.onBlur;this.isTable&&this.tableName?this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex}):this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model})}},queryColumns:function(t,e){var n=this;return Object(i.a)(Object(o.a)().mark((function i(){var a,u,s;return Object(o.a)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=[],u=n.widget.options.relatedFormInfo.targetColumn,o.next=4,Object(c.h)({size:9999,current:1,formId:n.widget.options.relatedFormInfo.formId});case 4:if((s=o.sent).data&&s.data.code&&"0000"===s.data.code){o.next=7;break}throw new Error(s&&s.data&&s.data.message?s.data.message:"获取表单数据列表失败");case 7:if(!s.data.data.records.length){o.next=11;break}return o.next=10,n.getColumnList();case 10:a=s.data.data.records.filter((function(e){return-1!==JSON.stringify(e[u]).search(t)})).map((function(t){return Object(r.a)({value:null!==t[u]?n.getOptionLabel(t,u).substring(0,100):""},t)}));case 11:e(a);case 12:case"end":return o.stop()}}),i)})))()},selectData:function(t){if(0!==this.widget.options.relatedFormInfo.dataFillRules.length){var e={value:{},fillingRules:[],selectedItem:{label:t[this.widget.options.relatedFormInfo.targetColumn],value:t.ID,widgetModel:this.widget.model,type:"input"}};e.fillingRules=this.widget.options.relatedFormInfo.dataFillRules;var n=h.a.cloneDeep(t);this.$delete(n,"value"),e.value=n,this.$emit("fillingColumns",e)}},getOptionLabel:function(t,e){var n=this.columnList.find((function(t){return t.columnName===e})),r=t[e].toString();return"date"===n.widgetType&&(r=Fn(t[e],n.rawOptions)),"address"===n.widgetType&&(r="".concat(t[e].province||"").concat(t[e].city||"").concat(t[e].district||"").concat(t[e].details||"")),"organization"===n.widgetType&&(r="",t[e]&&Array.isArray(t[e])&&t[e].length&&t[e].forEach((function(n,o){r+="".concat(n.name).concat(o!==t[e].length-1?" > ":"")}))),"member"===n.widgetType&&(r="",t[e]&&Array.isArray(t[e])&&t[e].length&&t[e].forEach((function(n,o){r+="".concat(n.name).concat(o!==t[e].length-1?",":"")}))),r},getColumnList:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,Object(c.e)({formId:t.widget.options.relatedFormInfo.formId});case 4:"0000"!==(n=e.sent).data.code?t.$message.error(n.data.message||"获取表单数据列表失败"):t.columnList=n.data.data,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),t.$message.error(e.t0);case 12:return e.prev=12,t.loading=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,8,12,15]])})))()}},watch:{value:function(t){this.dataModel=t},dataModel:function(t){this.$emit("input",t),this.isTable&&this.tableName&&this.$emit("on-table-change",{value:t,field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex,haveEvent:this.widget.events&&this.widget.events.onChange})},remoteOptionSource:{deep:!0,handler:function(){Object.keys(this.remoteOptionSource).indexOf(this.widget.options.remoteOptionSource)>=0&&this.widget.options.remote!==u.STATIC_DATA&&"option"===this.widget.options.remoteType&&this.loadOptions(this.remoteOptionSource[this.widget.options.remoteOptionSource])}},dataSourceValue:{deep:!0,handler:function(){var t=this;if(this.dataSourceValue){var e=this.dataSourceValue.find((function(e){return e.key===t.widget.options.remoteDataSource}));e&&e.value&&this.loadOptions(e.value)}}},printRead:{deep:!0,immediate:!0,handler:(Nn=Object(i.a)(Object(o.a)().mark((function t(e){return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("cascader"!==this.widget.type){t.next=11;break}if(!e){t.next=4;break}t.next=11;break;case 4:if(this.widget.options.remote!==u.DICT_DATA||!this.widget.options.remoteOption||!this.widget.options.remoteOption.remoteDict){t.next=11;break}if(!this.edit){t.next=11;break}return t.next=8,this.handleLoadDictOptions();case 8:return this.options=this.widget.options.remoteOptions,t.next=11,this.loadCascaderOptions();case 11:case"end":return t.stop()}}),t,this)}))),function(t){return Nn.apply(this,arguments)})}}},Wn=Object(v.a)(Un,(function(){var t,e=this,n=e.$createElement,r=e._self._c||n;return r("div",{class:{"print-read-mode":e.printRead}},["input"===e.widget.type?[e.printRead?[r("div",{staticClass:"custom-input-section"},[e._v(" "+e._s(e.widget.options.showPassword?"*********":e.dataModel)+" ")])]:[e.widget.options.relatedFormEnabled?[e.widget.options.dataTypeCheck&&"number"===e.widget.options.dataType?r("el-autocomplete",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,"fetch-suggestions":e.queryColumns,type:"number",maxlength:100},on:{blur:function(t){return t.stopPropagation(),e.handleOnBlur.apply(null,arguments)},focus:function(t){return t.stopPropagation(),e.handleOnFocus.apply(null,arguments)},select:e.selectData},model:{value:e.dataModel,callback:function(t){e.dataModel=e._n(t)},expression:"dataModel"}}):r("el-autocomplete",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,"fetch-suggestions":e.queryColumns,type:e.widget.options.dataTypeCheck?e.widget.options.dataType:"text","show-word-limit":"",maxlength:100},on:{blur:function(t){return t.stopPropagation(),e.handleOnBlur.apply(null,arguments)},focus:function(t){return t.stopPropagation(),e.handleOnFocus.apply(null,arguments)},select:e.selectData},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:[!e.widget.options.dataTypeCheck||"number"!==e.widget.options.dataType&&"integer"!==e.widget.options.dataType&&"float"!==e.widget.options.dataType?r("el-input",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,type:e.widget.options.dataTypeCheck?e.widget.options.dataType:"text",maxlength:"50"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}):r("el-input",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,type:"number"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=e._n(t)},expression:"dataModel"}})]]]:e._e(),"textarea"===e.widget.type?[e.printRead?[r("div",{staticClass:"custom-textarea-section"},[e._v(" "+e._s(e.dataModel)+" ")])]:[r("el-input",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,rows:e.widget.options.rows,autosize:!!e.widget.options.autosize&&{minRows:e.widget.options.rows},type:"textarea"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"number"===e.widget.type?[e.printRead?[e._v(" "+e._s(e.digitalValue)+" ")]:[r("el-input-number",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"auto"},attrs:{controls:!e.printRead&&e.widget.options.controls,"controls-position":e.widget.options.controlsPosition,disabled:e.printRead||!e.edit||e.widget.options.disabled,max:e.widget.options.max,min:e.widget.options.min,precision:e.widget.options.closePrecision?void 0:e.widget.options.precision,step:e.widget.options.step},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.widget.options.showSuffix?r("span",{staticClass:"iss-number-unit"},[e._v(" "+e._s(e.widget.options.suffix))]):e._e()]]:e._e(),"radio"===e.widget.type?[e.printRead?[e.isRemote?[e._v(" "+e._s(e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel}))&&e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel})).label||"")+" ")]:[e._v(" "+e._s(e.dataModel||"")+" ")]]:[e.optionLoading?[r("i",{staticClass:"el-icon-loading"}),e._v(" 正在加载选项... ")]:e._e(),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e(),r("el-radio-group",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},["button"===e.widget.options.optionStyle?e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-radio-button",{key:t.value+n,style:{display:"inline-block"},attrs:{label:t.value}},[e._v(" "+e._s(t.label)+" ")])})):e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-radio",{key:t.value+n,style:{display:"mobile"===e.platform&&"border"===e.widget.options.optionStyle?"block":e.widget.options.inline?"inline-block":"block"},attrs:{border:"border"===e.widget.options.optionStyle,label:t.value}},[e._v(" "+e._s(t.label)+" ")])}))],2)]]:e._e(),"checkbox"===e.widget.type?[e.printRead?[e.isRemote?[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return e.widget.options.remoteOptions.find((function(e){return e.value===t}))&&e.widget.options.remoteOptions.find((function(e){return e.value===t})).label})).join("、")||"")+" ")]:[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return e.widget.options.options.find((function(e){return e.value===t}))&&e.widget.options.options.find((function(e){return e.value===t})).label})).join("、")||"")+" ")]]:[e.optionLoading?[r("i",{staticClass:"el-icon-loading"}),e._v(" 正在加载选项... ")]:e._e(),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e(),r("el-checkbox-group",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},["button"===e.widget.options.optionStyle?e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-checkbox-button",{key:t.value+n,style:{display:"inline-block"},attrs:{label:t.value}},[e._v(" "+e._s(t.label)+" ")])})):e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-checkbox",{key:t.value+n,style:{display:"mobile"===e.platform&&"border"===e.widget.options.optionStyle?"block":e.widget.options.inline?"inline-block":"block"},attrs:{border:"border"===e.widget.options.optionStyle,label:t.value}},[e._v(" "+e._s(t.label)+" ")])}))],2)]]:e._e(),"time"===e.widget.type?[e.printRead?[e._v(" "+e._s(e.dataModel)+" ")]:[r("el-time-picker",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{arrowControl:e.widget.options.arrowControl,clearable:e.widget.options.clearable,disabled:!e.edit||e.widget.options.disabled,editable:e.widget.options.editable,"end-placeholder":e.widget.options.endPlaceholder,"is-range":e.widget.options.isRange,placeholder:e.widget.options.placeholder,readonly:e.widget.options.readonly,"start-placeholder":e.widget.options.startPlaceholder,"value-format":e.widget.options.format},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"date"===e.widget.type?[r("el-date-picker",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{clearable:e.widget.options.clearable,disabled:e.printRead||!e.edit||e.widget.options.disabled,editable:e.widget.options.editable,"end-placeholder":e.widget.options.endPlaceholder,format:"custom"===e.widget.options.format?e.widget.options.customFormat:e.widget.options.format,placeholder:e.widget.options.placeholder,readonly:e.widget.options.readonly,"start-placeholder":e.widget.options.startPlaceholder,type:e.widget.options.type,"value-format":"timestamp"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"rate"===e.widget.type?[r("el-rate",{ref:"icd-form-"+e.widget.model,style:e.widget.options.clearable?"float:left":"",attrs:{"allow-half":e.widget.options.allowHalf,disabled:e.printRead||!e.edit||e.widget.options.disabled,"icon-classes":["ri-star-fill","ri-star-fill","ri-star-fill"],max:e.widget.options.max,"score-template":"{value}"+e.widget.options.suffix,"show-score":e.widget.options.showScore,"disabled-void-icon-class":"ri-star-fill","void-icon-class":"ri-star-line"},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.widget.options.clearable?r("el-link",{staticStyle:{float:"left","margin-left":"1rem"},attrs:{underline:!1,type:"primary"},on:{click:function(t){e.dataModel=0}}},[e._v("清空")]):e._e()]:e._e(),"select"===e.widget.type?[e.printRead?[e.isRemote?[e._v(" "+e._s(("object"==typeof e.dataModel&&e.dataModel?e.dataModel.map((function(t){return e.widget.options.remoteOptions.find((function(e){return e.value===t}))&&e.widget.options.remoteOptions.find((function(e){return e.value===t})).label})).join("、"):e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel}))&&e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel})).label)||"")+" ")]:[e._v(" "+e._s(("object"==typeof e.dataModel&&e.dataModel?e.dataModel.map((function(t){return e.widget.options.options.find((function(e){return e.value===t}))&&e.widget.options.options.find((function(e){return e.value===t})).label})).join("、"):e.widget.options.options.find((function(t){return t.value===e.dataModel}))&&e.widget.options.options.find((function(t){return t.value===e.dataModel})).label)||"")+" ")]]:[r("custom-select-component",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{clearable:e.widget.options.clearable,"custom-multiple":e.widget.options.multiple,disabled:!e.edit||e.widget.options.disabled,filterable:e.widget.options.filterable,loading:e.optionLoading,placeholder:e.widget.options.placeholder,"loading-text":"正在加载选项",multiple:""},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,e){return r("el-option",{key:t.id||t.value+e,attrs:{label:t.label,value:t.value}})})),1),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e()]]:e._e(),"switches"===e.widget.type?[e.printRead?[e._v(" "+e._s(!0===e.dataModel?e.widget.options.activeText||"是":!1===e.dataModel?e.widget.options.inactiveText||"否":"")+" ")]:[r("el-switch",{ref:"icd-form-"+e.widget.model,attrs:{"active-text":e.widget.options.activeText,disabled:!e.edit||e.widget.options.disabled,"inactive-text":e.widget.options.inactiveText},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"slider"===e.widget.type?[e.printRead?[e._v(" "+e._s(e.dataModel+e.widget.options.suffix)+" ")]:[r("el-slider",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,"format-tooltip":function(t){return t+e.widget.options.suffix},max:e.widget.options.max,min:e.widget.options.min,range:e.widget.options.range,"show-input":e.widget.options.showInput,step:e.widget.options.step},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"editor"===e.widget.type?[r("rich-editor",{ref:"icd-form-"+e.widget.model,attrs:{"custom-style":{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%",cursor:!e.edit||e.widget.options.disabled?"no-drop":"",backgroundColor:!e.edit||e.widget.options.disabled?"#F5F7FA":""},disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,readonly:!0},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),["organization","member"].indexOf(e.widget.type)>-1?[e.printRead?[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return t.name})).join("、")||"")+" ")]:[r("organization-selector",{ref:"icd-form-"+e.widget.model,attrs:{"dialog-title":"选择"+("ORGAN"===e.widget.options.optionScopeType?"组织机构":"人员"),"custom-style":{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},disabled:e.printRead||!e.edit||e.widget.options.disabled,multiple:e.widget.options.multiple,"parent-code":e.getParentCode("code"),"parent-name":e.getParentCode("name"),"option-scope-type":e.widget.options.optionScopeType,placeholder:e.widget.options.placeholder,platform:e.platform},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"cascader"===e.widget.type?[e.printRead?[e._v(e._s(e.getCascaderPrintValue()))]:[r("el-cascader",{ref:"icd-form-"+e.widget.model,style:{width:e.isInTable?"100%":e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{clearable:e.widget.options.clearable,disabled:e.printRead||!e.edit||e.widget.options.disabled,filterable:e.widget.options.filterable,loading:e.optionLoading,options:e.isRemote?e.options:e.widget.options.options,placeholder:e.widget.options.placeholder,props:{lazy:e.isRemote,lazyLoad:e.cascaderLazyLoad,checkStrictly:e.widget.options.checkStrictly},"collapse-tags":"","loading-text":"正在加载选项"},on:{blur:e.handleOnBlur,change:e.onCascaderChange,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e()]]:e._e(),"upload"===e.widget.type?[r("upload-component",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled,limit:e.widget.options.limit,multiple:e.widget.options.multiple,"print-read":e.printRead,size:e.widget.options.size,accept:e.widget.options.accept,tip:e.widget.options.tip},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"imageUpload"===e.widget.type?[r("upload-image-component",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled,limit:e.widget.options.limit,multiple:e.widget.options.multiple,"print-read":e.printRead,size:e.widget.options.size,tip:e.widget.options.tip},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"uuid"===e.widget.type?[r("uuid-component",{ref:"icd-form-"+e.widget.model,attrs:{"custom-style":{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},"print-read":e.printRead},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"address"===e.widget.type?[r("address-component",{ref:"icd-form-"+e.widget.model,attrs:{disabled:e.widget.options.disabled||!e.edit,"is-address-detail":e.widget.options.isAddressDetail,"print-read":e.printRead},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"button"===e.widget.type?[r("text-component",{staticStyle:{"text-align":"center"},attrs:{align:e.widget.options.contentPosition}},[e.widget.options.showInPrintRead||!e.printRead?r("el-button",{ref:"icd-form-"+e.widget.model,class:(t={},t[e.widget.options&&e.widget.options.customClass]=e.widget.options&&e.widget.options.customClass,t),style:e.widget.options.customWidth?{width:e.widget.options.width+"%"}:"",attrs:{circle:e.widget.options.buttonCircle,disabled:!e.edit||e.widget.options.disabled,plain:e.widget.options.buttonPlain,round:e.widget.options.buttonRound,size:e.widget.options.buttonSize,type:e.widget.options.buttonType},on:{click:e.handleOnClick}},[e._v(" "+e._s(e.widget.options.buttonName)+" ")]):e._e()],1)]:e._e()],2)}),[],!1,null,null,null).exports,$n={name:"StepOne",inject:{currentFormId:{default:""},formPublishVersionId:{default:""}},props:{widgetKey:{type:String,default:""},widgetName:{type:String,default:null}},data:function(){return{loading:!1,fileList:[],result:{state:!1,message:"处理失败"},fileName:""}},methods:{handleChange:function(t,e){this.$refs.upload.clearFiles(),this.fileList=e},handleUpload:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,r,i;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.fileList[0].raw).size/1024/1024<1){e.next=4;break}return t.$message.error("上传文件大小不能超过 1MB!"),e.abrupt("return");case 4:return t.loading=!0,t.$emit("onUpload"),(r=new FormData).append("file",n),r.append("formId",t.currentFormId),e.prev=9,e.next=12,Object(c.o)(r);case 12:if("0000"!==(i=e.sent).data.code){e.next=20;break}return t.fileName=i.data.data,e.next=17,t.handleImport();case 17:t.$emit("onNext",t.result),e.next=22;break;case 20:t.$message.error(i.data.message);case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(9),t.$message.error(e.t0.message);case 27:return e.prev=27,t.loading=!1,t.$emit("onUploadEnd"),t.fileList=[],e.finish(27);case 32:case"end":return e.stop()}}),e,null,[[9,24,27,32]])})))()},handleImport:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.processing=!0,e.prev=1,e.next=4,Object(c.b)({fileName:t.fileName,formId:t.currentFormId,previewFlag:!0,tableWidgetKey:t.widgetKey,versionId:t.formPublishVersionId}).then((function(e){t.result.state="0000"===e.data.code,t.result.message=e.data.message||("0000"===e.data.code?"处理成功":"处理失败"),t.result.data=e.data.data})).catch((function(e){t.result.state=!1,t.result.message=e.message||e.data.message}));case 4:e.next=10;break;case 6:e.prev=6,e.t0=e.catch(1),t.result.state=!1,t.result.message=e.t0.message;case 10:return e.prev=10,t.processing=!1,e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[1,6,10,13]])})))()},downloadModel:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,r,i;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$emit("onUpload"),t.loading=!0,e.prev=2,e.next=5,Object(c.c)({formId:t.currentFormId,tableWidgetKey:t.widgetKey});case 5:(n=e.sent).data?(r=window.URL.createObjectURL(new Blob([n.data],{type:"application/vnd.ms-excel"})),(i=document.createElement("a")).href=r,i.setAttribute("download","子表单".concat(t.widgetName?"_"+t.widgetName:"","_").concat(t.widgetKey,"_导入模板.xlsx")),document.body.appendChild(i),i.click()):t.$message.error(n.data.message||"下载子表单导出模板失败"),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),t.$message.error(e.t0);case 13:return e.prev=13,t.loading=!1,t.$emit("onUploadEnd"),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[2,9,13,17]])})))()}}},Gn=(n("858e"),Object(v.a)($n,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"step-one-container"},[n("div",{staticClass:"row-item opt-top-bar"},[t._v(" 为了保证数据导入顺利,推荐您下载使用导入模版,并按照规范示例录入数据 "),n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.downloadModel}},[t._v("下载导入模板")])],1),n("div",{staticClass:"row-item upload-bar"},[n("el-upload",{ref:"upload",staticClass:"upload-excel",attrs:{"http-request":t.handleUpload,multiple:!1,"on-change":t.handleChange,"show-file-list":!1,accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel,.xlsx,.xls",action:"",drag:""}},[n("base-icon",{staticClass:"el-icon-upload",attrs:{"icon-class":"upload-2-line"}}),n("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),n("em",[t._v("点击上传")])])],1)],1),t._m(0)])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row-item note-bar"},[e("ul",{staticClass:"upload-info"},[e("li",[this._v("支持 1MB 以内的xlsx格式文件")]),e("li",[this._v("导入文件第一、第二行表头(默认隐藏)不允许修改或删除")]),e("li",[this._v("导入文件中,数据不可存在空行")]),e("li",[this._v("导入文件中,如某项数据不符合设定表单中组件的校验规则,则存入系统值为空。如:必填项,长度,字典选项等")])])])}],!1,null,"9710d6b6",null).exports),Kn={name:"StepTwo",props:{displayData:{type:Object,default:null}},data:function(){return{status:"success",statusMap:{success:"导入成功",warning:"部分导入成功",error:"导入失败"}}},mounted:function(){this.status=this.displayData&&this.displayData.state?"success":"error"}},qn={name:"DataImport",components:{StepTwo:Object(v.a)(Kn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"step-two-container"},[n("el-result",{attrs:{icon:t.status,title:t.statusMap[t.status]}},["success"!==t.status?n("template",{slot:"subTitle"},[t._v(" "+t._s(t.displayData&&t.displayData.message)+" ")]):n("template",{slot:"subTitle"},[t._v(" 成功导入数据 : "+t._s(t.displayData&&t.displayData.data&&t.displayData.data.successCount)+"条 ")])],2)],1)}),[],!1,null,null,null).exports,StepOne:Gn},inject:["currentFormId"],props:{isDisplay:{type:Boolean,default:!1},widgetKey:{type:String,default:""},widgetName:{type:String,default:null}},model:{prop:"isDisplay",event:"change"},data:function(){return{loading:!1,activeStep:0,uploadResData:null}},methods:{onNext:function(t){this.activeStep+=1,this.uploadResData=t,this.loading=!1}}},Xn=(n("4232"),Object(v.a)(qn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,visible:t.isDisplay,"append-to-body":"","custom-class":"data-import-container",title:"批量导入"},on:{close:function(e){return t.$emit("onClose")}}},[n("div",{staticClass:"header"},[n("el-steps",{attrs:{active:t.activeStep,"finish-status":"success","align-center":""}},[n("el-step",{attrs:{title:"数据上传"}}),n("el-step",{attrs:{title:"完成"}})],1)],1),n("div",{staticClass:"body"},[0===t.activeStep?n("step-one",{attrs:{"widget-key":t.widgetKey,"widget-name":t.widgetName},on:{onUpload:function(e){t.loading=!0},onUploadEnd:function(e){t.loading=!1},onNext:t.onNext}}):t._e(),1===t.activeStep?n("step-two",{attrs:{"display-data":t.uploadResData}}):t._e()],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){return t.$emit("onClose")}}},[t._v("取消")]),t.activeStep>0?n("el-button",{on:{click:function(e){t.activeStep-=1}}},[t._v("上一步")]):t._e(),1===t.activeStep?n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.$emit("onComplete",t.uploadResData)}}},[t._v("完成")]):t._e()],1)])}),[],!1,null,null,null).exports),Yn={components:{BaseIcon:m.a,GenerateTableItem:Wn,DataImport:Xn},props:["columns","value","models","remote","disabledData","rules","name","remoteOptionSource","preview","platform","dataSourceValue","eventFunction","widget","printRead","paging","pageSize"],data:function(){return{tableData:this.value,displayFields:{},changeItem:{},pagingData:[],currentPage:1,currentActive:[],displayDataImport:!1,visible:!0,optionLoading:!1,optionLoadFailed:!1,selectedRows:[],isSelectedAll:!1,orderTypes:["input","textarea","number","date"]}},computed:{mode:function(){return"pc"===this.platform?"section"===this.widget.options.displayMode?"section":"table":"section"},isNotMaxRow:function(){return!this.widget.options.maxLimit||this.tableData&&this.tableData.length<(this.widget.options.maxRows||1e3)}},inject:["variable","currentFormId"],created:function(){for(var t=0;t<this.columns.length;t++)this.displayFields[this.columns[t].model]=!this.columns[t].options.hidden;this.loadPagingData()},mounted:function(){var t=this;this.tableData.forEach((function(e){e._uuid=Object(w.a)(),"section"===t.mode&&(e.checked=!1),delete e.SYS_DATA_SORT})),this.visible=!1,this.columns&&this.columns.length&&this.columns.map(function(){var e=Object(i.a)(Object(o.a)().mark((function e(n){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.options.remote!==u.DICT_DATA||!n.options.remoteOption||!n.options.remoteOption.remoteDict||"cascader"===n.type){e.next=4;break}return e.next=3,t.handleLoadDictOptions(n);case 3:n=e.sent;case 4:return e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.$nextTick((function(){t.visible=!0}))},methods:{selectedAll:function(t){this.selectedRows=t?h.a.cloneDeep(this.paging?this.pagingData:this.tableData):[],(this.paging?this.pagingData:this.tableData).forEach((function(e){e.checked=t}))},handleCardSelectionChange:function(t,e){t?this.selectedRows.push(e):this.selectedRows=this.selectedRows.filter((function(t){return t._uuid!==e._uuid}))},rowMove:function(t,e){var n=this.tableData.findIndex((function(e){return e._uuid===t}));if("up"===e){var r=this.tableData[n-1];r&&(this.tableData.splice(n-1,1),this.tableData.splice(n,0,r))}else{var o=this.tableData[n+1];o&&(this.tableData.splice(n+1,1),this.tableData.splice(n,0,o))}this.tableData.forEach((function(t,e){t.SYS_DATA_SORT=e})),this.loadPagingData()},batchDelete:function(){var t=this,e=this.selectedRows.map((function(t){return t._uuid}));this.$confirm("将永久删除已勾选的数据,确认删除?","提示",{confirmButtonText:"确认"}).then((function(){t.tableData=t.tableData.filter((function(t){return e.indexOf(t._uuid)<0})),t.$emit("onValueChange",t.tableData),t.paging&&(t.currentPage=1,t.loadPagingData(),t.selectedRows=[]),t.isSelectedAll=!1})).catch((function(){}))},handleSelectionChange:function(t){this.selectedRows=t},handleLoadDictOptions:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var r,i;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.optionLoading=!0,e.optionLoadFailed=!1,r={},"dict"!==(i=t.options.remoteOption.remoteDict).dictDataType){n.next=10;break}return n.next=7,s(e,{dictId:i.dictId,parentId:"#"});case 7:r=n.sent,n.next=14;break;case 10:if("dictItem"!==i.dictDataType){n.next=14;break}return n.next=13,s(e,{dictId:i.dictId,parentId:i.dictOptionId});case 13:r=n.sent;case 14:return r.data?t.options.remoteOptions=r.data:e.optionLoadFailed=!0,e.optionLoading=!1,n.abrupt("return",t);case 17:case"end":return n.stop()}}),n)})))()},onDataImportComplete:function(t){var e=this;this.displayDataImport=!1,this.visible=!1,t.data&&t.data.dataList&&(this.models[this.widget.model]=[].concat(Object(a.a)(t.data.dataList),Object(a.a)(this.tableData))),this.loadPagingData(),this.$nextTick((function(){e.visible=!0}))},handleAddRow:function(t,e){for(var n=this,r={},o=0;o<this.columns.length;o++)if(this.columns[o].options.isVariableDefaultValue){var i="未初始化变量数据";this.variable&&(i=this.variable[this.columns[o].options.defaultVariable]||""),r[this.columns[o].model]=i}else r[this.columns[o].model]=this.columns[o].options.defaultValue;if(r._uuid=Object(w.a)(),e?this.tableData.splice(t+1,0,r):this.tableData.push(r),this.widget&&this.widget.events&&this.widget.events.onRowAdd){var a=this.widget.events.onRowAdd;this.eventFunction[a]&&this.eventFunction[a]({rowIndex:this.tableData.length-1,field:this.widget.model})}this.changeItem={},this.paging&&this.$nextTick((function(){n.tableData.length>n.currentPage*n.pageSize&&!e&&(n.currentPage=parseInt((n.tableData.length-1)/n.pageSize)+1),n.loadPagingData()}));try{this.currentActive.push((this.paging?this.pageSize*(this.currentPage-1):0)+(this.tableData.length-1))}catch(t){}},handleRemove:function(t){var e=this;this.$confirm("是否删除该行数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){if(e.tableData.splice(t,1),e.widget&&e.widget.events&&e.widget.events.onRowRemove){var n=e.widget.events.onRowRemove;e.eventFunction[n]&&e.eventFunction[n]({removeIndex:t,field:e.widget.model})}e.changeItem={},e.pagingData=[],e.paging&&e.$nextTick((function(){e.tableData.length%e.pageSize==0&&e.currentPage>parseInt(e.tableData.length/e.pageSize)&&(e.currentPage=parseInt(e.tableData.length/e.pageSize)),e.loadPagingData()}))})).catch((function(){}))},hide:function(t){var e=this;Object.keys(this.displayFields).forEach((function(n){t.indexOf(n)>=0&&e.$set(e.displayFields,n,!1)})),this.displayFields=Object(r.a)({},this.displayFields)},display:function(t){var e=this;Object.keys(this.displayFields).forEach((function(n){t.indexOf(n)>=0&&e.$set(e.displayFields,n,!0)})),this.displayFields=Object(r.a)({},this.displayFields)},disabled:function(t,e){for(var n=0;n<this.columns.length;n++)t.indexOf(this.columns[n].model)>=0&&this.$set(this.columns[n].options,"disabled",e)},setDisabled:function(t,e){for(var n=0;n<this.columns.length;n++)t.indexOf(this.columns[n].model)>=0&&this.$set(this.columns[n].options,"disabled",e)},setReadOnly:function(t,e){for(var n=0;n<this.columns.length;n++)t.indexOf(this.columns[n].model)>=0&&this.$set(this.columns[n].options,"readonly",e)},sortChange:function(t){if(this.paging){var e="descending"===t.order?"desc":"asc";this.tableData=h.a.orderBy(this.tableData,[t.prop],[e])}},handleTableChange:function(t){this.changeItem=t},handlePageChange:function(t){var e=this;"section"===this.mode&&(this.selectedRows=[],(this.paging?this.pagingData:this.tableData).forEach((function(t){t.checked=!1})),this.isSelectedAll=!1),this.currentPage=t,this.pagingData=[],this.$nextTick((function(){e.loadPagingData(),e.$refs[e.name+"-item"].forEach((function(t){t.clearValidate()}))}))},loadPagingData:function(){var t=(this.currentPage-1)*this.pageSize,e=t+this.pageSize;this.pagingData=this.tableData.slice(t,e)}},watch:{value:function(t){Array.isArray(t)?this.tableData=t:(this.tableData=[],Function("console.error('子表单:请设置正确Array格式的数据,当前为".concat(t,"');"))())},tableData:{deep:!0,immediate:!0,handler:function(){this.loadPagingData(),this.changeItem.haveEvent&&this.eventFunction[this.changeItem.haveEvent](this.changeItem)}}}},Jn=Object(v.a)(Yn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.optionLoading,expression:"optionLoading"}],staticClass:"renderer-table",class:{"is-disabled":t.disabledData}},[!t.widget.options.dataImport||t.currentFormId&&t.currentFormId.length?t._e():n("el-tag",{attrs:{size:"small",type:"warning"}},[t._v(" 预览状态暂无法使用批量导入功能 ")]),!t.printRead&&t.widget&&t.widget.options&&(t.widget.options.dataImport||t.widget.options.batchDelete)?n("div",{staticClass:"header-opt-bar"},["section"===t.mode&&t.widget.options.batchDelete?n("el-checkbox",{ref:"selectedAllBtn",staticClass:"header-opt-bar-item select-all",attrs:{size:"mini"},on:{change:t.selectedAll},model:{value:t.isSelectedAll,callback:function(e){t.isSelectedAll=e},expression:"isSelectedAll"}},[t._v("全选")]):t._e(),t.widget.options.dataImport?n("el-button",{staticClass:"header-opt-bar-item",attrs:{disabled:!t.currentFormId||!t.currentFormId.length,size:"mini",type:"primary"},on:{click:function(e){t.displayDataImport=!0}}},[n("base-icon",{attrs:{"icon-class":"upload-2-fill"}}),t._v(" 批量导入 ")],1):t._e(),t.widget.options.batchDelete?n("el-button",{staticClass:"header-opt-bar-item",attrs:{size:"mini",disabled:!t.selectedRows.length},on:{click:t.batchDelete}},[n("base-icon",{attrs:{"icon-class":"delete-bin-line"}}),t._v(" 批量删除 ")],1):t._e()],1):t._e(),t.visible?n("div",["table"===t.mode?n("el-table",{staticClass:"renderer-table-pc",attrs:{data:t.paging?t.pagingData:t.tableData,border:"",size:"small",stripe:""},on:{"sort-change":t.sortChange,"selection-change":t.handleSelectionChange}},[!t.printRead&&t.widget.options.batchDelete?n("el-table-column",{attrs:{type:"selection",width:"40",align:"center"}}):t._e(),n("el-table-column",{attrs:{"header-align":"center",align:"center",fixed:"",label:"序号",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"scope-index"},[n("span",[t._v(t._s((t.paging?t.pageSize*(t.currentPage-1):0)+e.$index+1))])]),n("div",{staticClass:"scope-action"},[t.printRead?t._e():n("el-button",{staticClass:"renderer-table-row-add",attrs:{disabled:t.disabledData,icon:"el-icon-plus",size:"mini",type:"text"},on:{click:function(n){t.handleAddRow((t.paging?t.pageSize*(t.currentPage-1):0)+e.$index,!0)}}}),t.printRead?t._e():n("el-button",{staticClass:"renderer-table-delete",attrs:{disabled:t.disabledData,icon:"el-icon-delete",size:"mini",type:"text"},on:{click:function(n){t.handleRemove((t.paging?t.pageSize*(t.currentPage-1):0)+e.$index)}}}),t.printRead?n("span",[t._v(t._s((t.paging?t.pageSize*(t.currentPage-1):0)+e.$index+1))]):t._e()],1)]}}],null,!1,2614476158)}),0===t.columns.length?n("el-table-column"):[t._l(t.columns,(function(e){return[t.displayFields[e.model]?n("el-table-column",{key:e.key,attrs:{prop:e.model,sortable:(t.preview||t.printRead)&&t.orderTypes.includes(e.type),"sort-orders":["ascending","descending"],"header-align":"center",label:e.options.hideLabel?"":e.name,align:"number"===e.type?"right":"center","label-class-name":e.options.required?"required":"","min-width":e.options.isWidgetWidth?2*e.options.width+"px":"200px"},scopedSlots:t._u([{key:"default",fn:function(r){return[t.displayFields[e.model]?n("el-form-item",{ref:t.name+"-item",refInFor:!0,attrs:{prop:t.name+"."+((t.paging?t.pageSize*(t.currentPage-1):0)+r.$index)+"."+e.model,rules:t.rules[t.name+"."+e.model]}},[n("generate-table-item",{attrs:{"data-source-value":t.dataSourceValue,edit:!t.disabledData,"event-function":t.eventFunction,"is-in-table":!0,"is-table":!0,models:t.tableData[(t.paging?t.pageSize*(t.currentPage-1):0)+r.$index],platform:t.platform,"print-read":t.printRead||e.options.readonly,remote:t.remote,"remote-option-source":t.remoteOptionSource,"row-index":(t.paging?t.pageSize*(t.currentPage-1):0)+r.$index,"table-name":t.name,widget:e,"scope-row-data":r.row},on:{"on-table-change":t.handleTableChange},model:{value:r.row[e.model],callback:function(n){t.$set(r.row,e.model,n)},expression:"scope.row[column.model]"}})],1):t._e()]}}],null,!0)}):t._e()]})),!t.printRead&&t.widget.options.rowMove?n("el-table-column",{attrs:{"header-align":"center",align:"center",label:"操作",width:"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.rowMove(e.row._uuid,"up")}}},[t._v("上移")]),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.rowMove(e.row._uuid,"down")}}},[t._v("下移")])]}}],null,!1,3921725826)}):t._e()]],2):n("el-collapse",{staticClass:"renderer-table-mobile",model:{value:t.currentActive,callback:function(e){t.currentActive=e},expression:"currentActive"}},t._l(t.paging?t.pagingData:t.tableData,(function(e,r){return n("el-collapse-item",{key:(t.paging?t.pageSize*(t.currentPage-1):0)+r,staticClass:"renderer-table-mobile-item",attrs:{name:(t.paging?t.pageSize*(t.currentPage-1):0)+r}},[n("div",{staticClass:"renderer-table-mobile-item-top",attrs:{slot:"title"},slot:"title"},[!t.printRead&&t.widget.options.batchDelete?n("el-checkbox",{staticClass:"renderer-table-mobile-checkbox",on:{change:function(n){return t.handleCardSelectionChange(n,e)}},model:{value:e.checked,callback:function(n){t.$set(e,"checked",n)},expression:"t.checked"}}):t._e(),t.widget.options.enableDynamicTableTitle&&t.widget.options.relatedField?n("span",{staticClass:"renderer-table-mobile-title"},[t._v(t._s(t.tableData[(t.paging?t.pageSize*(t.currentPage-1):0)+r][t.widget.options.relatedField]))]):n("span",{staticClass:"renderer-table-mobile-title"},[t._v(t._s((t.paging?t.pageSize*(t.currentPage-1):0)+r+1))]),t.printRead?t._e():[t.widget.options.rowMove?[n("el-button",{staticClass:"renderer-table-mobile-move",attrs:{disabled:t.disabledData,size:"mini",type:"text",title:"上移"},on:{click:function(n){return t.rowMove(e._uuid,"up")}}},[n("base-icon",{attrs:{"icon-class":"arrow-up-fill"}})],1),n("el-button",{staticClass:"renderer-table-mobile-move",attrs:{disabled:t.disabledData,size:"mini",type:"text",title:"下移"},on:{click:function(n){return t.rowMove(e._uuid,"down")}}},[n("base-icon",{attrs:{"icon-class":"arrow-down-fill"}})],1)]:t._e(),n("el-button",{staticClass:"renderer-table-mobile-delete",attrs:{disabled:t.disabledData,size:"mini",type:"text",title:"删除"},on:{click:function(e){t.handleRemove((t.paging?t.pageSize*(t.currentPage-1):0)+r)}}},[n("base-icon",{attrs:{"icon-class":"delete-bin-line"}})],1)]],2),n("div",{staticClass:"renderer-table-mobile-item-content"},[t._l(t.columns,(function(e){return[t.displayFields[e.model]?n("el-form-item",{key:e.key,ref:t.name+"-item",refInFor:!0,attrs:{label:e.options.hideLabel?"":e.name,"label-width":e.options.hideLabel?"0px":e.options.isLabelWidth?e.options.labelWidth+"px":"",prop:t.name+"."+((t.paging?t.pageSize*(t.currentPage-1):0)+r)+"."+e.model,rules:t.rules[t.name+"."+e.model]}},[t.displayFields[e.model]?n("generate-table-item",{attrs:{"data-source-value":t.dataSourceValue,edit:!t.disabledData,"event-function":t.eventFunction,"is-in-table":!1,"is-table":!0,models:t.tableData[(t.paging?t.pageSize*(t.currentPage-1):0)+r],platform:t.platform,"print-read":t.printRead||e.options.readonly,remote:t.remote,"remote-option-source":t.remoteOptionSource,"row-index":(t.paging?t.pageSize*(t.currentPage-1):0)+r,"table-name":t.name,widget:e,"scope-row-data":t.tableData[(t.paging?t.pageSize*(t.currentPage-1):0)+r]},on:{"on-table-change":t.handleTableChange},model:{value:t.tableData[(t.paging?t.pageSize*(t.currentPage-1):0)+r][e.model],callback:function(n){t.$set(t.tableData[(t.paging?t.pageSize*(t.currentPage-1):0)+r],e.model,n)},expression:"tableData[(paging ? pageSize * (currentPage - 1) : 0) + index][column.model]"}}):t._e()],1):t._e()]}))],2)])})),1)],1):t._e(),n("el-row",[n("el-col",{attrs:{span:"table"!==t.mode||t.disabledData?24:12,xs:24}},[!t.disabledData&&t.isNotMaxRow?n("el-button",{staticClass:"btn-new-data",class:{"is-short":"table"===t.mode},attrs:{type:"table"===t.mode?"text":"default",size:"medium"},on:{click:t.handleAddRow}},[n("base-icon",{attrs:{"icon-class":"add-line"}}),t._v(" 添加 ")],1):t._e(),t.widget.options.maxLimit?n("span",{staticClass:"max-limit-tip"},[t._v("最多可填写 "+t._s(t.widget.options.maxRows)+" 条数据,当前已填写 "+t._s(t.tableData&&t.tableData.length)+" 条")]):t._e()],1),n("el-col",{attrs:{span:"table"!==t.mode||t.disabledData?24:12,xs:24}},[t.paging&&t.tableData.length?n("el-pagination",{staticClass:"pagination-data",attrs:{background:"","current-page":t.currentPage,"page-size":t.pageSize,"pager-count":5,total:t.tableData.length,layout:"total, prev, pager, next"},on:{"current-change":t.handlePageChange}}):t._e()],1)],1),t.displayDataImport?n("data-import",{attrs:{"widget-key":t.widget.key,"widget-name":t.widget.name},on:{onClose:function(e){t.displayDataImport=!1},onComplete:t.onDataImportComplete},model:{value:t.displayDataImport,callback:function(e){t.displayDataImport=e},expression:"displayDataImport"}}):t._e()],1)}),[],!1,null,null,null).exports,Qn=n("905a"),Zn=n.n(Qn),tr=n("f3ef"),er=n.n(tr),nr=(n("fd8a"),n("46c3"),n("84ec"),n("7193"),n("4ea8"),n("8863"),n("bc54"),n("07d1"),n("bc3a")),rr=n.n(nr),or={components:{TinyMce:Zn.a},props:{value:{type:String,default:""},placeholder:{type:String,default:""},customStyle:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},containerKey:{type:String,default:""}},mounted:function(){this.serverInfo=Object(c.l)(),er.a.init({}),this.dataModel=this.value},data:function(){var t,e=this;return{serverInfo:"",dataModel:this.value,init:{selector:"#".concat(this.containerKey),auto_focus:!1,language_url:window.ISS_LIBRARY_FORM_DESIGNER_OPTIONS.mce_language_url,language:"zh_CN",skin_url:window.ISS_LIBRARY_FORM_DESIGNER_OPTIONS.mce_skin_url,content_css:window.ISS_LIBRARY_FORM_DESIGNER_OPTIONS.mce_content_css,menubar:!1,toolbar:"undo redo | image | fontselect fontsizeselect | bold italic underline strikethrough | forecolor backcolor | bullist numlist | alignleft aligncenter alignright alignjustify | table | styleselect |",font_formats:"宋体='宋体';仿宋='仿宋';微软雅黑='微软雅黑';楷体='楷体';隶书='隶书';幼圆='幼圆';苹方='PingFang SC';Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings",toolbar_mode:"sliding",statusbar:!1,plugins:["lists","autoresize","image","paste","table"],automatic_uploads:!0,image_description:!1,images_upload_url:"",file_picker_types:["image"],images_upload_handler:(t=Object(i.a)(Object(o.a)().mark((function t(n,r,i){var a,u;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(a=new FormData).append("file",n.blob(),n.filename()),t.prev=3,t.next=6,rr.a.post(e.serverInfo.action,a);case 6:"0000"===(u=t.sent).data.code?r("".concat(e.serverInfo.baseUrl).concat(u.data.data&&u.data.data.length&&u.data.data[0])):i(u.data.message),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),i(t.t0.message);case 13:case"end":return t.stop()}}),t,null,[[3,10]])}))),function(e,n,r){return t.apply(this,arguments)}),min_height:250,paste_data_images:!1,smart_paste:!1}}},methods:{onEditorInput:function(){this.$emit("input",this.value)}},watch:{dataModel:function(t){this.$emit("input",t)},value:function(t){this.dataModel=t}}},ir=Object(v.a)(or,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rich-editor",class:{"is-disabled":t.disabled}},[n("tiny-mce",{ref:"tinymceEditor",style:t.customStyle,attrs:{id:t.containerKey,disabled:t.disabled,init:t.init,placeholder:t.placeholder,readonly:t.readonly},on:{input:t.onEditorInput},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})],1)}),[],!1,null,null,null).exports,ar={current:1,size:10,sizeList:[10,20,50,100],pageSizeShort:5,pageSizesShort:[5,10,20,50],pageLayout:"total, prev, pager, next, sizes"},ur={select:!0,cascader:!0,radio:!0,checkbox:!0},cr={time:!0,date:!0,datetime:!0},sr={number:!0},lr={switches:!0},fr={address:!0},dr={rate:!0},mr={relatedForm:!0},pr={organization:!0,member:!0},hr={name:"RateRender",props:{colData:{type:Object,default:function(){}},col:{type:Object,default:function(){}}},data:function(){return{content:0}},mounted:function(){this.content=this.colData[this.col.columnName]}},gr=Object(v.a)(hr,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{attrs:{className:"rate-render-container"}},[t.colData[t.col.columnName]?[t._v(" "+t._s(t.colData[t.col.columnName])+" "+t._s(t.col.rawOptions.showScore&&void 0!==t.col.rawOptions.suffix?t.col.rawOptions.suffix:"")+" ")]:t._e()],2)}),[],!1,null,null,null).exports,vr={name:"SwitchRender",props:{colData:{type:Object,default:function(){}},col:{type:Object,default:function(){}}},mounted:function(){this.getContent()},methods:{getContent:function(){return this.col.rawOptions?this.colData[this.col.columnName]?this.col.rawOptions.activeText||"是":this.col.rawOptions.inactiveText||"否":this.colData[this.col.columnName]?"是":"否"}}},br={name:"TableColumnRender",components:{SwitchRender:Object(v.a)(vr,(function(){var t=this.$createElement;return(this._self._c||t)("el-tag",{attrs:{type:"info"}},[this._v(this._s(this.getContent()))])}),[],!1,null,null,null).exports,RateRender:gr},props:{col:{type:Object,default:null},colData:{type:Object,default:null},columnStatusList:{type:Array,default:null}},data:function(){return{WIDGET_COMP_SWITCH_MAP:lr,WIDGET_DATETIME_MAP:cr,WIDGET_OPTION_MAP:ur,WIDGET_COMP_ARRAY_OBJECT_MAP:pr,selectionTypeSuffix:An.a,WIDGET_NUMBER_MAP:sr,WIDGET_COMP_ADDRESS_MAP:fr,WIDGET_COMP_RATE_MAP:dr,WIDGET_COMP_RELATED_FORM_MAP:mr}},methods:{getColumnStatusType:function(t,e){var n="empty";return t&&Array.isArray(t)&&t.length&&t.forEach((function(t){t.columnStatusValue&&t.columnStatusValue===String(e)&&(n=t.columnStatusType)})),n},getColumnStatusName:function(t,e){var n=e;return t&&Array.isArray(t)&&t.length&&t.forEach((function(t){t.columnStatusValue&&t.columnStatusValue===String(e)&&(n=t.columnStatusName)})),n},timeRender:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"datetime",n=arguments.length>2?arguments[2]:void 0;return t&&Number.isInteger(t)?this.formatDateMapper(t,e,n.format,n.customFormat):t},handleLinkURL:function(t,e){var n=t.linkUrl,r=t.linkParams&&t.linkParams.split(",")||[];try{var o=new URL(n);r&&r.length&&r.forEach((function(t){o.searchParams.append(t,e[t])})),window.open(o.href,"_blank")}catch(t){this.$message("打开链接错误:".concat(t.message))}},handleOpenDetail:function(){this.$emit("detail",this.colData)},formatDateMapper:function(t,e,n,r){if("custom"===n)return Bn(t,r);switch(e){case"date":return Ln(t);case"month":return o=t,zn()(o).format("YYYY-MM");case"year":return function(t){return zn()(t).format("YYYY")}(t);case"datetime":return function(t){return zn()(t).format("YYYY-MM-DD HH:mm:ss")}(t);default:return Ln(t)}var o}}},yr=(n("8f5e"),Object(v.a)(br,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.colData?n("div",{staticClass:"table-column-render-container"},[t.col.columnStatusEnabled&&t.columnStatusList&&t.columnStatusList.length&&"empty"!==t.getColumnStatusType(t.columnStatusList,t.colData[t.col.columnName])?[n("el-tag",{staticClass:"custom-status-tag",attrs:{type:t.getColumnStatusType(t.columnStatusList,t.colData[t.col.columnName]),size:"mini"}},["info"===t.getColumnStatusType(t.columnStatusList,t.colData[t.col.columnName])?n("base-icon",{attrs:{"icon-class":"indeterminate-circle-fill"}}):"warning"===t.getColumnStatusType(t.columnStatusList,t.colData[t.col.columnName])?n("base-icon",{attrs:{"icon-class":"time-fill"}}):"success"===t.getColumnStatusType(t.columnStatusList,t.colData[t.col.columnName])?n("base-icon",{attrs:{"icon-class":"checkbox-circle-fill"}}):"danger"===t.getColumnStatusType(t.columnStatusList,t.colData[t.col.columnName])?n("base-icon",{attrs:{"icon-class":"compass-4-fill"}}):t._e(),t._v(" "+t._s(t.getColumnStatusName(t.columnStatusList,t.colData[t.col.columnName]))+" ")],1)]:[t.WIDGET_OPTION_MAP[t.col.widgetType]&&Array.isArray(t.colData[t.col.columnName])?t._l(t.colData[t.col.columnName+"_"+t.selectionTypeSuffix],(function(e,r){return n("span",{key:e.value||e.id||e.label},[r>0?n("label",{key:r},[t._v(",")]):t._e(),n("el-tag",{staticClass:"in-table-tag",attrs:{type:"info"}},[t._v(" "+t._s(e)+" ")])],1)})):t.WIDGET_OPTION_MAP[t.col.widgetType]&&t.colData[t.col.columnName+"_"+t.selectionTypeSuffix]?n("el-tag",{attrs:{type:"info"}},[t._v(" "+t._s(t.colData[t.col.columnName+"_"+t.selectionTypeSuffix])+" ")]):t.WIDGET_DATETIME_MAP[t.col.widgetType]?[t._v(" "+t._s(t.timeRender(t.colData[t.col.columnName],t.col.rawOptions&&t.col.rawOptions.type,t.col.rawOptions))+" ")]:t.WIDGET_COMP_SWITCH_MAP[t.col.widgetType]&&Object.keys(t.colData).indexOf(t.col.columnName)>-1&&null!==t.colData[t.col.columnName]?[n("switch-render",{attrs:{col:t.col,"col-data":t.colData}})]:t.WIDGET_COMP_RATE_MAP[t.col.widgetType]&&Object.keys(t.colData).indexOf(t.col.columnName)>-1&&null!==t.colData[t.col.columnName]?[n("rate-render",{attrs:{col:t.col,"col-data":t.colData}})]:t.WIDGET_COMP_ARRAY_OBJECT_MAP[t.col.widgetType]?[Array.isArray(t.colData[""+t.col.columnName])&&t.colData[""+t.col.columnName].length?t._l(t.colData[""+t.col.columnName],(function(e,r){return n("span",{key:e.code||e.name},[r>0?n("label",[t._v(",")]):t._e(),n("el-tag",{staticClass:"in-table-tag",attrs:{type:"info"}},[t._v(t._s(e.name))])],1)})):t._e()]:t.col.linkEnabled&&"url"===t.col.linkType&&t.col.linkUrl?[n("el-button",{staticClass:"btn-link",attrs:{type:"text"},on:{click:function(e){return t.handleLinkURL(t.col,t.colData)}}},[t._v(" "+t._s(t.colData[t.col.columnName])+" ")])]:t.col.linkEnabled&&"route"===t.col.linkType?[n("el-button",{staticClass:"btn-link",attrs:{type:"text"},on:{click:t.handleOpenDetail}},[t._v(t._s(t.colData[t.col.columnName]))])]:t.WIDGET_NUMBER_MAP[t.col.widgetType]?[t._v(" "+t._s(t.col.rawOptions.closePrecision?Number(t.colData[t.col.columnName]):Number(t.colData[t.col.columnName]).toFixed(t.col.rawOptions.precision))+" ")]:t.WIDGET_COMP_ADDRESS_MAP[t.col.widgetType]&&t.colData[t.col.columnName]?[t._v(" "+t._s((t.colData[t.col.columnName].province||"")+(t.colData[t.col.columnName].city||"")+(t.colData[t.col.columnName].district||"")+(t.colData[t.col.columnName].details||""))+" ")]:t.WIDGET_COMP_RELATED_FORM_MAP[t.col.widgetType]&&t.colData[t.col.columnName]?[t._v(" "+t._s(t.colData[t.col.columnName+"_"+t.selectionTypeSuffix]||t.colData[t.col.columnName])+" ")]:[t._v(" "+t._s(t.colData[t.col.columnName])+" ")]]],2):t._e()}),[],!1,null,"16461144",null).exports),_r={name:"SelectionListDialog",components:{BaseIcon:m.a,TableColumnRender:yr},props:{visible:{type:Boolean,default:!1},widget:{default:function(){}}},model:{prop:"visible",event:"change"},inject:["currentFormId","preview"],mounted:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.disabled=!1,!t.widget.options){e.next=13;break}if(t.widget.options.relatedFormInfo.targetColumn&&t.widget.options.relatedFormInfo.targetColumn.length?t.targetColumn=t.widget.options.relatedFormInfo.targetColumn:(t.$message.error("未选择关联字段"),t.disabled=!0),t.widget.options.relatedFormInfo.formId&&t.widget.options.relatedFormInfo.formId.length){e.next=8;break}t.$message.error("未选择关联表单"),t.disabled=!0,e.next=13;break;case 8:return t.formId=t.widget.options.relatedFormInfo.formId,e.next=11,t.getColumnList();case 11:return e.next=13,t.getFormDataListByPage();case 13:case"end":return e.stop()}}),e)})))()},data:function(){return{pagingConfig:ar,loading:!1,tableData:{columns:[],data:[],total:0},filterData:{current:ar.current,size:ar.size,data:[]},searchValue:"",formId:"",currentRow:{},targetColumn:"",disabled:!1}},methods:{getDisplayColumns:function(t){return t.filter((function(t){return["upload","imageUpload","editor","qrCode"].indexOf(t.widgetType)<0}))},handleReset:function(){this.filterData={current:ar.current,size:ar.size,data:[]},this.searchValue="",this.getFormDataListByPage()},handleSearch:function(){this.$set(this.filterData,"current",ar.current),this.searchValue.length?this.filterData.data[0]={columnName:this.targetColumn,operateType:"CONTAIN",value:this.searchValue,valueType:"FIXED",widgetType:"input"}:this.filterData.data=[],this.getFormDataListByPage()},handleRowDoubleClick:function(t){this.currentRow=t,this.handleConfirm()},handleCurrentChange:function(t){this.currentRow=t},getColumnList:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,i;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,Object(c.e)({formId:t.formId});case 4:if((n=e.sent).data&&n.data.code&&"0000"===n.data.code){e.next=7;break}throw new Error(n&&n.data&&n.data.message?n.data.message:"获取表单数据列表失败");case 7:n.data.data&&n.data.data.length&&(i=t.widget.options.relatedFormInfo.showColumns.map((function(t){if(t.showFlag)return t.columnName})),t.$set(t.tableData,"columns",n.data.data.map((function(t){return Object(r.a)(Object(r.a)({},t),{},{showFlag:!i.length||i.indexOf(t.columnName)>-1})})))),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),t.$message.error(e.t0);case 13:return e.prev=13,t.loading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,10,13,16]])})))()},getFormDataListByPage:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,i;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.loading=!0,e.prev=1,n=Object(r.a)({formId:t.formId},t.filterData),t.preview){e.next=8;break}if(t.currentFormId&&t.currentFormId.length){e.next=6;break}throw new Error("未获取当前表单ID, 无法加载关联选项");case 6:t.$set(n,"fromFormId",t.currentFormId),t.$set(n,"fromFormRelatedColumn",t.widget.model);case 8:return e.next=10,Object(c.h)(n);case 10:if((i=e.sent).data&&i.data.code&&"0000"===i.data.code){e.next=13;break}throw new Error(i&&i.data&&i.data.message?i.data.message:"获取表单数据列表失败");case 13:t.$set(t.tableData,"data",i.data.data.records),t.$set(t.tableData,"total",i.data.data.total),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(1),t.$message.error(e.t0);case 20:return e.prev=20,t.loading=!1,e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[1,17,20,23]])})))()},handleConfirm:function(){Object.keys(this.currentRow).length>0&&this.$emit("confirm",this.currentRow),this.$emit("change",!1)}}},wr=(n("6d4d"),n("0aba"),{name:"RelatedForm",components:{SelectionListDialog:Object(v.a)(_r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{staticClass:"iss-form-renderer-dialog-wrapper",attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,title:"选择关联数据 "+t.widget.options.relatedFormInfo.formName,visible:t.visible,"append-to-body":"","custom-class":"iss-form-renderer-dialog-control selection-dialog-container",width:"1100px"},on:{close:function(e){return t.$emit("change",!1)}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"main"},[n("div",{staticClass:"filter-bar"},[n("el-input",{attrs:{disabled:t.disabled,placeholder:"按关联字段搜索"},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[n("base-icon",{attrs:{slot:"prefix","icon-class":"search-line"},slot:"prefix"})],1),n("el-button",{attrs:{type:"primary"},on:{click:t.handleSearch}},[n("base-icon",{attrs:{"icon-class":"search-line"}}),t._v(" 搜索 ")],1),n("el-button",{on:{click:t.handleReset}},[n("base-icon",{attrs:{"icon-class":"search-line"}}),t._v(" 重置 ")],1)],1),n("div",{staticClass:"iss-form-renderer-table-area"},[t.tableData.columns.length?[n("el-table",{staticClass:"iss-form-renderer-table outside-border",attrs:{data:t.tableData.data,"highlight-current-row":"",stripe:""},on:{"current-change":t.handleCurrentChange}},[n("el-table-column",{attrs:{label:"序号",type:"index",width:"50"}}),t._l(t.getDisplayColumns(t.tableData.columns),(function(e){return[e.showFlag?n("el-table-column",{key:e.ID,attrs:{align:e.columnAlign,fixed:!!e.columnFixedEnabled&&(e.columnFixed||!0),label:e.columnLabel,"min-width":e.columnCustomWidthEnabled&&e.columnCustomWidth?e.columnCustomWidth+"%":25*(e.columnLabel.length<5?5:e.columnLabel.length)+"%",prop:e.columnName,"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(r){return[n("div",{attrs:{type:"text"},on:{dblclick:function(e){return t.handleRowDoubleClick(r.row)}}},[n("table-column-render",{attrs:{col:e,"col-data":r.row,"column-status-list":e.columnStatusList}})],1)]}}],null,!0)}):t._e()]})),t.tableData.data.length?t._e():n("el-empty",{attrs:{slot:"empty",content:"暂无数据"},slot:"empty"},[n("div",{staticClass:"empty-image",attrs:{slot:"image"},slot:"image"})])],2),t.tableData.data.length?n("el-pagination",{staticClass:"iss-form-renderer-pagination",attrs:{"current-page":t.filterData.current,layout:t.pagingConfig.pageLayout,"page-size":t.filterData.size,"page-sizes":t.pagingConfig.pageSizes,total:t.tableData.total,background:""},on:{"update:currentPage":function(e){return t.$set(t.filterData,"current",e)},"update:current-page":function(e){return t.$set(t.filterData,"current",e)},"update:pageSize":function(e){return t.$set(t.filterData,"size",e)},"update:page-size":function(e){return t.$set(t.filterData,"size",e)},"size-change":t.getFormDataListByPage,"current-change":t.getFormDataListByPage}}):t._e()]:[n("el-empty",{attrs:{content:"未设置展示列"}},[n("div",{staticClass:"empty-image",attrs:{slot:"image"},slot:"image"})])]],2)]),n("template",{slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$emit("change",!1)}}},[t._v("取消")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.handleConfirm}},[t._v("确定")])],1)],2)}),[],!1,null,"79cdf4cc",null).exports,BaseIcon:m.a},props:{selected:{default:function(){return""}},placeholder:{default:function(){return""}},printRead:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},widget:{default:function(){}},models:{default:function(){return[]}}},model:{prop:"selected",event:"change"},inject:["currentFormId","preview","formValue"],created:function(){this.$emit("change",this.selected)},mounted:function(){var t=this;this.widget&&(this.displayValue=this.formValue[this.widget.model+"_"+An.a],this.disabledValue=this.disabled,this.disabled||(this.disabledValue=!this.widget.options.relatedFormInfo.targetColumn.length),this.selected&&this.selected.length&&this.widget.options.relatedFormInfo.formId.length&&(this.handleVisibleChange(!0),this.options&&!this.options.filter((function(e){return e.value===t.selected})).length&&this.options.push({label:this.formValue[this.widget.model+"_"+An.a]||"",value:this.selected})),this.selected&&this.selected.length&&this.handleChange(this.selected))},data:function(){return{selectionTypeSuffix:An.a,displayValue:"",loading:!1,visible:!1,options:[],formId:"",formDataList:[],filterParams:{current:1,size:10,data:[]},printValue:"",disabledValue:!1,columnList:[]}},methods:{getColumnList:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,Object(c.e)({formId:t.formId});case 4:"0000"!==(n=e.sent).data.code?t.$message.error(n.data.message||"获取表单数据列表失败"):t.columnList=n.data.data,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),t.$message.error(e.t0);case 12:return e.prev=12,t.loading=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,8,12,15]])})))()},handleSelectFilter:function(t){t&&t.length?this.filterParams.data[0]={columnName:this.widget.options.relatedFormInfo.targetColumn,operateType:"CONTAIN",value:t,valueType:"FIXED",widgetType:"input"}:this.$set(this.filterParams,"data",[]),this.getDisplayOption()},handleVisibleChange:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.widget||!t){n.next=11;break}if(e.widget.options.relatedFormInfo.formId.length){n.next=5;break}e.$message.error("无法解析到表单ID"),n.next=11;break;case 5:return e.formId=e.widget.options.relatedFormInfo.formId,e.$set(e.filterParams,"data",[]),n.next=9,e.getColumnList();case 9:return n.next=11,e.getDisplayOption();case 11:case"end":return n.stop()}}),n)})))()},getDisplayOption:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,i;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.loading=!0,e.prev=1,n=Object(r.a)({formId:t.formId},t.filterParams),t.preview){e.next=8;break}if(t.currentFormId&&t.currentFormId.length){e.next=6;break}throw new Error("未获取当前表单ID, 无法加载关联选项");case 6:t.$set(n,"fromFormId",t.currentFormId),t.$set(n,"fromFormRelatedColumn",t.widget.model);case 8:return e.next=10,Object(c.h)(n);case 10:if((i=e.sent).data&&i.data.code&&"0000"===i.data.code){e.next=13;break}throw new Error(i&&i.data&&i.data.message?i.data.message:"获取表单数据列表失败");case 13:i.data.data.records.length&&(t.formDataList=i.data.data.records,t.options=t.formDataList.map((function(e){return{label:t.getOptionLabel(e,t.widget.options.relatedFormInfo.targetColumn),value:e.ID}})).filter((function(t){return t.label}))),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(1),t.$message.error(e.t0);case 20:return e.prev=20,t.loading=!1,e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[1,16,20,23]])})))()},getOptionLabel:function(t,e){var n=this.columnList.find((function(t){return t.columnName===e})),r=t[e]?t[e].toString():null;return"date"===n.widgetType&&(r=Fn(t[e],n.rawOptions)),"address"===n.widgetType&&(r="".concat(t[e].province||"").concat(t[e].city||"").concat(t[e].district||"").concat(t[e].details||"")),"organization"===n.widgetType&&(r="",t[e]&&Array.isArray(t[e])&&t[e].length&&t[e].forEach((function(n,o){r+="".concat(n.name).concat(o!==t[e].length-1?" > ":"")}))),"member"===n.widgetType&&(r="",t[e]&&Array.isArray(t[e])&&t[e].length&&t[e].forEach((function(n,o){r+="".concat(n.name).concat(o!==t[e].length-1?",":"")}))),r},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(t){this.displayValue=t[this.widget.options.relatedFormInfo.targetColumn];var e={label:t[this.widget.options.relatedFormInfo.targetColumn],value:t.ID};this.options.filter((function(e){return e.value===t.ID})).length||this.options.push(e),this.$emit("change",t.ID);var n={value:t,fillingRules:this.widget.options.relatedFormInfo.dataFillRules,selectedItem:Object(r.a)(Object(r.a)({},e),{},{widgetModel:this.widget.model})};this.$emit("fillingColumns",n)}},handleChange:function(t){this.$emit("change",t);var e=this.options.filter((function(e){return e.value===t})),n=e&&e.length?e[0]:{label:"",value:""};this.$set(n,"widgetModel",this.widget.model),this.$emit("fillingColumns",{value:this.formDataList.filter((function(e){return e.ID===t}))[0],fillingRules:this.widget.options.relatedFormInfo.dataFillRules,selectedItem:n})}}}),xr=(n("99c2"),Object(v.a)(wr,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"related-form-container"},[t.printRead&&t.selected&&t.widget?[t._v(" "+t._s(t.displayValue)+" ")]:t.printRead?t._e():[n("el-select",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"main",attrs:{clearable:t.clearable,disabled:t.disabledValue,"filter-method":t.handleSelectFilter,placeholder:t.placeholder,value:t.selected,filterable:""},on:{change:t.handleChange,"visible-change":t.handleVisibleChange}},t._l(t.options,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value},nativeOn:{click:function(n){n.stopPropagation(),t.displayValue=e.label}}})})),1),n("el-button",{staticClass:"suffix",attrs:{disabled:t.disabledValue},on:{click:function(e){t.visible=!0}}},[n("base-icon",{attrs:{"icon-class":"links-line"}})],1)],t.visible?n("SelectionListDialog",{attrs:{widget:t.widget},on:{confirm:t.handleConfirm},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}}):t._e()],2)}),[],!1,null,"b1da594e",null).exports),Or=n("bfce"),Sr={name:"GenerateElementItem",components:{BaseIcon:m.a,RelatedForm:xr,AddressComponent:Tn,GenerateTable:Jn,OrganizationSelector:f.a,RichEditor:ir,UploadComponent:b,UploadImageComponent:_,UuidComponent:O,CustomSelectComponent:Dn,QrCodeComponent:Or.a},props:["widget","value","models","remote","isTable","disabled","edit","remoteOptionSource","rules","platform","preview","dataSourceValue","eventFunction","rowIndex","tableName","printRead"],data:function(){return{qrCodeValue:"",selectionTypeSuffix:An.a,DATASOURCE_TYPE:u,dataModel:this.value,dataModels:this.models,key:(new Date).getTime(),modelName:this.widget.model,optionLoading:!1,optionLoadFailed:!1,options:[],visible:!0,printValue:"",columnList:[]}},inject:["variable","formValue","currentFormId"],computed:{isRemote:function(){return this.widget.options.remote!==u.STATIC_DATA},digitalValue:function(){var t="",e=this.widget.options.showSuffix?this.widget.options.suffix:"";return isNaN(Number(this.dataModel))||(t=this.widget.options.closePrecision?Number(this.dataModel)+e:Number(this.dataModel).toFixed(this.widget.options.precision)+e),t}},created:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.widget.options.remote===u.FUNCTIONS&&t.remote[t.widget.options.remoteFunc]&&t.remote[t.widget.options.remoteFunc]((function(e){t.loadOptions(e)})),t.widget.options.remote===u.OPTION&&t.remoteOptionSource[t.widget.options.remoteOptionSource]&&t.loadOptions(t.remoteOptionSource[t.widget.options.remoteOptionSource]),t.widget.options.remote===u.API_DATA&&t.dataSourceValue&&(n=t.dataSourceValue.find((function(e){return e.key===t.widget.options.remoteDataSource})))&&n.value&&t.loadOptions(n.value),t.widget.options.remote!==u.DICT_DATA||!t.widget.options.remoteOption||!t.widget.options.remoteOption.remoteDict){e.next=11;break}if(!t.edit){e.next=11;break}return e.next=7,t.handleLoadDictOptions();case 7:if("cascader"!==t.widget.type){e.next=11;break}return t.options=t.widget.options.remoteOptions,e.next=11,t.loadCascaderOptions();case 11:"checkbox"!==t.widget.type||t.dataModel||(t.dataModel=[]);case 12:case"end":return e.stop()}}),e)})))()},mounted:function(){this.widget.options.useDynamicValue&&!this.dataModel&&(this.dataModel=(new Date).getTime())},methods:{onTableDataModelChange:function(t){this.dataModel=h.a.cloneDeep(t)},getParentCode:function(t){return this.widget.options.isInitNode&&this.widget.options.initNode&&this.widget.options.initNode.length?this.widget.options.initNode[0][t]:"code"===t?this.variable.USER_REGION_CODE:this.variable.USER_REGION},getCascaderPrintValue:function(){if(void 0!==this.formValue["".concat(this.widget.model,"_").concat(An.a)])this.printValue=(this.formValue["".concat(this.widget.model,"_").concat(An.a)]||[]).join(" / ");else if(this.$refs["icd-form-".concat(this.widget.model)]){var t=this.$refs["icd-form-".concat(this.widget.model)].getCheckedNodes(),e=t&&t.length?t[0].pathLabels:[];this.printValue=this.isRemote?e.join(" / "):this.dataModel.join(" / ")}},loadCascaderOptions:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,r;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.dataModel&&t.dataModel.length&&t.options&&t.options.length)){e.next=6;break}return n=t.options.findIndex((function(e){return e.value===t.dataModel[0]})),e.next=4,t.getChildren(t.options[n],1,t.dataModel);case 4:(r=e.sent)&&r.length?t.$set(t.options[n],"children",r):t.$set(t.options[n],"leaf",!0);case 6:case"end":return e.stop()}}),e)})))()},getChildren:function(t,e,n){var r=this;return Object(i.a)(Object(o.a)().mark((function i(){var a,u;return Object(o.a)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,r.loadDictOption(t);case 2:if(!((a=o.sent)&&a.length&&e<n.length)){o.next=11;break}return u=a.findIndex((function(t){return t.value===n[e]})),o.t0=r,o.t1=a[u],o.next=9,r.getChildren(a[u],e+1,n);case 9:o.t2=o.sent,o.t0.$set.call(o.t0,o.t1,"children",o.t2);case 11:return o.abrupt("return",a);case 12:case"end":return o.stop()}}),i)})))()},loadDictOption:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var i;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.loading=!0,n.prev=1,n.next=4,s(e,{dictId:t.dictId,parentId:t.id});case 4:return(i=n.sent).data&&i.data.length&&(i.data=i.data.map((function(t){return Object(r.a)(Object(r.a)({},t),{},{leaf:"0"===t.hasChild})}))),n.abrupt("return",i.data);case 9:return n.prev=9,n.t0=n.catch(1),e.$message.error(n.t0),n.abrupt("return",null);case 13:return n.prev=13,e.loading=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[1,9,13,16]])})))()},fillingColumns:function(t){this.$emit("fillingColumns",t)},loadOptions:function(t){var e=this;this.widget.options.remoteOptions=t.map((function(t){return e.widget.options.props.children&&e.widget.options.props.children.length&&Object.keys(t).includes(e.widget.options.props.children)?{value:t[e.widget.options.props.value],label:t[e.widget.options.props.label],children:e.processRemoteProps(t[e.widget.options.props.children],e.widget.options.props)}:{value:t[e.widget.options.props.value],label:t[e.widget.options.props.label]}}))},cascaderLazyLoad:function(t,e){var n=this;return Object(i.a)(Object(o.a)().mark((function r(){var i;return Object(o.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.root){r.next=3;break}return e(),r.abrupt("return");case 3:return r.next=5,s(n,{dictId:t.data.dictId,parentId:t.data.id});case 5:(i=r.sent).data?e(i.data):n.optionLoadFailed=!0;case 7:case"end":return r.stop()}}),r)})))()},handleLoadDictOptions:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,r;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.widget.options.remoteOptions&&t.widget.options.remoteOptions.length||t.optionLoading)){e.next=2;break}return e.abrupt("return");case 2:if(t.optionLoading=!0,t.optionLoadFailed=!1,n={},"dict"!==(r=t.widget.options.remoteOption.remoteDict).dictDataType){e.next=12;break}return e.next=9,s(t,{dictId:r.dictId,parentId:"#"});case 9:n=e.sent,e.next=16;break;case 12:if("dictItem"!==r.dictDataType){e.next=16;break}return e.next=15,s(t,{dictId:r.dictId,parentId:r.dictOptionId});case 15:n=e.sent;case 16:n.data?t.widget.options.remoteOptions=n.data:t.optionLoadFailed=!0,t.optionLoading=!1;case 18:case"end":return e.stop()}}),e)})))()},processRemoteProps:function(t,e){var n=this;return t&&t.length?t.map((function(t){return n.processRemoteProps(t[e.children],e).length?{value:t[e.value],label:t[e.label],children:n.processRemoteProps(t[e.children],e)}:{value:t[e.value],label:t[e.label]}})):[]},onCascaderChange:function(t){var e=this;t&&this.$nextTick((function(){e.$parent&&e.$parent.clearValidate&&e.$parent.clearValidate(),e.$parent&&e.$parent.$parent&&e.$parent.$parent.$refs.generateFormItem&&e.$parent.$parent.$refs.generateFormItem.clearValidate()}))},getCascaderText:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.length>=1&&e){var r=e.find((function(e){return e.value===t[0]}));return r&&n.push(r.label),t.splice(0,1),this.getCascaderText(t,r.children,n)}if(0===t.length)return n},handleOnFocus:function(){if(this.widget.events&&this.widget.events.onFocus){var t=this.widget.events.onFocus;this.isTable&&this.tableName?this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex}):this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model})}},handleOnBlur:function(){if(this.widget.events&&this.widget.events.onBlur){var t=this.widget.events.onBlur;this.isTable&&this.tableName?this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex}):this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model})}},onUploadSuccess:function(){if(this.widget.events&&this.widget.events.onUploadSuccess){var t=this.widget.events.onUploadSuccess;this.eventFunction[t]&&this.eventFunction[t]()}},onUploadFileRemoved:function(t){if(this.widget.events&&this.widget.events.onRemoveUploadFile){var e=this.widget.events.onRemoveUploadFile;this.eventFunction[e]&&this.eventFunction[e]({removedFile:t})}},queryColumns:function(t,e){var n=this;return Object(i.a)(Object(o.a)().mark((function i(){var a,u,s;return Object(o.a)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=[],u=n.widget.options.relatedFormInfo.targetColumn,o.next=4,Object(c.h)({size:50,current:1,formId:n.widget.options.relatedFormInfo.formId,data:[{columnName:u,operateType:"CONTAIN",value:t,valueType:"FIXED",widgetType:"input"}]});case 4:if((s=o.sent).data&&s.data.code&&"0000"===s.data.code){o.next=7;break}throw new Error(s&&s.data&&s.data.message?s.data.message:"获取表单数据列表失败");case 7:if(!s.data.data.records.length){o.next=12;break}if(!n.columnList||0!==n.columnList.length){o.next=11;break}return o.next=11,n.getColumnList();case 11:a=s.data.data.records.map((function(t){return Object(r.a)({value:null!==t[u]?n.getOptionLabel(t,u).substring(0,100):""},t)}));case 12:e(a);case 13:case"end":return o.stop()}}),i)})))()},selectData:function(t){if(0!==this.widget.options.relatedFormInfo.dataFillRules.length){var e={value:{},fillingRules:[],selectedItem:{label:t[this.widget.options.relatedFormInfo.targetColumn],value:t.ID,widgetModel:this.widget.model,type:"input"}};e.fillingRules=this.widget.options.relatedFormInfo.dataFillRules;var n=h.a.cloneDeep(t);this.$delete(n,"value"),e.value=n,this.$emit("fillingColumns",e)}},getOptionLabel:function(t,e){var n=this.columnList.find((function(t){return t.columnName===e})),r=t[e].toString();return"date"===n.widgetType&&(r=Fn(t[e],n.rawOptions)),"address"===n.widgetType&&(r="".concat(t[e].province||"").concat(t[e].city||"").concat(t[e].district||"").concat(t[e].details||"")),"organization"===n.widgetType&&(r="",t[e]&&Array.isArray(t[e])&&t[e].length&&t[e].forEach((function(n,o){r+="".concat(n.name).concat(o!==t[e].length-1?" > ":"")}))),"member"===n.widgetType&&(r="",t[e]&&Array.isArray(t[e])&&t[e].length&&t[e].forEach((function(n,o){r+="".concat(n.name).concat(o!==t[e].length-1?",":"")}))),r},getColumnList:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,Object(c.e)({formId:t.widget.options.relatedFormInfo.formId});case 4:"0000"!==(n=e.sent).data.code?t.$message.error(n.data.message||"获取表单数据列表失败"):t.columnList=n.data.data,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),t.$message.error(e.t0);case 12:return e.prev=12,t.loading=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,8,12,15]])})))()}},watch:{value:function(t){this.dataModel=t},dataModel:function(t){this.$emit("input",t),this.isTable&&this.tableName&&this.$emit("on-table-change",{value:t,field:this.widget.model,table:this.tableName,rowIndex:this.rowIndex,haveEvent:this.widget.events&&this.widget.events.onChange})},remoteOptionSource:{deep:!0,handler:function(){Object.keys(this.remoteOptionSource).indexOf(this.widget.options.remoteOptionSource)>=0&&this.widget.options.remote!==u.STATIC_DATA&&"option"===this.widget.options.remoteType&&this.loadOptions(this.remoteOptionSource[this.widget.options.remoteOptionSource])}},dataSourceValue:{deep:!0,handler:function(){var t=this;if(this.dataSourceValue){var e=this.dataSourceValue.find((function(e){return e.key===t.widget.options.remoteDataSource}));e&&e.value&&this.loadOptions(e.value)}}},printRead:{deep:!0,immediate:!0,handler:function(){var t=Object(i.a)(Object(o.a)().mark((function t(e){return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("cascader"!==this.widget.type){t.next=12;break}if(!e){t.next=5;break}this.getCascaderPrintValue(),t.next=12;break;case 5:if(this.widget.options.remote!==u.DICT_DATA||!this.widget.options.remoteOption||!this.widget.options.remoteOption.remoteDict){t.next=12;break}if(!this.edit){t.next=12;break}return t.next=9,this.handleLoadDictOptions();case 9:return this.options=this.widget.options.remoteOptions,t.next=12,this.loadCascaderOptions();case 12:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}}},Cr=Object(v.a)(Sr,(function(){var t,e=this,n=e.$createElement,r=e._self._c||n;return r("el-form-item",{staticClass:"renderer-form-item",class:(t={},t[e.widget.options&&e.widget.options.customClass]=e.widget.options&&e.widget.options.customClass,t["no-label-form-item"]=e.widget.options.isLabelWidth&&0===e.widget.options.labelWidth,t["print-read-mode"]=e.printRead,t),attrs:{label:e.widget.options.hideLabel?"":e.widget.name,"label-width":e.widget.options.hideLabel?"0px":e.widget.options.isLabelWidth?e.widget.options.labelWidth+"px":"",prop:e.widget.model,required:e.widget.options.required,"status-icon":!0}},["input"===e.widget.type?[e.printRead?[r("div",{staticClass:"custom-input-section"},[e._v(" "+e._s(e.widget.options.showPassword?"*********":e.dataModel)+" ")])]:[e.widget.options.relatedFormEnabled?[e.widget.options.dataTypeCheck&&"number"===e.widget.options.dataType?r("el-autocomplete",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,"fetch-suggestions":e.queryColumns,debounce:0,type:"number",maxlength:100},on:{blur:function(t){return t.stopPropagation(),e.handleOnBlur.apply(null,arguments)},focus:function(t){return t.stopPropagation(),e.handleOnFocus.apply(null,arguments)},select:e.selectData},model:{value:e.dataModel,callback:function(t){e.dataModel=e._n(t)},expression:"dataModel"}}):r("el-autocomplete",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,"fetch-suggestions":e.queryColumns,debounce:0,type:e.widget.options.dataTypeCheck?e.widget.options.dataType:"text","show-word-limit":"",maxlength:100},on:{blur:function(t){return t.stopPropagation(),e.handleOnBlur.apply(null,arguments)},focus:function(t){return t.stopPropagation(),e.handleOnFocus.apply(null,arguments)},select:e.selectData},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:[e.widget.options.dataTypeCheck&&"number"===e.widget.options.dataType?r("el-input",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,type:"number"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=e._n(t)},expression:"dataModel"}}):r("el-input",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,"show-password":e.widget.options.showPassword,type:e.widget.options.dataTypeCheck?e.widget.options.dataType:"text",maxlength:"100","show-word-limit":""},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]]:e._e(),"textarea"===e.widget.type?[e.printRead?[r("div",{staticClass:"custom-textarea-section"},[e._v(" "+e._s(e.dataModel)+" ")])]:[r("el-input",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{autosize:!!e.widget.options.autosize&&{minRows:e.widget.options.rows},disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,rows:e.widget.options.rows,type:"textarea"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"number"===e.widget.type?[e.printRead?[e._v(" "+e._s(e.digitalValue)+" ")]:[r("el-input-number",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"auto"},attrs:{controls:!e.printRead&&e.widget.options.controls,"controls-position":e.widget.options.controlsPosition,disabled:e.printRead||!e.edit||e.widget.options.disabled,max:e.widget.options.max,min:e.widget.options.min,precision:e.widget.options.closePrecision?void 0:e.widget.options.precision,step:e.widget.options.step},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.widget.options.showSuffix?r("span",{staticClass:"iss-number-unit"},[e._v(" "+e._s(e.widget.options.suffix))]):e._e()]]:e._e(),"radio"===e.widget.type?[e.printRead?[e.isRemote?[e._v(" "+e._s(e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel}))&&e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel})).label||"")+" ")]:[e._v(" "+e._s(e.dataModel||"")+" ")]]:[e.optionLoading?[r("i",{staticClass:"el-icon-loading"}),e._v(" 正在加载选项... ")]:e._e(),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e(),r("el-radio-group",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},["button"===e.widget.options.optionStyle?e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-radio-button",{key:t.value+n,style:{display:"inline-block"},attrs:{label:t.value}},[e._v(" "+e._s(t.label)+" ")])})):e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-radio",{key:t.value+n,style:{display:"mobile"===e.platform&&"border"===e.widget.options.optionStyle?"block":e.widget.options.inline?"inline-block":"block"},attrs:{border:"border"===e.widget.options.optionStyle,label:t.value}},[e._v(" "+e._s(t.label)+" ")])}))],2)]]:e._e(),"checkbox"===e.widget.type?[e.printRead?[e.isRemote?[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return e.widget.options.remoteOptions.find((function(e){return e.value===t}))&&e.widget.options.remoteOptions.find((function(e){return e.value===t})).label})).join("、")||"")+" ")]:[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return e.widget.options.options.find((function(e){return e.value===t}))&&e.widget.options.options.find((function(e){return e.value===t})).label})).join("、")||"")+" ")]]:[e.optionLoading?[r("i",{staticClass:"el-icon-loading"}),e._v(" 正在加载选项... ")]:e._e(),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e(),r("el-checkbox-group",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},["button"===e.widget.options.optionStyle?e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-checkbox-button",{key:t.value+n,style:{display:"inline-block"},attrs:{label:t.value}},[e._v(" "+e._s(t.label)+" ")])})):e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,n){return r("el-checkbox",{key:t.value+n,style:{display:"mobile"===e.platform&&"border"===e.widget.options.optionStyle?"block":e.widget.options.inline?"inline-block":"block"},attrs:{border:"border"===e.widget.options.optionStyle,label:t.value}},[e._v(" "+e._s(t.label)+" ")])}))],2)]]:e._e(),"time"===e.widget.type?[e.printRead?[e._v(" "+e._s(e.dataModel)+" ")]:[r("el-time-picker",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{arrowControl:e.widget.options.arrowControl,clearable:e.widget.options.clearable,disabled:!e.edit||e.widget.options.disabled,editable:e.widget.options.editable,"end-placeholder":e.widget.options.endPlaceholder,"is-range":e.widget.options.isRange,placeholder:e.widget.options.placeholder,readonly:e.widget.options.readonly,"start-placeholder":e.widget.options.startPlaceholder,"value-format":e.widget.options.format},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"date"===e.widget.type?[r("el-date-picker",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{clearable:e.widget.options.clearable,disabled:e.printRead||!e.edit||e.widget.options.disabled,editable:e.widget.options.editable,"end-placeholder":e.widget.options.endPlaceholder,format:"custom"===e.widget.options.format?e.widget.options.customFormat:e.widget.options.format,placeholder:e.widget.options.placeholder,readonly:e.widget.options.readonly,"start-placeholder":e.widget.options.startPlaceholder,type:e.widget.options.type,"value-format":"timestamp"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"rate"===e.widget.type?[r("el-rate",{ref:"icd-form-"+e.widget.model,style:e.widget.options.clearable?"float:left":"",attrs:{"allow-half":e.widget.options.allowHalf,disabled:e.printRead||!e.edit||e.widget.options.disabled,"icon-classes":["ri-star-fill","ri-star-fill","ri-star-fill"],max:e.widget.options.max,"score-template":"{value}"+e.widget.options.suffix,"show-score":e.widget.options.showScore,"disabled-void-icon-class":"ri-star-fill","void-icon-class":"ri-star-line"},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.widget.options.clearable?r("el-link",{staticStyle:{float:"left","margin-left":"1rem"},attrs:{underline:!1,type:"primary"},on:{click:function(t){e.dataModel=0}}},[e._v("清空")]):e._e()]:e._e(),"select"===e.widget.type?[e.printRead?[e.isRemote?[e._v(" "+e._s(("object"==typeof e.dataModel&&e.dataModel?e.dataModel.map((function(t){return e.widget.options.remoteOptions.find((function(e){return e.value===t}))&&e.widget.options.remoteOptions.find((function(e){return e.value===t})).label})).join("、"):e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel}))&&e.widget.options.remoteOptions.find((function(t){return t.value===e.dataModel})).label)||"")+" ")]:[e._v(" "+e._s(("object"==typeof e.dataModel&&e.dataModel?e.dataModel.map((function(t){return e.widget.options.options.find((function(e){return e.value===t}))&&e.widget.options.options.find((function(e){return e.value===t})).label})).join("、"):e.widget.options.options.find((function(t){return t.value===e.dataModel}))&&e.widget.options.options.find((function(t){return t.value===e.dataModel})).label)||"")+" ")]]:[r("custom-select-component",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{clearable:e.widget.options.clearable,"custom-multiple":e.widget.options.multiple,disabled:!e.edit||e.widget.options.disabled,filterable:e.widget.options.filterable,loading:e.optionLoading,placeholder:e.widget.options.placeholder,"loading-text":"正在加载选项",multiple:""},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},e._l(e.isRemote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,e){return r("el-option",{key:t.id||t.value+e,attrs:{label:t.label,value:t.value}})})),1),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e()]]:e._e(),"switches"===e.widget.type?[e.printRead?[e._v(" "+e._s(!0===e.dataModel?e.widget.options.activeText||"是":!1===e.dataModel?e.widget.options.inactiveText||"否":"")+" ")]:[r("el-switch",{ref:"icd-form-"+e.widget.model,attrs:{"active-text":e.widget.options.activeText,disabled:!e.edit||e.widget.options.disabled,"inactive-text":e.widget.options.inactiveText},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"slider"===e.widget.type?[e.printRead?[e._v(" "+e._s(e.dataModel+e.widget.options.suffix)+" ")]:[r("el-slider",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:e.printRead||!e.edit||e.widget.options.disabled,"format-tooltip":function(t){return t+e.widget.options.suffix},max:e.widget.options.max,min:e.widget.options.min,range:e.widget.options.range,"show-input":e.widget.options.showInput,step:e.widget.options.step},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"editor"===e.widget.type?[r("rich-editor",{ref:"icd-form-"+e.widget.model,attrs:{"custom-style":{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%",cursor:!e.edit||e.widget.options.disabled?"no-drop":"",backgroundColor:!e.edit||e.widget.options.disabled?"#F5F7FA":""},disabled:e.printRead||!e.edit||e.widget.options.disabled,placeholder:e.widget.options.placeholder,readonly:!0},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),["organization","member"].indexOf(e.widget.type)>-1?[e.printRead?[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return t.name})).join("、")||"")+" ")]:[r("organization-selector",{ref:"icd-form-"+e.widget.model,attrs:{"dialog-title":"选择"+("ORGAN"===e.widget.options.optionScopeType?"组织机构":"人员"),"custom-style":{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},disabled:e.printRead||!e.edit||e.widget.options.disabled,multiple:e.widget.options.multiple,"parent-code":e.getParentCode("code"),"parent-name":e.getParentCode("name"),"option-scope-type":e.widget.options.optionScopeType,placeholder:e.widget.options.placeholder,platform:e.platform},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]:e._e(),"cascader"===e.widget.type?[e.printRead?[e._v(e._s(e.printValue))]:[r("el-cascader",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{clearable:e.widget.options.clearable,disabled:e.printRead||!e.edit||e.widget.options.disabled,filterable:e.widget.options.filterable,loading:e.optionLoading,options:e.isRemote?e.options:e.widget.options.options,placeholder:e.widget.options.placeholder,props:{lazy:e.isRemote,lazyLoad:e.cascaderLazyLoad,checkStrictly:e.widget.options.checkStrictly},"collapse-tags":"","loading-text":"正在加载选项"},on:{blur:e.handleOnBlur,change:e.onCascaderChange,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.optionLoadFailed?r("div",{staticClass:"form-option-load-failed"},[r("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" 选项加载失败 "),r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[r("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" 重试 ")],1)],1):e._e()]]:e._e(),"upload"===e.widget.type?[r("upload-component",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled,limit:e.widget.options.limit,multiple:e.widget.options.multiple,"print-read":e.printRead,size:e.widget.options.size,tip:e.widget.options.tip,accept:e.widget.options.accept,searchable:e.widget.options.searchable,"is-batch-download":e.widget.options.isBatchDownload,"widget-name":e.widget.name},on:{onSuccess:e.onUploadSuccess,onRemove:e.onUploadFileRemoved},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"imageUpload"===e.widget.type?[r("upload-image-component",{ref:"icd-form-"+e.widget.model,style:{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},attrs:{disabled:!e.edit||e.widget.options.disabled,limit:e.widget.options.limit,multiple:e.widget.options.multiple,"print-read":e.printRead,size:e.widget.options.size,tip:e.widget.options.tip},on:{onSuccess:e.onUploadSuccess,onRemove:e.onUploadFileRemoved},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"uuid"===e.widget.type?[r("uuid-component",{ref:"icd-form-"+e.widget.model,attrs:{"custom-style":{width:e.widget.options.isWidgetWidth?e.widget.options.width+"%":"100%"},"print-read":e.printRead},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"sequence"===e.widget.type?[e.currentFormId&&e.currentFormId.length?[e.printRead?[e._v(e._s(e.dataModel))]:r("el-input",{attrs:{value:e.dataModel&&e.dataModel.length?e.dataModel.toString():"仅限编辑和详情页面展示",resize:"none",disabled:""}})]:[e._v("仅限编辑和详情页面展示")]]:e._e(),"address"===e.widget.type?[r("address-component",{ref:"icd-form-"+e.widget.model,attrs:{disabled:e.widget.options.disabled||!e.edit,"is-address-detail":e.widget.options.isAddressDetail,"print-read":e.printRead},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"relatedForm"===e.widget.type?[r("related-form",{attrs:{clearable:e.widget.options.clearable,disabled:e.printRead||!e.edit||e.widget.options.disabled,models:e.dataModels,placeholder:e.widget.options.placeholder,"print-read":e.printRead,widget:e.widget},on:{fillingColumns:e.fillingColumns},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),"table"===e.widget.type?[r("generate-table",{ref:"icd-form-"+e.widget.model,attrs:{columns:e.widget.tableColumns,"data-source-value":e.dataSourceValue,"disabled-data":!e.edit||e.widget.options.disabled||e.printRead,"event-function":e.eventFunction,models:e.dataModels,name:e.widget.model,"page-size":e.widget.options.pageSize,paging:e.widget.options.paging,platform:e.platform,preview:e.preview,"print-read":e.printRead,remote:e.remote,"remote-option-source":e.remoteOptionSource,rules:e.rules,value:e.dataModel,widget:e.widget},on:{onValueChange:e.onTableDataModelChange}})]:e._e(),"qrCode"===e.widget.type?[r("qr-code-component",{attrs:{options:e.widget.options,"data-models":e.dataModels}})]:e._e()],2)}),[],!1,null,null,null).exports,Er={props:["widget","edit","isTable","printRead","eventFunction","platform"],components:{TextComponent:Vn},data:function(){return{key:Math.random().toString(36).slice(-8),widgetKey:Math.random().toString(36).slice(-8)}},methods:{handleOnClick:function(){if(this.widget.events&&this.widget.events.onClick){var t=this.widget.events.onClick;this.eventFunction[t]&&this.eventFunction[t]({field:this.widget.model})}}}},kr=Object(v.a)(Er,(function(){var t,e,n,r,o,i,a=this,u=a.$createElement,c=a._self._c||u;return c("div",{staticClass:"renderer-display-item"},["divider"===a.widget.type?[c("div",{class:(t={},t[a.widget.options&&a.widget.options.customClass]=a.widget.options&&a.widget.options.customClass,t),style:{paddingTop:a.widget.options.paddingTop+"px",paddingBottom:a.widget.options.paddingBottom+"px"}},[c("el-divider",{ref:"icd-form-"+a.widget.model,attrs:{"content-position":a.widget.options.contentPosition}},[a._v(" "+a._s(a.widget.options.text)+" ")])],1)]:a._e(),"text"===a.widget.type?[c("text-component",{ref:"icd-form-"+a.widget.model,class:(e={},e[a.widget.options&&a.widget.options.customClass]=a.widget.options&&a.widget.options.customClass,e),attrs:{align:a.widget.options.contentPosition,"font-color":a.widget.options.fontColor,"font-family":a.widget.options.fontFamily,"font-size":a.widget.options.fontSize,"font-style":a.widget.options.fontStyle,"font-weight":a.widget.options.fontWeight,"margin-bottom":a.widget.options.marginBottom,"margin-top":a.widget.options.marginTop}},[a._v(" "+a._s(a.widget.options.text)+" ")])]:a._e(),"button"===a.widget.type?[c("text-component",{attrs:{align:a.widget.options.contentPosition}},[a.widget.options.showInPrintRead||!a.printRead?c("el-button",{ref:"icd-form-"+a.widget.model,class:(n={},n[a.widget.options&&a.widget.options.customClass]=a.widget.options&&a.widget.options.customClass,n),style:a.widget.options.customWidth?{width:a.widget.options.width+"%"}:"",attrs:{circle:a.widget.options.buttonCircle,disabled:!a.edit||a.widget.options.disabled,plain:a.widget.options.buttonPlain,round:a.widget.options.buttonRound,size:a.widget.options.buttonSize,type:a.widget.options.buttonType},on:{click:a.handleOnClick}},[a._v(" "+a._s(a.widget.options.buttonName)+" ")]):a._e()],1)]:a._e(),"link"===a.widget.type?[c("text-component",{attrs:{align:a.widget.options.contentPosition}},[c("el-link",{ref:"icd-form-"+a.widget.model,class:(r={},r[a.widget.options&&a.widget.options.customClass]=a.widget.options&&a.widget.options.customClass,r),attrs:{disabled:a.widget.options.disabled,href:a.widget.options.href,type:a.widget.options.linkType,underline:a.widget.options.underline,target:"_blank"},on:{click:a.handleOnClick}},[a._v(" "+a._s(a.widget.options.text)+" ")])],1)]:a._e(),"image"===a.widget.type?[c("el-image",{ref:"icd-form-"+a.widget.model,class:(o={},o[a.widget.options&&a.widget.options.customClass]=a.widget.options&&a.widget.options.customClass,o),style:{width:a.widget.options.width+"%",height:a.widget.options.autoHeight?"auto":a.widget.options.height+"px"},attrs:{alt:a.widget.name,fit:a.widget.options.autoHeight?"fill":a.widget.options.fit,src:a.widget.options.src},nativeOn:{click:function(t){return a.handleOnClick.apply(null,arguments)}}},[c("div",{staticClass:"iss-image-load-failed",attrs:{slot:"error"},slot:"error"},[c("div",{staticClass:"iss-empty-image"}),a.widget.options.src?c("span",[a._v("图片加载失败,请配置正确的图片链接地址或上传图片")]):c("span",[a._v("请上传图片或配置图片链接地址")])])])]:a._e(),"iframe"===a.widget.type?[a.widget.options.href?c("iframe",{ref:"icd-form-"+a.widget.model,staticClass:"iss-iframe",class:(i={},i[a.widget.options&&a.widget.options.customClass]=a.widget.options&&a.widget.options.customClass,i),style:{width:a.widget.options.width+"%",height:a.widget.options.height+"px"},attrs:{src:a.widget.options.href}}):c("div",{staticClass:"iss-image-load-failed",style:{width:a.widget.options.width+"%",height:a.widget.options.height+"px"}},[c("div",{staticClass:"iss-empty-image"}),c("span",[a._v("请配置网页URL地址")])])]:a._e()],2)}),[],!1,null,null,null).exports,Tr=n("0f01"),Mr={qrCode:{name:"条码",icon:"qr-code-line",qrCodeRelatedFieldsFilters:["input","textarea","number","radio","checkbox","select","date","rate","switches","slider","address","organization","member","cascader","editor","uuid","sequence"]},personName:{name:"姓名",icon:"user-line",showDefaultValue:!0},personGender:{name:"性别",icon:"men-line",showDefaultValue:!0},idCard:{name:"身份证号码",icon:"folder-user-line",showDefaultValue:!0},unifiedSocialCreditCode:{name:"统一社会信用代码",icon:"barcode-box-line",showDefaultValue:!0},cellPhoneNumber:{name:"手机号码",icon:"smartphone-line",showDefaultValue:!0},telephoneNumber:{name:"固定电话",icon:"phone-line",showDefaultValue:!0},email:{name:"电子邮箱",icon:"mail-line",showDefaultValue:!0},zipCode:{name:"邮政编码",icon:"mail-settings-line",showDefaultValue:!0},administrativeDivision:{name:"行政区划",icon:"government-line"},remark:{name:"备注",icon:"sticky-note-line",showDefaultValue:!0},funds:{name:"资金",icon:"money-cny-box-line",showDefaultValue:!0},carNumber:{name:"车牌号",icon:"car-line",showDefaultValue:!0},text:{name:"文字",icon:"character-recognition-line",notFormItem:!0},input:{name:"单行文本",icon:"layout-left-2-line",showDefaultValue:!0},textarea:{name:"多行文本",icon:"file-list-line",showDefaultValue:!0},number:{name:"数字",icon:"increase-decrease-line",showDefaultValue:!0},radio:{name:"单选框组",icon:"radio-button-line"},checkbox:{name:"多选框组",icon:"checkbox-line"},select:{name:"下拉选择框",icon:"arrow-down-line"},time:{name:"时间选择器",icon:"time-line",showDefaultValue:!0},date:{name:"日期选择器",icon:"calendar-line",showDefaultValue:!0},rate:{name:"评分",icon:"star-smile-line",showDefaultValue:!0},switches:{name:"开关",icon:"toggle-line",showDefaultValue:!0},slider:{name:"滑块",icon:"equalizer-line",showDefaultValue:!0},button:{name:"按钮",icon:"mouse-line",notFormItem:!0},link:{name:"文字链接",icon:"t-box-line",notFormItem:!0},editor:{name:"富文本",icon:"edit-circle-line",showDefaultValue:!0},cascader:{name:"级联选择器",icon:"link"},divider:{name:"分割线",icon:"separator",notFormItem:!0},grid:{name:"栅格布局",icon:"layout-column-line",notFormItem:!0,isContainer:!0,allowList:[]},table:{name:"子表单",icon:"terminal-window-line",notFormItem:!0,isContainer:!0,allowList:["input","textarea","number","radio","checkbox","select","date","rate","switches","slider","upload","imageUpload","address","organization","member","uuid","cascader","button"]},tabs:{name:"标签页",icon:"window-2-line",notFormItem:!0,isContainer:!0,allowList:["grid","table"]},report:{name:"网格布局",icon:"table-line",notFormItem:!0,isContainer:!0,allowList:[]},td:{name:"TD",icon:"table-line",notFormItem:!0},card:{name:"卡片",icon:"input-method-line",notFormItem:!0,isContainer:!0,allowList:["grid","table"]},collapse:{name:"折叠面板",icon:"stack-line",notFormItem:!0,isContainer:!0,allowList:["grid","table"]},upload:{name:"上传附件",icon:"file-upload-line",showDefaultValue:!1},imageUpload:{name:"上传图片",icon:"image-add-fill",showDefaultValue:!1},organization:{name:"组织机构",icon:"organization-chart",showDefaultValue:!1,shareFormNotApplicableTip:!0},member:{name:"人员选择",icon:"user-2-line",showDefaultValue:!1,shareFormNotApplicableTip:!0},uuid:{name:"唯一标识码",icon:"repeat-one-line",showDefaultValue:!1},sequence:{name:"流水号",icon:"barcode-box-line",showDefaultValue:!1},address:{name:"地址",icon:"map-pin-line",showDefaultValue:!1},relatedForm:{name:"关联表单",icon:"links-line",showDefaultValue:!1,shareFormNotApplicableTip:!0},iframe:{name:"嵌入网页",icon:"window-fill",showDefaultValue:!1,notFormItem:!0},image:{name:"嵌入图片",icon:"image-line",showDefaultValue:!1,notFormItem:!0}},Dr={components:{GenerateElementItem:Cr,GenerateDisplayItem:kr},props:["widget","models","rules","remote","display","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModel:this.models[this.widget.model],dataModels:this.models,componentConfig:Mr}},methods:{fillingColumns:function(t){this.$emit("fillingColumns",t)}},watch:{dataModel:{deep:!0,handler:function(t){if(Tr.a.$emit("on-change-"+this.containerKey,t,this.widget.model,this.containerKey),this.widget.events&&this.widget.events.onChange){var e=this.widget.events.onChange;this.eventFunction[e]&&this.eventFunction[e]({value:t,field:this.widget.model})}}},models:{deep:!0,handler:function(t){this.dataModels=t,this.dataModel=t[this.widget.model]}}}},Ar=Object(v.a)(Dr,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.widget.key&&t.display[t.widget.model]?n("div",{staticClass:"iss-form-renderer-form-item",attrs:{"data-id":t.widget.model}},[t.componentConfig[t.widget.type]&&t.componentConfig[t.widget.type].notFormItem&&"table"!==t.widget.type?n("generate-display-item",{key:t.widget.key,attrs:{edit:t.edit,"event-function":t.eventFunction,"is-table":!1,platform:t.platform,"print-read":t.printRead,widget:t.widget}}):n("generate-element-item",{key:t.widget.key,ref:"generateFormItem",attrs:{"data-source-value":t.dataSourceValue,edit:t.edit,"event-function":t.eventFunction,"is-table":!1,models:t.dataModels,platform:t.platform,preview:t.preview,"print-read":t.printRead||t.widget.options.readonly,remote:t.remote,"remote-option-source":t.remoteOptionSource,rules:t.rules,widget:t.widget},on:{fillingColumns:t.fillingColumns},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})],1):t._e()}),[],!1,null,null,null);e.a=Ar.exports},"131a":function(t,e,n){"use strict";n("23e7")({target:"Object",stat:!0},{setPrototypeOf:n("d2bb")})},"13d2":function(t,e,n){"use strict";var r=n("e330"),o=n("d039"),i=n("1626"),a=n("1a2d"),u=n("83ab"),c=n("5e77").CONFIGURABLE,s=n("8925"),l=n("69f3"),f=l.enforce,d=l.get,m=String,p=Object.defineProperty,h=r("".slice),g=r("".replace),v=r([].join),b=u&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),_=t.exports=function(t,e,n){"Symbol("===h(m(e),0,7)&&(e="["+g(m(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(u?p(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?u&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=v(y,"string"==typeof e?e:"")),t};Function.prototype.toString=_((function(){return i(this)&&d(this).source||s(this)}),"toString")},"14c3":function(t,e,n){"use strict";var r=n("c65b"),o=n("825a"),i=n("1626"),a=n("c6b6"),u=n("9263"),c=TypeError;t.exports=function(t,e){var n=t.exec;if(i(n)){var s=r(n,t,e);return null!==s&&o(s),s}if("RegExp"===a(t))return r(u,t,e);throw new c("RegExp#exec called on incompatible receiver")}},"14d9":function(t,e,n){"use strict";var r=n("23e7"),o=n("7b0b"),i=n("07fa"),a=n("3a34"),u=n("3511");r({target:"Array",proto:!0,arity:1,forced:n("d039")((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=o(this),n=i(e),r=arguments.length;u(n+r);for(var c=0;c<r;c++)e[n]=arguments[c],n++;return a(e,n),n}})},"14e5":function(t,e,n){"use strict";var r=n("23e7"),o=n("c65b"),i=n("59ed"),a=n("f069"),u=n("e667"),c=n("2266");r({target:"Promise",stat:!0,forced:n("5eed")},{all:function(t){var e=this,n=a.f(e),r=n.resolve,s=n.reject,l=u((function(){var n=i(e.resolve),a=[],u=0,l=1;c(t,(function(t){var i=u++,c=!1;l++,o(n,e,t).then((function(t){c||(c=!0,a[i]=t,--l||r(a))}),s)})),--l||r(a)}));return l.error&&s(l.value),n.promise}})},"157a":function(t,e,n){"use strict";var r=n("cfe9"),o=n("83ab"),i=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!o)return r[t];var e=i(r,t);return e&&e.value}},"159b":function(t,e,n){"use strict";var r=n("cfe9"),o=n("fdbc"),i=n("785a"),a=n("17c2"),u=n("9112"),c=function(t){if(t&&t.forEach!==a)try{u(t,"forEach",a)}catch(e){t.forEach=a}};for(var s in o)o[s]&&c(r[s]&&r[s].prototype);c(i)},1626:function(t,e,n){"use strict";var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},1787:function(t,e,n){"use strict";var r=n("861d");t.exports=function(t){return r(t)||null===t}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,o=n("a640")("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"18c3":function(t,e,n){},"19aa":function(t,e,n){"use strict";var r=n("3a9b"),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new o("Incorrect invocation")}},"1a2d":function(t,e,n){"use strict";var r=n("e330"),o=n("7b0b"),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},"1b11":function(t,e,n){"use strict";n("6821")},"1ba5":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n("bdfe"),u=(r=a)&&r.__esModule?r:{default:r};var c=function(t){return(10-t.substr(0,7).split("").map((function(t){return+t})).reduce((function(t,e,n){return n%2?t+e:t+3*e}),0)%10)%10},s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{7}$/)&&(t+=c(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===c(this.data)}},{key:"leftText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var t=this.data.substr(0,4);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,"LLLL")}},{key:"rightText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var t=this.data.substr(4,4);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRR")}}]),e}(u.default);e.default=s},"1be4":function(t,e,n){"use strict";var r=n("d066");t.exports=r("document","documentElement")},"1c59":function(t,e,n){"use strict";n("6d61")("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n("6566"))},"1c7e":function(t,e,n){"use strict";var r=n("b622")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},"1d80":function(t,e,n){"use strict";var r=n("7234"),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},"1da1":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("d3b7"),n("e6cf");function r(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}},"1dde":function(t,e,n){"use strict";var r=n("d039"),o=n("b622"),i=n("1212"),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1ddec":function(t,e,n){},"1e5a":function(t,e,n){"use strict";var r=n("23e7"),o=n("9961");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("symmetricDifference")},{symmetricDifference:o})},"1e70":function(t,e,n){"use strict";var r=n("23e7"),o=n("a5f7");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("difference")},{difference:o})},"1f68":function(t,e,n){"use strict";var r=n("83ab"),o=n("edd0"),i=n("861d"),a=n("1787"),u=n("7b0b"),c=n("1d80"),s=Object.getPrototypeOf,l=Object.setPrototypeOf,f=Object.prototype;if(r&&s&&l&&!("__proto__"in f))try{o(f,"__proto__",{configurable:!0,get:function(){return s(u(this))},set:function(t){var e=c(this);a(t)&&i(e)&&l(e,t)}})}catch(t){}},2266:function(t,e,n){"use strict";var r=n("0366"),o=n("c65b"),i=n("825a"),a=n("0d51"),u=n("e95a"),c=n("07fa"),s=n("3a9b"),l=n("9a1f"),f=n("35a1"),d=n("2a62"),m=TypeError,p=function(t,e){this.stopped=t,this.result=e},h=p.prototype;t.exports=function(t,e,n){var g,v,b,y,_,w,x,O=n&&n.that,S=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),T=r(e,O),M=function(t){return g&&d(g,"normal",t),new p(!0,t)},D=function(t){return S?(i(t),k?T(t[0],t[1],M):T(t[0],t[1])):k?T(t,M):T(t)};if(C)g=t.iterator;else if(E)g=t;else{if(!(v=f(t)))throw new m(a(t)+" is not iterable");if(u(v)){for(b=0,y=c(t);y>b;b++)if((_=D(t[b]))&&s(h,_))return _;return new p(!1)}g=l(t,v)}for(w=C?t.next:g.next;!(x=o(w,g)).done;){try{_=D(x.value)}catch(t){d(g,"throw",t)}if("object"==typeof _&&_&&s(h,_))return _}return new p(!1)}},2389:function(t){t.exports=JSON.parse('{"86":{"110000":"北京市","120000":"天津市","130000":"河北省","140000":"山西省","150000":"内蒙古自治区","210000":"辽宁省","220000":"吉林省","230000":"黑龙江省","310000":"上海市","320000":"江苏省","330000":"浙江省","340000":"安徽省","350000":"福建省","360000":"江西省","370000":"山东省","410000":"河南省","420000":"湖北省","430000":"湖南省","440000":"广东省","450000":"广西壮族自治区","460000":"海南省","500000":"重庆市","510000":"四川省","520000":"贵州省","530000":"云南省","540000":"西藏自治区","610000":"陕西省","620000":"甘肃省","630000":"青海省","640000":"宁夏回族自治区","650000":"新疆维吾尔自治区","710000":"台湾省","810000":"香港特别行政区","820000":"澳门特别行政区"},"110000":{"110100":"市辖区"},"110100":{"110101":"东城区","110102":"西城区","110105":"朝阳区","110106":"丰台区","110107":"石景山区","110108":"海淀区","110109":"门头沟区","110111":"房山区","110112":"通州区","110113":"顺义区","110114":"昌平区","110115":"大兴区","110116":"怀柔区","110117":"平谷区","110118":"密云区","110119":"延庆区"},"120000":{"120100":"市辖区"},"120100":{"120101":"和平区","120102":"河东区","120103":"河西区","120104":"南开区","120105":"河北区","120106":"红桥区","120110":"东丽区","120111":"西青区","120112":"津南区","120113":"北辰区","120114":"武清区","120115":"宝坻区","120116":"滨海新区","120117":"宁河区","120118":"静海区","120119":"蓟州区"},"130000":{"130100":"石家庄市","130200":"唐山市","130300":"秦皇岛市","130400":"邯郸市","130500":"邢台市","130600":"保定市","130700":"张家口市","130800":"承德市","130900":"沧州市","131000":"廊坊市","131100":"衡水市"},"130100":{"130101":"市辖区","130102":"长安区","130104":"桥西区","130105":"新华区","130107":"井陉矿区","130108":"裕华区","130109":"藁城区","130110":"鹿泉区","130111":"栾城区","130121":"井陉县","130123":"正定县","130125":"行唐县","130126":"灵寿县","130127":"高邑县","130128":"深泽县","130129":"赞皇县","130130":"无极县","130131":"平山县","130132":"元氏县","130133":"赵县","130171":"石家庄高新技术产业开发区","130172":"石家庄循环化工园区","130181":"辛集市","130183":"晋州市","130184":"新乐市"},"130200":{"130201":"市辖区","130202":"路南区","130203":"路北区","130204":"古冶区","130205":"开平区","130207":"丰南区","130208":"丰润区","130209":"曹妃甸区","130224":"滦南县","130225":"乐亭县","130227":"迁西县","130229":"玉田县","130271":"河北唐山芦台经济开发区","130272":"唐山市汉沽管理区","130273":"唐山高新技术产业开发区","130274":"河北唐山海港经济开发区","130281":"遵化市","130283":"迁安市","130284":"滦州市"},"130300":{"130301":"市辖区","130302":"海港区","130303":"山海关区","130304":"北戴河区","130306":"抚宁区","130321":"青龙满族自治县","130322":"昌黎县","130324":"卢龙县","130371":"秦皇岛市经济技术开发区","130372":"北戴河新区"},"130400":{"130401":"市辖区","130402":"邯山区","130403":"丛台区","130404":"复兴区","130406":"峰峰矿区","130407":"肥乡区","130408":"永年区","130423":"临漳县","130424":"成安县","130425":"大名县","130426":"涉县","130427":"磁县","130430":"邱县","130431":"鸡泽县","130432":"广平县","130433":"馆陶县","130434":"魏县","130435":"曲周县","130471":"邯郸经济技术开发区","130473":"邯郸冀南新区","130481":"武安市"},"130500":{"130501":"市辖区","130502":"桥东区","130503":"桥西区","130521":"邢台县","130522":"临城县","130523":"内丘县","130524":"柏乡县","130525":"隆尧县","130526":"任县","130527":"南和县","130528":"宁晋县","130529":"巨鹿县","130530":"新河县","130531":"广宗县","130532":"平乡县","130533":"威县","130534":"清河县","130535":"临西县","130571":"河北邢台经济开发区","130581":"南宫市","130582":"沙河市"},"130600":{"130601":"市辖区","130602":"竞秀区","130606":"莲池区","130607":"满城区","130608":"清苑区","130609":"徐水区","130623":"涞水县","130624":"阜平县","130626":"定兴县","130627":"唐县","130628":"高阳县","130629":"容城县","130630":"涞源县","130631":"望都县","130632":"安新县","130633":"易县","130634":"曲阳县","130635":"蠡县","130636":"顺平县","130637":"博野县","130638":"雄县","130671":"保定高新技术产业开发区","130672":"保定白沟新城","130681":"涿州市","130682":"定州市","130683":"安国市","130684":"高碑店市"},"130700":{"130701":"市辖区","130702":"桥东区","130703":"桥西区","130705":"宣化区","130706":"下花园区","130708":"万全区","130709":"崇礼区","130722":"张北县","130723":"康保县","130724":"沽源县","130725":"尚义县","130726":"蔚县","130727":"阳原县","130728":"怀安县","130730":"怀来县","130731":"涿鹿县","130732":"赤城县","130771":"张家口经济开发区","130772":"张家口市察北管理区","130773":"张家口市塞北管理区"},"130800":{"130801":"市辖区","130802":"双桥区","130803":"双滦区","130804":"鹰手营子矿区","130821":"承德县","130822":"兴隆县","130824":"滦平县","130825":"隆化县","130826":"丰宁满族自治县","130827":"宽城满族自治县","130828":"围场满族蒙古族自治县","130871":"承德高新技术产业开发区","130881":"平泉市"},"130900":{"130901":"市辖区","130902":"新华区","130903":"运河区","130921":"沧县","130922":"青县","130923":"东光县","130924":"海兴县","130925":"盐山县","130926":"肃宁县","130927":"南皮县","130928":"吴桥县","130929":"献县","130930":"孟村回族自治县","130971":"河北沧州经济开发区","130972":"沧州高新技术产业开发区","130973":"沧州渤海新区","130981":"泊头市","130982":"任丘市","130983":"黄骅市","130984":"河间市"},"131000":{"131001":"市辖区","131002":"安次区","131003":"广阳区","131022":"固安县","131023":"永清县","131024":"香河县","131025":"大城县","131026":"文安县","131028":"大厂回族自治县","131071":"廊坊经济技术开发区","131081":"霸州市","131082":"三河市"},"131100":{"131101":"市辖区","131102":"桃城区","131103":"冀州区","131121":"枣强县","131122":"武邑县","131123":"武强县","131124":"饶阳县","131125":"安平县","131126":"故城县","131127":"景县","131128":"阜城县","131171":"河北衡水高新技术产业开发区","131172":"衡水滨湖新区","131182":"深州市"},"140000":{"140100":"太原市","140200":"大同市","140300":"阳泉市","140400":"长治市","140500":"晋城市","140600":"朔州市","140700":"晋中市","140800":"运城市","140900":"忻州市","141000":"临汾市","141100":"吕梁市"},"140100":{"140101":"市辖区","140105":"小店区","140106":"迎泽区","140107":"杏花岭区","140108":"尖草坪区","140109":"万柏林区","140110":"晋源区","140121":"清徐县","140122":"阳曲县","140123":"娄烦县","140171":"山西转型综合改革示范区","140181":"古交市"},"140200":{"140201":"市辖区","140212":"新荣区","140213":"平城区","140214":"云冈区","140215":"云州区","140221":"阳高县","140222":"天镇县","140223":"广灵县","140224":"灵丘县","140225":"浑源县","140226":"左云县","140271":"山西大同经济开发区"},"140300":{"140301":"市辖区","140302":"城区","140303":"矿区","140311":"郊区","140321":"平定县","140322":"盂县"},"140400":{"140401":"市辖区","140403":"潞州区","140404":"上党区","140405":"屯留区","140406":"潞城区","140423":"襄垣县","140425":"平顺县","140426":"黎城县","140427":"壶关县","140428":"长子县","140429":"武乡县","140430":"沁县","140431":"沁源县","140471":"山西长治高新技术产业园区"},"140500":{"140501":"市辖区","140502":"城区","140521":"沁水县","140522":"阳城县","140524":"陵川县","140525":"泽州县","140581":"高平市"},"140600":{"140601":"市辖区","140602":"朔城区","140603":"平鲁区","140621":"山阴县","140622":"应县","140623":"右玉县","140671":"山西朔州经济开发区","140681":"怀仁市"},"140700":{"140701":"市辖区","140702":"榆次区","140721":"榆社县","140722":"左权县","140723":"和顺县","140724":"昔阳县","140725":"寿阳县","140726":"太谷县","140727":"祁县","140728":"平遥县","140729":"灵石县","140781":"介休市"},"140800":{"140801":"市辖区","140802":"盐湖区","140821":"临猗县","140822":"万荣县","140823":"闻喜县","140824":"稷山县","140825":"新绛县","140826":"绛县","140827":"垣曲县","140828":"夏县","140829":"平陆县","140830":"芮城县","140881":"永济市","140882":"河津市"},"140900":{"140901":"市辖区","140902":"忻府区","140921":"定襄县","140922":"五台县","140923":"代县","140924":"繁峙县","140925":"宁武县","140926":"静乐县","140927":"神池县","140928":"五寨县","140929":"岢岚县","140930":"河曲县","140931":"保德县","140932":"偏关县","140971":"五台山风景名胜区","140981":"原平市"},"141000":{"141001":"市辖区","141002":"尧都区","141021":"曲沃县","141022":"翼城县","141023":"襄汾县","141024":"洪洞县","141025":"古县","141026":"安泽县","141027":"浮山县","141028":"吉县","141029":"乡宁县","141030":"大宁县","141031":"隰县","141032":"永和县","141033":"蒲县","141034":"汾西县","141081":"侯马市","141082":"霍州市"},"141100":{"141101":"市辖区","141102":"离石区","141121":"文水县","141122":"交城县","141123":"兴县","141124":"临县","141125":"柳林县","141126":"石楼县","141127":"岚县","141128":"方山县","141129":"中阳县","141130":"交口县","141181":"孝义市","141182":"汾阳市"},"150000":{"150100":"呼和浩特市","150200":"包头市","150300":"乌海市","150400":"赤峰市","150500":"通辽市","150600":"鄂尔多斯市","150700":"呼伦贝尔市","150800":"巴彦淖尔市","150900":"乌兰察布市","152200":"兴安盟","152500":"锡林郭勒盟","152900":"阿拉善盟"},"150100":{"150101":"市辖区","150102":"新城区","150103":"回民区","150104":"玉泉区","150105":"赛罕区","150121":"土默特左旗","150122":"托克托县","150123":"和林格尔县","150124":"清水河县","150125":"武川县","150171":"呼和浩特金海工业园区","150172":"呼和浩特经济技术开发区"},"150200":{"150201":"市辖区","150202":"东河区","150203":"昆都仑区","150204":"青山区","150205":"石拐区","150206":"白云鄂博矿区","150207":"九原区","150221":"土默特右旗","150222":"固阳县","150223":"达尔罕茂明安联合旗","150271":"包头稀土高新技术产业开发区"},"150300":{"150301":"市辖区","150302":"海勃湾区","150303":"海南区","150304":"乌达区"},"150400":{"150401":"市辖区","150402":"红山区","150403":"元宝山区","150404":"松山区","150421":"阿鲁科尔沁旗","150422":"巴林左旗","150423":"巴林右旗","150424":"林西县","150425":"克什克腾旗","150426":"翁牛特旗","150428":"喀喇沁旗","150429":"宁城县","150430":"敖汉旗"},"150500":{"150501":"市辖区","150502":"科尔沁区","150521":"科尔沁左翼中旗","150522":"科尔沁左翼后旗","150523":"开鲁县","150524":"库伦旗","150525":"奈曼旗","150526":"扎鲁特旗","150571":"通辽经济技术开发区","150581":"霍林郭勒市"},"150600":{"150601":"市辖区","150602":"东胜区","150603":"康巴什区","150621":"达拉特旗","150622":"准格尔旗","150623":"鄂托克前旗","150624":"鄂托克旗","150625":"杭锦旗","150626":"乌审旗","150627":"伊金霍洛旗"},"150700":{"150701":"市辖区","150702":"海拉尔区","150703":"扎赉诺尔区","150721":"阿荣旗","150722":"莫力达瓦达斡尔族自治旗","150723":"鄂伦春自治旗","150724":"鄂温克族自治旗","150725":"陈巴尔虎旗","150726":"新巴尔虎左旗","150727":"新巴尔虎右旗","150781":"满洲里市","150782":"牙克石市","150783":"扎兰屯市","150784":"额尔古纳市","150785":"根河市"},"150800":{"150801":"市辖区","150802":"临河区","150821":"五原县","150822":"磴口县","150823":"乌拉特前旗","150824":"乌拉特中旗","150825":"乌拉特后旗","150826":"杭锦后旗"},"150900":{"150901":"市辖区","150902":"集宁区","150921":"卓资县","150922":"化德县","150923":"商都县","150924":"兴和县","150925":"凉城县","150926":"察哈尔右翼前旗","150927":"察哈尔右翼中旗","150928":"察哈尔右翼后旗","150929":"四子王旗","150981":"丰镇市"},"152200":{"152201":"乌兰浩特市","152202":"阿尔山市","152221":"科尔沁右翼前旗","152222":"科尔沁右翼中旗","152223":"扎赉特旗","152224":"突泉县"},"152500":{"152501":"二连浩特市","152502":"锡林浩特市","152522":"阿巴嘎旗","152523":"苏尼特左旗","152524":"苏尼特右旗","152525":"东乌珠穆沁旗","152526":"西乌珠穆沁旗","152527":"太仆寺旗","152528":"镶黄旗","152529":"正镶白旗","152530":"正蓝旗","152531":"多伦县","152571":"乌拉盖管委会"},"152900":{"152921":"阿拉善左旗","152922":"阿拉善右旗","152923":"额济纳旗","152971":"内蒙古阿拉善经济开发区"},"210000":{"210100":"沈阳市","210200":"大连市","210300":"鞍山市","210400":"抚顺市","210500":"本溪市","210600":"丹东市","210700":"锦州市","210800":"营口市","210900":"阜新市","211000":"辽阳市","211100":"盘锦市","211200":"铁岭市","211300":"朝阳市","211400":"葫芦岛市"},"210100":{"210101":"市辖区","210102":"和平区","210103":"沈河区","210104":"大东区","210105":"皇姑区","210106":"铁西区","210111":"苏家屯区","210112":"浑南区","210113":"沈北新区","210114":"于洪区","210115":"辽中区","210123":"康平县","210124":"法库县","210181":"新民市"},"210200":{"210201":"市辖区","210202":"中山区","210203":"西岗区","210204":"沙河口区","210211":"甘井子区","210212":"旅顺口区","210213":"金州区","210214":"普兰店区","210224":"长海县","210281":"瓦房店市","210283":"庄河市"},"210300":{"210301":"市辖区","210302":"铁东区","210303":"铁西区","210304":"立山区","210311":"千山区","210321":"台安县","210323":"岫岩满族自治县","210381":"海城市"},"210400":{"210401":"市辖区","210402":"新抚区","210403":"东洲区","210404":"望花区","210411":"顺城区","210421":"抚顺县","210422":"新宾满族自治县","210423":"清原满族自治县"},"210500":{"210501":"市辖区","210502":"平山区","210503":"溪湖区","210504":"明山区","210505":"南芬区","210521":"本溪满族自治县","210522":"桓仁满族自治县"},"210600":{"210601":"市辖区","210602":"元宝区","210603":"振兴区","210604":"振安区","210624":"宽甸满族自治县","210681":"东港市","210682":"凤城市"},"210700":{"210701":"市辖区","210702":"古塔区","210703":"凌河区","210711":"太和区","210726":"黑山县","210727":"义县","210781":"凌海市","210782":"北镇市"},"210800":{"210801":"市辖区","210802":"站前区","210803":"西市区","210804":"鲅鱼圈区","210811":"老边区","210881":"盖州市","210882":"大石桥市"},"210900":{"210901":"市辖区","210902":"海州区","210903":"新邱区","210904":"太平区","210905":"清河门区","210911":"细河区","210921":"阜新蒙古族自治县","210922":"彰武县"},"211000":{"211001":"市辖区","211002":"白塔区","211003":"文圣区","211004":"宏伟区","211005":"弓长岭区","211011":"太子河区","211021":"辽阳县","211081":"灯塔市"},"211100":{"211101":"市辖区","211102":"双台子区","211103":"兴隆台区","211104":"大洼区","211122":"盘山县"},"211200":{"211201":"市辖区","211202":"银州区","211204":"清河区","211221":"铁岭县","211223":"西丰县","211224":"昌图县","211281":"调兵山市","211282":"开原市"},"211300":{"211301":"市辖区","211302":"双塔区","211303":"龙城区","211321":"朝阳县","211322":"建平县","211324":"喀喇沁左翼蒙古族自治县","211381":"北票市","211382":"凌源市"},"211400":{"211401":"市辖区","211402":"连山区","211403":"龙港区","211404":"南票区","211421":"绥中县","211422":"建昌县","211481":"兴城市"},"220000":{"220100":"长春市","220200":"吉林市","220300":"四平市","220400":"辽源市","220500":"通化市","220600":"白山市","220700":"松原市","220800":"白城市","222400":"延边朝鲜族自治州"},"220100":{"220101":"市辖区","220102":"南关区","220103":"宽城区","220104":"朝阳区","220105":"二道区","220106":"绿园区","220112":"双阳区","220113":"九台区","220122":"农安县","220171":"长春经济技术开发区","220172":"长春净月高新技术产业开发区","220173":"长春高新技术产业开发区","220174":"长春汽车经济技术开发区","220182":"榆树市","220183":"德惠市"},"220200":{"220201":"市辖区","220202":"昌邑区","220203":"龙潭区","220204":"船营区","220211":"丰满区","220221":"永吉县","220271":"吉林经济开发区","220272":"吉林高新技术产业开发区","220273":"吉林中国新加坡食品区","220281":"蛟河市","220282":"桦甸市","220283":"舒兰市","220284":"磐石市"},"220300":{"220301":"市辖区","220302":"铁西区","220303":"铁东区","220322":"梨树县","220323":"伊通满族自治县","220381":"公主岭市","220382":"双辽市"},"220400":{"220401":"市辖区","220402":"龙山区","220403":"西安区","220421":"东丰县","220422":"东辽县"},"220500":{"220501":"市辖区","220502":"东昌区","220503":"二道江区","220521":"通化县","220523":"辉南县","220524":"柳河县","220581":"梅河口市","220582":"集安市"},"220600":{"220601":"市辖区","220602":"浑江区","220605":"江源区","220621":"抚松县","220622":"靖宇县","220623":"长白朝鲜族自治县","220681":"临江市"},"220700":{"220701":"市辖区","220702":"宁江区","220721":"前郭尔罗斯蒙古族自治县","220722":"长岭县","220723":"乾安县","220771":"吉林松原经济开发区","220781":"扶余市"},"220800":{"220801":"市辖区","220802":"洮北区","220821":"镇赉县","220822":"通榆县","220871":"吉林白城经济开发区","220881":"洮南市","220882":"大安市"},"222400":{"222401":"延吉市","222402":"图们市","222403":"敦化市","222404":"珲春市","222405":"龙井市","222406":"和龙市","222424":"汪清县","222426":"安图县"},"230000":{"230100":"哈尔滨市","230200":"齐齐哈尔市","230300":"鸡西市","230400":"鹤岗市","230500":"双鸭山市","230600":"大庆市","230700":"伊春市","230800":"佳木斯市","230900":"七台河市","231000":"牡丹江市","231100":"黑河市","231200":"绥化市","232700":"大兴安岭地区"},"230100":{"230101":"市辖区","230102":"道里区","230103":"南岗区","230104":"道外区","230108":"平房区","230109":"松北区","230110":"香坊区","230111":"呼兰区","230112":"阿城区","230113":"双城区","230123":"依兰县","230124":"方正县","230125":"宾县","230126":"巴彦县","230127":"木兰县","230128":"通河县","230129":"延寿县","230183":"尚志市","230184":"五常市"},"230200":{"230201":"市辖区","230202":"龙沙区","230203":"建华区","230204":"铁锋区","230205":"昂昂溪区","230206":"富拉尔基区","230207":"碾子山区","230208":"梅里斯达斡尔族区","230221":"龙江县","230223":"依安县","230224":"泰来县","230225":"甘南县","230227":"富裕县","230229":"克山县","230230":"克东县","230231":"拜泉县","230281":"讷河市"},"230300":{"230301":"市辖区","230302":"鸡冠区","230303":"恒山区","230304":"滴道区","230305":"梨树区","230306":"城子河区","230307":"麻山区","230321":"鸡东县","230381":"虎林市","230382":"密山市"},"230400":{"230401":"市辖区","230402":"向阳区","230403":"工农区","230404":"南山区","230405":"兴安区","230406":"东山区","230407":"兴山区","230421":"萝北县","230422":"绥滨县"},"230500":{"230501":"市辖区","230502":"尖山区","230503":"岭东区","230505":"四方台区","230506":"宝山区","230521":"集贤县","230522":"友谊县","230523":"宝清县","230524":"饶河县"},"230600":{"230601":"市辖区","230602":"萨尔图区","230603":"龙凤区","230604":"让胡路区","230605":"红岗区","230606":"大同区","230621":"肇州县","230622":"肇源县","230623":"林甸县","230624":"杜尔伯特蒙古族自治县","230671":"大庆高新技术产业开发区"},"230700":{"230701":"市辖区","230717":"伊美区","230718":"乌翠区","230719":"友好区","230722":"嘉荫县","230723":"汤旺县","230724":"丰林县","230725":"大箐山县","230726":"南岔县","230751":"金林区","230781":"铁力市"},"230800":{"230801":"市辖区","230803":"向阳区","230804":"前进区","230805":"东风区","230811":"郊区","230822":"桦南县","230826":"桦川县","230828":"汤原县","230881":"同江市","230882":"富锦市","230883":"抚远市"},"230900":{"230901":"市辖区","230902":"新兴区","230903":"桃山区","230904":"茄子河区","230921":"勃利县"},"231000":{"231001":"市辖区","231002":"东安区","231003":"阳明区","231004":"爱民区","231005":"西安区","231025":"林口县","231071":"牡丹江经济技术开发区","231081":"绥芬河市","231083":"海林市","231084":"宁安市","231085":"穆棱市","231086":"东宁市"},"231100":{"231101":"市辖区","231102":"爱辉区","231123":"逊克县","231124":"孙吴县","231181":"北安市","231182":"五大连池市","231183":"嫩江市"},"231200":{"231201":"市辖区","231202":"北林区","231221":"望奎县","231222":"兰西县","231223":"青冈县","231224":"庆安县","231225":"明水县","231226":"绥棱县","231281":"安达市","231282":"肇东市","231283":"海伦市"},"232700":{"232701":"漠河市","232721":"呼玛县","232722":"塔河县","232761":"加格达奇区","232762":"松岭区","232763":"新林区","232764":"呼中区"},"310000":{"310100":"市辖区"},"310100":{"310101":"黄浦区","310104":"徐汇区","310105":"长宁区","310106":"静安区","310107":"普陀区","310109":"虹口区","310110":"杨浦区","310112":"闵行区","310113":"宝山区","310114":"嘉定区","310115":"浦东新区","310116":"金山区","310117":"松江区","310118":"青浦区","310120":"奉贤区","310151":"崇明区"},"320000":{"320100":"南京市","320200":"无锡市","320300":"徐州市","320400":"常州市","320500":"苏州市","320600":"南通市","320700":"连云港市","320800":"淮安市","320900":"盐城市","321000":"扬州市","321100":"镇江市","321200":"泰州市","321300":"宿迁市"},"320100":{"320101":"市辖区","320102":"玄武区","320104":"秦淮区","320105":"建邺区","320106":"鼓楼区","320111":"浦口区","320113":"栖霞区","320114":"雨花台区","320115":"江宁区","320116":"六合区","320117":"溧水区","320118":"高淳区"},"320200":{"320201":"市辖区","320205":"锡山区","320206":"惠山区","320211":"滨湖区","320213":"梁溪区","320214":"新吴区","320281":"江阴市","320282":"宜兴市"},"320300":{"320301":"市辖区","320302":"鼓楼区","320303":"云龙区","320305":"贾汪区","320311":"泉山区","320312":"铜山区","320321":"丰县","320322":"沛县","320324":"睢宁县","320371":"徐州经济技术开发区","320381":"新沂市","320382":"邳州市"},"320400":{"320401":"市辖区","320402":"天宁区","320404":"钟楼区","320411":"新北区","320412":"武进区","320413":"金坛区","320481":"溧阳市"},"320500":{"320501":"市辖区","320505":"虎丘区","320506":"吴中区","320507":"相城区","320508":"姑苏区","320509":"吴江区","320571":"苏州工业园区","320581":"常熟市","320582":"张家港市","320583":"昆山市","320585":"太仓市"},"320600":{"320601":"市辖区","320602":"崇川区","320611":"港闸区","320612":"通州区","320623":"如东县","320671":"南通经济技术开发区","320681":"启东市","320682":"如皋市","320684":"海门市","320685":"海安市"},"320700":{"320701":"市辖区","320703":"连云区","320706":"海州区","320707":"赣榆区","320722":"东海县","320723":"灌云县","320724":"灌南县","320771":"连云港经济技术开发区","320772":"连云港高新技术产业开发区"},"320800":{"320801":"市辖区","320803":"淮安区","320804":"淮阴区","320812":"清江浦区","320813":"洪泽区","320826":"涟水县","320830":"盱眙县","320831":"金湖县","320871":"淮安经济技术开发区"},"320900":{"320901":"市辖区","320902":"亭湖区","320903":"盐都区","320904":"大丰区","320921":"响水县","320922":"滨海县","320923":"阜宁县","320924":"射阳县","320925":"建湖县","320971":"盐城经济技术开发区","320981":"东台市"},"321000":{"321001":"市辖区","321002":"广陵区","321003":"邗江区","321012":"江都区","321023":"宝应县","321071":"扬州经济技术开发区","321081":"仪征市","321084":"高邮市"},"321100":{"321101":"市辖区","321102":"京口区","321111":"润州区","321112":"丹徒区","321171":"镇江新区","321181":"丹阳市","321182":"扬中市","321183":"句容市"},"321200":{"321201":"市辖区","321202":"海陵区","321203":"高港区","321204":"姜堰区","321271":"泰州医药高新技术产业开发区","321281":"兴化市","321282":"靖江市","321283":"泰兴市"},"321300":{"321301":"市辖区","321302":"宿城区","321311":"宿豫区","321322":"沭阳县","321323":"泗阳县","321324":"泗洪县","321371":"宿迁经济技术开发区"},"330000":{"330100":"杭州市","330200":"宁波市","330300":"温州市","330400":"嘉兴市","330500":"湖州市","330600":"绍兴市","330700":"金华市","330800":"衢州市","330900":"舟山市","331000":"台州市","331100":"丽水市"},"330100":{"330101":"市辖区","330102":"上城区","330103":"下城区","330104":"江干区","330105":"拱墅区","330106":"西湖区","330108":"滨江区","330109":"萧山区","330110":"余杭区","330111":"富阳区","330112":"临安区","330122":"桐庐县","330127":"淳安县","330182":"建德市"},"330200":{"330201":"市辖区","330203":"海曙区","330205":"江北区","330206":"北仑区","330211":"镇海区","330212":"鄞州区","330213":"奉化区","330225":"象山县","330226":"宁海县","330281":"余姚市","330282":"慈溪市"},"330300":{"330301":"市辖区","330302":"鹿城区","330303":"龙湾区","330304":"瓯海区","330305":"洞头区","330324":"永嘉县","330326":"平阳县","330327":"苍南县","330328":"文成县","330329":"泰顺县","330371":"温州经济技术开发区","330381":"瑞安市","330382":"乐清市","330383":"龙港市"},"330400":{"330401":"市辖区","330402":"南湖区","330411":"秀洲区","330421":"嘉善县","330424":"海盐县","330481":"海宁市","330482":"平湖市","330483":"桐乡市"},"330500":{"330501":"市辖区","330502":"吴兴区","330503":"南浔区","330521":"德清县","330522":"长兴县","330523":"安吉县"},"330600":{"330601":"市辖区","330602":"越城区","330603":"柯桥区","330604":"上虞区","330624":"新昌县","330681":"诸暨市","330683":"嵊州市"},"330700":{"330701":"市辖区","330702":"婺城区","330703":"金东区","330723":"武义县","330726":"浦江县","330727":"磐安县","330781":"兰溪市","330782":"义乌市","330783":"东阳市","330784":"永康市"},"330800":{"330801":"市辖区","330802":"柯城区","330803":"衢江区","330822":"常山县","330824":"开化县","330825":"龙游县","330881":"江山市"},"330900":{"330901":"市辖区","330902":"定海区","330903":"普陀区","330921":"岱山县","330922":"嵊泗县"},"331000":{"331001":"市辖区","331002":"椒江区","331003":"黄岩区","331004":"路桥区","331022":"三门县","331023":"天台县","331024":"仙居县","331081":"温岭市","331082":"临海市","331083":"玉环市"},"331100":{"331101":"市辖区","331102":"莲都区","331121":"青田县","331122":"缙云县","331123":"遂昌县","331124":"松阳县","331125":"云和县","331126":"庆元县","331127":"景宁畲族自治县","331181":"龙泉市"},"340000":{"340100":"合肥市","340200":"芜湖市","340300":"蚌埠市","340400":"淮南市","340500":"马鞍山市","340600":"淮北市","340700":"铜陵市","340800":"安庆市","341000":"黄山市","341100":"滁州市","341200":"阜阳市","341300":"宿州市","341500":"六安市","341600":"亳州市","341700":"池州市","341800":"宣城市"},"340100":{"340101":"市辖区","340102":"瑶海区","340103":"庐阳区","340104":"蜀山区","340111":"包河区","340121":"长丰县","340122":"肥东县","340123":"肥西县","340124":"庐江县","340171":"合肥高新技术产业开发区","340172":"合肥经济技术开发区","340173":"合肥新站高新技术产业开发区","340181":"巢湖市"},"340200":{"340201":"市辖区","340202":"镜湖区","340203":"弋江区","340207":"鸠江区","340208":"三山区","340221":"芜湖县","340222":"繁昌县","340223":"南陵县","340225":"无为县","340271":"芜湖经济技术开发区","340272":"安徽芜湖长江大桥经济开发区"},"340300":{"340301":"市辖区","340302":"龙子湖区","340303":"蚌山区","340304":"禹会区","340311":"淮上区","340321":"怀远县","340322":"五河县","340323":"固镇县","340371":"蚌埠市高新技术开发区","340372":"蚌埠市经济开发区"},"340400":{"340401":"市辖区","340402":"大通区","340403":"田家庵区","340404":"谢家集区","340405":"八公山区","340406":"潘集区","340421":"凤台县","340422":"寿县"},"340500":{"340501":"市辖区","340503":"花山区","340504":"雨山区","340506":"博望区","340521":"当涂县","340522":"含山县","340523":"和县"},"340600":{"340601":"市辖区","340602":"杜集区","340603":"相山区","340604":"烈山区","340621":"濉溪县"},"340700":{"340701":"市辖区","340705":"铜官区","340706":"义安区","340711":"郊区","340722":"枞阳县"},"340800":{"340801":"市辖区","340802":"迎江区","340803":"大观区","340811":"宜秀区","340822":"怀宁县","340825":"太湖县","340826":"宿松县","340827":"望江县","340828":"岳西县","340871":"安徽安庆经济开发区","340881":"桐城市","340882":"潜山市"},"341000":{"341001":"市辖区","341002":"屯溪区","341003":"黄山区","341004":"徽州区","341021":"歙县","341022":"休宁县","341023":"黟县","341024":"祁门县"},"341100":{"341101":"市辖区","341102":"琅琊区","341103":"南谯区","341122":"来安县","341124":"全椒县","341125":"定远县","341126":"凤阳县","341171":"苏滁现代产业园","341172":"滁州经济技术开发区","341181":"天长市","341182":"明光市"},"341200":{"341201":"市辖区","341202":"颍州区","341203":"颍东区","341204":"颍泉区","341221":"临泉县","341222":"太和县","341225":"阜南县","341226":"颍上县","341271":"阜阳合肥现代产业园区","341272":"阜阳经济技术开发区","341282":"界首市"},"341300":{"341301":"市辖区","341302":"埇桥区","341321":"砀山县","341322":"萧县","341323":"灵璧县","341324":"泗县","341371":"宿州马鞍山现代产业园区","341372":"宿州经济技术开发区"},"341500":{"341501":"市辖区","341502":"金安区","341503":"裕安区","341504":"叶集区","341522":"霍邱县","341523":"舒城县","341524":"金寨县","341525":"霍山县"},"341600":{"341601":"市辖区","341602":"谯城区","341621":"涡阳县","341622":"蒙城县","341623":"利辛县"},"341700":{"341701":"市辖区","341702":"贵池区","341721":"东至县","341722":"石台县","341723":"青阳县"},"341800":{"341801":"市辖区","341802":"宣州区","341821":"郎溪县","341823":"泾县","341824":"绩溪县","341825":"旌德县","341871":"宣城市经济开发区","341881":"宁国市","341882":"广德市"},"350000":{"350100":"福州市","350200":"厦门市","350300":"莆田市","350400":"三明市","350500":"泉州市","350600":"漳州市","350700":"南平市","350800":"龙岩市","350900":"宁德市"},"350100":{"350101":"市辖区","350102":"鼓楼区","350103":"台江区","350104":"仓山区","350105":"马尾区","350111":"晋安区","350112":"长乐区","350121":"闽侯县","350122":"连江县","350123":"罗源县","350124":"闽清县","350125":"永泰县","350128":"平潭县","350181":"福清市"},"350200":{"350201":"市辖区","350203":"思明区","350205":"海沧区","350206":"湖里区","350211":"集美区","350212":"同安区","350213":"翔安区"},"350300":{"350301":"市辖区","350302":"城厢区","350303":"涵江区","350304":"荔城区","350305":"秀屿区","350322":"仙游县"},"350400":{"350401":"市辖区","350402":"梅列区","350403":"三元区","350421":"明溪县","350423":"清流县","350424":"宁化县","350425":"大田县","350426":"尤溪县","350427":"沙县","350428":"将乐县","350429":"泰宁县","350430":"建宁县","350481":"永安市"},"350500":{"350501":"市辖区","350502":"鲤城区","350503":"丰泽区","350504":"洛江区","350505":"泉港区","350521":"惠安县","350524":"安溪县","350525":"永春县","350526":"德化县","350527":"金门县","350581":"石狮市","350582":"晋江市","350583":"南安市"},"350600":{"350601":"市辖区","350602":"芗城区","350603":"龙文区","350622":"云霄县","350623":"漳浦县","350624":"诏安县","350625":"长泰县","350626":"东山县","350627":"南靖县","350628":"平和县","350629":"华安县","350681":"龙海市"},"350700":{"350701":"市辖区","350702":"延平区","350703":"建阳区","350721":"顺昌县","350722":"浦城县","350723":"光泽县","350724":"松溪县","350725":"政和县","350781":"邵武市","350782":"武夷山市","350783":"建瓯市"},"350800":{"350801":"市辖区","350802":"新罗区","350803":"永定区","350821":"长汀县","350823":"上杭县","350824":"武平县","350825":"连城县","350881":"漳平市"},"350900":{"350901":"市辖区","350902":"蕉城区","350921":"霞浦县","350922":"古田县","350923":"屏南县","350924":"寿宁县","350925":"周宁县","350926":"柘荣县","350981":"福安市","350982":"福鼎市"},"360000":{"360100":"南昌市","360200":"景德镇市","360300":"萍乡市","360400":"九江市","360500":"新余市","360600":"鹰潭市","360700":"赣州市","360800":"吉安市","360900":"宜春市","361000":"抚州市","361100":"上饶市"},"360100":{"360101":"市辖区","360102":"东湖区","360103":"西湖区","360104":"青云谱区","360105":"湾里区","360111":"青山湖区","360112":"新建区","360121":"南昌县","360123":"安义县","360124":"进贤县"},"360200":{"360201":"市辖区","360202":"昌江区","360203":"珠山区","360222":"浮梁县","360281":"乐平市"},"360300":{"360301":"市辖区","360302":"安源区","360313":"湘东区","360321":"莲花县","360322":"上栗县","360323":"芦溪县"},"360400":{"360401":"市辖区","360402":"濂溪区","360403":"浔阳区","360404":"柴桑区","360423":"武宁县","360424":"修水县","360425":"永修县","360426":"德安县","360428":"都昌县","360429":"湖口县","360430":"彭泽县","360481":"瑞昌市","360482":"共青城市","360483":"庐山市"},"360500":{"360501":"市辖区","360502":"渝水区","360521":"分宜县"},"360600":{"360601":"市辖区","360602":"月湖区","360603":"余江区","360681":"贵溪市"},"360700":{"360701":"市辖区","360702":"章贡区","360703":"南康区","360704":"赣县区","360722":"信丰县","360723":"大余县","360724":"上犹县","360725":"崇义县","360726":"安远县","360727":"龙南县","360728":"定南县","360729":"全南县","360730":"宁都县","360731":"于都县","360732":"兴国县","360733":"会昌县","360734":"寻乌县","360735":"石城县","360781":"瑞金市"},"360800":{"360801":"市辖区","360802":"吉州区","360803":"青原区","360821":"吉安县","360822":"吉水县","360823":"峡江县","360824":"新干县","360825":"永丰县","360826":"泰和县","360827":"遂川县","360828":"万安县","360829":"安福县","360830":"永新县","360881":"井冈山市"},"360900":{"360901":"市辖区","360902":"袁州区","360921":"奉新县","360922":"万载县","360923":"上高县","360924":"宜丰县","360925":"靖安县","360926":"铜鼓县","360981":"丰城市","360982":"樟树市","360983":"高安市"},"361000":{"361001":"市辖区","361002":"临川区","361003":"东乡区","361021":"南城县","361022":"黎川县","361023":"南丰县","361024":"崇仁县","361025":"乐安县","361026":"宜黄县","361027":"金溪县","361028":"资溪县","361030":"广昌县"},"361100":{"361101":"市辖区","361102":"信州区","361103":"广丰区","361104":"广信区","361123":"玉山县","361124":"铅山县","361125":"横峰县","361126":"弋阳县","361127":"余干县","361128":"鄱阳县","361129":"万年县","361130":"婺源县","361181":"德兴市"},"370000":{"370100":"济南市","370200":"青岛市","370300":"淄博市","370400":"枣庄市","370500":"东营市","370600":"烟台市","370700":"潍坊市","370800":"济宁市","370900":"泰安市","371000":"威海市","371100":"日照市","371300":"临沂市","371400":"德州市","371500":"聊城市","371600":"滨州市","371700":"菏泽市"},"370100":{"370101":"市辖区","370102":"历下区","370103":"市中区","370104":"槐荫区","370105":"天桥区","370112":"历城区","370113":"长清区","370114":"章丘区","370115":"济阳区","370116":"莱芜区","370117":"钢城区","370124":"平阴县","370126":"商河县","370171":"济南高新技术产业开发区"},"370200":{"370201":"市辖区","370202":"市南区","370203":"市北区","370211":"黄岛区","370212":"崂山区","370213":"李沧区","370214":"城阳区","370215":"即墨区","370271":"青岛高新技术产业开发区","370281":"胶州市","370283":"平度市","370285":"莱西市"},"370300":{"370301":"市辖区","370302":"淄川区","370303":"张店区","370304":"博山区","370305":"临淄区","370306":"周村区","370321":"桓台县","370322":"高青县","370323":"沂源县"},"370400":{"370401":"市辖区","370402":"市中区","370403":"薛城区","370404":"峄城区","370405":"台儿庄区","370406":"山亭区","370481":"滕州市"},"370500":{"370501":"市辖区","370502":"东营区","370503":"河口区","370505":"垦利区","370522":"利津县","370523":"广饶县","370571":"东营经济技术开发区","370572":"东营港经济开发区"},"370600":{"370601":"市辖区","370602":"芝罘区","370611":"福山区","370612":"牟平区","370613":"莱山区","370634":"长岛县","370671":"烟台高新技术产业开发区","370672":"烟台经济技术开发区","370681":"龙口市","370682":"莱阳市","370683":"莱州市","370684":"蓬莱市","370685":"招远市","370686":"栖霞市","370687":"海阳市"},"370700":{"370701":"市辖区","370702":"潍城区","370703":"寒亭区","370704":"坊子区","370705":"奎文区","370724":"临朐县","370725":"昌乐县","370772":"潍坊滨海经济技术开发区","370781":"青州市","370782":"诸城市","370783":"寿光市","370784":"安丘市","370785":"高密市","370786":"昌邑市"},"370800":{"370801":"市辖区","370811":"任城区","370812":"兖州区","370826":"微山县","370827":"鱼台县","370828":"金乡县","370829":"嘉祥县","370830":"汶上县","370831":"泗水县","370832":"梁山县","370871":"济宁高新技术产业开发区","370881":"曲阜市","370883":"邹城市"},"370900":{"370901":"市辖区","370902":"泰山区","370911":"岱岳区","370921":"宁阳县","370923":"东平县","370982":"新泰市","370983":"肥城市"},"371000":{"371001":"市辖区","371002":"环翠区","371003":"文登区","371071":"威海火炬高技术产业开发区","371072":"威海经济技术开发区","371073":"威海临港经济技术开发区","371082":"荣成市","371083":"乳山市"},"371100":{"371101":"市辖区","371102":"东港区","371103":"岚山区","371121":"五莲县","371122":"莒县","371171":"日照经济技术开发区"},"371300":{"371301":"市辖区","371302":"兰山区","371311":"罗庄区","371312":"河东区","371321":"沂南县","371322":"郯城县","371323":"沂水县","371324":"兰陵县","371325":"费县","371326":"平邑县","371327":"莒南县","371328":"蒙阴县","371329":"临沭县","371371":"临沂高新技术产业开发区","371372":"临沂经济技术开发区","371373":"临沂临港经济开发区"},"371400":{"371401":"市辖区","371402":"德城区","371403":"陵城区","371422":"宁津县","371423":"庆云县","371424":"临邑县","371425":"齐河县","371426":"平原县","371427":"夏津县","371428":"武城县","371471":"德州经济技术开发区","371472":"德州运河经济开发区","371481":"乐陵市","371482":"禹城市"},"371500":{"371501":"市辖区","371502":"东昌府区","371503":"茌平区","371521":"阳谷县","371522":"莘县","371524":"东阿县","371525":"冠县","371526":"高唐县","371581":"临清市"},"371600":{"371601":"市辖区","371602":"滨城区","371603":"沾化区","371621":"惠民县","371622":"阳信县","371623":"无棣县","371625":"博兴县","371681":"邹平市"},"371700":{"371701":"市辖区","371702":"牡丹区","371703":"定陶区","371721":"曹县","371722":"单县","371723":"成武县","371724":"巨野县","371725":"郓城县","371726":"鄄城县","371728":"东明县","371771":"菏泽经济技术开发区","371772":"菏泽高新技术开发区"},"410000":{"410100":"郑州市","410200":"开封市","410300":"洛阳市","410400":"平顶山市","410500":"安阳市","410600":"鹤壁市","410700":"新乡市","410800":"焦作市","410900":"濮阳市","411000":"许昌市","411100":"漯河市","411200":"三门峡市","411300":"南阳市","411400":"商丘市","411500":"信阳市","411600":"周口市","411700":"驻马店市","419000":"省直辖县级行政区划"},"410100":{"410101":"市辖区","410102":"中原区","410103":"二七区","410104":"管城回族区","410105":"金水区","410106":"上街区","410108":"惠济区","410122":"中牟县","410171":"郑州经济技术开发区","410172":"郑州高新技术产业开发区","410173":"郑州航空港经济综合实验区","410181":"巩义市","410182":"荥阳市","410183":"新密市","410184":"新郑市","410185":"登封市"},"410200":{"410201":"市辖区","410202":"龙亭区","410203":"顺河回族区","410204":"鼓楼区","410205":"禹王台区","410212":"祥符区","410221":"杞县","410222":"通许县","410223":"尉氏县","410225":"兰考县"},"410300":{"410301":"市辖区","410302":"老城区","410303":"西工区","410304":"瀍河回族区","410305":"涧西区","410306":"吉利区","410311":"洛龙区","410322":"孟津县","410323":"新安县","410324":"栾川县","410325":"嵩县","410326":"汝阳县","410327":"宜阳县","410328":"洛宁县","410329":"伊川县","410371":"洛阳高新技术产业开发区","410381":"偃师市"},"410400":{"410401":"市辖区","410402":"新华区","410403":"卫东区","410404":"石龙区","410411":"湛河区","410421":"宝丰县","410422":"叶县","410423":"鲁山县","410425":"郏县","410471":"平顶山高新技术产业开发区","410472":"平顶山市城乡一体化示范区","410481":"舞钢市","410482":"汝州市"},"410500":{"410501":"市辖区","410502":"文峰区","410503":"北关区","410505":"殷都区","410506":"龙安区","410522":"安阳县","410523":"汤阴县","410526":"滑县","410527":"内黄县","410571":"安阳高新技术产业开发区","410581":"林州市"},"410600":{"410601":"市辖区","410602":"鹤山区","410603":"山城区","410611":"淇滨区","410621":"浚县","410622":"淇县","410671":"鹤壁经济技术开发区"},"410700":{"410701":"市辖区","410702":"红旗区","410703":"卫滨区","410704":"凤泉区","410711":"牧野区","410721":"新乡县","410724":"获嘉县","410725":"原阳县","410726":"延津县","410727":"封丘县","410771":"新乡高新技术产业开发区","410772":"新乡经济技术开发区","410773":"新乡市平原城乡一体化示范区","410781":"卫辉市","410782":"辉县市","410783":"长垣市"},"410800":{"410801":"市辖区","410802":"解放区","410803":"中站区","410804":"马村区","410811":"山阳区","410821":"修武县","410822":"博爱县","410823":"武陟县","410825":"温县","410871":"焦作城乡一体化示范区","410882":"沁阳市","410883":"孟州市"},"410900":{"410901":"市辖区","410902":"华龙区","410922":"清丰县","410923":"南乐县","410926":"范县","410927":"台前县","410928":"濮阳县","410971":"河南濮阳工业园区","410972":"濮阳经济技术开发区"},"411000":{"411001":"市辖区","411002":"魏都区","411003":"建安区","411024":"鄢陵县","411025":"襄城县","411071":"许昌经济技术开发区","411081":"禹州市","411082":"长葛市"},"411100":{"411101":"市辖区","411102":"源汇区","411103":"郾城区","411104":"召陵区","411121":"舞阳县","411122":"临颍县","411171":"漯河经济技术开发区"},"411200":{"411201":"市辖区","411202":"湖滨区","411203":"陕州区","411221":"渑池县","411224":"卢氏县","411271":"河南三门峡经济开发区","411281":"义马市","411282":"灵宝市"},"411300":{"411301":"市辖区","411302":"宛城区","411303":"卧龙区","411321":"南召县","411322":"方城县","411323":"西峡县","411324":"镇平县","411325":"内乡县","411326":"淅川县","411327":"社旗县","411328":"唐河县","411329":"新野县","411330":"桐柏县","411371":"南阳高新技术产业开发区","411372":"南阳市城乡一体化示范区","411381":"邓州市"},"411400":{"411401":"市辖区","411402":"梁园区","411403":"睢阳区","411421":"民权县","411422":"睢县","411423":"宁陵县","411424":"柘城县","411425":"虞城县","411426":"夏邑县","411471":"豫东综合物流产业聚集区","411472":"河南商丘经济开发区","411481":"永城市"},"411500":{"411501":"市辖区","411502":"浉河区","411503":"平桥区","411521":"罗山县","411522":"光山县","411523":"新县","411524":"商城县","411525":"固始县","411526":"潢川县","411527":"淮滨县","411528":"息县","411571":"信阳高新技术产业开发区"},"411600":{"411601":"市辖区","411602":"川汇区","411603":"淮阳区","411621":"扶沟县","411622":"西华县","411623":"商水县","411624":"沈丘县","411625":"郸城县","411627":"太康县","411628":"鹿邑县","411671":"河南周口经济开发区","411681":"项城市"},"411700":{"411701":"市辖区","411702":"驿城区","411721":"西平县","411722":"上蔡县","411723":"平舆县","411724":"正阳县","411725":"确山县","411726":"泌阳县","411727":"汝南县","411728":"遂平县","411729":"新蔡县","411771":"河南驻马店经济开发区"},"419000":{"419001":"济源市"},"420000":{"420100":"武汉市","420200":"黄石市","420300":"十堰市","420500":"宜昌市","420600":"襄阳市","420700":"鄂州市","420800":"荆门市","420900":"孝感市","421000":"荆州市","421100":"黄冈市","421200":"咸宁市","421300":"随州市","422800":"恩施土家族苗族自治州","429000":"省直辖县级行政区划"},"420100":{"420101":"市辖区","420102":"江岸区","420103":"江汉区","420104":"硚口区","420105":"汉阳区","420106":"武昌区","420107":"青山区","420111":"洪山区","420112":"东西湖区","420113":"汉南区","420114":"蔡甸区","420115":"江夏区","420116":"黄陂区","420117":"新洲区"},"420200":{"420201":"市辖区","420202":"黄石港区","420203":"西塞山区","420204":"下陆区","420205":"铁山区","420222":"阳新县","420281":"大冶市"},"420300":{"420301":"市辖区","420302":"茅箭区","420303":"张湾区","420304":"郧阳区","420322":"郧西县","420323":"竹山县","420324":"竹溪县","420325":"房县","420381":"丹江口市"},"420500":{"420501":"市辖区","420502":"西陵区","420503":"伍家岗区","420504":"点军区","420505":"猇亭区","420506":"夷陵区","420525":"远安县","420526":"兴山县","420527":"秭归县","420528":"长阳土家族自治县","420529":"五峰土家族自治县","420581":"宜都市","420582":"当阳市","420583":"枝江市"},"420600":{"420601":"市辖区","420602":"襄城区","420606":"樊城区","420607":"襄州区","420624":"南漳县","420625":"谷城县","420626":"保康县","420682":"老河口市","420683":"枣阳市","420684":"宜城市"},"420700":{"420701":"市辖区","420702":"梁子湖区","420703":"华容区","420704":"鄂城区"},"420800":{"420801":"市辖区","420802":"东宝区","420804":"掇刀区","420822":"沙洋县","420881":"钟祥市","420882":"京山市"},"420900":{"420901":"市辖区","420902":"孝南区","420921":"孝昌县","420922":"大悟县","420923":"云梦县","420981":"应城市","420982":"安陆市","420984":"汉川市"},"421000":{"421001":"市辖区","421002":"沙市区","421003":"荆州区","421022":"公安县","421023":"监利县","421024":"江陵县","421071":"荆州经济技术开发区","421081":"石首市","421083":"洪湖市","421087":"松滋市"},"421100":{"421101":"市辖区","421102":"黄州区","421121":"团风县","421122":"红安县","421123":"罗田县","421124":"英山县","421125":"浠水县","421126":"蕲春县","421127":"黄梅县","421171":"龙感湖管理区","421181":"麻城市","421182":"武穴市"},"421200":{"421201":"市辖区","421202":"咸安区","421221":"嘉鱼县","421222":"通城县","421223":"崇阳县","421224":"通山县","421281":"赤壁市"},"421300":{"421301":"市辖区","421303":"曾都区","421321":"随县","421381":"广水市"},"422800":{"422801":"恩施市","422802":"利川市","422822":"建始县","422823":"巴东县","422825":"宣恩县","422826":"咸丰县","422827":"来凤县","422828":"鹤峰县"},"429000":{"429004":"仙桃市","429005":"潜江市","429006":"天门市","429021":"神农架林区"},"430000":{"430100":"长沙市","430200":"株洲市","430300":"湘潭市","430400":"衡阳市","430500":"邵阳市","430600":"岳阳市","430700":"常德市","430800":"张家界市","430900":"益阳市","431000":"郴州市","431100":"永州市","431200":"怀化市","431300":"娄底市","433100":"湘西土家族苗族自治州"},"430100":{"430101":"市辖区","430102":"芙蓉区","430103":"天心区","430104":"岳麓区","430105":"开福区","430111":"雨花区","430112":"望城区","430121":"长沙县","430181":"浏阳市","430182":"宁乡市"},"430200":{"430201":"市辖区","430202":"荷塘区","430203":"芦淞区","430204":"石峰区","430211":"天元区","430212":"渌口区","430223":"攸县","430224":"茶陵县","430225":"炎陵县","430271":"云龙示范区","430281":"醴陵市"},"430300":{"430301":"市辖区","430302":"雨湖区","430304":"岳塘区","430321":"湘潭县","430371":"湖南湘潭高新技术产业园区","430372":"湘潭昭山示范区","430373":"湘潭九华示范区","430381":"湘乡市","430382":"韶山市"},"430400":{"430401":"市辖区","430405":"珠晖区","430406":"雁峰区","430407":"石鼓区","430408":"蒸湘区","430412":"南岳区","430421":"衡阳县","430422":"衡南县","430423":"衡山县","430424":"衡东县","430426":"祁东县","430471":"衡阳综合保税区","430472":"湖南衡阳高新技术产业园区","430473":"湖南衡阳松木经济开发区","430481":"耒阳市","430482":"常宁市"},"430500":{"430501":"市辖区","430502":"双清区","430503":"大祥区","430511":"北塔区","430522":"新邵县","430523":"邵阳县","430524":"隆回县","430525":"洞口县","430527":"绥宁县","430528":"新宁县","430529":"城步苗族自治县","430581":"武冈市","430582":"邵东市"},"430600":{"430601":"市辖区","430602":"岳阳楼区","430603":"云溪区","430611":"君山区","430621":"岳阳县","430623":"华容县","430624":"湘阴县","430626":"平江县","430671":"岳阳市屈原管理区","430681":"汨罗市","430682":"临湘市"},"430700":{"430701":"市辖区","430702":"武陵区","430703":"鼎城区","430721":"安乡县","430722":"汉寿县","430723":"澧县","430724":"临澧县","430725":"桃源县","430726":"石门县","430771":"常德市西洞庭管理区","430781":"津市市"},"430800":{"430801":"市辖区","430802":"永定区","430811":"武陵源区","430821":"慈利县","430822":"桑植县"},"430900":{"430901":"市辖区","430902":"资阳区","430903":"赫山区","430921":"南县","430922":"桃江县","430923":"安化县","430971":"益阳市大通湖管理区","430972":"湖南益阳高新技术产业园区","430981":"沅江市"},"431000":{"431001":"市辖区","431002":"北湖区","431003":"苏仙区","431021":"桂阳县","431022":"宜章县","431023":"永兴县","431024":"嘉禾县","431025":"临武县","431026":"汝城县","431027":"桂东县","431028":"安仁县","431081":"资兴市"},"431100":{"431101":"市辖区","431102":"零陵区","431103":"冷水滩区","431121":"祁阳县","431122":"东安县","431123":"双牌县","431124":"道县","431125":"江永县","431126":"宁远县","431127":"蓝山县","431128":"新田县","431129":"江华瑶族自治县","431171":"永州经济技术开发区","431172":"永州市金洞管理区","431173":"永州市回龙圩管理区"},"431200":{"431201":"市辖区","431202":"鹤城区","431221":"中方县","431222":"沅陵县","431223":"辰溪县","431224":"溆浦县","431225":"会同县","431226":"麻阳苗族自治县","431227":"新晃侗族自治县","431228":"芷江侗族自治县","431229":"靖州苗族侗族自治县","431230":"通道侗族自治县","431271":"怀化市洪江管理区","431281":"洪江市"},"431300":{"431301":"市辖区","431302":"娄星区","431321":"双峰县","431322":"新化县","431381":"冷水江市","431382":"涟源市"},"433100":{"433101":"吉首市","433122":"泸溪县","433123":"凤凰县","433124":"花垣县","433125":"保靖县","433126":"古丈县","433127":"永顺县","433130":"龙山县","433173":"湖南永顺经济开发区"},"440000":{"440100":"广州市","440200":"韶关市","440300":"深圳市","440400":"珠海市","440500":"汕头市","440600":"佛山市","440700":"江门市","440800":"湛江市","440900":"茂名市","441200":"肇庆市","441300":"惠州市","441400":"梅州市","441500":"汕尾市","441600":"河源市","441700":"阳江市","441800":"清远市","441900":"东莞市","442000":"中山市","445100":"潮州市","445200":"揭阳市","445300":"云浮市"},"440100":{"440101":"市辖区","440103":"荔湾区","440104":"越秀区","440105":"海珠区","440106":"天河区","440111":"白云区","440112":"黄埔区","440113":"番禺区","440114":"花都区","440115":"南沙区","440117":"从化区","440118":"增城区"},"440200":{"440201":"市辖区","440203":"武江区","440204":"浈江区","440205":"曲江区","440222":"始兴县","440224":"仁化县","440229":"翁源县","440232":"乳源瑶族自治县","440233":"新丰县","440281":"乐昌市","440282":"南雄市"},"440300":{"440301":"市辖区","440303":"罗湖区","440304":"福田区","440305":"南山区","440306":"宝安区","440307":"龙岗区","440308":"盐田区","440309":"龙华区","440310":"坪山区","440311":"光明区"},"440400":{"440401":"市辖区","440402":"香洲区","440403":"斗门区","440404":"金湾区"},"440500":{"440501":"市辖区","440507":"龙湖区","440511":"金平区","440512":"濠江区","440513":"潮阳区","440514":"潮南区","440515":"澄海区","440523":"南澳县"},"440600":{"440601":"市辖区","440604":"禅城区","440605":"南海区","440606":"顺德区","440607":"三水区","440608":"高明区"},"440700":{"440701":"市辖区","440703":"蓬江区","440704":"江海区","440705":"新会区","440781":"台山市","440783":"开平市","440784":"鹤山市","440785":"恩平市"},"440800":{"440801":"市辖区","440802":"赤坎区","440803":"霞山区","440804":"坡头区","440811":"麻章区","440823":"遂溪县","440825":"徐闻县","440881":"廉江市","440882":"雷州市","440883":"吴川市"},"440900":{"440901":"市辖区","440902":"茂南区","440904":"电白区","440981":"高州市","440982":"化州市","440983":"信宜市"},"441200":{"441201":"市辖区","441202":"端州区","441203":"鼎湖区","441204":"高要区","441223":"广宁县","441224":"怀集县","441225":"封开县","441226":"德庆县","441284":"四会市"},"441300":{"441301":"市辖区","441302":"惠城区","441303":"惠阳区","441322":"博罗县","441323":"惠东县","441324":"龙门县"},"441400":{"441401":"市辖区","441402":"梅江区","441403":"梅县区","441422":"大埔县","441423":"丰顺县","441424":"五华县","441426":"平远县","441427":"蕉岭县","441481":"兴宁市"},"441500":{"441501":"市辖区","441502":"城区","441521":"海丰县","441523":"陆河县","441581":"陆丰市"},"441600":{"441601":"市辖区","441602":"源城区","441621":"紫金县","441622":"龙川县","441623":"连平县","441624":"和平县","441625":"东源县"},"441700":{"441701":"市辖区","441702":"江城区","441704":"阳东区","441721":"阳西县","441781":"阳春市"},"441800":{"441801":"市辖区","441802":"清城区","441803":"清新区","441821":"佛冈县","441823":"阳山县","441825":"连山壮族瑶族自治县","441826":"连南瑶族自治县","441881":"英德市","441882":"连州市"},"441900":{"441900003":"东城街道","441900004":"南城街道","441900005":"万江街道","441900006":"莞城街道","441900101":"石碣镇","441900102":"石龙镇","441900103":"茶山镇","441900104":"石排镇","441900105":"企石镇","441900106":"横沥镇","441900107":"桥头镇","441900108":"谢岗镇","441900109":"东坑镇","441900110":"常平镇","441900111":"寮步镇","441900112":"樟木头镇","441900113":"大朗镇","441900114":"黄江镇","441900115":"清溪镇","441900116":"塘厦镇","441900117":"凤岗镇","441900118":"大岭山镇","441900119":"长安镇","441900121":"虎门镇","441900122":"厚街镇","441900123":"沙田镇","441900124":"道滘镇","441900125":"洪梅镇","441900126":"麻涌镇","441900127":"望牛墩镇","441900128":"中堂镇","441900129":"高埗镇","441900401":"松山湖","441900402":"东莞港","441900403":"东莞生态园"},"442000":{"442000001":"石岐街道","442000002":"东区街道","442000003":"中山港街道","442000004":"西区街道","442000005":"南区街道","442000006":"五桂山街道","442000100":"小榄镇","442000101":"黄圃镇","442000102":"民众镇","442000103":"东凤镇","442000104":"东升镇","442000105":"古镇镇","442000106":"沙溪镇","442000107":"坦洲镇","442000108":"港口镇","442000109":"三角镇","442000110":"横栏镇","442000111":"南头镇","442000112":"阜沙镇","442000113":"南朗镇","442000114":"三乡镇","442000115":"板芙镇","442000116":"大涌镇","442000117":"神湾镇"},"445100":{"445101":"市辖区","445102":"湘桥区","445103":"潮安区","445122":"饶平县"},"445200":{"445201":"市辖区","445202":"榕城区","445203":"揭东区","445222":"揭西县","445224":"惠来县","445281":"普宁市"},"445300":{"445301":"市辖区","445302":"云城区","445303":"云安区","445321":"新兴县","445322":"郁南县","445381":"罗定市"},"450000":{"450100":"南宁市","450200":"柳州市","450300":"桂林市","450400":"梧州市","450500":"北海市","450600":"防城港市","450700":"钦州市","450800":"贵港市","450900":"玉林市","451000":"百色市","451100":"贺州市","451200":"河池市","451300":"来宾市","451400":"崇左市"},"450100":{"450101":"市辖区","450102":"兴宁区","450103":"青秀区","450105":"江南区","450107":"西乡塘区","450108":"良庆区","450109":"邕宁区","450110":"武鸣区","450123":"隆安县","450124":"马山县","450125":"上林县","450126":"宾阳县","450127":"横县"},"450200":{"450201":"市辖区","450202":"城中区","450203":"鱼峰区","450204":"柳南区","450205":"柳北区","450206":"柳江区","450222":"柳城县","450223":"鹿寨县","450224":"融安县","450225":"融水苗族自治县","450226":"三江侗族自治县"},"450300":{"450301":"市辖区","450302":"秀峰区","450303":"叠彩区","450304":"象山区","450305":"七星区","450311":"雁山区","450312":"临桂区","450321":"阳朔县","450323":"灵川县","450324":"全州县","450325":"兴安县","450326":"永福县","450327":"灌阳县","450328":"龙胜各族自治县","450329":"资源县","450330":"平乐县","450332":"恭城瑶族自治县","450381":"荔浦市"},"450400":{"450401":"市辖区","450403":"万秀区","450405":"长洲区","450406":"龙圩区","450421":"苍梧县","450422":"藤县","450423":"蒙山县","450481":"岑溪市"},"450500":{"450501":"市辖区","450502":"海城区","450503":"银海区","450512":"铁山港区","450521":"合浦县"},"450600":{"450601":"市辖区","450602":"港口区","450603":"防城区","450621":"上思县","450681":"东兴市"},"450700":{"450701":"市辖区","450702":"钦南区","450703":"钦北区","450721":"灵山县","450722":"浦北县"},"450800":{"450801":"市辖区","450802":"港北区","450803":"港南区","450804":"覃塘区","450821":"平南县","450881":"桂平市"},"450900":{"450901":"市辖区","450902":"玉州区","450903":"福绵区","450921":"容县","450922":"陆川县","450923":"博白县","450924":"兴业县","450981":"北流市"},"451000":{"451001":"市辖区","451002":"右江区","451003":"田阳区","451022":"田东县","451023":"平果县","451024":"德保县","451026":"那坡县","451027":"凌云县","451028":"乐业县","451029":"田林县","451030":"西林县","451031":"隆林各族自治县","451081":"靖西市"},"451100":{"451101":"市辖区","451102":"八步区","451103":"平桂区","451121":"昭平县","451122":"钟山县","451123":"富川瑶族自治县"},"451200":{"451201":"市辖区","451202":"金城江区","451203":"宜州区","451221":"南丹县","451222":"天峨县","451223":"凤山县","451224":"东兰县","451225":"罗城仫佬族自治县","451226":"环江毛南族自治县","451227":"巴马瑶族自治县","451228":"都安瑶族自治县","451229":"大化瑶族自治县"},"451300":{"451301":"市辖区","451302":"兴宾区","451321":"忻城县","451322":"象州县","451323":"武宣县","451324":"金秀瑶族自治县","451381":"合山市"},"451400":{"451401":"市辖区","451402":"江州区","451421":"扶绥县","451422":"宁明县","451423":"龙州县","451424":"大新县","451425":"天等县","451481":"凭祥市"},"460000":{"460100":"海口市","460200":"三亚市","460300":"三沙市","460400":"儋州市","469000":"省直辖县级行政区划"},"460100":{"460101":"市辖区","460105":"秀英区","460106":"龙华区","460107":"琼山区","460108":"美兰区"},"460200":{"460201":"市辖区","460202":"海棠区","460203":"吉阳区","460204":"天涯区","460205":"崖州区"},"460300":{"460321":"西沙群岛","460322":"南沙群岛","460323":"中沙群岛的岛礁及其海域"},"460400":{"460400100":"那大镇","460400101":"和庆镇","460400102":"南丰镇","460400103":"大成镇","460400104":"雅星镇","460400105":"兰洋镇","460400106":"光村镇","460400107":"木棠镇","460400108":"海头镇","460400109":"峨蔓镇","460400111":"王五镇","460400112":"白马井镇","460400113":"中和镇","460400114":"排浦镇","460400115":"东成镇","460400116":"新州镇","460400499":"洋浦经济开发区","460400500":"华南热作学院"},"469000":{"469001":"五指山市","469002":"琼海市","469005":"文昌市","469006":"万宁市","469007":"东方市","469021":"定安县","469022":"屯昌县","469023":"澄迈县","469024":"临高县","469025":"白沙黎族自治县","469026":"昌江黎族自治县","469027":"乐东黎族自治县","469028":"陵水黎族自治县","469029":"保亭黎族苗族自治县","469030":"琼中黎族苗族自治县"},"500000":{"500100":"市辖区","500200":"县"},"500100":{"500101":"万州区","500102":"涪陵区","500103":"渝中区","500104":"大渡口区","500105":"江北区","500106":"沙坪坝区","500107":"九龙坡区","500108":"南岸区","500109":"北碚区","500110":"綦江区","500111":"大足区","500112":"渝北区","500113":"巴南区","500114":"黔江区","500115":"长寿区","500116":"江津区","500117":"合川区","500118":"永川区","500119":"南川区","500120":"璧山区","500151":"铜梁区","500152":"潼南区","500153":"荣昌区","500154":"开州区","500155":"梁平区","500156":"武隆区"},"500200":{"500229":"城口县","500230":"丰都县","500231":"垫江县","500233":"忠县","500235":"云阳县","500236":"奉节县","500237":"巫山县","500238":"巫溪县","500240":"石柱土家族自治县","500241":"秀山土家族苗族自治县","500242":"酉阳土家族苗族自治县","500243":"彭水苗族土家族自治县"},"510000":{"510100":"成都市","510300":"自贡市","510400":"攀枝花市","510500":"泸州市","510600":"德阳市","510700":"绵阳市","510800":"广元市","510900":"遂宁市","511000":"内江市","511100":"乐山市","511300":"南充市","511400":"眉山市","511500":"宜宾市","511600":"广安市","511700":"达州市","511800":"雅安市","511900":"巴中市","512000":"资阳市","513200":"阿坝藏族羌族自治州","513300":"甘孜藏族自治州","513400":"凉山彝族自治州"},"510100":{"510101":"市辖区","510104":"锦江区","510105":"青羊区","510106":"金牛区","510107":"武侯区","510108":"成华区","510112":"龙泉驿区","510113":"青白江区","510114":"新都区","510115":"温江区","510116":"双流区","510117":"郫都区","510121":"金堂县","510129":"大邑县","510131":"蒲江县","510132":"新津县","510181":"都江堰市","510182":"彭州市","510183":"邛崃市","510184":"崇州市","510185":"简阳市"},"510300":{"510301":"市辖区","510302":"自流井区","510303":"贡井区","510304":"大安区","510311":"沿滩区","510321":"荣县","510322":"富顺县"},"510400":{"510401":"市辖区","510402":"东区","510403":"西区","510411":"仁和区","510421":"米易县","510422":"盐边县"},"510500":{"510501":"市辖区","510502":"江阳区","510503":"纳溪区","510504":"龙马潭区","510521":"泸县","510522":"合江县","510524":"叙永县","510525":"古蔺县"},"510600":{"510601":"市辖区","510603":"旌阳区","510604":"罗江区","510623":"中江县","510681":"广汉市","510682":"什邡市","510683":"绵竹市"},"510700":{"510701":"市辖区","510703":"涪城区","510704":"游仙区","510705":"安州区","510722":"三台县","510723":"盐亭县","510725":"梓潼县","510726":"北川羌族自治县","510727":"平武县","510781":"江油市"},"510800":{"510801":"市辖区","510802":"利州区","510811":"昭化区","510812":"朝天区","510821":"旺苍县","510822":"青川县","510823":"剑阁县","510824":"苍溪县"},"510900":{"510901":"市辖区","510903":"船山区","510904":"安居区","510921":"蓬溪县","510923":"大英县","510981":"射洪市"},"511000":{"511001":"市辖区","511002":"市中区","511011":"东兴区","511024":"威远县","511025":"资中县","511071":"内江经济开发区","511083":"隆昌市"},"511100":{"511101":"市辖区","511102":"市中区","511111":"沙湾区","511112":"五通桥区","511113":"金口河区","511123":"犍为县","511124":"井研县","511126":"夹江县","511129":"沐川县","511132":"峨边彝族自治县","511133":"马边彝族自治县","511181":"峨眉山市"},"511300":{"511301":"市辖区","511302":"顺庆区","511303":"高坪区","511304":"嘉陵区","511321":"南部县","511322":"营山县","511323":"蓬安县","511324":"仪陇县","511325":"西充县","511381":"阆中市"},"511400":{"511401":"市辖区","511402":"东坡区","511403":"彭山区","511421":"仁寿县","511423":"洪雅县","511424":"丹棱县","511425":"青神县"},"511500":{"511501":"市辖区","511502":"翠屏区","511503":"南溪区","511504":"叙州区","511523":"江安县","511524":"长宁县","511525":"高县","511526":"珙县","511527":"筠连县","511528":"兴文县","511529":"屏山县"},"511600":{"511601":"市辖区","511602":"广安区","511603":"前锋区","511621":"岳池县","511622":"武胜县","511623":"邻水县","511681":"华蓥市"},"511700":{"511701":"市辖区","511702":"通川区","511703":"达川区","511722":"宣汉县","511723":"开江县","511724":"大竹县","511725":"渠县","511771":"达州经济开发区","511781":"万源市"},"511800":{"511801":"市辖区","511802":"雨城区","511803":"名山区","511822":"荥经县","511823":"汉源县","511824":"石棉县","511825":"天全县","511826":"芦山县","511827":"宝兴县"},"511900":{"511901":"市辖区","511902":"巴州区","511903":"恩阳区","511921":"通江县","511922":"南江县","511923":"平昌县","511971":"巴中经济开发区"},"512000":{"512001":"市辖区","512002":"雁江区","512021":"安岳县","512022":"乐至县"},"513200":{"513201":"马尔康市","513221":"汶川县","513222":"理县","513223":"茂县","513224":"松潘县","513225":"九寨沟县","513226":"金川县","513227":"小金县","513228":"黑水县","513230":"壤塘县","513231":"阿坝县","513232":"若尔盖县","513233":"红原县"},"513300":{"513301":"康定市","513322":"泸定县","513323":"丹巴县","513324":"九龙县","513325":"雅江县","513326":"道孚县","513327":"炉霍县","513328":"甘孜县","513329":"新龙县","513330":"德格县","513331":"白玉县","513332":"石渠县","513333":"色达县","513334":"理塘县","513335":"巴塘县","513336":"乡城县","513337":"稻城县","513338":"得荣县"},"513400":{"513401":"西昌市","513422":"木里藏族自治县","513423":"盐源县","513424":"德昌县","513425":"会理县","513426":"会东县","513427":"宁南县","513428":"普格县","513429":"布拖县","513430":"金阳县","513431":"昭觉县","513432":"喜德县","513433":"冕宁县","513434":"越西县","513435":"甘洛县","513436":"美姑县","513437":"雷波县"},"520000":{"520100":"贵阳市","520200":"六盘水市","520300":"遵义市","520400":"安顺市","520500":"毕节市","520600":"铜仁市","522300":"黔西南布依族苗族自治州","522600":"黔东南苗族侗族自治州","522700":"黔南布依族苗族自治州"},"520100":{"520101":"市辖区","520102":"南明区","520103":"云岩区","520111":"花溪区","520112":"乌当区","520113":"白云区","520115":"观山湖区","520121":"开阳县","520122":"息烽县","520123":"修文县","520181":"清镇市"},"520200":{"520201":"钟山区","520203":"六枝特区","520221":"水城县","520281":"盘州市"},"520300":{"520301":"市辖区","520302":"红花岗区","520303":"汇川区","520304":"播州区","520322":"桐梓县","520323":"绥阳县","520324":"正安县","520325":"道真仡佬族苗族自治县","520326":"务川仡佬族苗族自治县","520327":"凤冈县","520328":"湄潭县","520329":"余庆县","520330":"习水县","520381":"赤水市","520382":"仁怀市"},"520400":{"520401":"市辖区","520402":"西秀区","520403":"平坝区","520422":"普定县","520423":"镇宁布依族苗族自治县","520424":"关岭布依族苗族自治县","520425":"紫云苗族布依族自治县"},"520500":{"520501":"市辖区","520502":"七星关区","520521":"大方县","520522":"黔西县","520523":"金沙县","520524":"织金县","520525":"纳雍县","520526":"威宁彝族回族苗族自治县","520527":"赫章县"},"520600":{"520601":"市辖区","520602":"碧江区","520603":"万山区","520621":"江口县","520622":"玉屏侗族自治县","520623":"石阡县","520624":"思南县","520625":"印江土家族苗族自治县","520626":"德江县","520627":"沿河土家族自治县","520628":"松桃苗族自治县"},"522300":{"522301":"兴义市","522302":"兴仁市","522323":"普安县","522324":"晴隆县","522325":"贞丰县","522326":"望谟县","522327":"册亨县","522328":"安龙县"},"522600":{"522601":"凯里市","522622":"黄平县","522623":"施秉县","522624":"三穗县","522625":"镇远县","522626":"岑巩县","522627":"天柱县","522628":"锦屏县","522629":"剑河县","522630":"台江县","522631":"黎平县","522632":"榕江县","522633":"从江县","522634":"雷山县","522635":"麻江县","522636":"丹寨县"},"522700":{"522701":"都匀市","522702":"福泉市","522722":"荔波县","522723":"贵定县","522725":"瓮安县","522726":"独山县","522727":"平塘县","522728":"罗甸县","522729":"长顺县","522730":"龙里县","522731":"惠水县","522732":"三都水族自治县"},"530000":{"530100":"昆明市","530300":"曲靖市","530400":"玉溪市","530500":"保山市","530600":"昭通市","530700":"丽江市","530800":"普洱市","530900":"临沧市","532300":"楚雄彝族自治州","532500":"红河哈尼族彝族自治州","532600":"文山壮族苗族自治州","532800":"西双版纳傣族自治州","532900":"大理白族自治州","533100":"德宏傣族景颇族自治州","533300":"怒江傈僳族自治州","533400":"迪庆藏族自治州"},"530100":{"530101":"市辖区","530102":"五华区","530103":"盘龙区","530111":"官渡区","530112":"西山区","530113":"东川区","530114":"呈贡区","530115":"晋宁区","530124":"富民县","530125":"宜良县","530126":"石林彝族自治县","530127":"嵩明县","530128":"禄劝彝族苗族自治县","530129":"寻甸回族彝族自治县","530181":"安宁市"},"530300":{"530301":"市辖区","530302":"麒麟区","530303":"沾益区","530304":"马龙区","530322":"陆良县","530323":"师宗县","530324":"罗平县","530325":"富源县","530326":"会泽县","530381":"宣威市"},"530400":{"530401":"市辖区","530402":"红塔区","530403":"江川区","530422":"澄江县","530423":"通海县","530424":"华宁县","530425":"易门县","530426":"峨山彝族自治县","530427":"新平彝族傣族自治县","530428":"元江哈尼族彝族傣族自治县"},"530500":{"530501":"市辖区","530502":"隆阳区","530521":"施甸县","530523":"龙陵县","530524":"昌宁县","530581":"腾冲市"},"530600":{"530601":"市辖区","530602":"昭阳区","530621":"鲁甸县","530622":"巧家县","530623":"盐津县","530624":"大关县","530625":"永善县","530626":"绥江县","530627":"镇雄县","530628":"彝良县","530629":"威信县","530681":"水富市"},"530700":{"530701":"市辖区","530702":"古城区","530721":"玉龙纳西族自治县","530722":"永胜县","530723":"华坪县","530724":"宁蒗彝族自治县"},"530800":{"530801":"市辖区","530802":"思茅区","530821":"宁洱哈尼族彝族自治县","530822":"墨江哈尼族自治县","530823":"景东彝族自治县","530824":"景谷傣族彝族自治县","530825":"镇沅彝族哈尼族拉祜族自治县","530826":"江城哈尼族彝族自治县","530827":"孟连傣族拉祜族佤族自治县","530828":"澜沧拉祜族自治县","530829":"西盟佤族自治县"},"530900":{"530901":"市辖区","530902":"临翔区","530921":"凤庆县","530922":"云县","530923":"永德县","530924":"镇康县","530925":"双江拉祜族佤族布朗族傣族自治县","530926":"耿马傣族佤族自治县","530927":"沧源佤族自治县"},"532300":{"532301":"楚雄市","532322":"双柏县","532323":"牟定县","532324":"南华县","532325":"姚安县","532326":"大姚县","532327":"永仁县","532328":"元谋县","532329":"武定县","532331":"禄丰县"},"532500":{"532501":"个旧市","532502":"开远市","532503":"蒙自市","532504":"弥勒市","532523":"屏边苗族自治县","532524":"建水县","532525":"石屏县","532527":"泸西县","532528":"元阳县","532529":"红河县","532530":"金平苗族瑶族傣族自治县","532531":"绿春县","532532":"河口瑶族自治县"},"532600":{"532601":"文山市","532622":"砚山县","532623":"西畴县","532624":"麻栗坡县","532625":"马关县","532626":"丘北县","532627":"广南县","532628":"富宁县"},"532800":{"532801":"景洪市","532822":"勐海县","532823":"勐腊县"},"532900":{"532901":"大理市","532922":"漾濞彝族自治县","532923":"祥云县","532924":"宾川县","532925":"弥渡县","532926":"南涧彝族自治县","532927":"巍山彝族回族自治县","532928":"永平县","532929":"云龙县","532930":"洱源县","532931":"剑川县","532932":"鹤庆县"},"533100":{"533102":"瑞丽市","533103":"芒市","533122":"梁河县","533123":"盈江县","533124":"陇川县"},"533300":{"533301":"泸水市","533323":"福贡县","533324":"贡山独龙族怒族自治县","533325":"兰坪白族普米族自治县"},"533400":{"533401":"香格里拉市","533422":"德钦县","533423":"维西傈僳族自治县"},"540000":{"540100":"拉萨市","540200":"日喀则市","540300":"昌都市","540400":"林芝市","540500":"山南市","540600":"那曲市","542500":"阿里地区"},"540100":{"540101":"市辖区","540102":"城关区","540103":"堆龙德庆区","540104":"达孜区","540121":"林周县","540122":"当雄县","540123":"尼木县","540124":"曲水县","540127":"墨竹工卡县","540171":"格尔木藏青工业园区","540172":"拉萨经济技术开发区","540173":"西藏文化旅游创意园区","540174":"达孜工业园区"},"540200":{"540202":"桑珠孜区","540221":"南木林县","540222":"江孜县","540223":"定日县","540224":"萨迦县","540225":"拉孜县","540226":"昂仁县","540227":"谢通门县","540228":"白朗县","540229":"仁布县","540230":"康马县","540231":"定结县","540232":"仲巴县","540233":"亚东县","540234":"吉隆县","540235":"聂拉木县","540236":"萨嘎县","540237":"岗巴县"},"540300":{"540302":"卡若区","540321":"江达县","540322":"贡觉县","540323":"类乌齐县","540324":"丁青县","540325":"察雅县","540326":"八宿县","540327":"左贡县","540328":"芒康县","540329":"洛隆县","540330":"边坝县"},"540400":{"540402":"巴宜区","540421":"工布江达县","540422":"米林县","540423":"墨脱县","540424":"波密县","540425":"察隅县","540426":"朗县"},"540500":{"540501":"市辖区","540502":"乃东区","540521":"扎囊县","540522":"贡嘎县","540523":"桑日县","540524":"琼结县","540525":"曲松县","540526":"措美县","540527":"洛扎县","540528":"加查县","540529":"隆子县","540530":"错那县","540531":"浪卡子县"},"540600":{"540602":"色尼区","540621":"嘉黎县","540622":"比如县","540623":"聂荣县","540624":"安多县","540625":"申扎县","540626":"索县","540627":"班戈县","540628":"巴青县","540629":"尼玛县","540630":"双湖县"},"542500":{"542521":"普兰县","542522":"札达县","542523":"噶尔县","542524":"日土县","542525":"革吉县","542526":"改则县","542527":"措勤县"},"610000":{"610100":"西安市","610200":"铜川市","610300":"宝鸡市","610400":"咸阳市","610500":"渭南市","610600":"延安市","610700":"汉中市","610800":"榆林市","610900":"安康市","611000":"商洛市"},"610100":{"610101":"市辖区","610102":"新城区","610103":"碑林区","610104":"莲湖区","610111":"灞桥区","610112":"未央区","610113":"雁塔区","610114":"阎良区","610115":"临潼区","610116":"长安区","610117":"高陵区","610118":"鄠邑区","610122":"蓝田县","610124":"周至县"},"610200":{"610201":"市辖区","610202":"王益区","610203":"印台区","610204":"耀州区","610222":"宜君县"},"610300":{"610301":"市辖区","610302":"渭滨区","610303":"金台区","610304":"陈仓区","610322":"凤翔县","610323":"岐山县","610324":"扶风县","610326":"眉县","610327":"陇县","610328":"千阳县","610329":"麟游县","610330":"凤县","610331":"太白县"},"610400":{"610401":"市辖区","610402":"秦都区","610403":"杨陵区","610404":"渭城区","610422":"三原县","610423":"泾阳县","610424":"乾县","610425":"礼泉县","610426":"永寿县","610428":"长武县","610429":"旬邑县","610430":"淳化县","610431":"武功县","610481":"兴平市","610482":"彬州市"},"610500":{"610501":"市辖区","610502":"临渭区","610503":"华州区","610522":"潼关县","610523":"大荔县","610524":"合阳县","610525":"澄城县","610526":"蒲城县","610527":"白水县","610528":"富平县","610581":"韩城市","610582":"华阴市"},"610600":{"610601":"市辖区","610602":"宝塔区","610603":"安塞区","610621":"延长县","610622":"延川县","610625":"志丹县","610626":"吴起县","610627":"甘泉县","610628":"富县","610629":"洛川县","610630":"宜川县","610631":"黄龙县","610632":"黄陵县","610681":"子长市"},"610700":{"610701":"市辖区","610702":"汉台区","610703":"南郑区","610722":"城固县","610723":"洋县","610724":"西乡县","610725":"勉县","610726":"宁强县","610727":"略阳县","610728":"镇巴县","610729":"留坝县","610730":"佛坪县"},"610800":{"610801":"市辖区","610802":"榆阳区","610803":"横山区","610822":"府谷县","610824":"靖边县","610825":"定边县","610826":"绥德县","610827":"米脂县","610828":"佳县","610829":"吴堡县","610830":"清涧县","610831":"子洲县","610881":"神木市"},"610900":{"610901":"市辖区","610902":"汉滨区","610921":"汉阴县","610922":"石泉县","610923":"宁陕县","610924":"紫阳县","610925":"岚皋县","610926":"平利县","610927":"镇坪县","610928":"旬阳县","610929":"白河县"},"611000":{"611001":"市辖区","611002":"商州区","611021":"洛南县","611022":"丹凤县","611023":"商南县","611024":"山阳县","611025":"镇安县","611026":"柞水县"},"620000":{"620100":"兰州市","620200":"嘉峪关市","620300":"金昌市","620400":"白银市","620500":"天水市","620600":"武威市","620700":"张掖市","620800":"平凉市","620900":"酒泉市","621000":"庆阳市","621100":"定西市","621200":"陇南市","622900":"临夏回族自治州","623000":"甘南藏族自治州"},"620100":{"620101":"市辖区","620102":"城关区","620103":"七里河区","620104":"西固区","620105":"安宁区","620111":"红古区","620121":"永登县","620122":"皋兰县","620123":"榆中县","620171":"兰州新区"},"620200":{"620201":"市辖区"},"620300":{"620301":"市辖区","620302":"金川区","620321":"永昌县"},"620400":{"620401":"市辖区","620402":"白银区","620403":"平川区","620421":"靖远县","620422":"会宁县","620423":"景泰县"},"620500":{"620501":"市辖区","620502":"秦州区","620503":"麦积区","620521":"清水县","620522":"秦安县","620523":"甘谷县","620524":"武山县","620525":"张家川回族自治县"},"620600":{"620601":"市辖区","620602":"凉州区","620621":"民勤县","620622":"古浪县","620623":"天祝藏族自治县"},"620700":{"620701":"市辖区","620702":"甘州区","620721":"肃南裕固族自治县","620722":"民乐县","620723":"临泽县","620724":"高台县","620725":"山丹县"},"620800":{"620801":"市辖区","620802":"崆峒区","620821":"泾川县","620822":"灵台县","620823":"崇信县","620825":"庄浪县","620826":"静宁县","620881":"华亭市"},"620900":{"620901":"市辖区","620902":"肃州区","620921":"金塔县","620922":"瓜州县","620923":"肃北蒙古族自治县","620924":"阿克塞哈萨克族自治县","620981":"玉门市","620982":"敦煌市"},"621000":{"621001":"市辖区","621002":"西峰区","621021":"庆城县","621022":"环县","621023":"华池县","621024":"合水县","621025":"正宁县","621026":"宁县","621027":"镇原县"},"621100":{"621101":"市辖区","621102":"安定区","621121":"通渭县","621122":"陇西县","621123":"渭源县","621124":"临洮县","621125":"漳县","621126":"岷县"},"621200":{"621201":"市辖区","621202":"武都区","621221":"成县","621222":"文县","621223":"宕昌县","621224":"康县","621225":"西和县","621226":"礼县","621227":"徽县","621228":"两当县"},"622900":{"622901":"临夏市","622921":"临夏县","622922":"康乐县","622923":"永靖县","622924":"广河县","622925":"和政县","622926":"东乡族自治县","622927":"积石山保安族东乡族撒拉族自治县"},"623000":{"623001":"合作市","623021":"临潭县","623022":"卓尼县","623023":"舟曲县","623024":"迭部县","623025":"玛曲县","623026":"碌曲县","623027":"夏河县"},"630000":{"630100":"西宁市","630200":"海东市","632200":"海北藏族自治州","632300":"黄南藏族自治州","632500":"海南藏族自治州","632600":"果洛藏族自治州","632700":"玉树藏族自治州","632800":"海西蒙古族藏族自治州"},"630100":{"630101":"市辖区","630102":"城东区","630103":"城中区","630104":"城西区","630105":"城北区","630121":"大通回族土族自治县","630122":"湟中县","630123":"湟源县"},"630200":{"630202":"乐都区","630203":"平安区","630222":"民和回族土族自治县","630223":"互助土族自治县","630224":"化隆回族自治县","630225":"循化撒拉族自治县"},"632200":{"632221":"门源回族自治县","632222":"祁连县","632223":"海晏县","632224":"刚察县"},"632300":{"632321":"同仁县","632322":"尖扎县","632323":"泽库县","632324":"河南蒙古族自治县"},"632500":{"632521":"共和县","632522":"同德县","632523":"贵德县","632524":"兴海县","632525":"贵南县"},"632600":{"632621":"玛沁县","632622":"班玛县","632623":"甘德县","632624":"达日县","632625":"久治县","632626":"玛多县"},"632700":{"632701":"玉树市","632722":"杂多县","632723":"称多县","632724":"治多县","632725":"囊谦县","632726":"曲麻莱县"},"632800":{"632801":"格尔木市","632802":"德令哈市","632803":"茫崖市","632821":"乌兰县","632822":"都兰县","632823":"天峻县","632857":"大柴旦行政委员会"},"640000":{"640100":"银川市","640200":"石嘴山市","640300":"吴忠市","640400":"固原市","640500":"中卫市"},"640100":{"640101":"市辖区","640104":"兴庆区","640105":"西夏区","640106":"金凤区","640121":"永宁县","640122":"贺兰县","640181":"灵武市"},"640200":{"640201":"市辖区","640202":"大武口区","640205":"惠农区","640221":"平罗县"},"640300":{"640301":"市辖区","640302":"利通区","640303":"红寺堡区","640323":"盐池县","640324":"同心县","640381":"青铜峡市"},"640400":{"640401":"市辖区","640402":"原州区","640422":"西吉县","640423":"隆德县","640424":"泾源县","640425":"彭阳县"},"640500":{"640501":"市辖区","640502":"沙坡头区","640521":"中宁县","640522":"海原县"},"650000":{"650100":"乌鲁木齐市","650200":"克拉玛依市","650400":"吐鲁番市","650500":"哈密市","652300":"昌吉回族自治州","652700":"博尔塔拉蒙古自治州","652800":"巴音郭楞蒙古自治州","652900":"阿克苏地区","653000":"克孜勒苏柯尔克孜自治州","653100":"喀什地区","653200":"和田地区","654000":"伊犁哈萨克自治州","654200":"塔城地区","654300":"阿勒泰地区","659000":"自治区直辖县级行政区划"},"650100":{"650101":"市辖区","650102":"天山区","650103":"沙依巴克区","650104":"新市区","650105":"水磨沟区","650106":"头屯河区","650107":"达坂城区","650109":"米东区","650121":"乌鲁木齐县"},"650200":{"650201":"市辖区","650202":"独山子区","650203":"克拉玛依区","650204":"白碱滩区","650205":"乌尔禾区"},"650400":{"650402":"高昌区","650421":"鄯善县","650422":"托克逊县"},"650500":{"650502":"伊州区","650521":"巴里坤哈萨克自治县","650522":"伊吾县"},"652300":{"652301":"昌吉市","652302":"阜康市","652323":"呼图壁县","652324":"玛纳斯县","652325":"奇台县","652327":"吉木萨尔县","652328":"木垒哈萨克自治县"},"652700":{"652701":"博乐市","652702":"阿拉山口市","652722":"精河县","652723":"温泉县"},"652800":{"652801":"库尔勒市","652822":"轮台县","652823":"尉犁县","652824":"若羌县","652825":"且末县","652826":"焉耆回族自治县","652827":"和静县","652828":"和硕县","652829":"博湖县","652871":"库尔勒经济技术开发区"},"652900":{"652901":"阿克苏市","652922":"温宿县","652923":"库车县","652924":"沙雅县","652925":"新和县","652926":"拜城县","652927":"乌什县","652928":"阿瓦提县","652929":"柯坪县"},"653000":{"653001":"阿图什市","653022":"阿克陶县","653023":"阿合奇县","653024":"乌恰县"},"653100":{"653101":"喀什市","653121":"疏附县","653122":"疏勒县","653123":"英吉沙县","653124":"泽普县","653125":"莎车县","653126":"叶城县","653127":"麦盖提县","653128":"岳普湖县","653129":"伽师县","653130":"巴楚县","653131":"塔什库尔干塔吉克自治县"},"653200":{"653201":"和田市","653221":"和田县","653222":"墨玉县","653223":"皮山县","653224":"洛浦县","653225":"策勒县","653226":"于田县","653227":"民丰县"},"654000":{"654002":"伊宁市","654003":"奎屯市","654004":"霍尔果斯市","654021":"伊宁县","654022":"察布查尔锡伯自治县","654023":"霍城县","654024":"巩留县","654025":"新源县","654026":"昭苏县","654027":"特克斯县","654028":"尼勒克县"},"654200":{"654201":"塔城市","654202":"乌苏市","654221":"额敏县","654223":"沙湾县","654224":"托里县","654225":"裕民县","654226":"和布克赛尔蒙古自治县"},"654300":{"654301":"阿勒泰市","654321":"布尔津县","654322":"富蕴县","654323":"福海县","654324":"哈巴河县","654325":"青河县","654326":"吉木乃县"},"659000":{"659001":"石河子市","659002":"阿拉尔市","659003":"图木舒克市","659004":"五家渠市","659006":"铁门关市"},"710000":{"710100":"台北市","710200":"高雄市","710300":"基隆市","710400":"台中市","710500":"台南市","710600":"新竹市","710700":"嘉义市"},"710100":{"710101":"内湖区","710102":"南港区","710103":"中正区","710104":"松山区","710105":"信义区","710106":"大安区","710107":"中山区","710108":"文山区","710109":"大同区","710110":"万华区","710111":"士林区","710112":"北投区"},"710200":{"710201":"新兴区","710202":"前金区","710203":"芩雅区","710204":"盐埕区","710205":"鼓山区","710206":"旗津区","710207":"前镇区","710208":"三民区","710209":"左营区","710210":"楠梓区","710211":"小港区"},"710300":{"710301":"仁爱区","710302":"信义区","710303":"中正区","710304":"暖暖区","710305":"安乐区","710307":"七堵区"},"710400":{"710301":"中区","710302":"东区","710303":"南区","710304":"西区","710305":"北区","710306":"北屯区","710307":"西屯区","710308":"南屯区"},"710500":{"710501":"中西区","710502":"东区","710503":"南区","710504":"北区","710505":"安平区","710506":"安南区"},"710600":{"710601":"东区","710602":"北区","710603":"香山区"},"710700":{"710701":"东区","710702":"西区"},"810000":{"810001":"中西區","810002":"灣仔區","810003":"東區","810004":"南區","810005":"油尖旺區","810006":"深水埗區","810007":"九龍城區","810008":"黃大仙區","810009":"觀塘區","810010":"荃灣區","810011":"屯門區","810012":"元朗區","810013":"北區","810014":"大埔區","810015":"西貢區","810016":"沙田區","810017":"葵青區","810018":"離島區"},"820000":{"820001":"花地瑪堂區","820002":"花王堂區","820003":"望德堂區","820004":"大堂區","820005":"風順堂區","820006":"嘉模堂區","820007":"路氹填海區","820008":"聖方濟各堂區"}}')},"23cb":function(t,e,n){"use strict";var r=n("5926"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},"23dc":function(t,e,n){"use strict";n("d44e")(Math,"Math",!0)},"23e7":function(t,e,n){"use strict";var r=n("cfe9"),o=n("06cf").f,i=n("9112"),a=n("cb2d"),u=n("6374"),c=n("e893"),s=n("94ca");t.exports=function(t,e){var n,l,f,d,m,p=t.target,h=t.global,g=t.stat;if(n=h?r:g?r[p]||u(p,{}):r[p]&&r[p].prototype)for(l in e){if(d=e[l],f=t.dontCallGetSet?(m=o(n,l))&&m.value:n[l],!s(h?l:p+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(t.sham||f&&f.sham)&&i(d,"sham",!0),a(n,l,d,t)}}},2401:function(t,e){!function(){"use strict";var t,e,n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(t){return function(e){return r=typeof(n=e),(null===n?"null":"object"===r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===t;var n,r}},o=function(t){return function(e){return typeof e===t}},i=r("string"),a=r("object"),u=r("array"),c=o("boolean"),s=o("function"),l=o("number"),f=function(){},d=function(t){return function(){return t}},m=function(t){return t},p=function(t,e){return t===e},h=function(t){return function(e){return!t(e)}},g=d(!1),v=d(!0),b=function(){return y},y={fold:function(t,e){return t()},isSome:g,isNone:v,getOr:e=m,getOrThunk:t=function(t){return t()},getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:e,orThunk:t,map:b,each:f,bind:b,exists:g,forall:v,filter:function(){return b()},toArray:function(){return[]},toString:d("none()")},_=function(t){var e=d(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:v,isNone:g,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return _(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:y},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},w={some:_,none:b,from:function(t){return null==t?y:_(t)}},x=Array.prototype.slice,O=Array.prototype.push,S=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},C=function(t,e){for(var n=0,r=t.length;n<r;n++){e(t[n],n)}},E=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n},k=function(t,e,n){return C(t,(function(t,r){n=e(n,t,r)})),n},T=function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return w.some(i);if(n(i,r))break}return w.none()},M=function(t,e){return T(t,e,g)},D=function(t,e){return function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!u(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);O.apply(e,t[n])}return e}(S(t,e))},A=function(t){var e=x.call(t,0);return e.reverse(),e},P=function(t,e){return e>=0&&e<t.length?w.some(t[e]):w.none()},R=function(t){return P(t,0)},I=function(t){return P(t,t.length-1)},z=function(){return(z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};var j,L=function(){return B(0,0)},B=function(t,e){return{major:t,minor:e}},F={nu:B,detect:function(t,e){var n=String(e).toLowerCase();return 0===t.length?L():function(t,e){var n=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}}(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return B(r(1),r(2))}(t,n)},unknown:L},N=function(t,e){return function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return w.none()}(e.brands,(function(e){var n=e.brand.toLowerCase();return M(t,(function(t){var e;return n===(null===(e=t.brand)||void 0===e?void 0:e.toLowerCase())})).map((function(t){return{current:t.name,version:F.nu(parseInt(e.version,10),0)}}))}))},H=function(t,e){var n=String(e).toLowerCase();return M(t,(function(t){return t.search(n)}))},V=function(t,e){return-1!==t.indexOf(e)},U=(j=/^\s+|\s+$/g,function(t){return t.replace(j,"")}),W=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,$=function(t){return function(e){return V(e,t)}},G=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return V(t,"edge/")&&V(t,"chrome")&&V(t,"safari")&&V(t,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,W],search:function(t){return V(t,"chrome")&&!V(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return V(t,"msie")||V(t,"trident")}},{name:"Opera",versionRegexes:[W,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:$("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:$("firefox")},{name:"Safari",versionRegexes:[W,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(V(t,"safari")||V(t,"mobile/"))&&V(t,"applewebkit")}}],K=[{name:"Windows",search:$("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return V(t,"iphone")||V(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:$("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:$("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:$("linux"),versionRegexes:[]},{name:"Solaris",search:$("sunos"),versionRegexes:[]},{name:"FreeBSD",search:$("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:$("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],q={browsers:d(G),oses:d(K)},X=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r("Edge"),isChrome:r("Chrome"),isIE:r("IE"),isOpera:r("Opera"),isFirefox:r("Firefox"),isSafari:r("Safari")}},Y={unknown:function(){return X({current:void 0,version:F.unknown()})},nu:X,edge:d("Edge"),chrome:d("Chrome"),ie:d("IE"),opera:d("Opera"),firefox:d("Firefox"),safari:d("Safari")},J=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r("Windows"),isiOS:r("iOS"),isAndroid:r("Android"),isOSX:r("OSX"),isLinux:r("Linux"),isSolaris:r("Solaris"),isFreeBSD:r("FreeBSD"),isChromeOS:r("ChromeOS")}},Q={unknown:function(){return J({current:void 0,version:F.unknown()})},nu:J,windows:d("Windows"),ios:d("iOS"),android:d("Android"),linux:d("Linux"),osx:d("OSX"),solaris:d("Solaris"),freebsd:d("FreeBSD"),chromeos:d("ChromeOS")},Z=function(t,e,n){var r=q.browsers(),o=q.oses(),i=e.bind((function(t){return N(r,t)})).orThunk((function(){return function(t,e){return H(t,e).map((function(t){var n=F.detect(t.versionRegexes,e);return{current:t.name,version:n}}))}(r,t)})).fold(Y.unknown,Y.nu),a=function(t,e){return H(t,e).map((function(t){var n=F.detect(t.versionRegexes,e);return{current:t.name,version:n}}))}(o,t).fold(Q.unknown,Q.nu),u=function(t,e,n,r){var o=t.isiOS()&&!0===/ipad/i.test(n),i=t.isiOS()&&!o,a=t.isiOS()||t.isAndroid(),u=a||r("(pointer:coarse)"),c=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!c,l=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),f=!s&&!c&&!l;return{isiPad:d(o),isiPhone:d(i),isTablet:d(c),isPhone:d(s),isTouch:d(u),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:d(l),isDesktop:d(f)}}(a,i,t,n);return{browser:i,os:a,deviceType:u}},tt=function(t){return window.matchMedia(t).matches},et=function(t){var e,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,e=t.apply(null,r)),e}}((function(){return Z(navigator.userAgent,w.from(navigator.userAgentData),tt)})),nt=function(t){if(null==t)throw new Error("Node cannot be null or undefined");return{dom:t}},rt={fromHtml:function(t,e){var n=(e||document).createElement("div");if(n.innerHTML=t,!n.hasChildNodes()||n.childNodes.length>1)throw new Error("HTML must have a single root node");return nt(n.childNodes[0])},fromTag:function(t,e){var n=(e||document).createElement(t);return nt(n)},fromText:function(t,e){var n=(e||document).createTextNode(t);return nt(n)},fromDom:nt,fromPoint:function(t,e,n){return w.from(t.dom.elementFromPoint(e,n)).map(nt)}},ot=function(t,e){return t.dom===e.dom},it=function(t,e){return n=t.dom,r=e.dom,function(t,e,n){return 0!=(t.compareDocumentPosition(e)&n)}(n,r,Node.DOCUMENT_POSITION_CONTAINED_BY);var n,r},at=function(t,e){return et().browser.isIE()?it(t,e):function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)}(t,e)},ut=function(t,e){var n=t.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},ct=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),st=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),lt=tinymce.util.Tools.resolve("tinymce.util.VK"),ft=Object.keys,dt=function(t,e){for(var n=ft(t),r=0,o=n.length;r<o;r++){var i=n[r];e(t[i],i)}},mt=function(t,e){var n={};return function(t,e,n,r){dt(t,(function(t,o){(e(t,o)?n:r)(t,o)}))}(t,e,function(t){return function(e,n){t[n]=e}}(n),f),n};"undefined"!=typeof window?window:Function("return this;")();var pt,ht=function(t){return t.dom.nodeName.toLowerCase()},gt=(pt=1,function(t){return function(t){return t.dom.nodeType}(t)===pt}),vt=function(t){return function(e){return gt(e)&&ht(e)===t}},bt=function(t,e){var n=t.dom;dt(e,(function(t,e){!function(t,e,n){if(!(i(n)||c(n)||l(n)))throw new Error("Attribute value was not simple");t.setAttribute(e,n+"")}(n,e,t)}))},yt=function(t){return k(t.dom.attributes,(function(t,e){return t[e.name]=e.value,t}),{})},_t=function(t){return w.from(t.dom.parentNode).map(rt.fromDom)},wt=function(t){return S(t.dom.childNodes,rt.fromDom)},xt=function(t,e){var n=t.dom.childNodes;return w.from(n[e]).map(rt.fromDom)},Ot=function(t){return xt(t,0)},St=function(t){return xt(t,t.dom.childNodes.length-1)},Ct=function(t,e){_t(t).each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},Et=function(t,e){t.dom.appendChild(e.dom)},kt=function(t,e){C(e,(function(e){Et(t,e)}))},Tt=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},Mt=function(t){return function(t,e){return rt.fromDom(t.dom.cloneNode(e))}(t,!0)},Dt=function(t,e){var n=function(t,e){var n=rt.fromTag(e),r=yt(t);return bt(n,r),n}(t,e);Ct(t,n);var r=wt(t);return kt(n,r),Tt(t),n},At=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Pt=tinymce.util.Tools.resolve("tinymce.util.Tools"),Rt=function(t){return function(e){return e&&e.nodeName.toLowerCase()===t}},It=function(t){return function(e){return e&&t.test(e.nodeName)}},zt=function(t){return t&&3===t.nodeType},jt=It(/^(OL|UL|DL)$/),Lt=It(/^(OL|UL)$/),Bt=Rt("ol"),Ft=It(/^(LI|DT|DD)$/),Nt=It(/^(DT|DD)$/),Ht=It(/^(TH|TD)$/),Vt=Rt("br"),Ut=function(t,e){return e&&!!t.schema.getTextBlockElements()[e.nodeName]},Wt=function(t,e){return t&&t.nodeName in e},$t=function(t,e,n){var r=t.isEmpty(e);return!(n&&t.select("span[data-mce-type=bookmark]",e).length>0)&&r},Gt=function(t,e){return t.isChildOf(e,t.getRoot())},Kt=function(t,e){var n,r,o,i=t.dom,a=t.schema.getBlockElements(),u=i.createFragment(),c=function(t){var e=t.getParam("forced_root_block","p");return!1===e?"":!0===e?"p":e}(t);if(c&&((r=i.create(c)).tagName===c.toUpperCase()&&i.setAttribs(r,function(t){return t.getParam("forced_root_block_attrs",{})}(t)),Wt(e.firstChild,a)||u.appendChild(r)),e)for(;n=e.firstChild;){var s=n.nodeName;o||"SPAN"===s&&"bookmark"===n.getAttribute("data-mce-type")||(o=!0),Wt(n,a)?(u.appendChild(n),r=null):c?(r||(r=i.create(c),u.appendChild(r)),r.appendChild(n)):u.appendChild(n)}return c?o||r.appendChild(i.create("br",{"data-mce-bogus":"1"})):u.appendChild(i.create("br")),u},qt=At.DOM,Xt=vt("dd"),Yt=vt("dt"),Jt=function(t,e){Xt(e)?Dt(e,"dt"):Yt(e)&&_t(e).each((function(n){return function(t,e,n){var r=qt.select('span[data-mce-type="bookmark"]',e),o=Kt(t,n),i=qt.createRng();i.setStartAfter(n),i.setEndAfter(e);for(var a,u=i.extractContents(),c=u.firstChild;c;c=c.firstChild)if("LI"===c.nodeName&&t.dom.isEmpty(c)){qt.remove(c);break}t.dom.isEmpty(u)||qt.insertAfter(u,e),qt.insertAfter(o,e),$t(t.dom,n.parentNode)&&(a=n.parentNode,Pt.each(r,(function(t){a.parentNode.insertBefore(t,n.parentNode)})),qt.remove(a)),qt.remove(n),$t(t.dom,e)&&qt.remove(e)}(t,n.dom,e.dom)}))},Qt=function(t){Yt(t)&&Dt(t,"dd")},Zt=function(t,e){if(zt(t))return{container:t,offset:e};var n=ct.getNode(t,e);return zt(n)?{container:n,offset:e>=t.childNodes.length?n.data.length:0}:n.previousSibling&&zt(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&zt(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:t,offset:e}},te=function(t){var e=t.cloneRange(),n=Zt(t.startContainer,t.startOffset);e.setStart(n.container,n.offset);var r=Zt(t.endContainer,t.endOffset);return e.setEnd(r.container,r.offset),e},ee=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),ne=function(t,e){var n=e||t.selection.getStart(!0);return t.dom.getParent(n,"OL,UL,DL",ie(t,n))},re=function(t){var e=ne(t),n=t.selection.getSelectedBlocks();return function(t,e){return t&&1===e.length&&e[0]===t}(e,n)?function(t){return E(t.querySelectorAll("ol,ul,dl"),jt)}(e):E(n,(function(t){return jt(t)&&e!==t}))},oe=function(t){var e=t.selection.getSelectedBlocks();return E(function(t,e){var n=Pt.map(e,(function(e){var n=t.dom.getParent(e,"li,dd,dt",ie(t,e));return n||e}));return ee.unique(n)}(t,e),Ft)},ie=function(t,e){var n=t.dom.getParents(e,"TD,TH");return n.length>0?n[0]:t.getBody()},ae=function(t,e){var n=t.dom.getParents(e,"ol,ul",ie(t,e));return I(n)},ue=function(t){var e=function(t){var e=ae(t,t.selection.getStart()),n=E(t.selection.getSelectedBlocks(),Lt);return e.toArray().concat(n)}(t);return ce(t,e)},ce=function(t,e){var n=S(e,(function(e){return ae(t,e).getOr(e)}));return ee.unique(n)},se=function(t,e,n){return void 0===n&&(n=p),t.exists((function(t){return n(t,e)}))},le=function(t,e,n){return t.isSome()&&e.isSome()?w.some(n(t.getOrDie(),e.getOrDie())):w.none()},fe=function(t,e,n){return t.fire("ListMutation",{action:e,element:n})},de=function(t,e,n){if(!i(n))throw new Error("CSS value must be a string: "+n);(function(t){return void 0!==t.style&&s(t.style.getPropertyValue)})(t)&&t.style.setProperty(e,n)},me=function(t,e){Et(t.item,e.list)},pe=function(t,e){var n={list:rt.fromTag(e,t),item:rt.fromTag("li",t)};return Et(n.list,n.item),n},he=function(t,e,n){var r=e.slice(0,n.depth);return I(r).each((function(e){!function(t,e){Et(t.list,e),t.item=e}(e,function(t,e,n){var r=rt.fromTag("li",t);return bt(r,e),kt(r,n),r}(t,n.itemAttributes,n.content)),function(t,e){ht(t.list)!==e.listType&&(t.list=Dt(t.list,e.listType)),bt(t.list,e.listAttributes)}(e,n)})),r},ge=function(t,e,n){var r,o=function(t,e,n){for(var r=[],o=0;o<n;o++)r.push(pe(t,e.listType));return r}(t,n,n.depth-e.length);return function(t){for(var e=1;e<t.length;e++)me(t[e-1],t[e])}(o),function(t,e){for(var n=0;n<t.length-1;n++)r=t[n].item,o="list-style-type",i="none",a=void 0,a=r.dom,de(a,o,i);var r,o,i,a;I(t).each((function(t){bt(t.list,e.listAttributes),bt(t.item,e.itemAttributes),kt(t.item,e.content)}))}(o,n),r=o,le(I(e),R(r),me),e.concat(o)},ve=function(t){return ut(t,"OL,UL")},be=function(t){return Ot(t).exists(ve)},ye=function(t){return t.depth>0},_e=function(t){return t.isSelected},we=function(t){var e=wt(t),n=St(t).exists(ve)?e.slice(0,-1):e;return S(n,Mt)},xe=function(t){return C(t,(function(e,n){(function(t,e){var n=t[e].depth,r=function(t){return t.depth===n&&!t.dirty},o=function(t){return t.depth<n};return T(A(t.slice(0,e)),r,o).orThunk((function(){return T(t.slice(e+1),r,o)}))})(t,n).fold((function(){e.dirty&&function(t){t.listAttributes=mt(t.listAttributes,(function(t,e){return"start"!==e}))}(e)}),(function(t){return r=t,(n=e).listType=r.listType,void(n.listAttributes=z({},r.listAttributes));var n,r}))})),t},Oe=function(t,e,n,r){return Ot(r).filter(ve).fold((function(){e.each((function(t){ot(t.start,r)&&n.set(!0)}));var o=function(t,e,n){return _t(t).filter(gt).map((function(r){return{depth:e,dirty:!1,isSelected:n,content:we(t),itemAttributes:yt(t),listAttributes:yt(r),listType:ht(r)}}))}(r,t,n.get());e.each((function(t){ot(t.end,r)&&n.set(!1)}));var i=St(r).filter(ve).map((function(r){return Se(t,e,n,r)})).getOr([]);return o.toArray().concat(i)}),(function(r){return Se(t,e,n,r)}))},Se=function(t,e,n,r){return D(wt(r),(function(r){return(ve(r)?Se:Oe)(t+1,e,n,r)}))},Ce=function(t,e){var n=xe(e);return S(n,(function(e){var n,r,o,i=(n=e.content,o=(r||document).createDocumentFragment(),C(n,(function(t){o.appendChild(t.dom)})),rt.fromDom(o));return rt.fromDom(Kt(t,i.dom))}))},Ee=function(t,e){var n=xe(e);return function(t,e){var n=k(e,(function(e,n){return n.depth>e.length?ge(t,e,n):he(t,e,n)}),[]);return R(n).map((function(t){return t.list}))}(t.contentDocument,n).toArray()},ke=function(t,e,n){var r=function(t,e){var n,r=(n=!1,{get:function(){return n},set:function(t){n=t}});return S(t,(function(t){return{sourceList:t,entries:Se(0,e,r,t)}}))}(e,function(t){var e=S(oe(t),rt.fromDom);return le(M(e,h(be)),M(A(e),h(be)),(function(t,e){return{start:t,end:e}}))}(t));C(r,(function(e){!function(t,e){C(E(t,_e),(function(t){return function(t,e){switch(t){case"Indent":e.depth++;break;case"Outdent":e.depth--;break;case"Flatten":e.depth=0}e.dirty=!0}(e,t)}))}(e.entries,n);var r,o=function(t,e){return D(function(t,e){if(0===t.length)return[];for(var n=e(t[0]),r=[],o=[],i=0,a=t.length;i<a;i++){var u=t[i],c=e(u);c!==n&&(r.push(o),o=[]),n=c,o.push(u)}return 0!==o.length&&r.push(o),r}(e,ye),(function(e){return R(e).exists(ye)?Ee(t,e):Ce(t,e)}))}(t,e.entries);C(o,(function(e){fe(t,"Indent"===n?"IndentList":"OutdentList",e.dom)})),r=e.sourceList,C(o,(function(t){Ct(r,t)})),Tt(e.sourceList)}))},Te=function(t,e){var n=S(ue(t),rt.fromDom),r=S(function(t){return E(oe(t),Nt)}(t),rt.fromDom),o=!1;if(n.length||r.length){var i=t.selection.getBookmark();ke(t,n,e),function(t,e,n){C(n,"Indent"===e?Qt:function(e){return Jt(t,e)})}(t,e,r),t.selection.moveToBookmark(i),t.selection.setRng(te(t.selection.getRng())),t.nodeChanged(),o=!0}return o},Me=function(t){return Te(t,"Indent")},De=function(t){return Te(t,"Outdent")},Ae=function(t){return Te(t,"Flatten")},Pe=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),Re=At.DOM,Ie=function(t){var e={},n=function(n){var r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];if(1===r.nodeType){var i=Re.create("span",{"data-mce-type":"bookmark"});r.hasChildNodes()?(o=Math.min(o,r.childNodes.length-1),n?r.insertBefore(i,r.childNodes[o]):Re.insertAfter(i,r.childNodes[o])):r.appendChild(i),r=i,o=0}e[n?"startContainer":"endContainer"]=r,e[n?"startOffset":"endOffset"]=o};return n(!0),t.collapsed||n(),e},ze=function(t){var e=function(e){var n,r=n=t[e?"startContainer":"endContainer"],o=t[e?"startOffset":"endOffset"];r&&(1===r.nodeType&&(o=function(t){for(var e=t.parentNode.firstChild,n=0;e;){if(e===t)return n;1===e.nodeType&&"bookmark"===e.getAttribute("data-mce-type")||n++,e=e.nextSibling}return-1}(r),r=r.parentNode,Re.remove(n),!r.hasChildNodes()&&Re.isBlock(r)&&r.appendChild(Re.create("br"))),t[e?"startContainer":"endContainer"]=r,t[e?"startOffset":"endOffset"]=o)};e(!0),e();var n=Re.createRng();return n.setStart(t.startContainer,t.startOffset),t.endContainer&&n.setEnd(t.endContainer,t.endOffset),te(n)},je=function(t){switch(t){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},Le=function(t){return/\btox\-/.test(t.className)},Be=function(t,e,n){var r=function(t){var r=T(t.parents,jt,Ht).filter((function(t){return t.nodeName===e&&!Le(t)})).isSome();n(r)},o=t.dom.getParents(t.selection.getNode());return r({parents:o}),t.on("NodeChange",r),function(){return t.off("NodeChange",r)}},Fe=function(t,e){Pt.each(e,(function(e,n){t.setAttribute(n,e)}))},Ne=function(t,e,n){!function(t,e,n){var r=n["list-style-type"]?n["list-style-type"]:null;t.setStyle(e,"list-style-type",r)}(t,e,n),function(t,e,n){Fe(e,n["list-attributes"]),Pt.each(t.select("li",e),(function(t){Fe(t,n["list-item-attributes"])}))}(t,e,n)},He=function(t,e,n,r){var o=e[n?"startContainer":"endContainer"],i=e[n?"startOffset":"endOffset"];for(1===o.nodeType&&(o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o),!n&&Vt(o.nextSibling)&&(o=o.nextSibling);o.parentNode!==r;){if(Ut(t,o))return o;if(/^(TD|TH)$/.test(o.parentNode.nodeName))return o;o=o.parentNode}return o},Ve=function(t,e,n){var r=t.selection.getRng(),o="LI",i=ie(t,t.selection.getStart(!0)),a=t.dom;if("false"!==a.getContentEditable(t.selection.getNode())){"DL"===(e=e.toUpperCase())&&(o="DT");var u=Ie(r),c=function(t,e,n){for(var r,o=[],i=t.dom,a=He(t,e,!0,n),u=He(t,e,!1,n),c=[],s=a;s&&(c.push(s),s!==u);s=s.nextSibling);return Pt.each(c,(function(e){if(Ut(t,e))return o.push(e),void(r=null);if(i.isBlock(e)||Vt(e))return Vt(e)&&i.remove(e),void(r=null);var a=e.nextSibling;Pe.isBookmarkNode(e)&&(jt(a)||Ut(t,a)||!a&&e.parentNode===n)?r=null:(r||(r=i.create("p"),e.parentNode.insertBefore(r,e),o.push(r)),r.appendChild(e))})),o}(t,r,i);Pt.each(c,(function(r){var i,u=r.previousSibling,c=r.parentNode;Ft(c)||(u&&jt(u)&&u.nodeName===e&&function(t,e,n){var r=t.getStyle(e,"list-style-type"),o=n?n["list-style-type"]:"";return r===(o=null===o?"":o)}(a,u,n)?(i=u,r=a.rename(r,o),u.appendChild(r)):(i=a.create(e),r.parentNode.insertBefore(i,r),i.appendChild(r),r=a.rename(r,o)),function(t,e,n){Pt.each(n,(function(n){var r;return t.setStyle(e,((r={})[n]="",r))}))}(a,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),Ne(a,i,n),We(t.dom,i))})),t.selection.setRng(ze(u))}},Ue=function(t,e,n){return function(t,e){return t&&e&&jt(t)&&t.nodeName===e.nodeName}(e,n)&&function(t,e,n){return t.getStyle(e,"list-style-type",!0)===t.getStyle(n,"list-style-type",!0)}(t,e,n)&&(r=n,e.className===r.className);var r},We=function(t,e){var n,r;if(n=e.nextSibling,Ue(t,e,n)){for(;r=n.firstChild;)e.appendChild(r);t.remove(n)}if(n=e.previousSibling,Ue(t,e,n)){for(;r=n.lastChild;)e.insertBefore(r,e.firstChild);t.remove(n)}},$e=function(t,e,n,r,o){var i=jt(e);if(i&&e.nodeName===r&&!Ge(o))Ae(t);else{Ve(t,r,o);var a=Ie(t.selection.getRng()),u=i?function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([e],n,!0):n;Pt.each(u,(function(e){!function(t,e,n,r){if(e.nodeName!==n){var o=t.dom.rename(e,n);Ne(t.dom,o,r),fe(t,je(n),o)}else Ne(t.dom,e,r),fe(t,je(n),e)}(t,e,r,o)})),t.selection.setRng(ze(a))}},Ge=function(t){return"list-style-type"in t},Ke=function(t,e,n){var r=ne(t),o=re(t),i=a(n)?n:{};o.length>0?$e(t,r,o,e,i):function(t,e,n,r){if(e!==t.getBody())if(e)if(e.nodeName!==n||Ge(r)||Le(e)){var o=Ie(t.selection.getRng());Ne(t.dom,e,r);var i=t.dom.rename(e,n);We(t.dom,i),t.selection.setRng(ze(o)),Ve(t,n,r),fe(t,je(n),i)}else Ae(t);else Ve(t,n,r),fe(t,je(n),e)}(t,r,e,i)},qe=At.DOM,Xe=function(t,e){var n=Pt.grep(t.select("ol,ul",e));Pt.each(n,(function(e){!function(t,e){var n,r=e.parentNode;"LI"===r.nodeName&&r.firstChild===e&&((n=r.previousSibling)&&"LI"===n.nodeName?(n.appendChild(e),$t(t,r)&&qe.remove(r)):qe.setStyle(r,"listStyleType","none"));jt(r)&&((n=r.previousSibling)&&"LI"===n.nodeName&&n.appendChild(e))}(t,e)}))},Ye=function(t,e,n,r){var o=e.startContainer,i=e.startOffset;if(zt(o)&&(n?i<o.data.length:i>0))return o;var a=t.schema.getNonEmptyElements();1===o.nodeType&&(o=ct.getNode(o,i));var u=new st(o,r);for(n&&function(t,e){return!!Vt(e)&&(t.isBlock(e.nextSibling)&&!Vt(e.previousSibling))}(t.dom,o)&&u.next();o=u[n?"next":"prev2"]();){if("LI"===o.nodeName&&!o.hasChildNodes())return o;if(a[o.nodeName])return o;if(zt(o)&&o.data.length>0)return o}},Je=function(t,e){var n=e.childNodes;return 1===n.length&&!jt(n[0])&&t.isBlock(n[0])},Qe=function(t,e,n){var r,o=Je(t,n)?n.firstChild:n;if(function(t,e){Je(t,e)&&t.remove(e.firstChild,!0)}(t,e),!$t(t,e,!0))for(;r=e.firstChild;)o.appendChild(r)},Ze=function(t,e,n){var r,o=e.parentNode;if(Gt(t,e)&&Gt(t,n)){jt(n.lastChild)&&(r=n.lastChild),o===n.lastChild&&Vt(o.previousSibling)&&t.remove(o.previousSibling);var i=n.lastChild;i&&Vt(i)&&e.hasChildNodes()&&t.remove(i),$t(t,n,!0)&&t.$(n).empty(),Qe(t,e,n),r&&n.appendChild(r);var a=at(rt.fromDom(n),rt.fromDom(e))?t.getParents(e,jt,n):[];t.remove(e),C(a,(function(e){$t(t,e)&&e!==t.getRoot()&&t.remove(e)}))}},tn=function(t,e,n,r){var o=t.dom;if(o.isEmpty(r))!function(t,e,n){t.dom.$(n).empty(),Ze(t.dom,e,n),t.selection.setCursorLocation(n,0)}(t,n,r);else{var i=Ie(e);Ze(o,n,r),t.selection.setRng(ze(i))}},en=function(t,e){var n=t.dom,r=t.selection,o=r.getStart(),i=ie(t,o),a=n.getParent(r.getStart(),"LI",i);if(a){var u=a.parentNode;if(u===t.getBody()&&$t(n,u))return!0;var c=te(r.getRng()),s=n.getParent(Ye(t,c,e,i),"LI",i);if(s&&s!==a)return t.undoManager.transact((function(){var n;e?tn(t,c,s,a):(n=a).parentNode.firstChild===n?De(t):function(t,e,n,r){var o=Ie(e);Ze(t.dom,n,r);var i=ze(o);t.selection.setRng(i)}(t,c,a,s)})),!0;if(!s&&!e&&0===c.startOffset&&0===c.endOffset)return t.undoManager.transact((function(){Ae(t)})),!0}return!1},nn=function(t,e){return en(t,e)||function(t,e){var n=t.dom,r=t.selection.getStart(),o=ie(t,r),i=n.getParent(r,n.isBlock,o);if(i&&n.isEmpty(i)){var a=te(t.selection.getRng()),u=n.getParent(Ye(t,a,e,o),"LI",o);if(u)return t.undoManager.transact((function(){!function(t,e,n){var r=t.getParent(e.parentNode,t.isBlock,n);t.remove(e),r&&t.isEmpty(r)&&t.remove(r)}(n,i,o),We(n,u.parentNode),t.selection.select(u,!0),t.selection.collapse(e)})),!0}return!1}(t,e)},rn=function(t,e){return t.selection.isCollapsed()?nn(t,e):function(t){var e=t.selection.getStart(),n=ie(t,e);return!!(t.dom.getParent(e,"LI,DT,DD",n)||oe(t).length>0)&&(t.undoManager.transact((function(){t.execCommand("Delete"),Xe(t.dom,t.getBody())})),!0)}(t)},on=function(t){var e=A(U(t).split("")),n=S(e,(function(t,e){var n=t.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,e)*n}));return k(n,(function(t,e){return t+e}),0)},an=function(t){if(--t<0)return"";var e=t%26,n=Math.floor(t/26);return an(n)+String.fromCharCode("A".charCodeAt(0)+e)},un=function(t){var e,n,r=ne(t);Bt(r)&&t.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:(e={start:t.dom.getAttrib(r,"start","1"),listStyleType:w.some(t.dom.getStyle(r,"list-style-type"))},n=parseInt(e.start,10),se(e.listStyleType,"upper-alpha")?an(n):se(e.listStyleType,"lower-alpha")?an(n).toLowerCase():e.start)},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(e){(function(t){switch(function(t){return/^[0-9]+$/.test(t)?2:function(t){return/^[A-Z]+$/.test(t)}(t)?0:function(t){return/^[a-z]+$/.test(t)}(t)?1:function(t){return t.length>0}(t)?4:3}(t)){case 2:return w.some({listStyleType:w.none(),start:t});case 0:return w.some({listStyleType:w.some("upper-alpha"),start:on(t).toString()});case 1:return w.some({listStyleType:w.some("lower-alpha"),start:on(t).toString()});case 3:return w.some({listStyleType:w.none(),start:""});case 4:return w.none()}})(e.getData().start).each((function(e){t.execCommand("mceListUpdate",!1,{attrs:{start:"1"===e.start?"":e.start},styles:{"list-style-type":e.listStyleType.getOr("")}})})),e.close()}})},cn=function(t,e){return function(){var n=ne(t);return n&&n.nodeName===e}},sn=function(t){t.addCommand("mceListProps",(function(){un(t)}))},ln=function(t){t.on("BeforeExecCommand",(function(e){var n=e.command.toLowerCase();"indent"===n?Me(t):"outdent"===n&&De(t)})),t.addCommand("InsertUnorderedList",(function(e,n){Ke(t,"UL",n)})),t.addCommand("InsertOrderedList",(function(e,n){Ke(t,"OL",n)})),t.addCommand("InsertDefinitionList",(function(e,n){Ke(t,"DL",n)})),t.addCommand("RemoveList",(function(){Ae(t)})),sn(t),t.addCommand("mceListUpdate",(function(e,n){a(n)&&function(t,e){var n=ne(t);t.undoManager.transact((function(){a(e.styles)&&t.dom.setStyles(n,e.styles),a(e.attrs)&&dt(e.attrs,(function(e,r){return t.dom.setAttrib(n,r,e)}))}))}(t,n)})),t.addQueryStateHandler("InsertUnorderedList",cn(t,"UL")),t.addQueryStateHandler("InsertOrderedList",cn(t,"OL")),t.addQueryStateHandler("InsertDefinitionList",cn(t,"DL"))},fn=function(t){(function(t){return t.getParam("lists_indent_on_tab",!0)})(t)&&function(t){t.on("keydown",(function(e){e.keyCode!==lt.TAB||lt.metaKeyPressed(e)||t.undoManager.transact((function(){(e.shiftKey?De(t):Me(t))&&e.preventDefault()}))}))}(t),function(t){t.on("keydown",(function(e){e.keyCode===lt.BACKSPACE?rn(t,!1)&&e.preventDefault():e.keyCode===lt.DELETE&&rn(t,!0)&&e.preventDefault()}))}(t)};n.add("lists",(function(t){return!1===t.hasPlugin("rtc",!0)?(fn(t),ln(t)):sn(t),function(t){var e=function(e){return function(){return t.execCommand(e)}};t.hasPlugin("advlist")||(t.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:e("InsertOrderedList"),onSetup:function(e){return Be(t,"OL",e.setActive)}}),t.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:e("InsertUnorderedList"),onSetup:function(e){return Be(t,"UL",e.setActive)}}))}(t),function(t){var e={text:"List properties...",icon:"ordered-list",onAction:function(){return t.execCommand("mceListProps")},onSetup:function(e){return Be(t,"OL",(function(t){return e.setDisabled(!t)}))}};t.ui.registry.addMenuItem("listprops",e),t.ui.registry.addContextMenu("lists",{update:function(e){var n=ne(t,e);return Bt(n)?["listprops"]:[]}})}(t),function(t){return{backspaceDelete:function(e){rn(t,e)}}}(t)}))}()},"241c":function(t,e,n){"use strict";var r=n("ca84"),o=n("7839").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"241e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPCE=e.UPC=e.EAN2=e.EAN5=e.EAN8=e.EAN13=void 0;var r=s(n("89a2")),o=s(n("1ba5")),i=s(n("583f")),a=s(n("a5d2")),u=s(n("e8b2")),c=s(n("be98"));function s(t){return t&&t.__esModule?t:{default:t}}e.EAN13=r.default,e.EAN8=o.default,e.EAN5=i.default,e.EAN2=a.default,e.UPC=u.default,e.UPCE=c.default},2444:function(t,e,n){"use strict";(function(e){var r=n("c532"),o=n("c8af"),i={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e)&&(u=n("b50d")),u),transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){c.headers[t]=r.merge(i)})),t.exports=c}).call(this,n("4362"))},2532:function(t,e,n){"use strict";var r=n("23e7"),o=n("e330"),i=n("5a34"),a=n("1d80"),u=n("577e"),c=n("ab13"),s=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~s(u(a(this)),u(i(t)),arguments.length>1?arguments[1]:void 0)}})},"25f0":function(t,e,n){"use strict";var r=n("5e77").PROPER,o=n("cb2d"),i=n("825a"),a=n("577e"),u=n("d039"),c=n("90d8"),s=RegExp.prototype,l=s.toString,f=u((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),d=r&&"toString"!==l.name;(f||d)&&o(s,"toString",(function(){var t=i(this);return"/"+a(t.source)+"/"+a(c(t))}),{unsafe:!0})},2626:function(t,e,n){"use strict";var r=n("d066"),o=n("edd0"),i=n("b622"),a=n("83ab"),u=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[u]&&o(e,u,{configurable:!0,get:function(){return this}})}},"26ee":function(t,e,n){"use strict";var r=n("5ea3"),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();e.a=i},"271a":function(t,e,n){"use strict";var r=n("cb2d"),o=n("e330"),i=n("577e"),a=n("d6d6"),u=URLSearchParams,c=u.prototype,s=o(c.getAll),l=o(c.has),f=new u("a=1");!f.has("a",2)&&f.has("a",void 0)||r(c,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var r=s(this,t);a(e,1);for(var o=i(n),u=0;u<r.length;)if(r[u++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0})},2877:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,u){var c,s="function"==typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},s._ssrRegister=c):o&&(c=u?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(s.functional){s._injectStyles=c;var l=s.render;s.render=function(t,e){return c.call(e),l(t,e)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:s}}n.d(e,"a",(function(){return r}))},2909:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return o}));n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");n("fb6a"),n("b0c0"),n("ac1f"),n("00b4"),n("25f0");n("d9e2");function o(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},"2a4a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.START_BIN="1010",e.END_BIN="11101",e.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},"2a62":function(t,e,n){"use strict";var r=n("c65b"),o=n("825a"),i=n("dc4a");t.exports=function(t,e,n){var a,u;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){u=!0,a=t}if("throw"===e)throw n;if(u)throw a;return o(a),n}},"2b3d":function(t,e,n){"use strict";n("4002")},"2ba4":function(t,e,n){"use strict";var r=n("40d5"),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},"2cf4":function(t,e,n){"use strict";var r,o,i,a,u=n("cfe9"),c=n("2ba4"),s=n("0366"),l=n("1626"),f=n("1a2d"),d=n("d039"),m=n("1be4"),p=n("f36a"),h=n("cc12"),g=n("d6d6"),v=n("52c8"),b=n("9adc"),y=u.setImmediate,_=u.clearImmediate,w=u.process,x=u.Dispatch,O=u.Function,S=u.MessageChannel,C=u.String,E=0,k={};d((function(){r=u.location}));var T=function(t){if(f(k,t)){var e=k[t];delete k[t],e()}},M=function(t){return function(){T(t)}},D=function(t){T(t.data)},A=function(t){u.postMessage(C(t),r.protocol+"//"+r.host)};y&&_||(y=function(t){g(arguments.length,1);var e=l(t)?t:O(t),n=p(arguments,1);return k[++E]=function(){c(e,void 0,n)},o(E),E},_=function(t){delete k[t]},b?o=function(t){w.nextTick(M(t))}:x&&x.now?o=function(t){x.now(M(t))}:S&&!v?(a=(i=new S).port2,i.port1.onmessage=D,o=s(a.postMessage,a)):u.addEventListener&&l(u.postMessage)&&!u.importScripts&&r&&"file:"!==r.protocol&&!d(A)?(o=A,u.addEventListener("message",D,!1)):o="onreadystatechange"in h("script")?function(t){m.appendChild(h("script")).onreadystatechange=function(){m.removeChild(this),T(t)}}:function(t){setTimeout(M(t),0)}),t.exports={set:y,clear:_}},"2d83":function(t,e,n){"use strict";var r=n("387f");t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f74":function(t,e,n){"use strict";e.a=function(){return!1}},"30b5":function(t,e,n){"use strict";var r=n("c532");function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}return i&&(t+=(-1===t.indexOf("?")?"?":"&")+i),t}},3410:function(t,e,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("7b0b"),a=n("e163"),u=n("e177");r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!u},{getPrototypeOf:function(t){return a(i(t))}})},"349c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE39=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("e762");var a=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=t.toUpperCase(),n.mod43&&(t+=function(t){return u[t]}(function(t){for(var e=0,n=0;n<t.length;n++)e+=l(t[n]);return e%=43}(t))),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"encode",value:function(){for(var t=s("*"),e=0;e<this.data.length;e++)t+=s(this.data[e])+"0";return{data:t+=s("*"),text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),e}(((r=i)&&r.__esModule?r:{default:r}).default),u=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],c=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function s(t){return function(t){return c[t].toString(2)}(l(t))}function l(t){return u.indexOf(t)}e.CODE39=a},3511:function(t,e,n){"use strict";var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},3529:function(t,e,n){"use strict";var r=n("23e7"),o=n("c65b"),i=n("59ed"),a=n("f069"),u=n("e667"),c=n("2266");r({target:"Promise",stat:!0,forced:n("5eed")},{race:function(t){var e=this,n=a.f(e),r=n.reject,s=u((function(){var a=i(e.resolve);c(t,(function(t){o(a,e,t).then(n.resolve,r)}))}));return s.error&&r(s.value),n.promise}})},"35a1":function(t,e,n){"use strict";var r=n("f5df"),o=n("dc4a"),i=n("7234"),a=n("3f8c"),u=n("b622")("iterator");t.exports=function(t){if(!i(t))return o(t,u)||o(t,"@@iterator")||a[r(t)]}},"37e8":function(t,e,n){"use strict";var r=n("83ab"),o=n("aed9"),i=n("9bf2"),a=n("825a"),u=n("fc6a"),c=n("df75");e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=u(e),o=c(e),s=o.length,l=0;s>l;)i.f(t,n=o[l++],r[n]);return t}},"384f":function(t,e,n){"use strict";var r=n("e330"),o=n("5388"),i=n("cb27"),a=i.Set,u=i.proto,c=r(u.forEach),s=r(u.keys),l=s(new a).next;t.exports=function(t,e,n){return n?o({iterator:s(t),next:l},e):c(t,e)}},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t}},3934:function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},"395e":function(t,e,n){"use strict";var r=n("dc19"),o=n("cb27").has,i=n("8e16"),a=n("7f65"),u=n("5388"),c=n("2a62");t.exports=function(t){var e=r(this),n=a(t);if(i(e)<n.size)return!1;var s=n.getIterator();return!1!==u(s,(function(t){if(!o(e,t))return c(s,"normal",!1)}))}},"3a34":function(t,e,n){"use strict";var r=n("83ab"),o=n("e8b5"),i=TypeError,a=Object.getOwnPropertyDescriptor,u=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=u?function(t,e){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){"use strict";var r=n("e330");t.exports=r({}.isPrototypeOf)},"3bbe":function(t,e,n){"use strict";var r=n("1787"),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},"3c7c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("2a4a"),a=n("e762");function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return-1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var t=this,e=this.data.match(/.{2}/g).map((function(e){return t.encodePair(e)})).join("");return{data:i.START_BIN+e+i.END_BIN,text:this.text}}},{key:"encodePair",value:function(t){var e=i.BINARIES[t[1]];return i.BINARIES[t[0]].split("").map((function(t,n){return("1"===t?"111":"1")+("1"===e[n]?"000":"0")})).join("")}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);e.default=s},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,o=n("577e"),i=n("69f3"),a=n("c6d2"),u=n("4754"),c=i.set,s=i.getterFor("String Iterator");a(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=s(this),n=e.string,o=e.index;return o>=n.length?u(void 0,!0):(t=r(n,o),e.index+=t.length,u(t,!1))}))},"3f8c":function(t,e,n){"use strict";t.exports={}},4002:function(t,e,n){"use strict";n("3ca3");var r,o=n("23e7"),i=n("83ab"),a=n("f354"),u=n("cfe9"),c=n("0366"),s=n("e330"),l=n("cb2d"),f=n("edd0"),d=n("19aa"),m=n("1a2d"),p=n("60da"),h=n("4df4"),g=n("f36a"),v=n("6547").codeAt,b=n("5fb2"),y=n("577e"),_=n("d44e"),w=n("d6d6"),x=n("5352"),O=n("69f3"),S=O.set,C=O.getterFor("URL"),E=x.URLSearchParams,k=x.getState,T=u.URL,M=u.TypeError,D=u.parseInt,A=Math.floor,P=Math.pow,R=s("".charAt),I=s(/./.exec),z=s([].join),j=s(1..toString),L=s([].pop),B=s([].push),F=s("".replace),N=s([].shift),H=s("".split),V=s("".slice),U=s("".toLowerCase),W=s([].unshift),$=/[a-z]/i,G=/[\d+-.a-z]/i,K=/\d/,q=/^0x/i,X=/^[0-7]+$/,Y=/^\d+$/,J=/^[\da-f]+$/i,Q=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Z=/[\0\t\n\r #/:<>?@[\\\]^|]/,tt=/^[\u0000-\u0020]+/,et=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,nt=/[\t\n\r]/g,rt=function(t){var e,n,r,o;if("number"==typeof t){for(e=[],n=0;n<4;n++)W(e,t%256),t=A(t/256);return z(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,o=0,i=0;i<8;i++)0!==t[i]?(o>n&&(e=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n?r:e}(t),n=0;n<8;n++)o&&0===t[n]||(o&&(o=!1),r===n?(e+=n?":":"::",o=!0):(e+=j(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},ot={},it=p({},ot,{" ":1,'"':1,"<":1,">":1,"`":1}),at=p({},it,{"#":1,"?":1,"{":1,"}":1}),ut=p({},at,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ct=function(t,e){var n=v(t,0);return n>32&&n<127&&!m(e,t)?t:encodeURIComponent(t)},st={ftp:21,file:null,http:80,https:443,ws:80,wss:443},lt=function(t,e){var n;return 2===t.length&&I($,R(t,0))&&(":"===(n=R(t,1))||!e&&"|"===n)},ft=function(t){var e;return t.length>1&<(V(t,0,2))&&(2===t.length||"/"===(e=R(t,2))||"\\"===e||"?"===e||"#"===e)},dt=function(t){return"."===t||"%2e"===U(t)},mt={},pt={},ht={},gt={},vt={},bt={},yt={},_t={},wt={},xt={},Ot={},St={},Ct={},Et={},kt={},Tt={},Mt={},Dt={},At={},Pt={},Rt={},It=function(t,e,n){var r,o,i,a=y(t);if(e){if(o=this.parse(a))throw new M(o);this.searchParams=null}else{if(void 0!==n&&(r=new It(n,!0)),o=this.parse(a,null,r))throw new M(o);(i=k(new E)).bindURL(this),this.searchParams=i}};It.prototype={type:"URL",parse:function(t,e,n){var o,i,a,u,c,s=this,l=e||mt,f=0,d="",p=!1,v=!1,b=!1;for(t=y(t),e||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=F(t,tt,""),t=F(t,et,"$1")),t=F(t,nt,""),o=h(t);f<=o.length;){switch(i=o[f],l){case mt:if(!i||!I($,i)){if(e)return"Invalid scheme";l=ht;continue}d+=U(i),l=pt;break;case pt:if(i&&(I(G,i)||"+"===i||"-"===i||"."===i))d+=U(i);else{if(":"!==i){if(e)return"Invalid scheme";d="",l=ht,f=0;continue}if(e&&(s.isSpecial()!==m(st,d)||"file"===d&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=d,e)return void(s.isSpecial()&&st[s.scheme]===s.port&&(s.port=null));d="","file"===s.scheme?l=Et:s.isSpecial()&&n&&n.scheme===s.scheme?l=gt:s.isSpecial()?l=_t:"/"===o[f+1]?(l=vt,f++):(s.cannotBeABaseURL=!0,B(s.path,""),l=At)}break;case ht:if(!n||n.cannotBeABaseURL&&"#"!==i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===i){s.scheme=n.scheme,s.path=g(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,l=Rt;break}l="file"===n.scheme?Et:bt;continue;case gt:if("/"!==i||"/"!==o[f+1]){l=bt;continue}l=wt,f++;break;case vt:if("/"===i){l=xt;break}l=Dt;continue;case bt:if(s.scheme=n.scheme,i===r)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query;else if("/"===i||"\\"===i&&s.isSpecial())l=yt;else if("?"===i)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query="",l=Pt;else{if("#"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.path.length--,l=Dt;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query,s.fragment="",l=Rt}break;case yt:if(!s.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,l=Dt;continue}l=xt}else l=wt;break;case _t:if(l=wt,"/"!==i||"/"!==R(d,f+1))continue;f++;break;case wt:if("/"!==i&&"\\"!==i){l=xt;continue}break;case xt:if("@"===i){p&&(d="%40"+d),p=!0,a=h(d);for(var _=0;_<a.length;_++){var w=a[_];if(":"!==w||b){var x=ct(w,ut);b?s.password+=x:s.username+=x}else b=!0}d=""}else if(i===r||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(p&&""===d)return"Invalid authority";f-=h(d).length+1,d="",l=Ot}else d+=i;break;case Ot:case St:if(e&&"file"===s.scheme){l=Tt;continue}if(":"!==i||v){if(i===r||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(s.isSpecial()&&""===d)return"Invalid host";if(e&&""===d&&(s.includesCredentials()||null!==s.port))return;if(u=s.parseHost(d))return u;if(d="",l=Mt,e)return;continue}"["===i?v=!0:"]"===i&&(v=!1),d+=i}else{if(""===d)return"Invalid host";if(u=s.parseHost(d))return u;if(d="",l=Ct,e===St)return}break;case Ct:if(!I(K,i)){if(i===r||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()||e){if(""!==d){var O=D(d,10);if(O>65535)return"Invalid port";s.port=s.isSpecial()&&O===st[s.scheme]?null:O,d=""}if(e)return;l=Mt;continue}return"Invalid port"}d+=i;break;case Et:if(s.scheme="file","/"===i||"\\"===i)l=kt;else{if(!n||"file"!==n.scheme){l=Dt;continue}switch(i){case r:s.host=n.host,s.path=g(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=g(n.path),s.query="",l=Pt;break;case"#":s.host=n.host,s.path=g(n.path),s.query=n.query,s.fragment="",l=Rt;break;default:ft(z(g(o,f),""))||(s.host=n.host,s.path=g(n.path),s.shortenPath()),l=Dt;continue}}break;case kt:if("/"===i||"\\"===i){l=Tt;break}n&&"file"===n.scheme&&!ft(z(g(o,f),""))&&(lt(n.path[0],!0)?B(s.path,n.path[0]):s.host=n.host),l=Dt;continue;case Tt:if(i===r||"/"===i||"\\"===i||"?"===i||"#"===i){if(!e&<(d))l=Dt;else if(""===d){if(s.host="",e)return;l=Mt}else{if(u=s.parseHost(d))return u;if("localhost"===s.host&&(s.host=""),e)return;d="",l=Mt}continue}d+=i;break;case Mt:if(s.isSpecial()){if(l=Dt,"/"!==i&&"\\"!==i)continue}else if(e||"?"!==i)if(e||"#"!==i){if(i!==r&&(l=Dt,"/"!==i))continue}else s.fragment="",l=Rt;else s.query="",l=Pt;break;case Dt:if(i===r||"/"===i||"\\"===i&&s.isSpecial()||!e&&("?"===i||"#"===i)){if(".."===(c=U(c=d))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(s.shortenPath(),"/"===i||"\\"===i&&s.isSpecial()||B(s.path,"")):dt(d)?"/"===i||"\\"===i&&s.isSpecial()||B(s.path,""):("file"===s.scheme&&!s.path.length&<(d)&&(s.host&&(s.host=""),d=R(d,0)+":"),B(s.path,d)),d="","file"===s.scheme&&(i===r||"?"===i||"#"===i))for(;s.path.length>1&&""===s.path[0];)N(s.path);"?"===i?(s.query="",l=Pt):"#"===i&&(s.fragment="",l=Rt)}else d+=ct(i,at);break;case At:"?"===i?(s.query="",l=Pt):"#"===i?(s.fragment="",l=Rt):i!==r&&(s.path[0]+=ct(i,ot));break;case Pt:e||"#"!==i?i!==r&&("'"===i&&s.isSpecial()?s.query+="%27":s.query+="#"===i?"%23":ct(i,ot)):(s.fragment="",l=Rt);break;case Rt:i!==r&&(s.fragment+=ct(i,it))}f++}},parseHost:function(t){var e,n,r;if("["===R(t,0)){if("]"!==R(t,t.length-1))return"Invalid host";if(!(e=function(t){var e,n,r,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,l=null,f=0,d=function(){return R(t,f)};if(":"===d()){if(":"!==R(t,1))return;f+=2,l=++s}for(;d();){if(8===s)return;if(":"!==d()){for(e=n=0;n<4&&I(J,d());)e=16*e+D(d(),16),f++,n++;if("."===d()){if(0===n)return;if(f-=n,s>6)return;for(r=0;d();){if(o=null,r>0){if(!("."===d()&&r<4))return;f++}if(!I(K,d()))return;for(;I(K,d());){if(i=D(d(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;f++}c[s]=256*c[s]+o,2!==++r&&4!==r||s++}if(4!==r)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;c[s++]=e}else{if(null!==l)return;f++,l=++s}}if(null!==l)for(a=s-l,s=7;0!==s&&a>0;)u=c[s],c[s--]=c[l+a-1],c[l+--a]=u;else if(8!==s)return;return c}(V(t,1,-1))))return"Invalid host";this.host=e}else if(this.isSpecial()){if(t=b(t),I(Q,t))return"Invalid host";if(null===(e=function(t){var e,n,r,o,i,a,u,c=H(t,".");if(c.length&&""===c[c.length-1]&&c.length--,(e=c.length)>4)return t;for(n=[],r=0;r<e;r++){if(""===(o=c[r]))return t;if(i=10,o.length>1&&"0"===R(o,0)&&(i=I(q,o)?16:8,o=V(o,8===i?1:2)),""===o)a=0;else{if(!I(10===i?Y:8===i?X:J,o))return t;a=D(o,i)}B(n,a)}for(r=0;r<e;r++)if(a=n[r],r===e-1){if(a>=P(256,5-e))return null}else if(a>255)return null;for(u=L(n),r=0;r<n.length;r++)u+=n[r]*P(256,3-r);return u}(t)))return"Invalid host";this.host=e}else{if(I(Z,t))return"Invalid host";for(e="",n=h(t),r=0;r<n.length;r++)e+=ct(n[r],ot);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return m(st,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&<(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,r=t.password,o=t.host,i=t.port,a=t.path,u=t.query,c=t.fragment,s=e+":";return null!==o?(s+="//",t.includesCredentials()&&(s+=n+(r?":"+r:"")+"@"),s+=rt(o),null!==i&&(s+=":"+i)):"file"===e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+z(a,"/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},setHref:function(t){var e=this.parse(t);if(e)throw new M(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new zt(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+rt(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(y(t)+":",mt)},getUsername:function(){return this.username},setUsername:function(t){var e=h(y(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=ct(e[n],ut)}},getPassword:function(){return this.password},setPassword:function(t){var e=h(y(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=ct(e[n],ut)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?rt(t):rt(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Ot)},getHostname:function(){var t=this.host;return null===t?"":rt(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,St)},getPort:function(){var t=this.port;return null===t?"":y(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=y(t))?this.port=null:this.parse(t,Ct))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+z(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Mt))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=y(t))?this.query=null:("?"===R(t,0)&&(t=V(t,1)),this.query="",this.parse(t,Pt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=y(t))?("#"===R(t,0)&&(t=V(t,1)),this.fragment="",this.parse(t,Rt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var zt=function(t){var e=d(this,jt),n=w(arguments.length,1)>1?arguments[1]:void 0,r=S(e,new It(t,!1,n));i||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},jt=zt.prototype,Lt=function(t,e){return{get:function(){return C(this)[t]()},set:e&&function(t){return C(this)[e](t)},configurable:!0,enumerable:!0}};if(i&&(f(jt,"href",Lt("serialize","setHref")),f(jt,"origin",Lt("getOrigin")),f(jt,"protocol",Lt("getProtocol","setProtocol")),f(jt,"username",Lt("getUsername","setUsername")),f(jt,"password",Lt("getPassword","setPassword")),f(jt,"host",Lt("getHost","setHost")),f(jt,"hostname",Lt("getHostname","setHostname")),f(jt,"port",Lt("getPort","setPort")),f(jt,"pathname",Lt("getPathname","setPathname")),f(jt,"search",Lt("getSearch","setSearch")),f(jt,"searchParams",Lt("getSearchParams")),f(jt,"hash",Lt("getHash","setHash"))),l(jt,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),l(jt,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),T){var Bt=T.createObjectURL,Ft=T.revokeObjectURL;Bt&&l(zt,"createObjectURL",c(Bt,T)),Ft&&l(zt,"revokeObjectURL",c(Ft,T))}_(zt,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:zt})},"408a":function(t,e,n){"use strict";var r=n("e330");t.exports=r(1..valueOf)},"40d5":function(t,e,n){"use strict";var r=n("d039");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4232:function(t,e,n){"use strict";n("18c3")},4260:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));n("4de4"),n("c740"),n("a630"),n("e260"),n("d81d"),n("fb6a"),n("a434"),n("d3b7"),n("e6cf"),n("ac1f"),n("25f0"),n("6062"),n("1e70"),n("79a4"),n("c1a1"),n("8b00"),n("a4e7"),n("1e5a"),n("72c3"),n("3ca3"),n("5319"),n("1276"),n("498a"),n("ddb0");var r=function(t){if(!t)return[];return(t=t.replace(/\/\*[\w\W]*?\*\//g,"").trim()).split(/}\s+./).filter((function(t){return t})).map((function(t){return"."!==(t=t.trim())[0]&&(t="."+t),"}"!==t[t.length-1]&&(t+="}"),t}))},o=function(t,e){var n=document.styleSheets[0];if(n.href){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r.appendChild(o),n=o.sheet||o.styleSheet}for(var i=0;n.cssRules.length>i;)n.cssRules[i].selectorText&&0===n.cssRules[i].selectorText.indexOf(e)?n.deleteRule(i):i++;for(var a=0;a<t.length;a++)n.insertRule(e+t[a],0)},i=function(t){var e=document.styleSheets[0];if(e.href)return!1;for(var n=0;e.cssRules.length>n;)e.cssRules[n].selectorText&&0===e.cssRules[n].selectorText.indexOf(t)?e.deleteRule(n):n++}},"428f":function(t,e,n){"use strict";var r=n("cfe9");t.exports=r},4362:function(t,e,n){var r,o;e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},o="/",e.cwd=function(){return o},e.chdir=function(t){r||(r=n("df7c")),o=r.resolve(t,o)},e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"43c7":function(t,e,n){},4461:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n("124f"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6e53");var u=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,a.mod11)(t),n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=u},"44ad":function(t,e,n){"use strict";var r=n("e330"),o=n("d039"),i=n("c6b6"),a=Object,u=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?u(t,""):a(t)}:a},"44d2":function(t,e,n){"use strict";var r=n("b622"),o=n("7c73"),i=n("9bf2").f,a=r("unscopables"),u=Array.prototype;void 0===u[a]&&i(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},"44de":function(t,e,n){"use strict";t.exports=function(t,e){}},"44e7":function(t,e,n){"use strict";var r=n("861d"),o=n("c6b6"),i=n("b622")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===o(t))}},4625:function(t,e,n){"use strict";var r=n("c6b6"),o=n("e330");t.exports=function(t){if("Function"===r(t))return o(t)}},"467f":function(t,e,n){"use strict";var r=n("2d83");t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"46c3":function(t,e){tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 01-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 00-1 1z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="M15.7 2l1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 01-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2zM18 12l-4.5-4L9 12h9zM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 01-2-2v-5h2zm8-7V4h6a2 2 0 012 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1l.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="M13 11l-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="M18.4 8l1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 01-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8zm1.6 7l-3-3-3 3h6z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 01-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 010-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 010-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 010-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 010-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 010-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 01-1-1v-2H7V9H5a1 1 0 110-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zm8.5-7.1h-11v2h11v-2z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0119 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 002.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 002-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 00-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 00-.8.8.8.8 0 01-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 012.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 110 18 9 9 0 010-18zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 003.2-2.1l-.2-.2a6 6 0 00-1-.6zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 01-2-2.8zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 01-.3-2zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1zm3-1.4l-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 00-1.3-3.5zm-9 0l2 .2V5.5a9 9 0 00-2 2.2zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 00-2-2.3zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 011.9-2.5zm4.4 0l.1.1a10 10 0 011.8 2.4l1.1-.7a7.5 7.5 0 00-3-1.8z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 110-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 01-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 012.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 11-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2 0l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V8H5a1 1 0 110-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V13H5a1 1 0 010-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 010-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 00-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 01-.7-.3 1 1 0 01-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 017 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 010 2H5a1 1 0 010-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 00-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 01-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8zm-2 2H5v5h6V6z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 012 2v7h-8v-2h6V6h-6V4z" opacity=".2"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v7h-8v7H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8-7h-6v5h6V6zm-8 0H5v5h6V6z"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 00-2 2v13c0 1.1.9 2 2 2h12a2 2 0 002-2V6a2 2 0 00-2-2H6zm0 12h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 11h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 6h8v3H6V6zm11 0c.6 0 1 .4 1 1v1a1 1 0 11-2 0V7c0-.6.4-1 1-1z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 012 2v13a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2h12zm0 12h-8v3h8v-3zM7 16a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8v-3zM7 11a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8V6zM7 6a1 1 0 00-1 1v1a1 1 0 102 0V7c0-.6-.4-1-1-1z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 01-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 011.2 1.5l-.1.1-4.1 3-4-3a1 1 0 011-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8l4 2.9a1 1 0 01-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 01-1-1v-4l-2 1.3a1 1 0 01-1.2-.1l-.1-.1a1 1 0 01.1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}})},"46c4":function(t,e,n){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},4727:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n("124f"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6e53");var u=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,a.mod10)(t),n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=u},4738:function(t,e,n){"use strict";var r=n("cfe9"),o=n("d256"),i=n("1626"),a=n("94ca"),u=n("8925"),c=n("b622"),s=n("8558"),l=n("c430"),f=n("1212"),d=o&&o.prototype,m=c("species"),p=!1,h=i(r.PromiseRejectionEvent),g=a("Promise",(function(){var t=u(o),e=t!==String(o);if(!e&&66===f)return!0;if(l&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(t)){var n=new o((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[m]=r,!(p=n.then((function(){}))instanceof r))return!0}return!(e||"BROWSER"!==s&&"DENO"!==s||h)}));t.exports={CONSTRUCTOR:g,REJECTION_EVENT:h,SUBCLASSING:p}},4754:function(t,e,n){"use strict";t.exports=function(t,e){return{value:t,done:e}}},4840:function(t,e,n){"use strict";var r=n("825a"),o=n("5087"),i=n("7234"),a=n("b622")("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||i(n=r(u)[a])?e:o(n)}},"485a":function(t,e,n){"use strict";var r=n("c65b"),o=n("1626"),i=n("861d"),a=TypeError;t.exports=function(t,e){var n,u;if("string"===e&&o(n=t.toString)&&!i(u=r(n,t)))return u;if(o(n=t.valueOf)&&!i(u=r(n,t)))return u;if("string"!==e&&o(n=t.toString)&&!i(u=r(n,t)))return u;throw new a("Can't convert object to primitive value")}},"498a":function(t,e,n){"use strict";var r=n("23e7"),o=n("58a8").trim;r({target:"String",proto:!0,forced:n("c8d2")("trim")},{trim:function(){return o(this)}})},"4b23":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("e762"),a=(r=i)&&r.__esModule?r:{default:r},u=n("f08e");var c=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.substring(1),n));return r.bytes=t.split("").map((function(t){return t.charCodeAt(0)})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var t=this.bytes,n=t.shift()-105,r=u.SET_BY_CODE[n];if(void 0===r)throw new RangeError("The encoding does not start with a start character.");!0===this.shouldEncodeAsEan128()&&t.unshift(u.FNC1);var o=e.next(t,1,r);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(n)+o.result+e.getBar((o.checksum+n)%u.MODULO)+e.getBar(u.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var t=this.options.ean128||!1;return"string"==typeof t&&(t="true"===t.toLowerCase()),t}}],[{key:"getBar",value:function(t){return u.BARS[t]?u.BARS[t].toString():""}},{key:"correctIndex",value:function(t,e){if(e===u.SET_A){var n=t.shift();return n<32?n+64:n-32}return e===u.SET_B?t.shift()-32:10*(t.shift()-48)+t.shift()-48}},{key:"next",value:function(t,n,r){if(!t.length)return{result:"",checksum:0};var o=void 0,i=void 0;if(t[0]>=200){i=t.shift()-105;var a=u.SWAP[i];void 0!==a?o=e.next(t,n+1,a):(r!==u.SET_A&&r!==u.SET_B||i!==u.SHIFT||(t[0]=r===u.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),o=e.next(t,n+1,r))}else i=e.correctIndex(t,r),o=e.next(t,n+1,r);var c=i*n;return{result:e.getBar(i)+o.result,checksum:c+o.checksum}}}]),e}(a.default);e.default=c},"4ced":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var o=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.object=e,this.encodings=n,this.options=r}return r(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();e.default=o},"4d64":function(t,e,n){"use strict";var r=n("fc6a"),o=n("23cb"),i=n("07fa"),a=function(t){return function(e,n,a){var u=r(e),c=i(u);if(0===c)return!t&&-1;var s,l=o(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").filter;r({target:"Array",proto:!0,forced:!n("1dde")("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var r=n("0366"),o=n("c65b"),i=n("7b0b"),a=n("9bdd"),u=n("e95a"),c=n("68ee"),s=n("07fa"),l=n("8418"),f=n("9a1f"),d=n("35a1"),m=Array;t.exports=function(t){var e=i(t),n=c(this),p=arguments.length,h=p>1?arguments[1]:void 0,g=void 0!==h;g&&(h=r(h,p>2?arguments[2]:void 0));var v,b,y,_,w,x,O=d(e),S=0;if(!O||this===m&&u(O))for(v=s(e),b=n?new this(v):m(v);v>S;S++)x=g?h(e[S],S):e[S],l(b,S,x);else for(b=n?new this:[],w=(_=f(e,O)).next;!(y=o(w,_)).done;S++)x=g?a(_,h,[y.value,S],!0):y.value,l(b,S,x);return b.length=S,b}},"4ea8":function(t,e,n){n("cdd9")},"4fad":function(t,e,n){"use strict";var r=n("d039"),o=n("861d"),i=n("c6b6"),a=n("d86b"),u=Object.isExtensible,c=r((function(){u(1)}));t.exports=c||a?function(t){return!!o(t)&&((!a||"ArrayBuffer"!==i(t))&&(!u||u(t)))}:u},5087:function(t,e,n){"use strict";var r=n("68ee"),o=n("0d51"),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a constructor")}},"50c4":function(t,e,n){"use strict";var r=n("5926"),o=Math.min;t.exports=function(t){var e=r(t);return e>0?o(e,9007199254740991):0}},5176:function(t,e,n){t.exports=n("2389")},"51eb":function(t,e,n){"use strict";var r=n("825a"),o=n("485a"),i=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new i("Incorrect hint");return o(this,t)}},5261:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var n in e)e.hasOwnProperty(n)&&(n=e[n],"string"==typeof t[n]&&(t[n]=parseInt(t[n],10)));"string"==typeof t.displayValue&&(t.displayValue="false"!=t.displayValue);return t}},5270:function(t,e,n){"use strict";var r=n("c532"),o=n("c401"),i=n("2e67"),a=n("2444"),u=n("d925"),c=n("e683");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.baseURL&&!u(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(s(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},"52c8":function(t,e,n){"use strict";var r=n("b5db");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5319:function(t,e,n){"use strict";var r=n("2ba4"),o=n("c65b"),i=n("e330"),a=n("d784"),u=n("d039"),c=n("825a"),s=n("1626"),l=n("7234"),f=n("5926"),d=n("50c4"),m=n("577e"),p=n("1d80"),h=n("8aa5"),g=n("dc4a"),v=n("0cb2"),b=n("14c3"),y=n("b622")("replace"),_=Math.max,w=Math.min,x=i([].concat),O=i([].push),S=i("".indexOf),C=i("".slice),E="$0"==="a".replace(/./,"$0"),k=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(t,e,n){var i=k?"$":"$0";return[function(t,n){var r=p(this),i=l(t)?void 0:g(t,y);return i?o(i,t,r,n):o(e,m(r),t,n)},function(t,o){var a=c(this),u=m(t);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var l=n(e,a,u,o);if(l.done)return l.value}var p=s(o);p||(o=m(o));var g,y=a.global;y&&(g=a.unicode,a.lastIndex=0);for(var E,k=[];null!==(E=b(a,u))&&(O(k,E),y);){""===m(E[0])&&(a.lastIndex=h(u,d(a.lastIndex),g))}for(var T,M="",D=0,A=0;A<k.length;A++){for(var P,R=m((E=k[A])[0]),I=_(w(f(E.index),u.length),0),z=[],j=1;j<E.length;j++)O(z,void 0===(T=E[j])?T:String(T));var L=E.groups;if(p){var B=x([R],z,I,u);void 0!==L&&O(B,L),P=m(r(o,void 0,B))}else P=v(R,u,I,z,L,o);I>=D&&(M+=C(u,D,I)+P,D=I+R.length)}return M+C(u,D)}]}),!!u((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||k)},5352:function(t,e,n){"use strict";n("e260"),n("f6d6");var r=n("23e7"),o=n("cfe9"),i=n("157a"),a=n("d066"),u=n("c65b"),c=n("e330"),s=n("83ab"),l=n("f354"),f=n("cb2d"),d=n("edd0"),m=n("6964"),p=n("d44e"),h=n("dcc3"),g=n("69f3"),v=n("19aa"),b=n("1626"),y=n("1a2d"),_=n("0366"),w=n("f5df"),x=n("825a"),O=n("861d"),S=n("577e"),C=n("7c73"),E=n("5c6c"),k=n("9a1f"),T=n("35a1"),M=n("4754"),D=n("d6d6"),A=n("b622"),P=n("addb"),R=A("iterator"),I=g.set,z=g.getterFor("URLSearchParams"),j=g.getterFor("URLSearchParamsIterator"),L=i("fetch"),B=i("Request"),F=i("Headers"),N=B&&B.prototype,H=F&&F.prototype,V=o.TypeError,U=o.encodeURIComponent,W=String.fromCharCode,$=a("String","fromCodePoint"),G=parseInt,K=c("".charAt),q=c([].join),X=c([].push),Y=c("".replace),J=c([].shift),Q=c([].splice),Z=c("".split),tt=c("".slice),et=c(/./.exec),nt=/\+/g,rt=/^[0-9a-f]+$/i,ot=function(t,e){var n=tt(t,e,e+2);return et(rt,n)?G(n,16):NaN},it=function(t){for(var e=0,n=128;n>0&&0!=(t&n);n>>=1)e++;return e},at=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},ut=function(t){for(var e=(t=Y(t,nt," ")).length,n="",r=0;r<e;){var o=K(t,r);if("%"===o){if("%"===K(t,r+1)||r+3>e){n+="%",r++;continue}var i=ot(t,r+1);if(i!=i){n+=o,r++;continue}r+=2;var a=it(i);if(0===a)o=W(i);else{if(1===a||a>4){n+="�",r++;continue}for(var u=[i],c=1;c<a&&!(++r+3>e||"%"!==K(t,r));){var s=ot(t,r+1);if(s!=s){r+=3;break}if(s>191||s<128)break;X(u,s),r+=2,c++}if(u.length!==a){n+="�";continue}var l=at(u);null===l?n+="�":o=$(l)}}n+=o,r++}return n},ct=/[!'()~]|%20/g,st={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},lt=function(t){return st[t]},ft=function(t){return Y(U(t),ct,lt)},dt=h((function(t,e){I(this,{type:"URLSearchParamsIterator",target:z(t).entries,index:0,kind:e})}),"URLSearchParams",(function(){var t=j(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,M(void 0,!0);var r=e[n];switch(t.kind){case"keys":return M(r.key,!1);case"values":return M(r.value,!1)}return M([r.key,r.value],!1)}),!0),mt=function(t){this.entries=[],this.url=null,void 0!==t&&(O(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===K(t,0)?tt(t,1):t:S(t)))};mt.prototype={type:"URLSearchParams",bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,o,i,a,c,s=this.entries,l=T(t);if(l)for(n=(e=k(t,l)).next;!(r=u(n,e)).done;){if(i=(o=k(x(r.value))).next,(a=u(i,o)).done||(c=u(i,o)).done||!u(i,o).done)throw new V("Expected sequence with length 2");X(s,{key:S(a.value),value:S(c.value)})}else for(var f in t)y(t,f)&&X(s,{key:f,value:S(t[f])})},parseQuery:function(t){if(t)for(var e,n,r=this.entries,o=Z(t,"&"),i=0;i<o.length;)(e=o[i++]).length&&(n=Z(e,"="),X(r,{key:ut(J(n)),value:ut(q(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],X(n,ft(t.key)+"="+ft(t.value));return q(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var pt=function(){v(this,ht);var t=arguments.length>0?arguments[0]:void 0,e=I(this,new mt(t));s||(this.size=e.entries.length)},ht=pt.prototype;if(m(ht,{append:function(t,e){var n=z(this);D(arguments.length,2),X(n.entries,{key:S(t),value:S(e)}),s||this.length++,n.updateURL()},delete:function(t){for(var e=z(this),n=D(arguments.length,1),r=e.entries,o=S(t),i=n<2?void 0:arguments[1],a=void 0===i?i:S(i),u=0;u<r.length;){var c=r[u];if(c.key!==o||void 0!==a&&c.value!==a)u++;else if(Q(r,u,1),void 0!==a)break}s||(this.size=r.length),e.updateURL()},get:function(t){var e=z(this).entries;D(arguments.length,1);for(var n=S(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){var e=z(this).entries;D(arguments.length,1);for(var n=S(t),r=[],o=0;o<e.length;o++)e[o].key===n&&X(r,e[o].value);return r},has:function(t){for(var e=z(this).entries,n=D(arguments.length,1),r=S(t),o=n<2?void 0:arguments[1],i=void 0===o?o:S(o),a=0;a<e.length;){var u=e[a++];if(u.key===r&&(void 0===i||u.value===i))return!0}return!1},set:function(t,e){var n=z(this);D(arguments.length,1);for(var r,o=n.entries,i=!1,a=S(t),u=S(e),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?Q(o,c--,1):(i=!0,r.value=u));i||X(o,{key:a,value:u}),s||(this.size=o.length),n.updateURL()},sort:function(){var t=z(this);P(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=z(this).entries,r=_(t,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((e=n[o++]).value,e.key,this)},keys:function(){return new dt(this,"keys")},values:function(){return new dt(this,"values")},entries:function(){return new dt(this,"entries")}},{enumerable:!0}),f(ht,R,ht.entries,{name:"entries"}),f(ht,"toString",(function(){return z(this).serialize()}),{enumerable:!0}),s&&d(ht,"size",{get:function(){return z(this).entries.length},configurable:!0,enumerable:!0}),p(pt,"URLSearchParams"),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:pt}),!l&&b(F)){var gt=c(H.has),vt=c(H.set),bt=function(t){if(O(t)){var e,n=t.body;if("URLSearchParams"===w(n))return e=t.headers?new F(t.headers):new F,gt(e,"content-type")||vt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),C(t,{body:E(0,S(n)),headers:E(0,e)})}return t};if(b(L)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return L(t,arguments.length>1?bt(arguments[1]):{})}}),b(B)){var yt=function(t){return v(this,N),new B(t,arguments.length>1?bt(arguments[1]):{})};N.constructor=yt,yt.prototype=N,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:yt})}}t.exports={URLSearchParams:pt,getState:z}},5388:function(t,e,n){"use strict";var r=n("c65b");t.exports=function(t,e,n){for(var o,i,a=n?t:t.iterator,u=t.next;!(o=r(u,a)).done;)if(void 0!==(i=e(o.value)))return i}},"53ca":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}},5494:function(t,e,n){"use strict";var r=n("83ab"),o=n("e330"),i=n("edd0"),a=URLSearchParams.prototype,u=o(a.forEach);r&&!("size"in a)&&i(a,"size",{get:function(){var t=0;return u(this,(function(){t++})),t},configurable:!0,enumerable:!0})},"54ca":function(t,e,n){},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("a4d3"),n("4de4"),n("14d9"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("159b");var r=n("ade3");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},5589:function(t,e,n){"use strict";n("e770")},5692:function(t,e,n){"use strict";var r=n("c6cd");t.exports=function(t,e){return r[t]||(r[t]=e||{})}},"56ef":function(t,e,n){"use strict";var r=n("d066"),o=n("e330"),i=n("241c"),a=n("7418"),u=n("825a"),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(u(t)),n=a.f;return n?c(e,n(t)):e}},5726:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("c243");e.default=function(t,e,n){var o=t.split("").map((function(t,n){return r.BINARIES[e[n]]})).map((function(e,n){return e?e[t[n]]:""}));if(n){var i=t.length-1;o=o.map((function(t,e){return e<i?t+n:t}))}return o.join("")}},"577e":function(t,e,n){"use strict";var r=n("f5df"),o=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},"57b9":function(t,e,n){"use strict";var r=n("c65b"),o=n("d066"),i=n("b622"),a=n("cb2d");t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,u=i("toPrimitive");e&&!e[u]&&a(e,u,(function(t){return r(n,this)}),{arity:1})}},"583f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("c243"),i=u(n("5726")),a=u(n("e762"));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var t,e=o.EAN5_STRUCTURE[(t=this.data,t.split("").map((function(t){return+t})).reduce((function(t,e,n){return n%2?t+9*e:t+3*e}),0)%10)];return{data:"1011"+(0,i.default)(this.data,e,"01"),text:this.text}}}]),e}(a.default);e.default=c},5899:function(t,e,n){"use strict";t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){"use strict";var r=n("e330"),o=n("1d80"),i=n("577e"),a=n("5899"),u=r("".replace),c=RegExp("^["+a+"]+"),s=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(t){return function(e){var n=i(o(e));return 1&t&&(n=u(n,c,"")),2&t&&(n=u(n,s,"$1")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},"58ab":function(t,e,n){},"58e0":function(t,e,n){"use strict";(function(t){var r=n("26ee"),o=n("2f74"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===i?r.a.Buffer:void 0,c=(u?u.isBuffer:void 0)||o.a;e.a=c}).call(this,n("dd40")(t))},5926:function(t,e,n){"use strict";var r=n("b42e");t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},"59ed":function(t,e,n){"use strict";var r=n("1626"),o=n("0d51"),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},"5a34":function(t,e,n){"use strict";var r=n("44e7"),o=TypeError;t.exports=function(t){if(r(t))throw new o("The method doesn't accept regular expressions");return t}},"5a47":function(t,e,n){"use strict";var r=n("23e7"),o=n("04f8"),i=n("d039"),a=n("7418"),u=n("7b0b");r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(u(t)):[]}})},"5c6c":function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,n){"use strict";var r=n("83ab"),o=n("1a2d"),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},"5e7e":function(t,e,n){"use strict";var r,o,i,a=n("23e7"),u=n("c430"),c=n("9adc"),s=n("cfe9"),l=n("c65b"),f=n("cb2d"),d=n("d2bb"),m=n("d44e"),p=n("2626"),h=n("59ed"),g=n("1626"),v=n("861d"),b=n("19aa"),y=n("4840"),_=n("2cf4").set,w=n("b575"),x=n("44de"),O=n("e667"),S=n("01b4"),C=n("69f3"),E=n("d256"),k=n("4738"),T=n("f069"),M=k.CONSTRUCTOR,D=k.REJECTION_EVENT,A=k.SUBCLASSING,P=C.getterFor("Promise"),R=C.set,I=E&&E.prototype,z=E,j=I,L=s.TypeError,B=s.document,F=s.process,N=T.f,H=N,V=!!(B&&B.createEvent&&s.dispatchEvent),U=function(t){var e;return!(!v(t)||!g(e=t.then))&&e},W=function(t,e){var n,r,o,i=e.value,a=1===e.state,u=a?t.ok:t.fail,c=t.resolve,s=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&X(e),e.rejection=1),!0===u?n=i:(f&&f.enter(),n=u(i),f&&(f.exit(),o=!0)),n===t.promise?s(new L("Promise-chain cycle")):(r=U(n))?l(r,n,c,s):c(n)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},$=function(t,e){t.notified||(t.notified=!0,w((function(){for(var n,r=t.reactions;n=r.get();)W(n,t);t.notified=!1,e&&!t.rejection&&K(t)})))},G=function(t,e,n){var r,o;V?((r=B.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!D&&(o=s["on"+t])?o(r):"unhandledrejection"===t&&x("Unhandled promise rejection",n)},K=function(t){l(_,s,(function(){var e,n=t.facade,r=t.value;if(q(t)&&(e=O((function(){c?F.emit("unhandledRejection",r,n):G("unhandledrejection",n,r)})),t.rejection=c||q(t)?2:1,e.error))throw e.value}))},q=function(t){return 1!==t.rejection&&!t.parent},X=function(t){l(_,s,(function(){var e=t.facade;c?F.emit("rejectionHandled",e):G("rejectionhandled",e,t.value)}))},Y=function(t,e,n){return function(r){t(e,r,n)}},J=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,$(t,!0))},Q=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new L("Promise can't be resolved itself");var r=U(e);r?w((function(){var n={done:!1};try{l(r,e,Y(Q,n,t),Y(J,n,t))}catch(e){J(n,e,t)}})):(t.value=e,t.state=1,$(t,!1))}catch(e){J({done:!1},e,t)}}};if(M&&(j=(z=function(t){b(this,j),h(t),l(r,this);var e=P(this);try{t(Y(Q,e),Y(J,e))}catch(t){J(e,t)}}).prototype,(r=function(t){R(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:null})}).prototype=f(j,"then",(function(t,e){var n=P(this),r=N(y(this,z));return n.parent=!0,r.ok=!g(t)||t,r.fail=g(e)&&e,r.domain=c?F.domain:void 0,0===n.state?n.reactions.add(r):w((function(){W(r,n)})),r.promise})),o=function(){var t=new r,e=P(t);this.promise=t,this.resolve=Y(Q,e),this.reject=Y(J,e)},T.f=N=function(t){return t===z||void 0===t?new o(t):H(t)},!u&&g(E)&&I!==Object.prototype)){i=I.then,A||f(I,"then",(function(t,e){var n=this;return new z((function(t,e){l(i,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete I.constructor}catch(t){}d&&d(I,j)}a({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:z}),m(z,"Promise",!1,!0),p("Promise")},"5ea3":function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n("c8ba"))},"5eed":function(t,e,n){"use strict";var r=n("d256"),o=n("1c7e"),i=n("4738").CONSTRUCTOR;t.exports=i||!o((function(t){r.all(t).then(void 0,(function(){}))}))},"5f72":function(t,e){t.exports=require("element-ui")},"5fb2":function(t,e,n){"use strict";var r=n("e330"),o=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",u=RangeError,c=r(i.exec),s=Math.floor,l=String.fromCharCode,f=r("".charCodeAt),d=r([].join),m=r([].push),p=r("".replace),h=r("".split),g=r("".toLowerCase),v=function(t){return t+22+75*(t<26)},b=function(t,e,n){var r=0;for(t=n?s(t/700):t>>1,t+=s(t/e);t>455;)t=s(t/35),r+=36;return s(r+36*t/(t+38))},y=function(t){var e,n,r=[],o=(t=function(t){for(var e=[],n=0,r=t.length;n<r;){var o=f(t,n++);if(o>=55296&&o<=56319&&n<r){var i=f(t,n++);56320==(64512&i)?m(e,((1023&o)<<10)+(1023&i)+65536):(m(e,o),n--)}else m(e,o)}return e}(t)).length,i=128,c=0,p=72;for(e=0;e<t.length;e++)(n=t[e])<128&&m(r,l(n));var h=r.length,g=h;for(h&&m(r,"-");g<o;){var y=2147483647;for(e=0;e<t.length;e++)(n=t[e])>=i&&n<y&&(y=n);var _=g+1;if(y-i>s((2147483647-c)/_))throw new u(a);for(c+=(y-i)*_,i=y,e=0;e<t.length;e++){if((n=t[e])<i&&++c>2147483647)throw new u(a);if(n===i){for(var w=c,x=36;;){var O=x<=p?1:x>=p+26?26:x-p;if(w<O)break;var S=w-O,C=36-O;m(r,l(v(O+S%C))),w=s(S/C),x+=36}m(r,l(v(w))),p=b(c,_,g===h),c=0,g++}}c++,i++}return d(r,"")};t.exports=function(t){var e,n,r=[],a=h(p(g(t),i,"."),".");for(e=0;e<a.length;e++)n=a[e],m(r,c(o,n)?"xn--"+y(n):n);return d(r,".")}},6062:function(t,e,n){"use strict";n("1c59")},"60bb":function(t,e){t.exports=require("lodash")},"60da":function(t,e,n){"use strict";var r=n("83ab"),o=n("e330"),i=n("c65b"),a=n("d039"),u=n("df75"),c=n("7418"),s=n("d1e7"),l=n("7b0b"),f=n("44ad"),d=Object.assign,m=Object.defineProperty,p=o([].concat);t.exports=!d||a((function(){if(r&&1!==d({b:1},d(m({},"a",{enumerable:!0,get:function(){m(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection");return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!==d({},t)[n]||"abcdefghijklmnopqrst"!==u(d({},e)).join("")}))?function(t,e){for(var n=l(t),o=arguments.length,a=1,d=c.f,m=s.f;o>a;)for(var h,g=f(arguments[a++]),v=d?p(u(g),d(g)):u(g),b=v.length,y=0;b>y;)h=v[y++],r&&!i(m,g,h)||(n[h]=g[h]);return n}:d},"62c5":function(t,e,n){"use strict";var r=d(n("ff846")),o=d(n("fd7c")),i=d(n("a2b0")),a=d(n("79f1")),u=d(n("b1d8")),c=d(n("5261")),s=d(n("bd8a")),l=n("dca2"),f=d(n("ca32"));function d(t){return t&&t.__esModule?t:{default:t}}var m=function(){},p=function(t,e,n){var r=new m;if(void 0===t)throw Error("No element to render on was provided.");return r._renderProperties=(0,u.default)(t),r._encodings=[],r._options=f.default,r._errorHandler=new s.default(r),void 0!==e&&((n=n||{}).format||(n.format=b()),r.options(n)[n.format](e,n).render()),r};for(var h in p.getModule=function(t){return r.default[t]},r.default)r.default.hasOwnProperty(h)&&g(r.default,h);function g(t,e){m.prototype[e]=m.prototype[e.toUpperCase()]=m.prototype[e.toLowerCase()]=function(n,r){var i=this;return i._errorHandler.wrapBarcodeCall((function(){r.text=void 0===r.text?void 0:""+r.text;var a=(0,o.default)(i._options,r);a=(0,c.default)(a);var u=t[e],s=v(n,u,a);return i._encodings.push(s),i}))}}function v(t,e,n){var r=new e(t=""+t,n);if(!r.valid())throw new l.InvalidInputException(r.constructor.name,t);var a=r.encode();a=(0,i.default)(a);for(var u=0;u<a.length;u++)a[u].options=(0,o.default)(n,a[u].options);return a}function b(){return r.default.CODE128?"CODE128":Object.keys(r.default)[0]}function y(t,e,n){e=(0,i.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,o.default)(n,e[r].options),(0,a.default)(e[r].options);(0,a.default)(n),new(0,t.renderer)(t.element,e,n).render(),t.afterRender&&t.afterRender()}m.prototype.options=function(t){return this._options=(0,o.default)(this._options,t),this},m.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},m.prototype.init=function(){var t;if(this._renderProperties)for(var e in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){t=this._renderProperties[e];var n=(0,o.default)(this._options,t.options);"auto"==n.format&&(n.format=b()),this._errorHandler.wrapBarcodeCall((function(){var e=v(n.value,r.default[n.format.toUpperCase()],n);y(t,e,n)}))}},m.prototype.render=function(){if(!this._renderProperties)throw new l.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)y(this._renderProperties[t],this._encodings,this._options);else y(this._renderProperties,this._encodings,this._options);return this},m.prototype._defaults=f.default,"undefined"!=typeof window&&(window.JsBarcode=p),"undefined"!=typeof jQuery&&(jQuery.fn.JsBarcode=function(t,e){var n=[];return jQuery(this).each((function(){n.push(this)})),p(n,t,e)}),t.exports=p},6374:function(t,e,n){"use strict";var r=n("cfe9"),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6547:function(t,e,n){"use strict";var r=n("e330"),o=n("5926"),i=n("577e"),a=n("1d80"),u=r("".charAt),c=r("".charCodeAt),s=r("".slice),l=function(t){return function(e,n){var r,l,f=i(a(e)),d=o(n),m=f.length;return d<0||d>=m?t?"":void 0:(r=c(f,d))<55296||r>56319||d+1===m||(l=c(f,d+1))<56320||l>57343?t?u(f,d):r:t?s(f,d,d+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},6566:function(t,e,n){"use strict";var r=n("7c73"),o=n("edd0"),i=n("6964"),a=n("0366"),u=n("19aa"),c=n("7234"),s=n("2266"),l=n("c6d2"),f=n("4754"),d=n("2626"),m=n("83ab"),p=n("f183").fastKey,h=n("69f3"),g=h.set,v=h.getterFor;t.exports={getConstructor:function(t,e,n,l){var f=t((function(t,o){u(t,d),g(t,{type:e,index:r(null),first:null,last:null,size:0}),m||(t.size=0),c(o)||s(o,t[l],{that:t,AS_ENTRIES:n})})),d=f.prototype,h=v(e),b=function(t,e,n){var r,o,i=h(t),a=y(t,e);return a?a.value=n:(i.last=a={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=a),r&&(r.next=a),m?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},y=function(t,e){var n,r=h(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===e)return n};return i(d,{clear:function(){for(var t=h(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=r(null),m?t.size=0:this.size=0},delete:function(t){var e=h(this),n=y(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first===n&&(e.first=r),e.last===n&&(e.last=o),m?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),i(d,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return b(this,0===t?0:t,e)}}:{add:function(t){return b(this,t=0===t?0:t,t)}}),m&&o(d,"size",{configurable:!0,get:function(){return h(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=v(e),i=v(r);l(t,e,(function(t,e){g(this,{type:r,target:t,state:o(t),kind:e,last:null})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?f("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=null,f(void 0,!0))}),n?"entries":"values",!n,!0),d(e)}}},"658f":function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=13)}([function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){t.exports=n(14)()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return m}));var r=n(0),o=n.n(r),i=n(1),a=n.n(i);function u(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=Number(t)?3:0)}var c=function(){function t(e){o()(this,t),this.mode=f.MODE_8BIT_BYTE,this.parsedData=[],this.data=e;for(var n=[],r=0,i=this.data.length;r<i;r++){var a=[],u=this.data.charCodeAt(r);u>65536?(a[0]=240|(1835008&u)>>>18,a[1]=128|(258048&u)>>>12,a[2]=128|(4032&u)>>>6,a[3]=128|63&u):u>2048?(a[0]=224|(61440&u)>>>12,a[1]=128|(4032&u)>>>6,a[2]=128|63&u):u>128?(a[0]=192|(1984&u)>>>6,a[1]=128|63&u):a[0]=u,n.push(a)}this.parsedData=Array.prototype.concat.apply([],n),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return a()(t,[{key:"getLength",value:function(){return this.parsedData.length}},{key:"write",value:function(t){for(var e=0,n=this.parsedData.length;e<n;e++)t.put(this.parsedData[e],8)}}]),t}(),s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.L;o()(this,t),this.moduleCount=0,this.dataList=[],this.typeNumber=e,this.errorCorrectLevel=n,this.moduleCount=0,this.dataList=[]}return a()(t,[{key:"addData",value:function(t){if(this.typeNumber<=0)this.typeNumber=function(t,e){for(var n=1,r=u(t),o=0,i=b.length;o<i;o++){var a=0;switch(e){case l.L:a=b[o][0];break;case l.M:a=b[o][1];break;case l.Q:a=b[o][2];break;case l.H:a=b[o][3]}if(r<=a)break;n++}if(n>b.length)throw new Error("Too long data");return n}(t,this.errorCorrectLevel);else{if(this.typeNumber>40)throw new Error("Invalid QR version: ".concat(this.typeNumber));if(!function(t,e,n){var r=u(e),o=t-1,i=0;switch(n){case l.L:i=b[o][0];break;case l.M:i=b[o][1];break;case l.Q:i=b[o][2];break;case l.H:i=b[o][3]}return r<=i}(this.typeNumber,t,this.errorCorrectLevel))throw new Error("Data is too long for QR version: ".concat(this.typeNumber))}var e=new c(t);this.dataList.push(e),this.dataCache=void 0}},{key:"isDark",value:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error("".concat(t,",").concat(e));return this.modules[t][e]}},{key:"getModuleCount",value:function(){return this.moduleCount}},{key:"make",value:function(){this.makeImpl(!1,this.getBestMaskPattern())}},{key:"makeImpl",value:function(e,n){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++)this.modules[r][o]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,n),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,n)}},{key:"setupPositionProbePattern",value:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(this.modules[t+n][e+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)}},{key:"getBestMaskPattern",value:function(){if(Number.isInteger(this.maskPattern)&&Object.values(d).includes(this.maskPattern))return this.maskPattern;for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=m.getLostPoint(this);(0==n||t>r)&&(t=r,e=n)}return e}},{key:"setupTimingPattern",value:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)}},{key:"setupPositionAdjustPattern",value:function(){for(var t=m.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var n=0;n<t.length;n++){var r=t[e],o=t[n];if(null==this.modules[r][o])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)this.modules[r+i][o+a]=-2==i||2==i||-2==a||2==a||0==i&&0==a}}},{key:"setupTypeNumber",value:function(t){for(var e=m.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!t&&1==(e>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++)r=!t&&1==(e>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},{key:"setupTypeInfo",value:function(t,e){for(var n=this.errorCorrectLevel<<3|e,r=m.getBCHTypeInfo(n),o=0;o<15;o++){var i=!t&&1==(r>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++)i=!t&&1==(r>>o&1),o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i;this.modules[this.moduleCount-8][8]=!t}},{key:"mapData",value:function(t,e){for(var n=-1,r=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var u=0;u<2;u++)if(null==this.modules[r][a-u]){var c=!1;i<t.length&&(c=1==(t[i]>>>o&1)),m.getMask(e,r,a-u)&&(c=!c),this.modules[r][a-u]=c,-1==--o&&(i++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}}],[{key:"createData",value:function(e,n,r){for(var o=g.getRSBlocks(e,n),i=new v,a=0;a<r.length;a++){var u=r[a];i.put(u.mode,4),i.put(u.getLength(),m.getLengthInBits(u.mode,e)),u.write(i)}var c=0;for(a=0;a<o.length;a++)c+=o[a].dataCount;if(i.getLengthInBits()>8*c)throw new Error("code length overflow. (".concat(i.getLengthInBits(),">").concat(8*c,")"));for(i.getLengthInBits()+4<=8*c&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*c||(i.put(t.PAD0,8),i.getLengthInBits()>=8*c));)i.put(t.PAD1,8);return t.createBytes(i,o)}},{key:"createBytes",value:function(t,e){for(var n=0,r=0,o=0,i=new Array(e.length),a=new Array(e.length),u=0;u<e.length;u++){var c=e[u].dataCount,s=e[u].totalCount-c;r=Math.max(r,c),o=Math.max(o,s),i[u]=new Array(c);for(var l=0;l<i[u].length;l++)i[u][l]=255&t.buffer[l+n];n+=c;var f=m.getErrorCorrectPolynomial(s),d=new h(i[u],f.getLength()-1).mod(f);for(a[u]=new Array(f.getLength()-1),l=0;l<a[u].length;l++){var p=l+d.getLength()-a[u].length;a[u][l]=p>=0?d.get(p):0}}var g=0;for(l=0;l<e.length;l++)g+=e[l].totalCount;var v=new Array(g),b=0;for(l=0;l<r;l++)for(u=0;u<e.length;u++)l<i[u].length&&(v[b++]=i[u][l]);for(l=0;l<o;l++)for(u=0;u<e.length;u++)l<a[u].length&&(v[b++]=a[u][l]);return v}}]),t}();s.PAD0=236,s.PAD1=17;var l={L:1,M:0,Q:3,H:2},f={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},d={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},m=function(){function t(){o()(this,t)}return a()(t,null,[{key:"getBCHTypeInfo",value:function(e){for(var n=e<<10;t.getBCHDigit(n)-t.getBCHDigit(t.G15)>=0;)n^=t.G15<<t.getBCHDigit(n)-t.getBCHDigit(t.G15);return(e<<10|n)^t.G15_MASK}},{key:"getBCHTypeNumber",value:function(e){for(var n=e<<12;t.getBCHDigit(n)-t.getBCHDigit(t.G18)>=0;)n^=t.G18<<t.getBCHDigit(n)-t.getBCHDigit(t.G18);return e<<12|n}},{key:"getBCHDigit",value:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e}},{key:"getPatternPosition",value:function(e){return t.PATTERN_POSITION_TABLE[e-1]}},{key:"getMask",value:function(t,e,n){switch(t){case d.PATTERN000:return(e+n)%2==0;case d.PATTERN001:return e%2==0;case d.PATTERN010:return n%3==0;case d.PATTERN011:return(e+n)%3==0;case d.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case d.PATTERN101:return e*n%2+e*n%3==0;case d.PATTERN110:return(e*n%2+e*n%3)%2==0;case d.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:".concat(t))}}},{key:"getErrorCorrectPolynomial",value:function(t){for(var e=new h([1],0),n=0;n<t;n++)e=e.multiply(new h([1,p.gexp(n)],0));return e}},{key:"getLengthInBits",value:function(t,e){if(1<=e&&e<10)switch(t){case f.MODE_NUMBER:return 10;case f.MODE_ALPHA_NUM:return 9;case f.MODE_8BIT_BYTE:case f.MODE_KANJI:return 8;default:throw new Error("mode:".concat(t))}else if(e<27)switch(t){case f.MODE_NUMBER:return 12;case f.MODE_ALPHA_NUM:return 11;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 10;default:throw new Error("mode:".concat(t))}else{if(!(e<41))throw new Error("type:".concat(e));switch(t){case f.MODE_NUMBER:return 14;case f.MODE_ALPHA_NUM:return 13;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 12;default:throw new Error("mode:".concat(t))}}}},{key:"getLostPoint",value:function(t){for(var e=t.getModuleCount(),n=0,r=0;r<e;r++)for(var o=0;o<e;o++){for(var i=0,a=t.isDark(r,o),u=-1;u<=1;u++)if(!(r+u<0||e<=r+u))for(var c=-1;c<=1;c++)o+c<0||e<=o+c||0==u&&0==c||a==t.isDark(r+u,o+c)&&i++;i>5&&(n+=3+i-5)}for(r=0;r<e-1;r++)for(o=0;o<e-1;o++){var s=0;t.isDark(r,o)&&s++,t.isDark(r+1,o)&&s++,t.isDark(r,o+1)&&s++,t.isDark(r+1,o+1)&&s++,0!=s&&4!=s||(n+=3)}for(r=0;r<e;r++)for(o=0;o<e-6;o++)t.isDark(r,o)&&!t.isDark(r,o+1)&&t.isDark(r,o+2)&&t.isDark(r,o+3)&&t.isDark(r,o+4)&&!t.isDark(r,o+5)&&t.isDark(r,o+6)&&(n+=40);for(o=0;o<e;o++)for(r=0;r<e-6;r++)t.isDark(r,o)&&!t.isDark(r+1,o)&&t.isDark(r+2,o)&&t.isDark(r+3,o)&&t.isDark(r+4,o)&&!t.isDark(r+5,o)&&t.isDark(r+6,o)&&(n+=40);var l=0;for(o=0;o<e;o++)for(r=0;r<e;r++)t.isDark(r,o)&&l++;return n+Math.abs(100*l/e/e-50)/5*10}}]),t}();m.PATTERN_POSITION_TABLE=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],m.G15=1335,m.G18=7973,m.G15_MASK=21522;var p=function(){function t(){o()(this,t)}return a()(t,null,[{key:"glog",value:function(e){if(e<1)throw new Error("glog(".concat(e,")"));return t.LOG_TABLE[e]}},{key:"gexp",value:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t.EXP_TABLE[e]}}]),t}();p.EXP_TABLE=new Array(256),p.LOG_TABLE=new Array(256),p._constructor=function(){for(var t=0;t<8;t++)p.EXP_TABLE[t]=1<<t;for(t=8;t<256;t++)p.EXP_TABLE[t]=p.EXP_TABLE[t-4]^p.EXP_TABLE[t-5]^p.EXP_TABLE[t-6]^p.EXP_TABLE[t-8];for(t=0;t<255;t++)p.LOG_TABLE[p.EXP_TABLE[t]]=t}();var h=function(){function t(e,n){if(o()(this,t),null==e.length)throw new Error("".concat(e.length,"/").concat(n));for(var r=0;r<e.length&&0==e[r];)r++;this.num=new Array(e.length-r+n);for(var i=0;i<e.length-r;i++)this.num[i]=e[i+r]}return a()(t,[{key:"get",value:function(t){return this.num[t]}},{key:"getLength",value:function(){return this.num.length}},{key:"multiply",value:function(e){for(var n=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<e.getLength();o++)n[r+o]^=p.gexp(p.glog(this.get(r))+p.glog(e.get(o)));return new t(n,0)}},{key:"mod",value:function(e){if(this.getLength()-e.getLength()<0)return this;for(var n=p.glog(this.get(0))-p.glog(e.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(o=0;o<e.getLength();o++)r[o]^=p.gexp(p.glog(e.get(o))+n);return new t(r,0).mod(e)}}]),t}(),g=function(){function t(e,n){o()(this,t),this.totalCount=e,this.dataCount=n}return a()(t,null,[{key:"getRSBlocks",value:function(e,n){var r=t.getRsBlockTable(e,n);if(null==r)throw new Error("bad rs block @ typeNumber:".concat(e,"/errorCorrectLevel:").concat(n));for(var o=r.length/3,i=[],a=0;a<o;a++)for(var u=r[3*a+0],c=r[3*a+1],s=r[3*a+2],l=0;l<u;l++)i.push(new t(c,s));return i}},{key:"getRsBlockTable",value:function(e,n){switch(n){case l.L:return t.RS_BLOCK_TABLE[4*(e-1)+0];case l.M:return t.RS_BLOCK_TABLE[4*(e-1)+1];case l.Q:return t.RS_BLOCK_TABLE[4*(e-1)+2];case l.H:return t.RS_BLOCK_TABLE[4*(e-1)+3];default:return}}}]),t}();g.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];var v=function(){function t(){o()(this,t),this.buffer=[],this.length=0}return a()(t,[{key:"get",value:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)}},{key:"put",value:function(t,e){for(var n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))}},{key:"getLengthInBits",value:function(){return this.length}},{key:"putBit",value:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}]),t}(),b=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]},function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return s}));var r=n(2),o=n.n(r);function i(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function a(t,e){for(var n,r="",o=0,i=-1,a=0,u=0;u<=t.length;++u){if(u<t.length)n=t.charCodeAt(u);else{if(47===n)break;n=47}if(47===n){if(i===u-1||1===a);else if(i!==u-1&&2===a){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",o=0):o=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),i=u,a=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=u,a=0;continue}e&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+t.slice(i+1,u):r=t.slice(i+1,u),o=u-i-1;i=u,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var u={resolve:function(){for(var e,n="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var u;o>=0?u=arguments[o]:(void 0===e&&(e=t.cwd()),u=e),i(u),0!==u.length&&(n=u+"/"+n,r=47===u.charCodeAt(0))}return n=a(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(t){if(i(t),0===t.length)return".";var e=47===t.charCodeAt(0),n=47===t.charCodeAt(t.length-1);return 0!==(t=a(t,!e)).length||e||(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return i(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];i(n),n.length>0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":u.normalize(t)},relative:function(t,e){if(i(t),i(e),t===e)return"";if((t=u.resolve(t))===(e=u.resolve(e)))return"";for(var n=1;n<t.length&&47===t.charCodeAt(n);++n);for(var r=t.length,o=r-n,a=1;a<e.length&&47===e.charCodeAt(a);++a);for(var c=e.length-a,s=o<c?o:c,l=-1,f=0;f<=s;++f){if(f===s){if(c>s){if(47===e.charCodeAt(a+f))return e.slice(a+f+1);if(0===f)return e.slice(a+f)}else o>s&&(47===t.charCodeAt(n+f)?l=f:0===f&&(l=0));break}var d=t.charCodeAt(n+f);if(d!==e.charCodeAt(a+f))break;47===d&&(l=f)}var m="";for(f=n+l+1;f<=r;++f)f!==r&&47!==t.charCodeAt(f)||(0===m.length?m+="..":m+="/..");return m.length>0?m+e.slice(a+l):(a+=l,47===e.charCodeAt(a)&&++a,e.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(i(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!o){r=a;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"//":t.slice(0,r)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');i(t);var n,r=0,o=-1,a=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var u=e.length-1,c=-1;for(n=t.length-1;n>=0;--n){var s=t.charCodeAt(n);if(47===s){if(!a){r=n+1;break}}else-1===c&&(a=!1,c=n+1),u>=0&&(s===e.charCodeAt(u)?-1==--u&&(o=n):(u=-1,o=c))}return r===o?o=c:-1===o&&(o=t.length),t.slice(r,o)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){r=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":t.slice(r,o)},extname:function(t){i(t);for(var e=-1,n=0,r=-1,o=!0,a=0,u=t.length-1;u>=0;--u){var c=t.charCodeAt(u);if(47!==c)-1===r&&(o=!1,r=u+1),46===c?-1===e?e=u:1!==a&&(a=1):-1!==e&&(a=-1);else if(!o){n=u+1;break}}return-1===e||-1===r||0===a||1===a&&e===r-1&&e===n+1?"":t.slice(e,r)},format:function(t){if(null===t||"object"!==o()(t))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+o()(t));return function(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+"/"+r:r}(0,t)},parse:function(t){i(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,r=t.charCodeAt(0),o=47===r;o?(e.root="/",n=1):n=0;for(var a=-1,u=0,c=-1,s=!0,l=t.length-1,f=0;l>=n;--l)if(47!==(r=t.charCodeAt(l)))-1===c&&(s=!1,c=l+1),46===r?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);else if(!s){u=l+1;break}return-1===a||-1===c||0===f||1===f&&a===c-1&&a===u+1?-1!==c&&(e.base=e.name=0===u&&o?t.slice(1,c):t.slice(u,c)):(0===u&&o?(e.name=t.slice(1,a),e.base=t.slice(1,c)):(e.name=t.slice(u,a),e.base=t.slice(u,c)),e.ext=t.slice(a,c)),u>0?e.dir=t.slice(0,u-1):o&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};u.posix=u;var c=u.extname,s=u.basename}).call(this,n(19))},function(t,e){function n(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return _}));const r=(t,e,n={},o=n)=>{if(Array.isArray(e))e.forEach(e=>r(t,e,n,o));else if("function"==typeof e)e(t,n,o,r);else{const i=Object.keys(e)[0];Array.isArray(e[i])?(o[i]={},r(t,e[i],n,o[i])):o[i]=e[i](t,n,o,r)}return n},o=(t,e)=>(n,r,o,i)=>{e(n,r,o)&&i(n,t,r,o)},i=(t=0)=>e=>e.data[e.pos+t],a=t=>e=>e.data.subarray(e.pos,e.pos+=t),u=t=>e=>e.data.subarray(e.pos,e.pos+t),c=t=>e=>Array.from(a(t)(e)).map(t=>String.fromCharCode(t)).join(""),s=t=>e=>{const n=a(2)(e);return t?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]},l=(t,e)=>(n,r,o)=>{const i="function"==typeof e?e(n,r,o):e,u=a(t),c=new Array(i);for(var s=0;s<i;s++)c[s]=u(n);return c},f=t=>e=>{const n=(t=>t.data[t.pos++])(e),r=new Array(8);for(var o=0;o<8;o++)r[7-o]=!!(n&1<<o);return Object.keys(t).reduce((e,n)=>{const o=t[n];return o.length?e[n]=((t,e,n)=>{for(var r=0,o=0;o<n;o++)r+=t[e+o]&&2**(n-o-1);return r})(r,o.index,o.length):e[n]=r[o.index],e},{})};var d={blocks:t=>{const e=[],n=t.data.length;for(var r=0,o=(t=>t.data[t.pos++])(t);0!==o&&o;o=(t=>t.data[t.pos++])(t)){if(t.pos+o>=n){const o=n-t.pos;e.push(a(o)(t)),r+=o;break}e.push(a(o)(t)),r+=o}const i=new Uint8Array(r);for(var u=0,c=0;c<e.length;c++)i.set(e[c],u),u+=e[c].length;return i}};const m=o({gce:[{codes:a(2)},{byteSize:t=>t.data[t.pos++]},{extras:f({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:s(!0)},{transparentColorIndex:t=>t.data[t.pos++]},{terminator:t=>t.data[t.pos++]}]},t=>{var e=u(2)(t);return 33===e[0]&&249===e[1]}),p=o({image:[{code:t=>t.data[t.pos++]},{descriptor:[{left:s(!0)},{top:s(!0)},{width:s(!0)},{height:s(!0)},{lct:f({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},o({lct:l(3,(t,e,n)=>Math.pow(2,n.descriptor.lct.size+1))},(t,e,n)=>n.descriptor.lct.exists),{data:[{minCodeSize:t=>t.data[t.pos++]},d]}]},t=>44===i()(t)),h=o({text:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{preData:(t,e,n)=>a(n.text.blockSize)(t)},d]},t=>{var e=u(2)(t);return 33===e[0]&&1===e[1]}),g=o({application:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{id:(t,e,n)=>c(n.blockSize)(t)},d]},t=>{var e=u(2)(t);return 33===e[0]&&255===e[1]}),v=o({comment:[{codes:a(2)},d]},t=>{var e=u(2)(t);return 33===e[0]&&254===e[1]});var b=[{header:[{signature:c(3)},{version:c(3)}]},{lsd:[{width:s(!0)},{height:s(!0)},{gct:f({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:t=>t.data[t.pos++]},{pixelAspectRatio:t=>t.data[t.pos++]}]},o({gct:l(3,(t,e)=>Math.pow(2,e.lsd.gct.size+1))},(t,e)=>e.lsd.gct.exists),{frames:((t,e)=>(n,r,o,i)=>{const a=[];let u=n.pos;for(;e(n);){const e={};if(i(n,t,r,e),n.pos===u)break;u=n.pos,a.push(e)}return a})([m,g,v,p,h],t=>{var e=i()(t);return 33===e||44===e})}],y=function(t){var e=new Uint8Array(t);return r({data:e,pos:0},b)},_=function(t,e){return t.frames.filter((function(t){return t.image})).map((function(n){return function(t,e,n){if(t.image){var r=t.image,o=r.descriptor.width*r.descriptor.height,i=function(t,e,n){var r,o,i,a,u,c,s,l,f,d,m,p,h,g,v,b,y=n,_=new Array(n),w=new Array(4096),x=new Array(4096),O=new Array(4097);for(u=1+(o=1<<(d=t)),r=o+2,s=-1,i=(1<<(a=d+1))-1,l=0;l<o;l++)w[l]=0,x[l]=l;for(m=p=h=g=v=b=0,f=0;f<y;){if(0===g){if(p<a){m+=e[b]<<p,p+=8,b++;continue}if(l=m&i,m>>=a,p-=a,l>r||l==u)break;if(l==o){i=(1<<(a=d+1))-1,r=o+2,s=-1;continue}if(-1==s){O[g++]=x[l],s=l,h=l;continue}for(c=l,l==r&&(O[g++]=h,l=s);l>o;)O[g++]=x[l],l=w[l];h=255&x[l],O[g++]=h,r<4096&&(w[r]=s,x[r]=h,0==(++r&i)&&r<4096&&(a++,i+=r)),s=c}g--,_[v++]=O[g],f++}for(f=v;f<y;f++)_[f]=0;return _}(r.data.minCodeSize,r.data.blocks,o);r.descriptor.lct.interlaced&&(i=function(t,e){for(var n=new Array(t.length),r=t.length/e,o=function(r,o){var i=t.slice(o*e,(o+1)*e);n.splice.apply(n,[r*e,e].concat(i))},i=[0,4,2,1],a=[8,8,4,2],u=0,c=0;c<4;c++)for(var s=i[c];s<r;s+=a[c])o(s,u),u++;return n}(i,r.descriptor.width));var a={pixels:i,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?a.colorTable=r.lct:a.colorTable=e,t.gce&&(a.delay=10*(t.gce.delay||10),a.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(a.transparentIndex=t.gce.transparentColorIndex)),n&&(a.patch=function(t){for(var e=t.pixels.length,n=new Uint8ClampedArray(4*e),r=0;r<e;r++){var o=4*r,i=t.pixels[r],a=t.colorTable[i];n[o]=a[0],n[o+1]=a[1],n[o+2]=a[2],n[o+3]=i!==t.transparentIndex?255:0}return n}(a)),a}}(n,t.gct,e)}))}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return v}));var r=n(2),o=n.n(r),i=n(0),a=n.n(i),u=n(1),c=n.n(u),s=n(3),l=n.n(s),f=n(10),d=n(7),m=n(4),p=n(12),h=f.a.Canvas;function g(t){if(t)return new Promise((function(n,r){if("data"==t.slice(0,4)){var o=new Image;return o.onload=function(){n(o),e(o)},o.onerror=function(){r("Image load error"),e(o)},void(o.src=t)}var i=new Image;i.setAttribute("crossOrigin","Anonymous"),i.onload=function(){n(i)},i.onerror=function(){r("Image load error")},i.src=t}));function e(t){t.onload=null,t.onerror=null}}var v=function(){function e(t){a()(this,e);var n=Object.assign({},t);if(Object.keys(e.defaultOptions).forEach((function(t){t in n||Object.defineProperty(n,t,{value:e.defaultOptions[t],enumerable:!0,writable:!0})})),n.components?"object"===o()(n.components)&&Object.keys(e.defaultComponentOptions).forEach((function(t){t in n.components?Object.defineProperty(n.components,t,{value:Object.assign(Object.assign({},e.defaultComponentOptions[t]),n.components[t]),enumerable:!0,writable:!0}):Object.defineProperty(n.components,t,{value:e.defaultComponentOptions[t],enumerable:!0,writable:!0})})):n.components=e.defaultComponentOptions,null!==n.dotScale&&void 0!==n.dotScale){if(n.dotScale<=0||n.dotScale>1)throw new Error("dotScale should be in range (0, 1].");n.components.data.scale=n.dotScale,n.components.timing.scale=n.dotScale,n.components.alignment.scale=n.dotScale}this.options=n,this.canvas=new h(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new m.a(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}return c()(e,[{key:"draw",value:function(){var t=this;return new Promise((function(e){return t._draw().then(e)}))}},{key:"_clear",value:function(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"_draw",value:function(){var n,r,o,i,a,u,c,s,f,v,y,_,w,x,O,S,C,E,k;return function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,l.a.mark((function T(){var M,D,A,P,R,I,z,j,L,B,F,N,H,V,U,W,$,G,K,q,X,Y,J,Q,Z,tt,et,nt,rt,ot,it,at,ut,ct,st,lt,ft,dt,mt,pt,ht,gt,vt,bt,yt,_t,wt,xt,Ot,St,Ct,Et,kt,Tt,Mt,Dt,At,Pt,Rt,It,zt,jt,Lt,Bt,Ft,Nt,Ht,Vt,Ut,Wt,$t,Gt;return l.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(M=null===(n=this.qrCode)||void 0===n?void 0:n.moduleCount,D=this.options.size,((A=this.options.margin)<0||2*A>=D)&&(A=0),P=Math.ceil(A),R=D-2*A,I=this.options.whiteMargin,z=this.options.backgroundDimming,j=Math.ceil(R/M),F=new h(B=(L=j*M)+2*P,B),N=F.getContext("2d"),this._clear(),N.save(),N.translate(P,P),H=new h(B,B),V=H.getContext("2d"),U=null,W=[],!this.options.gifBackground){l.next=47;break}if($=Object(d.b)(this.options.gifBackground),U=$,W=Object(d.a)($,!0),!this.options.autoColor){l.next=45;break}G=0,K=0,q=0,X=0,Y=0;case 28:if(!(Y<W[0].colorTable.length)){l.next=41;break}if(!((J=W[0].colorTable[Y])[0]>200||J[1]>200||J[2]>200)){l.next=32;break}return l.abrupt("continue",38);case 32:if(0!==J[0]||0!==J[1]||0!==J[2]){l.next=34;break}return l.abrupt("continue",38);case 34:X++,G+=J[0],K+=J[1],q+=J[2];case 38:Y++,l.next=28;break;case 41:G=~~(G/X),K=~~(K/X),q=~~(q/X),this.options.colorDark="rgb(".concat(G,",").concat(K,",").concat(q,")");case 45:l.next=61;break;case 47:if(!this.options.backgroundImage){l.next=58;break}return l.next=50,g(this.options.backgroundImage);case 50:Q=l.sent,this.options.autoColor&&(Z=e._getAverageRGB(Q),this.options.colorDark="rgb(".concat(Z.r,",").concat(Z.g,",").concat(Z.b,")")),V.drawImage(Q,0,0,Q.width,Q.height,0,0,B,B),V.rect(0,0,B,B),V.fillStyle=z,V.fill(),l.next=61;break;case 58:V.rect(0,0,B,B),V.fillStyle=this.options.colorLight,V.fill();case 61:for(tt=m.c.getPatternPosition(this.qrCode.typeNumber),et=(null===(o=null===(r=this.options.components)||void 0===r?void 0:r.data)||void 0===o?void 0:o.scale)||.4,nt=.5*(1-et),rt=0;rt<M;rt++)for(ot=0;ot<M;ot++){for(it=this.qrCode.isDark(rt,ot),at=6==rt&&ot>=8&&ot<=M-8||6==ot&&rt>=8&&rt<=M-8,ut=ot<8&&(rt<8||rt>=M-8)||ot>=M-8&&rt<8||at,ct=1;ct<tt.length-1;ct++)ut=ut||rt>=tt[ct]-2&&rt<=tt[ct]+2&&ot>=tt[ct]-2&&ot<=tt[ct]+2;st=ot*j+(ut?0:nt*j),lt=rt*j+(ut?0:nt*j),N.strokeStyle=it?this.options.colorDark:this.options.colorLight,N.lineWidth=.5,N.fillStyle=it?this.options.colorDark:this.options.colorLight,0===tt.length?ut||N.fillRect(st,lt,(ut?1:et)*j,(ut?1:et)*j):(ft=ot<M-4&&ot>=M-4-5&&rt<M-4&&rt>=M-4-5,ut||ft||N.fillRect(st,lt,(ut?1:et)*j,(ut?1:et)*j))}if(dt=tt[tt.length-1],mt=this.options.colorLight,N.fillStyle=mt,N.fillRect(0,0,8*j,8*j),N.fillRect(0,(M-8)*j,8*j,8*j),N.fillRect((M-8)*j,0,8*j,8*j),(null===(a=null===(i=this.options.components)||void 0===i?void 0:i.timing)||void 0===a?void 0:a.protectors)&&(N.fillRect(8*j,6*j,(M-8-8)*j,j),N.fillRect(6*j,8*j,j,(M-8-8)*j)),(null===(c=null===(u=this.options.components)||void 0===u?void 0:u.cornerAlignment)||void 0===c?void 0:c.protectors)&&e._drawAlignProtector(N,dt,dt,j),!(null===(f=null===(s=this.options.components)||void 0===s?void 0:s.alignment)||void 0===f?void 0:f.protectors)){l.next=99;break}pt=0;case 75:if(!(pt<tt.length)){l.next=99;break}ht=0;case 77:if(!(ht<tt.length)){l.next=96;break}if(gt=tt[ht],vt=tt[pt],6!==gt||6!==vt&&vt!==dt){l.next=84;break}return l.abrupt("continue",93);case 84:if(6!==vt||6!==gt&>!==dt){l.next=88;break}return l.abrupt("continue",93);case 88:if(gt!==dt||vt!==dt){l.next=92;break}return l.abrupt("continue",93);case 92:e._drawAlignProtector(N,gt,vt,j);case 93:ht++,l.next=77;break;case 96:pt++,l.next=75;break;case 99:for(N.fillStyle=this.options.colorDark,N.fillRect(0,0,7*j,j),N.fillRect((M-7)*j,0,7*j,j),N.fillRect(0,6*j,7*j,j),N.fillRect((M-7)*j,6*j,7*j,j),N.fillRect(0,(M-7)*j,7*j,j),N.fillRect(0,(M-7+6)*j,7*j,j),N.fillRect(0,0,j,7*j),N.fillRect(6*j,0,j,7*j),N.fillRect((M-7)*j,0,j,7*j),N.fillRect((M-7+6)*j,0,j,7*j),N.fillRect(0,(M-7)*j,j,7*j),N.fillRect(6*j,(M-7)*j,j,7*j),N.fillRect(2*j,2*j,3*j,3*j),N.fillRect((M-7+2)*j,2*j,3*j,3*j),N.fillRect(2*j,(M-7+2)*j,3*j,3*j),bt=(null===(y=null===(v=this.options.components)||void 0===v?void 0:v.timing)||void 0===y?void 0:y.scale)||.4,yt=.5*(1-bt),_t=0;_t<M-8;_t+=2)e._drawDot(N,8+_t,6,j,yt,bt),e._drawDot(N,6,8+_t,j,yt,bt);wt=(null===(w=null===(_=this.options.components)||void 0===_?void 0:_.cornerAlignment)||void 0===w?void 0:w.scale)||.4,xt=.5*(1-wt),e._drawAlign(N,dt,dt,j,xt,wt,this.options.colorDark,(null===(O=null===(x=this.options.components)||void 0===x?void 0:x.cornerAlignment)||void 0===O?void 0:O.protectors)||!1),Ot=(null===(C=null===(S=this.options.components)||void 0===S?void 0:S.alignment)||void 0===C?void 0:C.scale)||.4,St=.5*(1-Ot),Ct=0;case 124:if(!(Ct<tt.length)){l.next=148;break}Et=0;case 126:if(!(Et<tt.length)){l.next=145;break}if(kt=tt[Et],Tt=tt[Ct],6!==kt||6!==Tt&&Tt!==dt){l.next=133;break}return l.abrupt("continue",142);case 133:if(6!==Tt||6!==kt&&kt!==dt){l.next=137;break}return l.abrupt("continue",142);case 137:if(kt!==dt||Tt!==dt){l.next=141;break}return l.abrupt("continue",142);case 141:e._drawAlign(N,kt,Tt,j,St,Ot,this.options.colorDark,(null===(k=null===(E=this.options.components)||void 0===E?void 0:E.alignment)||void 0===k?void 0:k.protectors)||!1);case 142:Et++,l.next=126;break;case 145:Ct++,l.next=124;break;case 148:if(I&&(N.fillStyle=this.options.backgroundColor,N.fillRect(-P,-P,B,P),N.fillRect(-P,L,B,P),N.fillRect(L,-P,P,B),N.fillRect(-P,-P,P,B)),!this.options.logoImage){l.next=179;break}return l.next=152,g(this.options.logoImage);case 152:Mt=l.sent,Dt=this.options.logoScale,At=this.options.logoMargin,Pt=this.options.logoCornerRadius,(Dt<=0||Dt>=1)&&(Dt=.2),At<0&&(At=0),Pt<0&&(Pt=0),zt=It=.5*(B-(Rt=L*Dt)),N.restore(),N.fillStyle=this.options.logoBackgroundColor,N.save(),e._prepareRoundedCornerClip(N,It-At,zt-At,Rt+2*At,Rt+2*At,Pt+At),N.clip(),jt=N.globalCompositeOperation,N.globalCompositeOperation="destination-out",N.fill(),N.globalCompositeOperation=jt,N.restore(),N.save(),e._prepareRoundedCornerClip(N,It,zt,Rt,Rt,Pt),N.clip(),N.drawImage(Mt,It,zt,Rt,Rt),N.restore(),N.save(),N.translate(P,P);case 179:if(!U){l.next=191;break}if(W.forEach((function(t){Lt||((Lt=new p.a(D,D)).setDelay(t.delay),Lt.setRepeat(0));var e=t.dims,n=e.width,r=e.height;Bt||(Bt=new h(n,r),(Ft=Bt.getContext("2d")).rect(0,0,Bt.width,Bt.height),Ft.fillStyle="#ffffff",Ft.fill()),Nt&&Vt&&n===Nt.width&&r===Nt.height||(Nt=new h(n,r),Ht=Nt.getContext("2d"),Vt=Ht.createImageData(n,r)),Vt.data.set(t.patch),Ht.putImageData(Vt,0,0),Ft.drawImage(Nt.getContext("2d").canvas,t.dims.left,t.dims.top);var o=new h(B,B),i=o.getContext("2d");i.drawImage(Bt.getContext("2d").canvas,0,0,B,B),i.rect(0,0,B,B),i.fillStyle=z,i.fill(),i.drawImage(F.getContext("2d").canvas,0,0,B,B);var a=new h(D,D),u=a.getContext("2d");u.drawImage(o.getContext("2d").canvas,0,0,D,D),Lt.addFrame(u.getImageData(0,0,a.width,a.height).data)})),Lt){l.next=183;break}throw new Error("No frames.");case 183:if(Lt.finish(),!b(this.canvas)){l.next=188;break}return Ut=Lt.stream().toFlattenUint8Array(),Wt=Ut.reduce((function(t,e){return t+String.fromCharCode(e)}),""),l.abrupt("return",Promise.resolve("data:image/gif;base64,".concat(window.btoa(Wt))));case 188:return l.abrupt("return",Promise.resolve(t.from(Lt.stream().toFlattenUint8Array())));case 191:if(V.drawImage(F.getContext("2d").canvas,0,0,B,B),N.drawImage(H.getContext("2d").canvas,-P,-P,B,B),($t=new h(D,D)).getContext("2d").drawImage(F.getContext("2d").canvas,0,0,D,D),this.canvas=$t,Gt=this.options.gifBackground?"gif":"png",!b(this.canvas)){l.next=200;break}return l.abrupt("return",Promise.resolve(this.canvas.toDataURL(Gt)));case 200:return l.abrupt("return",Promise.resolve(this.canvas.toBuffer(Gt)));case 201:case"end":return l.stop()}}),T,this)})))}}],[{key:"_prepareRoundedCornerClip",value:function(t,e,n,r,o,i){t.beginPath(),t.moveTo(e,n),t.arcTo(e+r,n,e+r,n+o,i),t.arcTo(e+r,n+o,e,n+o,i),t.arcTo(e,n+o,e,n,i),t.arcTo(e,n,e+r,n,i),t.closePath()}},{key:"_getAverageRGB",value:function(t){var e,n,r={r:0,g:0,b:0},o=-4,i={r:0,g:0,b:0},a=0;n=t.naturalHeight||t.height,e=t.naturalWidth||t.width;var u,c=new h(e,n).getContext("2d");if(!c)return r;c.drawImage(t,0,0);try{u=c.getImageData(0,0,e,n)}catch(t){return r}for(;(o+=20)<u.data.length;)u.data[o]>200||u.data[o+1]>200||u.data[o+2]>200||(++a,i.r+=u.data[o],i.g+=u.data[o+1],i.b+=u.data[o+2]);return i.r=~~(i.r/a),i.g=~~(i.g/a),i.b=~~(i.b/a),i}},{key:"_drawDot",value:function(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;t.fillRect((e+o)*r,(n+o)*r,i*r,i*r)}},{key:"_drawAlignProtector",value:function(t,e,n,r){t.clearRect((e-2)*r,(n-2)*r,5*r,5*r),t.fillRect((e-2)*r,(n-2)*r,5*r,5*r)}},{key:"_drawAlign",value:function(t,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,u=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=t.fillStyle;t.fillStyle=u,new Array(4).fill(0).map((function(u,c){e._drawDot(t,n-2+c,r-2,o,i,a),e._drawDot(t,n+2,r-2+c,o,i,a),e._drawDot(t,n+2-c,r+2,o,i,a),e._drawDot(t,n-2,r+2-c,o,i,a)})),e._drawDot(t,n,r,o,i,a),c||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((function(u,c){e._drawDot(t,n-1+c,r-1,o,i,a),e._drawDot(t,n+1,r-1+c,o,i,a),e._drawDot(t,n+1-c,r+1,o,i,a),e._drawDot(t,n-1,r+1-c,o,i,a)}))),t.fillStyle=s}}]),e}();function b(t){try{return t instanceof HTMLElement}catch(e){return"object"===o()(t)&&1===t.nodeType&&"object"===o()(t.style)&&"object"===o()(t.ownerDocument)}}v.CorrectLevel=m.b,v.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}},v.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:m.b.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:v.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"}}).call(this,n(15).Buffer)},function(t,e,n){"use strict";var r=n(11);const{asBuffer:o,asDownload:i,asZipDownload:a,atScale:u,options:c}=r.a,s=Symbol.for("toDataURL"),{CanvasRenderingContext2D:l,CanvasGradient:f,CanvasPattern:d,Image:m,ImageData:p,Path2D:h,DOMMatrix:g,DOMRect:v,DOMPoint:b}=window,y={Canvas:class{constructor(t,e){let n=document.createElement("canvas"),r=[];for(var[l,f]of(Object.defineProperty(n,"async",{value:!0,writable:!1,enumerable:!0}),Object.entries({png:()=>o(n,"image/png"),jpg:()=>o(n,"image/jpeg"),pages:()=>r.concat(n).map(t=>t.getContext("2d"))})))Object.defineProperty(n,l,{get:f});return Object.assign(n,{width:t,height:e,newPage(...t){var{width:e,height:o}=n,i=Object.assign(document.createElement("canvas"),{width:e,height:o});i.getContext("2d").drawImage(n,0,0),r.push(i);var[e,o]=t.length?t:[e,o];return Object.assign(n,{width:e,height:o}).getContext("2d")},saveAs(t,e){e="number"==typeof e?{quality:e}:e;let n=c(this.pages,{filename:t,...e}),{pattern:r,padding:o,mime:s,quality:l,matte:f,density:d,archive:m}=n,p=u(n.pages,d);return null==o?i(p[0],s,l,f,t):a(p,s,l,f,m,r,o)},toBuffer(t="png",e={}){e="number"==typeof e?{quality:e}:e;let n=c(this.pages,{extension:t,...e}),{mime:r,quality:i,matte:a,pages:s,density:l}=n,f=u(s,l,a)[0];return o(f,r,i,a)},[s]:n.toDataURL.bind(n),toDataURL(t="png",e={}){e="number"==typeof e?{quality:e}:e;let r=c(this.pages,{extension:t,...e}),{mime:o,quality:i,matte:a,pages:l,density:f}=r,d=u(l,f,a)[0],m=d[d===n?s:"toDataURL"](o,i);return Promise.resolve(m)}})}},loadImage:t=>new Promise((e,n)=>Object.assign(new m,{crossOrigin:"Anonymous",onload:e,onerror:n,src:t})),CanvasRenderingContext2D:l,CanvasGradient:f,CanvasPattern:d,Image:m,ImageData:p,Path2D:h,DOMMatrix:g,DOMRect:v,DOMPoint:b};e.a=y},function(t,e,n){"use strict";(function(t){var r=n(5);class o{constructor(){let e=void 0===t,n="image/png",r="image/jpeg",o="application/pdf",i="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:e?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:e?{png:n,jpg:r,jpeg:"image/jpeg",webp:"image/webp"}:{png:n,jpg:r,jpeg:"image/jpeg",pdf:o,svg:i},mimes:e?{[n]:"png",[r]:"jpg","image/webp":"webp"}:{[n]:"png",[r]:"jpg",[o]:"pdf",[i]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}class i{static for(t){return(new i).append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=0|this.crc,n=this.table,r=0,o=0|t.length;r<o;r++)e=e>>>8^n[255&(e^t[r])];return this.crc=e,this}}function a(t){let e=new Uint8Array(t),n=new DataView(e.buffer),r={array:e,view:n,size:t,set8:(t,e)=>(n.setUint8(t,e),r),set16:(t,e)=>(n.setUint16(t,e,!0),r),set32:(t,e)=>(n.setUint32(t,e,!0),r),bytes:(t,n)=>(e.set(n,t),r)};return r}i.prototype.table=(()=>{var t,e,n,r=[];for(t=0;t<256;t++){for(n=t,e=0;e<8;e++)n=1&n?n>>>1^3988292384:n>>>1;r[t]=n}return r})();class u{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let n=!e,r=u.encoder.encode(`${this.directory}/${n?"":t}`),o=new Uint8Array(n?0:await e.arrayBuffer()),c=30+r.length,s=c+o.length,{offset:l}=this,f=a(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,i.for(o)).set32(14,o.length).set32(18,o.length).set16(22,r.length);l+=c;let d=a(c+o.length+16).set32(0,67324752).bytes(4,f.array).bytes(30,r).bytes(c,o);l+=o.length,d.set32(s,134695760).bytes(s+4,f.array.slice(10,22)),l+=16,this.files.push({offset:l,folder:n,name:r,header:f,payload:d}),this.offset=l}toBuffer(){let t=this.files.reduce((t,{name:e})=>46+e.length+t,0),e=a(t+22),n=0;for(var{offset:r,name:o,header:i,folder:u}of this.files)e.set32(n,33639248).set16(n+4,20).bytes(n+6,i.array).set8(n+38,u?16:0).set32(n+42,r).bytes(n+46,o),n+=46+o.length;e.set32(n,101010256).set16(n+8,this.files.length).set16(n+10,this.files.length).set32(n+12,t).set32(n+16,this.offset);let c=new Uint8Array(this.offset+e.size),s=0;for(var{payload:l}of this.files)c.set(l.array,s),s+=l.size;return c.set(e.array,s),c}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}u.encoder=new TextEncoder;const c=(t,e,n,r)=>{if(r){let{width:e,height:n}=t,o=Object.assign(document.createElement("canvas"),{width:e,height:n}),i=o.getContext("2d");i.fillStyle=r,i.fillRect(0,0,e,n),i.drawImage(t,0,0),t=o}return new Promise((r,o)=>t.toBlob(r,e,n))},s=(t,e)=>{const n=window.URL.createObjectURL(e),r=document.createElement("a");r.style.display="none",r.href=n,r.setAttribute("download",t),void 0===r.download&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>window.URL.revokeObjectURL(n),100)},l={asBuffer:(...t)=>c(...t).then(t=>t.arrayBuffer()),asDownload:async(t,e,n,r,o)=>{s(o,await c(t,e,n,r))},asZipDownload:async(t,e,n,o,i,a,l)=>{let f=Object(r.a)(i,".zip")||"archive",d=new u(f);await Promise.all(t.map(async(t,r)=>{let i=(t=>a.replace("{}",String(t+1).padStart(l,"0")))(r);await d.add(i,await c(t,e,n,o))})),s(f+".zip",d.blob)},atScale:(t,e,n)=>t.map(t=>{if(1==e&&!n)return t.canvas;let r=document.createElement("canvas"),o=r.getContext("2d"),i=t.canvas?t.canvas:t;return r.width=i.width*e,r.height=i.height*e,n&&(o.fillStyle=n,o.fillRect(0,0,r.width,r.height)),o.scale(e,e),o.drawImage(i,0,0),r}),options:function(t,{filename:e="",extension:n="",format:i,page:a,quality:u,matte:c,density:s,outline:l,archive:f}={}){var{fromMime:d,toMime:m,expected:p}=new o,h=(f=f||"canvas",i||n.replace(/@\d+x$/i,"")||Object(r.b)(e)),g=(i=d(m(h)||h),m(i)),v=t.length;if(!h)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!i)throw new Error(`Unsupported file format "${h}" (expected ${p})`);if(!v)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let b,y,_=e.replace(/{(\d*)}/g,(t,e)=>(y=!0,e=parseInt(e,10),b=isFinite(e)?e:isFinite(b)?b:-1,"{}")),w=a>0?a-1:a<0?v+a:void 0;if(isFinite(w)&&w<0||w>=v)throw new RangeError(1==v?`Canvas only has a ‘page 1’ (${w} is out of bounds)`:`Canvas has pages 1–${v} (${w} is out of bounds)`);if(t=isFinite(w)?[t[w]]:y||"pdf"==i?t:t.slice(-1),void 0===u)u=.92;else if("number"!=typeof u||!isFinite(u)||u<0||u>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(void 0===s){let t=(n||Object(r.a)(e,h)).match(/@(\d+)x$/i);s=t?parseInt(t[1],10):1}else if("number"!=typeof s||!Number.isInteger(s)||s<1)throw new TypeError("The density option must be a non-negative integer");return void 0===l?l=!0:"svg"==i&&(l=!!l),{filename:e,pattern:_,format:i,mime:g,pages:t,padding:b,quality:u,matte:c,density:s,outline:l,archive:f}}};e.a=l}).call(this,n(8))},function(t,e,n){"use strict";var r=function(t,e){var n,r,o,i,a;function u(t,e,r,o,i){n[e][0]-=t*(n[e][0]-r)/1024,n[e][1]-=t*(n[e][1]-o)/1024,n[e][2]-=t*(n[e][2]-i)/1024}function c(t,e,r,o,i){for(var u,c,s=Math.abs(e-t),l=Math.min(e+t,256),f=e+1,d=e-1,m=1;f<l||d>s;)c=a[m++],f<l&&((u=n[f++])[0]-=c*(u[0]-r)/(1<<18),u[1]-=c*(u[1]-o)/(1<<18),u[2]-=c*(u[2]-i)/(1<<18)),d>s&&((u=n[d--])[0]-=c*(u[0]-r)/(1<<18),u[1]-=c*(u[1]-o)/(1<<18),u[2]-=c*(u[2]-i)/(1<<18))}function s(t,e,r){var a,u,c,s,l,f=~(1<<31),d=f,m=-1,p=m;for(a=0;a<256;a++)u=n[a],(c=Math.abs(u[0]-t)+Math.abs(u[1]-e)+Math.abs(u[2]-r))<f&&(f=c,m=a),(s=c-(o[a]>>12))<d&&(d=s,p=a),l=i[a]>>10,i[a]-=l,o[a]+=l<<10;return i[m]+=64,o[m]-=65536,p}this.buildColormap=function(){!function(){var t,e;for(n=[],r=new Int32Array(256),o=new Int32Array(256),i=new Int32Array(256),a=new Int32Array(32),t=0;t<256;t++)e=(t<<12)/256,n[t]=new Float64Array([e,e,e,0]),i[t]=256,o[t]=0}(),function(){var n,r,o,i,l,f,d=t.length,m=30+(e-1)/3,p=d/(3*e),h=~~(p/100),g=1024,v=2048,b=v>>6;for(b<=1&&(b=0),n=0;n<b;n++)a[n]=g*(256*(b*b-n*n)/(b*b));d<1509?(e=1,r=3):r=d%499!=0?1497:d%491!=0?1473:d%487!=0?1461:1509;var y=0;for(n=0;n<p;)if(u(g,f=s(o=(255&t[y])<<4,i=(255&t[y+1])<<4,l=(255&t[y+2])<<4),o,i,l),0!==b&&c(b,f,o,i,l),(y+=r)>=d&&(y-=d),0===h&&(h=1),++n%h==0)for(g-=g/m,(b=(v-=v/30)>>6)<=1&&(b=0),f=0;f<b;f++)a[f]=g*(256*(b*b-f*f)/(b*b))}(),function(){for(var t=0;t<256;t++)n[t][0]>>=4,n[t][1]>>=4,n[t][2]>>=4,n[t][3]=t}(),function(){var t,e,o,i,a,u,c=0,s=0;for(t=0;t<256;t++){for(a=t,u=(o=n[t])[1],e=t+1;e<256;e++)(i=n[e])[1]<u&&(a=e,u=i[1]);if(i=n[a],t!=a&&(e=i[0],i[0]=o[0],o[0]=e,e=i[1],i[1]=o[1],o[1]=e,e=i[2],i[2]=o[2],o[2]=e,e=i[3],i[3]=o[3],o[3]=e),u!=c){for(r[c]=s+t>>1,e=c+1;e<u;e++)r[e]=t;c=u,s=t}}for(r[c]=s+255>>1,e=c+1;e<256;e++)r[e]=255}()},this.getColormap=function(){for(var t=[],e=[],r=0;r<256;r++)e[n[r][3]]=r;for(var o=0,i=0;i<256;i++){var a=e[i];t[o++]=n[a][0],t[o++]=n[a][1],t[o++]=n[a][2]}return t},this.lookupRGB=function(t,e,o){for(var i,a,u,c=1e3,s=-1,l=r[e],f=l-1;l<256||f>=0;)l<256&&((u=(a=n[l])[1]-e)>=c?l=256:(l++,u<0&&(u=-u),(i=a[0]-t)<0&&(i=-i),(u+=i)<c&&((i=a[2]-o)<0&&(i=-i),(u+=i)<c&&(c=u,s=a[3])))),f>=0&&((u=e-(a=n[f])[1])>=c?f=-1:(f--,u<0&&(u=-u),(i=a[0]-t)<0&&(i=-i),(u+=i)<c&&((i=a[2]-o)<0&&(i=-i),(u+=i)<c&&(c=u,s=a[3]))));return s}},o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],i=function(t,e,n,r){var i,a,u,c,s,l,f,d,m,p=Math.max(2,r),h=new Uint8Array(256),g=new Int32Array(5003),v=new Int32Array(5003),b=0,y=0,_=!1;function w(t,e){h[a++]=t,a>=254&&S(e)}function x(t){O(5003),y=s+2,_=!0,k(s,t)}function O(t){for(var e=0;e<t;++e)g[e]=-1}function S(t){a>0&&(t.writeByte(a),t.writeBytes(h,0,a),a=0)}function C(t){return(1<<t)-1}function E(){return 0===f?-1:(--f,255&n[d++])}function k(t,e){for(i&=o[b],b>0?i|=t<<b:i=t,b+=m;b>=8;)w(255&i,e),i>>=8,b-=8;if((y>u||_)&&(_?(u=C(m=c),_=!1):(++m,u=12==m?4096:C(m))),t==l){for(;b>0;)w(255&i,e),i>>=8,b-=8;S(e)}}this.encode=function(n){n.writeByte(p),f=t*e,d=0,function(t,e){var n,r,o,i,f,d;for(_=!1,u=C(m=c=t),l=1+(s=1<<t-1),y=s+2,a=0,i=E(),d=0,n=5003;n<65536;n*=2)++d;d=8-d,O(5003),k(s,e);t:for(;-1!=(r=E());)if(n=(r<<12)+i,g[o=r<<d^i]!==n){if(g[o]>=0){f=5003-o,0===o&&(f=1);do{if((o-=f)<0&&(o+=5003),g[o]===n){i=v[o];continue t}}while(g[o]>=0)}k(i,e),i=r,y<4096?(v[o]=y++,g[o]=n):x(e)}else i=v[o];k(i,e),k(l,e)}(p+1,n),n.writeByte(0)}};function a(){this.page=-1,this.pages=[],this.newPage()}a.pageSize=4096,a.charMap={};for(var u=0;u<256;u++)a.charMap[u]=String.fromCharCode(u);function c(t,e){this.width=~~t,this.height=~~e,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new a}a.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(a.pageSize),this.cursor=0},a.prototype.getData=function(){for(var t="",e=0;e<this.pages.length;e++)for(var n=0;n<a.pageSize;n++)t+=a.charMap[this.pages[e][n]];return t},a.prototype.toFlattenUint8Array=function(){for(var t=[],e=0;e<this.pages.length;e++)if(e===this.pages.length-1){var n=Uint8Array.from(this.pages[e].slice(0,this.cursor));t.push(n)}else t.push(this.pages[e]);var r=new Uint8Array(t.reduce((function(t,e){return t+e.length}),0));return t.reduce((function(t,e){return r.set(e,t),t+e.length}),0),r},a.prototype.writeByte=function(t){this.cursor>=a.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},a.prototype.writeUTFBytes=function(t){for(var e=t.length,n=0;n<e;n++)this.writeByte(t.charCodeAt(n))},a.prototype.writeBytes=function(t,e,n){for(var r=n||t.length,o=e||0;o<r;o++)this.writeByte(t[o])},c.prototype.setDelay=function(t){this.delay=Math.round(t/10)},c.prototype.setFrameRate=function(t){this.delay=Math.round(100/t)},c.prototype.setDispose=function(t){t>=0&&(this.dispose=t)},c.prototype.setRepeat=function(t){this.repeat=t},c.prototype.setTransparent=function(t){this.transparent=t},c.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},c.prototype.finish=function(){this.out.writeByte(59)},c.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},c.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},c.prototype.setGlobalPalette=function(t){this.globalPalette=t},c.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},c.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},c.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new r(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},c.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var n=0,r=0;r<e;r++){var o=this.findClosestRGB(255&this.pixels[n++],255&this.pixels[n++],255&this.pixels[n++]);this.usedEntry[o]=!0,this.indexedPixels[r]=o}},c.prototype.ditherPixels=function(t,e){var n={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[2/8,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!t||!n[t])throw"Unknown dithering kernel: "+t;var r=n[t],o=0,i=this.height,a=this.width,u=this.pixels,c=e?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var s=0;s<i;s++){e&&(c*=-1);for(var l=1==c?0:a-1,f=1==c?a:0;l!==f;l+=c){var d=3*(o=s*a+l),m=u[d],p=u[d+1],h=u[d+2];d=this.findClosestRGB(m,p,h),this.usedEntry[d]=!0,this.indexedPixels[o]=d,d*=3;for(var g=m-this.colorTab[d],v=p-this.colorTab[d+1],b=h-this.colorTab[d+2],y=1==c?0:r.length-1,_=1==c?r.length:0;y!==_;y+=c){var w=r[y][1],x=r[y][2];if(w+l>=0&&w+l<a&&x+s>=0&&x+s<i){var O=r[y][0];d=o+w+x*a,u[d*=3]=Math.max(0,Math.min(255,u[d]+g*O)),u[d+1]=Math.max(0,Math.min(255,u[d+1]+v*O)),u[d+2]=Math.max(0,Math.min(255,u[d+2]+b*O))}}}}},c.prototype.findClosest=function(t,e){return this.findClosestRGB((16711680&t)>>16,(65280&t)>>8,255&t,e)},c.prototype.findClosestRGB=function(t,e,n,r){if(null===this.colorTab)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(t,e,n);for(var o=0,i=16777216,a=this.colorTab.length,u=0,c=0;u<a;c++){var s=t-(255&this.colorTab[u++]),l=e-(255&this.colorTab[u++]),f=n-(255&this.colorTab[u++]),d=s*s+l*l+f*f;(!r||this.usedEntry[c])&&d<i&&(i=d,o=c)}return o},c.prototype.getImagePixels=function(){var t=this.width,e=this.height;this.pixels=new Uint8Array(t*e*3);for(var n=this.image,r=0,o=0,i=0;i<e;i++)for(var a=0;a<t;a++)this.pixels[o++]=n[r++],this.pixels[o++]=n[r++],this.pixels[o++]=n[r++],r++},c.prototype.writeGraphicCtrlExt=function(){var t,e;this.out.writeByte(33),this.out.writeByte(249),this.out.writeByte(4),null===this.transparent?(t=0,e=0):(t=1,e=2),this.dispose>=0&&(e=7&this.dispose),e<<=2,this.out.writeByte(0|e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},c.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},c.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},c.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},c.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e<t;e++)this.out.writeByte(0)},c.prototype.writeShort=function(t){this.out.writeByte(255&t),this.out.writeByte(t>>8&255)},c.prototype.writePixels=function(){new i(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},c.prototype.stream=function(){return this.out},e.a=c},function(t,e,n){t.exports=n(20)},function(t,e,n){var r=n(2).default;function o(){"use strict";
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,i=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=O(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m={};function p(){}function h(){}function g(){}var v={};l(v,u,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(k([])));y&&y!==n&&i.call(y,u)&&(v=y);var _=g.prototype=p.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){var n;this._invoke=function(o,a){function u(){return new e((function(n,u){!function n(o,a,u,c){var s=d(t[o],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==r(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,c)}))}c(s.arg)}(o,a,n,u)}))}return n=n?n.then(u,u):u()}}function O(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var r=d(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,m;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,m):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=g,l(_,"constructor",g),l(g,"constructor",h),h.displayName=l(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(_),l(_,s,"Generator"),l(_,u,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";(function(t){
|
|
3
3
|
/*!
|
|
4
4
|
* The buffer module from node.js, for the browser.
|
|
@@ -8,7 +8,7 @@ module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;va
|
|
|
8
8
|
*/
|
|
9
9
|
var r=n(16),o=n(17),i=n(18);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return s(this,t,e,n)}function s(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=d(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),o=(t=u(t,r)).write(e,n);return o!==r&&(t=t.slice(0,o)),t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|m(e.length);return 0===(t=u(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?u(t,0):d(t,e);if("Buffer"===e.type&&i(e.data))return d(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(l(e),t=u(t,e<0?0:0|m(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|m(e.length);t=u(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function m(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(t).length;default:if(r)return N(t).length;e=(""+e).toLowerCase(),r=!0}}function h(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return M(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,o);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,o){var i,a=1,u=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,u/=2,c/=2,n/=2}function s(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=n;i<u;i++)if(s(t,i)===s(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+c>u&&(n=u-c),i=n;i>=0;i--){for(var f=!0,d=0;d<c;d++)if(s(t,i+d)!==s(e,d)){f=!1;break}if(f)return i}return-1}function y(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var u=parseInt(e.substr(2*a,2),16);if(isNaN(u))return a;t[n+a]=u}return a}function _(t,e,n,r){return V(N(e,t.length-n),t,n,r)}function w(t,e,n,r){return V(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function x(t,e,n,r){return w(t,e,n,r)}function O(t,e,n,r){return V(H(e),t,n,r)}function S(t,e,n,r){return V(function(t,e){for(var n,r,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=(n=t.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o<n;){var i,a,u,c,s=t[o],l=null,f=s>239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(l=s);break;case 2:128==(192&(i=t[o+1]))&&(c=(31&s)<<6|63&i)>127&&(l=c);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(c=(15&s)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=t[o+1],a=t[o+2],u=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&u)&&(c=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}function k(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function M(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=F(t[i]);return o}function D(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function A(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,n,r,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function R(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o<i;++o)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function I(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o<i;++o)t[n+o]=e>>>8*(r?o:3-o)&255}function z(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(t,e,n,r,i){return i||z(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function L(t,e,n,r,i){return i||z(t,0,n,8),o.write(t,e,n,r,52,8),n+8}e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return s(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?u(t,e):void 0!==n?"string"==typeof r?u(t,e).fill(n,r):u(t,e).fill(n):u(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return f(null,t)},c.allocUnsafeSlow=function(t){return f(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var a=t[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?E(this,0,t):h.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,o){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),u=Math.min(i,a),s=this.slice(r,o),l=t.slice(e,n),f=0;f<u;++f)if(s[f]!==l[f]){i=s[f],a=l[f];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return O(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var o=e-t;n=new c(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||A(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||A(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},c.prototype.readUInt8=function(t,e){return e||A(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||A(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||A(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||A(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||A(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||A(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||A(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return e||A(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||A(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||A(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||A(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||A(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||A(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||A(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||A(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||A(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||P(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||P(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):I(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);P(this,t,e,n,o-1,-o)}var i=0,a=1,u=0;for(this[e]=255&t;++i<n&&(a*=256);)t<0&&0===u&&0!==this[e+i-1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);P(this,t,e,n,o-1,-o)}var i=n-1,a=1,u=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===u&&0!==this[e+i+1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):I(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return j(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return j(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return L(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return L(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,i=r-n;if(this===t&&n<e&&e<r)for(o=i-1;o>=0;--o)t[o+e]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var a=c.isBuffer(t)?t:N(new c(t,r).toString()),u=a.length;for(i=0;i<n-e;++i)this[i+e]=a[i%u]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function N(t,e){var n;e=e||1/0;for(var r=t.length,o=null,i=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function H(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}}).call(this,n(8))},function(t,e,n){"use strict";e.byteLength=function(t){var e=s(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=s(t),a=r[0],u=r[1],c=new i(function(t,e,n){return 3*(e+n)/4-n}(0,a,u)),l=0,f=u>0?a-4:a;for(n=0;n<f;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===u&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,c[l++]=255&e),1===u&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=0,u=n-o;a<u;a+=16383)i.push(l(t,a,a+16383>u?u:a+16383));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)r[u]=a[u],o[a.charCodeAt(u)]=u;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var o,i,a=[],u=e;u<n;u+=3)o=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(255&t[u+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){
|
|
10
10
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
11
|
-
e.read=function(t,e,n,r,o){var i,a,u=8*o-r-1,c=(1<<u)-1,s=c>>1,l=-7,f=n?o-1:0,d=n?-1:1,m=t[e+f];for(f+=d,i=m&(1<<-l)-1,m>>=-l,l+=u;l>0;i=256*i+t[e+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=d,l-=8);if(0===i)i=1-s;else{if(i===c)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,r),i-=s}return(m?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,u,c,s=8*i-o-1,l=(1<<s)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:i-1,p=r?1:-1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(u=0,a=l):a+f>=1?(u=(e*c-1)*Math.pow(2,o),a+=f):(u=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[n+m]=255&u,m+=p,u/=256,o-=8);for(a=a<<o|u,s+=o;s>0;t[n+m]=255&a,m+=p,a/=256,s-=8);t[n+m-p]|=128*h}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,s=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&m())}function m(){if(!l){var t=u(d);l=!0;for(var e=s.length;e;){for(c=s,s=[];++f<e;)c&&c[f].run();f=-1,e=s.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function h(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new p(t,e)),1!==s.length||l||u(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";n.r(e);var r=n(6),o=n.n(r),i=n(3),a=n.n(i);function u(t){return""===t?t:"true"===t||"1"==t}var c=function(t,e){return new Promise((function(e,n){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsArrayBuffer(r.response)},r.open("GET",t),r.send()}))},s=n(9),l=function(t,e,n,r,o,i,a,u){var c,s="function"==typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=[],s._compiled=!0),c)if(s.functional){s._injectStyles=c;var l=s.render;s.render=function(t,e){return c.call(e),l(t,e)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:s}}({props:{text:{type:String,required:!0},qid:{type:String},correctLevel:{type:Number,default:1},size:{type:Number,default:200},margin:{type:Number,default:20},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#FFFFFF"},bgSrc:{type:String,default:void 0},background:{type:String,default:"rgba(0,0,0,0)"},backgroundDimming:{type:String,default:"rgba(0,0,0,0)"},logoSrc:{type:String,default:void 0},logoBackgroundColor:{type:String,default:"rgba(255,255,255,1)"},gifBgSrc:{type:String,default:void 0},logoScale:{type:Number,default:.2},logoMargin:{type:Number,default:0},logoCornerRadius:{type:Number,default:8},whiteMargin:{type:[Boolean,String],default:!0},dotScale:{type:Number,default:1},autoColor:{type:[Boolean,String],default:!0},binarize:{type:[Boolean,String],default:!1},binarizeThreshold:{type:Number,default:128},callback:{type:Function,default:function(){}},bindElement:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},components:{default:function(){return{data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}}}}},name:"vue-qr",data:function(){return{imgUrl:""}},watch:{$props:{deep:!0,handler:function(){this.main()}}},mounted:function(){this.main()},methods:{main:function(){var t=this;return o()(a.a.mark((function e(){var n,r,o,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.gifBgSrc){e.next=7;break}return e.next=3,c(t.gifBgSrc);case 3:return n=e.sent,r=t.logoSrc,t.render(void 0,r,n),e.abrupt("return");case 7:o=t.bgSrc,i=t.logoSrc,t.render(o,i);case 10:case"end":return e.stop()}}),e)})))()},render:function(t,e,n){var r=this;return o()(a.a.mark((function o(){var i;return a.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:i=r,new s.a({gifBackground:n,text:i.text,size:i.size,margin:i.margin,colorDark:i.colorDark,colorLight:i.colorLight,backgroundColor:i.backgroundColor,backgroundImage:t,backgroundDimming:i.backgroundDimming,logoImage:e,logoScale:i.logoScale,logoBackgroundColor:i.logoBackgroundColor,correctLevel:i.correctLevel,logoMargin:i.logoMargin,logoCornerRadius:i.logoCornerRadius,whiteMargin:u(i.whiteMargin),dotScale:i.dotScale,autoColor:u(i.autoColor),binarize:u(i.binarize),binarizeThreshold:i.binarizeThreshold,components:i.components}).draw().then((function(t){r.imgUrl=t,i.callback&&i.callback(t,i.qid)}));case 2:case"end":return o.stop()}}),o)})))()}}},(function(){var t=this.$createElement,e=this._self._c||t;return this.bindElement?e("img",{staticStyle:{display:"inline-block"},attrs:{src:this.imgUrl}}):this._e()})).exports;l.install=function(t){return t.component(l.name,l)};var f=l,d=[f];"undefined"!=typeof window&&window.Vue&&function(t){d.map((function(e){t.component(e.name,e)}))}(window.Vue),e.default=f}])},"65f0":function(t,e,n){"use strict";var r=n("0b42");t.exports=function(t,e){return new(r(t))(0===e?0:e)}},"68df":function(t,e,n){"use strict";var r=n("dc19"),o=n("8e16"),i=n("384f"),a=n("7f65");t.exports=function(t){var e=r(this),n=a(t);return!(o(e)>n.size)&&!1!==i(e,(function(t){if(!n.includes(t))return!1}),!0)}},"68ee":function(t,e,n){"use strict";var r=n("e330"),o=n("d039"),i=n("1626"),a=n("f5df"),u=n("d066"),c=n("8925"),s=function(){},l=u("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),m=!f.test(s),p=function(t){if(!i(t))return!1;try{return l(s,[],t),!0}catch(t){return!1}},h=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!d(f,c(t))}catch(t){return!0}};h.sham=!0,t.exports=!l||o((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?h:p},6964:function(t,e,n){"use strict";var r=n("cb2d");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},"69f3":function(t,e,n){"use strict";var r,o,i,a=n("cdce"),u=n("cfe9"),c=n("861d"),s=n("9112"),l=n("1a2d"),f=n("c6cd"),d=n("f772"),m=n("d012"),p=u.TypeError,h=u.WeakMap;if(a||f.state){var g=f.state||(f.state=new h);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw new p("Object already initialized");return e.facade=t,g.set(t,e),e},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var v=d("state");m[v]=!0,r=function(t,e){if(l(t,v))throw new p("Object already initialized");return e.facade=t,s(t,v,e),e},o=function(t){return l(t,v)?t[v]:{}},i=function(t){return l(t,v)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw new p("Incompatible receiver, "+t+" required");return n}}}},"6b3e":function(t,e,n){},"6ba6":function(t,e,n){"use strict";function r(){return{list:[],config:{labelWidth:100,labelPosition:"right",size:"small",customClass:"",ui:"element",layout:"horizontal",labelCol:3,width:"100%",hideLabel:!1,hideErrorMessage:!1,theme:"default",themeTitle:"",themeSubTitle:"",themeTitleAlign:"left",submitHiddenArea:!1}}}n.d(e,"a",(function(){return r}))},"6d4d":function(t,e,n){"use strict";n("8409")},"6d61":function(t,e,n){"use strict";var r=n("23e7"),o=n("cfe9"),i=n("e330"),a=n("94ca"),u=n("cb2d"),c=n("f183"),s=n("2266"),l=n("19aa"),f=n("1626"),d=n("7234"),m=n("861d"),p=n("d039"),h=n("1c7e"),g=n("d44e"),v=n("7156");t.exports=function(t,e,n){var b=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),_=b?"set":"add",w=o[t],x=w&&w.prototype,O=w,S={},C=function(t){var e=i(x[t]);u(x,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(y&&!m(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return y&&!m(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(y&&!m(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(a(t,!f(w)||!(y||x.forEach&&!p((function(){(new w).entries().next()})))))O=n.getConstructor(e,t,b,_),c.enable();else if(a(t,!0)){var E=new O,k=E[_](y?{}:-0,1)!==E,T=p((function(){E.has(1)})),M=h((function(t){new w(t)})),D=!y&&p((function(){for(var t=new w,e=5;e--;)t[_](e,e);return!t.has(-0)}));M||((O=e((function(t,e){l(t,x);var n=v(new w,t,O);return d(e)||s(e,n[_],{that:n,AS_ENTRIES:b}),n}))).prototype=x,x.constructor=O),(T||D)&&(C("delete"),C("has"),b&&C("get")),(D||k)&&C(_),y&&x.clear&&delete x.clear}return S[t]=O,r({global:!0,constructor:!0,forced:O!==w},S),g(O,t),y||n.setStrong(O,t,b),O}},"6e53":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mod10=function(t){for(var e=0,n=0;n<t.length;n++){var r=parseInt(t[n]);(n+t.length)%2==0?e+=r:e+=2*r%10+Math.floor(2*r/10)}return(10-e%10)%10},e.mod11=function(t){for(var e=0,n=[2,3,4,5,6,7],r=0;r<t.length;r++){var o=parseInt(t[t.length-1-r]);e+=n[r%n.length]*o}return(11-e%11)%11}},"6f19":function(t,e,n){"use strict";var r=n("9112"),o=n("0d26"),i=n("b980"),a=Error.captureStackTrace;t.exports=function(t,e,n,u){i&&(a?a(t,e):r(t,"stack",o(n,u)))}},"6f24":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(n("4b23")),o=i(n("bb5d"));function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(t,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,o.default)(t),n));else r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return a(r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);e.default=u},"70b0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("4b23"),a=(r=i)&&r.__esModule?r:{default:r},u=n("f08e");var c=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,u.B_START_CHAR+t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return new RegExp("^"+u.B_CHARS+"+$").test(this.data)}}]),e}(a.default);e.default=c},7119:function(t,e,n){"use strict";n("7f7b")},7149:function(t,e,n){"use strict";var r=n("23e7"),o=n("d066"),i=n("c430"),a=n("d256"),u=n("4738").CONSTRUCTOR,c=n("cdf9"),s=o("Promise"),l=i&&!u;r({target:"Promise",stat:!0,forced:i||u},{resolve:function(t){return c(l&&this===s?a:this,t)}})},7156:function(t,e,n){"use strict";var r=n("1626"),o=n("861d"),i=n("d2bb");t.exports=function(t,e,n){var a,u;return i&&r(a=e.constructor)&&a!==n&&o(u=a.prototype)&&u!==n.prototype&&i(t,u),t}},7193:function(t,e,n){n("ae68")},"721a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("fd7c"),a=(r=i)&&r.__esModule?r:{default:r},u=n("ab5b");var c=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.canvas=e,this.encodings=n,this.options=r}return o(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var t=0;t<this.encodings.length;t++){var e=(0,a.default)(this.options,this.encodings[t].options);this.drawCanvasBarcode(e,this.encodings[t]),this.drawCanvasText(e,this.encodings[t]),this.moveCanvasDrawing(this.encodings[t])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var t=this.canvas.getContext("2d");t.save(),(0,u.calculateEncodingAttributes)(this.encodings,this.options,t);var e=(0,u.getTotalWidthOfEncodings)(this.encodings),n=(0,u.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=e+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,t.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(t.fillStyle=this.options.background,t.fillRect(0,0,this.canvas.width,this.canvas.height)),t.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(t,e){var n,r=this.canvas.getContext("2d"),o=e.data;n="top"==t.textPosition?t.marginTop+t.fontSize+t.textMargin:t.marginTop,r.fillStyle=t.lineColor;for(var i=0;i<o.length;i++){var a=i*t.width+e.barcodePadding;"1"===o[i]?r.fillRect(a,n,t.width,t.height):o[i]&&r.fillRect(a,n,t.width,t.height*o[i])}}},{key:"drawCanvasText",value:function(t,e){var n,r,o=this.canvas.getContext("2d"),i=t.fontOptions+" "+t.fontSize+"px "+t.font;t.displayValue&&(r="top"==t.textPosition?t.marginTop+t.fontSize-t.textMargin:t.height+t.textMargin+t.marginTop+t.fontSize,o.font=i,"left"==t.textAlign||e.barcodePadding>0?(n=0,o.textAlign="left"):"right"==t.textAlign?(n=e.width-1,o.textAlign="right"):(n=e.width/2,o.textAlign="center"),o.fillText(e.text,n,r))}},{key:"moveCanvasDrawing",value:function(t){this.canvas.getContext("2d").translate(t.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),t}();e.default=c},7234:function(t,e,n){"use strict";t.exports=function(t){return null==t}},7282:function(t,e,n){"use strict";var r=n("e330"),o=n("59ed");t.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},"72c3":function(t,e,n){"use strict";var r=n("23e7"),o=n("e9bc");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("union")},{union:o})},7418:function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},"752b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n("721a")),o=a(n("be5e")),i=a(n("4ced"));function a(t){return t&&t.__esModule?t:{default:t}}e.default={CanvasRenderer:r.default,SVGRenderer:o.default,ObjectRenderer:i.default}},7694:function(t,e,n){"use strict";n.d(e,"k",(function(){return v})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return y})),n.d(e,"l",(function(){return _})),n.d(e,"d",(function(){return w})),n.d(e,"j",(function(){return x})),n.d(e,"m",(function(){return O})),n.d(e,"i",(function(){return S})),n.d(e,"e",(function(){return C})),n.d(e,"h",(function(){return E})),n.d(e,"n",(function(){return k})),n.d(e,"c",(function(){return T})),n.d(e,"o",(function(){return M})),n.d(e,"b",(function(){return D})),n.d(e,"a",(function(){return A}));n("d9e2");var r=null,o=null,i=null,a=null,u=null,c=null,s=null,l=null,f=null,d=null,m=null,p=null,h=null,g=null,v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r=t.getDictItemsByParentId,o=t.getDictListByPage,i=t.ossServiceInfo,a=t.fileDownload,u=t.getUserList,c=t.searchUser,s=t.getOrgTree,t.getFormInfoListByPage,l=t.getColumnList,f=t.getFormDataListByPage,t.getThirdApiListByPage,d=t.triggerThirdApi,m=t.exportFormModel2Excel,p=t.uploadExcel,h=t.excelData2Table,g=t.batchDownload},b=function(t){return r?r(t):new Error("adapter must use after initialization!")},y=function(t){return o?o(t):new Error("adapter must use after initialization!")},_=function(t){return i?i(t):new Error("adapter must use after initialization!")},w=function(t){return a?a(t):new Error("adapter must use after initialization!")},x=function(t){return u?u(t):new Error("adapter must use after initialization!")},O=function(t){return c?c(t):new Error("adapter must use after initialization!")},S=function(t){return s?s(t):new Error("adapter must use after initialization!")},C=function(t){return l?l(t):new Error("adapter must use after initialization!")},E=function(t){return f?f(t):new Error("adapter must use after initialization!")},k=function(t){return d?d(t):new Error("adapter must use after initialization!")},T=function(t){return m?m(t):new Error("adapter must use after initialization!")},M=function(t){return p?p(t):new Error("adapter must use after initialization!")},D=function(t){return h?h(t):new Error("adapter must use after initialization!")},A=function(t){return g?g(t):new Error("adapter must use after initialization!")}},7839:function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(t,e,n){"use strict";var r=n("cc12")("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},"79a4":function(t,e,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("953b");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("intersection")||o((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:i})},"79f1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}},"7a77":function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},"7aac":function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var u=[];u.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},"7b0b":function(t,e,n){"use strict";var r=n("1d80"),o=Object;t.exports=function(t){return o(r(t))}},"7bd8":function(t,e,n){},"7c4f":function(t,e){!function(){"use strict";var t,e,n,r,o,i=function(t){var e=t;return{get:function(){return e},set:function(t){e=t}}},a=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=(t="array",function(e){return r=typeof(n=e),(null===n?"null":"object"===r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===t;var n,r}),c=function(t){return!function(t){return null==t}(t)},s=function(t){return function(e){return typeof e===t}}("function"),l=function(){},f=function(t){return function(){return t}},d=function(t){return t},m=f(!1),p=f(!0),h=function(){return g},g={fold:function(t,e){return t()},isSome:m,isNone:p,getOr:n=d,getOrThunk:e=function(t){return t()},getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:n,orThunk:e,map:h,each:l,bind:h,exists:m,forall:p,filter:function(){return h()},toArray:function(){return[]},toString:f("none()")},v=function(t){var e=f(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:p,isNone:m,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return v(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:g},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},b={some:v,none:h,from:function(t){return null==t?g:v(t)}},y=Array.prototype.slice,_=Array.prototype.push,w=function(t,e){for(var n=0,r=t.length;n<r;n++){if(e(t[n],n))return!0}return!1},x=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},O=function(t,e){for(var n=0,r=t.length;n<r;n++){e(t[n],n)}},S=function(t,e){return function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!u(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);_.apply(e,t[n])}return e}(x(t,e))},C=s(Array.from)?Array.from:function(t){return y.call(t)},E=function(){return(E=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},k=function(){var t=function(t){var e=i(b.none()),n=function(){return e.get().each(t)};return{clear:function(){n(),e.set(b.none())},isSet:function(){return e.get().isSome()},get:function(){return e.get()},set:function(t){n(),e.set(b.some(t))}}}(l);return E(E({},t),{on:function(e){return t.get().each(e)}})},T=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},M=tinymce.util.Tools.resolve("tinymce.Env"),D=tinymce.util.Tools.resolve("tinymce.util.Delay"),A=tinymce.util.Tools.resolve("tinymce.util.Promise"),P=tinymce.util.Tools.resolve("tinymce.util.VK"),R=function(t,e){return t.fire("PastePlainTextToggle",{state:e})},I=tinymce.util.Tools.resolve("tinymce.util.Tools"),z=function(t){return t.getParam("paste_data_images",!1)},j=function(t){return t.getParam("paste_merge_formats",!0)},L=function(t){return t.getParam("paste_retain_style_properties")},B=function(t){return t.getParam("validate")},F=function(t){return t.getParam("allow_html_data_urls",!1,"boolean")},N=function(t){return t.getParam("paste_data_images",!1,"boolean")},H=function(t){return I.explode(t.getParam("images_file_types","jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp","string"))},V=function(t){return-1!==t.indexOf("\x3c!-- x-tinymce/html --\x3e")},U=f("x-tinymce/html"),W=Object.hasOwnProperty,$=function(t,e){return W.call(t,e)},G=tinymce.util.Tools.resolve("tinymce.html.Entities"),K=function(t,e,n){var r=t.split(/\n\n/),o=function(t,e){var n=[],r="<"+t;if("object"==typeof e){for(var o in e)$(e,o)&&n.push(o+'="'+G.encodeAllRaw(e[o])+'"');n.length&&(r+=" "+n.join(" "))}return r+">"}(e,n),i="</"+e+">",a=I.map(r,(function(t){return t.split(/\n/).join("<br />")}));return 1===a.length?a[0]:I.map(a,(function(t){return o+t+i})).join("")},q=tinymce.util.Tools.resolve("tinymce.html.DomParser"),X=tinymce.util.Tools.resolve("tinymce.html.Serializer"),Y=tinymce.util.Tools.resolve("tinymce.html.Node"),J=tinymce.util.Tools.resolve("tinymce.html.Schema"),Q=function(t,e){return I.each(e,(function(e){t=e.constructor===RegExp?t.replace(e,""):t.replace(e[0],e[1])})),t},Z=function(t){return t=Q(t,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,function(t,e,n){return e||n?" ":" "}],/<br class="Apple-interchange-newline">/g,/<br>$/i])},tt=function(t){return/<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument/i.test(t)||/class="OutlineElement/.test(t)||/id="?docs\-internal\-guid\-/.test(t)},et=function(t){var e=!1;return t=t.replace(/^[\u00a0 ]+/,""),I.each([/^[IVXLMCD]+\.[ \u00a0]/,/^[ivxlmcd]+\.[ \u00a0]/,/^[a-z]{1,2}[\.\)][ \u00a0]/,/^[A-Z]{1,2}[\.\)][ \u00a0]/,/^[0-9]+\.[ \u00a0]/,/^[\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]+\.[ \u00a0]/,/^[\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d\u62fe]+\.[ \u00a0]/],(function(n){if(n.test(t))return e=!0,!1})),e},nt=function(t,e,n,r){var o={},i=t.dom.parseStyle(r);I.each(i,(function(i,a){switch(a){case"mso-list":var u=/\w+ \w+([0-9]+)/i.exec(r);u&&(n._listLevel=parseInt(u[1],10)),/Ignore/i.test(i)&&n.firstChild&&(n._listIgnore=!0,n.firstChild._listIgnore=!0);break;case"horiz-align":a="text-align";break;case"vert-align":a="vertical-align";break;case"font-color":case"mso-foreground":a="color";break;case"mso-background":case"mso-highlight":a="background";break;case"font-weight":case"font-style":return void("normal"!==i&&(o[a]=i));case"mso-element":if(/^(comment|comment-list)$/i.test(i))return void n.remove()}0!==a.indexOf("mso-comment")?0!==a.indexOf("mso-")&&("all"===L(t)||e&&e[a])&&(o[a]=i):n.remove()})),/(bold)/i.test(o["font-weight"])&&(delete o["font-weight"],n.wrap(new Y("b",1))),/(italic)/i.test(o["font-style"])&&(delete o["font-style"],n.wrap(new Y("i",1)));var a=t.dom.serializeStyle(o,n.name);return a||null},rt=function(t,e){var n,r=L(t);r&&(n=I.makeMap(r.split(/[, ]/))),e=Q(e,[/<br class="?Apple-interchange-newline"?>/gi,/<b[^>]+id="?docs-internal-[^>]*>/gi,/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi," "],[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(t,e){return e.length>0?e.replace(/./," ").slice(Math.floor(e.length/2)).split("").join(" "):""}]]);var o=function(t){return t.getParam("paste_word_valid_elements","-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody")}(t),i=J({valid_elements:o,valid_children:"-li[p]"});I.each(i.elements,(function(t){t.attributes.class||(t.attributes.class={},t.attributesOrder.push("class")),t.attributes.style||(t.attributes.style={},t.attributesOrder.push("style"))}));var a=q({},i);a.addAttributeFilter("style",(function(e){for(var r,o=e.length;o--;)(r=e[o]).attr("style",nt(t,n,r,r.attr("style"))),"span"===r.name&&r.parent&&!r.attributes.length&&r.unwrap()})),a.addAttributeFilter("class",(function(t){for(var e,n,r=t.length;r--;)n=(e=t[r]).attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&e.remove(),e.attr("class",null)})),a.addNodeFilter("del",(function(t){for(var e=t.length;e--;)t[e].remove()})),a.addNodeFilter("a",(function(t){for(var e,n,r,o=t.length;o--;)if(n=(e=t[o]).attr("href"),r=e.attr("name"),n&&-1!==n.indexOf("#_msocom_"))e.remove();else if(n&&0===n.indexOf("file://")&&(n=n.split("#")[1])&&(n="#"+n),n||r){if(r&&!/^_?(?:toc|edn|ftn)/i.test(r)){e.unwrap();continue}e.attr({href:n,name:r})}else e.unwrap()}));var u=a.parse(e);return function(t){return t.getParam("paste_convert_word_fake_lists",!0)}(t)&&function(t){for(var e,n,r=1,o=function(t){var e="";if(3===t.type)return t.value;if(t=t.firstChild)do{e+=o(t)}while(t=t.next);return e},i=function(t,e){if(3===t.type&&e.test(t.value))return t.value=t.value.replace(e,""),!1;if(t=t.firstChild)do{if(!i(t,e))return!1}while(t=t.next);return!0},a=function(t){if(t._listIgnore)t.remove();else if(t=t.firstChild)do{a(t)}while(t=t.next)},u=function(t,o,u){var c=t._listLevel||r;c!==r&&(c<r?e&&(e=e.parent.parent):(n=e,e=null)),e&&e.name===o?e.append(t):(n=n||e,e=new Y(o,1),u>1&&e.attr("start",""+u),t.wrap(e)),t.name="li",c>r&&n&&n.lastChild.append(e),r=c,a(t),i(t,/^\u00a0+/),i(t,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),i(t,/^\u00a0+/)},c=[],s=t.firstChild;null!=s;)if(c.push(s),null!==(s=s.walk()))for(;void 0!==s&&s.parent!==t;)s=s.walk();for(var l=0;l<c.length;l++)if("p"===(t=c[l]).name&&t.firstChild){var f=o(t);if(/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(f)){u(t,"ul");continue}if(et(f)){var d=/([0-9]+)\./.exec(f),m=1;d&&(m=parseInt(d[1],10)),u(t,"ol",m);continue}if(t._listLevel){u(t,"ul",1);continue}e=null}else n=e,e=null}(u),e=X({validate:B(t)},i).serialize(u)},ot=function(t,e){return{content:t,cancelled:e}},it=function(t,e,n,r){var o=function(t,e,n,r){return t.fire("PastePreProcess",{content:e,internal:n,wordContent:r})}(t,e,n,r),i=function(t,e){var n=q({},t.schema);n.addNodeFilter("meta",(function(t){I.each(t,(function(t){t.remove()}))}));var r=n.parse(e,{forced_root_block:!1,isRootContent:!0});return X({validate:B(t)},t.schema).serialize(r)}(t,o.content);return t.hasEventListeners("PastePostProcess")&&!o.isDefaultPrevented()?function(t,e,n,r){var o=t.dom.create("div",{style:"display:none"},e),i=function(t,e,n,r){return t.fire("PastePostProcess",{node:e,internal:n,wordContent:r})}(t,o,n,r);return ot(i.node.innerHTML,i.isDefaultPrevented())}(t,i,n,r):ot(i,o.isDefaultPrevented())},at=function(t,e,n){var r=tt(e),o=r?function(t,e){return function(t){return t.getParam("paste_enable_default_filters",!0)}(t)?rt(t,e):e}(t,e):e;return it(t,o,n,r)},ut=function(t,e){return t.insertContent(e,{merge:j(t),paste:!0}),!0},ct=function(t){return/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(t)},st=function(t,e){return ct(e)&&w(H(t),(function(t){return n=e.toLowerCase(),r="."+t.toLowerCase(),T(n,r,n.length-r.length);var n,r}))},lt=function(t,e,n){return!(!1!==t.selection.isCollapsed()||!ct(e))&&function(t,e,n){return t.undoManager.extra((function(){n(t,e)}),(function(){t.execCommand("mceInsertLink",!1,e)})),!0}(t,e,n)},ft=function(t,e,n){return!!st(t,e)&&function(t,e,n){return t.undoManager.extra((function(){n(t,e)}),(function(){t.insertContent('<img src="'+e+'">')})),!0}(t,e,n)},dt=function(t,e,n){n||!1===function(t){return t.getParam("smart_paste",!0)}(t)?ut(t,e):function(t,e){I.each([lt,ft,ut],(function(n){return!0!==n(t,e,ut)}))}(t,e)},mt=function(t){return"\n"===t||"\r"===t},pt=function(t,e){var n,r,o=(n=" ",(r=function(t){return t.getParam("paste_tab_spaces",4,"number")}(t))<=0?"":new Array(r+1).join(n)),i=e.replace(/\t/g,o);return function(t,e,n){return O(t,(function(t,r){n=e(n,t,r)})),n}(i,(function(t,e){return function(t){return-1!==" \f\t\v".indexOf(t)}(e)||" "===e?t.pcIsSpace||""===t.str||t.str.length===i.length-1||function(t,e){return e<t.length&&e>=0&&mt(t[e])}(i,t.str.length+1)?{pcIsSpace:!1,str:t.str+" "}:{pcIsSpace:!0,str:t.str+" "}:{pcIsSpace:mt(e),str:t.str+e}}),{pcIsSpace:!1,str:""}).str},ht=function(t,e,n,r){var o=at(t,e,n);!1===o.cancelled&&dt(t,o.content,r)},gt=function(t,e,n){var r=n||V(e);ht(t,function(t){return t.replace("\x3c!-- x-tinymce/html --\x3e","")}(e),r,!1)},vt=function(t,e){var n=t.dom.encode(e).replace(/\r\n/g,"\n"),r=function(t,e,n){return e?K(t,!0===e?"p":e,n):function(t){return t.replace(/\r?\n/g,"<br>")}(t)}(pt(t,n),function(t){return t.getParam("forced_root_block")}(t),function(t){return t.getParam("forced_root_block_attrs")}(t));ht(t,r,!1,!0)},bt=function(t){var e={};if(t){if(t.getData){var n=t.getData("Text");n&&n.length>0&&-1===n.indexOf("data:text/mce-internal,")&&(e["text/plain"]=n)}if(t.types)for(var r=0;r<t.types.length;r++){var o=t.types[r];try{e[o]=t.getData(o)}catch(t){e[o]=""}}}return e},yt=function(t,e){return e in t&&t[e].length>0},_t=function(t){return yt(t,"text/html")||yt(t,"text/plain")},wt=(r="mceclip",o=0,function(){return r+o++}),xt=function(t,e){var n,r,o=(n=e.uri,(r=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(n))?{type:r[1],data:decodeURIComponent(r[2])}:{type:null,data:null}),i=o.data,a=o.type,u=wt(),s=e.blob,l=new Image;if(l.src=e.uri,function(t,e){var n=function(t){return t.getParam("images_dataimg_filter")}(t);return!n||n(e)}(t,l)){var f=t.editorUpload.blobCache,d=void 0,m=f.getByData(i,a);if(m)d=m;else{var p=function(t){return t.getParam("images_reuse_filename")}(t)&&c(s.name),h=p?function(t,e){var n=e.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return c(n)?t.dom.encode(n[1]):null}(t,s.name):u,g=p?s.name:void 0;d=f.create(u,s,i,h,g),f.add(d)}gt(t,'<img src="'+d.blobUri()+'">',!1)}else gt(t,'<img src="'+e.uri+'">',!1)},Ot=function(t){return A.all(x(t,(function(t){return new A((function(e){var n=function(t){return c(t.getAsFile)}(t)?t.getAsFile():t,r=new window.FileReader;r.onload=function(){e({blob:n,uri:r.result})},r.readAsDataURL(n)}))})))},St=function(t){var e=H(t);return function(t){return function(t,e){return T(t,e,0)}(t.type,"image/")&&w(e,(function(e){return n=e.toLowerCase(),r={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"},(I.hasOwn(r,n)?"image/"+r[n]:"image/"+n)===t.type;var n,r}))}},Ct=function(t,e,n){var r="paste"===e.type?e.clipboardData:e.dataTransfer;if(N(t)&&r){var o=function(t,e){var n=e.items?S(C(e.items),(function(t){return"file"===t.kind?[t.getAsFile()]:[]})):[],r=e.files?C(e.files):[];return function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n}(n.length>0?n:r,St(t))}(t,r);if(o.length>0)return e.preventDefault(),Ot(o).then((function(e){n&&t.selection.setRng(n),O(e,(function(e){xt(t,e)}))})),!0}return!1},Et=function(t){return P.metaKeyPressed(t)&&86===t.keyCode||t.shiftKey&&45===t.keyCode},kt=function(t,e,n){var r,o=k(),i=k();t.on("keyup",i.clear),t.on("keydown",(function(n){var a=function(t){Et(t)&&!t.isDefaultPrevented()&&e.remove()};if(Et(n)&&!n.isDefaultPrevented()){if((r=n.shiftKey&&86===n.keyCode)&&M.webkit&&-1!==navigator.userAgent.indexOf("Version/"))return;if(n.stopImmediatePropagation(),o.set(n),i.set(!0),M.ie&&r)return n.preventDefault(),void function(t,e){t.fire("paste",{ieFake:e})}(t,!0);e.remove(),e.create(),t.once("keyup",a),t.once("paste",(function(){t.off("keyup",a)}))}}));var a=function(t,n,r,o,i){var a;yt(n,"text/html")?a=n["text/html"]:(a=e.getHtml(),i=i||V(a),e.isDefaultContent(a)&&(o=!0)),a=Z(a),e.remove();var u=!1===i&&!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(a),c=ct(a);(!a.length||u&&!c)&&(o=!0),(o||c)&&(a=yt(n,"text/plain")&&u?n["text/plain"]:function(t){var e=J(),n=q({},e),r="",o=e.getShortEndedElements(),i=I.makeMap("script noscript style textarea video audio iframe object"," "),a=e.getBlockElements(),u=function(t){var e=t.name,n=t;if("br"!==e){if("wbr"!==e)if(o[e]&&(r+=" "),i[e])r+=" ";else{if(3===t.type&&(r+=t.value),!t.shortEnded&&(t=t.firstChild))do{u(t)}while(t=t.next);a[e]&&n.next&&(r+="\n","p"===e&&(r+="\n"))}}else r+="\n"};return t=Q(t,[/<!\[[^\]]+\]>/g]),u(n.parse(t)),r}(a)),e.isDefaultContent(a)?r||t.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents."):o?vt(t,a):gt(t,a,i)};t.on("paste",(function(u){var c=o.isSet()||i.isSet();c&&o.clear();var s=function(t,e){return bt(e.clipboardData||t.getDoc().dataTransfer)}(t,u),l="text"===n.get()||r,f=yt(s,U());r=!1,u.isDefaultPrevented()||function(t){var e=t.clipboardData;return-1!==navigator.userAgent.indexOf("Android")&&e&&e.items&&0===e.items.length}(u)?e.remove():_t(s)||!Ct(t,u,e.getLastRng()||t.selection.getRng())?(c||u.preventDefault(),!M.ie||c&&!u.ieFake||yt(s,"text/html")||(e.create(),t.dom.bind(e.getEl(),"paste",(function(t){t.stopPropagation()})),t.getDoc().execCommand("Paste",!1,null),s["text/html"]=e.getHtml()),yt(s,"text/html")?(u.preventDefault(),f||(f=V(s["text/html"])),a(t,s,c,l,f)):D.setEditorTimeout(t,(function(){a(t,s,c,l,f)}),0)):e.remove()}))},Tt=function(t){return M.ie&&t.inline?document.body:t.getBody()},Mt=function(t,e,n){(function(t){return Tt(t)!==t.getBody()})(t)&&t.dom.bind(e,"paste keyup",(function(e){Pt(t,n)||t.fire("paste")}))},Dt=function(t){return t.dom.get("mcepastebin")},At=function(t,e){return e===t},Pt=function(t,e){var n,r=Dt(t);return(n=r)&&"mcepastebin"===n.id&&At(e,r.innerHTML)},Rt=function(t){var e=i(null);return{create:function(){return function(t,e,n){var r=t.dom,o=t.getBody();e.set(t.selection.getRng());var i=t.dom.add(Tt(t),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},n);(M.ie||M.gecko)&&r.setStyle(i,"left","rtl"===r.getStyle(o,"direction",!0)?65535:-65535),r.bind(i,"beforedeactivate focusin focusout",(function(t){t.stopPropagation()})),Mt(t,i,n),i.focus(),t.selection.select(i,!0)}(t,e,"%MCEPASTEBIN%")},remove:function(){return function(t,e){if(Dt(t)){for(var n=void 0,r=e.get();n=t.dom.get("mcepastebin");)t.dom.remove(n),t.dom.unbind(n);r&&t.selection.setRng(r)}e.set(null)}(t,e)},getEl:function(){return Dt(t)},getHtml:function(){return function(t){var e=function(e,n){e.appendChild(n),t.dom.remove(n,!0)},n=I.grep(Tt(t).childNodes,(function(t){return"mcepastebin"===t.id})),r=n.shift();I.each(n,(function(t){e(r,t)}));for(var o=t.dom.select("div[id=mcepastebin]",r),i=o.length-1;i>=0;i--){var a=t.dom.create("div");r.insertBefore(a,o[i]),e(a,o[i])}return r?r.innerHTML:""}(t)},getLastRng:e.get,isDefault:function(){return Pt(t,"%MCEPASTEBIN%")},isDefaultContent:function(t){return At("%MCEPASTEBIN%",t)}}},It=function(t,e){var n=Rt(t);return t.on("PreInit",(function(){return function(t,e,n){var r;kt(t,e,n),t.parser.addNodeFilter("img",(function(e,n,o){var i=function(t){t.attr("data-mce-object")||r===M.transparentSrc||t.remove()},a=function(t){return 0===t.indexOf("webkit-fake-url")},u=function(t){return 0===t.indexOf("data:")};if(!N(t)&&function(t){return t.data&&!0===t.data.paste}(o))for(var c=e.length;c--;)(r=e[c].attr("src"))&&(a(r)||!F(t)&&u(r))&&i(e[c])}))}(t,n,e)})),{pasteFormat:e,pasteHtml:function(e,n){return gt(t,e,n)},pasteText:function(e){return vt(t,e)},pasteImageData:function(e,n){return Ct(t,e,n)},getDataTransferItems:bt,hasHtmlOrText:_t,hasContentType:yt}},zt=function(t,e){t.addCommand("mceTogglePlainTextPaste",(function(){!function(t,e){"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),R(t,!1)):(e.pasteFormat.set("text"),R(t,!0)),t.focus()}(t,e)})),t.addCommand("mceInsertClipboardContent",(function(t,n){n.content&&e.pasteHtml(n.content,n.internal),n.text&&e.pasteText(n.text)}))},jt=function(t,e,n){if(!function(t){return!1===M.iOS&&"function"==typeof(null==t?void 0:t.setData)}(t))return!1;try{return t.clearData(),t.setData("text/html",e),t.setData("text/plain",n),t.setData(U(),e),!0}catch(t){return!1}},Lt=function(t,e,n,r){jt(t.clipboardData,e.html,e.text)?(t.preventDefault(),r()):n(e.html,r)},Bt=function(t){return function(e,n){var r=function(t){return"\x3c!-- x-tinymce/html --\x3e"+t}(e),o=t.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),i=t.dom.create("div",{contenteditable:"true"},r);t.dom.setStyles(o,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),o.appendChild(i),t.dom.add(t.getBody(),o);var a=t.selection.getRng();i.focus();var u=t.dom.createRng();u.selectNodeContents(i),t.selection.setRng(u),D.setTimeout((function(){t.selection.setRng(a),o.parentNode.removeChild(o),n()}),0)}},Ft=function(t){return{html:t.selection.getContent({contextual:!0}),text:t.selection.getContent({format:"text"})}},Nt=function(t){return!t.selection.isCollapsed()||function(t){return!!t.dom.getParent(t.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",t.getBody())}(t)},Ht=function(t){t.on("cut",function(t){return function(e){Nt(t)&&Lt(e,Ft(t),Bt(t),(function(){if(M.browser.isChrome()||M.browser.isFirefox()){var e=t.selection.getRng();D.setEditorTimeout(t,(function(){t.selection.setRng(e),t.execCommand("Delete")}),0)}else t.execCommand("Delete")}))}}(t)),t.on("copy",function(t){return function(e){Nt(t)&&Lt(e,Ft(t),Bt(t),l)}}(t))},Vt=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Ut=function(t,e){return Vt.getCaretRangeFromPoint(e.clientX,e.clientY,t.getDoc())},Wt=function(t,e){t.focus(),t.selection.setRng(e)},$t=function(t,e){t.on("PastePreProcess",(function(n){n.content=e(t,n.content,n.internal,n.wordContent)}))},Gt=function(t,e){if(!tt(e))return e;var n=[];I.each(t.schema.getBlockElements(),(function(t,e){n.push(e)}));var r=new RegExp("(?:<br> [\\s\\r\\n]+|<br>)*(<\\/?("+n.join("|")+")[^>]*>)(?:<br> [\\s\\r\\n]+|<br>)*","g");return e=Q(e,[[r,"$1"]]),e=Q(e,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]])},Kt=function(t,e,n,r){if(r||n)return e;var o,i=function(t){return t.getParam("paste_webkit_styles")}(t);if(!1===function(t){return t.getParam("paste_remove_styles_if_webkit",!0)}(t)||"all"===i)return e;if(i&&(o=i.split(/[, ]/)),o){var a=t.dom,u=t.selection.getNode();e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(function(t,e,n,r){var i=a.parseStyle(a.decode(n)),c={};if("none"===o)return e+r;for(var s=0;s<o.length;s++){var l=i[o[s]],f=a.getStyle(u,o[s],!0);/color/.test(o[s])&&(l=a.toHex(l),f=a.toHex(f)),f!==l&&(c[o[s]]=l)}var d=a.serializeStyle(c,"span");return d?e+' style="'+d+'"'+r:e+r}))}else e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return e=e.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(function(t,e,n,r){return e+' style="'+n+'"'+r}))},qt=function(t,e){t.$("a",e).find("font,u").each((function(e,n){t.dom.remove(n,!0)}))},Xt=function(t,e){return function(n){n.setActive("text"===e.pasteFormat.get());var r=function(t){return n.setActive(t.state)};return t.on("PastePlainTextToggle",r),function(){return t.off("PastePlainTextToggle",r)}}};a.add("paste",(function(t){if(!1===function(t){return!!t.hasPlugin("powerpaste",!0)&&(void 0!==window.console&&window.console.log&&window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),!0)}(t)){var e=i(!1),n=i(function(t){return t.getParam("paste_as_text",!1)}(t)?"text":"html"),r=It(t,n);return function(t){M.webkit&&$t(t,Kt),M.ie&&($t(t,Gt),function(t,e){t.on("PastePostProcess",(function(n){e(t,n.node)}))}(t,qt))}(t),function(t,e){var n=function(){return t.execCommand("mceTogglePlainTextPaste")};t.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:n,onSetup:Xt(t,e)}),t.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:n,onSetup:Xt(t,e)})}(t,r),zt(t,r),function(t){var e=t.plugins.paste,n=function(t){return t.getParam("paste_preprocess")}(t);n&&t.on("PastePreProcess",(function(t){n.call(e,e,t)}));var r=function(t){return t.getParam("paste_postprocess")}(t);r&&t.on("PastePostProcess",(function(t){r.call(e,e,t)}))}(t),Ht(t),function(t,e,n){(function(t){return t.getParam("paste_block_drop",!1)})(t)&&t.on("dragend dragover draggesture dragdrop drop drag",(function(t){t.preventDefault(),t.stopPropagation()})),z(t)||t.on("drop",(function(t){var e=t.dataTransfer;e&&e.files&&e.files.length>0&&t.preventDefault()})),t.on("drop",(function(r){var o=Ut(t,r);if(!r.isDefaultPrevented()&&!n.get()){var i,a=e.getDataTransferItems(r.dataTransfer),u=e.hasContentType(a,U());if((e.hasHtmlOrText(a)&&(!(i=a["text/plain"])||0!==i.indexOf("file://"))||!e.pasteImageData(r,o))&&o&&function(t){return t.getParam("paste_filter_drop",!0)}(t)){var c=a["mce-internal"]||a["text/html"]||a["text/plain"];c&&(r.preventDefault(),D.setEditorTimeout(t,(function(){t.undoManager.transact((function(){a["mce-internal"]&&t.execCommand("Delete"),Wt(t,o),c=Z(c),a["text/html"]?e.pasteHtml(c,u):e.pasteText(c)}))})))}}})),t.on("dragstart",(function(t){n.set(!0)})),t.on("dragover dragend",(function(e){z(t)&&!1===n.get()&&(e.preventDefault(),Wt(t,Ut(t,e))),"dragend"===e.type&&n.set(!1)}))}(t,r,e),function(t){return{clipboard:t}}(r)}}))}()},"7c73":function(t,e,n){"use strict";var r,o=n("825a"),i=n("37e8"),a=n("7839"),u=n("d012"),c=n("1be4"),s=n("cc12"),l=n("f772"),f=l("IE_PROTO"),d=function(){},m=function(t){return"<script>"+t+"<\/script>"},p=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&r?p(r):((e=s("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):p(r);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};u[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d.prototype=o(t),n=new d,d.prototype=null,n[f]=t):n=h(),void 0===e?n:i.f(n,e)}},"7c75":function(t,e,n){"use strict";n("54ca")},"7cb9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pharmacode=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("e762");var a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.number=parseInt(t,10),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"encode",value:function(){for(var t=this.number,e="";!isNaN(t)&&0!=t;)t%2==0?(e="11100"+e,t=(t-2)/2):(e="100"+e,t=(t-1)/2);return{data:e=e.slice(0,-2),text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(((r=i)&&r.__esModule?r:{default:r}).default);e.pharmacode=a},"7db0":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").find,i=n("44d2"),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},"7f65":function(t,e,n){"use strict";var r=n("59ed"),o=n("825a"),i=n("c65b"),a=n("5926"),u=n("46c4"),c=RangeError,s=TypeError,l=Math.max,f=function(t,e){this.set=t,this.size=l(e,0),this.has=r(t.has),this.keys=r(t.keys)};f.prototype={getIterator:function(){return u(o(i(this.keys,this.set)))},includes:function(t){return i(this.has,this.set,t)}},t.exports=function(t){o(t);var e=+t.size;if(e!=e)throw new s("Invalid size");var n=a(e);if(n<0)throw new c("Invalid size");return new f(t,n)}},"7f7b":function(t,e,n){},"805f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n("124f"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6e53");var u=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,a.mod11)(t),t+=(0,a.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=u},8172:function(t,e,n){"use strict";var r=n("e065"),o=n("57b9");r("toPrimitive"),o()},"825a":function(t,e,n){"use strict";var r=n("861d"),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},"83ab":function(t,e,n){"use strict";var r=n("d039");t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,n){"use strict";var r=n("cb27"),o=n("384f"),i=r.Set,a=r.add;t.exports=function(t){var e=new i;return o(t,(function(t){a(e,t)})),e}},8409:function(t,e,n){},8418:function(t,e,n){"use strict";var r=n("83ab"),o=n("9bf2"),i=n("5c6c");t.exports=function(t,e,n){r?o.f(t,e,i(0,n)):t[e]=n}},"841c":function(t,e,n){"use strict";var r=n("c65b"),o=n("d784"),i=n("825a"),a=n("7234"),u=n("1d80"),c=n("129f"),s=n("577e"),l=n("dc4a"),f=n("14c3");o("search",(function(t,e,n){return[function(e){var n=u(this),o=a(e)?void 0:l(e,t);return o?r(o,e,n):new RegExp(e)[t](s(n))},function(t){var r=i(this),o=s(t),a=n(e,r,o);if(a.done)return a.value;var u=r.lastIndex;c(u,0)||(r.lastIndex=0);var l=f(r,o);return c(r.lastIndex,u)||(r.lastIndex=u),null===l?-1:l.index}]}))},"84ec":function(t,e,n){n("2401")},8558:function(t,e,n){"use strict";var r=n("cfe9"),o=n("b5db"),i=n("c6b6"),a=function(t){return o.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},"858e":function(t,e,n){"use strict";n("6b3e")},"861d":function(t,e,n){"use strict";var r=n("1626");t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},"87fb":function(t,e,n){},8861:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n("124f"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6e53");var u=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,a.mod10)(t),t+=(0,a.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=u},8863:function(t,e,n){n("9dd9")},8875:function(t,e,n){var r,o,i;"undefined"!=typeof self&&self,o=[],void 0===(i="function"==typeof(r=function(){return function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(t){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(t.stack),a=i&&i[1]||!1,u=i&&i[2]||!1,c=document.location.href.replace(document.location.hash,""),s=document.getElementsByTagName("script");a===c&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var l=0;l<s.length;l++){if("interactive"===s[l].readyState)return s[l];if(s[l].src===a)return s[l];if(a===c&&s[l].innerHTML&&s[l].innerHTML.trim()===o)return s[l]}return null}}})?r.apply(e,o):r)||(t.exports=i)},"88a7":function(t,e,n){"use strict";var r=n("cb2d"),o=n("e330"),i=n("577e"),a=n("d6d6"),u=URLSearchParams,c=u.prototype,s=o(c.append),l=o(c.delete),f=o(c.forEach),d=o([].push),m=new u("a=1&a=2&b=3");m.delete("a",1),m.delete("b",void 0),m+""!="a=2"&&r(c,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var r=[];f(this,(function(t,e){d(r,{key:e,value:t})})),a(e,1);for(var o,u=i(t),c=i(n),m=0,p=0,h=!1,g=r.length;m<g;)o=r[m++],h||o.key===u?(h=!0,l(this,o.key)):p++;for(;p<g;)(o=r[p++]).key===u&&o.value===c||s(this,o.key,o.value)}),{enumerable:!0,unsafe:!0})},8925:function(t,e,n){"use strict";var r=n("e330"),o=n("1626"),i=n("c6cd"),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},"89a2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n("c243"),u=n("bdfe"),c=(r=u)&&r.__esModule?r:{default:r};var s=function(t){return(10-t.substr(0,12).split("").map((function(t){return+t})).reduce((function(t,e,n){return n%2?t+3*e:t+e}),0)%10)%10},l=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{12}$/)&&(t+=s(t));var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastChar=n.lastChar,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===s(this.data)}},{key:"leftText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var t=this.data.substr(1,6),n=a.EAN13_STRUCTURE[this.data[0]];return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,n)}},{key:"rightText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var t=this.data.substr(7,6);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRRRR")}},{key:"encodeGuarded",value:function(){var t=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(t.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(t.push({data:"00"}),t.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),t}}]),e}(c.default);e.default=l},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"8b00":function(t,e,n){"use strict";var r=n("23e7"),o=n("68df");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("isSubsetOf")},{isSubsetOf:o})},"8ba4":function(t,e,n){"use strict";n("23e7")({target:"Number",stat:!0},{isInteger:n("eac5")})},"8bbf":function(t,e){t.exports=require("vue")},"8df4":function(t,e,n){"use strict";var r=n("7a77");function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},"8e16":function(t,e,n){"use strict";var r=n("7282"),o=n("cb27");t.exports=r(o.proto,"size","get")||function(t){return t.size}},"8e4b":function(module,__webpack_exports__,__webpack_require__){"use strict";var _Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("2909"),_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("5530"),_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("c7eb"),_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("1da1"),_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("ade3"),core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("d9e2"),core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("99af"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("4de4"),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("7db0"),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("c740"),core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("caad"),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_10__),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("a15b"),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_11__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("d81d"),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_12__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("14d9"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13__),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("a434"),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_14__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("e9c4"),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_16__),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("b64b"),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_17__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("d3b7"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18__),core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("e6cf"),core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_19__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("ac1f"),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("25f0"),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_21__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("2532"),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_22__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("5319"),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_23__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("159b"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_24___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_24__),_GenerateFormItem__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("12f6"),_Layouts_GenerateColItem__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("96a9"),_Layouts_GenerateTabItem__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("f6f4"),_Layouts_GenerateReport__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("0cd8"),_Layouts_GenerateCard__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("9bd9"),_Layouts_GenerateCollapseItem__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("ca9c"),_util_index__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("4260"),_util_event_bus__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("0f01"),lodash__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("60bb"),lodash__WEBPACK_IMPORTED_MODULE_33___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_33__),axios__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("bc3a"),axios__WEBPACK_IMPORTED_MODULE_34___default=__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_34__),uuid__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("ec26"),_common_consts_form_base_config__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("6ba6"),_util_widget_public_const__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("e2e6"),_adapters_api_adapter__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("7694"),moment__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("c32d"),moment__WEBPACK_IMPORTED_MODULE_39___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_39__),x2js__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("98fc"),x2js__WEBPACK_IMPORTED_MODULE_40___default=__webpack_require__.n(x2js__WEBPACK_IMPORTED_MODULE_40__),_util_public_methods__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("bcc9");__webpack_exports__.a={name:"iss-library-form-renderer",components:{GenerateFormItem:_GenerateFormItem__WEBPACK_IMPORTED_MODULE_25__.a,GenerateColItem:_Layouts_GenerateColItem__WEBPACK_IMPORTED_MODULE_26__.default,GenerateTabItem:_Layouts_GenerateTabItem__WEBPACK_IMPORTED_MODULE_27__.a,GenerateCard:_Layouts_GenerateCard__WEBPACK_IMPORTED_MODULE_29__.a,GenerateCollapseItem:_Layouts_GenerateCollapseItem__WEBPACK_IMPORTED_MODULE_30__.a,GenerateReport:_Layouts_GenerateReport__WEBPACK_IMPORTED_MODULE_28__.a},props:{source:{type:Object,default:function(){return JSON.stringify(Object(_common_consts_form_base_config__WEBPACK_IMPORTED_MODULE_36__.a)())}},remote:{type:Object,default:function(){return{}}},value:{type:Object,default:function(){return{}}},edit:{type:Boolean,default:!0},printRead:{type:Boolean,default:!1},remoteOptionSource:{type:Object,default:function(){return{}}},preview:{type:Boolean,default:!1},preferPlatform:{type:String,default:"pc"},lockPlatform:{type:Boolean,default:!1},variables:{type:Object,default:function(){return{}}},currentFormId:{type:String,default:function(){return""}},formPublishVersionId:{type:String,default:function(){return""}}},provide:function(){return{variable:this.variables,currentFormId:this.currentFormId,formPublishVersionId:this.formPublishVersionId,formValue:this.value,preview:this.preview,edit:this.edit}},computed:{platform:function(){return this.lockPlatform?this.preferPlatform:this.responsivePlatform}},data:function(){return{responsivePlatform:"pc",data:{},models:{},rules:{},displayFields:{},resetModels:{},formKey:Object(uuid__WEBPACK_IMPORTED_MODULE_35__.a)(),formStyleKey:Object(uuid__WEBPACK_IMPORTED_MODULE_35__.a)(),formValue:this.value,formShow:!1,formRef:"FORM_".concat(Object(uuid__WEBPACK_IMPORTED_MODULE_35__.a)()),containerKey:Object(uuid__WEBPACK_IMPORTED_MODULE_35__.a)(),dataSourceValue:[],eventFunction:{}}},created:function(){this.data=lodash__WEBPACK_IMPORTED_MODULE_33___default.a.cloneDeep(this.source),this._loadDataSource(),this._loadEvents(),this._initForm()},mounted:function(){var t=this,e=this;_util_event_bus__WEBPACK_IMPORTED_MODULE_32__.a.$on("on-change-"+this.containerKey,(function(n,r,o){t.containerKey===o&&e.setData(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__.a)({},r,n)),e.$emit("on-change",r,n,e.models),e.$emit("on-".concat(r,"-change"),n)})),this.$nextTick((function(){t.eventFunction.mounted&&t.eventFunction.mounted()})),this.responsivePlatform=this.preferPlatform,this._resizeHandler(),window.addEventListener("resize",lodash__WEBPACK_IMPORTED_MODULE_33___default.a.throttle((function(){e._resizeHandler()}),300))},beforeDestroy:function(){var t=".iss-form-"+this.formStyleKey+" ";Object(_util_index__WEBPACK_IMPORTED_MODULE_31__.a)(t),_util_event_bus__WEBPACK_IMPORTED_MODULE_32__.a.$off("on-change-"+this.containerKey),window.removeEventListener("resize",this._resizeHandler)},methods:{batchDownload:function(){var t=arguments;return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().mark((function e(){var n;return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.length>0&&void 0!==t[0]?t[0]:[],e.next=3,Object(_util_public_methods__WEBPACK_IMPORTED_MODULE_41__.a)(n);case 3:case"end":return e.stop()}}),e)})))()},fillingColumns:function(t){var e=this;if(t.selectedItem){var n=t.selectedItem.widgetModel;n&&this.data.list.forEach((function(r,o){r.model===n&&"relatedForm"===r.type&&(e.$set(e.data.list[o].options.selectedMap,"label",t.selectedItem.label),e.$set(e.data.list[o].options.selectedMap,"value",t.selectedItem.value))})),t.selectedItem.type&&"input"===t.selectedItem.type||(this.$set(this.models,n,t.selectedItem.value||""),this.$set(this.models,"".concat(n,"_").concat(_util_widget_public_const__WEBPACK_IMPORTED_MODULE_37__.a),t.selectedItem.label||""))}t.fillingRules&&t.fillingRules.length&&(t.value&&Object.keys(t.value).length?t.fillingRules.forEach((function(n){e.$set(e.models,n.toColumnName,t.value[n.fromColumnName])})):t.fillingRules.forEach((function(t){var n=e.data.list.map((function(e){if(e.model===t.toColumnName)return e.options.defaultValue})).filter((function(t){return null!=t}));n.length&&e.$set(e.models,t.toColumnName,n[0])})))},getWidthType:function(t){return t<576?"mobile":t<792?"pad":"pc"},_resizeHandler:function(){if(!document.hidden){var t=document.getElementById("iss-form-renderer");if(t){var e=t.getBoundingClientRect().width;this.responsivePlatform=this.getWidthType(e)}}},_initForm:function(){if(this.formShow=!1,Object.keys(this.data).length?this.generateModel(this.data.list):this.generateModel([]),this.resetModels=lodash__WEBPACK_IMPORTED_MODULE_33___default.a.cloneDeep(this.models),this.models=Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},this.models),this.formShow=!0,this.data.config&&this.data.config.styleSheets){var t=".iss-form-"+this.formStyleKey+" ";Object(_util_index__WEBPACK_IMPORTED_MODULE_31__.c)(Object(_util_index__WEBPACK_IMPORTED_MODULE_31__.b)(this.data.config.styleSheets),t)}},_loadEvents:function(){if(this.data.config&&this.data.config.eventScript)for(var t=0;t<this.data.config.eventScript.length;t++){var e=this.data.config.eventScript[t];try{this.eventFunction[e.key]=Function(e.func).bind(this)}catch(t){this.$alert(t.message,"Function[".concat(e.key,"] 动作设置错误"),{type:"error"})}}},_loadDataSource:function(){if(this.data.config&&this.data.config.dataSource)for(var t=0;t<this.data.config.dataSource.length;t++){var e=this.data.config.dataSource[t];e.auto&&this._sendRequest(e.name)}},_sendRequest:function(t){var e=this,n=this.data.config.dataSource.find((function(e){return e.name===t}));if(n){var r={method:n.method,url:n.url,headers:n.headers,params:n.params};if(n.requestFunc)r=Function("config",n.requestFunc).bind(this)(r);axios__WEBPACK_IMPORTED_MODULE_34___default()(r).then((function(t){var r=t;n.responseFunc&&(r=Function("res",n.responseFunc).bind(e)(t.data));var o=e.dataSourceValue.find((function(t){return t.key===n.key}));o?o.value=r:e.dataSourceValue.push({key:n.key,value:r})})).catch((function(t){n.errorFunc&&Function("error",n.errorFunc).bind(e)(t)}))}},generateModel:function generateModel(genList){for(var _this5=this,parentDisplay=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],_loop=function _loop(i){if("grid"===genList[i].type)_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden,genList[i].columns.forEach((function(t){_this5.generateModel(t.list,!genList[i].options.hidden)}));else if("tabs"===genList[i].type)genList[i].tabs.forEach((function(t){_this5.generateModel(t.list,!genList[i].options.hidden)})),_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden;else if("collapse"===genList[i].type)genList[i].collapse.forEach((function(t){_this5.generateModel(t.list,!genList[i].options.hidden)})),_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden;else if("report"===genList[i].type)genList[i].rows.forEach((function(t){t.columns.forEach((function(t){_this5.generateModel(t.list,!genList[i].options.hidden)}))})),_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden;else if("card"===genList[i].type)_this5.generateModel(genList[i].list,!genList[i].options.hidden),_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden;else{if(Object.keys(_this5.formValue).indexOf(genList[i].model)>=0)genList[i].key&&genList[i].model&&(_this5.models[genList[i].model]=_this5.formValue[genList[i].model]),_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden;else{if(genList[i].key&&genList[i].model)if(genList[i].options.isVariableDefaultValue){var value="未初始化变量数据";_this5.variables&&(value=_this5.variables[genList[i].options.defaultVariable]||""),_this5.models[genList[i].model]=value}else _this5.models[genList[i].model]=genList[i].options.defaultValue;_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden}genList[i].tableColumns&&genList[i].tableColumns.length&&genList[i].tableColumns.forEach((function(item){_this5.rules["".concat(genList[i].model,".").concat(item.model)]?_this5.rules["".concat(genList[i].model,".").concat(item.model)]=[].concat(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(_this5.rules["".concat(genList[i].model,".").concat(item.model)]),Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(item.rules?item.rules.map((function(im){if(im.pattern)return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},im),{},{pattern:eval(im.pattern)});if(im.func){var validatorFunc=Function("rule","value","callback",im.func).bind(_this5);return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},im),{},{validator:validatorFunc})}return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},im)})):[])):_this5.rules["".concat(genList[i].model,".").concat(item.model)]=Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(item.rules?item.rules.map((function(im){if(im.pattern)return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},im),{},{pattern:eval(im.pattern)});if(im.func){var validatorFunc=Function("rule","value","callback",im.func).bind(_this5);return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},im),{},{validator:validatorFunc})}return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},im)})):[])})),_this5.rules[genList[i].model]?_this5.rules[genList[i].model]=[].concat(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(_this5.rules[genList[i].model]),Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(genList[i].rules?genList[i].rules.map((function(item){if(item.pattern)return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},item),{},{pattern:eval(item.pattern)});if(item.func){var validatorFunc=Function("rule","value","callback",item.func).bind(_this5);return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},item),{},{validator:validatorFunc})}return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},item)})):[])):_this5.rules[genList[i].model]=Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(genList[i].rules?genList[i].rules.map((function(item){if(item.pattern)return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},item),{},{pattern:eval(item.pattern)});if(item.func){var validatorFunc=Function("rule","value","callback",item.func).bind(_this5);return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},item),{},{validator:validatorFunc})}return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},item)})):[])}},i=0;i<genList.length;i++)_loop(i)},_setProperty:function(t,e,n,r){for(var o=this,i=0;i<t.length;i++)"grid"===t[i].type?t[i].columns.forEach((function(t){o._setProperty(t.list,e,n,r)})):"tabs"===t[i].type?t[i].tabs.forEach((function(t){o._setProperty(t.list,e,n,r)})):"collapse"===t[i].type?t[i].collapse.forEach((function(t){o._setProperty(t.list,e,n,r)})):"card"===t[i].type?this._setProperty(t[i].list,e,n,r):"report"===t[i].type?t[i].rows.forEach((function(t){t.columns.forEach((function(t){o._setProperty(t.list,e,n,r)}))})):e.indexOf(t[i].model)>=0&&this.$set(t[i].options,r,n)},_updateClassName:function(t,e,n,r){for(var o=this,i=0;i<t.length;i++)if("grid"===t[i].type)t[i].columns.forEach((function(t){o._updateClassName(t.list,e,n,r)}));else if("tabs"===t[i].type)t[i].tabs.forEach((function(t){o._updateClassName(t.list,e,n,r)}));else if("collapse"===t[i].type)t[i].collapse.forEach((function(t){o._updateClassName(t.list,e,n,r)}));else if("card"===t[i].type)this._updateClassName(t[i].list,e,n,r);else if("report"===t[i].type)t[i].rows.forEach((function(t){t.columns.forEach((function(t){o._updateClassName(t.list,e,n,r)}))}));else if(e.indexOf(t[i].model)>=0&&("add"!==r||t[i].options.customClass.split(" ").includes(n)||this.$set(t[i].options,"customClass",[].concat(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(t[i].options.customClass.split(" ")),[n]).join(" ")),"remove"===r&&t[i].options.customClass.split(" ").includes(n))){var a=t[i].options.customClass.split(" ");a.splice(a.findIndex((function(t){return t===n})),1),this.$set(t[i].options,"customClass",a.join(" "))}},_setOptions:function(t,e,n){for(var r=this,o=function(o){"grid"===t[o].type?t[o].columns.forEach((function(t){r._setOptions(t.list,e,n)})):"tabs"===t[o].type?t[o].tabs.forEach((function(t){r._setOptions(t.list,e,n)})):"collapse"===t[o].type?t[o].collapse.forEach((function(t){r._setOptions(t.list,e,n)})):"card"===t[o].type?r._setOptions(t[o].list,e,n):"report"===t[o].type?t[o].rows.forEach((function(t){t.columns.forEach((function(t){r._setOptions(t.list,e,n)}))})):e.indexOf(t[o].model)>=0&&Object.keys(n).forEach((function(e){r.$set(t[o].options,e,n[e])}))},i=0;i<t.length;i++)o(i)},_getData:function(){var t=arguments,e=this;return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().mark((function n(){var r,o,i,a,u;return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(!(t.length>0&&void 0!==t[0])||t[0])||!e.eventFunction.beforeSubmit){n.next=7;break}return n.next=4,e.eventFunction.beforeSubmit();case 4:if(!((r=n.sent)instanceof Error)&&r){n.next=7;break}return n.abrupt("return",Promise.reject(r instanceof Error?r:new Error("请按提示完善表单内容(E:BEFORE_SUBMIT)")));case 7:if(o=lodash__WEBPACK_IMPORTED_MODULE_33___default.a.cloneDeep(e.models),!(e.data&&e.data.config&&e.data.config.submitHiddenArea)){n.next=12;break}return n.abrupt("return",o);case 12:for(a in i={},o)u=a.replace("_".concat(_util_widget_public_const__WEBPACK_IMPORTED_MODULE_37__.a),""),e.displayFields[u]&&(i[a]=o[a]);return n.abrupt("return",i);case 15:case"end":return n.stop()}}),n)})))()},_submitted:function(t){return this.eventFunction.submitted&&this.eventFunction.submitted(t)},getData:function(){var t=arguments,e=this;return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().mark((function n(){var r,o;return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=!(t.length>0&&void 0!==t[0])||t[0],o=!(t.length>1&&void 0!==t[1])||t[1],!r){n.next=17;break}return n.prev=3,n.next=6,e.$refs[e.formRef].validate();case 6:if(!n.sent){n.next=10;break}return n.abrupt("return",e._getData(o));case 10:n.next=15;break;case 12:return n.prev=12,n.t0=n.catch(3),n.abrupt("return",Promise.reject(new Error("请按提示完善表单内容")));case 15:n.next=18;break;case 17:return n.abrupt("return",e._getData(o));case 18:case"end":return n.stop()}}),n,null,[[3,12]])})))()},reset:function(){var t=this;this.setData(lodash__WEBPACK_IMPORTED_MODULE_33___default.a.cloneDeep(this.resetModels)),this.$nextTick((function(){t.$refs[t.formRef]&&t.$refs[t.formRef].clearValidate()}))},onInputChange:function(t,e){this.$emit("on-change",e,t,this.models),this.$emit("on-".concat(e,"-change"),t)},display:function(t){var e=this;Object.keys(this.displayFields).forEach((function(n){t.indexOf(n)>=0&&e.$set(e.displayFields,n,!0)})),this.displayFields=Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},this.displayFields)},hide:function(t){var e=this;Object.keys(this.displayFields).forEach((function(n){t.indexOf(n)>=0&&e.$set(e.displayFields,n,!1)})),this.displayFields=Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},this.displayFields)},disabled:function(t,e){this._setProperty(this.data.list,t,e,"disabled")},setDisabled:function(t,e){this._setProperty(this.data.list,t,e,"disabled")},setReadOnly:function(t,e){this._setProperty(this.data.list,t,e,"readonly")},addClassName:function(t,e){this._updateClassName(this.data.list,t,e,"add")},removeClassName:function(t,e){this._updateClassName(this.data.list,t,e,"remove")},refresh:function(){this._loadDataSource(),this._loadEvents(),this._initForm()},setData:function(t){var e=this;Object.keys(t).forEach((function(n){e.$set(e.models,n,t[n])}))},_findComponentDownward:function(t,e,n){var r=t.$children;if(n)return n;if(0===r.length)n=null;else for(var o=0;o<r.length;o++){var i=r[o];if(Object.keys(i.$refs).indexOf(e)>=0){n=i.$refs[e];break}n=this._findComponentDownward(i,e,n)}return n},getComponent:function(t){return Object.keys(this.$refs).indexOf(t)>=0?this.$refs[t]:this._findComponentDownward(this,t,null)},getComponentById:function(t){return this.getComponent("icd-form-".concat(t))},getValues:function(){return this.models},getValue:function(t){return this.models[t]},setValues:function(t){var e=this;Object.keys(t).forEach((function(n){e.$set(e.models,n,t[n])}))},setValue:function(t,e){this.$set(this.models,t,e)},setRules:function(t,e){this.$set(this.rules,t,Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(e)),this.$refs[this.formRef].clearValidate(t)},setOptions:function(t,e){this._setOptions(this.data.list,t,e)},httpRequest:function(t){return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().mark((function e(){return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("get"!==t.type.toLowerCase()){e.next=4;break}return e.abrupt("return",axios__WEBPACK_IMPORTED_MODULE_34___default.a.get(t.url,t.config));case 4:if("post"!==t.type.toLowerCase()){e.next=8;break}return e.abrupt("return",axios__WEBPACK_IMPORTED_MODULE_34___default.a.post(t.url,t.params,t.config));case 8:if("put"!==t.type.toLowerCase()){e.next=12;break}return e.abrupt("return",axios__WEBPACK_IMPORTED_MODULE_34___default.a.put(t.url,t.params,t.config));case 12:if("delete"!==t.type.toLowerCase()){e.next=14;break}return e.abrupt("return",axios__WEBPACK_IMPORTED_MODULE_34___default.a.delete(t.url,t.config));case 14:case"end":return e.stop()}}),e)})))()},onTriggerThirdApi:function(t){return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().mark((function e(){return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.body="string"==typeof t.body?t.body:JSON.stringify(t.body),e.next=3,Object(_adapters_api_adapter__WEBPACK_IMPORTED_MODULE_38__.n)(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))()},xmlToJson:function(t){return(new x2js__WEBPACK_IMPORTED_MODULE_40___default.a).xml2js(t.toString())},getTimeUtils:function(){return moment__WEBPACK_IMPORTED_MODULE_39___default.a},getLodash:function(){return lodash__WEBPACK_IMPORTED_MODULE_33___default.a}}}},"8e51":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MSI1110=e.MSI1010=e.MSI11=e.MSI10=e.MSI=void 0;var r=c(n("124f")),o=c(n("4727")),i=c(n("4461")),a=c(n("8861")),u=c(n("805f"));function c(t){return t&&t.__esModule?t:{default:t}}e.MSI=r.default,e.MSI10=o.default,e.MSI11=i.default,e.MSI1010=a.default,e.MSI1110=u.default},"8f5e":function(t,e,n){"use strict";n("58ab")},"905a":function(t,e){t.exports=require("@tinymce/tinymce-vue")},"90d8":function(t,e,n){"use strict";var r=n("c65b"),o=n("1a2d"),i=n("3a9b"),a=n("ad6d"),u=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in u||o(t,"flags")||!i(u,t)?e:r(a,t)}},"90e3":function(t,e,n){"use strict";var r=n("e330"),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},9112:function(t,e,n){"use strict";var r=n("83ab"),o=n("9bf2"),i=n("5c6c");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},9224:function(t){t.exports=JSON.parse('{"a":"1.17.22"}')},9263:function(t,e,n){"use strict";var r,o,i=n("c65b"),a=n("e330"),u=n("577e"),c=n("ad6d"),s=n("9f7f"),l=n("5692"),f=n("7c73"),d=n("69f3").get,m=n("fce3"),p=n("107c"),h=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,b=a("".charAt),y=a("".indexOf),_=a("".replace),w=a("".slice),x=(o=/b*/g,i(g,r=/a/,"a"),i(g,o,"a"),0!==r.lastIndex||0!==o.lastIndex),O=s.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(x||S||O||m||p)&&(v=function(t){var e,n,r,o,a,s,l,m=this,p=d(m),C=u(t),E=p.raw;if(E)return E.lastIndex=m.lastIndex,e=i(v,E,C),m.lastIndex=E.lastIndex,e;var k=p.groups,T=O&&m.sticky,M=i(c,m),D=m.source,A=0,P=C;if(T&&(M=_(M,"y",""),-1===y(M,"g")&&(M+="g"),P=w(C,m.lastIndex),m.lastIndex>0&&(!m.multiline||m.multiline&&"\n"!==b(C,m.lastIndex-1))&&(D="(?: "+D+")",P=" "+P,A++),n=new RegExp("^(?:"+D+")",M)),S&&(n=new RegExp("^"+D+"$(?!\\s)",M)),x&&(r=m.lastIndex),o=i(g,T?n:m,P),T?o?(o.input=w(o.input,A),o[0]=w(o[0],A),o.index=m.lastIndex,m.lastIndex+=o[0].length):m.lastIndex=0:x&&o&&(m.lastIndex=m.global?o.index+o[0].length:r),S&&o&&o.length>1&&i(h,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&k)for(o.groups=s=f(null),a=0;a<k.length;a++)s[(l=k[a])[0]]=o[l[1]];return o}),t.exports=v},"944a":function(t,e,n){"use strict";var r=n("d066"),o=n("e065"),i=n("d44e");o("toStringTag"),i(r("Symbol"),"Symbol")},"94ca":function(t,e,n){"use strict";var r=n("d039"),o=n("1626"),i=/#|\.prototype\./,a=function(t,e){var n=c[u(t)];return n===l||n!==s&&(o(e)?r(e):!!e)},u=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},"94ce":function(t,e){!function(){"use strict";var t=function(t){return function(e){return r=typeof(n=e),(null===n?"null":"object"===r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===t;var n,r}},e=function(t){return function(e){return typeof e===t}},n=function(t){return function(e){return t===e}},r=t("string"),o=t("object"),i=t("array"),a=n(null),u=e("boolean"),c=n(void 0),s=function(t){return!function(t){return null==t}(t)},l=e("function"),f=e("number"),d=function(){},m=function(t){return function(){return t}},p=function(t){return t},h=function(t,e){return t===e};function g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.concat(n);return t.apply(null,o)}}var v,b,y=function(t){return function(e){return!t(e)}},_=m(!1),w=m(!0),x=function(){return O},O={fold:function(t,e){return t()},isSome:_,isNone:w,getOr:b=p,getOrThunk:v=function(t){return t()},getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:m(null),getOrUndefined:m(void 0),or:b,orThunk:v,map:x,each:d,bind:x,exists:_,forall:w,filter:function(){return x()},toArray:function(){return[]},toString:m("none()")},S=function(t){var e=m(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:w,isNone:_,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return S(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:O},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},C={some:S,none:x,from:function(t){return null==t?O:S(t)}},E=Array.prototype.slice,k=Array.prototype.indexOf,T=Array.prototype.push,M=function(t,e){return n=t,r=e,k.call(n,r)>-1;var n,r},D=function(t,e){for(var n=0,r=t.length;n<r;n++){if(e(t[n],n))return!0}return!1},A=function(t,e){for(var n=[],r=0;r<t;r++)n.push(e(r));return n},P=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},R=function(t,e){for(var n=0,r=t.length;n<r;n++){e(t[n],n)}},I=function(t,e){for(var n=[],r=[],o=0,i=t.length;o<i;o++){var a=t[o];(e(a,o)?n:r).push(a)}return{pass:n,fail:r}},z=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n},j=function(t,e,n){return function(t,e){for(var n=t.length-1;n>=0;n--){e(t[n],n)}}(t,(function(t,r){n=e(n,t,r)})),n},L=function(t,e,n){return R(t,(function(t,r){n=e(n,t,r)})),n},B=function(t,e){return function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return C.some(i);if(n(i,r))break}return C.none()}(t,e,_)},F=function(t,e){for(var n=0,r=t.length;n<r;n++){if(e(t[n],n))return C.some(n)}return C.none()},N=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!i(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);T.apply(e,t[n])}return e},H=function(t,e){return N(P(t,e))},V=function(t,e){for(var n=0,r=t.length;n<r;++n){if(!0!==e(t[n],n))return!1}return!0},U=function(t,e){for(var n={},r=0,o=t.length;r<o;r++){var i=t[r];n[String(i)]=e(i,r)}return n},W=function(t){return[t]},$=function(t,e){return e>=0&&e<t.length?C.some(t[e]):C.none()},G=function(t){return $(t,0)},K=function(t){return $(t,t.length-1)},q=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return C.none()},X=function(){return(X=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function Y(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}var J=function(t){var e,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,e=t.apply(null,r)),e}},Q=function(){return Z(0,0)},Z=function(t,e){return{major:t,minor:e}},tt={nu:Z,detect:function(t,e){var n=String(e).toLowerCase();return 0===t.length?Q():function(t,e){var n=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}}(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return Z(r(1),r(2))}(t,n)},unknown:Q},et=function(t,e){var n=String(e).toLowerCase();return B(t,(function(t){return t.search(n)}))},nt=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},rt=function(t,e){return-1!==t.indexOf(e)},ot=function(t,e){return nt(t,e,0)},it=function(t,e){return nt(t,e,t.length-e.length)},at=function(t){return function(e){return e.replace(t,"")}}(/^\s+|\s+$/g),ut=function(t){return t.length>0},ct=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,st=function(t){return function(e){return rt(e,t)}},lt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return rt(t,"edge/")&&rt(t,"chrome")&&rt(t,"safari")&&rt(t,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ct],search:function(t){return rt(t,"chrome")&&!rt(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return rt(t,"msie")||rt(t,"trident")}},{name:"Opera",versionRegexes:[ct,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:st("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:st("firefox")},{name:"Safari",versionRegexes:[ct,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(rt(t,"safari")||rt(t,"mobile/"))&&rt(t,"applewebkit")}}],ft=[{name:"Windows",search:st("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return rt(t,"iphone")||rt(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:st("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:st("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:st("linux"),versionRegexes:[]},{name:"Solaris",search:st("sunos"),versionRegexes:[]},{name:"FreeBSD",search:st("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:st("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],dt={browsers:m(lt),oses:m(ft)},mt=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r("Edge"),isChrome:r("Chrome"),isIE:r("IE"),isOpera:r("Opera"),isFirefox:r("Firefox"),isSafari:r("Safari")}},pt={unknown:function(){return mt({current:void 0,version:tt.unknown()})},nu:mt,edge:m("Edge"),chrome:m("Chrome"),ie:m("IE"),opera:m("Opera"),firefox:m("Firefox"),safari:m("Safari")},ht=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r("Windows"),isiOS:r("iOS"),isAndroid:r("Android"),isOSX:r("OSX"),isLinux:r("Linux"),isSolaris:r("Solaris"),isFreeBSD:r("FreeBSD"),isChromeOS:r("ChromeOS")}},gt={unknown:function(){return ht({current:void 0,version:tt.unknown()})},nu:ht,windows:m("Windows"),ios:m("iOS"),android:m("Android"),linux:m("Linux"),osx:m("OSX"),solaris:m("Solaris"),freebsd:m("FreeBSD"),chromeos:m("ChromeOS")},vt=function(t,e,n){var r=dt.browsers(),o=dt.oses(),i=e.bind((function(t){return function(t,e){return q(e.brands,(function(e){var n=e.brand.toLowerCase();return B(t,(function(t){var e;return n===(null===(e=t.brand)||void 0===e?void 0:e.toLowerCase())})).map((function(t){return{current:t.name,version:tt.nu(parseInt(e.version,10),0)}}))}))}(r,t)})).orThunk((function(){return function(t,e){return et(t,e).map((function(t){var n=tt.detect(t.versionRegexes,e);return{current:t.name,version:n}}))}(r,t)})).fold(pt.unknown,pt.nu),a=function(t,e){return et(t,e).map((function(t){var n=tt.detect(t.versionRegexes,e);return{current:t.name,version:n}}))}(o,t).fold(gt.unknown,gt.nu),u=function(t,e,n,r){var o=t.isiOS()&&!0===/ipad/i.test(n),i=t.isiOS()&&!o,a=t.isiOS()||t.isAndroid(),u=a||r("(pointer:coarse)"),c=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!c,l=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),f=!s&&!c&&!l;return{isiPad:m(o),isiPhone:m(i),isTablet:m(c),isPhone:m(s),isTouch:m(u),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:m(l),isDesktop:m(f)}}(a,i,t,n);return{browser:i,os:a,deviceType:u}},bt=function(t){return window.matchMedia(t).matches},yt=J((function(){return vt(navigator.userAgent,C.from(navigator.userAgentData),bt)})),_t=function(){return yt()},wt=function(t){if(null==t)throw new Error("Node cannot be null or undefined");return{dom:t}},xt={fromHtml:function(t,e){var n=(e||document).createElement("div");if(n.innerHTML=t,!n.hasChildNodes()||n.childNodes.length>1)throw new Error("HTML must have a single root node");return wt(n.childNodes[0])},fromTag:function(t,e){var n=(e||document).createElement(t);return wt(n)},fromText:function(t,e){var n=(e||document).createTextNode(t);return wt(n)},fromDom:wt,fromPoint:function(t,e,n){return C.from(t.dom.elementFromPoint(e,n)).map(wt)}},Ot=function(t,e){var n=t.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},St=function(t){return 1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType||0===t.childElementCount},Ct=function(t,e){var n=void 0===e?document:e.dom;return St(n)?C.none():C.from(n.querySelector(t)).map(xt.fromDom)},Et=function(t,e){return t.dom===e.dom},kt=function(t,e){return n=t.dom,r=e.dom,function(t,e,n){return 0!=(t.compareDocumentPosition(e)&n)}(n,r,Node.DOCUMENT_POSITION_CONTAINED_BY);var n,r},Tt=function(t,e){return _t().browser.isIE()?kt(t,e):function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)}(t,e)},Mt=Ot,Dt=Object.keys,At=Object.hasOwnProperty,Pt=function(t,e){for(var n=Dt(t),r=0,o=n.length;r<o;r++){var i=n[r];e(t[i],i)}},Rt=function(t,e){return It(t,(function(t,n){return{k:n,v:e(t,n)}}))},It=function(t,e){var n={};return Pt(t,(function(t,r){var o=e(t,r);n[o.k]=o.v})),n},zt=function(t,e){var n={};return function(t,e,n,r){Pt(t,(function(t,o){(e(t,o)?n:r)(t,o)}))}(t,e,function(t){return function(e,n){t[n]=e}}(n),d),n},jt=function(t,e){var n=[];return Pt(t,(function(t,r){n.push(e(t,r))})),n},Lt=function(t){return jt(t,p)},Bt=function(t){return Dt(t).length},Ft=function(t,e){return Nt(t,e)?C.from(t[e]):C.none()},Nt=function(t,e){return At.call(t,e)},Ht=function(t,e){return Nt(t,e)&&void 0!==t[e]&&null!==t[e]},Vt=["tfoot","thead","tbody","colgroup"],Ut=function(t,e,n){return{element:t,rowspan:e,colspan:n}},Wt=function(t,e,n){return{element:t,cells:e,section:n}},$t=function(t,e,n){return{element:t,isNew:e,isLocked:n}},Gt=function(t,e,n,r){return{element:t,cells:e,section:n,isNew:r}};"undefined"!=typeof window?window:Function("return this;")();var Kt=function(t){return t.dom.nodeName.toLowerCase()},qt=function(t){return t.dom.nodeType},Xt=function(t){return function(e){return qt(e)===t}},Yt=function(t){return 8===qt(t)||"#comment"===Kt(t)},Jt=Xt(1),Qt=Xt(3),Zt=Xt(9),te=Xt(11),ee=function(t){return function(e){return Jt(e)&&Kt(e)===t}},ne=function(t){return xt.fromDom(t.dom.ownerDocument)},re=function(t){return Zt(t)?t:ne(t)},oe=function(t){return C.from(t.dom.parentNode).map(xt.fromDom)},ie=function(t,e){for(var n=l(e)?e:_,r=t.dom,o=[];null!==r.parentNode&&void 0!==r.parentNode;){var i=r.parentNode,a=xt.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o},ae=function(t){return C.from(t.dom.previousSibling).map(xt.fromDom)},ue=function(t){return C.from(t.dom.nextSibling).map(xt.fromDom)},ce=function(t){return P(t.dom.childNodes,xt.fromDom)},se=function(t,e){var n=t.dom.childNodes;return C.from(n[e]).map(xt.fromDom)},le=l(Element.prototype.attachShadow)&&l(Node.prototype.getRootNode),fe=m(le),de=le?function(t){return xt.fromDom(t.dom.getRootNode())}:re,me=function(t){var e,n=de(t);return te(e=n)&&s(e.dom.host)?C.some(n):C.none()},pe=function(t){return xt.fromDom(t.dom.host)},he=function(t){return s(t.dom.shadowRoot)},ge=function(t){var e=Qt(t)?t.dom.parentNode:t.dom;if(null==e||null===e.ownerDocument)return!1;var n,r,o=e.ownerDocument;return me(xt.fromDom(e)).fold((function(){return o.body.contains(e)}),(n=ge,r=pe,function(t){return n(r(t))}))},ve=function(t){var e=t.dom.body;if(null==e)throw new Error("Body is not available yet");return xt.fromDom(e)},be=function(t,e){var n=[];return R(ce(t),(function(t){e(t)&&(n=n.concat([t])),n=n.concat(be(t,e))})),n},ye=function(t,e,n){return function(t,e,n){return z(ie(t,n),e)}(t,(function(t){return Ot(t,e)}),n)},_e=function(t,e){return function(t,e){return z(ce(t),e)}(t,(function(t){return Ot(t,e)}))},we=function(t,e){return function(t,e){var n=void 0===e?document:e.dom;return St(n)?[]:P(n.querySelectorAll(t),xt.fromDom)}(e,t)};function xe(t,e,n,r,o){return t(n,r)?C.some(n):l(o)&&o(n)?C.none():e(n,r,o)}var Oe=function(t,e,n){for(var r=t.dom,o=l(n)?n:_;r.parentNode;){r=r.parentNode;var i=xt.fromDom(r);if(e(i))return C.some(i);if(o(i))break}return C.none()},Se=function(t,e,n){return Oe(t,(function(t){return Ot(t,e)}),n)},Ce=function(t,e){return function(t,e){return B(t.dom.childNodes,(function(t){return e(xt.fromDom(t))})).map(xt.fromDom)}(t,(function(t){return Ot(t,e)}))},Ee=function(t,e){return Ct(e,t)},ke=function(t,e,n){return xe((function(t,e){return Ot(t,e)}),Se,t,e,n)},Te=function(t,e,n){if(!(r(n)||u(n)||f(n)))throw new Error("Attribute value was not simple");t.setAttribute(e,n+"")},Me=function(t,e,n){Te(t.dom,e,n)},De=function(t,e){var n=t.dom;Pt(e,(function(t,e){Te(n,e,t)}))},Ae=function(t,e){var n=t.dom.getAttribute(e);return null===n?void 0:n},Pe=function(t,e){return C.from(Ae(t,e))},Re=function(t,e){t.dom.removeAttribute(e)},Ie=function(t){return L(t.dom.attributes,(function(t,e){return t[e.name]=e.value,t}),{})},ze=function(t,e,n){return void 0===n&&(n=h),t.exists((function(t){return n(t,e)}))},je=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},Le=function(t,e,n){return t.isSome()&&e.isSome()?C.some(n(t.getOrDie(),e.getOrDie())):C.none()},Be=function(t,e){return t?C.some(e):C.none()},Fe=function(t){return void 0!==t.style&&l(t.style.getPropertyValue)},Ne=function(t,e,n){if(!r(n))throw new Error("CSS value must be a string: "+n);Fe(t)&&t.style.setProperty(e,n)},He=function(t,e,n){var r=t.dom;Ne(r,e,n)},Ve=function(t,e){var n=t.dom;Pt(e,(function(t,e){Ne(n,e,t)}))},Ue=function(t,e){var n=t.dom,r=window.getComputedStyle(n).getPropertyValue(e);return""!==r||ge(t)?r:We(n,e)},We=function(t,e){return Fe(t)?t.style.getPropertyValue(e):""},$e=function(t,e){var n=t.dom,r=We(n,e);return C.from(r).filter((function(t){return t.length>0}))},Ge=function(t,e){!function(t,e){Fe(t)&&t.style.removeProperty(e)}(t.dom,e),ze(Pe(t,"style").map(at),"")&&Re(t,"style")},Ke=function(t,e,n){return void 0===n&&(n=0),Pe(t,e).map((function(t){return parseInt(t,10)})).getOr(n)},qe=function(t,e){return Ke(t,e,1)},Xe=function(t){return ee("col")(t)?Ke(t,"span",1)>1:qe(t,"colspan")>1},Ye=function(t){return qe(t,"rowspan")>1},Je=function(t,e){return parseInt(Ue(t,e),10)},Qe=m(10),Ze=m(10),tn=function(t,e){return en(t,e,w)},en=function(t,e,n){return H(ce(t),(function(t){return Ot(t,e)?n(t)?[t]:[]:en(t,e,n)}))},nn=function(t,e){return function(t,e,n){if(void 0===n&&(n=_),n(e))return C.none();if(M(t,Kt(e)))return C.some(e);return Se(e,t.join(","),(function(t){return Ot(t,"table")||n(t)}))}(["td","th"],t,e)},rn=function(t){return tn(t,"th,td")},on=function(t){return Ot(t,"colgroup")?_e(t,"col"):H(cn(t),(function(t){return _e(t,"col")}))},an=function(t,e){return ke(t,"table",e)},un=function(t){return tn(t,"tr")},cn=function(t){return an(t).fold(m([]),(function(t){return _e(t,"colgroup")}))},sn=function(t,e){return P(t,(function(t){if("colgroup"===Kt(t)){var n=P(on(t),(function(t){var e=Ke(t,"span",1);return Ut(t,1,e)}));return Wt(t,n,"colgroup")}n=P(rn(t),(function(t){var e=Ke(t,"rowspan",1),n=Ke(t,"colspan",1);return Ut(t,e,n)}));return Wt(t,n,e(t))}))},ln=function(t){return oe(t).map((function(t){var e=Kt(t);return function(t){return M(Vt,t)}(e)?e:"tbody"})).getOr("tbody")},fn=function(t){var e=un(t),n=Y(Y([],cn(t),!0),e,!0);return sn(n,ln)},dn=function(t,e,n){var r=t.cells,o=r.slice(0,e),i=r.slice(e),a=o.concat(n).concat(i);return hn(t,a)},mn=function(t,e,n){return dn(t,e,[n])},pn=function(t,e,n){t.cells[e]=n},hn=function(t,e){return Gt(t.element,e,t.section,t.isNew)},gn=function(t,e){return t.cells[e]},vn=function(t,e){return gn(t,e).element},bn=function(t){return t.cells.length},yn=function(t){var e=I(t,(function(t){return"colgroup"===t.section}));return{rows:e.fail,cols:e.pass}},_n=function(t,e,n){var r=P(t.cells,n);return Gt(e(t.element),r,t.section,!0)},wn="data-snooker-locked-cols",xn=function(t){return Pe(t,wn).bind((function(t){return C.from(t.match(/\d+/g))})).map((function(t){return U(t,w)}))},On=function(t){var e=L(yn(t).rows,(function(t,e){return R(e.cells,(function(e,n){e.isLocked&&(t[n]=!0)})),t}),{});return function(t,e){var n=E.call(t,0);return n.sort(e),n}(jt(e,(function(t,e){return parseInt(e,10)})))},Sn=function(t,e){return t+","+e},Cn=function(t,e){var n=H(t.all,(function(t){return t.cells}));return z(n,e)},En=function(t){var e={},n=[],r=G(t).map((function(t){return t.element})).bind(an).bind(xn).getOr({}),o=0,i=0,a=0,u=I(t,(function(t){return"colgroup"===t.section})),c=u.pass,s=u.fail;R(s,(function(t){var u=[];R(t.cells,(function(t){for(var n=0;void 0!==e[Sn(a,n)];)n++;for(var o=Ht(r,n.toString()),c=function(t,e,n,r,o,i){return{element:t,rowspan:e,colspan:n,row:r,column:o,isLocked:i}}(t.element,t.rowspan,t.colspan,a,n,o),s=0;s<t.colspan;s++)for(var l=0;l<t.rowspan;l++){var f=n+s,d=Sn(a+l,f);e[d]=c,i=Math.max(i,f+1)}u.push(c)})),o++,n.push(Wt(t.element,u,t.section)),a++}));var l=K(c).map((function(t){var e=function(t){var e={},n=0;return R(t.cells,(function(t){var r=t.colspan;A(r,(function(o){var i=n+o;e[i]=function(t,e,n){return{element:t,colspan:e,column:n}}(t.element,r,i)})),n+=r})),e}(t);return{colgroups:[function(t,e){return{element:t,columns:e}}(t.element,Lt(e))],columns:e}})).getOrThunk((function(){return{colgroups:[],columns:{}}})),f=l.columns,d=l.colgroups;return{grid:function(t,e){return{rows:t,columns:e}}(o,i),access:e,all:n,columns:f,colgroups:d}},kn={fromTable:function(t){var e=fn(t);return En(e)},generate:En,getAt:function(t,e,n){return C.from(t.access[Sn(e,n)])},findItem:function(t,e,n){var r=Cn(t,(function(t){return n(e,t.element)}));return r.length>0?C.some(r[0]):C.none()},filterItems:Cn,justCells:function(t){return H(t.all,(function(t){return t.cells}))},justColumns:function(t){return Lt(t.columns)},hasColumns:function(t){return Dt(t.columns).length>0},getColumnAt:function(t,e){return C.from(t.columns[e])}},Tn=function(t,e){var n=e.column,r=e.column+e.colspan-1,o=e.row,i=e.row+e.rowspan-1;return n<=t.finishCol&&r>=t.startCol&&o<=t.finishRow&&i>=t.startRow},Mn=function(t,e){return e.column>=t.startCol&&e.column+e.colspan-1<=t.finishCol&&e.row>=t.startRow&&e.row+e.rowspan-1<=t.finishRow},Dn=function(t,e,n){var r=kn.findItem(t,e,Et),o=kn.findItem(t,n,Et);return r.bind((function(t){return o.map((function(e){return n=t,r=e,o=Math.min(n.row,r.row),i=Math.min(n.column,r.column),a=Math.max(n.row+n.rowspan-1,r.row+r.rowspan-1),u=Math.max(n.column+n.colspan-1,r.column+r.colspan-1),{startRow:o,startCol:i,finishRow:a,finishCol:u};var n,r,o,i,a,u}))}))},An=function(t,e,n){return Dn(t,e,n).bind((function(e){return function(t,e){for(var n=!0,r=g(Mn,e),o=e.startRow;o<=e.finishRow;o++)for(var i=e.startCol;i<=e.finishCol;i++)n=n&&kn.getAt(t,o,i).exists(r);return n?C.some(e):C.none()}(t,e)}))},Pn=function(t,e,n){return Dn(t,e,n).map((function(e){var n=kn.filterItems(t,g(Tn,e));return P(n,(function(t){return t.element}))}))},Rn=function(t,e){return kn.findItem(t,e,(function(t,e){return Tt(e,t)})).map((function(t){return t.element}))},In=function(t,e,n){return an(t).bind((function(r){return function(t,e,n,r){return kn.findItem(t,e,Et).bind((function(e){var o=n>0?e.row+e.rowspan-1:e.row,i=r>0?e.column+e.colspan-1:e.column;return kn.getAt(t,o+n,i+r).map((function(t){return t.element}))}))}(Ln(r),t,e,n)}))},zn=function(t,e,n){var r=Ln(t);return Pn(r,e,n)},jn=function(t,e,n,r,o){var i=Ln(t),a=Et(t,n)?C.some(e):Rn(i,e),u=Et(t,o)?C.some(r):Rn(i,r);return a.bind((function(t){return u.bind((function(e){return Pn(i,t,e)}))}))},Ln=kn.fromTable,Bn=function(t,e){oe(t).each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},Fn=function(t,e){ue(t).fold((function(){oe(t).each((function(t){Hn(t,e)}))}),(function(t){Bn(t,e)}))},Nn=function(t,e){(function(t){return se(t,0)})(t).fold((function(){Hn(t,e)}),(function(n){t.dom.insertBefore(e.dom,n.dom)}))},Hn=function(t,e){t.dom.appendChild(e.dom)},Vn=function(t,e){Bn(t,e),Hn(e,t)},Un=function(t,e){R(e,(function(n,r){var o=0===r?t:e[r-1];Fn(o,n)}))},Wn=function(t,e){R(e,(function(e){Hn(t,e)}))},$n=function(t){t.dom.textContent="",R(ce(t),(function(t){Gn(t)}))},Gn=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},Kn=function(t){var e,n=ce(t);n.length>0&&(e=t,R(n,(function(t){Bn(e,t)}))),Gn(t)},qn=function(t,e){var n=function(e){return t(e)?C.from(e.dom.nodeValue):C.none()};return{get:function(r){if(!t(r))throw new Error("Can only get "+e+" value of a "+e+" node");return n(r).getOr("")},getOption:n,set:function(n,r){if(!t(n))throw new Error("Can only set raw "+e+" value of a "+e+" node");n.dom.nodeValue=r}}}(Qt,"text"),Xn=function(t){return qn.get(t)},Yn=function(t){return qn.getOption(t)},Jn=function(t,e){return qn.set(t,e)},Qn=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function Zn(){return{up:m({selector:Se,closest:ke,predicate:Oe,all:ie}),down:m({selector:we,predicate:be}),styles:m({get:Ue,getRaw:$e,set:He,remove:Ge}),attrs:m({get:Ae,set:Me,remove:Re,copyTo:function(t,e){var n=Ie(t);De(e,n)}}),insert:m({before:Bn,after:Fn,afterAll:Un,append:Hn,appendAll:Wn,prepend:Nn,wrap:Vn}),remove:m({unwrap:Kn,remove:Gn}),create:m({nu:xt.fromTag,clone:function(t){return xt.fromDom(t.dom.cloneNode(!1))},text:xt.fromText}),query:m({comparePosition:function(t,e){return t.dom.compareDocumentPosition(e.dom)},prevSibling:ae,nextSibling:ue}),property:m({children:ce,name:Kt,parent:oe,document:function(t){return re(t).dom},isText:Qt,isComment:Yt,isElement:Jt,isSpecial:function(t){var e=Kt(t);return M(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],e)},getLanguage:function(t){return Jt(t)?Pe(t,"lang"):C.none()},getText:Xn,setText:Jn,isBoundary:function(t){return!!Jt(t)&&("body"===Kt(t)||M(Qn,Kt(t)))},isEmptyTag:function(t){return!!Jt(t)&&M(["br","img","hr","input"],Kt(t))},isNonEditable:function(t){return Jt(t)&&"false"===Ae(t,"contenteditable")}}),eq:Et,is:Mt}}var tr,er,nr=function(t,e,n,r){var o=e(t,n);return j(r,(function(n,r){var o=e(t,r);return rr(t,n,o)}),o)},rr=function(t,e,n){return e.bind((function(e){return n.filter(g(t.eq,e))}))},or=function(t,e,n){return n.length>0?function(t,e,n,r){return r(t,e,n[0],n.slice(1))}(t,e,n,nr):C.none()},ir=function(t,e,n,r){void 0===r&&(r=_);var o=[e].concat(t.up().all(e)),i=[n].concat(t.up().all(n)),a=function(t){return F(t,r).fold((function(){return t}),(function(e){return t.slice(0,e+1)}))},u=a(o),c=a(i),s=B(u,(function(e){return D(c,function(t,e){return g(t.eq,e)}(t,e))}));return{firstpath:u,secondpath:c,shared:s}},ar=Zn(),ur=function(t,e){return or(ar,(function(e,n){return t(n)}),e)},cr=function(t){return Se(t,"table")},sr=function(t,e,n){var r=function(t){return function(e){return void 0!==n&&n(e)||Et(e,t)}};return Et(t,e)?C.some({boxes:C.some([t]),start:t,finish:e}):cr(t).bind((function(o){return cr(e).bind((function(i){if(Et(o,i))return C.some({boxes:zn(o,t,e),start:t,finish:e});if(Tt(o,i)){var a=(u=ye(e,"td,th",r(o))).length>0?u[u.length-1]:e;return C.some({boxes:jn(o,t,o,e,i),start:t,finish:a})}if(Tt(i,o)){var u,c=(u=ye(t,"td,th",r(i))).length>0?u[u.length-1]:t;return C.some({boxes:jn(i,t,o,e,i),start:t,finish:c})}return function(t,e,n){return ir(ar,t,e,n)}(t,e).shared.bind((function(a){return ke(a,"table",n).bind((function(n){var a=ye(e,"td,th",r(n)),u=a.length>0?a[a.length-1]:e,c=ye(t,"td,th",r(n)),s=c.length>0?c[c.length-1]:t;return C.some({boxes:jn(n,t,o,e,i),start:s,finish:u})}))}))}))}))},lr=function(t,e){var n=we(t,e);return n.length>0?C.some(n):C.none()},fr=function(t,e,n){return Ee(t,e).bind((function(e){return Ee(t,n).bind((function(t){return ur(cr,[e,t]).map((function(n){return{first:e,last:t,table:n}}))}))}))},dr=function(t,e,n,r,o){return function(t,e){return B(t,(function(t){return Ot(t,e)}))}(t,o).bind((function(t){return In(t,e,n).bind((function(t){return function(t,e){return Se(t,"table").bind((function(n){return Ee(n,e).bind((function(e){return sr(e,t).bind((function(t){return t.boxes.map((function(e){return{boxes:e,start:t.start,finish:t.finish}}))}))}))}))}(t,r)}))}))},mr=function(t,e){return lr(t,e)},pr=function(t,e,n){return fr(t,e,n).bind((function(e){var n=function(e){return Et(t,e)},r=Se(e.first,"thead,tfoot,tbody,table",n),o=Se(e.last,"thead,tfoot,tbody,table",n);return r.bind((function(t){return o.bind((function(n){return Et(t,n)?function(t,e,n){var r=Ln(t);return An(r,e,n)}(e.table,e.first,e.last):C.none()}))}))}))},hr=function(t){if(!i(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};return R(t,(function(r,o){var a=Dt(r);if(1!==a.length)throw new Error("one and only one name per case");var u=a[0],c=r[u];if(void 0!==n[u])throw new Error("duplicate key detected:"+u);if("cata"===u)throw new Error("cannot have a case named cata (sorry)");if(!i(c))throw new Error("case arguments must be an array");e.push(u),n[u]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==c.length)throw new Error("Wrong number of arguments to case "+u+". Expected "+c.length+" ("+c+"), got "+i);var a=function(t){var r=Dt(t);if(e.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+e.join(",")+"\nActual: "+r.join(","));if(!V(e,(function(t){return M(r,t)})))throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+e.join(", "));return t[u].apply(null,n)};return{fold:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(e.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+e.length);var i=e[o];return i.apply(null,n)},match:a,log:function(t){}}}})),n},gr=hr([{none:[]},{multiple:["elements"]},{single:["element"]}]),vr=function(t,e,n,r){return t.fold(e,n,r)},br=gr.none,yr=gr.multiple,_r=gr.single,wr=tinymce.util.Tools.resolve("tinymce.PluginManager"),xr=function(t,e){return xt.fromDom(t.dom.cloneNode(e))},Or=function(t){return xr(t,!1)},Sr=function(t){return xr(t,!0)},Cr=function(t,e){var n=xt.fromTag(e),r=Ie(t);return De(n,r),n},Er=function(t,e){var n=function(n){var r=e(n);if(r<=0||null===r){var o=Ue(n,t);return parseFloat(o)||0}return r},r=function(t,e){return L(e,(function(e,n){var r=Ue(t,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?e:e+o}),0)};return{set:function(e,n){if(!f(n)&&!n.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+n);var r=e.dom;Fe(r)&&(r.style[t]=n+"px")},get:n,getOuter:n,aggregate:r,max:function(t,e,n){var o=r(t,n);return e>o?e-o:0}}},kr=function(){var t=_t().browser;return t.isIE()||t.isEdge()},Tr=function(t,e){return function(t){var e=parseFloat(t);return isNaN(e)?C.none():C.some(e)}(t).getOr(e)},Mr=function(t,e,n){return Tr(Ue(t,e),n)},Dr=function(t){return Ue(t,"box-sizing")},Ar=function(t,e,n,r){return e-Mr(t,"padding-"+n,0)-Mr(t,"padding-"+r,0)-Mr(t,"border-"+n+"-width",0)-Mr(t,"border-"+r+"-width",0)},Pr=function(t,e){var n=t.dom,r=n.getBoundingClientRect().width||n.offsetWidth;return"border-box"===e?r:Ar(t,r,"left","right")},Rr=Er("width",(function(t){return t.dom.offsetWidth})),Ir=function(t){return Rr.get(t)},zr=function(t){return Rr.getOuter(t)},jr=function(t){return Pr(t,"content-box")},Lr=function(t){return kr()?Pr(t,Dr(t)):Mr(t,"width",t.dom.offsetWidth)},Br=function(t,e){void 0===e&&(e=w);var n=t.grid,r=A(n.columns,p),o=A(n.rows,p);return P(r,(function(n){return Fr((function(){return H(o,(function(e){return kn.getAt(t,e,n).filter((function(t){return t.column===n})).toArray()}))}),(function(t){return 1===t.colspan&&e(t.element)}),(function(){return kn.getAt(t,0,n)}))}))},Fr=function(t,e,n){var r=t();return B(r,e).orThunk((function(){return C.from(r[0]).orThunk(n)})).map((function(t){return t.element}))},Nr=function(t){var e=t.grid,n=A(e.rows,p),r=A(e.columns,p);return P(n,(function(e){return Fr((function(){return H(r,(function(n){return kn.getAt(t,e,n).filter((function(t){return t.row===e})).fold(m([]),(function(t){return[t]}))}))}),(function(t){return 1===t.rowspan}),(function(){return kn.getAt(t,e,0)}))}))},Hr=function(t,e){if(e<0||e>=t.length-1)return C.none();var n=t[e].fold((function(){var n=function(t){var e=E.call(t,0);return e.reverse(),e}(t.slice(0,e));return q(n,(function(t,e){return t.map((function(t){return{value:t,delta:e+1}}))}))}),(function(t){return C.some({value:t,delta:0})})),r=t[e+1].fold((function(){var n=t.slice(e+1);return q(n,(function(t,e){return t.map((function(t){return{value:t,delta:e+1}}))}))}),(function(t){return C.some({value:t,delta:1})}));return n.bind((function(t){return r.map((function(e){var n=e.delta+t.delta;return Math.abs(e.value-t.value)/n}))}))},Vr=function(t,e){return function(n){return"rtl"===Ur(n)?e:t}},Ur=function(t){return"rtl"===Ue(t,"direction")?"rtl":"ltr"},Wr=Er("height",(function(t){var e=t.dom;return ge(t)?e.getBoundingClientRect().height:e.offsetHeight})),$r=function(t){return Wr.get(t)},Gr=function(t){return Wr.getOuter(t)},Kr=function(t){return kr()?function(t,e){var n=t.dom,r=n.getBoundingClientRect().height||n.offsetHeight;return"border-box"===e?r:Ar(t,r,"top","bottom")}(t,Dr(t)):Mr(t,"height",t.dom.offsetHeight)},qr=function(t,e){return{left:t,top:e,translate:function(n,r){return qr(t+n,e+r)}}},Xr=qr,Yr=function(t,e){return void 0!==t?t:void 0!==e?e:0},Jr=function(t){var e=t.dom.ownerDocument,n=e.body,r=e.defaultView,o=e.documentElement;if(n===t.dom)return Xr(n.offsetLeft,n.offsetTop);var i=Yr(null==r?void 0:r.pageYOffset,o.scrollTop),a=Yr(null==r?void 0:r.pageXOffset,o.scrollLeft),u=Yr(o.clientTop,n.clientTop),c=Yr(o.clientLeft,n.clientLeft);return Qr(t).translate(a-c,i-u)},Qr=function(t){var e=t.dom,n=e.ownerDocument.body;return n===e?Xr(n.offsetLeft,n.offsetTop):ge(t)?function(t){var e=t.getBoundingClientRect();return Xr(e.left,e.top)}(e):Xr(0,0)},Zr=function(t,e){return{row:t,y:e}},to=function(t,e){return{col:t,x:e}},eo=function(t){return Jr(t).left+zr(t)},no=function(t){return Jr(t).left},ro=function(t,e){return to(t,no(e))},oo=function(t,e){return to(t,eo(e))},io=function(t){return Jr(t).top},ao=function(t,e){return Zr(t,io(e))},uo=function(t,e){return Zr(t,io(e)+Gr(e))},co=function(t,e,n){if(0===n.length)return[];var r=P(n.slice(1),(function(e,n){return e.map((function(e){return t(n,e)}))})),o=n[n.length-1].map((function(t){return e(n.length-1,t)}));return r.concat([o])},so={delta:p,positions:function(t){return co(ao,uo,t)},edge:io},lo={delta:p,edge:no,positions:function(t){return co(ro,oo,t)}},fo={delta:function(t){return-t},edge:eo,positions:function(t){return co(oo,ro,t)}},mo=Vr(lo,fo),po={delta:function(t,e){return mo(e).delta(t,e)},positions:function(t,e){return mo(e).positions(t,e)},edge:function(t){return mo(t).edge(t)}},ho={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},go=(tr=function(t){return"(?:"+t+")?"},er=["Infinity","[0-9]+\\."+tr("[0-9]+")+tr("[eE][+-]?[0-9]+"),"\\.[0-9]+"+tr("[eE][+-]?[0-9]+"),"[0-9]+"+tr("[eE][+-]?[0-9]+")].join("|"),new RegExp("^([+-]?(?:"+er+"))(.*)$")),vo=function(t,e){return C.from(go.exec(t)).bind((function(t){var n=Number(t[1]),r=t[2];return function(t,e){return D(e,(function(e){return D(ho[e],(function(e){return t===e}))}))}(r,e)?C.some({value:n,unit:r}):C.none()}))},bo=/(\d+(\.\d+)?)%/,yo=/(\d+(\.\d+)?)px|em/,_o=ee("col"),wo=function(t,e,n){var r,o=(r=t,C.from(r.dom.parentElement).map(xt.fromDom)).getOrThunk((function(){return ve(ne(t))}));return e(t)/n(o)*100},xo=function(t,e){He(t,"width",e+"px")},Oo=function(t,e){He(t,"width",e+"%")},So=function(t,e){He(t,"height",e+"px")},Co=function(t,e,n,r){var o=parseFloat(t);return it(t,"%")&&"table"!==Kt(e)?function(t,e,n,r){var o=an(t).map((function(t){var r=n(t);return Math.floor(e/100*r)})).getOr(e);return r(t,o),o}(e,o,n,r):o},Eo=function(t){var e=function(t){return Kr(t)+"px"}(t);return e?Co(e,t,$r,So):$r(t)},ko=function(t,e){return $e(t,e).orThunk((function(){return Pe(t,e).map((function(t){return t+"px"}))}))},To=function(t){return ko(t,"width")},Mo=function(t){return wo(t,Ir,jr)},Do=function(t){return _o(t)?Ir(t):Lr(t)},Ao=function(t){return function(t,e,n){return n(t)/qe(t,e)}(t,"rowspan",Eo)},Po=function(t,e,n){He(t,"width",e+n)},Ro=function(t){return wo(t,Ir,jr)+"%"},Io=m(bo),zo=ee("col"),jo=function(t){return To(t).getOrThunk((function(){return Do(t)+"px"}))},Lo=function(t){return(e=t,ko(e,"height")).getOrThunk((function(){return Ao(t)+"px"}));var e},Bo=function(t,e,n,r,o,i){return t.filter(r).fold((function(){return i(Hr(n,e))}),(function(t){return o(t)}))},Fo=function(t,e,n,r){var o=Br(t),i=kn.hasColumns(t)?function(t){return P(kn.justColumns(t),(function(t){return C.from(t.element)}))}(t):o,a=[C.some(po.edge(e))].concat(P(po.positions(o,e),(function(t){return t.map((function(t){return t.x}))}))),u=y(Xe);return P(i,(function(t,e){return Bo(t,e,a,u,(function(t){if(function(t){var e=_t().browser,n=e.isChrome()||e.isFirefox();return!zo(t)||n}(t))return n(t);var i,c,s=(i=o[e],c=p,null!=i?c(i):C.none());return Bo(s,e,a,u,(function(t){return r(C.some(Ir(t)))}),r)}),r)}))},No=function(t){return t.map((function(t){return t+"px"})).getOr("")},Ho=function(t,e,n){return Fo(t,e,Do,(function(t){return t.getOrThunk(n.minCellWidth)}))},Vo=function(t,e,n,r,o){var i=Nr(t),a=[C.some(n.edge(e))].concat(P(n.positions(i,e),(function(t){return t.map((function(t){return t.y}))})));return P(i,(function(t,e){return Bo(t,e,a,y(Ye),r,o)}))},Uo=function(t,e){return function(){return ge(t)?e(t):parseFloat($e(t,"width").getOr("0"))}},Wo=function(t){var e=Uo(t,Ir),n=m(0);return{width:e,pixelWidth:e,getWidths:function(e,n){return Ho(e,t,n)},getCellDelta:n,singleColumnWidth:m([0]),minCellWidth:n,setElementWidth:d,adjustTableWidth:d,isRelative:!0,label:"none"}},$o=function(t){var e=Uo(t,(function(t){return parseFloat(Ro(t))})),n=Uo(t,Ir);return{width:e,pixelWidth:n,getWidths:function(e,n){return function(t,e,n){return Fo(t,e,Mo,(function(t){return t.fold((function(){return n.minCellWidth()}),(function(t){return t/n.pixelWidth()*100}))}))}(e,t,n)},getCellDelta:function(t){return t/n()*100},singleColumnWidth:function(t,e){return[100-t]},minCellWidth:function(){return Qe()/n()*100},setElementWidth:Oo,adjustTableWidth:function(n){var r=e();Oo(t,r+n/100*r)},isRelative:!0,label:"percent"}},Go=function(t){var e=Uo(t,Ir);return{width:e,pixelWidth:e,getWidths:function(e,n){return Ho(e,t,n)},getCellDelta:p,singleColumnWidth:function(t,e){return[Math.max(Qe(),t+e)-t]},minCellWidth:Qe,setElementWidth:xo,adjustTableWidth:function(n){var r=e()+n;xo(t,r)},isRelative:!1,label:"pixel"}},Ko=function(t){return To(t).fold((function(){return Wo(t)}),(function(e){return function(t,e){return null!==Io().exec(e)?$o(t):Go(t)}(t,e)}))},qo=Go,Xo=$o,Yo=function(t,e,n){var r=t[n].element,o=xt.fromTag("td");Hn(o,xt.fromTag("br")),(e?Hn:Nn)(r,o)},Jo=function(t,e){var n=function(t){return Ot(t.element,e)},r=Sr(t),o=fn(r),i=Ko(t),a=kn.generate(o),u=function(t,e){var n=t.grid.columns,r=t.grid.rows,o=n,i=0,a=0,u=[],c=[];return Pt(t.access,(function(t){if(u.push(t),e(t)){c.push(t);var n=t.row,s=n+t.rowspan-1,l=t.column,f=l+t.colspan-1;n<r?r=n:s>i&&(i=s),l<o?o=l:f>a&&(a=f)}})),function(t,e,n,r,o,i){return{minRow:t,minCol:e,maxRow:n,maxCol:r,allCells:o,selectedCells:i}}(r,o,i,a,u,c)}(a,n),c="th:not("+e+"),td:not("+e+")",s=en(r,"th,td",(function(t){return Ot(t,c)}));return R(s,Gn),function(t,e,n,r){for(var o=e.grid.columns,i=e.grid.rows,a=0;a<i;a++)for(var u=!1,c=0;c<o;c++){if(!(a<n.minRow||a>n.maxRow||c<n.minCol||c>n.maxCol))kn.getAt(e,a,c).filter(r).isNone()?Yo(t,u,a):u=!0}}(o,a,u,n),function(t,e,n,r){Pt(n.columns,(function(t){(t.column<e.minCol||t.column>e.maxCol)&&Gn(t.element)}));var o=z(tn(t,"tr"),(function(t){return 0===t.dom.childElementCount}));R(o,Gn),e.minCol!==e.maxCol&&e.minRow!==e.maxRow||R(tn(t,"th,td"),(function(t){Re(t,"rowspan"),Re(t,"colspan")})),Re(t,wn),Re(t,"data-snooker-col-series"),Ko(t).adjustTableWidth(r)}(r,u,a,function(t,e,n,r){if(0===r.minCol&&e.grid.columns===r.maxCol+1)return 0;var o=Ho(e,t,n),i=L(o,(function(t,e){return t+e}),0),a=L(o.slice(r.minCol,r.maxCol+1),(function(t,e){return t+e}),0)/i*n.pixelWidth()-n.pixelWidth();return n.getCellDelta(a)}(t,kn.fromTable(t),i,u)),r},Qo=function(t){return"img"===Kt(t)?1:Yn(t).fold((function(){return ce(t).length}),(function(t){return t.length}))},Zo=["img","br"],ti=function(t){return Yn(t).filter((function(t){return 0!==t.trim().length||t.indexOf(" ")>-1})).isSome()||M(Zo,Kt(t))},ei=function(t){return e=ti,(n=function(t){for(var r=0;r<t.childNodes.length;r++){var o=xt.fromDom(t.childNodes[r]);if(e(o))return C.some(o);var i=n(t.childNodes[r]);if(i.isSome())return i}return C.none()})(t.dom);var e,n},ni=function(t){return ri(t,ti)},ri=function(t,e){var n=function(t){for(var r=ce(t),o=r.length-1;o>=0;o--){var i=r[o];if(e(i))return C.some(i);var a=n(i);if(a.isSome())return a}return C.none()};return n(t)},oi={scope:["row","col"]},ii=function(t){return function(){var e=xt.fromTag("td",t.dom);return Hn(e,xt.fromTag("br",t.dom)),e}},ai=function(t){return function(){return xt.fromTag("col",t.dom)}},ui=function(t){return function(){return xt.fromTag("colgroup",t.dom)}},ci=function(t){return function(){return xt.fromTag("tr",t.dom)}},si=function(t,e,n){var r=function(t,e){var n=Cr(t,e),r=ce(Sr(t));return Wn(n,r),n}(t,e);return Pt(n,(function(t,e){null===t?Re(r,e):Me(r,e,t)})),r},li=function(t){return t},fi=function(t,e,n){var r=function(t,e){var n,r,o,i;n=t.element,r=e,o=n.dom,i=r.dom,Fe(o)&&Fe(i)&&(i.style.cssText=o.style.cssText),Ge(e,"height"),1!==t.colspan&&Ge(e,"width")};return{col:function(n){var o=xt.fromTag(Kt(n.element),e.dom);return r(n,o),t(n.element,o),o},colgroup:ui(e),row:ci(e),cell:function(o){var i=xt.fromTag(Kt(o.element),e.dom),a=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),u=a.length>0?function(t,e,n){return ei(t).map((function(r){var o=n.join(","),i=ye(r,o,(function(e){return Et(e,t)}));return j(i,(function(t,e){var n=Or(e);return Re(n,"contenteditable"),Hn(t,n),n}),e)})).getOr(e)}(o.element,i,a):i;return Hn(u,xt.fromTag("br")),r(o,i),function(t,e){Pt(oi,(function(n,r){return Pe(t,r).filter((function(t){return M(n,t)})).each((function(t){return Me(e,r,t)}))}))}(o.element,i),t(o.element,i),i},replace:si,colGap:ai(e),gap:ii(e)}},di=function(t){return{col:ai(t),colgroup:ui(t),row:ci(t),cell:ii(t),replace:li,colGap:ai(t),gap:ii(t)}},mi=function(t){return P(t,xt.fromDom)},pi=function(t){return xt.fromDom(t.getBody())},hi=function(t){return t.getBoundingClientRect().width},gi=function(t){return t.getBoundingClientRect().height},vi=function(t){return function(e){return Et(e,pi(t))}},bi=function(t){return/^\d+(\.\d+)?$/.test(t)?t+"px":t},yi=function(t){Re(t,"data-mce-style");var e=function(t){return Re(t,"data-mce-style")};R(rn(t),e),R(on(t),e),R(un(t),e)},_i=function(t){return xt.fromDom(t.selection.getStart())},wi=function(t){return vr(t.get(),m([]),p,W)},xi=function(t){var e=function(t,e){return Pe(t,e).exists((function(t){return parseInt(t,10)>1}))},n=wi(t);return n.length>0&&V(n,(function(t){return e(t,"rowspan")||e(t,"colspan")}))?C.some(n):C.none()},Oi=function(t,e,n){return vr(e.get(),C.none,(function(e){return e.length<=1?C.none():pr(t,n.firstSelectedSelector,n.lastSelectedSelector).map((function(t){return{bounds:t,cells:e}}))}),C.none)},Si={selected:"data-mce-selected",selectedSelector:"td[data-mce-selected],th[data-mce-selected]",firstSelected:"data-mce-first-selected",firstSelectedSelector:"td[data-mce-first-selected],th[data-mce-first-selected]",lastSelected:"data-mce-last-selected",lastSelectedSelector:"td[data-mce-last-selected],th[data-mce-last-selected]"},Ci=function(t,e,n){return{element:n,mergable:Oi(e,t,Si),unmergable:xi(t),selection:wi(t)}},Ei=function(t){return function(e,n){var r,o=Kt(e),i="col"===o||"colgroup"===o?an(r=e).bind((function(t){return mr(t,Si.firstSelectedSelector)})).fold(m(r),(function(t){return t[0]})):e;return ke(i,t,n)}},ki=Ei("th,td,caption"),Ti=Ei("th,td"),Mi=function(t){return wi(t)},Di=function(t,e,n){t.on("BeforeGetContent",(function(n){!0===n.selection&&vr(e.get(),d,(function(e){n.preventDefault(),function(t){return an(t[0]).map((function(t){var e=Jo(t,"[data-mce-selected]");return yi(e),[e]}))}(e).each((function(e){n.content="text"===n.format?function(t){return P(t,(function(t){return t.dom.innerText})).join("")}(e):function(t,e){return P(e,(function(e){return t.selection.serializer.serialize(e.dom,{})})).join("")}(t,e)}))}),d)})),t.on("BeforeSetContent",(function(r){if(!0===r.selection&&!0===r.paste){var o=Mi(e);G(o).each((function(e){an(e).each((function(o){var i,a,u,c=z((i=r.content,(u=(a||document).createElement("div")).innerHTML=i,ce(xt.fromDom(u))),(function(t){return"meta"!==Kt(t)})),s=ee("table");if(1===c.length&&s(c[0])){r.preventDefault();var l=xt.fromDom(t.getDoc()),f=di(l),d=function(t,e,n){return{element:t,clipboard:e,generators:n}}(e,c[0],f);n.pasteCells(o,d).each((function(){t.focus()}))}}))}))}}))},Ai=hr([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Pi=X({},Ai),Ri=function(t,e,n,r,o){var i=t.slice(0),a=function(t,e){return 0===t.length?Pi.none():1===t.length?Pi.only(0):0===e?Pi.left(0,1):e===t.length-1?Pi.right(e-1,e):e>0&&e<t.length-1?Pi.middle(e-1,e,e+1):Pi.none()}(t,e),u=m(P(i,m(0)));return a.fold(u,(function(t){return r.singleColumnWidth(i[t],n)}),(function(t,e){return o.calcLeftEdgeDeltas(i,t,e,n,r.minCellWidth(),r.isRelative)}),(function(t,e,a){return o.calcMiddleDeltas(i,t,e,a,n,r.minCellWidth(),r.isRelative)}),(function(t,e){return o.calcRightEdgeDeltas(i,t,e,n,r.minCellWidth(),r.isRelative)}))},Ii=function(t,e,n){for(var r=0,o=t;o<e;o++)r+=void 0!==n[o]?n[o]:0;return r},zi=function(t,e){var n=kn.justCells(t);return P(n,(function(t){var n=Ii(t.row,t.row+t.rowspan,e);return{element:t.element,height:n,rowspan:t.rowspan}}))},ji=function(t,e){return kn.hasColumns(t)?function(t,e){var n=kn.justColumns(t);return P(n,(function(t,n){return{element:t.element,width:e[n],colspan:t.colspan}}))}(t,e):function(t,e){var n=kn.justCells(t);return P(n,(function(t){var n=Ii(t.column,t.column+t.colspan,e);return{element:t.element,width:n,colspan:t.colspan}}))}(t,e)},Li=function(t,e,n){var r=ji(t,e);R(r,(function(t){n.setElementWidth(t.element,t.width)}))},Bi=function(t,e,n,r,o){var i=kn.fromTable(t),a=o.getCellDelta(e),u=o.getWidths(i,o),c=n===i.grid.columns-1,s=r.clampTableDelta(u,n,a,o.minCellWidth(),c),l=Ri(u,n,s,o,r),f=P(l,(function(t,e){return t+u[e]}));Li(i,f,o),r.resizeTable(o.adjustTableWidth,s,c)},Fi=function(t,e,n,r){var o=kn.fromTable(t),i=function(t,e,n){return Vo(t,e,n,Ao,(function(t){return t.getOrThunk(Ze)}))}(o,t,r),a=P(i,(function(t,r){return n===r?Math.max(e+t,Ze()):t})),u=zi(o,a),c=function(t,e){return P(t.all,(function(t,n){return{element:t.element,height:e[n]}}))}(o,a);R(c,(function(t){So(t.element,t.height)})),R(u,(function(t){So(t.element,t.height)}));var s=j(a,(function(t,e){return t+e}),0);So(t,s)},Ni=function(t){return P(t,m(0))},Hi=function(t,e,n,r,o){return o(t.slice(0,e)).concat(r).concat(o(t.slice(n)))},Vi=function(t){return function(e,n,r,o){if(t(r)){var i=Math.max(o,e[n]-Math.abs(r)),a=Math.abs(i-e[n]);return r>=0?a:-a}return r}},Ui=Vi((function(t){return t<0})),Wi=Vi(w),$i=function(){var t=function(t,e,n,r){var o=(100+n)/100,i=Math.max(r,(t[e]+n)/o);return P(t,(function(t,n){return(n===e?i:t/o)-t}))},e=function(e,n,r,o,i,a){return a?t(e,n,o,i):function(t,e,n,r,o){var i=Ui(t,e,r,o);return Hi(t,e,n+1,[i,0],Ni)}(e,n,r,o,i)};return{resizeTable:function(t,e){return t(e)},clampTableDelta:Ui,calcLeftEdgeDeltas:e,calcMiddleDeltas:function(t,n,r,o,i,a,u){return e(t,r,o,i,a,u)},calcRightEdgeDeltas:function(e,n,r,o,i,a){if(a)return t(e,r,o,i);var u=Ui(e,r,o,i);return Ni(e.slice(0,r)).concat([u])},calcRedestributedWidths:function(t,e,n,r){if(r){var o=(e+n)/e,i=P(t,(function(t){return t/o}));return{delta:100*o-100,newSizes:i}}return{delta:n,newSizes:t}}}},Gi=function(){var t=function(t,e,n,r,o){var i=Wi(t,r>=0?n:e,r,o);return Hi(t,e,n+1,[i,-i],Ni)};return{resizeTable:function(t,e,n){n&&t(e)},clampTableDelta:function(t,e,n,r,o){if(o){if(n>=0)return n;var i=L(t,(function(t,e){return t+e-r}),0);return Math.max(-i,n)}return Ui(t,e,n,r)},calcLeftEdgeDeltas:t,calcMiddleDeltas:function(e,n,r,o,i,a){return t(e,r,o,i,a)},calcRightEdgeDeltas:function(t,e,n,r,o,i){if(i)return Ni(t);var a=r/t.length;return P(t,m(a))},calcRedestributedWidths:function(t,e,n,r){return{delta:0,newSizes:t}}}},Ki=function(t,e){var n=C.from(t.dom.documentElement).map(xt.fromDom).getOr(t);return{parent:m(n),view:m(t),origin:m(Xr(0,0)),isResizable:e}},qi=function(t,e,n){return{parent:m(e),view:m(t),origin:m(Xr(0,0)),isResizable:n}},Xi=hr([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),Yi=function(t,e,n){var r=n.substring(0,n.length-t.length),o=parseFloat(r);return r===o.toString()?e(o):Xi.invalid(n)},Ji=X(X({},Xi),{from:function(t){return it(t,"%")?Yi("%",Xi.percent,t):it(t,"px")?Yi("px",Xi.pixels,t):Xi.invalid(t)}}),Qi=function(t,e,n){return t.fold((function(){return e}),(function(t){return function(t,e,n){var r=n/e;return P(t,(function(t){return Ji.from(t).fold((function(){return t}),(function(t){return t*r+"px"}),(function(t){return t/100*n+"px"}))}))}(e,n,t)}),(function(t){return function(t,e){return P(t,(function(t){return Ji.from(t).fold((function(){return t}),(function(t){return t/e*100+"%"}),(function(t){return t+"%"}))}))}(e,n)}))},Zi=function(t,e,n){var r=Ji.from(n),o=V(t,(function(t){return"0px"===t}))?function(t,e){var n=t.fold((function(){return m("")}),(function(t){return m(t/e+"px")}),(function(){return m(100/e+"%")}));return A(e,n)}(r,t.length):Qi(r,t,e);return na(o)},ta=function(t,e){return 0===t.length?e:j(t,(function(t,e){return Ji.from(e).fold(m(0),p,p)+t}),0)},ea=function(t,e){return Ji.from(t).fold(m(t),(function(t){return t+e+"px"}),(function(t){return t+e+"%"}))},na=function(t){if(0===t.length)return t;var e=j(t,(function(t,e){var n=Ji.from(e).fold((function(){return{value:e,remainder:0}}),(function(t){return function(t,e){var n=Math.floor(t);return{value:n+e,remainder:t-n}}(t,"px")}),(function(t){return{value:t+"%",remainder:0}}));return{output:[n.value].concat(t.output),remainder:t.remainder+n.remainder}}),{output:[],remainder:0}),n=e.output;return n.slice(0,n.length-1).concat([ea(n[n.length-1],Math.round(e.remainder))])},ra=Ji.from,oa=function(t){return ra(t).fold(m("px"),m("px"),m("%"))},ia=function(t,e,n){var r=kn.fromTable(t),o=r.all,i=kn.justCells(r),a=kn.justColumns(r);e.each((function(e){var n=oa(e),o=Ir(t),u=function(t,e){return Fo(t,e,jo,No)}(r,t),c=Zi(u,o,e);kn.hasColumns(r)?function(t,e,n){R(e,(function(e,r){var o=ta([t[r]],Qe());He(e.element,"width",o+n)}))}(c,a,n):function(t,e,n){R(e,(function(e){var r=t.slice(e.column,e.colspan+e.column),o=ta(r,Qe());He(e.element,"width",o+n)}))}(c,i,n),He(t,"width",e)})),n.each((function(e){var n=oa(e),a=$r(t),u=function(t,e,n){return Vo(t,e,n,Lo,No)}(r,t,so);!function(t,e,n,r){R(n,(function(e){var n=t.slice(e.row,e.rowspan+e.row),o=ta(n,Ze());He(e.element,"height",o+r)})),R(e,(function(e,n){He(e.element,"height",t[n])}))}(Zi(u,a,e),o,i,n),He(t,"height",e)}))},aa=function(t){return To(t).exists((function(t){return bo.test(t)}))},ua=function(t){return To(t).exists((function(t){return yo.test(t)}))},ca=function(t){return To(t).isNone()},sa=function(t){return kn.fromTable(t).grid},la=function(t){var e=[];return{bind:function(t){if(void 0===t)throw new Error("Event bind error: undefined handler");e.push(t)},unbind:function(t){e=z(e,(function(e){return e!==t}))},trigger:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o={};R(t,(function(t,e){o[t]=n[e]})),R(e,(function(t){t(o)}))}}},fa=function(t){return{registry:Rt(t,(function(t){return{bind:t.bind,unbind:t.unbind}})),trigger:Rt(t,(function(t){return t.trigger}))}},da=function(t){return t.slice(0).sort()},ma=function(t,e,n){if(0===e.length)throw new Error("You must specify at least one required field.");var o;return function(t,e){if(!i(e))throw new Error("The "+t+" fields must be an array. Was: "+e+".");R(e,(function(e){if(!r(e))throw new Error("The value "+e+" in the "+t+" fields was not a string.")}))}("required",e),o=da(e),B(o,(function(t,e){return e<o.length-1&&t===o[e+1]})).each((function(t){throw new Error("The field: "+t+" occurs more than once in the combined fields: ["+o.join(", ")+"].")})),function(r){var o=Dt(r);V(e,(function(t){return M(o,t)}))||function(t,e){throw new Error("All required keys ("+da(t).join(", ")+") were not specified. Specified keys were: "+da(e).join(", ")+".")}(e,o),t(e,o);var i=z(e,(function(t){return!n.validate(r[t],t)}));return i.length>0&&function(t,e){throw new Error("All values need to be of type: "+e+". Keys ("+da(t).join(", ")+") were not.")}(i,n.label),r}},pa=function(t,e){var n=z(e,(function(e){return!M(t,e)}));n.length>0&&function(t){throw new Error("Unsupported keys for object: "+da(t).join(", "))}(n)},ha=function(t){return function(t,e){return ma(t,e,{validate:l,label:"function"})}(pa,t)},ga=ha(["compare","extract","mutate","sink"]),va=ha(["element","start","stop","destroy"]),ba=ha(["forceDrop","drop","move","delayDrop"]),ya=function(){var t=C.none(),e=fa({move:la(["info"])});return{onEvent:function(n,r){r.extract(n).each((function(n){(function(e,n){var r=t.map((function(t){return e.compare(t,n)}));return t=C.some(n),r})(r,n).each((function(t){e.trigger.move(t)}))}))},reset:function(){t=C.none()},events:e.registry}},_a=function(){var t,e=(t=fa({move:la(["info"])}),{onEvent:d,reset:d,events:t.registry}),n=ya(),r=e;return{on:function(){r.reset(),r=n},off:function(){r.reset(),r=e},isOn:function(){return r===n},onEvent:function(t,e){r.onEvent(t,e)},events:n.events}},wa=function(t,e,n){var r,o,i,u,c=!1,s=fa({start:la([]),stop:la([])}),l=_a(),f=function(){p.stop(),l.isOn()&&(l.off(),s.trigger.stop())},d=(r=f,o=200,i=null,{cancel:u=function(){a(i)||(clearTimeout(i),i=null)},throttle:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];u(),i=setTimeout((function(){i=null,r.apply(null,t)}),o)}});l.events.move.bind((function(n){e.mutate(t,n.info)}));var m=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];c&&t.apply(null,e)}},p=e.sink(ba({forceDrop:f,drop:m(f),move:m((function(t){d.cancel(),l.onEvent(t,e)})),delayDrop:m(d.throttle)}),n);return{element:p.element,go:function(t){p.start(t),l.on(),s.trigger.start()},on:function(){c=!0},off:function(){c=!1},destroy:function(){p.destroy()},events:s.registry}},xa=function(t){var e,n,r=xt.fromDom(function(t){if(fe()&&s(t.target)){var e=xt.fromDom(t.target);if(Jt(e)&&he(e)&&t.composed&&t.composedPath){var n=t.composedPath();if(n)return G(n)}}return C.from(t.target)}(t).getOr(t.target)),o=function(){return t.stopPropagation()},i=function(){return t.preventDefault()},a=(e=i,n=o,function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e(n.apply(null,t))});return function(t,e,n,r,o,i,a){return{target:t,x:e,y:n,stop:r,prevent:o,kill:i,raw:a}}(r,t.clientX,t.clientY,o,i,a,t)},Oa=function(t,e,n,r,o){var i=function(t,e){return function(n){t(n)&&e(xa(n))}}(n,r);return t.dom.addEventListener(e,i,o),{unbind:g(Sa,t,e,i,o)}},Sa=function(t,e,n,r){t.dom.removeEventListener(e,n,r)},Ca=w,Ea=function(t,e,n){return function(t,e,n,r){return Oa(t,e,n,r,!1)}(t,e,Ca,n)},ka=xa,Ta=function(t,e){var n=Ae(t,e);return void 0===n||""===n?[]:n.split(" ")},Ma=function(t){return void 0!==t.dom.classList},Da=function(t,e){return function(t,e,n){var r=Ta(t,e).concat([n]);return Me(t,e,r.join(" ")),!0}(t,"class",e)},Aa=function(t,e){Ma(t)?t.dom.classList.add(e):Da(t,e)},Pa=function(t,e){return Ma(t)&&t.dom.classList.contains(e)},Ra=function(t){var e=t.replace(/\./g,"-");return{resolve:function(t){return e+"-"+t}}},Ia=Ra("ephox-dragster"),za=Ia.resolve,ja=ga({compare:function(t,e){return Xr(e.left-t.left,e.top-t.top)},extract:function(t){return C.some(Xr(t.x,t.y))},sink:function(t,e){var n=function(t){var e=X({layerClass:za("blocker")},t),n=xt.fromTag("div");Me(n,"role","presentation"),Ve(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),Aa(n,za("blocker")),Aa(n,e.layerClass);return{element:m(n),destroy:function(){Gn(n)}}}(e),r=Ea(n.element(),"mousedown",t.forceDrop),o=Ea(n.element(),"mouseup",t.drop),i=Ea(n.element(),"mousemove",t.move),a=Ea(n.element(),"mouseout",t.delayDrop);return va({element:n.element,start:function(t){Hn(t,n.element())},stop:function(){Gn(n.element())},destroy:function(){n.destroy(),o.unbind(),i.unbind(),a.unbind(),r.unbind()}})},mutate:function(t,e){t.mutate(e.left,e.top)}}),La=function(t){return ke(t,"[contenteditable]")},Ba=function(t,e){return void 0===e&&(e=!1),!_t().browser.isIE()&&ge(t)?t.dom.isContentEditable:La(t).fold(m(e),(function(t){return"true"===Fa(t)}))},Fa=function(t){return t.dom.contentEditable},Na=Ra("ephox-snooker"),Ha=Na.resolve,Va=function(){var t=fa({drag:la(["xDelta","yDelta","target"])}),e=C.none(),n=function(){var t=fa({drag:la(["xDelta","yDelta"])});return{mutate:function(e,n){t.trigger.drag(e,n)},events:t.registry}}();n.events.drag.bind((function(n){e.each((function(e){t.trigger.drag(n.xDelta,n.yDelta,e)}))}));return{assign:function(t){e=C.some(t)},get:function(){return e},mutate:n.mutate,events:t.registry}},Ua=Ha("resizer-bar"),Wa=Ha("resizer-rows"),$a=Ha("resizer-cols"),Ga=function(t){var e=we(t.parent(),"."+Ua);R(e,Gn)},Ka=function(t,e,n){var r=t.origin();R(e,(function(e){e.each((function(e){var o=n(r,e);Aa(o,Ua),Hn(t.parent(),o)}))}))},qa=function(t,e,n,r){Ka(t,e,(function(t,e){var o,i,a,u,c,s,l=(o=e.col,i=e.x-t.left,a=n.top-t.top,u=7,c=r,s=xt.fromTag("div"),Ve(s,{position:"absolute",left:i-u/2+"px",top:a+"px",height:c+"px",width:u+"px"}),De(s,{"data-column":o,role:"presentation"}),s);return Aa(l,$a),l}))},Xa=function(t,e,n,r){Ka(t,e,(function(t,e){var o=function(t,e,n,r,o){var i=xt.fromTag("div");return Ve(i,{position:"absolute",left:e+"px",top:n-o/2+"px",height:o+"px",width:r+"px"}),De(i,{"data-row":t,role:"presentation"}),i}(e.row,n.left-t.left,e.y-t.top,r,7);return Aa(o,Wa),o}))},Ya=function(t,e,n,r,o){var i=Jr(n),a=e.isResizable,u=r.length>0?so.positions(r,n):[],c=u.length>0?function(t,e){return H(t.all,(function(t,n){return e(t.element)?[n]:[]}))}(t,a):[],s=z(u,(function(t,e){return D(c,(function(t){return e===t}))}));Xa(e,s,i,zr(n));var l=o.length>0?po.positions(o,n):[],f=l.length>0?function(t,e){var n=[];return A(t.grid.columns,(function(r){kn.getColumnAt(t,r).map((function(t){return t.element})).forall(e)&&n.push(r)})),z(n,(function(n){var r=kn.filterItems(t,(function(t){return t.column===n}));return V(r,(function(t){return e(t.element)}))}))}(t,a):[],d=z(l,(function(t,e){return D(f,(function(t){return e===t}))}));qa(e,d,i,Gr(n))},Ja=function(t,e){if(Ga(t),t.isResizable(e)){var n=kn.fromTable(e),r=Nr(n),o=Br(n);Ya(n,t,e,r,o)}},Qa=function(t,e){var n=we(t.parent(),"."+Ua);R(n,e)},Za=function(t){Qa(t,(function(t){He(t,"display","none")}))},tu=function(t){Qa(t,(function(t){He(t,"display","block")}))},eu=Ha("resizer-bar-dragging"),nu=function(t){var e=Va(),n=function(t,e){void 0===e&&(e={});var n=void 0!==e.mode?e.mode:ja;return wa(t,n,e)}(e,{}),r=C.none(),o=function(t,e){return C.from(Ae(t,e))};e.events.drag.bind((function(t){o(t.target,"data-row").each((function(e){var n=Je(t.target,"top");He(t.target,"top",n+t.yDelta+"px")})),o(t.target,"data-column").each((function(e){var n=Je(t.target,"left");He(t.target,"left",n+t.xDelta+"px")}))}));var i=function(t,e){return Je(t,e)-Ke(t,"data-initial-"+e,0)};n.events.stop.bind((function(){e.get().each((function(e){r.each((function(n){o(e,"data-row").each((function(t){var r=i(e,"top");Re(e,"data-initial-top"),l.trigger.adjustHeight(n,r,parseInt(t,10))})),o(e,"data-column").each((function(t){var r=i(e,"left");Re(e,"data-initial-left"),l.trigger.adjustWidth(n,r,parseInt(t,10))})),Ja(t,n)}))}))}));var a=function(r,o){l.trigger.startAdjust(),e.assign(r),Me(r,"data-initial-"+o,Je(r,o)),Aa(r,eu),He(r,"opacity","0.2"),n.go(t.parent())},u=Ea(t.parent(),"mousedown",(function(t){var e;e=t.target,Pa(e,Wa)&&a(t.target,"top"),function(t){return Pa(t,$a)}(t.target)&&a(t.target,"left")})),c=function(e){return Et(e,t.view())},s=Ea(t.view(),"mouseover",(function(e){var n;(n=e.target,ke(n,"table",c).filter(Ba)).fold((function(){ge(e.target)&&Ga(t)}),(function(e){r=C.some(e),Ja(t,e)}))})),l=fa({adjustHeight:la(["table","delta","row"]),adjustWidth:la(["table","delta","column"]),startAdjust:la([])});return{destroy:function(){u.unbind(),s.unbind(),n.destroy(),Ga(t)},refresh:function(e){Ja(t,e)},on:n.on,off:n.off,hideBars:g(Za,t),showBars:g(tu,t),events:l.registry}},ru=function(t,e,n){var r=so,o=po,i=nu(t),a=fa({beforeResize:la(["table","type"]),afterResize:la(["table","type"]),startDrag:la([])});return i.events.adjustHeight.bind((function(t){var e=t.table;a.trigger.beforeResize(e,"row");var n=r.delta(t.delta,e);Fi(e,n,t.row,r),a.trigger.afterResize(e,"row")})),i.events.startAdjust.bind((function(t){a.trigger.startDrag()})),i.events.adjustWidth.bind((function(t){var r=t.table;a.trigger.beforeResize(r,"col");var i=o.delta(t.delta,r),u=n(r);Bi(r,i,t.column,e,u),a.trigger.afterResize(r,"col")})),{on:i.on,off:i.off,hideBars:i.hideBars,showBars:i.showBars,destroy:i.destroy,events:a.registry}},ou=function(t,e){return t.fire("newrow",{node:e})},iu=function(t,e){return t.fire("newcell",{node:e})},au=function(t,e,n){t.fire("TableModified",X(X({},n),{table:e}))},uu={structure:!1,style:!0},cu={structure:!0,style:!1},su={structure:!0,style:!0},lu={"border-collapse":"collapse",width:"100%"},fu=A(5,(function(t){var e=t+1+"px";return{title:e,value:e}})),du=P(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],(function(t){return{title:t,value:t.toLowerCase()}})),mu={border:"1"},pu=function(t){return t.getParam("table_sizing_mode","auto")},hu=function(t){return t.getParam("table_responsive_width")},gu=function(t){return t.getParam("table_border_widths",fu,"array")},vu=function(t){return t.getParam("table_border_styles",du,"array")},bu=function(t){return t.getParam("table_default_attributes",mu,"object")},yu=function(t){return t.getParam("table_default_styles",function(t){var e;if(ku(t)){var n=t.dom,r=null!==(e=n.getParent(t.selection.getStart(),n.isBlock))&&void 0!==e?e:t.getBody(),o=jr(xt.fromDom(r));return X(X({},lu),{width:o+"px"})}return Tu(t)?zt(lu,(function(t,e){return"width"!==e})):lu}(t),"object")},_u=function(t){return t.getParam("table_cell_advtab",!0,"boolean")},wu=function(t){return t.getParam("table_row_advtab",!0,"boolean")},xu=function(t){return t.getParam("table_advtab",!0,"boolean")},Ou=function(t){return t.getParam("table_style_by_css",!1,"boolean")},Su=function(t){return t.getParam("table_cell_class_list",[],"array")},Cu=function(t){return t.getParam("table_class_list",[],"array")},Eu=function(t){return"relative"===pu(t)||!0===hu(t)},ku=function(t){return"fixed"===pu(t)||!1===hu(t)},Tu=function(t){return"responsive"===pu(t)},Mu=function(t){return t.getParam("table_use_colgroups",!1,"boolean")},Du=function(t){var e=t.getParam("table_header_type","section","string");return M(["section","cells","sectionCells","auto"],e)?e:"section"},Au=function(t){var e=t.getParam("table_column_resizing","preservetable","string");return B(["preservetable","resizetable"],(function(t){return t===e})).getOr("preservetable")},Pu=function(t){return"preservetable"===Au(t)},Ru=function(t){return"resizetable"===Au(t)},Iu=function(t){var e=t.getParam("table_clone_elements");return r(e)?C.some(e.split(/[ ,]/)):Array.isArray(e)?C.some(e):C.none()},zu=function(t){return t.getParam("table_background_color_map",[],"array")},ju=function(t){return t.getParam("table_border_color_map",[],"array")},Lu=function(t,e){return Eu(t)?Xo(e):ku(t)?qo(e):Ko(e)},Bu=function(t){Re(t,"width")},Fu=function(t){var e=Ro(t);ia(t,C.some(e),C.none()),Bu(t)},Nu=function(t){var e=function(t){return Ir(t)+"px"}(t);ia(t,C.some(e),C.none()),Bu(t)},Hu=function(t){Ge(t,"width");var e=on(t),n=e.length>0?e:rn(t);R(n,(function(t){Ge(t,"width"),Bu(t)})),Bu(t)},Vu=function(){var t=xt.fromTag("div");return Ve(t,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Hn(ve(xt.fromDom(document)),t),t},Uu=function(t){return"false"!==Ae(t,"data-mce-resize")},Wu=function(t){var e,n,o=C.none(),i=C.none(),a=C.none(),u=function(t){return"TABLE"===t.nodeName},c=function(){return i},s=function(e){return Lu(t,e)},l=function(){return Pu(t)?Gi():$i()},f=function(r,o,i){var a=it(o,"e");if(""===n&&Fu(r),i!==e&&""!==n){He(r,"width",n);var u=l(),c=s(r),f=Pu(t)||a?function(t){return sa(t).columns}(r)-1:0;Bi(r,i-e,f,u,c)}else if(function(t){return/^(\d+(\.\d+)?)%$/.test(t)}(n)){var d=parseFloat(n.replace("%",""));He(r,"width",i*d/e+"%")}(function(t){return/^(\d+(\.\d+)?)px$/.test(t)})(n)&&function(t){var e=kn.fromTable(t);kn.hasColumns(e)||R(rn(t),(function(t){var e=Ue(t,"width");He(t,"width",e),Re(t,"width")}))}(r)};return t.on("init",(function(){var e=function(t,e){return t.inline?qi(pi(t),Vu(),e):Ki(xt.fromDom(t.getDoc()),e)}(t,Uu);if(a=C.some(e),function(t){var e=t.getParam("object_resizing",!0);return r(e)?"table"===e:e}(t)&&function(t){return t.getParam("table_resize_bars",!0,"boolean")}(t)){var n=l(),u=ru(e,n,s);u.on(),u.events.startDrag.bind((function(e){o=C.some(t.selection.getRng())})),u.events.beforeResize.bind((function(e){var n=e.table.dom;!function(t,e,n,r,o){t.fire("ObjectResizeStart",{target:e,width:n,height:r,origin:o})}(t,n,hi(n),gi(n),"bar-"+e.type)})),u.events.afterResize.bind((function(e){var n=e.table,r=n.dom;yi(n),o.each((function(e){t.selection.setRng(e),t.focus()})),function(t,e,n,r,o){t.fire("ObjectResized",{target:e,width:n,height:r,origin:o})}(t,r,hi(r),gi(r),"bar-"+e.type),t.undoManager.add()})),i=C.some(u)}})),t.on("ObjectResizeStart",(function(r){var o=r.target;if(u(o)){var i=xt.fromDom(o);R(t.dom.select(".mce-clonedresizable"),(function(e){t.dom.addClass(e,"mce-"+Au(t)+"-columns")})),!ua(i)&&ku(t)?Nu(i):!aa(i)&&Eu(t)&&Fu(i),ca(i)&&ot(r.origin,"bar-")&&Fu(i),e=r.width,n=Tu(t)?"":function(t,e){var n=t.dom.getStyle(e,"width")||t.dom.getAttrib(e,"width");return C.from(n).filter(ut)}(t,o).getOr("")}})),t.on("ObjectResized",(function(e){var n=e.target;if(u(n)){var r=xt.fromDom(n),o=e.origin;ot(o,"corner-")&&f(r,o,e.width),yi(r),au(t,r.dom,uu)}})),t.on("SwitchMode",(function(){c().each((function(e){t.mode.isReadOnly()?e.hideBars():e.showBars()}))})),{lazyResize:c,lazyWire:function(){return a.getOr(Ki(xt.fromDom(t.getBody()),Uu))},destroy:function(){i.each((function(t){t.destroy()})),a.each((function(e){!function(t,e){t.inline&&Gn(e.parent())}(t,e)}))}}},$u=function(t,e){return{element:t,offset:e}},Gu=function(t,e,n){return t.property().isText(e)&&0===t.property().getText(e).trim().length||t.property().isComment(e)?n(e).bind((function(e){return Gu(t,e,n).orThunk((function(){return C.some(e)}))})):C.none()},Ku=function(t,e){return t.property().isText(e)?t.property().getText(e).length:t.property().children(e).length},qu=function(t,e){var n=Gu(t,e,t.query().prevSibling).getOr(e);if(t.property().isText(n))return $u(n,Ku(t,n));var r=t.property().children(n);return r.length>0?qu(t,r[r.length-1]):$u(n,Ku(t,n))},Xu=qu,Yu=Zn(),Ju=function(t,e){1===qe(t,"colspan")&&function(t){return To(t).bind((function(t){return vo(t,["fixed","relative","empty"])}))}(t).each((function(n){var r=n.value/2;Po(t,r,n.unit),Po(e,r,n.unit)}))},Qu=ee("th"),Zu=function(t){return V(t,(function(t){return Qu(t.element)}))},tc=function(t,e){return t&&e?"sectionCells":t?"section":"cells"},ec=function(t){var e="thead"===t.section,n=ze(nc(t.cells),"th");return e||n?{type:"header",subType:tc(e,n)}:"tfoot"===t.section?{type:"footer"}:{type:"body"}},nc=function(t){var e=z(t,(function(t){return Qu(t.element)}));return 0===e.length?C.some("td"):e.length===t.length?C.some("th"):C.none()},rc=function(t,e,n){return $t(n(t.element,e),!0,t.isLocked)},oc=function(t,e){return t.section!==e?Gt(t.element,t.cells,e,t.isNew):t},ic=function(){return{transformRow:oc,transformCell:function(t,e,n){var r=n(t.element,e),o="td"!==Kt(r)?function(t,e){var n=Cr(t,e);Bn(t,n);var r=ce(t);return Wn(n,r),Gn(t),n}(r,"td"):r;return $t(o,t.isNew,t.isLocked)}}},ac=function(){return{transformRow:oc,transformCell:rc}},uc=function(){return{transformRow:function(t,e){return oc(t,"thead"===e?"tbody":e)},transformCell:rc}},cc=function(t,e){switch(function(t){return q(t.all,(function(t){var e=ec(t);return"header"===e.type?C.from(e.subType):C.none()}))}(kn.fromTable(t)).getOr(e)){case"section":return ic();case"sectionCells":return ac();case"cells":return uc()}},sc=ic,lc=ac,fc=uc,dc=function(){return{transformRow:p,transformCell:rc}},mc=function(t,e,n,r){n===r?Re(t,e):Me(t,e,n)},pc=function(t,e,n){K(_e(t,e)).fold((function(){return Nn(t,n)}),(function(t){return Fn(t,n)}))},hc=function(t,e){var n=[],r=[],o=function(t){return P(t,(function(t){t.isNew&&n.push(t.element);var e=t.element;return $n(e),R(t.cells,(function(t){t.isNew&&r.push(t.element),mc(t.element,"colspan",t.colspan,1),mc(t.element,"rowspan",t.rowspan,1),Hn(e,t.element)})),e}))},i=function(t){return H(t,(function(t){return P(t.cells,(function(t){return mc(t.element,"span",t.colspan,1),t.element}))}))},a=function(e,n){var r=function(t,e){var n=Ce(t,e).getOrThunk((function(){var n=xt.fromTag(e,ne(t).dom);return"thead"===e?pc(t,"caption,colgroup",n):"colgroup"===e?pc(t,"caption",n):Hn(t,n),n}));return $n(n),n}(t,n),a=("colgroup"===n?i:o)(e);Wn(r,a)},u=function(e,n){e.length>0?a(e,n):function(e){Ce(t,e).each(Gn)}(n)},c=[],s=[],l=[],f=[];return R(e,(function(t){switch(t.section){case"thead":c.push(t);break;case"tbody":s.push(t);break;case"tfoot":l.push(t);break;case"colgroup":f.push(t)}})),u(f,"colgroup"),u(c,"thead"),u(s,"tbody"),u(l,"tfoot"),{newRows:n,newCells:r}},gc=function(t,e){if(0===t.length)return 0;var n=t[0];return F(t,(function(t){return!e(n.element,t.element)})).getOr(t.length)},vc=function(t,e,n,r){var o=function(t,e){return t[e]}(t,e),i="colgroup"===o.section;return{colspan:gc(o.cells.slice(n),r),rowspan:i?1:gc(function(t,e){return P(t,(function(t){return gn(t,e)}))}(t.slice(e),n),r)}},bc=function(t,e){var n=P(t,(function(t){return P(t.cells,_)}));return P(t,(function(r,o){var i=H(r.cells,(function(r,i){if(!1===n[o][i]){var a=vc(t,o,i,e);return function(t,e,r,o){for(var i=t;i<t+r;i++)for(var a=e;a<e+o;a++)n[i][a]=!0}(o,i,a.rowspan,a.colspan),[(u=r.element,c=a.rowspan,s=a.colspan,l=r.isNew,{element:u,rowspan:c,colspan:s,isNew:l})]}return[];var u,c,s,l}));return function(t,e,n,r){return{element:t,cells:e,section:n,isNew:r}}(r.element,i,r.section,r.isNew)}))},yc=function(t,e,n){var r=[];R(t.colgroups,(function(o){for(var i=[],a=0;a<t.grid.columns;a++){var u=kn.getColumnAt(t,a).map((function(t){return $t(t.element,n,!1)})).getOrThunk((function(){return $t(e.colGap(),!0,!1)}));i.push(u)}r.push(Gt(o.element,i,"colgroup",n))}));for(var o=0;o<t.grid.rows;o++){for(var i=[],a=0;a<t.grid.columns;a++){var u=kn.getAt(t,o,a).map((function(t){return $t(t.element,n,t.isLocked)})).getOrThunk((function(){return $t(e.gap(),!0,!1)}));i.push(u)}var c=t.all[o],s=Gt(c.element,i,c.section,n);r.push(s)}return r},_c=function(t){return bc(t,Et)},wc=function(t,e){return q(t.all,(function(t){return B(t.cells,(function(t){return Et(e,t.element)}))}))},xc=function(t,e,n){var r=P(e.selection,(function(e){return nn(e).bind((function(e){return wc(t,e)})).filter(n)})),o=je(r);return Be(o.length>0,o)},Oc=function(t,e,n,r,o){return function(i,a,u,c,s){var l=kn.fromTable(a),f=C.from(null==s?void 0:s.section).getOrThunk(dc);return e(l,u).map((function(e){var n=function(t,e){return yc(t,e,!1)}(l,c),r=t(n,e,Et,o(c),f),i=On(r.grid);return{info:e,grid:_c(r.grid),cursor:r.cursor,lockedColumns:i}})).bind((function(t){var e=hc(a,t.grid),o=C.from(null==s?void 0:s.sizing).getOrThunk((function(){return Ko(a)})),u=C.from(null==s?void 0:s.resize).getOrThunk(Gi);return n(a,t.grid,t.info,{sizing:o,resize:u,section:f}),r(a),Ja(i,a),Re(a,wn),t.lockedColumns.length>0&&Me(a,wn,t.lockedColumns.join(",")),C.some({cursor:t.cursor,newRows:e.newRows,newCells:e.newCells})}))}},Sc=function(t,e){return xc(t,e,w).map((function(t){return{cells:t,generators:e.generators,clipboard:e.clipboard}}))},Cc=function(t,e){return xc(t,e,w)},Ec=function(t,e){return xc(t,e,(function(t){return!t.isLocked}))},kc=function(t,e){return V(e,(function(e){return function(t,e){return wc(t,e).exists((function(t){return!t.isLocked}))}(t,e)}))},Tc=function(t,e){return function(t,e){return e.mergable}(0,e).filter((function(e){return kc(t,e.cells)}))},Mc=function(t,e){return function(t,e){return e.unmergable}(0,e).filter((function(e){return kc(t,e)}))},Dc=function(t,e,n,r){for(var o=yn(t).rows,i=!0,a=0;a<o.length;a++)for(var u=0;u<bn(o[0]);u++){var c=o[a],s=gn(c,u),l=n(s.element,e);!0===l&&!1===i?pn(c,u,$t(r(),!0,s.isLocked)):!0===l&&(i=!1)}return t},Ac=function(t,e,n,r){var o=yn(t).rows;if(e>0&&e<o.length){var i=function(t,e){return L(t,(function(t,n){return D(t,(function(t){return e(t.element,n.element)}))?t:t.concat([n])}),[])}(o[e-1].cells,n);R(i,(function(t){for(var i=C.none(),a=e;a<o.length;a++)for(var u=function(e){var u=o[a],c=gn(u,e);n(c.element,t.element)&&(i.isNone()&&(i=C.some(r())),i.each((function(t){pn(u,e,$t(t,!0,c.isLocked))})))},c=0;c<bn(o[0]);c++)u(c)}))}return t},Pc=function(t){return{isValue:w,isError:_,getOr:m(t),getOrThunk:m(t),getOrDie:m(t),or:function(e){return Pc(t)},orThunk:function(e){return Pc(t)},fold:function(e,n){return n(t)},map:function(e){return Pc(e(t))},mapError:function(e){return Pc(t)},each:function(e){e(t)},bind:function(e){return e(t)},exists:function(e){return e(t)},forall:function(e){return e(t)},toOptional:function(){return C.some(t)}}},Rc=function(t){return{isValue:_,isError:w,getOr:p,getOrThunk:function(t){return t()},getOrDie:function(){return(e=String(t),function(){throw new Error(e)})();var e},or:p,orThunk:function(t){return t()},fold:function(e,n){return e(t)},map:function(e){return Rc(t)},mapError:function(e){return Rc(e(t))},each:d,bind:function(e){return Rc(t)},exists:_,forall:w,toOptional:C.none}},Ic={value:Pc,error:Rc,fromOption:function(t,e){return t.fold((function(){return Rc(e)}),Pc)}},zc=function(t,e){return{rowDelta:0,colDelta:bn(t[0])-bn(e[0])}},jc=function(t,e){return{rowDelta:t.length-e.length,colDelta:0}},Lc=function(t,e,n,r){var o="colgroup"===e.section?n.col:n.cell;return A(t,(function(t){return $t(o(),!0,r(t))}))},Bc=function(t,e,n,r){var o=t[t.length-1];return t.concat(A(e,(function(){var t="colgroup"===o.section?n.colgroup:n.row,e=_n(o,t,p),i=Lc(e.cells.length,e,n,(function(t){return Nt(r,t.toString())}));return hn(e,i)})))},Fc=function(t,e,n,r){return P(t,(function(t){var o=Lc(e,t,n,_);return dn(t,r,o)}))},Nc=function(t,e,n){var r=e.colDelta<0?Fc:p,o=e.rowDelta<0?Bc:p,i=On(t),a=bn(t[0]),u=D(i,(function(t){return t===a-1})),c=r(t,Math.abs(e.colDelta),n,u?a-1:a),s=On(c);return o(c,Math.abs(e.rowDelta),n,U(s,w))},Hc=function(t,e,n,r){var o=g(r,gn(t[e],n).element),i=t[e];return t.length>1&&bn(i)>1&&(n>0&&o(vn(i,n-1))||n<i.cells.length-1&&o(vn(i,n+1))||e>0&&o(vn(t[e-1],n))||e<t.length-1&&o(vn(t[e+1],n)))},Vc=function(t,e,n){return z(n,(function(n){return n>=t.column&&n<=bn(e[0])+t.column}))},Uc=function(t,e,n,r,o){var i=On(e),a=function(t,e,n){var r=bn(e[0]),o=yn(e).cols.length+t.row,i=A(r-t.column,(function(e){return e+t.column}));return{row:o,column:B(i,(function(t){return V(n,(function(e){return e!==t}))})).getOr(r-1)}}(t,e,i),u=yn(n).rows,c=Vc(a,u,i);return function(t,e,n){if(t.row>=e.length||t.column>bn(e[0]))return Ic.error("invalid start address out of table bounds, row: "+t.row+", column: "+t.column);var r=e.slice(t.row),o=r[0].cells.slice(t.column),i=bn(n[0]),a=n.length;return Ic.value({rowDelta:r.length-a,colDelta:o.length-i})}(a,e,u).map((function(t){var n=X(X({},t),{colDelta:t.colDelta-c.length}),i=Nc(e,n,r),s=On(i),l=Vc(a,u,s);return function(t,e,n,r,o,i){for(var a=t.row,u=t.column,c=a+n.length,s=u+bn(n[0])+i.length,l=U(i,w),f=a;f<c;f++)for(var d=0,m=u;m<s;m++)if(l[m])d++;else{Hc(e,f,m,o)&&Dc(e,vn(e[f],m),o,r.cell);var p=m-u-d,h=gn(n[f-a],p),g=h.element,v=r.replace(g);pn(e[f],m,$t(v,!0,h.isLocked))}return e}(a,i,u,r,o,l)}))},Wc=function(t,e,n,r,o){!function(t,e,n,r){e>0&&e<t[0].cells.length&&R(t,(function(t){var o=t.cells[e-1],i=t.cells[e];n(i.element,o.element)&&pn(t,e,$t(r(),!0,i.isLocked))}))}(e,t,o,r.cell);var i=jc(n,e),a=Nc(n,i,r),u=jc(e,a),c=Nc(e,u,r);return P(c,(function(e,n){return dn(e,t,a[n].cells)}))},$c=function(t,e,n,r,o){Ac(e,t,o,r.cell);var i=On(e),a=zc(e,n),u=X(X({},a),{colDelta:a.colDelta-i.length}),c=Nc(e,u,r),s=yn(c),l=s.cols,f=s.rows,d=On(c),m=zc(n,e),p=X(X({},m),{colDelta:m.colDelta+d.length}),h=function(t,e,n){return P(t,(function(t){return L(n,(function(n,r){var o=Lc(1,t,e,w)[0];return mn(n,r,o)}),t)}))}(n,r,d),g=Nc(h,p,r);return l.concat(f.slice(0,t)).concat(g).concat(f.slice(t,f.length))},Gc=function(t,e,n,r,o){var i=yn(t),a=i.rows,u=i.cols,c=a.slice(0,e),s=a.slice(e),l=function(t,e,n,r){return _n(t,(function(t){return r(t,n)}),e)}(a[n],(function(t,n){return e>0&&e<a.length&&r(vn(a[e-1],n),vn(a[e],n))?gn(a[e],n):$t(o(t.element,r),!0,t.isLocked)}),r,o);return u.concat(c).concat([l]).concat(s)},Kc=function(t,e,n,r,o){return P(t,(function(t){var i=e>0&&e<bn(t)&&r(vn(t,e-1),vn(t,e)),a=function(t,e,n,r,o,i,a){if("colgroup"!==n&&r)return gn(t,e);var u=gn(t,o);return $t(a(u.element,i),!0,!1)}(t,e,t.section,i,n,r,o);return mn(t,e,a)}))},qc=function(t,e,n,r){return function(t,e,n,r){return void 0!==vn(t[e],n)&&e>0&&r(vn(t[e-1],n),vn(t[e],n))}(t,e,n,r)||function(t,e,n){return e>0&&n(vn(t,e-1),vn(t,e))}(t[e],n,r)},Xc=function(t,e,n,r){var o=function(t){return function(t){return"row"===t?Ye(e):Xe(e)}(t)?t+"group":t};return t?Qu(e)?o(n):null:r&&Qu(e)?o("row"===n?"col":"row"):null},Yc=function(t,e,n){return $t(n(t.element,e),!0,t.isLocked)},Jc=function(t,e,n,r,o,i,a){return P(t,(function(t,u){return function(t,e){var n=t.cells,r=P(n,e);return Gt(t.element,r,t.section,t.isNew)}(t,(function(t,c){if(function(t){return D(e,(function(e){return n(t.element,e.element)}))}(t)){var s=a(t,u,c)?o(t,n,r):t;return i(s,u,c).each((function(t){var e,n;e=s.element,n={scope:C.from(t)},Pt(n,(function(t,n){t.fold((function(){Re(e,n)}),(function(t){Te(e.dom,n,t)}))}))})),s}return t}))}))},Qc=function(t,e,n){return H(t,(function(r,o){return qc(t,o,e,n)?[]:[gn(r,e)]}))},Zc=function(t,e,n,r,o){var i=yn(t).rows,a=H(e,(function(t){return Qc(i,t,r)})),u=P(t,(function(t){return Zu(t.cells)})),c=function(t,e){return V(e,p)&&Zu(t)?w:function(t,n,r){return!("th"===Kt(t.element)&&e[n])}}(a,u),s=function(t,e){return function(n,r){return C.some(Xc(t,n.element,"row",e[r]))}}(n,u);return Jc(t,a,r,o,Yc,s,c)},ts=function(t,e,n,r,o,i,a){var u=yn(t),c=u.cols,s=u.rows,l=s[e[0]],f=H(e,(function(t){return function(t,e,n){var r=t[e];return H(r.cells,(function(r,o){return qc(t,e,o,n)?[]:[r]}))}(s,t,o)})),d=P(l.cells,(function(t,e){return Zu(Qc(s,e,o))})),m=Y([],s,!0);R(e,(function(t){m[t]=a.transformRow(s[t],n)}));var h=c.concat(m),g=function(t,e){return V(e,p)&&Zu(t.cells)?w:function(t,n,r){return!("th"===Kt(t.element)&&e[r])}}(l,d),v=function(t,e){return function(n,r,o){return C.some(Xc(t,n.element,"col",e[o]))}}(r,d);return Jc(h,f,o,i,a.transformCell,v,g)},es=function(t,e,n,r){var o=yn(t).rows,i=P(e,(function(t){return gn(o[t.row],t.column)}));return Jc(t,i,n,r,Yc,C.none,w)},ns=function(t){return L(t,(function(t,e){return D(t,(function(t){return t.column===e.column}))?t:t.concat([e])}),[]).sort((function(t,e){return t.column-e.column}))},rs=ee("col"),os=ee("colgroup"),is=function(t){return"tr"===Kt(t)||os(t)},as=function(t){return{element:t,colspan:Ke(t,"colspan",1),rowspan:Ke(t,"rowspan",1)}},us=function(t){return Pe(t,"scope").map((function(t){return t.substr(0,3)}))},cs=function(t,e){void 0===e&&(e=as);var n=function(n){if(is(n))return os((o={element:n}).element)?t.colgroup(o):t.row(o);var o,i=function(e){return rs(e.element)?t.col(e):t.cell(e)}(e(n));return r=C.some({item:n,replacement:i}),i},r=C.none();return{getOrInit:function(t,e){return r.fold((function(){return n(t)}),(function(r){return e(t,r.item)?r.replacement:n(t)}))}}},ss=function(t){return function(e){var n=[],r=function(r){var o="td"===t?{scope:null}:{},i=e.replace(r,t,o);return n.push({item:r,sub:i}),i};return{replaceOrInit:function(t,e){return is(t)||rs(t)?t:function(t,e){return B(n,(function(n){return e(n.item,t)}))}(t,e).fold((function(){return r(t)}),(function(n){return e(t,n.item)?n.sub:r(t)}))}}}},ls=function(t){return{unmerge:function(e){var n=us(e);return n.each((function(t){return Me(e,"scope",t)})),function(){var r=t.cell({element:e,colspan:1,rowspan:1});return Ge(r,"width"),Ge(e,"width"),n.each((function(t){return Me(r,"scope",t)})),r}},merge:function(t){return Ge(t[0],"width"),function(){var e=je(P(t,us));if(0===e.length)return C.none();var n=e[0],r=["row","col"];return D(e,(function(t){return t!==n&&M(r,t)}))?C.none():C.from(n)}().fold((function(){return Re(t[0],"scope")}),(function(e){return Me(t[0],"scope",e+"group")})),m(t[0])}}},fs=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],ds=Zn(),ms=function(t){return function(t,e){var n=t.property().name(e);return M(fs,n)}(ds,t)},ps=function(t){return function(t,e){var n=t.property().name(e);return M(["ol","ul"],n)}(ds,t)},hs=function(t){return function(t,e){return M(["br","img","hr","input"],t.property().name(e))}(ds,t)},gs=function(t){var e,n=function(t){return"br"===Kt(t)},r=function(t){return ni(t).bind((function(e){var r=ue(e).map((function(t){return!!ms(t)||!!hs(t)&&"img"!==Kt(t)})).getOr(!1);return oe(e).map((function(o){return!0===r||function(t){return"li"===Kt(t)||Oe(t,ps).isSome()}(o)||n(e)||ms(o)&&!Et(t,o)?[]:[xt.fromTag("br")]}))})).getOr([])},o=0===(e=H(t,(function(t){var e=ce(t);return function(t){return V(t,(function(t){return n(t)||Qt(t)&&0===Xn(t).trim().length}))}(e)?[]:e.concat(r(t))}))).length?[xt.fromTag("br")]:e;$n(t[0]),Wn(t[0],o)},vs=function(t){return Ba(t,!0)},bs=function(t){0===rn(t).length&&Gn(t)},ys=function(t,e){return{grid:t,cursor:e}},_s=function(t,e,n){var r,o,i=yn(t).rows;return C.from(null===(o=null===(r=i[e])||void 0===r?void 0:r.cells[n])||void 0===o?void 0:o.element).filter(vs).orThunk((function(){return function(t){return q(t,(function(t){return q(t.cells,(function(t){var e=t.element;return Be(vs(e),e)}))}))}(i)}))},ws=function(t,e,n){var r=_s(t,e,n);return ys(t,r)},xs=function(t){return L(t,(function(t,e){return D(t,(function(t){return t.row===e.row}))?t:t.concat([e])}),[]).sort((function(t,e){return t.row-e.row}))},Os=function(t,e){return function(n,r,o,i,a){var u=xs(r),c=P(u,(function(t){return t.row})),s=ts(n,c,t,e,o,i.replaceOrInit,a);return ws(s,r[0].row,r[0].column)}},Ss=Os("thead",!0),Cs=Os("tbody",!1),Es=Os("tfoot",!1),ks=function(t,e,n){var r=function(t,e){return sn(t,(function(){return e}))}(t,n.section),o=kn.generate(r);return yc(o,e,!0)},Ts=function(t,e,n,r){return function(t,e,n,r){var o=kn.generate(e),i=r.getWidths(o,r);Li(o,i,r)}(0,e,0,r.sizing)},Ms=function(t,e,n,r){return function(t,e,n,r,o){var i=kn.generate(e),a=r.getWidths(i,r),u=r.pixelWidth(),c=o.calcRedestributedWidths(a,u,n.pixelDelta,r.isRelative),s=c.newSizes,l=c.delta;Li(i,s,r),r.adjustTableWidth(l)}(0,e,n,r.sizing,r.resize)},Ds=function(t,e){return D(e,(function(t){return 0===t.column&&t.isLocked}))},As=function(t,e){return D(e,(function(e){return e.column+e.colspan>=t.grid.columns&&e.isLocked}))},Ps=function(t,e){var n=Br(t),r=ns(e);return L(r,(function(t,e){return t+n[e.column].map(zr).getOr(0)}),0)},Rs=function(t){return function(e,n){return Cc(e,n).filter((function(n){return!(t?Ds:As)(e,n)})).map((function(t){return{details:t,pixelDelta:Ps(e,t)}}))}},Is=function(t){return function(e,n){return Sc(e,n).filter((function(n){return!(t?Ds:As)(e,n.cells)}))}},zs=ss("th"),js=ss("td"),Ls=Oc((function(t,e,n,r){var o=e[0].row,i=xs(e),a=j(i,(function(t,e){return{grid:Gc(t.grid,o,e.row+t.delta,n,r.getOrInit),delta:t.delta+1}}),{grid:t,delta:0}).grid;return ws(a,o,e[0].column)}),Cc,d,d,cs),Bs=Oc((function(t,e,n,r){var o=xs(e),i=o[o.length-1],a=i.row+i.rowspan,u=j(o,(function(t,e){return Gc(t,a,e.row,n,r.getOrInit)}),t);return ws(u,a,e[0].column)}),Cc,d,d,cs),Fs=Oc((function(t,e,n,r){var o=e.details,i=ns(o),a=i[0].column,u=j(i,(function(t,e){return{grid:Kc(t.grid,a,e.column+t.delta,n,r.getOrInit),delta:t.delta+1}}),{grid:t,delta:0}).grid;return ws(u,o[0].row,a)}),Rs(!0),Ms,d,cs),Ns=Oc((function(t,e,n,r){var o=e.details,i=o[o.length-1],a=i.column+i.colspan,u=ns(o),c=j(u,(function(t,e){return Kc(t,a,e.column,n,r.getOrInit)}),t);return ws(c,o[0].row,a)}),Rs(!1),Ms,d,cs),Hs=Oc((function(t,e,n,r){var o=ns(e.details),i=function(t,e){return H(t,(function(t){var n=t.cells,r=j(e,(function(t,e){return e>=0&&e<t.length?t.slice(0,e).concat(t.slice(e+1)):t}),n);return r.length>0?[Gt(t.element,r,t.section,t.isNew)]:[]}))}(t,P(o,(function(t){return t.column}))),a=i.length>0?i[0].cells.length-1:0;return ws(i,o[0].row,Math.min(o[0].column,a))}),(function(t,e){return Ec(t,e).map((function(e){return{details:e,pixelDelta:-Ps(t,e)}}))}),Ms,bs,cs),Vs=Oc((function(t,e,n,r){var o=xs(e),i=function(t,e,n){var r=yn(t),o=r.rows;return r.cols.concat(o.slice(0,e)).concat(o.slice(n+1))}(t,o[0].row,o[o.length-1].row),a=i.length>0?i.length-1:0;return ws(i,Math.min(e[0].row,a),e[0].column)}),Cc,d,bs,cs),Us=Oc((function(t,e,n,r){var o=ns(e),i=P(o,(function(t){return t.column})),a=Zc(t,i,!0,n,r.replaceOrInit);return ws(a,e[0].row,e[0].column)}),Ec,d,d,zs),Ws=Oc((function(t,e,n,r){var o=ns(e),i=P(o,(function(t){return t.column})),a=Zc(t,i,!1,n,r.replaceOrInit);return ws(a,e[0].row,e[0].column)}),Ec,d,d,js),$s=Oc(Ss,Ec,d,d,zs),Gs=Oc(Cs,Ec,d,d,js),Ks=Oc(Es,Ec,d,d,js),qs=Oc((function(t,e,n,r){var o=es(t,e,n,r.replaceOrInit);return ws(o,e[0].row,e[0].column)}),Ec,d,d,zs),Xs=Oc((function(t,e,n,r){var o=es(t,e,n,r.replaceOrInit);return ws(o,e[0].row,e[0].column)}),Ec,d,d,js),Ys=Oc((function(t,e,n,r){var o=e.cells;gs(o);var i=function(t,e,n,r){var o=yn(t).rows;if(0===o.length)return t;for(var i=e.startRow;i<=e.finishRow;i++)for(var a=e.startCol;a<=e.finishCol;a++){var u=o[i],c=gn(u,a).isLocked;pn(u,a,$t(r(),!1,c))}return t}(t,e.bounds,0,r.merge(o));return ys(i,C.from(o[0]))}),Tc,Ts,d,ls),Js=Oc((function(t,e,n,r){var o=j(e,(function(t,e){return Dc(t,e,n,r.unmerge(e))}),t);return ys(o,C.from(e[0]))}),Mc,Ts,d,ls),Qs=Oc((function(t,e,n,r){var o=function(t,e){var n=kn.fromTable(t);return yc(n,e,!0)}(e.clipboard,e.generators),i=function(t,e){return{row:t,column:e}}(e.row,e.column);return Uc(i,t,o,e.generators,n).fold((function(){return ys(t,C.some(e.element))}),(function(t){return ws(t,e.row,e.column)}))}),(function(t,e){return nn(e.element).bind((function(n){return wc(t,n).map((function(t){return X(X({},t),{generators:e.generators,clipboard:e.clipboard})}))}))}),Ts,d,cs),Zs=Oc((function(t,e,n,r){var o=yn(t).rows,i=e.cells[0].column,a=o[e.cells[0].row],u=ks(e.clipboard,e.generators,a),c=Wc(i,t,u,e.generators,n);return ws(c,e.cells[0].row,e.cells[0].column)}),Is(!0),d,d,cs),tl=Oc((function(t,e,n,r){var o=yn(t).rows,i=e.cells[e.cells.length-1].column+e.cells[e.cells.length-1].colspan,a=o[e.cells[0].row],u=ks(e.clipboard,e.generators,a),c=Wc(i,t,u,e.generators,n);return ws(c,e.cells[0].row,e.cells[0].column)}),Is(!1),d,d,cs),el=Oc((function(t,e,n,r){var o=yn(t).rows,i=e.cells[0].row,a=o[i],u=ks(e.clipboard,e.generators,a),c=$c(i,t,u,e.generators,n);return ws(c,e.cells[0].row,e.cells[0].column)}),Sc,d,d,cs),nl=Oc((function(t,e,n,r){var o=yn(t).rows,i=e.cells[e.cells.length-1].row+e.cells[e.cells.length-1].rowspan,a=o[e.cells[0].row],u=ks(e.clipboard,e.generators,a),c=$c(i,t,u,e.generators,n);return ws(c,e.cells[0].row,e.cells[0].column)}),Sc,d,d,cs),rl=function(t,e){var n=kn.fromTable(t);return Cc(n,e).bind((function(t){var e=t[t.length-1],r=t[0].column,o=e.column+e.colspan,i=N(P(n.all,(function(t){return z(t.cells,(function(t){return t.column>=r&&t.column<o}))})));return nc(i)})).getOr("")},ol=function(t,e){var n=kn.fromTable(t);return Cc(n,e).bind(nc).getOr("")},il=function(t,e){var n=kn.fromTable(t);return Cc(n,e).bind((function(t){var e=t[t.length-1],r=t[0].row,o=e.row+e.rowspan;return function(t){var e=P(t,(function(t){return ec(t).type})),n=M(e,"header"),r=M(e,"footer");if(n||r){var o=M(e,"body");return!n||o||r?n||o||!r?C.none():C.some("footer"):C.some("header")}return C.some("body")}(n.all.slice(r,o))})).getOr("")},al=function(t,e,n){var r=function(t){return"table"===Kt(pi(t))},o=Iu(t),i=Ru(t)?d:Ju,a=function(e){switch(Du(t)){case"section":return sc();case"sectionCells":return lc();case"cells":return fc();default:return cc(e,"section")}},u=function(n,r){return r.cursor.fold((function(){var r=rn(n);return G(r).filter(ge).map((function(r){e.clear(n);var o=t.dom.createRng();return o.selectNode(r.dom),t.selection.setRng(o),Me(r,"data-mce-selected","1"),o}))}),(function(r){var o=Xu(Yu,r),i=t.dom.createRng();return i.setStart(o.element.dom,o.offset),i.setEnd(o.element.dom,o.offset),t.selection.setRng(i),e.clear(n),C.some(i)}))},c=function(e,n,r,i,c){return function(s,l,f){void 0===f&&(f=!1),yi(s);var d=i(),m=xt.fromDom(t.getDoc()),p=fi(r,m,o),h={sizing:Lu(t,s),resize:Ru(t)?$i():Gi(),section:a(s)};return n(s)?e(d,s,l,p,h).bind((function(e){R(e.newRows,(function(e){ou(t,e.dom)})),R(e.newCells,(function(e){iu(t,e.dom)}));var n=u(s,e);return ge(s)&&(yi(s),f||au(t,s.dom,c)),n.map((function(t){return{rng:t,effect:c}}))})):C.none()}};return{deleteRow:c(Vs,(function(e){return!1===r(t)||sa(e).rows>1}),d,n,cu),deleteColumn:c(Hs,(function(e){return!1===r(t)||sa(e).columns>1}),d,n,cu),insertRowsBefore:c(Ls,w,d,n,cu),insertRowsAfter:c(Bs,w,d,n,cu),insertColumnsBefore:c(Fs,w,i,n,cu),insertColumnsAfter:c(Ns,w,i,n,cu),mergeCells:c(Ys,w,d,n,cu),unmergeCells:c(Js,w,d,n,cu),pasteColsBefore:c(Zs,w,d,n,cu),pasteColsAfter:c(tl,w,d,n,cu),pasteRowsBefore:c(el,w,d,n,cu),pasteRowsAfter:c(nl,w,d,n,cu),pasteCells:c(Qs,w,d,n,su),makeCellsHeader:c(qs,w,d,n,cu),unmakeCellsHeader:c(Xs,w,d,n,cu),makeColumnsHeader:c(Us,w,d,n,cu),unmakeColumnsHeader:c(Ws,w,d,n,cu),makeRowsHeader:c($s,w,d,n,cu),makeRowsBody:c(Gs,w,d,n,cu),makeRowsFooter:c(Ks,w,d,n,cu),getTableRowType:il,getTableCellType:ol,getTableColType:rl}},ul={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},cl=function(t){var e=xt.fromTag("colgroup");return A(t,(function(){return Hn(e,xt.fromTag("col"))})),e},sl=function(t,e,n,r){return A(t,(function(t){return function(t,e,n,r){for(var o=xt.fromTag("tr"),i=0;i<t;i++){var a=r<e||i<n?xt.fromTag("th"):xt.fromTag("td");i<n&&Me(a,"scope","row"),r<e&&Me(a,"scope","col"),Hn(a,xt.fromTag("br")),Hn(o,a)}return o}(e,n,r,t)}))},ll=function(t,e){t.selection.select(e.dom,!0),t.selection.collapse(!0)},fl=function(t,e,n,o,i){var a=yu(t),u={styles:a,attributes:bu(t),colGroups:Mu(t)};return t.undoManager.ignore((function(){var r=function(t,e,n,r,o,i){void 0===i&&(i=ul);var a=xt.fromTag("table"),u="cells"!==o;Ve(a,i.styles),De(a,i.attributes),i.colGroups&&Hn(a,cl(e));var c=Math.min(t,n);if(u&&n>0){var s=xt.fromTag("thead");Hn(a,s);var l=sl(n,e,"sectionCells"===o?c:0,r);Wn(s,l)}var f=xt.fromTag("tbody");Hn(a,f);var d=sl(u?t-c:t,e,u?0:n,r);return Wn(f,d),a}(n,e,i,o,Du(t),u);Me(r,"data-mce-id","__mce");var a=function(t){var e=xt.fromTag("div"),n=xt.fromDom(t.dom.cloneNode(!0));return Hn(e,n),function(t){return t.dom.innerHTML}(e)}(r);t.insertContent(a),t.addVisual()})),Ee(pi(t),'table[data-mce-id="__mce"]').map((function(e){return ku(t)?Nu(e):Tu(t)?Hu(e):(Eu(t)||function(t){return r(t)&&-1!==t.indexOf("%")}(a.width))&&Fu(e),yi(e),Re(e,"data-mce-id"),function(t,e){R(we(e,"tr"),(function(e){ou(t,e.dom),R(we(e,"th,td"),(function(e){iu(t,e.dom)}))}))}(t,e),function(t,e){Ee(e,"td,th").each(g(ll,t))}(t,e),e.dom})).getOr(null)},dl=function(t,e,n,r,o){void 0===r&&(r={});var i=function(t){return f(t)&&t>0};if(i(e)&&i(n)){var a=r.headerRows||0,u=r.headerColumns||0;return fl(t,n,e,u,a)}return null},ml=function(t){return function(){return t().fold((function(){return[]}),(function(t){return P(t,(function(t){return t.dom}))}))}},pl=function(t){return function(e){var n=e.length>0?C.some(mi(e)):C.none();t(n)}},hl=function(t){return function(e,n,r){void 0===r&&(r={});var o=dl(t,n,e,r);return t.undoManager.add(),o}},gl=function(t,e,n){var r=Ke(t,e,1);1===n||r<=1?Re(t,e):Me(t,e,Math.min(n,r))},vl=function(t,e){var n=kn.fromTable(t);return Ec(n,e).map((function(t){var e=t[t.length-1],r=t[0].column,o=e.column+e.colspan,i=function(t,e,n){if(kn.hasColumns(t)){var r=z(kn.justColumns(t),(function(t){return t.column>=e&&t.column<n})),o=P(r,(function(t){var r=Sr(t.element);return gl(r,"span",n-e),r})),i=xt.fromTag("colgroup");return Wn(i,o),[i]}return[]}(n,r,o),a=function(t,e,n){return P(t.all,(function(t){var r=z(t.cells,(function(t){return t.column>=e&&t.column<n})),o=P(r,(function(t){var r=Sr(t.element);return gl(r,"colspan",n-e),r})),i=xt.fromTag("tr");return Wn(i,o),i}))}(n,r,o);return Y(Y([],i,!0),a,!0)}))},bl=function(t,e,n){var r=kn.fromTable(t);return Cc(r,e).bind((function(t){var e=yc(r,n,!1),o=yn(e).rows.slice(t[0].row,t[t.length-1].row+t[t.length-1].rowspan),i=H(o,(function(t){var e=z(t.cells,(function(t){return!t.isLocked}));return e.length>0?[X(X({},t),{cells:e})]:[]})),a=_c(i);return Be(a.length>0,a)})).map((function(t){return function(t){return P(t,(function(t){var e=Or(t.element);return R(t.cells,(function(t){var n=Sr(t.element);mc(n,"colspan",t.colspan,1),mc(n,"rowspan",t.rowspan,1),Hn(e,n)})),e}))}(t)}))},yl=tinymce.util.Tools.resolve("tinymce.util.Tools"),_l=function(t,e,n){return function(e,r){for(var o=0;o<r.length;o++){var i=t.getStyle(r[o],n);if(void 0===e&&(e=i),e!==i)return""}return e}(void 0,t.select("td,th",e))},wl=function(t,e,n){n&&t.formatter.apply("align"+n,{},e)},xl=function(t,e){yl.each("left center right".split(" "),(function(n){t.formatter.remove("align"+n,{},e)}))},Ol=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],Sl=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Cl=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,El=function(t){return(e=t,n="#",ot(e,n)?function(t,e){return t.substring(e)}(e,n.length):e).toUpperCase();var e,n},kl=function(t){return function(t){return Sl.test(t)||Cl.test(t)}(t)?C.some({value:El(t)}):C.none()},Tl=function(t){var e=t.toString(16);return(1===e.length?"0"+e:e).toUpperCase()},Ml=function(t){return function(t){return{value:t}}(Tl(t.red)+Tl(t.green)+Tl(t.blue))},Dl=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,Al=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,Pl=function(t,e,n,r){return{red:t,green:e,blue:n,alpha:r}},Rl=function(t,e,n,r){var o=parseInt(t,10),i=parseInt(e,10),a=parseInt(n,10),u=parseFloat(r);return Pl(o,i,a,u)},Il=function(t){return kl(t).orThunk((function(){return function(t){if("transparent"===t)return C.some(Pl(0,0,0,0));var e=Dl.exec(t);if(null!==e)return C.some(Rl(e[1],e[2],e[3],"1"));var n=Al.exec(t);return null!==n?C.some(Rl(n[1],n[2],n[3],n[4])):C.none()}(t).map(Ml)})).getOrThunk((function(){var e=document.createElement("canvas");e.height=1,e.width=1;var n=e.getContext("2d");n.clearRect(0,0,e.width,e.height),n.fillStyle="#FFFFFF",n.fillStyle=t,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,o=r[0],i=r[1],a=r[2],u=r[3];return Ml(Pl(o,i,a,u))}))},zl=function(t){var e=t;return{get:function(){return e},set:function(t){e=t}}},jl=function(t){var e=zl(C.none()),n=function(){return e.get().each(t)};return{clear:function(){n(),e.set(C.none())},isSet:function(){return e.get().isSome()},get:function(){return e.get()},set:function(t){n(),e.set(C.some(t))}}},Ll=function(){var t=jl(d);return X(X({},t),{on:function(e){return t.get().each(e)}})},Bl=function(t,e,n,r){return function(o){var i=jl((function(t){return t.unbind()})),a=!ut(r),u=function(){var u=Mi(e),c=function(e){return t.formatter.match(n,{value:r},e.dom,a)};a?(o.setActive(!D(u,c)),i.set(t.formatter.formatChanged(n,(function(t){return o.setActive(!t)}),!0))):(o.setActive(V(u,c)),i.set(t.formatter.formatChanged(n,o.setActive,!1,{value:r})))};return t.initialized?u():t.on("init",u),i.clear}},Fl=function(t){return Ht(t,"menu")},Nl=function(t){return P(t,(function(t){var e=t.text||t.title;return Fl(t)?{text:e,items:Nl(t.menu)}:{text:e,value:t.value}}))},Hl=function(t,e,n,r,o){return P(n,(function(n){var i=n.text||n.title;return Fl(n)?{type:"nestedmenuitem",text:i,getSubmenuItems:function(){return Hl(t,e,n.menu,r,o)}}:{text:i,type:"togglemenuitem",onAction:function(){return o(n.value)},onSetup:Bl(t,e,r,n.value)}}))},Vl=function(t,e){return function(n){var r;t.execCommand("mceTableApplyCellStyle",!1,((r={})[e]=n,r))}},Ul=function(t){return H(t,(function(t){return Fl(t)?[X(X({},t),{menu:Ul(t.menu)})]:ut(t.value)?[t]:[]}))},Wl=function(t,e,n,r,o){return function(i){return i(Hl(t,e,n,r,o))}},$l=function(t,e,n){var r=P(e,(function(t){return{text:t.title,value:"#"+Il(t.value).value,type:"choiceitem"}}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:r.length>0?r:void 0,allowCustomColors:!1},onAction:function(e){var r,o="remove"===e.value?"":e.value;t.execCommand("mceTableApplyCellStyle",!1,((r={})[n]=o,r))}}]},Gl=function(t){return function(){var e="header"===t.queryCommandValue("mceTableRowType")?"body":"header";t.execCommand("mceTableRowType",!1,{type:e})}},Kl=function(t){return function(){var e="th"===t.queryCommandValue("mceTableColType")?"td":"th";t.execCommand("mceTableColType",!1,{type:e})}},ql=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:Ol}],Xl=function(t){return ql.concat(function(t){var e=Nl(Su(t));return e.length>0?C.some({name:"class",type:"listbox",label:"Class",items:e}):C.none()}(t).toArray())},Yl=function(t,e){var n=[{name:"borderstyle",type:"listbox",label:"Border style",items:[{text:"Select...",value:""}].concat(Nl(vu(t)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}];return{title:"Advanced",name:"advanced",items:"cell"===e?[{name:"borderwidth",type:"input",label:"Border width"}].concat(n):n}},Jl=function(t){return function(e,n){var r=e.dom;return{setAttrib:function(e,o){t&&!o||r.setAttrib(n,e,o)},setStyle:function(e,o){t&&!o||r.setStyle(n,e,o)},setFormat:function(r,o){t&&!o||(""===o?e.formatter.remove(r,{value:null},n,!0):e.formatter.apply(r,{value:o},n))}}}},Ql={normal:Jl(!1),ifTruthy:Jl(!0)},Zl=function(t){return function(e){return ot(e,"rgb")?t.toHex(e):e}},tf=function(t,e){var n=xt.fromDom(e);return{borderwidth:$e(n,"border-width").getOr(""),borderstyle:$e(n,"border-style").getOr(""),bordercolor:$e(n,"border-color").map(Zl(t)).getOr(""),backgroundcolor:$e(n,"background-color").map(Zl(t)).getOr("")}},ef=function(t){var e=t[0],n=t.slice(1);return R(n,(function(t){R(Dt(e),(function(n){Pt(t,(function(t,r){var o=e[n];""!==o&&n===r&&o!==t&&(e[n]="")}))}))})),e},nf=function(t,e,n,r){return B(t,(function(t){return!c(n.formatter.matchNode(r,e+t))})).getOr("")},rf=g(nf,["left","center","right"],"align"),of=g(nf,["top","middle","bottom"],"valign"),af=function(t){return an(xt.fromDom(t)).map((function(e){var n={selection:mi(t.cells)};return il(e,n)})).getOr("")},uf=function(t,e){var n=kn.fromTable(t),r=kn.justCells(n),o=z(r,(function(t){return D(e,(function(e){return Et(t.element,e)}))}));return P(o,(function(t){return{element:t.element.dom,column:kn.getColumnAt(n,t.column).map((function(t){return t.element.dom}))}}))},cf=function(t,e,n){var r=1===e.length;R(e,(function(e){var o=e.element,i=r?Ql.normal(t,o):Ql.ifTruthy(t,o);!function(t,e,n){t.setAttrib("scope",n.scope),t.setAttrib("class",n.class),t.setStyle("height",bi(n.height)),e.setStyle("width",bi(n.width))}(i,e.column.map((function(e){return r?Ql.normal(t,e):Ql.ifTruthy(t,e)})).getOr(i),n),_u(t)&&function(t,e){t.setFormat("tablecellbackgroundcolor",e.backgroundcolor),t.setFormat("tablecellbordercolor",e.bordercolor),t.setFormat("tablecellborderstyle",e.borderstyle),t.setFormat("tablecellborderwidth",bi(e.borderwidth))}(i,n),r&&(xl(t,o),function(t,e){yl.each("top middle bottom".split(" "),(function(n){t.formatter.remove("valign"+n,{},e)}))}(t,o)),n.halign&&wl(t,o,n.halign),n.valign&&function(t,e,n){n&&t.formatter.apply("valign"+n,{},e)}(t,o,n.valign)}))},sf=function(t,e,n,r){var o=r.getData();r.close(),t.undoManager.transact((function(){!function(t,e,n,r){var o=zt(r,(function(t,e){return n[e]!==t}));Bt(o)>0&&e.length>=1&&an(e[0]).each((function(n){var i=uf(n,e),a=Bt(zt(o,(function(t,e){return"scope"!==e&&"celltype"!==e})))>0,u=Nt(o,"celltype");(a||Nt(o,"scope"))&&cf(t,i,r),u&&function(t,e){t.execCommand("mceTableCellType",!1,{type:e.celltype,no_events:!0})}(t,r),au(t,n.dom,{structure:u,style:a})}))}(t,e,n,o),t.focus()}))},lf=function(t,e){var n=an(e[0]).map((function(n){return P(uf(n,e),(function(e){return function(t,e,n,r){var o,i=t.dom,a=r.getOr(e),u=function(t,e){return i.getStyle(t,e)||i.getAttrib(t,e)};return X({width:u(a,"width"),height:u(e,"height"),scope:i.getAttrib(e,"scope"),celltype:(o=e,o.nodeName.toLowerCase()),class:i.getAttrib(e,"class",""),halign:rf(t,e),valign:of(t,e)},n?tf(i,e):{})}(t,e.element,_u(t),e.column)}))}));return ef(n.getOrDie())},ff=function(t,e){var n=Mi(e);if(0!==n.length){var r=lf(t,n),o={type:"tabpanel",tabs:[{title:"General",name:"general",items:Xl(t)},Yl(t,"cell")]},i={type:"panel",items:[{type:"grid",columns:2,items:Xl(t)}]};t.windowManager.open({title:"Cell Properties",size:"normal",body:_u(t)?o:i,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:g(sf,t,n,r)})}},df=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],mf=function(t){return df.concat(function(t){var e=Nl(function(t){return t.getParam("table_row_class_list",[],"array")}(t));return e.length>0?C.some({name:"class",type:"listbox",label:"Class",items:e}):C.none()}(t).toArray())},pf=function(t,e,n,r){var o=1===e.length;R(e,(function(e){var i=o?Ql.normal(t,e):Ql.ifTruthy(t,e);!function(t,e){t.setAttrib("class",e.class),t.setStyle("height",bi(e.height))}(i,n),wu(t)&&function(t,e){t.setStyle("background-color",e.backgroundcolor),t.setStyle("border-color",e.bordercolor),t.setStyle("border-style",e.borderstyle)}(i,n),n.align!==r.align&&(xl(t,e),wl(t,e,n.align))}))},hf=function(t,e,n,r){var o=r.getData();r.close(),t.undoManager.transact((function(){!function(t,e,n,r){var o=zt(r,(function(t,e){return n[e]!==t}));if(Bt(o)>0){var i=Nt(o,"type"),a=!i||Bt(o)>1;a&&pf(t,e,r,n),i&&function(t,e){t.execCommand("mceTableRowType",!1,{type:e.type,no_events:!0})}(t,r),an(xt.fromDom(e[0])).each((function(e){return au(t,e.dom,{structure:i,style:a})}))}}(t,e,n,o),t.focus()}))},gf=function(t){var e,n,r,o,i=(e=_i(t),n=Si.selected,r=Ti(e),o=r.bind((function(t){return an(t)})).map((function(t){return un(t)})),Le(r,o,(function(t,e){return z(e,(function(e){return D(mi(e.dom.cells),(function(e){return"1"===Ae(e,n)||Et(e,t)}))}))})).getOr([]));if(0!==i.length){var a=P(i,(function(e){return function(t,e,n){var r=t.dom;return X({height:r.getStyle(e,"height")||r.getAttrib(e,"height"),class:r.getAttrib(e,"class",""),type:af(e),align:rf(t,e)},n?tf(r,e):{})}(t,e.dom,wu(t))})),u=ef(a),c={type:"tabpanel",tabs:[{title:"General",name:"general",items:mf(t)},Yl(t,"row")]},s={type:"panel",items:[{type:"grid",columns:2,items:mf(t)}]};t.windowManager.open({title:"Row Properties",size:"normal",body:wu(t)?c:s,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:u,onSubmit:g(hf,t,P(i,(function(t){return t.dom})),u)})}},vf=function(t,e,n){var r=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],o=function(t){return t.getParam("table_appearance_options",!0,"boolean")}(t)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],i=e.length>0?[{type:"listbox",name:"class",label:"Class",items:e}]:[];return r.concat([{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}]).concat(o).concat([{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}]).concat(i)},bf=function(t,e,n,o){if("TD"===e.tagName||"TH"===e.tagName)r(n)?t.setStyle(e,n,o):t.setStyle(e,n);else if(e.children)for(var i=0;i<e.children.length;i++)bf(t,e.children[i],n,o)},yf=function(t,e,n,r){var o=t.dom,i=r.getData(),a=zt(i,(function(t,e){return n[e]!==t}));r.close(),""===i.class&&delete i.class,t.undoManager.transact((function(){if(!e){var n=parseInt(i.cols,10)||1,r=parseInt(i.rows,10)||1;e=fl(t,n,r,0,0)}if(Bt(a)>0){!function(t,e,n){var r=t.dom,o={},i={};if(o.class=n.class,i.height=bi(n.height),r.getAttrib(e,"width")&&!Ou(t)?o.width=function(t){return t?t.replace(/px$/,""):""}(n.width):i.width=bi(n.width),Ou(t)?(i["border-width"]=bi(n.border),i["border-spacing"]=bi(n.cellspacing)):(o.border=n.border,o.cellpadding=n.cellpadding,o.cellspacing=n.cellspacing),Ou(t)&&e.children)for(var a=0;a<e.children.length;a++)bf(r,e.children[a],{"border-width":bi(n.border),padding:bi(n.cellpadding)}),xu(t)&&bf(r,e.children[a],{"border-color":n.bordercolor});xu(t)&&(i["background-color"]=n.backgroundcolor,i["border-color"]=n.bordercolor,i["border-style"]=n.borderstyle),o.style=r.serializeStyle(X(X({},yu(t)),i)),r.setAttribs(e,X(X({},bu(t)),o))}(t,e,i);var u=o.select("caption",e)[0];(u&&!i.caption||!u&&i.caption)&&t.execCommand("mceTableToggleCaption"),""===i.align?xl(t,e):wl(t,e,i.align)}if(t.focus(),t.addVisual(),Bt(a)>0){var c=Nt(a,"caption"),s=!c||Bt(a)>1;au(t,e,{structure:c,style:s})}}))},_f=function(t,e){var n,r=t.dom,o=function(t,e){var n,r,o,i,a=yu(t),u=bu(t),c=e?(n=t.dom,{borderstyle:Ft(a,"border-style").getOr(""),bordercolor:Zl(n)(Ft(a,"border-color").getOr("")),backgroundcolor:Zl(n)(Ft(a,"background-color").getOr(""))}):{};return X(X(X(X(X(X({},{height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""}),a),u),c),(i=a["border-width"],Ou(t)&&i?{border:i}:Ft(u,"border").fold((function(){return{}}),(function(t){return{border:t}})))),(r=Ft(a,"border-spacing").or(Ft(u,"cellspacing")).fold((function(){return{}}),(function(t){return{cellspacing:t}})),o=Ft(a,"border-padding").or(Ft(u,"cellpadding")).fold((function(){return{}}),(function(t){return{cellpadding:t}})),X(X({},r),o)))}(t,xu(t));!1===e?(n=r.getParent(t.selection.getStart(),"table",t.getBody()))?o=function(t,e,n){var r=t.dom,o=Ou(t)?r.getStyle(e,"border-spacing")||r.getAttrib(e,"cellspacing"):r.getAttrib(e,"cellspacing")||r.getStyle(e,"border-spacing"),i=Ou(t)?_l(r,e,"padding")||r.getAttrib(e,"cellpadding"):r.getAttrib(e,"cellpadding")||_l(r,e,"padding");return X({width:r.getStyle(e,"width")||r.getAttrib(e,"width"),height:r.getStyle(e,"height")||r.getAttrib(e,"height"),cellspacing:o,cellpadding:i,border:function(e,n){var r=$e(xt.fromDom(n),"border-width");return Ou(t)&&r.isSome()?r.getOr(""):e.getAttrib(n,"border")||_l(t.dom,n,"border-width")||_l(t.dom,n,"border")}(r,e),caption:!!r.select("caption",e)[0],class:r.getAttrib(e,"class",""),align:rf(t,e)},n?tf(r,e):{})}(t,n,xu(t)):xu(t)&&(o.borderstyle="",o.bordercolor="",o.backgroundcolor=""):(o.cols="1",o.rows="1",xu(t)&&(o.borderstyle="",o.bordercolor="",o.backgroundcolor=""));var i=Nl(Cu(t));i.length>0&&o.class&&(o.class=o.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:vf(t,i,e)},u=xu(t)?{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},Yl(t,"table")]}:{type:"panel",items:[a]};t.windowManager.open({title:"Table Properties",size:"normal",body:u,onSubmit:g(yf,t,n,o),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:o})},wf=function(t){return ki(_i(t),vi(t))},xf=function(t,e,n,i,a){var u=vi(t),c=function(t){return an(t,u)},s=function(e){return function(t){return Ti(_i(t),vi(t))}(t).bind((function(t){return c(t).map((function(n){return e(n,t)}))}))},l=function(e){t.focus()},f=function(t,e){return void 0===e&&(e=!1),s((function(n,r){var o=Ci(i,n,r);t(n,o,e).each(l)}))},m=function(){return s((function(e,n){var r=Ci(i,e,n),o=fi(d,xt.fromDom(t.getDoc()),C.none());return bl(e,r,o)}))},p=function(){return s((function(t,e){var n=Ci(i,t,e);return vl(t,n)}))},h=function(e,n){return n().each((function(n){var r=P(n,(function(t){return Sr(t)}));s((function(n,o){var a=di(xt.fromDom(t.getDoc())),u=function(t,e,n,r){return{selection:wi(t),clipboard:n,generators:r}}(i,0,r,a);e(n,u).each(l)}))}))},v=function(t){return function(e,n){return Ft(n,"type").each((function(e){f(t(e),n.no_events)}))}};Pt({mceTableSplitCells:function(){return f(e.unmergeCells)},mceTableMergeCells:function(){return f(e.mergeCells)},mceTableInsertRowBefore:function(){return f(e.insertRowsBefore)},mceTableInsertRowAfter:function(){return f(e.insertRowsAfter)},mceTableInsertColBefore:function(){return f(e.insertColumnsBefore)},mceTableInsertColAfter:function(){return f(e.insertColumnsAfter)},mceTableDeleteCol:function(){return f(e.deleteColumn)},mceTableDeleteRow:function(){return f(e.deleteRow)},mceTableCutCol:function(){return p().each((function(t){a.setColumns(t),f(e.deleteColumn)}))},mceTableCutRow:function(){return m().each((function(t){a.setRows(t),f(e.deleteRow)}))},mceTableCopyCol:function(){return p().each((function(t){return a.setColumns(t)}))},mceTableCopyRow:function(){return m().each((function(t){return a.setRows(t)}))},mceTablePasteColBefore:function(){return h(e.pasteColsBefore,a.getColumns)},mceTablePasteColAfter:function(){return h(e.pasteColsAfter,a.getColumns)},mceTablePasteRowBefore:function(){return h(e.pasteRowsBefore,a.getRows)},mceTablePasteRowAfter:function(){return h(e.pasteRowsAfter,a.getRows)},mceTableDelete:function(){return wf(t).each((function(e){an(e,u).filter(y(u)).each((function(e){var n=xt.fromText("");if(Fn(e,n),Gn(e),t.dom.isEmpty(t.getBody()))t.setContent(""),t.selection.setCursorLocation();else{var r=t.dom.createRng();r.setStart(n.dom,0),r.setEnd(n.dom,0),t.selection.setRng(r),t.nodeChanged()}}))}))},mceTableCellToggleClass:function(e,n){s((function(e){var r=Mi(i),o=V(r,(function(e){return t.formatter.match("tablecellclass",{value:n},e.dom)}))?t.formatter.remove:t.formatter.apply;R(r,(function(t){return o("tablecellclass",{value:n},t.dom)})),au(t,e.dom,uu)}))},mceTableToggleClass:function(e,n){s((function(e){t.formatter.toggle("tableclass",{value:n},e.dom),au(t,e.dom,uu)}))},mceTableToggleCaption:function(){wf(t).each((function(e){an(e,u).each((function(n){Ce(n,"caption").fold((function(){var e=xt.fromTag("caption");Hn(e,xt.fromText("Caption")),function(t,e,n){se(t,n).fold((function(){Hn(t,e)}),(function(t){Bn(t,e)}))}(n,e,0),t.selection.setCursorLocation(e.dom,0)}),(function(r){ee("caption")(e)&&Ct("td",n).each((function(e){return t.selection.setCursorLocation(e.dom,0)})),Gn(r)})),au(t,n.dom,cu)}))}))},mceTableSizingMode:function(e,n){return function(e){return wf(t).each((function(n){Tu(t)||ku(t)||Eu(t)||an(n,u).each((function(n){"relative"!==e||aa(n)?"fixed"!==e||ua(n)?"responsive"!==e||ca(n)||Hu(n):Nu(n):Fu(n),yi(n),au(t,n.dom,cu)}))}))}(n)},mceTableCellType:v((function(t){return"th"===t?e.makeCellsHeader:e.unmakeCellsHeader})),mceTableColType:v((function(t){return"th"===t?e.makeColumnsHeader:e.unmakeColumnsHeader})),mceTableRowType:v((function(t){switch(t){case"header":return e.makeRowsHeader;case"footer":return e.makeRowsFooter;default:return e.makeRowsBody}}))},(function(e,n){return t.addCommand(n,e)})),Pt({mceTableProps:g(_f,t,!1),mceTableRowProps:g(gf,t),mceTableCellProps:g(ff,t,i)},(function(e,n){return t.addCommand(n,(function(){return e()}))})),t.addCommand("mceInsertTable",(function(e,n){o(n)&&Dt(n).length>0?dl(t,n.rows,n.columns,n.options):_f(t,!0)})),t.addCommand("mceTableApplyCellStyle",(function(e,n){var a=function(t){return"tablecell"+t.toLowerCase().replace("-","")};if(o(n)){var u=Mi(i);if(0!==u.length){var s=zt(n,(function(e,n){return t.formatter.has(a(n))&&r(e)}));(function(t){for(var e in t)if(At.call(t,e))return!1;return!0})(s)||(Pt(s,(function(e,n){R(u,(function(r){Ql.normal(t,r.dom).setFormat(a(n),e)}))})),c(u[0]).each((function(e){return au(t,e.dom,uu)})))}}}))},Of={remove_similar:!0,inherit:!1},Sf=X({selector:"td,th"},Of),Cf={tablecellbackgroundcolor:X({styles:{backgroundColor:"%value"}},Sf),tablecellverticalalign:X({styles:{"vertical-align":"%value"}},Sf),tablecellbordercolor:X({styles:{borderColor:"%value"}},Sf),tablecellclass:X({classes:["%value"]},Sf),tableclass:X({selector:"table",classes:["%value"]},Of),tablecellborderstyle:X({styles:{borderStyle:"%value"}},Sf),tablecellborderwidth:X({styles:{borderWidth:"%value"}},Sf)},Ef=hr([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),kf=X(X({},Ef),{none:function(t){return void 0===t&&(t=void 0),Ef.none(t)}}),Tf=function(t,e,n,r,o){void 0===o&&(o=w);var i=1===r;if(!i&&n<=0)return kf.first(t[0]);if(i&&n>=t.length-1)return kf.last(t[t.length-1]);var a=n+r,u=t[a];return o(u)?kf.middle(e,u):Tf(t,e,a,r,o)},Mf=function(t,e){return an(t,e).bind((function(e){var n=rn(e);return F(n,(function(e){return Et(t,e)})).map((function(t){return{index:t,all:n}}))}))},Df=function(t,e,n,r){return{start:t,soffset:e,finish:n,foffset:r}},Af=hr([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Pf={before:Af.before,on:Af.on,after:Af.after,cata:function(t,e,n,r){return t.fold(e,n,r)},getStart:function(t){return t.fold(p,p,p)}},Rf=hr([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),If={domRange:Rf.domRange,relative:Rf.relative,exact:Rf.exact,exactFromRange:function(t){return Rf.exact(t.start,t.soffset,t.finish,t.foffset)},getWin:function(t){var e,n=function(t){return t.match({domRange:function(t){return xt.fromDom(t.startContainer)},relative:function(t,e){return Pf.getStart(t)},exact:function(t,e,n,r){return t}})}(t);return e=n,xt.fromDom(re(e).dom.defaultView)},range:Df},zf=function(t,e){var n=t.document.createRange();return n.selectNode(e.dom),n},jf=function(t,e){var n=t.document.createRange();return Lf(n,e),n},Lf=function(t,e){return t.selectNodeContents(e.dom)},Bf=function(t,e,n){var r,o=t.document.createRange();return r=o,e.fold((function(t){r.setStartBefore(t.dom)}),(function(t,e){r.setStart(t.dom,e)}),(function(t){r.setStartAfter(t.dom)})),function(t,e){e.fold((function(e){t.setEndBefore(e.dom)}),(function(e,n){t.setEnd(e.dom,n)}),(function(e){t.setEndAfter(e.dom)}))}(o,n),o},Ff=function(t,e,n,r,o){var i=t.document.createRange();return i.setStart(e.dom,n),i.setEnd(r.dom,o),i},Nf=function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:t.width,height:t.height}},Hf=hr([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Vf=function(t,e,n){return e(xt.fromDom(n.startContainer),n.startOffset,xt.fromDom(n.endContainer),n.endOffset)},Uf=function(t,e){return function(t,e){var n=e.ltr();return n.collapsed?e.rtl().filter((function(t){return!1===t.collapsed})).map((function(t){return Hf.rtl(xt.fromDom(t.endContainer),t.endOffset,xt.fromDom(t.startContainer),t.startOffset)})).getOrThunk((function(){return Vf(0,Hf.ltr,n)})):Vf(0,Hf.ltr,n)}(0,function(t,e){return e.match({domRange:function(t){return{ltr:m(t),rtl:C.none}},relative:function(e,n){return{ltr:J((function(){return Bf(t,e,n)})),rtl:J((function(){return C.some(Bf(t,n,e))}))}},exact:function(e,n,r,o){return{ltr:J((function(){return Ff(t,e,n,r,o)})),rtl:J((function(){return C.some(Ff(t,r,o,e,n))}))}}})}(t,e))},Wf=function(t,e){return Uf(t,e).match({ltr:function(e,n,r,o){var i=t.document.createRange();return i.setStart(e.dom,n),i.setEnd(r.dom,o),i},rtl:function(e,n,r,o){var i=t.document.createRange();return i.setStart(r.dom,o),i.setEnd(e.dom,n),i}})};Hf.ltr,Hf.rtl;var $f=function(t,e,n){return e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom},Gf=function(t,e,n,r,o){var i=function(n){var r=t.dom.createRange();return r.setStart(e.dom,n),r.collapse(!0),r},a=Xn(e).length,u=function(t,e,n,r,o){if(0===o)return 0;if(e===r)return o-1;for(var i=r,a=1;a<o;a++){var u=t(a),c=Math.abs(e-u.left);if(n<=u.bottom){if(n<u.top||c>i)return a-1;i=c}}return 0}((function(t){return i(t).getBoundingClientRect()}),n,r,o.right,a);return i(u)},Kf=function(t,e,n,r){return Qt(e)?function(t,e,n,r){var o=t.dom.createRange();o.selectNode(e.dom);var i=o.getClientRects();return q(i,(function(t){return $f(t,n,r)?C.some(t):C.none()})).map((function(o){return Gf(t,e,n,r,o)}))}(t,e,n,r):function(t,e,n,r){var o=t.dom.createRange(),i=ce(e);return q(i,(function(e){return o.selectNode(e.dom),$f(o.getBoundingClientRect(),n,r)?Kf(t,e,n,r):C.none()}))}(t,e,n,r)},qf=function(t,e){return e-t.left<t.right-e},Xf=function(t,e,n){var r=t.dom.createRange();return r.selectNode(e.dom),r.collapse(n),r},Yf=function(t,e,n){var r=t.dom.createRange();r.selectNode(e.dom);var o=r.getBoundingClientRect(),i=qf(o,n);return(!0===i?ei:ni)(e).map((function(e){return Xf(t,e,i)}))},Jf=function(t,e,n){var r=e.dom.getBoundingClientRect(),o=qf(r,n);return C.some(Xf(t,e,o))},Qf=function(t,e,n){var r,o;return C.from(null===(o=(r=t.dom).caretPositionFromPoint)||void 0===o?void 0:o.call(r,e,n)).bind((function(e){if(null===e.offsetNode)return C.none();var n=t.dom.createRange();return n.setStart(e.offsetNode,e.offset),n.collapse(),C.some(n)}))},Zf=function(t,e,n){var r,o;return C.from(null===(o=(r=t.dom).caretRangeFromPoint)||void 0===o?void 0:o.call(r,e,n))},td=function(t,e,n,r){var o=t.dom.createRange();o.selectNode(e.dom);var i=o.getBoundingClientRect();return function(t,e,n,r){var o=t.dom.createRange();o.selectNode(e.dom);var i=o.getBoundingClientRect(),a=Math.max(i.left,Math.min(i.right,n)),u=Math.max(i.top,Math.min(i.bottom,r));return Kf(t,e,a,u)}(t,e,Math.max(i.left,Math.min(i.right,n)),Math.max(i.top,Math.min(i.bottom,r)))},ed=function(t,e,n){return xt.fromPoint(t,e,n).bind((function(r){var o=function(){return function(t,e,n){return(0===ce(e).length?Jf:Yf)(t,e,n)}(t,r,e)};return 0===ce(r).length?o():td(t,r,e,n).orThunk(o)}))},nd=document.caretPositionFromPoint?Qf:document.caretRangeFromPoint?Zf:ed,rd=function(t,e){var n=Kt(t);return"input"===n?Pf.after(t):M(["br","img"],n)?0===e?Pf.before(t):Pf.after(t):Pf.on(t,e)},od=function(t,e){var n=t.fold(Pf.before,rd,Pf.after),r=e.fold(Pf.before,rd,Pf.after);return If.relative(n,r)},id=function(t,e,n,r){var o=rd(t,e),i=rd(n,r);return If.relative(o,i)},ad=function(t,e,n,r){var o=function(t,e,n,r){var o=ne(t).dom.createRange();return o.setStart(t.dom,e),o.setEnd(n.dom,r),o}(t,e,n,r),i=Et(t,n)&&e===r;return o.collapsed&&!i},ud=function(t){return C.from(t.getSelection())},cd=function(t,e){ud(t).each((function(t){t.removeAllRanges(),t.addRange(e)}))},sd=function(t,e,n,r,o){var i=Ff(t,e,n,r,o);cd(t,i)},ld=function(t,e){return Uf(t,e).match({ltr:function(e,n,r,o){sd(t,e,n,r,o)},rtl:function(e,n,r,o){ud(t).each((function(i){if(i.setBaseAndExtent)i.setBaseAndExtent(e.dom,n,r.dom,o);else if(i.extend)try{!function(t,e,n,r,o,i){e.collapse(n.dom,r),e.extend(o.dom,i)}(0,i,e,n,r,o)}catch(i){sd(t,r,o,e,n)}else sd(t,r,o,e,n)}))}})},fd=function(t,e,n,r,o){var i=id(e,n,r,o);ld(t,i)},dd=function(t,e,n){var r=od(e,n);ld(t,r)},md=function(t){var e=If.getWin(t).dom,n=function(t,n,r,o){return Ff(e,t,n,r,o)},r=function(t){return t.match({domRange:function(t){var e=xt.fromDom(t.startContainer),n=xt.fromDom(t.endContainer);return id(e,t.startOffset,n,t.endOffset)},relative:od,exact:id})}(t);return Uf(e,r).match({ltr:n,rtl:n})},pd=function(t){if(t.rangeCount>0){var e=t.getRangeAt(0),n=t.getRangeAt(t.rangeCount-1);return C.some(Df(xt.fromDom(e.startContainer),e.startOffset,xt.fromDom(n.endContainer),n.endOffset))}return C.none()},hd=function(t){if(null===t.anchorNode||null===t.focusNode)return pd(t);var e=xt.fromDom(t.anchorNode),n=xt.fromDom(t.focusNode);return ad(e,t.anchorOffset,n,t.focusOffset)?C.some(Df(e,t.anchorOffset,n,t.focusOffset)):pd(t)},gd=function(t,e,n){void 0===n&&(n=!0);var r=(n?jf:zf)(t,e);cd(t,r)},vd=function(t){return function(t){return ud(t).filter((function(t){return t.rangeCount>0})).bind(hd)}(t).map((function(t){return If.exact(t.start,t.soffset,t.finish,t.foffset)}))},bd=function(t,e){return function(t){var e=t.getClientRects(),n=e.length>0?e[0]:t.getBoundingClientRect();return n.width>0||n.height>0?C.some(n).map(Nf):C.none()}(Wf(t,e))},yd=function(t,e,n){return function(t,e,n){var r=xt.fromDom(t.document);return nd(r,e,n).map((function(t){return Df(xt.fromDom(t.startContainer),t.startOffset,xt.fromDom(t.endContainer),t.endOffset)}))}(t,e,n)},_d=tinymce.util.Tools.resolve("tinymce.util.VK"),wd=function(t,e,n){return Od(t,e,function(t,e,n){return Mf(t,n).fold((function(){return kf.none(t)}),(function(n){return Tf(n.all,t,n.index,1,e)}))}(n,Ba))},xd=function(t,e,n){return Od(t,e,function(t,e,n){return Mf(t,n).fold((function(){return kf.none()}),(function(n){return Tf(n.all,t,n.index,-1,e)}))}(n,Ba))},Od=function(t,e,n){return n.fold(C.none,C.none,(function(t,e){return ei(e).map((function(t){return function(t,e){var n=If.exact(e,0,e,0);return md(n)}(0,t)}))}),(function(n){return t.execCommand("mceTableInsertRowAfter"),wd(t,e,n)}))},Sd=["table","li","dl"],Cd=function(t,e){return{selection:t,kill:e}},Ed=function(t,e,n,r){return{start:Pf.on(t,e),finish:Pf.on(n,r)}},kd=function(t,e){var n=Wf(t,e);return Df(xt.fromDom(n.startContainer),n.startOffset,xt.fromDom(n.endContainer),n.endOffset)},Td=Ed,Md=function(t,e,n,r,o){return Et(n,r)?C.none():sr(n,r,e).bind((function(e){var r=e.boxes.getOr([]);return r.length>1?(o(t,r,e.start,e.finish),C.some(Cd(C.some(Td(n,0,n,Qo(n))),!0))):C.none()}))},Dd=function(t,e){return{item:t,mode:e}},Ad=function(t,e,n,r){return void 0===r&&(r=Pd),t.property().parent(e).map((function(t){return Dd(t,r)}))},Pd=function(t,e,n,r){return void 0===r&&(r=Rd),n.sibling(t,e).map((function(t){return Dd(t,r)}))},Rd=function(t,e,n,r){void 0===r&&(r=Rd);var o=t.property().children(e);return n.first(o).map((function(t){return Dd(t,r)}))},Id=[{current:Ad,next:Pd,fallback:C.none()},{current:Pd,next:Rd,fallback:C.some(Ad)},{current:Rd,next:Rd,fallback:C.some(Pd)}],zd=function(t,e,n,r,o){return void 0===o&&(o=Id),B(o,(function(t){return t.current===n})).bind((function(n){return n.current(t,e,r,n.next).orThunk((function(){return n.fallback.bind((function(n){return zd(t,e,n,r)}))}))}))},jd=function(){return{sibling:function(t,e){return t.query().prevSibling(e)},first:function(t){return t.length>0?C.some(t[t.length-1]):C.none()}}},Ld=function(){return{sibling:function(t,e){return t.query().nextSibling(e)},first:function(t){return t.length>0?C.some(t[0]):C.none()}}},Bd=function(t,e,n,r,o,i){return zd(t,e,r,o).bind((function(e){return i(e.item)?C.none():n(e.item)?C.some(e.item):Bd(t,e.item,n,e.mode,o,i)}))},Fd=function(t){return function(e){return 0===t.property().children(e).length}},Nd=function(t,e,n,r){return Bd(t,e,n,Pd,jd(),r)},Hd=function(t,e,n,r){return Bd(t,e,n,Pd,Ld(),r)},Vd=Zn(),Ud=function(t,e){return function(t,e,n){return Nd(t,e,Fd(t),n)}(Vd,t,e)},Wd=function(t,e){return function(t,e,n){return Hd(t,e,Fd(t),n)}(Vd,t,e)},$d=hr([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Gd=function(t){return ke(t,"tr")},Kd=X(X({},$d),{verify:function(t,e,n,r,o,i,a){return ke(r,"td,th",a).bind((function(n){return ke(e,"td,th",a).map((function(e){return Et(n,e)?Et(r,n)&&Qo(n)===o?i(e):$d.none("in same cell"):ur(Gd,[n,e]).fold((function(){return function(t,e,n){var r=t.getRect(e),o=t.getRect(n);return o.right>r.left&&o.left<r.right}(t,e,n)?$d.success():i(e)}),(function(t){return i(e)}))}))})).getOr($d.none("default"))},cata:function(t,e,n,r,o){return t.fold(e,n,r,o)}}),qd=function(t,e){return F(t,g(Et,e))},Xd=function(t){return"br"===Kt(t)},Yd=function(t,e,n){return e(t,n).bind((function(t){return Qt(t)&&0===Xn(t).trim().length?Yd(t,e,n):C.some(t)}))},Jd=function(t,e,n,r){return function(t,e){return se(t,e).filter(Xd).orThunk((function(){return se(t,e-1).filter(Xd)}))}(e,n).bind((function(e){return r.traverse(e).fold((function(){return Yd(e,r.gather,t).map(r.relative)}),(function(t){return function(t){return oe(t).bind((function(e){var n=ce(e);return qd(n,t).map((function(r){return function(t,e,n,r){return{parent:t,children:e,element:n,index:r}}(e,n,t,r)}))}))}(t).map((function(t){return Pf.on(t.parent,t.index)}))}))}))},Qd=function(t,e,n,r){return(Xd(e)?function(t,e,n){return n.traverse(e).orThunk((function(){return Yd(e,n.gather,t)})).map(n.relative)}(t,e,r):Jd(t,e,n,r)).map((function(t){return{start:t,finish:t}}))},Zd=function(t,e){return{left:t.left,top:t.top+e,right:t.right,bottom:t.bottom+e}},tm=function(t,e){return{left:t.left,top:t.top-e,right:t.right,bottom:t.bottom-e}},em=function(t,e,n){return{left:t.left+e,top:t.top+n,right:t.right+e,bottom:t.bottom+n}},nm=function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}},rm=function(t,e){return C.some(t.getRect(e))},om=function(t,e,n){return Jt(e)?rm(t,e).map(nm):Qt(e)?function(t,e,n){return n>=0&&n<Qo(e)?t.getRangedRect(e,n,e,n+1):n>0?t.getRangedRect(e,n-1,e,n):C.none()}(t,e,n).map(nm):C.none()},im=function(t,e){return Jt(e)?rm(t,e).map(nm):Qt(e)?t.getRangedRect(e,0,e,Qo(e)).map(nm):C.none()},am=hr([{none:[]},{retry:["caret"]}]),um=function(t,e,n){return(r=e,o=ms,xe((function(t,e){return e(t)}),Oe,r,o,i)).fold(_,(function(e){return im(t,e).exists((function(t){return function(t,e){return t.left<e.left||Math.abs(e.right-t.left)<1||t.left>e.right}(n,t)}))}));var r,o,i},cm={point:function(t){return t.bottom},adjuster:function(t,e,n,r,o){var i=Zd(o,5);return Math.abs(n.bottom-r.bottom)<1||n.top>o.bottom?am.retry(i):n.top===o.bottom?am.retry(Zd(o,1)):um(t,e,o)?am.retry(em(i,5,0)):am.none()},move:Zd,gather:Wd},sm=function(t,e,n,r,o){return 0===o?C.some(r):function(t,e,n){return t.elementFromPoint(e,n).filter((function(t){return"table"===Kt(t)})).isSome()}(t,r.left,e.point(r))?function(t,e,n,r,o){return sm(t,e,n,e.move(r,5),o)}(t,e,n,r,o-1):t.situsFromPoint(r.left,e.point(r)).bind((function(i){return i.start.fold(C.none,(function(i){return im(t,i).bind((function(a){return e.adjuster(t,i,a,n,r).fold(C.none,(function(r){return sm(t,e,n,r,o-1)}))})).orThunk((function(){return C.some(r)}))}),C.none)}))},lm=function(t,e,n){var r=t.move(n,5),o=sm(e,t,n,r,100).getOr(r);return function(t,e,n){return t.point(e)>n.getInnerHeight()?C.some(t.point(e)-n.getInnerHeight()):t.point(e)<0?C.some(-t.point(e)):C.none()}(t,o,e).fold((function(){return e.situsFromPoint(o.left,t.point(o))}),(function(n){return e.scrollBy(0,n),e.situsFromPoint(o.left,t.point(o)-n)}))},fm={tryUp:g(lm,{point:function(t){return t.top},adjuster:function(t,e,n,r,o){var i=tm(o,5);return Math.abs(n.top-r.top)<1||n.bottom<o.top?am.retry(i):n.bottom===o.top?am.retry(tm(o,1)):um(t,e,o)?am.retry(em(i,5,0)):am.none()},move:tm,gather:Ud}),tryDown:g(lm,cm),ieTryUp:function(t,e){return t.situsFromPoint(e.left,e.top-5)},ieTryDown:function(t,e){return t.situsFromPoint(e.left,e.bottom+5)},getJumpSize:m(5)},dm=function(t,e,n){return t.getSelection().bind((function(r){return Qd(e,r.finish,r.foffset,n).fold((function(){return C.some($u(r.finish,r.foffset))}),(function(o){var i=t.fromSitus(o);return function(t){return Kd.cata(t,(function(t){return C.none()}),(function(){return C.none()}),(function(t){return C.some($u(t,0))}),(function(t){return C.some($u(t,Qo(t)))}))}(Kd.verify(t,r.finish,r.foffset,i.finish,i.foffset,n.failure,e))}))}))},mm=function(t,e,n,r,o,i){return 0===i?C.none():gm(t,e,n,r,o).bind((function(a){var u=t.fromSitus(a),c=Kd.verify(t,n,r,u.finish,u.foffset,o.failure,e);return Kd.cata(c,(function(){return C.none()}),(function(){return C.some(a)}),(function(a){return Et(n,a)&&0===r?pm(t,n,r,tm,o):mm(t,e,a,0,o,i-1)}),(function(a){return Et(n,a)&&r===Qo(a)?pm(t,n,r,Zd,o):mm(t,e,a,Qo(a),o,i-1)}))}))},pm=function(t,e,n,r,o){return om(t,e,n).bind((function(e){return hm(t,o,r(e,fm.getJumpSize()))}))},hm=function(t,e,n){var r=_t().browser;return r.isChrome()||r.isSafari()||r.isFirefox()||r.isEdge()?e.otherRetry(t,n):r.isIE()?e.ieRetry(t,n):C.none()},gm=function(t,e,n,r,o){return om(t,n,r).bind((function(e){return hm(t,o,e)}))},vm=function(t,e){return Oe(t,(function(t){return oe(t).exists((function(t){return Et(t,e)}))}),n).isSome();var n},bm=function(t,e,n,r,o){return ke(r,"td,th",e).bind((function(r){return ke(r,"table",e).bind((function(i){return vm(o,i)?function(t,e,n){return dm(t,e,n).bind((function(r){return mm(t,e,r.element,r.offset,n,20).map(t.fromSitus)}))}(t,e,n).bind((function(t){return ke(t.finish,"td,th",e).map((function(e){return{start:r,finish:e,range:t}}))})):C.none()}))}))},ym=function(t,e,n,r,o,i){return _t().browser.isIE()?C.none():i(r,e).orThunk((function(){return bm(t,e,n,r,o).map((function(t){var e=t.range;return Cd(C.some(Td(e.start,e.soffset,e.finish,e.foffset)),!0)}))}))},_m=function(t,e){return ke(t,"tr",e).bind((function(t){return ke(t,"table",e).bind((function(n){var r=we(n,"tr");return Et(t,r[0])?function(t,e,n){return Nd(Vd,t,e,n)}(n,(function(t){return ni(t).isSome()}),e).map((function(t){var e=Qo(t);return Cd(C.some(Td(t,e,t,e)),!0)})):C.none()}))}))},wm=function(t,e){return ke(t,"tr",e).bind((function(t){return ke(t,"table",e).bind((function(n){var r=we(n,"tr");return Et(t,r[r.length-1])?function(t,e,n){return Hd(Vd,t,e,n)}(n,(function(t){return ei(t).isSome()}),e).map((function(t){return Cd(C.some(Td(t,0,t,0)),!0)})):C.none()}))}))},xm=function(t,e,n,r,o,i,a){return bm(t,n,r,o,i).bind((function(t){return Md(e,n,t.start,t.finish,a)}))},Om=function(t,e){return ke(t,"td,th",e)},Sm={traverse:ue,gather:Wd,relative:Pf.before,otherRetry:fm.tryDown,ieRetry:fm.ieTryDown,failure:Kd.failedDown},Cm={traverse:ae,gather:Ud,relative:Pf.before,otherRetry:fm.tryUp,ieRetry:fm.ieTryUp,failure:Kd.failedUp},Em=function(t){return function(e){return e===t}},km=Em(38),Tm=Em(40),Mm=function(t){return t>=37&&t<=40},Dm={isBackward:Em(37),isForward:Em(39)},Am={isBackward:Em(39),isForward:Em(37)},Pm=function(t){return{elementFromPoint:function(e,n){return xt.fromPoint(xt.fromDom(t.document),e,n)},getRect:function(t){return t.dom.getBoundingClientRect()},getRangedRect:function(e,n,r,o){var i=If.exact(e,n,r,o);return bd(t,i)},getSelection:function(){return vd(t).map((function(e){return kd(t,e)}))},fromSitus:function(e){var n=If.relative(e.start,e.finish);return kd(t,n)},situsFromPoint:function(e,n){return yd(t,e,n).map((function(t){return Ed(t.start,t.soffset,t.finish,t.foffset)}))},clearSelection:function(){!function(t){ud(t).each((function(t){return t.removeAllRanges()}))}(t)},collapseSelection:function(e){void 0===e&&(e=!1),vd(t).each((function(n){return n.fold((function(t){return t.collapse(e)}),(function(n,r){var o=e?n:r;dd(t,o,o)}),(function(n,r,o,i){var a=e?n:o,u=e?r:i;fd(t,a,u,a,u)}))}))},setSelection:function(e){fd(t,e.start,e.soffset,e.finish,e.foffset)},setRelativeSelection:function(e,n){dd(t,e,n)},selectNode:function(e){gd(t,e,!1)},selectContents:function(e){gd(t,e)},getInnerHeight:function(){return t.innerHeight},getScrollY:function(){var e,n,r,o;return(e=xt.fromDom(t.document),n=void 0!==e?e.dom:document,r=n.body.scrollLeft||n.documentElement.scrollLeft,o=n.body.scrollTop||n.documentElement.scrollTop,Xr(r,o)).top},scrollBy:function(e,n){!function(t,e,n){var r=(void 0!==n?n.dom:document).defaultView;r&&r.scrollBy(t,e)}(e,n,xt.fromDom(t.document))}}},Rm=function(t,e){return{rows:t,cols:e}},Im=function(t,e,n,r){var o=function(t,e,n,r){var o=Ll(),i=o.clear,a=function(i){o.on((function(o){r.clearBeforeUpdate(e),Om(i.target,n).each((function(a){sr(o,a,n).each((function(n){var o=n.boxes.getOr([]);if(1===o.length){var u=o[0],c="false"===Fa(u),s=ze(La(i.target),u,Et);c&&s&&(r.selectRange(e,o,u,u),t.selectContents(u))}else o.length>1&&(r.selectRange(e,o,n.start,n.finish),t.selectContents(a))}))}))}))};return{clearstate:i,mousedown:function(t){r.clear(e),Om(t.target,n).each(o.set)},mouseover:function(t){a(t)},mouseup:function(t){a(t),i()}}}(Pm(t),e,n,r);return{clearstate:o.clearstate,mousedown:o.mousedown,mouseover:o.mouseover,mouseup:o.mouseup}},zm=function(t,e,n,r){var o=Pm(t),i=function(){return r.clear(e),C.none()};return{keydown:function(t,a,u,c,s,l){var f=t.raw,d=f.which,m=!0===f.shiftKey;return lr(e,r.selectedSelector).fold((function(){return Mm(d)&&!m&&r.clearBeforeUpdate(e),Tm(d)&&m?g(xm,o,e,n,Sm,c,a,r.selectRange):km(d)&&m?g(xm,o,e,n,Cm,c,a,r.selectRange):Tm(d)?g(ym,o,n,Sm,c,a,wm):km(d)?g(ym,o,n,Cm,c,a,_m):C.none}),(function(t){var n=function(n){return function(){return q(n,(function(n){return function(t,e,n,r,o){return dr(r,t,e,o.firstSelectedSelector,o.lastSelectedSelector).map((function(t){return o.clearBeforeUpdate(n),o.selectRange(n,t.boxes,t.start,t.finish),t.boxes}))}(n.rows,n.cols,e,t,r)})).fold((function(){return fr(e,r.firstSelectedSelector,r.lastSelectedSelector).map((function(t){var n=Tm(d)||l.isForward(d)?Pf.after:Pf.before;return o.setRelativeSelection(Pf.on(t.first,0),n(t.table)),r.clear(e),Cd(C.none(),!0)}))}),(function(t){return C.some(Cd(C.none(),!0))}))}};return Tm(d)&&m?n([Rm(1,0)]):km(d)&&m?n([Rm(-1,0)]):l.isBackward(d)&&m?n([Rm(0,-1),Rm(-1,0)]):l.isForward(d)&&m?n([Rm(0,1),Rm(1,0)]):Mm(d)&&!m?i:C.none}))()},keyup:function(t,o,i,a,u){return lr(e,r.selectedSelector).fold((function(){var c=t.raw,s=c.which;return!0===c.shiftKey&&Mm(s)?function(t,e,n,r,o,i,a){return Et(n,o)&&r===i?C.none():ke(n,"td,th",e).bind((function(n){return ke(o,"td,th",e).bind((function(r){return Md(t,e,n,r,a)}))}))}(e,n,o,i,a,u,r.selectRange):C.none()}),C.none)}}},jm=function(t,e,n){var r=function(e){Re(e,t.selected),Re(e,t.firstSelected),Re(e,t.lastSelected)},o=function(e){Me(e,t.selected,"1")},i=function(t){a(t),n()},a=function(e){var n=we(e,t.selectedSelector+","+t.firstSelectedSelector+","+t.lastSelectedSelector);R(n,r)};return{clearBeforeUpdate:a,clear:i,selectRange:function(n,r,a,u){i(n),R(r,o),Me(a,t.firstSelected,"1"),Me(u,t.lastSelected,"1"),e(r,a,u)},selectedSelector:t.selectedSelector,firstSelectedSelector:t.firstSelectedSelector,lastSelectedSelector:t.lastSelectedSelector}},Lm=function(t,e,n){var r=kn.fromTable(t);return Cc(r,e).map((function(t){var e=yc(r,n,!1);return{upOrLeftCells:function(t,e){var n=t.slice(0,e[e.length-1].row+1),r=_c(n);return H(r,(function(t){var n=t.cells.slice(0,e[e.length-1].column+1);return P(n,(function(t){return t.element}))}))}(e,t),downOrRightCells:function(t,e){var n=t.slice(e[0].row+e[0].rowspan-1,t.length),r=_c(n);return H(r,(function(t){var n=t.cells.slice(e[0].column+e[0].colspan-1,t.cells.length);return P(n,(function(t){return t.element}))}))}(e,t)}}))},Bm=tinymce.util.Tools.resolve("tinymce.Env"),Fm=function(t){return!1===Pa(xt.fromDom(t.target),"ephox-snooker-resizer-bar")};function Nm(t,e,n){var r=jm(Si,(function(e,r,o){n.targets().each((function(n){an(r).each((function(i){var a=Iu(t),u=fi(d,xt.fromDom(t.getDoc()),a),c=Lm(i,n,u);!function(t,e,n,r,o){t.fire("TableSelectionChange",{cells:e,start:n,finish:r,otherCells:o})}(t,e,r,o,c)}))}))}),(function(){return function(t){t.fire("TableSelectionClear")}(t)}));return t.on("init",(function(n){var o=t.getWin(),i=pi(t),a=vi(t),u=Im(o,i,a,r),c=zm(o,i,a,r),s=function(t,e,n,r){var o=Pm(t);return function(t,i){r.clearBeforeUpdate(e),sr(t,i,n).each((function(t){var n=t.boxes.getOr([]);r.selectRange(e,n,t.start,t.finish),o.selectContents(i),o.collapseSelection()}))}}(o,i,a,r);t.on("TableSelectorChange",(function(t){return s(t.start,t.finish)}));var l,f,m=function(e,n){(function(t){return!0===t.raw.shiftKey})(e)&&(n.kill&&e.kill(),n.selection.each((function(e){var n=If.relative(e.start,e.finish),r=Wf(o,n);t.selection.setRng(r)})))},p=function(t){return 0===t.button},h=(l=zl(xt.fromDom(i)),f=zl(0),{touchEnd:function(t){var e=xt.fromDom(t.target);if("td"===Kt(e)||"th"===Kt(e)){var n=l.get(),r=f.get();Et(n,e)&&t.timeStamp-r<300&&(t.preventDefault(),s(e,e))}l.set(e),f.set(t.timeStamp)}});t.on("dragstart",(function(t){u.clearstate()})),t.on("mousedown",(function(t){p(t)&&Fm(t)&&u.mousedown(ka(t))})),t.on("mouseover",(function(t){var e;(void 0===(e=t).buttons||Bm.browser.isEdge()&&0===e.buttons||0!=(1&e.buttons))&&Fm(t)&&u.mouseover(ka(t))})),t.on("mouseup",(function(t){p(t)&&Fm(t)&&u.mouseup(ka(t))})),t.on("touchend",h.touchEnd),t.on("keyup",(function(e){var n=ka(e);if(n.raw.shiftKey&&Mm(n.raw.which)){var r=t.selection.getRng(),o=xt.fromDom(r.startContainer),i=xt.fromDom(r.endContainer);c.keyup(n,o,r.startOffset,i,r.endOffset).each((function(t){m(n,t)}))}})),t.on("keydown",(function(n){var r=ka(n);e().each((function(t){return t.hideBars()}));var o=t.selection.getRng(),i=xt.fromDom(o.startContainer),a=xt.fromDom(o.endContainer),u=Vr(Dm,Am)(xt.fromDom(t.selection.getStart()));c.keydown(r,i,o.startOffset,a,o.endOffset,u).each((function(t){m(r,t)})),e().each((function(t){return t.showBars()}))})),t.on("NodeChange",(function(){var e=t.selection,n=xt.fromDom(e.getStart()),o=xt.fromDom(e.getEnd());ur(an,[n,o]).fold((function(){return r.clear(i)}),d)}))})),{clear:r.clear}}var Hm=function(t,e){var n=zl(C.none()),r=zl([]),o=C.none(),i=ee("caption"),a=function(t){return o.forall((function(e){return!e[t]}))},u=function(){return ki(function(t){return xt.fromDom(t.selection.getEnd())}(t),vi(t))},c=function(){return ki(_i(t),vi(t)).bind((function(t){return Le(an(t),u().bind(an),(function(n,r){return Et(n,r)?i(t)?C.some(function(t){return{element:t,mergable:C.none(),unmergable:C.none(),selection:[t]}}(t)):C.some(Ci(e,n,t)):C.none()})).bind(p)}))},s=function(t){return an(t.element).map((function(e){var n=kn.fromTable(e),r=Cc(n,t).getOr([]),o=L(r,(function(t,e){return e.isLocked&&(t.onAny=!0,0===e.column?t.onFirst=!0:e.column+e.colspan>=n.grid.columns&&(t.onLast=!0)),t}),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:Tc(n,t).isSome(),unmergeable:Mc(n,t).isSome(),locked:o}}))},l=function(){n.set(J(c)()),o=n.get().bind(s),R(r.get(),(function(t){return t()}))},f=function(t){return t(),r.set(r.get().concat([t])),function(){r.set(z(r.get(),(function(e){return e!==t})))}},d=function(t,e){return f((function(){return n.get().fold((function(){t.setDisabled(!0)}),(function(n){t.setDisabled(e(n))}))}))},m=function(t,e,r){return f((function(){return n.get().fold((function(){t.setDisabled(!0),t.setActive(!1)}),(function(n){t.setDisabled(e(n)),t.setActive(r(n))}))}))},h=function(t){return o.exists((function(e){return e.locked[t]}))},g=function(e,n){return function(r){return m(r,(function(t){return i(t.element)}),(function(){return t.queryCommandValue(e)===n}))}},v=g("mceTableRowType","header"),b=g("mceTableColType","th");return t.on("NodeChange ExecCommand TableSelectorChange",l),{onSetupTable:function(t){return d(t,(function(t){return!1}))},onSetupCellOrRow:function(t){return d(t,(function(t){return i(t.element)}))},onSetupColumn:function(t){return function(e){return d(e,(function(e){return i(e.element)||h(t)}))}},onSetupPasteable:function(t){return function(e){return d(e,(function(e){return i(e.element)||t().isNone()}))}},onSetupPasteableColumn:function(t,e){return function(n){return d(n,(function(n){return i(n.element)||t().isNone()||h(e)}))}},onSetupMergeable:function(t){return d(t,(function(t){return a("mergeable")}))},onSetupUnmergeable:function(t){return d(t,(function(t){return a("unmergeable")}))},resetTargets:l,onSetupTableWithCaption:function(e){return m(e,_,(function(e){return an(e.element,vi(t)).exists((function(t){return Ce(t,"caption").isSome()}))}))},onSetupTableRowHeaders:v,onSetupTableColumnHeaders:b,targets:n.get}},Vm=function(t){var e=function(t,e,n){return{get:function(){return mr(t(),n).fold((function(){return e().fold(br,_r)}),(function(t){return yr(t)}))}}}((function(){return pi(t)}),(function(){return Ti(_i(t),vi(t))}),Si.selectedSelector),n=Hm(t,e),r=Wu(t),o=Nm(t,r.lazyResize,n),i=al(t,o,r.lazyWire),a=function(){var t=Ll(),e=Ll();return{getRows:t.get,setRows:function(n){n.fold(t.clear,t.set),e.clear()},clearRows:t.clear,getColumns:e.get,setColumns:function(n){n.fold(e.clear,e.set),t.clear()},clearColumns:e.clear}}();return xf(t,i,0,e,a),function(t,e,n){var r=vi(t),o=function(e){return Ti(_i(t)).bind((function(t){return an(t,r).map((function(r){var o=Ci(n,r,t);return e(r,o)}))})).getOr("")};Pt({mceTableRowType:function(){return o(e.getTableRowType)},mceTableCellType:function(){return o(e.getTableCellType)},mceTableColType:function(){return o(e.getTableColType)}},(function(e,n){return t.addQueryValueHandler(n,e)}))}(t,i,e),Di(t,e,i),function(t,e,n,r){var o=function(e){return function(){return t.execCommand(e)}},i=function(e){t.execCommand("mceInsertTable",!1,{rows:e.numRows,columns:e.numColumns})},a={text:"Table properties",onSetup:n.onSetupTable,onAction:o("mceTableProps")},u={text:"Delete table",icon:"table-delete-table",onSetup:n.onSetupTable,onAction:o("mceTableDelete")};t.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:o("mceTableInsertRowBefore"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:o("mceTableInsertRowAfter"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:o("mceTableDeleteRow"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:o("mceTableRowProps"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:o("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:o("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:o("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),t.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:o("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)});var c={type:"nestedmenuitem",text:"Row",getSubmenuItems:m("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")};t.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:o("mceTableInsertColBefore"),onSetup:n.onSetupColumn("onFirst")}),t.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:o("mceTableInsertColAfter"),onSetup:n.onSetupColumn("onLast")}),t.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:o("mceTableDeleteCol"),onSetup:n.onSetupColumn("onAny")}),t.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:o("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),t.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:o("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),t.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:o("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),t.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:o("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")});var s={type:"nestedmenuitem",text:"Column",getSubmenuItems:m("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")};t.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:o("mceTableCellProps"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:o("mceTableMergeCells"),onSetup:n.onSetupMergeable}),t.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:o("mceTableSplitCells"),onSetup:n.onSetupUnmergeable});var l={type:"nestedmenuitem",text:"Cell",getSubmenuItems:m("tablecellprops tablemergecells tablesplitcells")};!1===function(t){return t.getParam("table_grid",!0,"boolean")}(t)?t.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:o("mceInsertTable")}):t.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:i}]}}),t.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:o("mceInsertTable")}),t.ui.registry.addMenuItem("tableprops",a),t.ui.registry.addMenuItem("deletetable",u),t.ui.registry.addNestedMenuItem("row",c),t.ui.registry.addNestedMenuItem("column",s),t.ui.registry.addNestedMenuItem("cell",l),t.ui.registry.addContextMenu("table",{update:function(){return n.resetTargets(),n.targets().fold(m(""),(function(t){return"caption"===Kt(t.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}});var f=Ul(Cu(t));0!==f.length&&t.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return Hl(t,e,f,"tableclass",(function(e){return t.execCommand("mceTableToggleClass",!1,e)}))},onSetup:n.onSetupTable});var d=Ul(Su(t));0!==d.length&&t.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return Hl(t,e,d,"tablecellclass",(function(e){return t.execCommand("mceTableCellToggleClass",!1,e)}))},onSetup:n.onSetupCellOrRow}),t.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return Hl(t,e,Ol,"tablecellverticalalign",Vl(t,"vertical-align"))},onSetup:n.onSetupCellOrRow}),t.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return Hl(t,e,gu(t),"tablecellborderwidth",Vl(t,"border-width"))},onSetup:n.onSetupCellOrRow}),t.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return Hl(t,e,vu(t),"tablecellborderstyle",Vl(t,"border-style"))},onSetup:n.onSetupCellOrRow}),t.ui.registry.addToggleMenuItem("tablecaption",{icon:"table-caption",text:"Table caption",onAction:o("mceTableToggleCaption"),onSetup:n.onSetupTableWithCaption}),t.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return $l(t,zu(t),"background-color")},onSetup:n.onSetupCellOrRow}),t.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return $l(t,ju(t),"border-color")},onSetup:n.onSetupCellOrRow}),t.ui.registry.addToggleMenuItem("tablerowheader",{text:"Row header",icon:"table-top-header",onAction:Gl(t),onSetup:n.onSetupTableRowHeaders}),t.ui.registry.addToggleMenuItem("tablecolheader",{text:"Column header",icon:"table-left-header",onAction:Kl(t),onSetup:n.onSetupTableColumnHeaders})}(t,e,n,a),function(t,e,n,r){t.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(t){return t("inserttable | cell row column | advtablesort | tableprops deletetable")}});var o=function(e){return function(){return t.execCommand(e)}};t.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:o("mceTableProps"),icon:"table",onSetup:n.onSetupTable}),t.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:o("mceTableDelete"),icon:"table-delete-table",onSetup:n.onSetupTable}),t.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:o("mceTableCellProps"),icon:"table-cell-properties",onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:o("mceTableMergeCells"),icon:"table-merge-cells",onSetup:n.onSetupMergeable}),t.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:o("mceTableSplitCells"),icon:"table-split-cells",onSetup:n.onSetupUnmergeable}),t.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:o("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:o("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:o("mceTableDeleteRow"),icon:"table-delete-row",onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:o("mceTableRowProps"),icon:"table-row-properties",onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:o("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:n.onSetupColumn("onFirst")}),t.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:o("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:n.onSetupColumn("onLast")}),t.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:o("mceTableDeleteCol"),icon:"table-delete-column",onSetup:n.onSetupColumn("onAny")}),t.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:o("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:o("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:o("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),t.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:o("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)}),t.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:o("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),t.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:o("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),t.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:o("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),t.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:o("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")}),t.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:o("mceInsertTable"),icon:"table"});var i=Ul(Cu(t));0!==i.length&&t.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:Wl(t,e,i,"tableclass",(function(e){return t.execCommand("mceTableToggleClass",!1,e)})),onSetup:n.onSetupTable});var a=Ul(Su(t));0!==a.length&&t.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:Wl(t,e,a,"tablecellclass",(function(e){return t.execCommand("mceTableCellToggleClass",!1,e)})),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:Wl(t,e,Ol,"tablecellverticalalign",Vl(t,"vertical-align")),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:Wl(t,e,gu(t),"tablecellborderwidth",Vl(t,"border-width")),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:Wl(t,e,vu(t),"tablecellborderstyle",Vl(t,"border-style")),onSetup:n.onSetupCellOrRow}),t.ui.registry.addToggleButton("tablecaption",{tooltip:"Table caption",onAction:o("mceTableToggleCaption"),icon:"table-caption",onSetup:n.onSetupTableWithCaption}),t.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:function(e){return e($l(t,zu(t),"background-color"))},onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function(e){return e($l(t,ju(t),"border-color"))},onSetup:n.onSetupCellOrRow}),t.ui.registry.addToggleButton("tablerowheader",{tooltip:"Row header",icon:"table-top-header",onAction:Gl(t),onSetup:n.onSetupTableRowHeaders}),t.ui.registry.addToggleButton("tablecolheader",{tooltip:"Column header",icon:"table-left-header",onAction:Kl(t),onSetup:n.onSetupTableColumnHeaders})}(t,e,n,a),function(t){var e=function(t){return t.getParam("table_toolbar","tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol")}(t);e.length>0&&t.ui.registry.addContextToolbar("table",{predicate:function(e){return t.dom.is(e,"table")&&t.getBody().contains(e)},items:e,scope:"node",position:"node"})}(t),t.on("PreInit",(function(){t.serializer.addTempAttr(Si.firstSelected),t.serializer.addTempAttr(Si.lastSelected),function(t){t.formatter.register(Cf)}(t)})),function(t){return t.getParam("table_tab_navigation",!0,"boolean")}(t)&&t.on("keydown",(function(e){!function(t,e,n){if(t.keyCode===_d.TAB){var r=pi(e),o=function(t){var e=Kt(t);return Et(t,r)||M(Sd,e)},i=e.selection.getRng(),a=xt.fromDom(t.shiftKey?i.startContainer:i.endContainer);nn(a,o).each((function(r){t.preventDefault(),an(r,o).each(n.clear),e.selection.collapse(t.shiftKey),(t.shiftKey?xd:wd)(e,o,r).each((function(t){e.selection.setRng(t)}))}))}}(e,t,o)})),t.on("remove",(function(){r.destroy()})),function(t,e,n,r){return{insertTable:hl(t),setClipboardRows:pl(e.setRows),getClipboardRows:ml(e.getRows),setClipboardCols:pl(e.setColumns),getClipboardCols:ml(e.getColumns),resizeHandler:n,selectionTargets:r}}(t,a,r,n)};wr.add("table",Vm)}()},"953b":function(t,e,n){"use strict";var r=n("dc19"),o=n("cb27"),i=n("8e16"),a=n("7f65"),u=n("384f"),c=n("5388"),s=o.Set,l=o.add,f=o.has;t.exports=function(t){var e=r(this),n=a(t),o=new s;return i(e)>n.size?c(n.getIterator(),(function(t){f(e,t)&&l(o,t)})):u(e,(function(t){n.includes(t)&&l(o,t)})),o}},"96a9":function(t,e,n){"use strict";n.r(e);var r={name:"generate-col-item",components:{GenerateFormItem:n("12f6").a},props:["element","model","rules","remote","display","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModels:this.model}},watch:{model:{deep:!0,handler:function(t){this.dataModels=t}}},methods:{fillingColumns:function(t){this.$emit("fillingColumns",t)},getColSpan:function(t){return"pc"===this.platform?24/t:"pad"===this.platform?t>1?12:24:"mobile"===this.platform?24:void 0}}},o=n("2877"),i=Object(o.a)(r,(function(){var t,e=this,n=e.$createElement,r=e._self._c||n;return e.display[e.element.model]?r("el-row",{staticClass:"renderer-grid-row",class:(t={},t[e.element.options&&e.element.options.customClass]=e.element.options&&e.element.options.customClass,t),attrs:{align:e.element.options.align,gutter:e.element.options.gutter||0,justify:e.element.options.justify,type:"flex"}},e._l(e.element.columns,(function(t,n){var o;return r("el-col",{key:n,class:(o={},o[t.options&&t.options.customClass]=t.options&&t.options.customClass,o),attrs:{offset:t.options?t.options.offset:0,pull:t.options?t.options.pull:0,push:t.options?t.options.push:0,span:e.getColSpan(e.element.columns.length||1)}},[e._l(t.list,(function(t){return[r("generate-form-item",{key:t.key,attrs:{"container-key":e.containerKey,"data-source-value":e.dataSourceValue,display:e.display,edit:e.edit,"event-function":e.eventFunction,models:e.dataModels,platform:e.platform,preview:e.preview,"print-read":e.printRead,remote:e.remote,"remote-option-source":e.remoteOptionSource,rules:e.rules,widget:t},on:{fillingColumns:e.fillingColumns}})]}))],2)})),1):e._e()}),[],!1,null,null,null);e.default=i.exports},9861:function(t,e,n){"use strict";n("5352")},"98fc":function(t,e,n){var r,o,i;!function(n,a){"use strict";o=[],void 0===(i="function"==typeof(r=function(t){return function(e){(e=e||{}).arrayAccessForm=e.arrayAccessForm||"none",e.emptyNodeForm=e.emptyNodeForm||"text",e.jsAttributeFilter=e.jsAttributeFilter,e.jsAttributeConverter=e.jsAttributeConverter,e.attributeConverters=e.attributeConverters||[],e.datetimeAccessFormPaths=e.datetimeAccessFormPaths||[],e.arrayAccessFormPaths=e.arrayAccessFormPaths||[],e.xmldomOptions=e.xmldomOptions||{},void 0===e.enableToStringFunc&&(e.enableToStringFunc=!0),void 0===e.skipEmptyTextNodesForObj&&(e.skipEmptyTextNodesForObj=!0),void 0===e.stripWhitespaces&&(e.stripWhitespaces=!0),void 0===e.useDoubleQuotes&&(e.useDoubleQuotes=!0),void 0===e.ignoreRoot&&(e.ignoreRoot=!1),void 0===e.escapeMode&&(e.escapeMode=!0),void 0===e.attributePrefix&&(e.attributePrefix="_"),void 0===e.selfClosingElements&&(e.selfClosingElements=!0),void 0===e.keepCData&&(e.keepCData=!1),void 0===e.keepText&&(e.keepText=!1),void 0===e.jsDateUTC&&(e.jsDateUTC=!1),function(){function t(t){var e=String(t);return 1===e.length&&(e="0"+e),e}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|^\n+|(\s|\n)+$/g,"")}),"function"!=typeof Date.prototype.toISOString&&(Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+t(this.getUTCMonth()+1)+"-"+t(this.getUTCDate())+"T"+t(this.getUTCHours())+":"+t(this.getUTCMinutes())+":"+t(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"})}();var n=1,r=3,o=4,i=8,a=9;function u(t){var e=t.localName;return null==e&&(e=t.baseName),null!=e&&""!==e||(e=t.nodeName),e}function c(t){return"string"==typeof t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):t}function s(t,n,r){switch(e.arrayAccessForm){case"property":t[n]instanceof Array?t[n+"_asArray"]=t[n]:t[n+"_asArray"]=[t[n]]}if(!(t[n]instanceof Array)&&e.arrayAccessFormPaths.length>0){for(var o=!1,i=0;i<e.arrayAccessFormPaths.length;i++){var a=e.arrayAccessFormPaths[i];if("string"==typeof a){if(a===r){o=!0;break}}else if(a instanceof RegExp){if(a.test(r)){o=!0;break}}else if("function"==typeof a&&a(n,r)){o=!0;break}}o&&(t[n]=[t[n]])}}function l(t){var e=t.split(/[-T:+Z]/g),n=new Date(e[0],e[1]-1,e[2]),r=e[5].split(".");if(n.setHours(e[3],e[4],r[0]),r.length>1&&n.setMilliseconds(r[1]),e[6]&&e[7]){var o=60*e[6]+Number(e[7]);o=0+("-"===(/\d\d-\d\d:\d\d$/.test(t)?"-":"+")?-1*o:o),n.setMinutes(n.getMinutes()-o-n.getTimezoneOffset())}else-1!==t.indexOf("Z",t.length-1)&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())));return n}function f(t,n){for(var r={__cnt:0},o=t.childNodes,a=0;a<o.length;a++){var c=o.item(a),f=u(c);c.nodeType!==i&&(r.__cnt++,null==r[f]?(r[f]=d(c,n+"."+f),s(r,f,n+"."+f)):(r[f]instanceof Array||(r[f]=[r[f]],s(r,f,n+"."+f)),r[f][r[f].length]=d(c,n+"."+f)))}for(var m=0;m<t.attributes.length;m++){var p=t.attributes.item(m);r.__cnt++;for(var h=p.value,g=0;g<e.attributeConverters.length;g++){var v=e.attributeConverters[g];v.test.call(null,p.name,p.value)&&(h=v.convert.call(null,p.name,p.value))}r[e.attributePrefix+p.name]=h}var b=t.prefix;return b&&(r.__cnt++,r.__prefix=b),r["#text"]&&(r.__text=r["#text"],r.__text instanceof Array&&(r.__text=r.__text.join("\n")),e.escapeMode&&(r.__text=r.__text.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")),e.stripWhitespaces&&(r.__text=r.__text.trim()),delete r["#text"],"property"===e.arrayAccessForm&&delete r["#text_asArray"],r.__text=function(t,n,r){if(e.datetimeAccessFormPaths.length>0)for(var o=r.split(".#")[0],i=0;i<e.datetimeAccessFormPaths.length;i++){var a=e.datetimeAccessFormPaths[i];if("string"==typeof a){if(a===o)return l(t)}else if(a instanceof RegExp){if(a.test(o))return l(t)}else if("function"==typeof a&&a(o))return l(t)}return t}(r.__text,0,n+".#text")),r.hasOwnProperty("#cdata-section")&&(r.__cdata=r["#cdata-section"],delete r["#cdata-section"],"property"===e.arrayAccessForm&&delete r["#cdata-section_asArray"]),1===r.__cnt&&r.__text&&!e.keepText?r=r.__text:0===r.__cnt&&"text"===e.emptyNodeForm?r="":r.__cnt>1&&void 0!==r.__text&&e.skipEmptyTextNodesForObj&&(e.stripWhitespaces&&""===r.__text||""===r.__text.trim())&&delete r.__text,delete r.__cnt,e.keepCData||r.hasOwnProperty("__text")||!r.hasOwnProperty("__cdata")||1!==Object.keys(r).length?(e.enableToStringFunc&&(r.__text||r.__cdata)&&(r.toString=function(){return(this.__text?this.__text:"")+(this.__cdata?this.__cdata:"")}),r):r.__cdata?r.__cdata:""}function d(t,i){return t.nodeType===a?function(t){for(var r={},o=t.childNodes,i=0;i<o.length;i++){var a=o.item(i);if(a.nodeType===n){var c=u(a);e.ignoreRoot?r=d(a,c):r[c]=d(a,c)}}return r}(t):t.nodeType===n?f(t,i):t.nodeType===r||t.nodeType===o?t.nodeValue:null}function m(t,n,r,o){var i="<"+(t&&t.__prefix?t.__prefix+":":"")+n;if(r)for(var a=0;a<r.length;a++){var u=r[a],s=t[u];e.escapeMode&&(s=c(s)),i+=" "+u.substr(e.attributePrefix.length)+"=",e.useDoubleQuotes?i+='"'+s+'"':i+="'"+s+"'"}return i+=o?" />":">"}function p(t,e){return"</"+(t&&t.__prefix?t.__prefix+":":"")+e+">"}function h(t,n){return"property"===e.arrayAccessForm&&(r=n.toString(),o="_asArray",-1!==r.indexOf(o,r.length-o.length))||0===n.toString().indexOf(e.attributePrefix)||0===n.toString().indexOf("__")||t[n]instanceof Function;var r,o}function g(t){var e=0;if(t instanceof Object)for(var n in t)h(t,n)||e++;return e}function v(t){var n=[];if(t instanceof Object)for(var r in t)-1===r.toString().indexOf("__")&&0===r.toString().indexOf(e.attributePrefix)&&n.push(r);return n}function b(t){var n="";return t instanceof Object?n+=function(t){var n="";return t.__cdata&&(n+="<![CDATA["+t.__cdata+"]]>"),(t.__text||"number"==typeof t.__text||"boolean"==typeof t.__text)&&(e.escapeMode?n+=c(t.__text):n+=t.__text),n}(t):null!==t&&(e.escapeMode?n+=c(t):n+=t),n}function y(t,n,r){var o="";if(e.jsAttributeFilter&&e.jsAttributeFilter.call(null,n,t))return o;if(e.jsAttributeConverter&&(t=e.jsAttributeConverter.call(null,n,t)),null!=t&&""!==t||!e.selfClosingElements)if("object"==typeof t)if("[object Array]"===Object.prototype.toString.call(t))o+=function(t,e,n){var r="";if(0===t.length)r+=m(t,e,n,!0);else for(var o=0;o<t.length;o++)r+=y(t[o],e,v(t[o]));return r}(t,n,r);else if(t instanceof Date)o+=m(t,n,r,!1),o+=e.jsDateUTC?t.toUTCString():t.toISOString(),o+=p(t,n);else{g(t)>0||"number"==typeof t.__text||"boolean"==typeof t.__text||t.__text||t.__cdata?(o+=m(t,n,r,!1),o+=_(t),o+=p(t,n)):e.selfClosingElements?o+=m(t,n,r,!0):(o+=m(t,n,r,!1),o+=p(t,n))}else o+=m(t,n,r,!1),o+=b(t),o+=p(t,n);else o+=m(t,n,r,!0);return o}function _(t){var e="";if(g(t)>0)for(var n in t)if(!h(t,n)){var r=t[n];e+=y(r,n,v(r))}return e+=b(t)}function w(n){if(void 0===n)return null;if("string"!=typeof n)return null;var r=null,o=null;if(t)o=(r=new t(e.xmldomOptions)).parseFromString(n,"text/xml");else if(window&&window.DOMParser){r=new window.DOMParser;var i=null;if(!(window.ActiveXObject||"ActiveXObject"in window)&&document.all&&!document.addEventListener)try{i=r.parseFromString("INVALID","text/xml").childNodes[0].namespaceURI}catch(t){i=null}try{o=r.parseFromString(n,"text/xml"),null!==i&&o.getElementsByTagNameNS(i,"parsererror").length>0&&(o=null)}catch(t){o=null}}else 0===n.indexOf("<?")&&(n=n.substr(n.indexOf("?>")+2)),(o=new ActiveXObject("Microsoft.XMLDOM")).async="false",o.loadXML(n);return o}this.asArray=function(t){return null==t?[]:t instanceof Array?t:[t]},this.toXmlDateTime=function(t){return t instanceof Date?t.toISOString():"number"==typeof t?new Date(t).toISOString():null},this.asDateTime=function(t){return"string"==typeof t?l(t):t},this.xml2dom=function(t){return w(t)},this.dom2js=function(t){return d(t,null)},this.js2dom=function(t){return w(this.js2xml(t))},this.xml2js=function(t){var e=w(t);return null!=e?this.dom2js(e):null},this.js2xml=function(t){return _(t)},this.getVersion=function(){return"3.4.4"}}})?r.apply(e,o):r)||(t.exports=i)}()},9961:function(t,e,n){"use strict";var r=n("dc19"),o=n("cb27"),i=n("83b9"),a=n("7f65"),u=n("5388"),c=o.add,s=o.has,l=o.remove;t.exports=function(t){var e=r(this),n=a(t).getIterator(),o=i(e);return u(n,(function(t){s(e,t)?l(o,t):c(o,t)})),o}},"99af":function(t,e,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("e8b5"),a=n("861d"),u=n("7b0b"),c=n("07fa"),s=n("3511"),l=n("8418"),f=n("65f0"),d=n("1dde"),m=n("b622"),p=n("1212"),h=m("isConcatSpreadable"),g=p>=51||!o((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),v=function(t){if(!a(t))return!1;var e=t[h];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,arity:1,forced:!g||!d("concat")},{concat:function(t){var e,n,r,o,i,a=u(this),d=f(a,0),m=0;for(e=-1,r=arguments.length;e<r;e++)if(v(i=-1===e?a:arguments[e]))for(o=c(i),s(m+o),n=0;n<o;n++,m++)n in i&&l(d,m,i[n]);else s(m+1),l(d,m++,i);return d.length=m,d}})},"99c2":function(t,e,n){"use strict";n("87fb")},"9a01":function(t,e,n){"use strict";var r=n("5530"),o=n("c7eb"),i=n("1da1"),a=n("2909"),u=(n("d9e2"),n("99af"),n("4de4"),n("c740"),n("d81d"),n("14d9"),n("a434"),n("b0c0"),n("d3b7"),n("498a"),{name:"MemberOrgTreeItem",props:{isActive:{default:!1,type:Boolean},data:{default:{}},isSelected:{default:!1,type:Boolean},showAppend:{default:!0,type:Boolean},canSelect:{default:!0,type:Boolean}},computed:{isDisabled(){return this.data.isDisabled||!this.canSelect}},model:{value:"isSelected",event:"change"},methods:{handleSwitch(t){"user"!==this.data.type&&this.$emit("click",this.data,t)},handleClick(t){this.$emit(t?"select":"unselect",this.data)}}}),c=n("2877"),s=Object(c.a)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"member-org-detail-item",class:{"is-active":t.isActive},attrs:{title:t.data.name}},[n("el-checkbox",{staticClass:"member-org-manage-check",attrs:{disabled:t.isDisabled,value:t.isSelected},on:{change:t.handleClick}}),n("div",{staticClass:"member-org-detail-item-wrapper item-org",on:{click:t.handleSwitch}},[n("div",{staticClass:"member-org-detail-icon"},["region"===t.data.type||"root"===t.data.type?n("base-icon",{attrs:{"icon-class":"government-line"}}):t._e(),"organ"===t.data.type?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):t._e(),"user"===t.data.type?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):t._e(),"role"===t.data.type?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):t._e()],1),n("span",{staticClass:"member-org-detail-title"},[t._v(" "+t._s(t.data.name)+" "),"user"===t.data.type&&t.data.account?n("small",[t._v(t._s(t.data.account))]):n("small",[t._v(t._s(t.data.code))])]),n("div",{staticClass:"member-org-spacing"}),t.showAppend?n("span",{staticClass:"member-org-detail-append"},[n("base-icon",{attrs:{"icon-class":"arrow-right-s-line"}})],1):t._e()])],1)}),[],!1,null,null,null).exports,l=n("7694"),f=n("60bb"),d=n.n(f),m={name:"OrganizationSelector",components:{MemberOrgTreeItem:s},computed:{total:function(){return this.data.length},searchTotal:function(){return this.searchData.length},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},componentSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},collapseTagSize:function(){return["small","mini"].indexOf(this.componentSize)>-1?"mini":"small"}},model:{prop:"selected",event:"change"},inject:{elForm:{default:""},elFormItem:{default:""}},props:{getOrgTree:{type:Function,default:l.i},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},parentCode:{type:String,default:"000000000000"},platform:{type:String,default:"pc"},text:{type:String,default:"选择"},customStyle:{type:Object,default:function(){return{}}},placeholder:{type:String,default:""},parentName:{type:String,default:"全国"},selected:{default:function(){return[]}},optionScopeType:{type:String,default:"ORGAN"},dialogTitle:{type:String,default:"选择组织机构"}},mounted:function(){null===this.selected&&(this.selected=[]),this.$emit("change",this.selected),this.selected.length&&this.$refs.nodeTree&&this.$refs.nodeTree.setCheckedKeys(Object(a.a)(d.a.cloneDeep(this.selected))),this.debounce=d.a.debounce(this.onSearch,50)},watch:{keyword:function(t){t.trim()?(this.isSearching=!0,this.debounce&&this.debounce()):this.isSearching=!1}},data:function(){return{data:[],isSearchLoading:!1,isSearching:!1,keyword:"",searchData:[],visible:!1,stack:[],currentDept:{},dataLoading:!0,debounce:!1}},methods:{onDialogClose:function(){this.data=[],this.isSearchLoading=!1,this.isSearching=!1,this.keyword="",this.searchData=[],this.visible=!1,this.stack=[],this.currentDept={},this.dataLoading=!1},onSearch:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.searchData=[],"PERSON"!==t.optionScopeType){e.next=7;break}return e.next=4,t.searchUser();case 4:t.searchData=e.sent,e.next=7;break;case 7:case"end":return e.stop()}}),e)})))()},onCheckedTreeNodeChange:function(t,e){if(e)this.multiple||(this.$refs.nodeTree.setCheckedKeys([t.code]),this.selected.pop()),this.selected.push(t);else{var n=this.selected.findIndex((function(e){return e.code===t.code}));n>-1&&this.selected.splice(n,1)}},loadTreeNode:function(t,e){var n=this;return Object(i.a)(Object(o.a)().mark((function r(){var i,u;return Object(o.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(0!==t.level){r.next=5;break}return i={code:n.parentCode,name:n.parentName,label:n.parentName,type:"root",children:[],disabled:"ORGAN"!==n.optionScopeType},r.abrupt("return",e([i]));case 5:return u=[],r.t0=[],r.t1=Object(a.a)(u),r.t2=a.a,r.next=11,n.getOrgByParentCode(t.data.code);case 11:if(r.t3=r.sent,r.t4=(0,r.t2)(r.t3),u=r.t0.concat.call(r.t0,r.t1,r.t4),!(["root","organ","region"].indexOf(t.data.type)>-1&&"PERSON"===n.optionScopeType)){r.next=23;break}return r.t5=[],r.t6=Object(a.a)(u),r.t7=a.a,r.next=20,n.getUserListByParentNode(t.data);case 20:r.t8=r.sent,r.t9=(0,r.t7)(r.t8),u=r.t5.concat.call(r.t5,r.t6,r.t9);case 23:return r.abrupt("return",e(u));case 24:case"end":return r.stop()}}),r)})))()},searchUser:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,i;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.keyword&&!(t.keyword.length<1)){e.next=2;break}return e.abrupt("return");case 2:return t.isSearchLoading=!0,n=[],e.prev=4,e.next=7,Object(l.m)({condition:{name:t.keyword},limit:1e3,page:1});case 7:1===(i=e.sent).data.code&&(n=(n=i.data.data.data).map((function(t){return Object(r.a)(Object(r.a)({},t),{},{name:t.name,label:t.name,code:t.id,type:"user",isLeaf:!0})}))),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),t.$message.error(e.t0.message);case 14:return e.prev=14,t.isSearchLoading=!1,e.finish(14);case 17:return e.abrupt("return",n);case 18:case"end":return e.stop()}}),e,null,[[4,11,14,17]])})))()},getUserListByParentNode:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var i;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(l.j)({condition:{regionCode:t.regionCode||t.code,orgCode:t.code},limit:"1000",page:"1"});case 3:return i=n.sent,n.abrupt("return",i.data.data.data.length?i.data.data.data.map((function(t){return Object(r.a)(Object(r.a)({},t),{},{name:t.name,label:t.name,code:t.id,type:"user",isLeaf:!0,disabled:"PERSON"!==e.optionScopeType})})):[]);case 7:return n.prev=7,n.t0=n.catch(0),e.$message.error(n.t0),n.abrupt("return",[]);case 11:case"end":return n.stop()}}),n,null,[[0,7]])})))()},getOrgByParentCode:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var i;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(l.i)({code:t});case 3:if(1===(i=n.sent).data.code){n.next=6;break}throw new Error(i.data.message||"根据父级部门ID加载子集部门节点失败");case 6:return n.abrupt("return",i.data.data.length?i.data.data.map((function(t){return Object(r.a)(Object(r.a)({},t),{},{name:t.name,label:t.name,code:t.code,type:t.type,disabled:"ORGAN"!==e.optionScopeType})})):[]);case 9:return n.prev=9,n.t0=n.catch(0),e.$message.error(n.t0),n.abrupt("return",[]);case 13:case"end":return n.stop()}}),n,null,[[0,9]])})))()},handleSelect:function(){this.disabled||this.readonly||(this.visible=!0)},handleConfirm:function(){this.$emit("change",this.selected),this.onDialogClose()},handleCancel:function(){this.visible=!1},handleCloseTag:function(t){var e=this.selected.findIndex((function(e){return e.code===t.code}));e>-1&&this.selected.splice(e,1)},handleSelectItem:function(t){this.multiple||this.selected.pop(),this.selected.push(t)},handleUnSelectItem:function(t){var e=this.selected.findIndex((function(e){return e.code===t.code}));if(e>-1&&this.selected.splice(e,1),this.$refs.nodeTree){var n=this.$refs.nodeTree.getCheckedKeys();n=n.filter((function(e){return e!==t.code})),this.$refs.nodeTree.setCheckedKeys(n)}},handleClick:function(t){this.isSearching=!1,this.stack.push(t)}}},p=Object(c.a)(m,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"organization-selector el-select",class:[t.componentSize?"el-select--"+t.componentSize:""]},[t.visible?n("el-dialog",{class:"mobile"===t.platform?"organization-selector-mobile":"organization-selector-pc",attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,disabled:t.disabled,title:t.dialogTitle,visible:t.visible,"append-to-body":"","custom-class":"organization-selector-dialog",placement:"bottom-start",width:"800px"},on:{"update:visible":function(e){t.visible=e},close:t.onDialogClose}},[n("div",{staticClass:"tree-select-section-left"},[n("div",{staticClass:"member-org-detail-list-container"},["PERSON"===t.optionScopeType?n("div",{staticClass:"member-org-detail-title-bar"},[n("el-input",{attrs:{clearable:"",maxLength:"20",placeholder:"请输入关键词","prefix-icon":"el-icon-search",size:"small"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1):t._e(),t.isSearching?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isSearchLoading,expression:"isSearchLoading"}],staticClass:"b-scroll"},[t.searchTotal?n("div",{staticClass:"member-org-detail-list-item-container"},t._l(t.searchData,(function(e){return n("member-org-tree-item",{key:e.code,attrs:{data:e,"is-selected":t.selected.some((function(t){return t.code===e.code})),"show-append":!1},on:{select:t.handleSelectItem,unselect:t.handleUnSelectItem}})})),1):n("el-empty")],1):n("div",{staticClass:"b-scroll"},[n("div",{staticClass:"member-org-detail-list-item-container"},[n("el-tree",{ref:"nodeTree",staticClass:"organization-tree",attrs:{"default-checked-keys":t.selected.map((function(t){return t.code})),indent:8,load:t.loadTreeNode,props:{label:"name",children:"children",isLeaf:"isLeaf"},"check-strictly":"",lazy:"","node-key":"code","show-checkbox":""},on:{"check-change":t.onCheckedTreeNodeChange},scopedSlots:t._u([{key:"default",fn:function(e){e.node;var r=e.data;return n("div",{staticClass:"custom-tree-node",attrs:{title:r.name+" : "+(r.type&&"user"===r.type?r.account:r.code)}},[n("div",{staticClass:"custom-tree-node-icon"},["region"===r.type||"root"===r.type?n("base-icon",{attrs:{"icon-class":"government-line"}}):t._e(),"organ"===r.type?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):t._e(),"user"===r.type?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):t._e(),"role"===r.type?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):t._e()],1),n("div",{staticClass:"custom-tree-node-name"},[t._v(" "+t._s(r.name)+" "),n("small",[t._v(t._s(r.type&&"user"===r.type?r.account:r.code))])])])}}],null,!1,3974469761)})],1)])])]),n("div",{staticClass:"tree-select-section-right"},[t.selected.length?n("div",{staticClass:"b-scroll"},[n("div",{staticClass:"member-org-detail-list-item-container"},t._l(t.selected,(function(e){return n("member-org-tree-item",{key:e.code,attrs:{data:e,"is-selected":!0,"show-append":!1},on:{unselect:t.handleUnSelectItem}})})),1)]):n("el-empty")],1),n("div",{staticClass:"tree-select-section-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{disabled:!t.selected.length,type:"primary"},on:{click:t.handleConfirm}},[t._v("确定")])],1)]):t._e(),n("div",{staticClass:"organization-selector-container",class:{"is-disabled":t.disabled},style:t.customStyle,on:{click:t.handleSelect}},[n("div",{staticClass:"organization-selector-wrapper el-select__tags"},[t.selected&&t.selected.length?n("span",{staticClass:"select-tag"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.selected[0].name,disabled:t.selected[0].name.length<11,placement:"top"}},[n("el-tag",{attrs:{closable:!t.disabled,size:t.collapseTagSize,type:"info"},on:{close:function(e){return t.handleCloseTag(t.selected[0])}}},["region"===t.selected[0].type?n("base-icon",{attrs:{"icon-class":"government-line"}}):t._e(),"organ"===t.selected[0].type?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):t._e(),"user"===t.selected[0].type?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):t._e(),"role"===t.selected[0].type?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):t._e(),n("span",{staticClass:"tag-name"},[t._v(t._s(""+(t.selected[0].name.length>11?t.selected[0].name.substr(0,11)+"...":t.selected[0].name)))])],1)],1),t.selected.length>1?n("el-tag",{attrs:{closable:!1,size:t.collapseTagSize,"disable-transitions":"",type:"info"}},[n("span",{staticClass:"el-select__tags-text"},[t._v("+ "+t._s(t.selected.length-1))])]):t._e()],1):t._e()]),n("el-input",{ref:"reference",class:{"is-focus":t.visible},attrs:{disabled:t.disabled,placeholder:t.selected&&t.selected.length?"":t.placeholder,readonly:t.readonly,size:t.componentSize,"validate-event":!1,type:"text"}},[n("template",{slot:"prefix"},["ORGAN"===t.optionScopeType?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):t._e(),"PERSON"===t.optionScopeType?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):t._e(),"ROLE"===t.optionScopeType?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):t._e()],1)],2)],1)],1)}),[],!1,null,null,null);e.a=p.exports},"9a1f":function(t,e,n){"use strict";var r=n("c65b"),o=n("59ed"),i=n("825a"),a=n("0d51"),u=n("35a1"),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?u(t):e;if(o(n))return i(r(n,t));throw new c(a(t)+" is not iterable")}},"9adc":function(t,e,n){"use strict";var r=n("8558");t.exports="NODE"===r},"9bd9":function(t,e,n){"use strict";var r=n("12f6"),o=n("96a9"),i={name:"generate-card-item",components:{GenerateFormItem:r.a,GenerateColItem:o.default},props:["element","model","rules","remote","display","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModels:this.model}},watch:{model:{deep:!0,handler:function(t){this.dataModels=t}}},methods:{fillingColumns:function(t){this.$emit("fillingColumns",t)}}},a=n("2877"),u=Object(a.a)(i,(function(){var t,e=this,n=e.$createElement,r=e._self._c||n;return e.display[e.element.model]?r("el-card",{staticClass:"renderer-card",class:(t={},t[e.element.options&&e.element.options.customClass]=e.element.options&&e.element.options.customClass,t),attrs:{shadow:e.element.options.shadow}},[e.element.options&&e.element.options.showHeader?r("div",{attrs:{slot:"header"},slot:"header"},[e._v(e._s(e.element.name))]):e._e(),e._l(e.element.list,(function(t){return["grid"===t.type?r("generate-col-item",{key:t.key,ref:"icd-form-"+t.model,refInFor:!0,attrs:{id:t.model,"container-key":e.containerKey,"data-source-value":e.dataSourceValue,display:e.display,edit:e.edit,element:t,"event-function":e.eventFunction,model:e.dataModels,platform:e.platform,preview:e.preview,"print-read":e.printRead,remote:e.remote,"remote-option-source":e.remoteOptionSource,rules:e.rules},on:{fillingColumns:e.fillingColumns}}):r("generate-form-item",{key:t.key,attrs:{id:t.model,"container-key":e.containerKey,"data-source-value":e.dataSourceValue,display:e.display,edit:e.edit,"event-function":e.eventFunction,models:e.dataModels,platform:e.platform,preview:e.preview,"print-read":e.printRead,remote:e.remote,"remote-option-source":e.remoteOptionSource,rules:e.rules,widget:t},on:{fillingColumns:e.fillingColumns}})]}))],2):e._e()}),[],!1,null,null,null);e.a=u.exports},"9bdd":function(t,e,n){"use strict";var r=n("825a"),o=n("2a62");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},"9bf2":function(t,e,n){"use strict";var r=n("83ab"),o=n("0cfb"),i=n("aed9"),a=n("825a"),u=n("a04b"),c=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor;e.f=r?i?function(t,e,n){if(a(t),e=u(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=l(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return s(t,e,n)}:s:function(t,e,n){if(a(t),e=u(e),a(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9dd9":function(t,e,n){(function(t){!function(){"use strict";var e,n,r,o=function(t){var e=t;return{get:function(){return e},set:function(t){e=t}}},i=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=(e="array",function(t){return r=typeof(n=t),(null===n?"null":"object"===r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===e;var n,r}),c=function(t){return!function(t){return null==t}(t)},s=function(t){return function(e){return typeof e===t}}("function"),l=function(){},f=function(t){return function(){return t}},d=function(t){return t},m=f(!1),p=f(!0),h=function(){return g},g={fold:function(t,e){return t()},isSome:m,isNone:p,getOr:r=d,getOrThunk:n=function(t){return t()},getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:r,orThunk:n,map:h,each:l,bind:h,exists:m,forall:p,filter:function(){return h()},toArray:function(){return[]},toString:f("none()")},v=function(t){var e=f(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:p,isNone:m,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return v(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:g},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},b={some:v,none:h,from:function(t){return null==t?g:v(t)}},y={},_={exports:y};!function(e,n,r,o){!function(t,o){"object"==typeof n&&void 0!==r?r.exports=o():"function"==typeof e&&e.amd?e(o):(t="undefined"!=typeof globalThis?globalThis:t||self).EphoxContactWrapper=o()}(this,(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},n={exports:{}};!function(t){!function(e){var n=setTimeout;function r(){}function o(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(t,this)}function i(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,o._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void u(e.promise,t)}a(e.promise,r)}else(1===t._state?a:u)(e.promise,t._value)}))):t._deferreds.push(e)}function a(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof o)return t._state=3,t._value=e,void c(t);if("function"==typeof n)return void l((r=n,i=e,function(){r.apply(i,arguments)}),t)}t._state=1,t._value=e,c(t)}catch(e){u(t,e)}var r,i}function u(t,e){t._state=2,t._value=e,c(t)}function c(t){2===t._state&&0===t._deferreds.length&&o._immediateFn((function(){t._handled||o._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)i(t,t._deferreds[e]);t._deferreds=null}function s(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function l(t,e){var n=!1;try{t((function(t){n||(n=!0,a(e,t))}),(function(t){n||(n=!0,u(e,t))}))}catch(t){if(n)return;n=!0,u(e,t)}}o.prototype.catch=function(t){return this.then(null,t)},o.prototype.then=function(t,e){var n=new this.constructor(r);return i(this,new s(t,e,n)),n},o.all=function(t){var e=Array.prototype.slice.call(t);return new o((function(t,n){if(0===e.length)return t([]);var r=e.length;function o(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,(function(t){o(i,t)}),n)}e[i]=a,0==--r&&t(e)}catch(t){n(t)}}for(var i=0;i<e.length;i++)o(i,e[i])}))},o.resolve=function(t){return t&&"object"==typeof t&&t.constructor===o?t:new o((function(e){e(t)}))},o.reject=function(t){return new o((function(e,n){n(t)}))},o.race=function(t){return new o((function(e,n){for(var r=0,o=t.length;r<o;r++)t[r].then(e,n)}))},o._immediateFn="function"==typeof setImmediate?function(t){setImmediate(t)}:function(t){n(t,0)},o._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console},o._setImmediateFn=function(t){o._immediateFn=t},o._setUnhandledRejectionFn=function(t){o._unhandledRejectionFn=t},t.exports?t.exports=o:e.Promise||(e.Promise=o)}(e)}(n);var r=n.exports;return{boltExport:("undefined"!=typeof window?window:Function("return this;")()).Promise||r}}))}(void 0,y,_);var w=_.exports.boltExport,x=function(t,e){return C(document.createElement("canvas"),t,e)},O=function(t){var e=x(t.width,t.height);return S(e).drawImage(t,0,0),e},S=function(t){return t.getContext("2d")},C=function(t,e,n){return t.width=e,t.height=n,t},E=function(t){return new w((function(e,n){var r=URL.createObjectURL(t),o=new Image,i=function(){o.removeEventListener("load",a),o.removeEventListener("error",u)},a=function(){i(),e(o)},u=function(){i(),n("Unable to load data of type "+t.type+": "+r)};o.addEventListener("load",a),o.addEventListener("error",u),o.src=r,o.complete&&setTimeout(a,0)}))},k=function(t){return new w((function(e,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="blob",r.onload=function(){200===this.status&&e(this.response)},r.onerror=function(){var t,e=this;n(0===this.status?((t=new Error("No access to download image")).code=18,t.name="SecurityError",t):new Error("Error "+e.status+" downloading image"))},r.send()}))},T=function(t){return new w((function(e,n){(function(t){var e=t.split(","),n=/data:([^;]+)/.exec(e[0]);if(!n)return b.none();for(var r=n[1],o=e[1],i=atob(o),a=i.length,u=Math.ceil(a/1024),c=new Array(u),s=0;s<u;++s){for(var l=1024*s,f=Math.min(l+1024,a),d=new Array(f-l),m=l,p=0;m<f;++p,++m)d[p]=i[m].charCodeAt(0);c[s]=new Uint8Array(d)}return b.some(new Blob(c,{type:r}))})(t).fold((function(){n("uri is not base64: "+t)}),e)}))},M=function(t,e,n){return e=e||"image/png",s(HTMLCanvasElement.prototype.toBlob)?new w((function(r,o){t.toBlob((function(t){t?r(t):o()}),e,n)})):T(t.toDataURL(e,n))},D=function(t){URL.revokeObjectURL(t.src)},A=function(t){return function(t){var e=t.src;return 0===e.indexOf("data:")?T(e):k(e)}(t)},P=Array.prototype.indexOf,R=function(t,e){return n=t,r=e,P.call(n,r)>-1;var n,r},I=function(t,e){for(var n=0,r=t.length;n<r;n++){e(t[n],n)}},z=function(t,e){return function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return b.some(i);if(n(i,r))break}return b.none()}(t,e,m)},j=function(t,e){for(var n=0,r=t.length;n<r;++n){if(!0!==e(t[n],n))return!1}return!0},L=Object.keys;(function(t){if(!u(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};I(t,(function(r,o){var i=L(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],c=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!u(c))throw new Error("case arguments must be an array");e.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==c.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+c.length+" ("+c+"), got "+i);var u=function(t){var r=L(t);if(e.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+e.join(",")+"\nActual: "+r.join(","));if(!j(e,(function(t){return R(r,t)})))throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+e.join(", "));return t[a].apply(null,n)};return{fold:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(e.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+e.length);var i=e[o];return i.apply(null,n)},match:u,log:function(t){}}}}))})([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var B=function(t,e,n){var r=e.type,o=f(r),i=f(n),a=function(e,n){return t.then((function(t){return function(t,e,n){return e=e||"image/png",t.toDataURL(e,n)}(t,e,n)}))};return{getType:o,toBlob:function(){return w.resolve(e)},toDataURL:i,toBase64:function(){return n.split(",")[1]},toAdjustedBlob:function(e,n){return t.then((function(t){return M(t,e,n)}))},toAdjustedDataURL:a,toAdjustedBase64:function(t,e){return a(t,e).then((function(t){return t.split(",")[1]}))},toCanvas:function(){return t.then(O)}}},F=function(t){return function(t){return new w((function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)}))}(t).then((function(e){return B(function(t){return E(t).then((function(t){D(t);var e=x(function(t){return t.naturalWidth||t.width}(t),function(t){return t.naturalHeight||t.height}(t));return S(e).drawImage(t,0,0),e}))}(t),t,e)}))},N=function(t,e){return M(t,e).then((function(e){return B(w.resolve(t),e,t.toDataURL())}))},H=function(t,e){void 0===e&&(e=2);var n=Math.pow(10,e),r=Math.round(t*n);return Math.ceil(r/n)},V=function(t,e,n){var r=(n<0?360+n:n)*Math.PI/180,o=t.width,i=t.height,a=Math.sin(r),u=Math.cos(r),c=H(Math.abs(o*u)+Math.abs(i*a)),s=H(Math.abs(o*a)+Math.abs(i*u)),l=x(c,s),f=S(l);return f.translate(c/2,s/2),f.rotate(r),f.drawImage(t,-o/2,-i/2),N(l,e)},U=function(t,e,n){var r=x(t.width,t.height),o=S(r);return"v"===n?(o.scale(1,-1),o.drawImage(t,0,-r.height)):(o.scale(-1,1),o.drawImage(t,-r.width,0)),N(r,e)},W=function(t,e){return function(t,e){return t.toCanvas().then((function(n){return U(n,t.getType(),e)}))}(t,e)},$=function(t,e){return function(t,e){return t.toCanvas().then((function(n){return V(n,t.getType(),e)}))}(t,e)},G=function(t,e,n){return void 0===n&&(n=!1),new w((function(r){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&r({status:o.status,blob:o.response})},o.open("GET",t,!0),o.withCredentials=n,function(t,e){for(var n=L(t),r=0,o=n.length;r<o;r++){var i=n[r];e(t[i],i)}}(e,(function(t,e){o.setRequestHeader(e,t)})),o.responseType="blob",o.send()}))},K=[{code:404,message:"Could not find Image Proxy"},{code:403,message:"Rejected request"},{code:0,message:"Incorrect Image Proxy URL"}],q=[{type:"not_found",message:"Failed to load image."},{type:"key_missing",message:"The request did not include an api key."},{type:"key_not_found",message:"The provided api key could not be found."},{type:"domain_not_trusted",message:"The api key is not valid for the request origins."}],X=function(t,e){var n,r,o=(n=function(t,e){return c(t)?t[e]:void 0},r=t,I(e,(function(t,e){r=n(r,t,e)})),r);return b.from(o)},Y=function(t){var e=function(t){return"ImageProxy HTTP error: "+z(K,(function(e){return t===e.code})).fold(f("Unknown ImageProxy error"),(function(t){return t.message}))}(t);return w.reject(e)},J=function(t){return z(q,(function(e){return e.type===t})).fold(f("Unknown service error"),(function(t){return t.message}))},Q=function(t){return"ImageProxy Service error: "+function(t){try{return b.some(JSON.parse(t))}catch(t){return b.none()}}(t).bind((function(t){return X(t,["error","type"]).map(J)})).getOr("Invalid JSON in service error message")},Z=function(t){return function(t){return new w((function(e,n){var r=new FileReader;r.onload=function(){e(r.result)},r.onerror=function(t){n(t)},r.readAsText(t)}))}(t).then((function(t){var e=Q(t);return w.reject(e)}))},tt=function(t){return t<200||t>=300},et=function(t,e){var n={"Content-Type":"application/json;charset=UTF-8","tiny-api-key":e};return G(function(t,e){var n=-1===t.indexOf("?")?"?":"&";return/[?&]apiKey=/.test(t)?t:t+n+"apiKey="+encodeURIComponent(e)}(t,e),n).then((function(t){return tt(t.status)?(e=t.status,n=t.blob,function(t,e){return"application/json"===(null==e?void 0:e.type)&&(400===t||403===t||404===t||500===t)}(e,n)?Z(n):Y(e)):w.resolve(t.blob);var e,n}))},nt=function(t,e,n){return void 0===n&&(n=!1),e?et(t,e):function(t,e){return G(t,{},e).then((function(t){return tt(t.status)?Y(t.status):w.resolve(t.blob)}))}(t,n)},rt=function(t){return F(t)},ot=function(t){if(null==t)throw new Error("Node cannot be null or undefined");return{dom:t}},it={fromHtml:function(t,e){var n=(e||document).createElement("div");if(n.innerHTML=t,!n.hasChildNodes()||n.childNodes.length>1)throw new Error("HTML must have a single root node");return ot(n.childNodes[0])},fromTag:function(t,e){var n=(e||document).createElement(t);return ot(n)},fromText:function(t,e){var n=(e||document).createTextNode(t);return ot(n)},fromDom:ot,fromPoint:function(t,e,n){return b.from(t.dom.elementFromPoint(e,n)).map(ot)}};"undefined"!=typeof window?window:Function("return this;")();var at=function(t,e){return function(t,e){return z(t.dom.childNodes,(function(t){return e(it.fromDom(t))})).map(it.fromDom)}(t,(function(t){return function(t,e){var n=t.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")}(t,e)}))},ut=tinymce.util.Tools.resolve("tinymce.util.Delay"),ct=tinymce.util.Tools.resolve("tinymce.util.Promise"),st=tinymce.util.Tools.resolve("tinymce.util.URI"),lt=function(t){return t.getParam("imagetools_toolbar","rotateleft rotateright flipv fliph editimage imageoptions")},ft=function(t){return t.getParam("imagetools_proxy")},dt=function(t){var e,n,r=function(t){return/^[0-9\.]+px$/.test(t)};return e=t.style.width,n=t.style.height,e||n?r(e)&&r(n)?{w:parseInt(e,10),h:parseInt(n,10)}:null:(e=t.width,n=t.height,e&&n?{w:parseInt(e,10),h:parseInt(n,10)}:null)},mt=function(t){return{w:t.naturalWidth,h:t.naturalHeight}},pt=0,ht=function(t){return at(it.fromDom(t),"img")},gt=function(t,e){return t.dom.is(e,"figure")},vt=function(t,e){return t.dom.is(e,"img:not([data-mce-object],[data-mce-placeholder])")},bt=function(t,e){var n=function(e){return vt(t,e)&&(xt(t,e)||Ot(t,e)||c(ft(t)))};return gt(t,e)?ht(e).bind((function(t){return n(t.dom)?b.some(t.dom):b.none()})):n(e)?b.some(e):b.none()},yt=function(t,e){t.notificationManager.open({text:e,type:"error"})},_t=function(t){var e=t.selection.getNode(),n=t.dom.getParent(e,"figure.image");return null!==n&>(t,n)?ht(n):vt(t,e)?b.some(it.fromDom(e)):b.none()},wt=function(t,e,n){var r=e.match(/(?:\/|^)(([^\/\?]+)\.(?:[a-z0-9.]+))(?:\?|$)/i);return c(r)?t.dom.encode(r[n]):null},xt=function(t,e){var n=e.src;return 0===n.indexOf("data:")||0===n.indexOf("blob:")||new st(n).host===t.documentBaseURI.host},Ot=function(t,e){return-1!==a.inArray(function(t){return t.getParam("imagetools_cors_hosts",[],"string[]")}(t),new st(e.src).host)},St=function(t,e){if(Ot(t,e))return nt(e.src,null,function(t,e){return-1!==a.inArray(function(t){return t.getParam("imagetools_credentials_hosts",[],"string[]")}(t),new st(e.src).host)}(t,e));if(!xt(t,e)){var n=ft(t),r=n+(-1===n.indexOf("?")?"?":"&")+"url="+encodeURIComponent(e.src),o=function(t){return t.getParam("api_key",t.getParam("imagetools_api_key","","string"),"string")}(t);return nt(r,o,!1)}return A(e)},Ct=function(t,e){return function(t){return b.from(t.getParam("imagetools_fetch_image",null,"function"))}(t).fold((function(){return St(t,e)}),(function(t){return t(e)}))},Et=function(t,e){var n=t.editorUpload.blobCache.getByUri(e.src);return n?ct.resolve(n.blob()):Ct(t,e)},kt=function(t){ut.clearTimeout(t.get())},Tt=function(t,e,n,r,o,i,a){return n.toBlob().then((function(u){var s,l,f,d,m=t.editorUpload.blobCache;s=i.src;var p=e.type===u.type;return function(t){return t.getParam("images_reuse_filename",!1,"boolean")}(t)&&(d=m.getByUri(s),c(d)?(s=d.uri(),l=d.name(),f=d.filename()):(l=wt(t,s,2),f=wt(t,s,1))),d=m.create({id:"imagetools"+pt++,blob:u,base64:n.toBase64(),uri:s,name:l,filename:p?f:void 0}),m.add(d),t.undoManager.transact((function(){var e=function(){t.$(i).off("load",e),t.nodeChanged(),r?t.editorUpload.uploadImagesAuto():(kt(o),function(t,e){var n=ut.setEditorTimeout(t,(function(){t.editorUpload.uploadImagesAuto()}),function(t){return t.getParam("images_upload_timeout",3e4,"number")}(t));e.set(n)}(t,o))};t.$(i).on("load",e),a&&t.$(i).attr({width:a.w,height:a.h}),t.$(i).attr({src:d.blobUri()}).removeAttr("data-mce-src")})),d}))},Mt=function(t,e,n,r){return function(){return _t(t).fold((function(){yt(t,"Could not find selected image")}),(function(o){return t._scanForImages().then((function(){return Et(t,o.dom)})).then((function(i){return rt(i).then(n).then((function(n){return Tt(t,i,n,!1,e,o.dom,r)}))})).catch((function(e){yt(t,e)}))}))}},Dt=function(t,e,n){return function(){var r=_t(t).map((function(t){var e=dt(t.dom);return e?{w:e.h,h:e.w}:null})).getOrNull();return Mt(t,e,(function(t){return $(t,n)}),r)()}},At=function(t,e,n){return function(){return Mt(t,e,(function(t){return W(t,n)}))()}},Pt=function(t,e,n,r,o){return function(t){return E(t)}(o).then((function(t){var e=mt(t);return r.w===e.w&&r.h===e.h||dt(n)&&function(t,e){var n,r;e&&(n=t.style.width,r=t.style.height,(n||r)&&(t.style.width=e.w+"px",t.style.height=e.h+"px",t.removeAttribute("data-mce-style")),n=t.width,r=t.height,(n||r)&&(t.setAttribute("width",String(e.w)),t.setAttribute("height",String(e.h))))}(n,e),URL.revokeObjectURL(t.src),o})).then(rt).then((function(r){return Tt(t,o,r,!0,e,n)}))},Rt=function(t,e){return function(){var n=_t(t),r=n.map((function(t){return mt(t.dom)}));n.each((function(o){bt(t,o.dom).each((function(i){Et(t,o.dom).then((function(o){var i=function(t){return{blob:t,url:URL.createObjectURL(t)}}(o);t.windowManager.open({title:"Edit Image",size:"large",body:{type:"panel",items:[{type:"imagetools",name:"imagetools",label:"Edit Image",currentState:i}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0,disabled:!0}],onSubmit:function(o){var i=o.getData().imagetools.blob;n.each((function(n){r.each((function(r){Pt(t,e,n.dom,r,i)}))})),o.close()},onCancel:l,onAction:function(t,e){switch(e.name){case"save-state":e.value?t.enable("save"):t.disable("save");break;case"disable":t.disable("save"),t.disable("cancel");break;case"enable":t.enable("cancel")}}})}))}))}))}};i.add("imagetools",(function(t){var e=o(0),n=o(null);!function(t,e){a.each({mceImageRotateLeft:Dt(t,e,-90),mceImageRotateRight:Dt(t,e,90),mceImageFlipVertical:At(t,e,"v"),mceImageFlipHorizontal:At(t,e,"h"),mceEditImage:Rt(t,e)},(function(e,n){t.addCommand(n,e)}))}(t,e),function(t){var e=[],n=function(e){return function(){return t.execCommand(e)}},r=function(){return _t(t).exists((function(e){return bt(t,e.dom).isSome()}))},o=function(t){var n=function(e){return t.setDisabled(!e)};return n(r()),e=e.concat([n]),function(){e=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n}(e,(function(t){return t!==n}))}};t.on("NodeChange",(function(){var t=r();I(e,(function(e){return e(t)}))})),t.ui.registry.addButton("rotateleft",{tooltip:"Rotate counterclockwise",icon:"rotate-left",onAction:n("mceImageRotateLeft"),onSetup:o}),t.ui.registry.addButton("rotateright",{tooltip:"Rotate clockwise",icon:"rotate-right",onAction:n("mceImageRotateRight"),onSetup:o}),t.ui.registry.addButton("flipv",{tooltip:"Flip vertically",icon:"flip-vertically",onAction:n("mceImageFlipVertical"),onSetup:o}),t.ui.registry.addButton("fliph",{tooltip:"Flip horizontally",icon:"flip-horizontally",onAction:n("mceImageFlipHorizontal"),onSetup:o}),t.ui.registry.addButton("editimage",{tooltip:"Edit image",icon:"edit-image",onAction:n("mceEditImage"),onSetup:o}),t.ui.registry.addButton("imageoptions",{tooltip:"Image options",icon:"image",onAction:n("mceImage")}),t.ui.registry.addContextMenu("imagetools",{update:function(e){return bt(t,e).map((function(t){return{text:"Edit image",icon:"edit-image",onAction:n("mceEditImage")}})).toArray()}})}(t),function(t){t.ui.registry.addContextToolbar("imagetools",{items:lt(t),predicate:function(e){return bt(t,e).isSome()},position:"node",scope:"node"})}(t),function(t,e,n){t.on("NodeChange",(function(r){var o=n.get(),i=bt(t,r.element);o&&!i.exists((function(t){return o.src===t.src}))&&(kt(e),t.editorUpload.uploadImagesAuto(),n.set(null)),i.each(n.set)}))}(t,e,n)}))}()}).call(this,n("c8ba"))},"9f7f":function(t,e,n){"use strict";var r=n("d039"),o=n("cfe9").RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),u=i||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:u,MISSED_STICKY:a,UNSUPPORTED_Y:i}},"9ffa":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITF14=e.ITF=void 0;var r=i(n("3c7c")),o=i(n("07df"));function i(t){return t&&t.__esModule?t:{default:t}}e.ITF=r.default,e.ITF14=o.default},a04b:function(t,e,n){"use strict";var r=n("c04e"),o=n("d9b5");t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},a15b:function(t,e,n){"use strict";var r=n("23e7"),o=n("e330"),i=n("44ad"),a=n("fc6a"),u=n("a640"),c=o([].join);r({target:"Array",proto:!0,forced:i!==Object||!u("join",",")},{join:function(t){return c(a(this),void 0===t?",":t)}})},a2b0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=[];return function t(n){if(Array.isArray(n))for(var r=0;r<n.length;r++)t(n[r]);else n.text=n.text||"",n.data=n.data||"",e.push(n)}(t),e}},a434:function(t,e,n){"use strict";var r=n("23e7"),o=n("7b0b"),i=n("23cb"),a=n("5926"),u=n("07fa"),c=n("3a34"),s=n("3511"),l=n("65f0"),f=n("8418"),d=n("083a"),m=n("1dde")("splice"),p=Math.max,h=Math.min;r({target:"Array",proto:!0,forced:!m},{splice:function(t,e){var n,r,m,g,v,b,y=o(this),_=u(y),w=i(t,_),x=arguments.length;for(0===x?n=r=0:1===x?(n=0,r=_-w):(n=x-2,r=h(p(a(e),0),_-w)),s(_+n-r),m=l(y,r),g=0;g<r;g++)(v=w+g)in y&&f(m,g,y[v]);if(m.length=r,n<r){for(g=w;g<_-r;g++)b=g+n,(v=g+r)in y?y[b]=y[v]:d(y,b);for(g=_;g>_-r+n;g--)d(y,g-1)}else if(n>r)for(g=_-r;g>w;g--)b=g+n-1,(v=g+r-1)in y?y[b]=y[v]:d(y,b);for(g=0;g<n;g++)y[g+w]=arguments[g+2];return c(y,_-r+n),m}})},a4d3:function(t,e,n){"use strict";n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a4e7:function(t,e,n){"use strict";var r=n("23e7"),o=n("395e");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("isSupersetOf")},{isSupersetOf:o})},a5d2:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("c243"),i=a(n("5726"));function a(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var t=o.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,i.default)(this.data,t,"01"),text:this.text}}}]),e}(a(n("e762")).default);e.default=u},a5f7:function(t,e,n){"use strict";var r=n("dc19"),o=n("cb27"),i=n("83b9"),a=n("8e16"),u=n("7f65"),c=n("384f"),s=n("5388"),l=o.has,f=o.remove;t.exports=function(t){var e=r(this),n=u(t),o=i(e);return a(e)<=n.size?c(e,(function(t){n.includes(t)&&f(o,t)})):s(n.getIterator(),(function(t){l(e,t)&&f(o,t)})),o}},a630:function(t,e,n){"use strict";var r=n("23e7"),o=n("4df4");r({target:"Array",stat:!0,forced:!n("1c7e")((function(t){Array.from(t)}))},{from:o})},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},a9e3:function(t,e,n){"use strict";var r=n("23e7"),o=n("c430"),i=n("83ab"),a=n("cfe9"),u=n("428f"),c=n("e330"),s=n("94ca"),l=n("1a2d"),f=n("7156"),d=n("3a9b"),m=n("d9b5"),p=n("c04e"),h=n("d039"),g=n("241c").f,v=n("06cf").f,b=n("9bf2").f,y=n("408a"),_=n("58a8").trim,w=a.Number,x=u.Number,O=w.prototype,S=a.TypeError,C=c("".slice),E=c("".charCodeAt),k=function(t){var e=p(t,"number");return"bigint"==typeof e?e:T(e)},T=function(t){var e,n,r,o,i,a,u,c,s=p(t,"number");if(m(s))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=_(s),43===(e=E(s,0))||45===e){if(88===(n=E(s,2))||120===n)return NaN}else if(48===e){switch(E(s,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=C(s,2)).length,u=0;u<a;u++)if((c=E(i,u))<48||c>o)return NaN;return parseInt(i,r)}return+s},M=s("Number",!w(" 0o1")||!w("0b1")||w("+0x1")),D=function(t){return d(O,t)&&h((function(){y(t)}))},A=function(t){var e=arguments.length<1?0:w(k(t));return D(this)?f(Object(e),this,A):e};A.prototype=O,M&&!o&&(O.constructor=A),r({global:!0,constructor:!0,wrap:!0,forced:M},{Number:A});var P=function(t,e){for(var n,r=i?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)l(e,n=r[o])&&!l(t,n)&&b(t,n,v(e,n))};o&&x&&P(u.Number,x),(M||o)&&P(u.Number,w)},aab3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(n("5261")),o=i(n("ca32"));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){var e={};for(var n in o.default)o.default.hasOwnProperty(n)&&(t.hasAttribute("jsbarcode-"+n.toLowerCase())&&(e[n]=t.getAttribute("jsbarcode-"+n.toLowerCase())),t.hasAttribute("data-"+n.toLowerCase())&&(e[n]=t.getAttribute("data-"+n.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,r.default)(e)}},ab13:function(t,e,n){"use strict";var r=n("b622")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},ab36:function(t,e,n){"use strict";var r=n("861d"),o=n("9112");t.exports=function(t,e){r(e)&&"cause"in e&&o(t,"cause",e.cause)}},ab5b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTotalWidthOfEncodings=e.calculateEncodingAttributes=e.getBarcodePadding=e.getEncodingHeight=e.getMaximumHeightOfEncodings=void 0;var r,o=n("fd7c"),i=(r=o)&&r.__esModule?r:{default:r};function a(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function u(t,e,n){if(n.displayValue&&e<t){if("center"==n.textAlign)return Math.floor((t-e)/2);if("left"==n.textAlign)return 0;if("right"==n.textAlign)return Math.floor(t-e)}return 0}function c(t,e,n){var r;if(n)r=n;else{if("undefined"==typeof document)return 0;r=document.createElement("canvas").getContext("2d")}r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var o=r.measureText(t);return o?o.width:0}e.getMaximumHeightOfEncodings=function(t){for(var e=0,n=0;n<t.length;n++)t[n].height>e&&(e=t[n].height);return e},e.getEncodingHeight=a,e.getBarcodePadding=u,e.calculateEncodingAttributes=function(t,e,n){for(var r=0;r<t.length;r++){var o,s=t[r],l=(0,i.default)(e,s.options);o=l.displayValue?c(s.text,l,n):0;var f=s.data.length*l.width;s.width=Math.ceil(Math.max(o,f)),s.height=a(s,l),s.barcodePadding=u(o,f,l)}},e.getTotalWidthOfEncodings=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].width;return e}},ac1f:function(t,e,n){"use strict";var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},addb:function(t,e,n){"use strict";var r=n("f36a"),o=Math.floor,i=function(t,e){var n=t.length;if(n<8)for(var a,u,c=1;c<n;){for(u=c,a=t[c];u&&e(t[u-1],a)>0;)t[u]=t[--u];u!==c++&&(t[u]=a)}else for(var s=o(n/2),l=i(r(t,0,s),e),f=i(r(t,s),e),d=l.length,m=f.length,p=0,h=0;p<d||h<m;)t[p+h]=p<d&&h<m?e(l[p],f[h])<=0?l[p++]:f[h++]:p<d?l[p++]:f[h++];return t};t.exports=i},ade3:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("53ca");n("8172"),n("d9e2"),n("efec"),n("a9e3");function o(t){var e=function(t,e){if("object"!=Object(r.a)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=Object(r.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Object(r.a)(e)?e:e+""}function i(t,e,n){return(e=o(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},ae68:function(t,e){!function(){"use strict";var t=Object.hasOwnProperty,e=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.Env"),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),o=function(t){return t.getParam("min_height",t.getElement().offsetHeight,"number")},i=function(t,e,n,o,a){r.setEditorTimeout(t,(function(){c(t,e),n--?i(t,e,n,o,a):a&&a()}),o)},a=function(t,e){var n=t.getBody();n&&(n.style.overflowY=e?"":"hidden",e||(n.scrollTop=0))},u=function(t,e,n,r){var o=parseInt(t.getStyle(e,n,r),10);return isNaN(o)?0:o},c=function(t,e,r){var i=t.dom,s=t.getDoc();if(s)if(function(t){return t.plugins.fullscreen&&t.plugins.fullscreen.isFullscreen()}(t))a(t,!0);else{var l=s.documentElement,f=function(t){return t.getParam("autoresize_bottom_margin",50,"number")}(t),d=o(t),m=u(i,l,"margin-top",!0),p=u(i,l,"margin-bottom",!0),h=l.offsetHeight+m+p+f;h<0&&(h=0);var g=t.getContainer().offsetHeight-t.getContentAreaContainer().offsetHeight;h+g>o(t)&&(d=h+g);var v=function(t){return t.getParam("max_height",0,"number")}(t);if(v&&d>v?(d=v,a(t,!0)):a(t,!1),d!==e.get()){var b=d-e.get();if(i.setStyle(t.getContainer(),"height",d+"px"),e.set(d),function(t){t.fire("ResizeEditor")}(t),n.browser.isSafari()&&n.mac){var y=t.getWin();y.scrollTo(y.pageXOffset,y.pageYOffset)}t.hasFocus()&&function(t){if("setcontent"===(null==t?void 0:t.type.toLowerCase())){var e=t;return!0===e.selection||!0===e.paste}return!1}(r)&&t.selection.scrollIntoView(),n.webkit&&b<0&&c(t,e,r)}}};e.add("autoresize",(function(e){var n,r,o;if(n=e.settings,r="resize",t.call(n,r)||(e.settings.resize=!1),!e.inline){var a=(o=0,{get:function(){return o},set:function(t){o=t}});!function(t,e){t.addCommand("mceAutoResize",(function(){c(t,e)}))}(e,a),function(t,e){t.on("init",(function(){var e=function(t){return t.getParam("autoresize_overflow_padding",1,"number")}(t),n=t.dom;n.setStyles(t.getDoc().documentElement,{height:"auto"}),n.setStyles(t.getBody(),{paddingLeft:e,paddingRight:e,"min-height":0})})),t.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",(function(n){c(t,e,n)})),function(t){return t.getParam("autoresize_on_init",!0,"boolean")}(t)&&t.on("init",(function(){i(t,e,20,100,(function(){i(t,e,5,1e3)}))}))}(e,a)}}))}()},ae93:function(t,e,n){"use strict";var r,o,i,a=n("d039"),u=n("1626"),c=n("861d"),s=n("7c73"),l=n("e163"),f=n("cb2d"),d=n("b622"),m=n("c430"),p=d("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):h=!0),!c(r)||a((function(){var t={};return r[p].call(t)!==t}))?r={}:m&&(r=s(r)),u(r[p])||f(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},aeb0:function(t,e,n){"use strict";var r=n("9bf2").f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){"use strict";var r=n("83ab"),o=n("d039");t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b041:function(t,e,n){"use strict";var r=n("00ee"),o=n("f5df");t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(t,e,n){"use strict";var r=n("83ab"),o=n("5e77").EXISTS,i=n("e330"),a=n("edd0"),u=Function.prototype,c=i(u.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(s.exec);r&&!o&&a(u,"name",{configurable:!0,get:function(){try{return l(s,c(this))[1]}catch(t){return""}}})},b1d8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=u(n("aab3")),i=u(n("752b")),a=n("dca2");function u(t){return t&&t.__esModule?t:{default:t}}function c(t){if("string"==typeof t)return function(t){var e=document.querySelectorAll(t);if(0===e.length)return;for(var n=[],r=0;r<e.length;r++)n.push(c(e[r]));return n}(t);if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++)e.push(c(t[n]));return e}if("undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLImageElement)return u=t,{element:s=document.createElement("canvas"),options:(0,o.default)(u),renderer:i.default.CanvasRenderer,afterRender:function(){u.setAttribute("src",s.toDataURL())}};if(t&&t.nodeName&&"svg"===t.nodeName.toLowerCase()||"undefined"!=typeof SVGElement&&t instanceof SVGElement)return{element:t,options:(0,o.default)(t),renderer:i.default.SVGRenderer};if("undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement)return{element:t,options:(0,o.default)(t),renderer:i.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:i.default.CanvasRenderer};if(t&&"object"===(void 0===t?"undefined":r(t))&&!t.nodeName)return{element:t,renderer:i.default.ObjectRenderer};throw new a.InvalidElementException;var u,s}e.default=c},b42e:function(t,e,n){"use strict";var r=Math.ceil,o=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?o:r)(e)}},b4bc:function(t,e,n){"use strict";var r=n("dc19"),o=n("cb27").has,i=n("8e16"),a=n("7f65"),u=n("384f"),c=n("5388"),s=n("2a62");t.exports=function(t){var e=r(this),n=a(t);if(i(e)<=n.size)return!1!==u(e,(function(t){if(n.includes(t))return!1}),!0);var l=n.getIterator();return!1!==c(l,(function(t){if(o(e,t))return s(l,"normal",!1)}))}},b4f8:function(t,e,n){"use strict";var r=n("23e7"),o=n("d066"),i=n("1a2d"),a=n("577e"),u=n("5692"),c=n("0b43"),s=u("string-to-symbol-registry"),l=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=a(t);if(i(s,e))return s[e];var n=o("Symbol")(e);return s[e]=n,l[n]=e,n}})},b50d:function(t,e,n){"use strict";var r=n("c532"),o=n("467f"),i=n("30b5"),a=n("c345"),u=n("3934"),c=n("2d83");t.exports=function(t){return new Promise((function(e,s){var l=t.data,f=t.headers;r.isFormData(l)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",p=t.auth.password||"";f.Authorization="Basic "+btoa(m+":"+p)}if(d.open(t.method.toUpperCase(),i(t.url,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:t,request:d};o(e,s,r),d=null}},d.onerror=function(){s(c("Network Error",t,null,d)),d=null},d.ontimeout=function(){s(c("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var h=n("7aac"),g=(t.withCredentials||u(t.url))&&t.xsrfCookieName?h.read(t.xsrfCookieName):void 0;g&&(f[t.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(f,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete f[e]:d.setRequestHeader(e,t)})),t.withCredentials&&(d.withCredentials=!0),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),s(t),d=null)})),void 0===l&&(l=null),d.send(l)}))}},b575:function(t,e,n){"use strict";var r,o,i,a,u,c=n("cfe9"),s=n("157a"),l=n("0366"),f=n("2cf4").set,d=n("01b4"),m=n("52c8"),p=n("ebc1"),h=n("ec87"),g=n("9adc"),v=c.MutationObserver||c.WebKitMutationObserver,b=c.document,y=c.process,_=c.Promise,w=s("queueMicrotask");if(!w){var x=new d,O=function(){var t,e;for(g&&(t=y.domain)&&t.exit();e=x.get();)try{e()}catch(t){throw x.head&&r(),t}t&&t.enter()};m||g||h||!v||!b?!p&&_&&_.resolve?((a=_.resolve(void 0)).constructor=_,u=l(a.then,a),r=function(){u(O)}):g?r=function(){y.nextTick(O)}:(f=l(f,c),r=function(){f(O)}):(o=!0,i=b.createTextNode(""),new v(O).observe(i,{characterData:!0}),r=function(){i.data=o=!o}),w=function(t){x.head||r(),x.add(t)}}t.exports=w},b5db:function(t,e,n){"use strict";var r=n("cfe9").navigator,o=r&&r.userAgent;t.exports=o?String(o):""},b622:function(t,e,n){"use strict";var r=n("cfe9"),o=n("5692"),i=n("1a2d"),a=n("90e3"),u=n("04f8"),c=n("fdbf"),s=r.Symbol,l=o("wks"),f=c?s.for||s:s&&s.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=u&&i(s,t)?s[t]:f("Symbol."+t)),l[t]}},b636:function(t,e,n){"use strict";n("e065")("asyncIterator")},b64b:function(t,e,n){"use strict";var r=n("23e7"),o=n("7b0b"),i=n("df75");r({target:"Object",stat:!0,forced:n("d039")((function(){i(1)}))},{keys:function(t){return i(o(t))}})},b680:function(t,e,n){"use strict";var r=n("23e7"),o=n("e330"),i=n("5926"),a=n("408a"),u=n("1148"),c=n("d039"),s=RangeError,l=String,f=Math.floor,d=o(u),m=o("".slice),p=o(1..toFixed),h=function(t,e,n){return 0===e?n:e%2==1?h(t,e-1,n*t):h(t*t,e/2,n)},g=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=f(o/1e7)},v=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=f(r/e),r=r%e*1e7},b=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=l(t[e]);n=""===n?r:n+d("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:c((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!c((function(){p({})}))},{toFixed:function(t){var e,n,r,o,u=a(this),c=i(t),f=[0,0,0,0,0,0],p="",y="0";if(c<0||c>20)throw new s("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return l(u);if(u<0&&(p="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*h(2,69,1))-69)<0?u*h(2,-e,1):u/h(2,e,1),n*=4503599627370496,(e=52-e)>0){for(g(f,0,n),r=c;r>=7;)g(f,1e7,0),r-=7;for(g(f,h(10,r,1),0),r=e-1;r>=23;)v(f,1<<23),r-=23;v(f,1<<r),g(f,1,1),v(f,2),y=b(f)}else g(f,0,n),g(f,1<<-e,0),y=b(f)+d("0",c);return y=c>0?p+((o=y.length)<=c?"0."+d("0",c-o)+y:m(y,0,o-c)+"."+m(y,o-c)):p+y}})},b727:function(t,e,n){"use strict";var r=n("0366"),o=n("e330"),i=n("44ad"),a=n("7b0b"),u=n("07fa"),c=n("65f0"),s=o([].push),l=function(t){var e=1===t,n=2===t,o=3===t,l=4===t,f=6===t,d=7===t,m=5===t||f;return function(p,h,g,v){for(var b,y,_=a(p),w=i(_),x=u(w),O=r(h,g),S=0,C=v||c,E=e?C(p,x):n||d?C(p,0):void 0;x>S;S++)if((m||S in w)&&(y=O(b=w[S],S,_),t))if(e)E[S]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:s(E,b)}else switch(t){case 4:return!1;case 7:s(E,b)}return f?-1:o||l?l:E}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},b980:function(t,e,n){"use strict";var r=n("d039"),o=n("5c6c");t.exports=!r((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},bb2f:function(t,e,n){"use strict";var r=n("d039");t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bb5d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f08e"),o=function(t){return t.match(new RegExp("^"+r.A_CHARS+"*"))[0].length},i=function(t){return t.match(new RegExp("^"+r.B_CHARS+"*"))[0].length},a=function(t){return t.match(new RegExp("^"+r.C_CHARS+"*"))[0]};function u(t,e){var n=e?r.A_CHARS:r.B_CHARS,o=t.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(o)return o[1]+String.fromCharCode(204)+c(t.substring(o[1].length));var i=t.match(new RegExp("^"+n+"+"))[0];return i.length===t.length?t:i+String.fromCharCode(e?205:206)+u(t.substring(i.length),!e)}function c(t){var e=a(t),n=e.length;if(n===t.length)return t;t=t.substring(n);var r=o(t)>=i(t);return e+String.fromCharCode(r?206:205)+u(t,r)}e.default=function(t){var e=void 0;if(a(t).length>=2)e=r.C_START_CHAR+c(t);else{var n=o(t)>i(t);e=(n?r.A_START_CHAR:r.B_START_CHAR)+u(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(t,e){return String.fromCharCode(203)+e}))}},bc3a:function(t,e,n){t.exports=n("cee4")},bc54:function(t,e,n){n("7c4f")},bcc9:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("c7eb"),o=n("1da1"),i=(n("2909"),n("99af"),n("7db0"),n("e260"),n("d81d"),n("14d9"),n("b0c0"),n("b64b"),n("d3b7"),n("25f0"),n("3ca3"),n("159b"),n("ddb0"),n("2b3d"),n("bf19"),n("9861"),n("88a7"),n("271a"),n("5494"),n("98fc"),n("7694"));function a(){return u.apply(this,arguments)}function u(){return(u=Object(o.a)(Object(r.a)().mark((function t(){var e,n,o,a,u,c,s=arguments;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=s.length>0&&void 0!==s[0]?s[0]:[],n=s.length>1&&void 0!==s[1]?s[1]:null,!e.length){t.next=15;break}return e=e.map((function(t){if(t.url&&t.url.length&&t.url.indexOf("fileName=")>-1&&t.url.split("fileName=").length>1){var e=t.url.split("fileName=")[1];return e.split("&originalName=").length>1?{name:e.split("&originalName=")[0],originalName:e.split("&originalName=")[1]}:{name:e,originalName:t.name}}return!1})),t.prev=4,t.next=7,Object(i.a)(e);case 7:(o=t.sent).code&&"0000"!==o.code?this.$message.error(o.message):(a=new Blob([o.data],{type:"application/zip"}),u=window.URL.createObjectURL(a),(c=document.createElement("a")).href=u,c.download="".concat(n?n+"_":"","批量下载_").concat((new Date).getTime(),".zip"),document.body.appendChild(c),c.click()),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(4),this.$message.error(t.t0.message||"批量下载失败");case 15:case"end":return t.stop()}}),t,this,[[4,11]])})))).apply(this,arguments)}},bd8a:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.api=e}return r(t,[{key:"handleCatch",value:function(t){if("InvalidInputException"!==t.name)throw t;if(this.api._options.valid===this.api._defaults.valid)throw t.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(t){try{var e=t.apply(void 0,arguments);return this.api._options.valid(!0),e}catch(t){return this.handleCatch(t),this.api}}}]),t}();e.default=o},bdfe:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("c243"),i=a(n("5726"));function a(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.fontSize=!n.flat&&n.fontSize>10*n.width?10*n.width:n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:o.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:o.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:o.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){return{data:[o.SIDE_BIN,this.leftEncode(),o.MIDDLE_BIN,this.rightEncode(),o.SIDE_BIN].join(""),text:this.text}}}]),e}(a(n("e762")).default);e.default=u},be5e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("fd7c"),a=(r=i)&&r.__esModule?r:{default:r},u=n("ab5b");var c="http://www.w3.org/2000/svg",s=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.svg=e,this.encodings=n,this.options=r,this.document=r.xmlDocument||document}return o(t,[{key:"render",value:function(){var t=this.options.marginLeft;this.prepareSVG();for(var e=0;e<this.encodings.length;e++){var n=this.encodings[e],r=(0,a.default)(this.options,n.options),o=this.createGroup(t,r.marginTop,this.svg);this.setGroupOptions(o,r),this.drawSvgBarcode(o,r,n),this.drawSVGText(o,r,n),t+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,u.calculateEncodingAttributes)(this.encodings,this.options);var t=(0,u.getTotalWidthOfEncodings)(this.encodings),e=(0,u.getMaximumHeightOfEncodings)(this.encodings),n=t+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,e),this.options.background&&this.drawRect(0,0,n,e,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(t,e,n){var r,o=n.data;r="top"==e.textPosition?e.fontSize+e.textMargin:0;for(var i=0,a=0,u=0;u<o.length;u++)a=u*e.width+n.barcodePadding,"1"===o[u]?i++:i>0&&(this.drawRect(a-e.width*i,r,e.width*i,e.height,t),i=0);i>0&&this.drawRect(a-e.width*(i-1),r,e.width*i,e.height,t)}},{key:"drawSVGText",value:function(t,e,n){var r,o,i=this.document.createElementNS(c,"text");e.displayValue&&(i.setAttribute("style","font:"+e.fontOptions+" "+e.fontSize+"px "+e.font),o="top"==e.textPosition?e.fontSize-e.textMargin:e.height+e.textMargin+e.fontSize,"left"==e.textAlign||n.barcodePadding>0?(r=0,i.setAttribute("text-anchor","start")):"right"==e.textAlign?(r=n.width-1,i.setAttribute("text-anchor","end")):(r=n.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",r),i.setAttribute("y",o),i.appendChild(this.document.createTextNode(n.text)),t.appendChild(i))}},{key:"setSvgAttributes",value:function(t,e){var n=this.svg;n.setAttribute("width",t+"px"),n.setAttribute("height",e+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+t+" "+e),n.setAttribute("xmlns",c),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,e,n){var r=this.document.createElementNS(c,"g");return r.setAttribute("transform","translate("+t+", "+e+")"),n.appendChild(r),r}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("style","fill:"+e.lineColor+";")}},{key:"drawRect",value:function(t,e,n,r,o){var i=this.document.createElementNS(c,"rect");return i.setAttribute("x",t),i.setAttribute("y",e),i.setAttribute("width",n),i.setAttribute("height",r),o.appendChild(i),i}}]),t}();e.default=s},be98:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=u(n("5726")),i=u(n("e762")),a=n("e8b2");function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],l=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],f=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(r.isValid=!1,-1!==t.search(/^[0-9]{6}$/))r.middleDigits=t,r.upcA=d(t,"0"),r.text=n.text||""+r.upcA[0]+t+r.upcA[r.upcA.length-1],r.isValid=!0;else{if(-1===t.search(/^[01][0-9]{7}$/))return c(r);if(r.middleDigits=t.substring(1,t.length-1),r.upcA=d(r.middleDigits,t[0]),r.upcA[r.upcA.length-1]!==t[t.length-1])return c(r);r.isValid=!0}return r.displayValue=n.displayValue,n.fontSize>10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=this.encodeMiddleDigits(),{data:t+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=this.upcA[this.upcA.length-1],n=l[parseInt(e)][parseInt(t)];return(0,o.default)(this.middleDigits,n)}}]),e}(i.default);function d(t,e){for(var n=parseInt(t[t.length-1]),r=s[n],o="",i=0,u=0;u<r.length;u++){var c=r[u];o+="X"===c?t[i++]:c}return""+(o=""+e+o)+(0,a.checksum)(o)}e.default=f},bf19:function(t,e,n){"use strict";var r=n("23e7"),o=n("c65b");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},bfce:function(t,e,n){"use strict";var r=n("53ca"),o=(n("e9c4"),n("d3b7"),n("25f0"),n("f579")),i=n.n(o),a=n("658f"),u=n.n(a),c={name:"QrCodeComponent",props:{options:{type:Object,default:function(){}},dataModels:{type:Object,default:function(){}},content:{type:String,default:""},isFixedContent:{type:Boolean,default:!1}},components:{VueBarcode:i.a,VueQr:u.a},computed:{codeValue:function(){return this.isFixedContent?this.content:this.options.codeValue}},methods:{getImageData:function(){var t="",e=this.$refs.codeRef;if(e)if("qr"===this.options.mode)t=e.imgUrl;else if("bar"===this.options.mode)try{var n=e.$el.getElementsByTagName("img");n&&n.length&&(t=n[0].src)}catch(t){}return t}},watch:{dataModels:{immediate:!0,deep:!0,handler:function(t){if(this.options.relatedField&&""!==this.options.relatedField)for(var e in t)e===this.options.relatedField&&("object"===Object(r.a)(t[e])?this.options.codeValue=JSON.stringify(t[e]):this.options.codeValue=t[e].toString())}}}},s=n("2877"),l=Object(s.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",["qr"===t.options.mode?n("vue-qr",{ref:"codeRef",attrs:{correctLevel:3,margin:5,size:t.options.codeSize,text:t.codeValue}}):"bar"===t.options.mode?n("vue-barcode",{ref:"codeRef",attrs:{displayValue:t.options.displayCodeValue,height:t.options.codeHeight,value:t.codeValue,"element-tag":"img",font:"-apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif","font-size":"14",width:"1"}},[t._v(" 请输入或配置条码内容(CODE128) ")]):t._e()],1)}),[],!1,null,null,null);e.a=l.exports},c04e:function(t,e,n){"use strict";var r=n("c65b"),o=n("861d"),i=n("d9b5"),a=n("dc4a"),u=n("485a"),c=n("b622"),s=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,c=a(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!o(n)||i(n))return n;throw new s("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},c17b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.codabar=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("e762");var a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),0===t.search(/^[0-9\-\$\:\.\+\/]+$/)&&(t="A"+t+"A");var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),n));return r.text=r.options.text||r.text.replace(/[A-D]/g,""),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){for(var t=[],e=this.getEncodings(),n=0;n<this.data.length;n++)t.push(e[this.data.charAt(n)]),n!==this.data.length-1&&t.push("0");return{text:this.text,data:t.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(((r=i)&&r.__esModule?r:{default:r}).default);e.codabar=a},c1a1:function(t,e,n){"use strict";var r=n("23e7"),o=n("b4bc");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("isDisjointFrom")},{isDisjointFrom:o})},c243:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SIDE_BIN="101",e.MIDDLE_BIN="01010",e.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},e.EAN2_STRUCTURE=["LL","LG","GL","GG"],e.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],e.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},c32d:function(t,e){t.exports=require("moment")},c345:function(t,e,n){"use strict";var r=n("c532"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c401:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},c430:function(t,e,n){"use strict";t.exports=!1},c513:function(t,e,n){"use strict";var r=n("23e7"),o=n("1a2d"),i=n("d9b5"),a=n("0d51"),u=n("5692"),c=n("0b43"),s=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!i(t))throw new TypeError(a(t)+" is not a symbol");if(o(s,t))return s[t]}})},c532:function(t,e,n){"use strict";var r=n("1d2b"),o=n("c7ce"),i=Object.prototype.toString;function a(t){return"[object Array]"===i.call(t)}function u(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===i.call(t)}function s(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:a,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:u,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:c,isStream:function(t){return u(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:s,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)s(arguments[r],n);return e},extend:function(t,e,n){return s(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},c5f1:function(t,e,n){"use strict";n("e7c2")},c65b:function(t,e,n){"use strict";var r=n("40d5"),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},c6b6:function(t,e,n){"use strict";var r=n("e330"),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},c6cd:function(t,e,n){"use strict";var r=n("c430"),o=n("cfe9"),i=n("6374"),a=t.exports=o["__core-js_shared__"]||i("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.38.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},c6d2:function(t,e,n){"use strict";var r=n("23e7"),o=n("c65b"),i=n("c430"),a=n("5e77"),u=n("1626"),c=n("dcc3"),s=n("e163"),l=n("d2bb"),f=n("d44e"),d=n("9112"),m=n("cb2d"),p=n("b622"),h=n("3f8c"),g=n("ae93"),v=a.PROPER,b=a.CONFIGURABLE,y=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x=function(){return this};t.exports=function(t,e,n,a,p,g,O){c(n,e,a);var S,C,E,k=function(t){if(t===p&&P)return P;if(!_&&t&&t in D)return D[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},T=e+" Iterator",M=!1,D=t.prototype,A=D[w]||D["@@iterator"]||p&&D[p],P=!_&&A||k(p),R="Array"===e&&D.entries||A;if(R&&(S=s(R.call(new t)))!==Object.prototype&&S.next&&(i||s(S)===y||(l?l(S,y):u(S[w])||m(S,w,x)),f(S,T,!0,!0),i&&(h[T]=x)),v&&"values"===p&&A&&"values"!==A.name&&(!i&&b?d(D,"name","values"):(M=!0,P=function(){return o(A,this)})),p)if(C={values:k("values"),keys:g?P:k("keys"),entries:k("entries")},O)for(E in C)(_||M||!(E in D))&&m(D,E,C[E]);else r({target:e,proto:!0,forced:_||M},C);return i&&!O||D[w]===P||m(D,w,P,{name:p}),h[e]=P,C}},c6eb:function(t,e,n){"use strict";(function(t){var r=n("5ea3"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.a.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();e.a=u}).call(this,n("dd40")(t))},c740:function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").findIndex,i=n("44d2"),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},c7ce:function(t,e){
|
|
11
|
+
e.read=function(t,e,n,r,o){var i,a,u=8*o-r-1,c=(1<<u)-1,s=c>>1,l=-7,f=n?o-1:0,d=n?-1:1,m=t[e+f];for(f+=d,i=m&(1<<-l)-1,m>>=-l,l+=u;l>0;i=256*i+t[e+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=d,l-=8);if(0===i)i=1-s;else{if(i===c)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,r),i-=s}return(m?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,u,c,s=8*i-o-1,l=(1<<s)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:i-1,p=r?1:-1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(u=0,a=l):a+f>=1?(u=(e*c-1)*Math.pow(2,o),a+=f):(u=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[n+m]=255&u,m+=p,u/=256,o-=8);for(a=a<<o|u,s+=o;s>0;t[n+m]=255&a,m+=p,a/=256,s-=8);t[n+m-p]|=128*h}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,s=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&m())}function m(){if(!l){var t=u(d);l=!0;for(var e=s.length;e;){for(c=s,s=[];++f<e;)c&&c[f].run();f=-1,e=s.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function h(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new p(t,e)),1!==s.length||l||u(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";n.r(e);var r=n(6),o=n.n(r),i=n(3),a=n.n(i);function u(t){return""===t?t:"true"===t||"1"==t}var c=function(t,e){return new Promise((function(e,n){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsArrayBuffer(r.response)},r.open("GET",t),r.send()}))},s=n(9),l=function(t,e,n,r,o,i,a,u){var c,s="function"==typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=[],s._compiled=!0),c)if(s.functional){s._injectStyles=c;var l=s.render;s.render=function(t,e){return c.call(e),l(t,e)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:s}}({props:{text:{type:String,required:!0},qid:{type:String},correctLevel:{type:Number,default:1},size:{type:Number,default:200},margin:{type:Number,default:20},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#FFFFFF"},bgSrc:{type:String,default:void 0},background:{type:String,default:"rgba(0,0,0,0)"},backgroundDimming:{type:String,default:"rgba(0,0,0,0)"},logoSrc:{type:String,default:void 0},logoBackgroundColor:{type:String,default:"rgba(255,255,255,1)"},gifBgSrc:{type:String,default:void 0},logoScale:{type:Number,default:.2},logoMargin:{type:Number,default:0},logoCornerRadius:{type:Number,default:8},whiteMargin:{type:[Boolean,String],default:!0},dotScale:{type:Number,default:1},autoColor:{type:[Boolean,String],default:!0},binarize:{type:[Boolean,String],default:!1},binarizeThreshold:{type:Number,default:128},callback:{type:Function,default:function(){}},bindElement:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},components:{default:function(){return{data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}}}}},name:"vue-qr",data:function(){return{imgUrl:""}},watch:{$props:{deep:!0,handler:function(){this.main()}}},mounted:function(){this.main()},methods:{main:function(){var t=this;return o()(a.a.mark((function e(){var n,r,o,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.gifBgSrc){e.next=7;break}return e.next=3,c(t.gifBgSrc);case 3:return n=e.sent,r=t.logoSrc,t.render(void 0,r,n),e.abrupt("return");case 7:o=t.bgSrc,i=t.logoSrc,t.render(o,i);case 10:case"end":return e.stop()}}),e)})))()},render:function(t,e,n){var r=this;return o()(a.a.mark((function o(){var i;return a.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:i=r,new s.a({gifBackground:n,text:i.text,size:i.size,margin:i.margin,colorDark:i.colorDark,colorLight:i.colorLight,backgroundColor:i.backgroundColor,backgroundImage:t,backgroundDimming:i.backgroundDimming,logoImage:e,logoScale:i.logoScale,logoBackgroundColor:i.logoBackgroundColor,correctLevel:i.correctLevel,logoMargin:i.logoMargin,logoCornerRadius:i.logoCornerRadius,whiteMargin:u(i.whiteMargin),dotScale:i.dotScale,autoColor:u(i.autoColor),binarize:u(i.binarize),binarizeThreshold:i.binarizeThreshold,components:i.components}).draw().then((function(t){r.imgUrl=t,i.callback&&i.callback(t,i.qid)}));case 2:case"end":return o.stop()}}),o)})))()}}},(function(){var t=this.$createElement,e=this._self._c||t;return this.bindElement?e("img",{staticStyle:{display:"inline-block"},attrs:{src:this.imgUrl}}):this._e()})).exports;l.install=function(t){return t.component(l.name,l)};var f=l,d=[f];"undefined"!=typeof window&&window.Vue&&function(t){d.map((function(e){t.component(e.name,e)}))}(window.Vue),e.default=f}])},"65f0":function(t,e,n){"use strict";var r=n("0b42");t.exports=function(t,e){return new(r(t))(0===e?0:e)}},6821:function(t,e,n){},"68df":function(t,e,n){"use strict";var r=n("dc19"),o=n("8e16"),i=n("384f"),a=n("7f65");t.exports=function(t){var e=r(this),n=a(t);return!(o(e)>n.size)&&!1!==i(e,(function(t){if(!n.includes(t))return!1}),!0)}},"68ee":function(t,e,n){"use strict";var r=n("e330"),o=n("d039"),i=n("1626"),a=n("f5df"),u=n("d066"),c=n("8925"),s=function(){},l=u("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),m=!f.test(s),p=function(t){if(!i(t))return!1;try{return l(s,[],t),!0}catch(t){return!1}},h=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!d(f,c(t))}catch(t){return!0}};h.sham=!0,t.exports=!l||o((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?h:p},6964:function(t,e,n){"use strict";var r=n("cb2d");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},"69f3":function(t,e,n){"use strict";var r,o,i,a=n("cdce"),u=n("cfe9"),c=n("861d"),s=n("9112"),l=n("1a2d"),f=n("c6cd"),d=n("f772"),m=n("d012"),p=u.TypeError,h=u.WeakMap;if(a||f.state){var g=f.state||(f.state=new h);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw new p("Object already initialized");return e.facade=t,g.set(t,e),e},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var v=d("state");m[v]=!0,r=function(t,e){if(l(t,v))throw new p("Object already initialized");return e.facade=t,s(t,v,e),e},o=function(t){return l(t,v)?t[v]:{}},i=function(t){return l(t,v)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw new p("Incompatible receiver, "+t+" required");return n}}}},"6b3e":function(t,e,n){},"6ba6":function(t,e,n){"use strict";function r(){return{list:[],config:{labelWidth:100,labelPosition:"right",size:"small",customClass:"",ui:"element",layout:"horizontal",labelCol:3,width:"100%",hideLabel:!1,hideErrorMessage:!1,theme:"default",themeTitle:"",themeSubTitle:"",themeTitleAlign:"left",submitHiddenArea:!1}}}n.d(e,"a",(function(){return r}))},"6d4d":function(t,e,n){"use strict";n("8409")},"6d61":function(t,e,n){"use strict";var r=n("23e7"),o=n("cfe9"),i=n("e330"),a=n("94ca"),u=n("cb2d"),c=n("f183"),s=n("2266"),l=n("19aa"),f=n("1626"),d=n("7234"),m=n("861d"),p=n("d039"),h=n("1c7e"),g=n("d44e"),v=n("7156");t.exports=function(t,e,n){var b=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),_=b?"set":"add",w=o[t],x=w&&w.prototype,O=w,S={},C=function(t){var e=i(x[t]);u(x,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(y&&!m(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return y&&!m(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(y&&!m(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(a(t,!f(w)||!(y||x.forEach&&!p((function(){(new w).entries().next()})))))O=n.getConstructor(e,t,b,_),c.enable();else if(a(t,!0)){var E=new O,k=E[_](y?{}:-0,1)!==E,T=p((function(){E.has(1)})),M=h((function(t){new w(t)})),D=!y&&p((function(){for(var t=new w,e=5;e--;)t[_](e,e);return!t.has(-0)}));M||((O=e((function(t,e){l(t,x);var n=v(new w,t,O);return d(e)||s(e,n[_],{that:n,AS_ENTRIES:b}),n}))).prototype=x,x.constructor=O),(T||D)&&(C("delete"),C("has"),b&&C("get")),(D||k)&&C(_),y&&x.clear&&delete x.clear}return S[t]=O,r({global:!0,constructor:!0,forced:O!==w},S),g(O,t),y||n.setStrong(O,t,b),O}},"6e53":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mod10=function(t){for(var e=0,n=0;n<t.length;n++){var r=parseInt(t[n]);(n+t.length)%2==0?e+=r:e+=2*r%10+Math.floor(2*r/10)}return(10-e%10)%10},e.mod11=function(t){for(var e=0,n=[2,3,4,5,6,7],r=0;r<t.length;r++){var o=parseInt(t[t.length-1-r]);e+=n[r%n.length]*o}return(11-e%11)%11}},"6f19":function(t,e,n){"use strict";var r=n("9112"),o=n("0d26"),i=n("b980"),a=Error.captureStackTrace;t.exports=function(t,e,n,u){i&&(a?a(t,e):r(t,"stack",o(n,u)))}},"6f24":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(n("4b23")),o=i(n("bb5d"));function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(t,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,o.default)(t),n));else r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return a(r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);e.default=u},"70b0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("4b23"),a=(r=i)&&r.__esModule?r:{default:r},u=n("f08e");var c=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,u.B_START_CHAR+t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return new RegExp("^"+u.B_CHARS+"+$").test(this.data)}}]),e}(a.default);e.default=c},7149:function(t,e,n){"use strict";var r=n("23e7"),o=n("d066"),i=n("c430"),a=n("d256"),u=n("4738").CONSTRUCTOR,c=n("cdf9"),s=o("Promise"),l=i&&!u;r({target:"Promise",stat:!0,forced:i||u},{resolve:function(t){return c(l&&this===s?a:this,t)}})},7156:function(t,e,n){"use strict";var r=n("1626"),o=n("861d"),i=n("d2bb");t.exports=function(t,e,n){var a,u;return i&&r(a=e.constructor)&&a!==n&&o(u=a.prototype)&&u!==n.prototype&&i(t,u),t}},7193:function(t,e,n){n("ae68")},"721a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("fd7c"),a=(r=i)&&r.__esModule?r:{default:r},u=n("ab5b");var c=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.canvas=e,this.encodings=n,this.options=r}return o(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var t=0;t<this.encodings.length;t++){var e=(0,a.default)(this.options,this.encodings[t].options);this.drawCanvasBarcode(e,this.encodings[t]),this.drawCanvasText(e,this.encodings[t]),this.moveCanvasDrawing(this.encodings[t])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var t=this.canvas.getContext("2d");t.save(),(0,u.calculateEncodingAttributes)(this.encodings,this.options,t);var e=(0,u.getTotalWidthOfEncodings)(this.encodings),n=(0,u.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=e+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,t.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(t.fillStyle=this.options.background,t.fillRect(0,0,this.canvas.width,this.canvas.height)),t.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(t,e){var n,r=this.canvas.getContext("2d"),o=e.data;n="top"==t.textPosition?t.marginTop+t.fontSize+t.textMargin:t.marginTop,r.fillStyle=t.lineColor;for(var i=0;i<o.length;i++){var a=i*t.width+e.barcodePadding;"1"===o[i]?r.fillRect(a,n,t.width,t.height):o[i]&&r.fillRect(a,n,t.width,t.height*o[i])}}},{key:"drawCanvasText",value:function(t,e){var n,r,o=this.canvas.getContext("2d"),i=t.fontOptions+" "+t.fontSize+"px "+t.font;t.displayValue&&(r="top"==t.textPosition?t.marginTop+t.fontSize-t.textMargin:t.height+t.textMargin+t.marginTop+t.fontSize,o.font=i,"left"==t.textAlign||e.barcodePadding>0?(n=0,o.textAlign="left"):"right"==t.textAlign?(n=e.width-1,o.textAlign="right"):(n=e.width/2,o.textAlign="center"),o.fillText(e.text,n,r))}},{key:"moveCanvasDrawing",value:function(t){this.canvas.getContext("2d").translate(t.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),t}();e.default=c},7234:function(t,e,n){"use strict";t.exports=function(t){return null==t}},7282:function(t,e,n){"use strict";var r=n("e330"),o=n("59ed");t.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},"72c3":function(t,e,n){"use strict";var r=n("23e7"),o=n("e9bc");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("union")},{union:o})},7418:function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},"752b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n("721a")),o=a(n("be5e")),i=a(n("4ced"));function a(t){return t&&t.__esModule?t:{default:t}}e.default={CanvasRenderer:r.default,SVGRenderer:o.default,ObjectRenderer:i.default}},7694:function(t,e,n){"use strict";n.d(e,"k",(function(){return v})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return y})),n.d(e,"l",(function(){return _})),n.d(e,"d",(function(){return w})),n.d(e,"j",(function(){return x})),n.d(e,"m",(function(){return O})),n.d(e,"i",(function(){return S})),n.d(e,"e",(function(){return C})),n.d(e,"h",(function(){return E})),n.d(e,"n",(function(){return k})),n.d(e,"c",(function(){return T})),n.d(e,"o",(function(){return M})),n.d(e,"b",(function(){return D})),n.d(e,"a",(function(){return A}));n("d9e2");var r=null,o=null,i=null,a=null,u=null,c=null,s=null,l=null,f=null,d=null,m=null,p=null,h=null,g=null,v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r=t.getDictItemsByParentId,o=t.getDictListByPage,i=t.ossServiceInfo,a=t.fileDownload,u=t.getUserList,c=t.searchUser,s=t.getOrgTree,t.getFormInfoListByPage,l=t.getColumnList,f=t.getFormDataListByPage,t.getThirdApiListByPage,d=t.triggerThirdApi,m=t.exportFormModel2Excel,p=t.uploadExcel,h=t.excelData2Table,g=t.batchDownload},b=function(t){return r?r(t):new Error("adapter must use after initialization!")},y=function(t){return o?o(t):new Error("adapter must use after initialization!")},_=function(t){return i?i(t):new Error("adapter must use after initialization!")},w=function(t){return a?a(t):new Error("adapter must use after initialization!")},x=function(t){return u?u(t):new Error("adapter must use after initialization!")},O=function(t){return c?c(t):new Error("adapter must use after initialization!")},S=function(t){return s?s(t):new Error("adapter must use after initialization!")},C=function(t){return l?l(t):new Error("adapter must use after initialization!")},E=function(t){return f?f(t):new Error("adapter must use after initialization!")},k=function(t){return d?d(t):new Error("adapter must use after initialization!")},T=function(t){return m?m(t):new Error("adapter must use after initialization!")},M=function(t){return p?p(t):new Error("adapter must use after initialization!")},D=function(t){return h?h(t):new Error("adapter must use after initialization!")},A=function(t){return g?g(t):new Error("adapter must use after initialization!")}},7839:function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(t,e,n){"use strict";var r=n("cc12")("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},"79a4":function(t,e,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("953b");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("intersection")||o((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:i})},"79f1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}},"7a77":function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},"7aac":function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var u=[];u.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},"7b0b":function(t,e,n){"use strict";var r=n("1d80"),o=Object;t.exports=function(t){return o(r(t))}},"7bd8":function(t,e,n){},"7c4f":function(t,e){!function(){"use strict";var t,e,n,r,o,i=function(t){var e=t;return{get:function(){return e},set:function(t){e=t}}},a=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=(t="array",function(e){return r=typeof(n=e),(null===n?"null":"object"===r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===t;var n,r}),c=function(t){return!function(t){return null==t}(t)},s=function(t){return function(e){return typeof e===t}}("function"),l=function(){},f=function(t){return function(){return t}},d=function(t){return t},m=f(!1),p=f(!0),h=function(){return g},g={fold:function(t,e){return t()},isSome:m,isNone:p,getOr:n=d,getOrThunk:e=function(t){return t()},getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:n,orThunk:e,map:h,each:l,bind:h,exists:m,forall:p,filter:function(){return h()},toArray:function(){return[]},toString:f("none()")},v=function(t){var e=f(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:p,isNone:m,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return v(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:g},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},b={some:v,none:h,from:function(t){return null==t?g:v(t)}},y=Array.prototype.slice,_=Array.prototype.push,w=function(t,e){for(var n=0,r=t.length;n<r;n++){if(e(t[n],n))return!0}return!1},x=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},O=function(t,e){for(var n=0,r=t.length;n<r;n++){e(t[n],n)}},S=function(t,e){return function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!u(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);_.apply(e,t[n])}return e}(x(t,e))},C=s(Array.from)?Array.from:function(t){return y.call(t)},E=function(){return(E=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},k=function(){var t=function(t){var e=i(b.none()),n=function(){return e.get().each(t)};return{clear:function(){n(),e.set(b.none())},isSet:function(){return e.get().isSome()},get:function(){return e.get()},set:function(t){n(),e.set(b.some(t))}}}(l);return E(E({},t),{on:function(e){return t.get().each(e)}})},T=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},M=tinymce.util.Tools.resolve("tinymce.Env"),D=tinymce.util.Tools.resolve("tinymce.util.Delay"),A=tinymce.util.Tools.resolve("tinymce.util.Promise"),P=tinymce.util.Tools.resolve("tinymce.util.VK"),R=function(t,e){return t.fire("PastePlainTextToggle",{state:e})},I=tinymce.util.Tools.resolve("tinymce.util.Tools"),z=function(t){return t.getParam("paste_data_images",!1)},j=function(t){return t.getParam("paste_merge_formats",!0)},L=function(t){return t.getParam("paste_retain_style_properties")},B=function(t){return t.getParam("validate")},F=function(t){return t.getParam("allow_html_data_urls",!1,"boolean")},N=function(t){return t.getParam("paste_data_images",!1,"boolean")},H=function(t){return I.explode(t.getParam("images_file_types","jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp","string"))},V=function(t){return-1!==t.indexOf("\x3c!-- x-tinymce/html --\x3e")},U=f("x-tinymce/html"),W=Object.hasOwnProperty,$=function(t,e){return W.call(t,e)},G=tinymce.util.Tools.resolve("tinymce.html.Entities"),K=function(t,e,n){var r=t.split(/\n\n/),o=function(t,e){var n=[],r="<"+t;if("object"==typeof e){for(var o in e)$(e,o)&&n.push(o+'="'+G.encodeAllRaw(e[o])+'"');n.length&&(r+=" "+n.join(" "))}return r+">"}(e,n),i="</"+e+">",a=I.map(r,(function(t){return t.split(/\n/).join("<br />")}));return 1===a.length?a[0]:I.map(a,(function(t){return o+t+i})).join("")},q=tinymce.util.Tools.resolve("tinymce.html.DomParser"),X=tinymce.util.Tools.resolve("tinymce.html.Serializer"),Y=tinymce.util.Tools.resolve("tinymce.html.Node"),J=tinymce.util.Tools.resolve("tinymce.html.Schema"),Q=function(t,e){return I.each(e,(function(e){t=e.constructor===RegExp?t.replace(e,""):t.replace(e[0],e[1])})),t},Z=function(t){return t=Q(t,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,function(t,e,n){return e||n?" ":" "}],/<br class="Apple-interchange-newline">/g,/<br>$/i])},tt=function(t){return/<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument/i.test(t)||/class="OutlineElement/.test(t)||/id="?docs\-internal\-guid\-/.test(t)},et=function(t){var e=!1;return t=t.replace(/^[\u00a0 ]+/,""),I.each([/^[IVXLMCD]+\.[ \u00a0]/,/^[ivxlmcd]+\.[ \u00a0]/,/^[a-z]{1,2}[\.\)][ \u00a0]/,/^[A-Z]{1,2}[\.\)][ \u00a0]/,/^[0-9]+\.[ \u00a0]/,/^[\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]+\.[ \u00a0]/,/^[\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d\u62fe]+\.[ \u00a0]/],(function(n){if(n.test(t))return e=!0,!1})),e},nt=function(t,e,n,r){var o={},i=t.dom.parseStyle(r);I.each(i,(function(i,a){switch(a){case"mso-list":var u=/\w+ \w+([0-9]+)/i.exec(r);u&&(n._listLevel=parseInt(u[1],10)),/Ignore/i.test(i)&&n.firstChild&&(n._listIgnore=!0,n.firstChild._listIgnore=!0);break;case"horiz-align":a="text-align";break;case"vert-align":a="vertical-align";break;case"font-color":case"mso-foreground":a="color";break;case"mso-background":case"mso-highlight":a="background";break;case"font-weight":case"font-style":return void("normal"!==i&&(o[a]=i));case"mso-element":if(/^(comment|comment-list)$/i.test(i))return void n.remove()}0!==a.indexOf("mso-comment")?0!==a.indexOf("mso-")&&("all"===L(t)||e&&e[a])&&(o[a]=i):n.remove()})),/(bold)/i.test(o["font-weight"])&&(delete o["font-weight"],n.wrap(new Y("b",1))),/(italic)/i.test(o["font-style"])&&(delete o["font-style"],n.wrap(new Y("i",1)));var a=t.dom.serializeStyle(o,n.name);return a||null},rt=function(t,e){var n,r=L(t);r&&(n=I.makeMap(r.split(/[, ]/))),e=Q(e,[/<br class="?Apple-interchange-newline"?>/gi,/<b[^>]+id="?docs-internal-[^>]*>/gi,/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi," "],[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(t,e){return e.length>0?e.replace(/./," ").slice(Math.floor(e.length/2)).split("").join(" "):""}]]);var o=function(t){return t.getParam("paste_word_valid_elements","-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody")}(t),i=J({valid_elements:o,valid_children:"-li[p]"});I.each(i.elements,(function(t){t.attributes.class||(t.attributes.class={},t.attributesOrder.push("class")),t.attributes.style||(t.attributes.style={},t.attributesOrder.push("style"))}));var a=q({},i);a.addAttributeFilter("style",(function(e){for(var r,o=e.length;o--;)(r=e[o]).attr("style",nt(t,n,r,r.attr("style"))),"span"===r.name&&r.parent&&!r.attributes.length&&r.unwrap()})),a.addAttributeFilter("class",(function(t){for(var e,n,r=t.length;r--;)n=(e=t[r]).attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&e.remove(),e.attr("class",null)})),a.addNodeFilter("del",(function(t){for(var e=t.length;e--;)t[e].remove()})),a.addNodeFilter("a",(function(t){for(var e,n,r,o=t.length;o--;)if(n=(e=t[o]).attr("href"),r=e.attr("name"),n&&-1!==n.indexOf("#_msocom_"))e.remove();else if(n&&0===n.indexOf("file://")&&(n=n.split("#")[1])&&(n="#"+n),n||r){if(r&&!/^_?(?:toc|edn|ftn)/i.test(r)){e.unwrap();continue}e.attr({href:n,name:r})}else e.unwrap()}));var u=a.parse(e);return function(t){return t.getParam("paste_convert_word_fake_lists",!0)}(t)&&function(t){for(var e,n,r=1,o=function(t){var e="";if(3===t.type)return t.value;if(t=t.firstChild)do{e+=o(t)}while(t=t.next);return e},i=function(t,e){if(3===t.type&&e.test(t.value))return t.value=t.value.replace(e,""),!1;if(t=t.firstChild)do{if(!i(t,e))return!1}while(t=t.next);return!0},a=function(t){if(t._listIgnore)t.remove();else if(t=t.firstChild)do{a(t)}while(t=t.next)},u=function(t,o,u){var c=t._listLevel||r;c!==r&&(c<r?e&&(e=e.parent.parent):(n=e,e=null)),e&&e.name===o?e.append(t):(n=n||e,e=new Y(o,1),u>1&&e.attr("start",""+u),t.wrap(e)),t.name="li",c>r&&n&&n.lastChild.append(e),r=c,a(t),i(t,/^\u00a0+/),i(t,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),i(t,/^\u00a0+/)},c=[],s=t.firstChild;null!=s;)if(c.push(s),null!==(s=s.walk()))for(;void 0!==s&&s.parent!==t;)s=s.walk();for(var l=0;l<c.length;l++)if("p"===(t=c[l]).name&&t.firstChild){var f=o(t);if(/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(f)){u(t,"ul");continue}if(et(f)){var d=/([0-9]+)\./.exec(f),m=1;d&&(m=parseInt(d[1],10)),u(t,"ol",m);continue}if(t._listLevel){u(t,"ul",1);continue}e=null}else n=e,e=null}(u),e=X({validate:B(t)},i).serialize(u)},ot=function(t,e){return{content:t,cancelled:e}},it=function(t,e,n,r){var o=function(t,e,n,r){return t.fire("PastePreProcess",{content:e,internal:n,wordContent:r})}(t,e,n,r),i=function(t,e){var n=q({},t.schema);n.addNodeFilter("meta",(function(t){I.each(t,(function(t){t.remove()}))}));var r=n.parse(e,{forced_root_block:!1,isRootContent:!0});return X({validate:B(t)},t.schema).serialize(r)}(t,o.content);return t.hasEventListeners("PastePostProcess")&&!o.isDefaultPrevented()?function(t,e,n,r){var o=t.dom.create("div",{style:"display:none"},e),i=function(t,e,n,r){return t.fire("PastePostProcess",{node:e,internal:n,wordContent:r})}(t,o,n,r);return ot(i.node.innerHTML,i.isDefaultPrevented())}(t,i,n,r):ot(i,o.isDefaultPrevented())},at=function(t,e,n){var r=tt(e),o=r?function(t,e){return function(t){return t.getParam("paste_enable_default_filters",!0)}(t)?rt(t,e):e}(t,e):e;return it(t,o,n,r)},ut=function(t,e){return t.insertContent(e,{merge:j(t),paste:!0}),!0},ct=function(t){return/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(t)},st=function(t,e){return ct(e)&&w(H(t),(function(t){return n=e.toLowerCase(),r="."+t.toLowerCase(),T(n,r,n.length-r.length);var n,r}))},lt=function(t,e,n){return!(!1!==t.selection.isCollapsed()||!ct(e))&&function(t,e,n){return t.undoManager.extra((function(){n(t,e)}),(function(){t.execCommand("mceInsertLink",!1,e)})),!0}(t,e,n)},ft=function(t,e,n){return!!st(t,e)&&function(t,e,n){return t.undoManager.extra((function(){n(t,e)}),(function(){t.insertContent('<img src="'+e+'">')})),!0}(t,e,n)},dt=function(t,e,n){n||!1===function(t){return t.getParam("smart_paste",!0)}(t)?ut(t,e):function(t,e){I.each([lt,ft,ut],(function(n){return!0!==n(t,e,ut)}))}(t,e)},mt=function(t){return"\n"===t||"\r"===t},pt=function(t,e){var n,r,o=(n=" ",(r=function(t){return t.getParam("paste_tab_spaces",4,"number")}(t))<=0?"":new Array(r+1).join(n)),i=e.replace(/\t/g,o);return function(t,e,n){return O(t,(function(t,r){n=e(n,t,r)})),n}(i,(function(t,e){return function(t){return-1!==" \f\t\v".indexOf(t)}(e)||" "===e?t.pcIsSpace||""===t.str||t.str.length===i.length-1||function(t,e){return e<t.length&&e>=0&&mt(t[e])}(i,t.str.length+1)?{pcIsSpace:!1,str:t.str+" "}:{pcIsSpace:!0,str:t.str+" "}:{pcIsSpace:mt(e),str:t.str+e}}),{pcIsSpace:!1,str:""}).str},ht=function(t,e,n,r){var o=at(t,e,n);!1===o.cancelled&&dt(t,o.content,r)},gt=function(t,e,n){var r=n||V(e);ht(t,function(t){return t.replace("\x3c!-- x-tinymce/html --\x3e","")}(e),r,!1)},vt=function(t,e){var n=t.dom.encode(e).replace(/\r\n/g,"\n"),r=function(t,e,n){return e?K(t,!0===e?"p":e,n):function(t){return t.replace(/\r?\n/g,"<br>")}(t)}(pt(t,n),function(t){return t.getParam("forced_root_block")}(t),function(t){return t.getParam("forced_root_block_attrs")}(t));ht(t,r,!1,!0)},bt=function(t){var e={};if(t){if(t.getData){var n=t.getData("Text");n&&n.length>0&&-1===n.indexOf("data:text/mce-internal,")&&(e["text/plain"]=n)}if(t.types)for(var r=0;r<t.types.length;r++){var o=t.types[r];try{e[o]=t.getData(o)}catch(t){e[o]=""}}}return e},yt=function(t,e){return e in t&&t[e].length>0},_t=function(t){return yt(t,"text/html")||yt(t,"text/plain")},wt=(r="mceclip",o=0,function(){return r+o++}),xt=function(t,e){var n,r,o=(n=e.uri,(r=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(n))?{type:r[1],data:decodeURIComponent(r[2])}:{type:null,data:null}),i=o.data,a=o.type,u=wt(),s=e.blob,l=new Image;if(l.src=e.uri,function(t,e){var n=function(t){return t.getParam("images_dataimg_filter")}(t);return!n||n(e)}(t,l)){var f=t.editorUpload.blobCache,d=void 0,m=f.getByData(i,a);if(m)d=m;else{var p=function(t){return t.getParam("images_reuse_filename")}(t)&&c(s.name),h=p?function(t,e){var n=e.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return c(n)?t.dom.encode(n[1]):null}(t,s.name):u,g=p?s.name:void 0;d=f.create(u,s,i,h,g),f.add(d)}gt(t,'<img src="'+d.blobUri()+'">',!1)}else gt(t,'<img src="'+e.uri+'">',!1)},Ot=function(t){return A.all(x(t,(function(t){return new A((function(e){var n=function(t){return c(t.getAsFile)}(t)?t.getAsFile():t,r=new window.FileReader;r.onload=function(){e({blob:n,uri:r.result})},r.readAsDataURL(n)}))})))},St=function(t){var e=H(t);return function(t){return function(t,e){return T(t,e,0)}(t.type,"image/")&&w(e,(function(e){return n=e.toLowerCase(),r={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"},(I.hasOwn(r,n)?"image/"+r[n]:"image/"+n)===t.type;var n,r}))}},Ct=function(t,e,n){var r="paste"===e.type?e.clipboardData:e.dataTransfer;if(N(t)&&r){var o=function(t,e){var n=e.items?S(C(e.items),(function(t){return"file"===t.kind?[t.getAsFile()]:[]})):[],r=e.files?C(e.files):[];return function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n}(n.length>0?n:r,St(t))}(t,r);if(o.length>0)return e.preventDefault(),Ot(o).then((function(e){n&&t.selection.setRng(n),O(e,(function(e){xt(t,e)}))})),!0}return!1},Et=function(t){return P.metaKeyPressed(t)&&86===t.keyCode||t.shiftKey&&45===t.keyCode},kt=function(t,e,n){var r,o=k(),i=k();t.on("keyup",i.clear),t.on("keydown",(function(n){var a=function(t){Et(t)&&!t.isDefaultPrevented()&&e.remove()};if(Et(n)&&!n.isDefaultPrevented()){if((r=n.shiftKey&&86===n.keyCode)&&M.webkit&&-1!==navigator.userAgent.indexOf("Version/"))return;if(n.stopImmediatePropagation(),o.set(n),i.set(!0),M.ie&&r)return n.preventDefault(),void function(t,e){t.fire("paste",{ieFake:e})}(t,!0);e.remove(),e.create(),t.once("keyup",a),t.once("paste",(function(){t.off("keyup",a)}))}}));var a=function(t,n,r,o,i){var a;yt(n,"text/html")?a=n["text/html"]:(a=e.getHtml(),i=i||V(a),e.isDefaultContent(a)&&(o=!0)),a=Z(a),e.remove();var u=!1===i&&!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(a),c=ct(a);(!a.length||u&&!c)&&(o=!0),(o||c)&&(a=yt(n,"text/plain")&&u?n["text/plain"]:function(t){var e=J(),n=q({},e),r="",o=e.getShortEndedElements(),i=I.makeMap("script noscript style textarea video audio iframe object"," "),a=e.getBlockElements(),u=function(t){var e=t.name,n=t;if("br"!==e){if("wbr"!==e)if(o[e]&&(r+=" "),i[e])r+=" ";else{if(3===t.type&&(r+=t.value),!t.shortEnded&&(t=t.firstChild))do{u(t)}while(t=t.next);a[e]&&n.next&&(r+="\n","p"===e&&(r+="\n"))}}else r+="\n"};return t=Q(t,[/<!\[[^\]]+\]>/g]),u(n.parse(t)),r}(a)),e.isDefaultContent(a)?r||t.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents."):o?vt(t,a):gt(t,a,i)};t.on("paste",(function(u){var c=o.isSet()||i.isSet();c&&o.clear();var s=function(t,e){return bt(e.clipboardData||t.getDoc().dataTransfer)}(t,u),l="text"===n.get()||r,f=yt(s,U());r=!1,u.isDefaultPrevented()||function(t){var e=t.clipboardData;return-1!==navigator.userAgent.indexOf("Android")&&e&&e.items&&0===e.items.length}(u)?e.remove():_t(s)||!Ct(t,u,e.getLastRng()||t.selection.getRng())?(c||u.preventDefault(),!M.ie||c&&!u.ieFake||yt(s,"text/html")||(e.create(),t.dom.bind(e.getEl(),"paste",(function(t){t.stopPropagation()})),t.getDoc().execCommand("Paste",!1,null),s["text/html"]=e.getHtml()),yt(s,"text/html")?(u.preventDefault(),f||(f=V(s["text/html"])),a(t,s,c,l,f)):D.setEditorTimeout(t,(function(){a(t,s,c,l,f)}),0)):e.remove()}))},Tt=function(t){return M.ie&&t.inline?document.body:t.getBody()},Mt=function(t,e,n){(function(t){return Tt(t)!==t.getBody()})(t)&&t.dom.bind(e,"paste keyup",(function(e){Pt(t,n)||t.fire("paste")}))},Dt=function(t){return t.dom.get("mcepastebin")},At=function(t,e){return e===t},Pt=function(t,e){var n,r=Dt(t);return(n=r)&&"mcepastebin"===n.id&&At(e,r.innerHTML)},Rt=function(t){var e=i(null);return{create:function(){return function(t,e,n){var r=t.dom,o=t.getBody();e.set(t.selection.getRng());var i=t.dom.add(Tt(t),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},n);(M.ie||M.gecko)&&r.setStyle(i,"left","rtl"===r.getStyle(o,"direction",!0)?65535:-65535),r.bind(i,"beforedeactivate focusin focusout",(function(t){t.stopPropagation()})),Mt(t,i,n),i.focus(),t.selection.select(i,!0)}(t,e,"%MCEPASTEBIN%")},remove:function(){return function(t,e){if(Dt(t)){for(var n=void 0,r=e.get();n=t.dom.get("mcepastebin");)t.dom.remove(n),t.dom.unbind(n);r&&t.selection.setRng(r)}e.set(null)}(t,e)},getEl:function(){return Dt(t)},getHtml:function(){return function(t){var e=function(e,n){e.appendChild(n),t.dom.remove(n,!0)},n=I.grep(Tt(t).childNodes,(function(t){return"mcepastebin"===t.id})),r=n.shift();I.each(n,(function(t){e(r,t)}));for(var o=t.dom.select("div[id=mcepastebin]",r),i=o.length-1;i>=0;i--){var a=t.dom.create("div");r.insertBefore(a,o[i]),e(a,o[i])}return r?r.innerHTML:""}(t)},getLastRng:e.get,isDefault:function(){return Pt(t,"%MCEPASTEBIN%")},isDefaultContent:function(t){return At("%MCEPASTEBIN%",t)}}},It=function(t,e){var n=Rt(t);return t.on("PreInit",(function(){return function(t,e,n){var r;kt(t,e,n),t.parser.addNodeFilter("img",(function(e,n,o){var i=function(t){t.attr("data-mce-object")||r===M.transparentSrc||t.remove()},a=function(t){return 0===t.indexOf("webkit-fake-url")},u=function(t){return 0===t.indexOf("data:")};if(!N(t)&&function(t){return t.data&&!0===t.data.paste}(o))for(var c=e.length;c--;)(r=e[c].attr("src"))&&(a(r)||!F(t)&&u(r))&&i(e[c])}))}(t,n,e)})),{pasteFormat:e,pasteHtml:function(e,n){return gt(t,e,n)},pasteText:function(e){return vt(t,e)},pasteImageData:function(e,n){return Ct(t,e,n)},getDataTransferItems:bt,hasHtmlOrText:_t,hasContentType:yt}},zt=function(t,e){t.addCommand("mceTogglePlainTextPaste",(function(){!function(t,e){"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),R(t,!1)):(e.pasteFormat.set("text"),R(t,!0)),t.focus()}(t,e)})),t.addCommand("mceInsertClipboardContent",(function(t,n){n.content&&e.pasteHtml(n.content,n.internal),n.text&&e.pasteText(n.text)}))},jt=function(t,e,n){if(!function(t){return!1===M.iOS&&"function"==typeof(null==t?void 0:t.setData)}(t))return!1;try{return t.clearData(),t.setData("text/html",e),t.setData("text/plain",n),t.setData(U(),e),!0}catch(t){return!1}},Lt=function(t,e,n,r){jt(t.clipboardData,e.html,e.text)?(t.preventDefault(),r()):n(e.html,r)},Bt=function(t){return function(e,n){var r=function(t){return"\x3c!-- x-tinymce/html --\x3e"+t}(e),o=t.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),i=t.dom.create("div",{contenteditable:"true"},r);t.dom.setStyles(o,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),o.appendChild(i),t.dom.add(t.getBody(),o);var a=t.selection.getRng();i.focus();var u=t.dom.createRng();u.selectNodeContents(i),t.selection.setRng(u),D.setTimeout((function(){t.selection.setRng(a),o.parentNode.removeChild(o),n()}),0)}},Ft=function(t){return{html:t.selection.getContent({contextual:!0}),text:t.selection.getContent({format:"text"})}},Nt=function(t){return!t.selection.isCollapsed()||function(t){return!!t.dom.getParent(t.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",t.getBody())}(t)},Ht=function(t){t.on("cut",function(t){return function(e){Nt(t)&&Lt(e,Ft(t),Bt(t),(function(){if(M.browser.isChrome()||M.browser.isFirefox()){var e=t.selection.getRng();D.setEditorTimeout(t,(function(){t.selection.setRng(e),t.execCommand("Delete")}),0)}else t.execCommand("Delete")}))}}(t)),t.on("copy",function(t){return function(e){Nt(t)&&Lt(e,Ft(t),Bt(t),l)}}(t))},Vt=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Ut=function(t,e){return Vt.getCaretRangeFromPoint(e.clientX,e.clientY,t.getDoc())},Wt=function(t,e){t.focus(),t.selection.setRng(e)},$t=function(t,e){t.on("PastePreProcess",(function(n){n.content=e(t,n.content,n.internal,n.wordContent)}))},Gt=function(t,e){if(!tt(e))return e;var n=[];I.each(t.schema.getBlockElements(),(function(t,e){n.push(e)}));var r=new RegExp("(?:<br> [\\s\\r\\n]+|<br>)*(<\\/?("+n.join("|")+")[^>]*>)(?:<br> [\\s\\r\\n]+|<br>)*","g");return e=Q(e,[[r,"$1"]]),e=Q(e,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]])},Kt=function(t,e,n,r){if(r||n)return e;var o,i=function(t){return t.getParam("paste_webkit_styles")}(t);if(!1===function(t){return t.getParam("paste_remove_styles_if_webkit",!0)}(t)||"all"===i)return e;if(i&&(o=i.split(/[, ]/)),o){var a=t.dom,u=t.selection.getNode();e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(function(t,e,n,r){var i=a.parseStyle(a.decode(n)),c={};if("none"===o)return e+r;for(var s=0;s<o.length;s++){var l=i[o[s]],f=a.getStyle(u,o[s],!0);/color/.test(o[s])&&(l=a.toHex(l),f=a.toHex(f)),f!==l&&(c[o[s]]=l)}var d=a.serializeStyle(c,"span");return d?e+' style="'+d+'"'+r:e+r}))}else e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return e=e.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(function(t,e,n,r){return e+' style="'+n+'"'+r}))},qt=function(t,e){t.$("a",e).find("font,u").each((function(e,n){t.dom.remove(n,!0)}))},Xt=function(t,e){return function(n){n.setActive("text"===e.pasteFormat.get());var r=function(t){return n.setActive(t.state)};return t.on("PastePlainTextToggle",r),function(){return t.off("PastePlainTextToggle",r)}}};a.add("paste",(function(t){if(!1===function(t){return!!t.hasPlugin("powerpaste",!0)&&(void 0!==window.console&&window.console.log&&window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),!0)}(t)){var e=i(!1),n=i(function(t){return t.getParam("paste_as_text",!1)}(t)?"text":"html"),r=It(t,n);return function(t){M.webkit&&$t(t,Kt),M.ie&&($t(t,Gt),function(t,e){t.on("PastePostProcess",(function(n){e(t,n.node)}))}(t,qt))}(t),function(t,e){var n=function(){return t.execCommand("mceTogglePlainTextPaste")};t.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:n,onSetup:Xt(t,e)}),t.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:n,onSetup:Xt(t,e)})}(t,r),zt(t,r),function(t){var e=t.plugins.paste,n=function(t){return t.getParam("paste_preprocess")}(t);n&&t.on("PastePreProcess",(function(t){n.call(e,e,t)}));var r=function(t){return t.getParam("paste_postprocess")}(t);r&&t.on("PastePostProcess",(function(t){r.call(e,e,t)}))}(t),Ht(t),function(t,e,n){(function(t){return t.getParam("paste_block_drop",!1)})(t)&&t.on("dragend dragover draggesture dragdrop drop drag",(function(t){t.preventDefault(),t.stopPropagation()})),z(t)||t.on("drop",(function(t){var e=t.dataTransfer;e&&e.files&&e.files.length>0&&t.preventDefault()})),t.on("drop",(function(r){var o=Ut(t,r);if(!r.isDefaultPrevented()&&!n.get()){var i,a=e.getDataTransferItems(r.dataTransfer),u=e.hasContentType(a,U());if((e.hasHtmlOrText(a)&&(!(i=a["text/plain"])||0!==i.indexOf("file://"))||!e.pasteImageData(r,o))&&o&&function(t){return t.getParam("paste_filter_drop",!0)}(t)){var c=a["mce-internal"]||a["text/html"]||a["text/plain"];c&&(r.preventDefault(),D.setEditorTimeout(t,(function(){t.undoManager.transact((function(){a["mce-internal"]&&t.execCommand("Delete"),Wt(t,o),c=Z(c),a["text/html"]?e.pasteHtml(c,u):e.pasteText(c)}))})))}}})),t.on("dragstart",(function(t){n.set(!0)})),t.on("dragover dragend",(function(e){z(t)&&!1===n.get()&&(e.preventDefault(),Wt(t,Ut(t,e))),"dragend"===e.type&&n.set(!1)}))}(t,r,e),function(t){return{clipboard:t}}(r)}}))}()},"7c73":function(t,e,n){"use strict";var r,o=n("825a"),i=n("37e8"),a=n("7839"),u=n("d012"),c=n("1be4"),s=n("cc12"),l=n("f772"),f=l("IE_PROTO"),d=function(){},m=function(t){return"<script>"+t+"<\/script>"},p=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&r?p(r):((e=s("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):p(r);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};u[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d.prototype=o(t),n=new d,d.prototype=null,n[f]=t):n=h(),void 0===e?n:i.f(n,e)}},"7c75":function(t,e,n){"use strict";n("54ca")},"7cb9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pharmacode=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("e762");var a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.number=parseInt(t,10),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"encode",value:function(){for(var t=this.number,e="";!isNaN(t)&&0!=t;)t%2==0?(e="11100"+e,t=(t-2)/2):(e="100"+e,t=(t-1)/2);return{data:e=e.slice(0,-2),text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(((r=i)&&r.__esModule?r:{default:r}).default);e.pharmacode=a},"7db0":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").find,i=n("44d2"),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},"7f65":function(t,e,n){"use strict";var r=n("59ed"),o=n("825a"),i=n("c65b"),a=n("5926"),u=n("46c4"),c=RangeError,s=TypeError,l=Math.max,f=function(t,e){this.set=t,this.size=l(e,0),this.has=r(t.has),this.keys=r(t.keys)};f.prototype={getIterator:function(){return u(o(i(this.keys,this.set)))},includes:function(t){return i(this.has,this.set,t)}},t.exports=function(t){o(t);var e=+t.size;if(e!=e)throw new s("Invalid size");var n=a(e);if(n<0)throw new c("Invalid size");return new f(t,n)}},"805f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n("124f"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6e53");var u=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,a.mod11)(t),t+=(0,a.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=u},8172:function(t,e,n){"use strict";var r=n("e065"),o=n("57b9");r("toPrimitive"),o()},"825a":function(t,e,n){"use strict";var r=n("861d"),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},"83ab":function(t,e,n){"use strict";var r=n("d039");t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,n){"use strict";var r=n("cb27"),o=n("384f"),i=r.Set,a=r.add;t.exports=function(t){var e=new i;return o(t,(function(t){a(e,t)})),e}},8409:function(t,e,n){},8418:function(t,e,n){"use strict";var r=n("83ab"),o=n("9bf2"),i=n("5c6c");t.exports=function(t,e,n){r?o.f(t,e,i(0,n)):t[e]=n}},"841c":function(t,e,n){"use strict";var r=n("c65b"),o=n("d784"),i=n("825a"),a=n("7234"),u=n("1d80"),c=n("129f"),s=n("577e"),l=n("dc4a"),f=n("14c3");o("search",(function(t,e,n){return[function(e){var n=u(this),o=a(e)?void 0:l(e,t);return o?r(o,e,n):new RegExp(e)[t](s(n))},function(t){var r=i(this),o=s(t),a=n(e,r,o);if(a.done)return a.value;var u=r.lastIndex;c(u,0)||(r.lastIndex=0);var l=f(r,o);return c(r.lastIndex,u)||(r.lastIndex=u),null===l?-1:l.index}]}))},"84ec":function(t,e,n){n("2401")},8558:function(t,e,n){"use strict";var r=n("cfe9"),o=n("b5db"),i=n("c6b6"),a=function(t){return o.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},"858e":function(t,e,n){"use strict";n("6b3e")},"861d":function(t,e,n){"use strict";var r=n("1626");t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},"87fb":function(t,e,n){},8861:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n("124f"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6e53");var u=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,a.mod10)(t),t+=(0,a.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=u},8863:function(t,e,n){n("9dd9")},8875:function(t,e,n){var r,o,i;"undefined"!=typeof self&&self,o=[],void 0===(i="function"==typeof(r=function(){return function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(t){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(t.stack),a=i&&i[1]||!1,u=i&&i[2]||!1,c=document.location.href.replace(document.location.hash,""),s=document.getElementsByTagName("script");a===c&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var l=0;l<s.length;l++){if("interactive"===s[l].readyState)return s[l];if(s[l].src===a)return s[l];if(a===c&&s[l].innerHTML&&s[l].innerHTML.trim()===o)return s[l]}return null}}})?r.apply(e,o):r)||(t.exports=i)},"88a7":function(t,e,n){"use strict";var r=n("cb2d"),o=n("e330"),i=n("577e"),a=n("d6d6"),u=URLSearchParams,c=u.prototype,s=o(c.append),l=o(c.delete),f=o(c.forEach),d=o([].push),m=new u("a=1&a=2&b=3");m.delete("a",1),m.delete("b",void 0),m+""!="a=2"&&r(c,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var r=[];f(this,(function(t,e){d(r,{key:e,value:t})})),a(e,1);for(var o,u=i(t),c=i(n),m=0,p=0,h=!1,g=r.length;m<g;)o=r[m++],h||o.key===u?(h=!0,l(this,o.key)):p++;for(;p<g;)(o=r[p++]).key===u&&o.value===c||s(this,o.key,o.value)}),{enumerable:!0,unsafe:!0})},8925:function(t,e,n){"use strict";var r=n("e330"),o=n("1626"),i=n("c6cd"),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},"89a2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n("c243"),u=n("bdfe"),c=(r=u)&&r.__esModule?r:{default:r};var s=function(t){return(10-t.substr(0,12).split("").map((function(t){return+t})).reduce((function(t,e,n){return n%2?t+3*e:t+e}),0)%10)%10},l=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{12}$/)&&(t+=s(t));var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastChar=n.lastChar,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===s(this.data)}},{key:"leftText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var t=this.data.substr(1,6),n=a.EAN13_STRUCTURE[this.data[0]];return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,n)}},{key:"rightText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var t=this.data.substr(7,6);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRRRR")}},{key:"encodeGuarded",value:function(){var t=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(t.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(t.push({data:"00"}),t.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),t}}]),e}(c.default);e.default=l},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"8b00":function(t,e,n){"use strict";var r=n("23e7"),o=n("68df");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("isSubsetOf")},{isSubsetOf:o})},"8ba4":function(t,e,n){"use strict";n("23e7")({target:"Number",stat:!0},{isInteger:n("eac5")})},"8bbf":function(t,e){t.exports=require("vue")},"8df4":function(t,e,n){"use strict";var r=n("7a77");function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},"8e16":function(t,e,n){"use strict";var r=n("7282"),o=n("cb27");t.exports=r(o.proto,"size","get")||function(t){return t.size}},"8e4b":function(module,__webpack_exports__,__webpack_require__){"use strict";var _Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("2909"),_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("5530"),_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("c7eb"),_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("1da1"),_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("ade3"),core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("d9e2"),core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("99af"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("4de4"),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("7db0"),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("c740"),core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("caad"),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_10__),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("a15b"),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_11__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("d81d"),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_12__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("14d9"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13__),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("a434"),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_14__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("e9c4"),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_16__),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("b64b"),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_17__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("d3b7"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18__),core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("e6cf"),core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_19__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("ac1f"),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("25f0"),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_21__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("2532"),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_22__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("5319"),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_23__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("159b"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_24___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_24__),_GenerateFormItem__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("12f6"),_Layouts_GenerateColItem__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("96a9"),_Layouts_GenerateTabItem__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("f6f4"),_Layouts_GenerateReport__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("0cd8"),_Layouts_GenerateCard__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("9bd9"),_Layouts_GenerateCollapseItem__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("ca9c"),_util_index__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("4260"),_util_event_bus__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("0f01"),lodash__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("60bb"),lodash__WEBPACK_IMPORTED_MODULE_33___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_33__),axios__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("bc3a"),axios__WEBPACK_IMPORTED_MODULE_34___default=__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_34__),uuid__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("ec26"),_common_consts_form_base_config__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("6ba6"),_util_widget_public_const__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("e2e6"),_adapters_api_adapter__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("7694"),moment__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("c32d"),moment__WEBPACK_IMPORTED_MODULE_39___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_39__),x2js__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("98fc"),x2js__WEBPACK_IMPORTED_MODULE_40___default=__webpack_require__.n(x2js__WEBPACK_IMPORTED_MODULE_40__),_util_public_methods__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("bcc9");__webpack_exports__.a={name:"iss-library-form-renderer",components:{GenerateFormItem:_GenerateFormItem__WEBPACK_IMPORTED_MODULE_25__.a,GenerateColItem:_Layouts_GenerateColItem__WEBPACK_IMPORTED_MODULE_26__.default,GenerateTabItem:_Layouts_GenerateTabItem__WEBPACK_IMPORTED_MODULE_27__.a,GenerateCard:_Layouts_GenerateCard__WEBPACK_IMPORTED_MODULE_29__.a,GenerateCollapseItem:_Layouts_GenerateCollapseItem__WEBPACK_IMPORTED_MODULE_30__.a,GenerateReport:_Layouts_GenerateReport__WEBPACK_IMPORTED_MODULE_28__.a},props:{source:{type:Object,default:function(){return JSON.stringify(Object(_common_consts_form_base_config__WEBPACK_IMPORTED_MODULE_36__.a)())}},remote:{type:Object,default:function(){return{}}},value:{type:Object,default:function(){return{}}},edit:{type:Boolean,default:!0},printRead:{type:Boolean,default:!1},remoteOptionSource:{type:Object,default:function(){return{}}},preview:{type:Boolean,default:!1},preferPlatform:{type:String,default:"pc"},lockPlatform:{type:Boolean,default:!1},variables:{type:Object,default:function(){return{}}},currentFormId:{type:String,default:function(){return""}},formPublishVersionId:{type:String,default:function(){return""}}},provide:function(){return{variable:this.variables,currentFormId:this.currentFormId,formPublishVersionId:this.formPublishVersionId,formValue:this.value,preview:this.preview,edit:this.edit}},computed:{platform:function(){return this.lockPlatform?this.preferPlatform:this.responsivePlatform}},data:function(){return{responsivePlatform:"pc",data:{},models:{},rules:{},displayFields:{},resetModels:{},formKey:Object(uuid__WEBPACK_IMPORTED_MODULE_35__.a)(),formStyleKey:Object(uuid__WEBPACK_IMPORTED_MODULE_35__.a)(),formValue:this.value,formShow:!1,formRef:"FORM_".concat(Object(uuid__WEBPACK_IMPORTED_MODULE_35__.a)()),containerKey:Object(uuid__WEBPACK_IMPORTED_MODULE_35__.a)(),dataSourceValue:[],eventFunction:{}}},created:function(){this.data=lodash__WEBPACK_IMPORTED_MODULE_33___default.a.cloneDeep(this.source),this._loadDataSource(),this._loadEvents(),this._initForm()},mounted:function(){var t=this,e=this;_util_event_bus__WEBPACK_IMPORTED_MODULE_32__.a.$on("on-change-"+this.containerKey,(function(n,r,o){t.containerKey===o&&e.setData(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__.a)({},r,n)),e.$emit("on-change",r,n,e.models),e.$emit("on-".concat(r,"-change"),n)})),this.$nextTick((function(){t.eventFunction.mounted&&t.eventFunction.mounted()})),this.responsivePlatform=this.preferPlatform,this._resizeHandler(),window.addEventListener("resize",lodash__WEBPACK_IMPORTED_MODULE_33___default.a.throttle((function(){e._resizeHandler()}),300))},beforeDestroy:function(){var t=".iss-form-"+this.formStyleKey+" ";Object(_util_index__WEBPACK_IMPORTED_MODULE_31__.a)(t),_util_event_bus__WEBPACK_IMPORTED_MODULE_32__.a.$off("on-change-"+this.containerKey),window.removeEventListener("resize",this._resizeHandler)},methods:{batchDownload:function(){var t=arguments;return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().mark((function e(){var n;return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.length>0&&void 0!==t[0]?t[0]:[],e.next=3,Object(_util_public_methods__WEBPACK_IMPORTED_MODULE_41__.a)(n);case 3:case"end":return e.stop()}}),e)})))()},fillingColumns:function(t){var e=this;if(t.selectedItem){var n=t.selectedItem.widgetModel;n&&this.data.list.forEach((function(r,o){r.model===n&&"relatedForm"===r.type&&(e.$set(e.data.list[o].options.selectedMap,"label",t.selectedItem.label),e.$set(e.data.list[o].options.selectedMap,"value",t.selectedItem.value))})),t.selectedItem.type&&"input"===t.selectedItem.type||(this.$set(this.models,n,t.selectedItem.value||""),this.$set(this.models,"".concat(n,"_").concat(_util_widget_public_const__WEBPACK_IMPORTED_MODULE_37__.a),t.selectedItem.label||""))}t.fillingRules&&t.fillingRules.length&&(t.value&&Object.keys(t.value).length?t.fillingRules.forEach((function(n){e.$set(e.models,n.toColumnName,t.value[n.fromColumnName])})):t.fillingRules.forEach((function(t){var n=e.data.list.map((function(e){if(e.model===t.toColumnName)return e.options.defaultValue})).filter((function(t){return null!=t}));n.length&&e.$set(e.models,t.toColumnName,n[0])})))},getWidthType:function(t){return t<576?"mobile":t<792?"pad":"pc"},_resizeHandler:function(){if(!document.hidden){var t=document.getElementById("iss-form-renderer");if(t){var e=t.getBoundingClientRect().width;this.responsivePlatform=this.getWidthType(e)}}},_initForm:function(){if(this.formShow=!1,Object.keys(this.data).length?this.generateModel(this.data.list):this.generateModel([]),this.resetModels=lodash__WEBPACK_IMPORTED_MODULE_33___default.a.cloneDeep(this.models),this.models=Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},this.models),this.formShow=!0,this.data.config&&this.data.config.styleSheets){var t=".iss-form-"+this.formStyleKey+" ";Object(_util_index__WEBPACK_IMPORTED_MODULE_31__.c)(Object(_util_index__WEBPACK_IMPORTED_MODULE_31__.b)(this.data.config.styleSheets),t)}},_loadEvents:function(){if(this.data.config&&this.data.config.eventScript)for(var t=0;t<this.data.config.eventScript.length;t++){var e=this.data.config.eventScript[t];try{this.eventFunction[e.key]=Function(e.func).bind(this)}catch(t){this.$alert(t.message,"Function[".concat(e.key,"] 动作设置错误"),{type:"error"})}}},_loadDataSource:function(){if(this.data.config&&this.data.config.dataSource)for(var t=0;t<this.data.config.dataSource.length;t++){var e=this.data.config.dataSource[t];e.auto&&this._sendRequest(e.name)}},_sendRequest:function(t){var e=this,n=this.data.config.dataSource.find((function(e){return e.name===t}));if(n){var r={method:n.method,url:n.url,headers:n.headers,params:n.params};if(n.requestFunc)r=Function("config",n.requestFunc).bind(this)(r);axios__WEBPACK_IMPORTED_MODULE_34___default()(r).then((function(t){var r=t;n.responseFunc&&(r=Function("res",n.responseFunc).bind(e)(t.data));var o=e.dataSourceValue.find((function(t){return t.key===n.key}));o?o.value=r:e.dataSourceValue.push({key:n.key,value:r})})).catch((function(t){n.errorFunc&&Function("error",n.errorFunc).bind(e)(t)}))}},generateModel:function generateModel(genList){for(var _this5=this,parentDisplay=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],_loop=function _loop(i){if("grid"===genList[i].type)_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden,genList[i].columns.forEach((function(t){_this5.generateModel(t.list,!genList[i].options.hidden)}));else if("tabs"===genList[i].type)genList[i].tabs.forEach((function(t){_this5.generateModel(t.list,!genList[i].options.hidden)})),_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden;else if("collapse"===genList[i].type)genList[i].collapse.forEach((function(t){_this5.generateModel(t.list,!genList[i].options.hidden)})),_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden;else if("report"===genList[i].type)genList[i].rows.forEach((function(t){t.columns.forEach((function(t){_this5.generateModel(t.list,!genList[i].options.hidden)}))})),_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden;else if("card"===genList[i].type)_this5.generateModel(genList[i].list,!genList[i].options.hidden),_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden;else{if(Object.keys(_this5.formValue).indexOf(genList[i].model)>=0)genList[i].key&&genList[i].model&&(_this5.models[genList[i].model]=_this5.formValue[genList[i].model]),_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden;else{if(genList[i].key&&genList[i].model)if(genList[i].options.isVariableDefaultValue){var value="未初始化变量数据";_this5.variables&&(value=_this5.variables[genList[i].options.defaultVariable]||""),_this5.models[genList[i].model]=value}else _this5.models[genList[i].model]=genList[i].options.defaultValue;_this5.displayFields[genList[i].model]=parentDisplay&&!genList[i].options.hidden}genList[i].tableColumns&&genList[i].tableColumns.length&&genList[i].tableColumns.forEach((function(item){_this5.rules["".concat(genList[i].model,".").concat(item.model)]?_this5.rules["".concat(genList[i].model,".").concat(item.model)]=[].concat(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(_this5.rules["".concat(genList[i].model,".").concat(item.model)]),Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(item.rules?item.rules.map((function(im){if(im.pattern)return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},im),{},{pattern:eval(im.pattern)});if(im.func){var validatorFunc=Function("rule","value","callback",im.func).bind(_this5);return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},im),{},{validator:validatorFunc})}return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},im)})):[])):_this5.rules["".concat(genList[i].model,".").concat(item.model)]=Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(item.rules?item.rules.map((function(im){if(im.pattern)return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},im),{},{pattern:eval(im.pattern)});if(im.func){var validatorFunc=Function("rule","value","callback",im.func).bind(_this5);return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},im),{},{validator:validatorFunc})}return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},im)})):[])})),_this5.rules[genList[i].model]?_this5.rules[genList[i].model]=[].concat(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(_this5.rules[genList[i].model]),Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(genList[i].rules?genList[i].rules.map((function(item){if(item.pattern)return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},item),{},{pattern:eval(item.pattern)});if(item.func){var validatorFunc=Function("rule","value","callback",item.func).bind(_this5);return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},item),{},{validator:validatorFunc})}return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},item)})):[])):_this5.rules[genList[i].model]=Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(genList[i].rules?genList[i].rules.map((function(item){if(item.pattern)return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},item),{},{pattern:eval(item.pattern)});if(item.func){var validatorFunc=Function("rule","value","callback",item.func).bind(_this5);return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},item),{},{validator:validatorFunc})}return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},item)})):[])}},i=0;i<genList.length;i++)_loop(i)},_setProperty:function(t,e,n,r){for(var o=this,i=0;i<t.length;i++)"grid"===t[i].type?t[i].columns.forEach((function(t){o._setProperty(t.list,e,n,r)})):"tabs"===t[i].type?t[i].tabs.forEach((function(t){o._setProperty(t.list,e,n,r)})):"collapse"===t[i].type?t[i].collapse.forEach((function(t){o._setProperty(t.list,e,n,r)})):"card"===t[i].type?this._setProperty(t[i].list,e,n,r):"report"===t[i].type?t[i].rows.forEach((function(t){t.columns.forEach((function(t){o._setProperty(t.list,e,n,r)}))})):e.indexOf(t[i].model)>=0&&this.$set(t[i].options,r,n)},_updateClassName:function(t,e,n,r){for(var o=this,i=0;i<t.length;i++)if("grid"===t[i].type)t[i].columns.forEach((function(t){o._updateClassName(t.list,e,n,r)}));else if("tabs"===t[i].type)t[i].tabs.forEach((function(t){o._updateClassName(t.list,e,n,r)}));else if("collapse"===t[i].type)t[i].collapse.forEach((function(t){o._updateClassName(t.list,e,n,r)}));else if("card"===t[i].type)this._updateClassName(t[i].list,e,n,r);else if("report"===t[i].type)t[i].rows.forEach((function(t){t.columns.forEach((function(t){o._updateClassName(t.list,e,n,r)}))}));else if(e.indexOf(t[i].model)>=0&&("add"!==r||t[i].options.customClass.split(" ").includes(n)||this.$set(t[i].options,"customClass",[].concat(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(t[i].options.customClass.split(" ")),[n]).join(" ")),"remove"===r&&t[i].options.customClass.split(" ").includes(n))){var a=t[i].options.customClass.split(" ");a.splice(a.findIndex((function(t){return t===n})),1),this.$set(t[i].options,"customClass",a.join(" "))}},_setOptions:function(t,e,n){for(var r=this,o=function(o){"grid"===t[o].type?t[o].columns.forEach((function(t){r._setOptions(t.list,e,n)})):"tabs"===t[o].type?t[o].tabs.forEach((function(t){r._setOptions(t.list,e,n)})):"collapse"===t[o].type?t[o].collapse.forEach((function(t){r._setOptions(t.list,e,n)})):"card"===t[o].type?r._setOptions(t[o].list,e,n):"report"===t[o].type?t[o].rows.forEach((function(t){t.columns.forEach((function(t){r._setOptions(t.list,e,n)}))})):e.indexOf(t[o].model)>=0&&Object.keys(n).forEach((function(e){r.$set(t[o].options,e,n[e])}))},i=0;i<t.length;i++)o(i)},_getData:function(){var t=arguments,e=this;return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().mark((function n(){var r,o,i,a,u;return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(!(t.length>0&&void 0!==t[0])||t[0])||!e.eventFunction.beforeSubmit){n.next=7;break}return n.next=4,e.eventFunction.beforeSubmit();case 4:if(!((r=n.sent)instanceof Error)&&r){n.next=7;break}return n.abrupt("return",Promise.reject(r instanceof Error?r:new Error("请按提示完善表单内容(E:BEFORE_SUBMIT)")));case 7:if(o=lodash__WEBPACK_IMPORTED_MODULE_33___default.a.cloneDeep(e.models),!(e.data&&e.data.config&&e.data.config.submitHiddenArea)){n.next=12;break}return n.abrupt("return",o);case 12:for(a in i={},o)u=a.replace("_".concat(_util_widget_public_const__WEBPACK_IMPORTED_MODULE_37__.a),""),e.displayFields[u]&&(i[a]=o[a]);return n.abrupt("return",i);case 15:case"end":return n.stop()}}),n)})))()},_submitted:function(t){return this.eventFunction.submitted&&this.eventFunction.submitted(t)},getData:function(){var t=arguments,e=this;return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().mark((function n(){var r,o;return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=!(t.length>0&&void 0!==t[0])||t[0],o=!(t.length>1&&void 0!==t[1])||t[1],!r){n.next=17;break}return n.prev=3,n.next=6,e.$refs[e.formRef].validate();case 6:if(!n.sent){n.next=10;break}return n.abrupt("return",e._getData(o));case 10:n.next=15;break;case 12:return n.prev=12,n.t0=n.catch(3),n.abrupt("return",Promise.reject(new Error("请按提示完善表单内容")));case 15:n.next=18;break;case 17:return n.abrupt("return",e._getData(o));case 18:case"end":return n.stop()}}),n,null,[[3,12]])})))()},reset:function(){var t=this;this.setData(lodash__WEBPACK_IMPORTED_MODULE_33___default.a.cloneDeep(this.resetModels)),this.$nextTick((function(){t.$refs[t.formRef]&&t.$refs[t.formRef].clearValidate()}))},onInputChange:function(t,e){this.$emit("on-change",e,t,this.models),this.$emit("on-".concat(e,"-change"),t)},display:function(t){var e=this;Object.keys(this.displayFields).forEach((function(n){t.indexOf(n)>=0&&e.$set(e.displayFields,n,!0)})),this.displayFields=Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},this.displayFields)},hide:function(t){var e=this;Object.keys(this.displayFields).forEach((function(n){t.indexOf(n)>=0&&e.$set(e.displayFields,n,!1)})),this.displayFields=Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.a)({},this.displayFields)},disabled:function(t,e){this._setProperty(this.data.list,t,e,"disabled")},setDisabled:function(t,e){this._setProperty(this.data.list,t,e,"disabled")},setReadOnly:function(t,e){this._setProperty(this.data.list,t,e,"readonly")},addClassName:function(t,e){this._updateClassName(this.data.list,t,e,"add")},removeClassName:function(t,e){this._updateClassName(this.data.list,t,e,"remove")},refresh:function(){this._loadDataSource(),this._loadEvents(),this._initForm()},setData:function(t){var e=this;Object.keys(t).forEach((function(n){e.$set(e.models,n,t[n])}))},_findComponentDownward:function(t,e,n){var r=t.$children;if(n)return n;if(0===r.length)n=null;else for(var o=0;o<r.length;o++){var i=r[o];if(Object.keys(i.$refs).indexOf(e)>=0){n=i.$refs[e];break}n=this._findComponentDownward(i,e,n)}return n},getComponent:function(t){return Object.keys(this.$refs).indexOf(t)>=0?this.$refs[t]:this._findComponentDownward(this,t,null)},getComponentById:function(t){return this.getComponent("icd-form-".concat(t))},getValues:function(){return this.models},getValue:function(t){return this.models[t]},setValues:function(t){var e=this;Object.keys(t).forEach((function(n){e.$set(e.models,n,t[n])}))},setValue:function(t,e){this.$set(this.models,t,e)},setRules:function(t,e){this.$set(this.rules,t,Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__.a)(e)),this.$refs[this.formRef].clearValidate(t)},setOptions:function(t,e){this._setOptions(this.data.list,t,e)},httpRequest:function(t){return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().mark((function e(){return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("get"!==t.type.toLowerCase()){e.next=4;break}return e.abrupt("return",axios__WEBPACK_IMPORTED_MODULE_34___default.a.get(t.url,t.config));case 4:if("post"!==t.type.toLowerCase()){e.next=8;break}return e.abrupt("return",axios__WEBPACK_IMPORTED_MODULE_34___default.a.post(t.url,t.params,t.config));case 8:if("put"!==t.type.toLowerCase()){e.next=12;break}return e.abrupt("return",axios__WEBPACK_IMPORTED_MODULE_34___default.a.put(t.url,t.params,t.config));case 12:if("delete"!==t.type.toLowerCase()){e.next=14;break}return e.abrupt("return",axios__WEBPACK_IMPORTED_MODULE_34___default.a.delete(t.url,t.config));case 14:case"end":return e.stop()}}),e)})))()},onTriggerThirdApi:function(t){return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().mark((function e(){return Object(_Volumes_Files_WorkSpace_ISS_LCDP_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.body="string"==typeof t.body?t.body:JSON.stringify(t.body),e.next=3,Object(_adapters_api_adapter__WEBPACK_IMPORTED_MODULE_38__.n)(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))()},xmlToJson:function(t){return(new x2js__WEBPACK_IMPORTED_MODULE_40___default.a).xml2js(t.toString())},getTimeUtils:function(){return moment__WEBPACK_IMPORTED_MODULE_39___default.a},getLodash:function(){return lodash__WEBPACK_IMPORTED_MODULE_33___default.a}}}},"8e51":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MSI1110=e.MSI1010=e.MSI11=e.MSI10=e.MSI=void 0;var r=c(n("124f")),o=c(n("4727")),i=c(n("4461")),a=c(n("8861")),u=c(n("805f"));function c(t){return t&&t.__esModule?t:{default:t}}e.MSI=r.default,e.MSI10=o.default,e.MSI11=i.default,e.MSI1010=a.default,e.MSI1110=u.default},"8f5e":function(t,e,n){"use strict";n("58ab")},"905a":function(t,e){t.exports=require("@tinymce/tinymce-vue")},"90d8":function(t,e,n){"use strict";var r=n("c65b"),o=n("1a2d"),i=n("3a9b"),a=n("ad6d"),u=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in u||o(t,"flags")||!i(u,t)?e:r(a,t)}},"90e3":function(t,e,n){"use strict";var r=n("e330"),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},9112:function(t,e,n){"use strict";var r=n("83ab"),o=n("9bf2"),i=n("5c6c");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},9224:function(t){t.exports=JSON.parse('{"a":"1.17.23"}')},9263:function(t,e,n){"use strict";var r,o,i=n("c65b"),a=n("e330"),u=n("577e"),c=n("ad6d"),s=n("9f7f"),l=n("5692"),f=n("7c73"),d=n("69f3").get,m=n("fce3"),p=n("107c"),h=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,b=a("".charAt),y=a("".indexOf),_=a("".replace),w=a("".slice),x=(o=/b*/g,i(g,r=/a/,"a"),i(g,o,"a"),0!==r.lastIndex||0!==o.lastIndex),O=s.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(x||S||O||m||p)&&(v=function(t){var e,n,r,o,a,s,l,m=this,p=d(m),C=u(t),E=p.raw;if(E)return E.lastIndex=m.lastIndex,e=i(v,E,C),m.lastIndex=E.lastIndex,e;var k=p.groups,T=O&&m.sticky,M=i(c,m),D=m.source,A=0,P=C;if(T&&(M=_(M,"y",""),-1===y(M,"g")&&(M+="g"),P=w(C,m.lastIndex),m.lastIndex>0&&(!m.multiline||m.multiline&&"\n"!==b(C,m.lastIndex-1))&&(D="(?: "+D+")",P=" "+P,A++),n=new RegExp("^(?:"+D+")",M)),S&&(n=new RegExp("^"+D+"$(?!\\s)",M)),x&&(r=m.lastIndex),o=i(g,T?n:m,P),T?o?(o.input=w(o.input,A),o[0]=w(o[0],A),o.index=m.lastIndex,m.lastIndex+=o[0].length):m.lastIndex=0:x&&o&&(m.lastIndex=m.global?o.index+o[0].length:r),S&&o&&o.length>1&&i(h,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&k)for(o.groups=s=f(null),a=0;a<k.length;a++)s[(l=k[a])[0]]=o[l[1]];return o}),t.exports=v},"944a":function(t,e,n){"use strict";var r=n("d066"),o=n("e065"),i=n("d44e");o("toStringTag"),i(r("Symbol"),"Symbol")},"94ca":function(t,e,n){"use strict";var r=n("d039"),o=n("1626"),i=/#|\.prototype\./,a=function(t,e){var n=c[u(t)];return n===l||n!==s&&(o(e)?r(e):!!e)},u=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},"94ce":function(t,e){!function(){"use strict";var t=function(t){return function(e){return r=typeof(n=e),(null===n?"null":"object"===r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===t;var n,r}},e=function(t){return function(e){return typeof e===t}},n=function(t){return function(e){return t===e}},r=t("string"),o=t("object"),i=t("array"),a=n(null),u=e("boolean"),c=n(void 0),s=function(t){return!function(t){return null==t}(t)},l=e("function"),f=e("number"),d=function(){},m=function(t){return function(){return t}},p=function(t){return t},h=function(t,e){return t===e};function g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.concat(n);return t.apply(null,o)}}var v,b,y=function(t){return function(e){return!t(e)}},_=m(!1),w=m(!0),x=function(){return O},O={fold:function(t,e){return t()},isSome:_,isNone:w,getOr:b=p,getOrThunk:v=function(t){return t()},getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:m(null),getOrUndefined:m(void 0),or:b,orThunk:v,map:x,each:d,bind:x,exists:_,forall:w,filter:function(){return x()},toArray:function(){return[]},toString:m("none()")},S=function(t){var e=m(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:w,isNone:_,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return S(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:O},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},C={some:S,none:x,from:function(t){return null==t?O:S(t)}},E=Array.prototype.slice,k=Array.prototype.indexOf,T=Array.prototype.push,M=function(t,e){return n=t,r=e,k.call(n,r)>-1;var n,r},D=function(t,e){for(var n=0,r=t.length;n<r;n++){if(e(t[n],n))return!0}return!1},A=function(t,e){for(var n=[],r=0;r<t;r++)n.push(e(r));return n},P=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},R=function(t,e){for(var n=0,r=t.length;n<r;n++){e(t[n],n)}},I=function(t,e){for(var n=[],r=[],o=0,i=t.length;o<i;o++){var a=t[o];(e(a,o)?n:r).push(a)}return{pass:n,fail:r}},z=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n},j=function(t,e,n){return function(t,e){for(var n=t.length-1;n>=0;n--){e(t[n],n)}}(t,(function(t,r){n=e(n,t,r)})),n},L=function(t,e,n){return R(t,(function(t,r){n=e(n,t,r)})),n},B=function(t,e){return function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return C.some(i);if(n(i,r))break}return C.none()}(t,e,_)},F=function(t,e){for(var n=0,r=t.length;n<r;n++){if(e(t[n],n))return C.some(n)}return C.none()},N=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!i(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);T.apply(e,t[n])}return e},H=function(t,e){return N(P(t,e))},V=function(t,e){for(var n=0,r=t.length;n<r;++n){if(!0!==e(t[n],n))return!1}return!0},U=function(t,e){for(var n={},r=0,o=t.length;r<o;r++){var i=t[r];n[String(i)]=e(i,r)}return n},W=function(t){return[t]},$=function(t,e){return e>=0&&e<t.length?C.some(t[e]):C.none()},G=function(t){return $(t,0)},K=function(t){return $(t,t.length-1)},q=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return C.none()},X=function(){return(X=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function Y(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}var J=function(t){var e,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,e=t.apply(null,r)),e}},Q=function(){return Z(0,0)},Z=function(t,e){return{major:t,minor:e}},tt={nu:Z,detect:function(t,e){var n=String(e).toLowerCase();return 0===t.length?Q():function(t,e){var n=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}}(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return Z(r(1),r(2))}(t,n)},unknown:Q},et=function(t,e){var n=String(e).toLowerCase();return B(t,(function(t){return t.search(n)}))},nt=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},rt=function(t,e){return-1!==t.indexOf(e)},ot=function(t,e){return nt(t,e,0)},it=function(t,e){return nt(t,e,t.length-e.length)},at=function(t){return function(e){return e.replace(t,"")}}(/^\s+|\s+$/g),ut=function(t){return t.length>0},ct=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,st=function(t){return function(e){return rt(e,t)}},lt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return rt(t,"edge/")&&rt(t,"chrome")&&rt(t,"safari")&&rt(t,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ct],search:function(t){return rt(t,"chrome")&&!rt(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return rt(t,"msie")||rt(t,"trident")}},{name:"Opera",versionRegexes:[ct,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:st("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:st("firefox")},{name:"Safari",versionRegexes:[ct,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(rt(t,"safari")||rt(t,"mobile/"))&&rt(t,"applewebkit")}}],ft=[{name:"Windows",search:st("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return rt(t,"iphone")||rt(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:st("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:st("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:st("linux"),versionRegexes:[]},{name:"Solaris",search:st("sunos"),versionRegexes:[]},{name:"FreeBSD",search:st("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:st("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],dt={browsers:m(lt),oses:m(ft)},mt=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r("Edge"),isChrome:r("Chrome"),isIE:r("IE"),isOpera:r("Opera"),isFirefox:r("Firefox"),isSafari:r("Safari")}},pt={unknown:function(){return mt({current:void 0,version:tt.unknown()})},nu:mt,edge:m("Edge"),chrome:m("Chrome"),ie:m("IE"),opera:m("Opera"),firefox:m("Firefox"),safari:m("Safari")},ht=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r("Windows"),isiOS:r("iOS"),isAndroid:r("Android"),isOSX:r("OSX"),isLinux:r("Linux"),isSolaris:r("Solaris"),isFreeBSD:r("FreeBSD"),isChromeOS:r("ChromeOS")}},gt={unknown:function(){return ht({current:void 0,version:tt.unknown()})},nu:ht,windows:m("Windows"),ios:m("iOS"),android:m("Android"),linux:m("Linux"),osx:m("OSX"),solaris:m("Solaris"),freebsd:m("FreeBSD"),chromeos:m("ChromeOS")},vt=function(t,e,n){var r=dt.browsers(),o=dt.oses(),i=e.bind((function(t){return function(t,e){return q(e.brands,(function(e){var n=e.brand.toLowerCase();return B(t,(function(t){var e;return n===(null===(e=t.brand)||void 0===e?void 0:e.toLowerCase())})).map((function(t){return{current:t.name,version:tt.nu(parseInt(e.version,10),0)}}))}))}(r,t)})).orThunk((function(){return function(t,e){return et(t,e).map((function(t){var n=tt.detect(t.versionRegexes,e);return{current:t.name,version:n}}))}(r,t)})).fold(pt.unknown,pt.nu),a=function(t,e){return et(t,e).map((function(t){var n=tt.detect(t.versionRegexes,e);return{current:t.name,version:n}}))}(o,t).fold(gt.unknown,gt.nu),u=function(t,e,n,r){var o=t.isiOS()&&!0===/ipad/i.test(n),i=t.isiOS()&&!o,a=t.isiOS()||t.isAndroid(),u=a||r("(pointer:coarse)"),c=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!c,l=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),f=!s&&!c&&!l;return{isiPad:m(o),isiPhone:m(i),isTablet:m(c),isPhone:m(s),isTouch:m(u),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:m(l),isDesktop:m(f)}}(a,i,t,n);return{browser:i,os:a,deviceType:u}},bt=function(t){return window.matchMedia(t).matches},yt=J((function(){return vt(navigator.userAgent,C.from(navigator.userAgentData),bt)})),_t=function(){return yt()},wt=function(t){if(null==t)throw new Error("Node cannot be null or undefined");return{dom:t}},xt={fromHtml:function(t,e){var n=(e||document).createElement("div");if(n.innerHTML=t,!n.hasChildNodes()||n.childNodes.length>1)throw new Error("HTML must have a single root node");return wt(n.childNodes[0])},fromTag:function(t,e){var n=(e||document).createElement(t);return wt(n)},fromText:function(t,e){var n=(e||document).createTextNode(t);return wt(n)},fromDom:wt,fromPoint:function(t,e,n){return C.from(t.dom.elementFromPoint(e,n)).map(wt)}},Ot=function(t,e){var n=t.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},St=function(t){return 1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType||0===t.childElementCount},Ct=function(t,e){var n=void 0===e?document:e.dom;return St(n)?C.none():C.from(n.querySelector(t)).map(xt.fromDom)},Et=function(t,e){return t.dom===e.dom},kt=function(t,e){return n=t.dom,r=e.dom,function(t,e,n){return 0!=(t.compareDocumentPosition(e)&n)}(n,r,Node.DOCUMENT_POSITION_CONTAINED_BY);var n,r},Tt=function(t,e){return _t().browser.isIE()?kt(t,e):function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)}(t,e)},Mt=Ot,Dt=Object.keys,At=Object.hasOwnProperty,Pt=function(t,e){for(var n=Dt(t),r=0,o=n.length;r<o;r++){var i=n[r];e(t[i],i)}},Rt=function(t,e){return It(t,(function(t,n){return{k:n,v:e(t,n)}}))},It=function(t,e){var n={};return Pt(t,(function(t,r){var o=e(t,r);n[o.k]=o.v})),n},zt=function(t,e){var n={};return function(t,e,n,r){Pt(t,(function(t,o){(e(t,o)?n:r)(t,o)}))}(t,e,function(t){return function(e,n){t[n]=e}}(n),d),n},jt=function(t,e){var n=[];return Pt(t,(function(t,r){n.push(e(t,r))})),n},Lt=function(t){return jt(t,p)},Bt=function(t){return Dt(t).length},Ft=function(t,e){return Nt(t,e)?C.from(t[e]):C.none()},Nt=function(t,e){return At.call(t,e)},Ht=function(t,e){return Nt(t,e)&&void 0!==t[e]&&null!==t[e]},Vt=["tfoot","thead","tbody","colgroup"],Ut=function(t,e,n){return{element:t,rowspan:e,colspan:n}},Wt=function(t,e,n){return{element:t,cells:e,section:n}},$t=function(t,e,n){return{element:t,isNew:e,isLocked:n}},Gt=function(t,e,n,r){return{element:t,cells:e,section:n,isNew:r}};"undefined"!=typeof window?window:Function("return this;")();var Kt=function(t){return t.dom.nodeName.toLowerCase()},qt=function(t){return t.dom.nodeType},Xt=function(t){return function(e){return qt(e)===t}},Yt=function(t){return 8===qt(t)||"#comment"===Kt(t)},Jt=Xt(1),Qt=Xt(3),Zt=Xt(9),te=Xt(11),ee=function(t){return function(e){return Jt(e)&&Kt(e)===t}},ne=function(t){return xt.fromDom(t.dom.ownerDocument)},re=function(t){return Zt(t)?t:ne(t)},oe=function(t){return C.from(t.dom.parentNode).map(xt.fromDom)},ie=function(t,e){for(var n=l(e)?e:_,r=t.dom,o=[];null!==r.parentNode&&void 0!==r.parentNode;){var i=r.parentNode,a=xt.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o},ae=function(t){return C.from(t.dom.previousSibling).map(xt.fromDom)},ue=function(t){return C.from(t.dom.nextSibling).map(xt.fromDom)},ce=function(t){return P(t.dom.childNodes,xt.fromDom)},se=function(t,e){var n=t.dom.childNodes;return C.from(n[e]).map(xt.fromDom)},le=l(Element.prototype.attachShadow)&&l(Node.prototype.getRootNode),fe=m(le),de=le?function(t){return xt.fromDom(t.dom.getRootNode())}:re,me=function(t){var e,n=de(t);return te(e=n)&&s(e.dom.host)?C.some(n):C.none()},pe=function(t){return xt.fromDom(t.dom.host)},he=function(t){return s(t.dom.shadowRoot)},ge=function(t){var e=Qt(t)?t.dom.parentNode:t.dom;if(null==e||null===e.ownerDocument)return!1;var n,r,o=e.ownerDocument;return me(xt.fromDom(e)).fold((function(){return o.body.contains(e)}),(n=ge,r=pe,function(t){return n(r(t))}))},ve=function(t){var e=t.dom.body;if(null==e)throw new Error("Body is not available yet");return xt.fromDom(e)},be=function(t,e){var n=[];return R(ce(t),(function(t){e(t)&&(n=n.concat([t])),n=n.concat(be(t,e))})),n},ye=function(t,e,n){return function(t,e,n){return z(ie(t,n),e)}(t,(function(t){return Ot(t,e)}),n)},_e=function(t,e){return function(t,e){return z(ce(t),e)}(t,(function(t){return Ot(t,e)}))},we=function(t,e){return function(t,e){var n=void 0===e?document:e.dom;return St(n)?[]:P(n.querySelectorAll(t),xt.fromDom)}(e,t)};function xe(t,e,n,r,o){return t(n,r)?C.some(n):l(o)&&o(n)?C.none():e(n,r,o)}var Oe=function(t,e,n){for(var r=t.dom,o=l(n)?n:_;r.parentNode;){r=r.parentNode;var i=xt.fromDom(r);if(e(i))return C.some(i);if(o(i))break}return C.none()},Se=function(t,e,n){return Oe(t,(function(t){return Ot(t,e)}),n)},Ce=function(t,e){return function(t,e){return B(t.dom.childNodes,(function(t){return e(xt.fromDom(t))})).map(xt.fromDom)}(t,(function(t){return Ot(t,e)}))},Ee=function(t,e){return Ct(e,t)},ke=function(t,e,n){return xe((function(t,e){return Ot(t,e)}),Se,t,e,n)},Te=function(t,e,n){if(!(r(n)||u(n)||f(n)))throw new Error("Attribute value was not simple");t.setAttribute(e,n+"")},Me=function(t,e,n){Te(t.dom,e,n)},De=function(t,e){var n=t.dom;Pt(e,(function(t,e){Te(n,e,t)}))},Ae=function(t,e){var n=t.dom.getAttribute(e);return null===n?void 0:n},Pe=function(t,e){return C.from(Ae(t,e))},Re=function(t,e){t.dom.removeAttribute(e)},Ie=function(t){return L(t.dom.attributes,(function(t,e){return t[e.name]=e.value,t}),{})},ze=function(t,e,n){return void 0===n&&(n=h),t.exists((function(t){return n(t,e)}))},je=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},Le=function(t,e,n){return t.isSome()&&e.isSome()?C.some(n(t.getOrDie(),e.getOrDie())):C.none()},Be=function(t,e){return t?C.some(e):C.none()},Fe=function(t){return void 0!==t.style&&l(t.style.getPropertyValue)},Ne=function(t,e,n){if(!r(n))throw new Error("CSS value must be a string: "+n);Fe(t)&&t.style.setProperty(e,n)},He=function(t,e,n){var r=t.dom;Ne(r,e,n)},Ve=function(t,e){var n=t.dom;Pt(e,(function(t,e){Ne(n,e,t)}))},Ue=function(t,e){var n=t.dom,r=window.getComputedStyle(n).getPropertyValue(e);return""!==r||ge(t)?r:We(n,e)},We=function(t,e){return Fe(t)?t.style.getPropertyValue(e):""},$e=function(t,e){var n=t.dom,r=We(n,e);return C.from(r).filter((function(t){return t.length>0}))},Ge=function(t,e){!function(t,e){Fe(t)&&t.style.removeProperty(e)}(t.dom,e),ze(Pe(t,"style").map(at),"")&&Re(t,"style")},Ke=function(t,e,n){return void 0===n&&(n=0),Pe(t,e).map((function(t){return parseInt(t,10)})).getOr(n)},qe=function(t,e){return Ke(t,e,1)},Xe=function(t){return ee("col")(t)?Ke(t,"span",1)>1:qe(t,"colspan")>1},Ye=function(t){return qe(t,"rowspan")>1},Je=function(t,e){return parseInt(Ue(t,e),10)},Qe=m(10),Ze=m(10),tn=function(t,e){return en(t,e,w)},en=function(t,e,n){return H(ce(t),(function(t){return Ot(t,e)?n(t)?[t]:[]:en(t,e,n)}))},nn=function(t,e){return function(t,e,n){if(void 0===n&&(n=_),n(e))return C.none();if(M(t,Kt(e)))return C.some(e);return Se(e,t.join(","),(function(t){return Ot(t,"table")||n(t)}))}(["td","th"],t,e)},rn=function(t){return tn(t,"th,td")},on=function(t){return Ot(t,"colgroup")?_e(t,"col"):H(cn(t),(function(t){return _e(t,"col")}))},an=function(t,e){return ke(t,"table",e)},un=function(t){return tn(t,"tr")},cn=function(t){return an(t).fold(m([]),(function(t){return _e(t,"colgroup")}))},sn=function(t,e){return P(t,(function(t){if("colgroup"===Kt(t)){var n=P(on(t),(function(t){var e=Ke(t,"span",1);return Ut(t,1,e)}));return Wt(t,n,"colgroup")}n=P(rn(t),(function(t){var e=Ke(t,"rowspan",1),n=Ke(t,"colspan",1);return Ut(t,e,n)}));return Wt(t,n,e(t))}))},ln=function(t){return oe(t).map((function(t){var e=Kt(t);return function(t){return M(Vt,t)}(e)?e:"tbody"})).getOr("tbody")},fn=function(t){var e=un(t),n=Y(Y([],cn(t),!0),e,!0);return sn(n,ln)},dn=function(t,e,n){var r=t.cells,o=r.slice(0,e),i=r.slice(e),a=o.concat(n).concat(i);return hn(t,a)},mn=function(t,e,n){return dn(t,e,[n])},pn=function(t,e,n){t.cells[e]=n},hn=function(t,e){return Gt(t.element,e,t.section,t.isNew)},gn=function(t,e){return t.cells[e]},vn=function(t,e){return gn(t,e).element},bn=function(t){return t.cells.length},yn=function(t){var e=I(t,(function(t){return"colgroup"===t.section}));return{rows:e.fail,cols:e.pass}},_n=function(t,e,n){var r=P(t.cells,n);return Gt(e(t.element),r,t.section,!0)},wn="data-snooker-locked-cols",xn=function(t){return Pe(t,wn).bind((function(t){return C.from(t.match(/\d+/g))})).map((function(t){return U(t,w)}))},On=function(t){var e=L(yn(t).rows,(function(t,e){return R(e.cells,(function(e,n){e.isLocked&&(t[n]=!0)})),t}),{});return function(t,e){var n=E.call(t,0);return n.sort(e),n}(jt(e,(function(t,e){return parseInt(e,10)})))},Sn=function(t,e){return t+","+e},Cn=function(t,e){var n=H(t.all,(function(t){return t.cells}));return z(n,e)},En=function(t){var e={},n=[],r=G(t).map((function(t){return t.element})).bind(an).bind(xn).getOr({}),o=0,i=0,a=0,u=I(t,(function(t){return"colgroup"===t.section})),c=u.pass,s=u.fail;R(s,(function(t){var u=[];R(t.cells,(function(t){for(var n=0;void 0!==e[Sn(a,n)];)n++;for(var o=Ht(r,n.toString()),c=function(t,e,n,r,o,i){return{element:t,rowspan:e,colspan:n,row:r,column:o,isLocked:i}}(t.element,t.rowspan,t.colspan,a,n,o),s=0;s<t.colspan;s++)for(var l=0;l<t.rowspan;l++){var f=n+s,d=Sn(a+l,f);e[d]=c,i=Math.max(i,f+1)}u.push(c)})),o++,n.push(Wt(t.element,u,t.section)),a++}));var l=K(c).map((function(t){var e=function(t){var e={},n=0;return R(t.cells,(function(t){var r=t.colspan;A(r,(function(o){var i=n+o;e[i]=function(t,e,n){return{element:t,colspan:e,column:n}}(t.element,r,i)})),n+=r})),e}(t);return{colgroups:[function(t,e){return{element:t,columns:e}}(t.element,Lt(e))],columns:e}})).getOrThunk((function(){return{colgroups:[],columns:{}}})),f=l.columns,d=l.colgroups;return{grid:function(t,e){return{rows:t,columns:e}}(o,i),access:e,all:n,columns:f,colgroups:d}},kn={fromTable:function(t){var e=fn(t);return En(e)},generate:En,getAt:function(t,e,n){return C.from(t.access[Sn(e,n)])},findItem:function(t,e,n){var r=Cn(t,(function(t){return n(e,t.element)}));return r.length>0?C.some(r[0]):C.none()},filterItems:Cn,justCells:function(t){return H(t.all,(function(t){return t.cells}))},justColumns:function(t){return Lt(t.columns)},hasColumns:function(t){return Dt(t.columns).length>0},getColumnAt:function(t,e){return C.from(t.columns[e])}},Tn=function(t,e){var n=e.column,r=e.column+e.colspan-1,o=e.row,i=e.row+e.rowspan-1;return n<=t.finishCol&&r>=t.startCol&&o<=t.finishRow&&i>=t.startRow},Mn=function(t,e){return e.column>=t.startCol&&e.column+e.colspan-1<=t.finishCol&&e.row>=t.startRow&&e.row+e.rowspan-1<=t.finishRow},Dn=function(t,e,n){var r=kn.findItem(t,e,Et),o=kn.findItem(t,n,Et);return r.bind((function(t){return o.map((function(e){return n=t,r=e,o=Math.min(n.row,r.row),i=Math.min(n.column,r.column),a=Math.max(n.row+n.rowspan-1,r.row+r.rowspan-1),u=Math.max(n.column+n.colspan-1,r.column+r.colspan-1),{startRow:o,startCol:i,finishRow:a,finishCol:u};var n,r,o,i,a,u}))}))},An=function(t,e,n){return Dn(t,e,n).bind((function(e){return function(t,e){for(var n=!0,r=g(Mn,e),o=e.startRow;o<=e.finishRow;o++)for(var i=e.startCol;i<=e.finishCol;i++)n=n&&kn.getAt(t,o,i).exists(r);return n?C.some(e):C.none()}(t,e)}))},Pn=function(t,e,n){return Dn(t,e,n).map((function(e){var n=kn.filterItems(t,g(Tn,e));return P(n,(function(t){return t.element}))}))},Rn=function(t,e){return kn.findItem(t,e,(function(t,e){return Tt(e,t)})).map((function(t){return t.element}))},In=function(t,e,n){return an(t).bind((function(r){return function(t,e,n,r){return kn.findItem(t,e,Et).bind((function(e){var o=n>0?e.row+e.rowspan-1:e.row,i=r>0?e.column+e.colspan-1:e.column;return kn.getAt(t,o+n,i+r).map((function(t){return t.element}))}))}(Ln(r),t,e,n)}))},zn=function(t,e,n){var r=Ln(t);return Pn(r,e,n)},jn=function(t,e,n,r,o){var i=Ln(t),a=Et(t,n)?C.some(e):Rn(i,e),u=Et(t,o)?C.some(r):Rn(i,r);return a.bind((function(t){return u.bind((function(e){return Pn(i,t,e)}))}))},Ln=kn.fromTable,Bn=function(t,e){oe(t).each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},Fn=function(t,e){ue(t).fold((function(){oe(t).each((function(t){Hn(t,e)}))}),(function(t){Bn(t,e)}))},Nn=function(t,e){(function(t){return se(t,0)})(t).fold((function(){Hn(t,e)}),(function(n){t.dom.insertBefore(e.dom,n.dom)}))},Hn=function(t,e){t.dom.appendChild(e.dom)},Vn=function(t,e){Bn(t,e),Hn(e,t)},Un=function(t,e){R(e,(function(n,r){var o=0===r?t:e[r-1];Fn(o,n)}))},Wn=function(t,e){R(e,(function(e){Hn(t,e)}))},$n=function(t){t.dom.textContent="",R(ce(t),(function(t){Gn(t)}))},Gn=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},Kn=function(t){var e,n=ce(t);n.length>0&&(e=t,R(n,(function(t){Bn(e,t)}))),Gn(t)},qn=function(t,e){var n=function(e){return t(e)?C.from(e.dom.nodeValue):C.none()};return{get:function(r){if(!t(r))throw new Error("Can only get "+e+" value of a "+e+" node");return n(r).getOr("")},getOption:n,set:function(n,r){if(!t(n))throw new Error("Can only set raw "+e+" value of a "+e+" node");n.dom.nodeValue=r}}}(Qt,"text"),Xn=function(t){return qn.get(t)},Yn=function(t){return qn.getOption(t)},Jn=function(t,e){return qn.set(t,e)},Qn=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function Zn(){return{up:m({selector:Se,closest:ke,predicate:Oe,all:ie}),down:m({selector:we,predicate:be}),styles:m({get:Ue,getRaw:$e,set:He,remove:Ge}),attrs:m({get:Ae,set:Me,remove:Re,copyTo:function(t,e){var n=Ie(t);De(e,n)}}),insert:m({before:Bn,after:Fn,afterAll:Un,append:Hn,appendAll:Wn,prepend:Nn,wrap:Vn}),remove:m({unwrap:Kn,remove:Gn}),create:m({nu:xt.fromTag,clone:function(t){return xt.fromDom(t.dom.cloneNode(!1))},text:xt.fromText}),query:m({comparePosition:function(t,e){return t.dom.compareDocumentPosition(e.dom)},prevSibling:ae,nextSibling:ue}),property:m({children:ce,name:Kt,parent:oe,document:function(t){return re(t).dom},isText:Qt,isComment:Yt,isElement:Jt,isSpecial:function(t){var e=Kt(t);return M(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],e)},getLanguage:function(t){return Jt(t)?Pe(t,"lang"):C.none()},getText:Xn,setText:Jn,isBoundary:function(t){return!!Jt(t)&&("body"===Kt(t)||M(Qn,Kt(t)))},isEmptyTag:function(t){return!!Jt(t)&&M(["br","img","hr","input"],Kt(t))},isNonEditable:function(t){return Jt(t)&&"false"===Ae(t,"contenteditable")}}),eq:Et,is:Mt}}var tr,er,nr=function(t,e,n,r){var o=e(t,n);return j(r,(function(n,r){var o=e(t,r);return rr(t,n,o)}),o)},rr=function(t,e,n){return e.bind((function(e){return n.filter(g(t.eq,e))}))},or=function(t,e,n){return n.length>0?function(t,e,n,r){return r(t,e,n[0],n.slice(1))}(t,e,n,nr):C.none()},ir=function(t,e,n,r){void 0===r&&(r=_);var o=[e].concat(t.up().all(e)),i=[n].concat(t.up().all(n)),a=function(t){return F(t,r).fold((function(){return t}),(function(e){return t.slice(0,e+1)}))},u=a(o),c=a(i),s=B(u,(function(e){return D(c,function(t,e){return g(t.eq,e)}(t,e))}));return{firstpath:u,secondpath:c,shared:s}},ar=Zn(),ur=function(t,e){return or(ar,(function(e,n){return t(n)}),e)},cr=function(t){return Se(t,"table")},sr=function(t,e,n){var r=function(t){return function(e){return void 0!==n&&n(e)||Et(e,t)}};return Et(t,e)?C.some({boxes:C.some([t]),start:t,finish:e}):cr(t).bind((function(o){return cr(e).bind((function(i){if(Et(o,i))return C.some({boxes:zn(o,t,e),start:t,finish:e});if(Tt(o,i)){var a=(u=ye(e,"td,th",r(o))).length>0?u[u.length-1]:e;return C.some({boxes:jn(o,t,o,e,i),start:t,finish:a})}if(Tt(i,o)){var u,c=(u=ye(t,"td,th",r(i))).length>0?u[u.length-1]:t;return C.some({boxes:jn(i,t,o,e,i),start:t,finish:c})}return function(t,e,n){return ir(ar,t,e,n)}(t,e).shared.bind((function(a){return ke(a,"table",n).bind((function(n){var a=ye(e,"td,th",r(n)),u=a.length>0?a[a.length-1]:e,c=ye(t,"td,th",r(n)),s=c.length>0?c[c.length-1]:t;return C.some({boxes:jn(n,t,o,e,i),start:s,finish:u})}))}))}))}))},lr=function(t,e){var n=we(t,e);return n.length>0?C.some(n):C.none()},fr=function(t,e,n){return Ee(t,e).bind((function(e){return Ee(t,n).bind((function(t){return ur(cr,[e,t]).map((function(n){return{first:e,last:t,table:n}}))}))}))},dr=function(t,e,n,r,o){return function(t,e){return B(t,(function(t){return Ot(t,e)}))}(t,o).bind((function(t){return In(t,e,n).bind((function(t){return function(t,e){return Se(t,"table").bind((function(n){return Ee(n,e).bind((function(e){return sr(e,t).bind((function(t){return t.boxes.map((function(e){return{boxes:e,start:t.start,finish:t.finish}}))}))}))}))}(t,r)}))}))},mr=function(t,e){return lr(t,e)},pr=function(t,e,n){return fr(t,e,n).bind((function(e){var n=function(e){return Et(t,e)},r=Se(e.first,"thead,tfoot,tbody,table",n),o=Se(e.last,"thead,tfoot,tbody,table",n);return r.bind((function(t){return o.bind((function(n){return Et(t,n)?function(t,e,n){var r=Ln(t);return An(r,e,n)}(e.table,e.first,e.last):C.none()}))}))}))},hr=function(t){if(!i(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};return R(t,(function(r,o){var a=Dt(r);if(1!==a.length)throw new Error("one and only one name per case");var u=a[0],c=r[u];if(void 0!==n[u])throw new Error("duplicate key detected:"+u);if("cata"===u)throw new Error("cannot have a case named cata (sorry)");if(!i(c))throw new Error("case arguments must be an array");e.push(u),n[u]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==c.length)throw new Error("Wrong number of arguments to case "+u+". Expected "+c.length+" ("+c+"), got "+i);var a=function(t){var r=Dt(t);if(e.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+e.join(",")+"\nActual: "+r.join(","));if(!V(e,(function(t){return M(r,t)})))throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+e.join(", "));return t[u].apply(null,n)};return{fold:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(e.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+e.length);var i=e[o];return i.apply(null,n)},match:a,log:function(t){}}}})),n},gr=hr([{none:[]},{multiple:["elements"]},{single:["element"]}]),vr=function(t,e,n,r){return t.fold(e,n,r)},br=gr.none,yr=gr.multiple,_r=gr.single,wr=tinymce.util.Tools.resolve("tinymce.PluginManager"),xr=function(t,e){return xt.fromDom(t.dom.cloneNode(e))},Or=function(t){return xr(t,!1)},Sr=function(t){return xr(t,!0)},Cr=function(t,e){var n=xt.fromTag(e),r=Ie(t);return De(n,r),n},Er=function(t,e){var n=function(n){var r=e(n);if(r<=0||null===r){var o=Ue(n,t);return parseFloat(o)||0}return r},r=function(t,e){return L(e,(function(e,n){var r=Ue(t,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?e:e+o}),0)};return{set:function(e,n){if(!f(n)&&!n.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+n);var r=e.dom;Fe(r)&&(r.style[t]=n+"px")},get:n,getOuter:n,aggregate:r,max:function(t,e,n){var o=r(t,n);return e>o?e-o:0}}},kr=function(){var t=_t().browser;return t.isIE()||t.isEdge()},Tr=function(t,e){return function(t){var e=parseFloat(t);return isNaN(e)?C.none():C.some(e)}(t).getOr(e)},Mr=function(t,e,n){return Tr(Ue(t,e),n)},Dr=function(t){return Ue(t,"box-sizing")},Ar=function(t,e,n,r){return e-Mr(t,"padding-"+n,0)-Mr(t,"padding-"+r,0)-Mr(t,"border-"+n+"-width",0)-Mr(t,"border-"+r+"-width",0)},Pr=function(t,e){var n=t.dom,r=n.getBoundingClientRect().width||n.offsetWidth;return"border-box"===e?r:Ar(t,r,"left","right")},Rr=Er("width",(function(t){return t.dom.offsetWidth})),Ir=function(t){return Rr.get(t)},zr=function(t){return Rr.getOuter(t)},jr=function(t){return Pr(t,"content-box")},Lr=function(t){return kr()?Pr(t,Dr(t)):Mr(t,"width",t.dom.offsetWidth)},Br=function(t,e){void 0===e&&(e=w);var n=t.grid,r=A(n.columns,p),o=A(n.rows,p);return P(r,(function(n){return Fr((function(){return H(o,(function(e){return kn.getAt(t,e,n).filter((function(t){return t.column===n})).toArray()}))}),(function(t){return 1===t.colspan&&e(t.element)}),(function(){return kn.getAt(t,0,n)}))}))},Fr=function(t,e,n){var r=t();return B(r,e).orThunk((function(){return C.from(r[0]).orThunk(n)})).map((function(t){return t.element}))},Nr=function(t){var e=t.grid,n=A(e.rows,p),r=A(e.columns,p);return P(n,(function(e){return Fr((function(){return H(r,(function(n){return kn.getAt(t,e,n).filter((function(t){return t.row===e})).fold(m([]),(function(t){return[t]}))}))}),(function(t){return 1===t.rowspan}),(function(){return kn.getAt(t,e,0)}))}))},Hr=function(t,e){if(e<0||e>=t.length-1)return C.none();var n=t[e].fold((function(){var n=function(t){var e=E.call(t,0);return e.reverse(),e}(t.slice(0,e));return q(n,(function(t,e){return t.map((function(t){return{value:t,delta:e+1}}))}))}),(function(t){return C.some({value:t,delta:0})})),r=t[e+1].fold((function(){var n=t.slice(e+1);return q(n,(function(t,e){return t.map((function(t){return{value:t,delta:e+1}}))}))}),(function(t){return C.some({value:t,delta:1})}));return n.bind((function(t){return r.map((function(e){var n=e.delta+t.delta;return Math.abs(e.value-t.value)/n}))}))},Vr=function(t,e){return function(n){return"rtl"===Ur(n)?e:t}},Ur=function(t){return"rtl"===Ue(t,"direction")?"rtl":"ltr"},Wr=Er("height",(function(t){var e=t.dom;return ge(t)?e.getBoundingClientRect().height:e.offsetHeight})),$r=function(t){return Wr.get(t)},Gr=function(t){return Wr.getOuter(t)},Kr=function(t){return kr()?function(t,e){var n=t.dom,r=n.getBoundingClientRect().height||n.offsetHeight;return"border-box"===e?r:Ar(t,r,"top","bottom")}(t,Dr(t)):Mr(t,"height",t.dom.offsetHeight)},qr=function(t,e){return{left:t,top:e,translate:function(n,r){return qr(t+n,e+r)}}},Xr=qr,Yr=function(t,e){return void 0!==t?t:void 0!==e?e:0},Jr=function(t){var e=t.dom.ownerDocument,n=e.body,r=e.defaultView,o=e.documentElement;if(n===t.dom)return Xr(n.offsetLeft,n.offsetTop);var i=Yr(null==r?void 0:r.pageYOffset,o.scrollTop),a=Yr(null==r?void 0:r.pageXOffset,o.scrollLeft),u=Yr(o.clientTop,n.clientTop),c=Yr(o.clientLeft,n.clientLeft);return Qr(t).translate(a-c,i-u)},Qr=function(t){var e=t.dom,n=e.ownerDocument.body;return n===e?Xr(n.offsetLeft,n.offsetTop):ge(t)?function(t){var e=t.getBoundingClientRect();return Xr(e.left,e.top)}(e):Xr(0,0)},Zr=function(t,e){return{row:t,y:e}},to=function(t,e){return{col:t,x:e}},eo=function(t){return Jr(t).left+zr(t)},no=function(t){return Jr(t).left},ro=function(t,e){return to(t,no(e))},oo=function(t,e){return to(t,eo(e))},io=function(t){return Jr(t).top},ao=function(t,e){return Zr(t,io(e))},uo=function(t,e){return Zr(t,io(e)+Gr(e))},co=function(t,e,n){if(0===n.length)return[];var r=P(n.slice(1),(function(e,n){return e.map((function(e){return t(n,e)}))})),o=n[n.length-1].map((function(t){return e(n.length-1,t)}));return r.concat([o])},so={delta:p,positions:function(t){return co(ao,uo,t)},edge:io},lo={delta:p,edge:no,positions:function(t){return co(ro,oo,t)}},fo={delta:function(t){return-t},edge:eo,positions:function(t){return co(oo,ro,t)}},mo=Vr(lo,fo),po={delta:function(t,e){return mo(e).delta(t,e)},positions:function(t,e){return mo(e).positions(t,e)},edge:function(t){return mo(t).edge(t)}},ho={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},go=(tr=function(t){return"(?:"+t+")?"},er=["Infinity","[0-9]+\\."+tr("[0-9]+")+tr("[eE][+-]?[0-9]+"),"\\.[0-9]+"+tr("[eE][+-]?[0-9]+"),"[0-9]+"+tr("[eE][+-]?[0-9]+")].join("|"),new RegExp("^([+-]?(?:"+er+"))(.*)$")),vo=function(t,e){return C.from(go.exec(t)).bind((function(t){var n=Number(t[1]),r=t[2];return function(t,e){return D(e,(function(e){return D(ho[e],(function(e){return t===e}))}))}(r,e)?C.some({value:n,unit:r}):C.none()}))},bo=/(\d+(\.\d+)?)%/,yo=/(\d+(\.\d+)?)px|em/,_o=ee("col"),wo=function(t,e,n){var r,o=(r=t,C.from(r.dom.parentElement).map(xt.fromDom)).getOrThunk((function(){return ve(ne(t))}));return e(t)/n(o)*100},xo=function(t,e){He(t,"width",e+"px")},Oo=function(t,e){He(t,"width",e+"%")},So=function(t,e){He(t,"height",e+"px")},Co=function(t,e,n,r){var o=parseFloat(t);return it(t,"%")&&"table"!==Kt(e)?function(t,e,n,r){var o=an(t).map((function(t){var r=n(t);return Math.floor(e/100*r)})).getOr(e);return r(t,o),o}(e,o,n,r):o},Eo=function(t){var e=function(t){return Kr(t)+"px"}(t);return e?Co(e,t,$r,So):$r(t)},ko=function(t,e){return $e(t,e).orThunk((function(){return Pe(t,e).map((function(t){return t+"px"}))}))},To=function(t){return ko(t,"width")},Mo=function(t){return wo(t,Ir,jr)},Do=function(t){return _o(t)?Ir(t):Lr(t)},Ao=function(t){return function(t,e,n){return n(t)/qe(t,e)}(t,"rowspan",Eo)},Po=function(t,e,n){He(t,"width",e+n)},Ro=function(t){return wo(t,Ir,jr)+"%"},Io=m(bo),zo=ee("col"),jo=function(t){return To(t).getOrThunk((function(){return Do(t)+"px"}))},Lo=function(t){return(e=t,ko(e,"height")).getOrThunk((function(){return Ao(t)+"px"}));var e},Bo=function(t,e,n,r,o,i){return t.filter(r).fold((function(){return i(Hr(n,e))}),(function(t){return o(t)}))},Fo=function(t,e,n,r){var o=Br(t),i=kn.hasColumns(t)?function(t){return P(kn.justColumns(t),(function(t){return C.from(t.element)}))}(t):o,a=[C.some(po.edge(e))].concat(P(po.positions(o,e),(function(t){return t.map((function(t){return t.x}))}))),u=y(Xe);return P(i,(function(t,e){return Bo(t,e,a,u,(function(t){if(function(t){var e=_t().browser,n=e.isChrome()||e.isFirefox();return!zo(t)||n}(t))return n(t);var i,c,s=(i=o[e],c=p,null!=i?c(i):C.none());return Bo(s,e,a,u,(function(t){return r(C.some(Ir(t)))}),r)}),r)}))},No=function(t){return t.map((function(t){return t+"px"})).getOr("")},Ho=function(t,e,n){return Fo(t,e,Do,(function(t){return t.getOrThunk(n.minCellWidth)}))},Vo=function(t,e,n,r,o){var i=Nr(t),a=[C.some(n.edge(e))].concat(P(n.positions(i,e),(function(t){return t.map((function(t){return t.y}))})));return P(i,(function(t,e){return Bo(t,e,a,y(Ye),r,o)}))},Uo=function(t,e){return function(){return ge(t)?e(t):parseFloat($e(t,"width").getOr("0"))}},Wo=function(t){var e=Uo(t,Ir),n=m(0);return{width:e,pixelWidth:e,getWidths:function(e,n){return Ho(e,t,n)},getCellDelta:n,singleColumnWidth:m([0]),minCellWidth:n,setElementWidth:d,adjustTableWidth:d,isRelative:!0,label:"none"}},$o=function(t){var e=Uo(t,(function(t){return parseFloat(Ro(t))})),n=Uo(t,Ir);return{width:e,pixelWidth:n,getWidths:function(e,n){return function(t,e,n){return Fo(t,e,Mo,(function(t){return t.fold((function(){return n.minCellWidth()}),(function(t){return t/n.pixelWidth()*100}))}))}(e,t,n)},getCellDelta:function(t){return t/n()*100},singleColumnWidth:function(t,e){return[100-t]},minCellWidth:function(){return Qe()/n()*100},setElementWidth:Oo,adjustTableWidth:function(n){var r=e();Oo(t,r+n/100*r)},isRelative:!0,label:"percent"}},Go=function(t){var e=Uo(t,Ir);return{width:e,pixelWidth:e,getWidths:function(e,n){return Ho(e,t,n)},getCellDelta:p,singleColumnWidth:function(t,e){return[Math.max(Qe(),t+e)-t]},minCellWidth:Qe,setElementWidth:xo,adjustTableWidth:function(n){var r=e()+n;xo(t,r)},isRelative:!1,label:"pixel"}},Ko=function(t){return To(t).fold((function(){return Wo(t)}),(function(e){return function(t,e){return null!==Io().exec(e)?$o(t):Go(t)}(t,e)}))},qo=Go,Xo=$o,Yo=function(t,e,n){var r=t[n].element,o=xt.fromTag("td");Hn(o,xt.fromTag("br")),(e?Hn:Nn)(r,o)},Jo=function(t,e){var n=function(t){return Ot(t.element,e)},r=Sr(t),o=fn(r),i=Ko(t),a=kn.generate(o),u=function(t,e){var n=t.grid.columns,r=t.grid.rows,o=n,i=0,a=0,u=[],c=[];return Pt(t.access,(function(t){if(u.push(t),e(t)){c.push(t);var n=t.row,s=n+t.rowspan-1,l=t.column,f=l+t.colspan-1;n<r?r=n:s>i&&(i=s),l<o?o=l:f>a&&(a=f)}})),function(t,e,n,r,o,i){return{minRow:t,minCol:e,maxRow:n,maxCol:r,allCells:o,selectedCells:i}}(r,o,i,a,u,c)}(a,n),c="th:not("+e+"),td:not("+e+")",s=en(r,"th,td",(function(t){return Ot(t,c)}));return R(s,Gn),function(t,e,n,r){for(var o=e.grid.columns,i=e.grid.rows,a=0;a<i;a++)for(var u=!1,c=0;c<o;c++){if(!(a<n.minRow||a>n.maxRow||c<n.minCol||c>n.maxCol))kn.getAt(e,a,c).filter(r).isNone()?Yo(t,u,a):u=!0}}(o,a,u,n),function(t,e,n,r){Pt(n.columns,(function(t){(t.column<e.minCol||t.column>e.maxCol)&&Gn(t.element)}));var o=z(tn(t,"tr"),(function(t){return 0===t.dom.childElementCount}));R(o,Gn),e.minCol!==e.maxCol&&e.minRow!==e.maxRow||R(tn(t,"th,td"),(function(t){Re(t,"rowspan"),Re(t,"colspan")})),Re(t,wn),Re(t,"data-snooker-col-series"),Ko(t).adjustTableWidth(r)}(r,u,a,function(t,e,n,r){if(0===r.minCol&&e.grid.columns===r.maxCol+1)return 0;var o=Ho(e,t,n),i=L(o,(function(t,e){return t+e}),0),a=L(o.slice(r.minCol,r.maxCol+1),(function(t,e){return t+e}),0)/i*n.pixelWidth()-n.pixelWidth();return n.getCellDelta(a)}(t,kn.fromTable(t),i,u)),r},Qo=function(t){return"img"===Kt(t)?1:Yn(t).fold((function(){return ce(t).length}),(function(t){return t.length}))},Zo=["img","br"],ti=function(t){return Yn(t).filter((function(t){return 0!==t.trim().length||t.indexOf(" ")>-1})).isSome()||M(Zo,Kt(t))},ei=function(t){return e=ti,(n=function(t){for(var r=0;r<t.childNodes.length;r++){var o=xt.fromDom(t.childNodes[r]);if(e(o))return C.some(o);var i=n(t.childNodes[r]);if(i.isSome())return i}return C.none()})(t.dom);var e,n},ni=function(t){return ri(t,ti)},ri=function(t,e){var n=function(t){for(var r=ce(t),o=r.length-1;o>=0;o--){var i=r[o];if(e(i))return C.some(i);var a=n(i);if(a.isSome())return a}return C.none()};return n(t)},oi={scope:["row","col"]},ii=function(t){return function(){var e=xt.fromTag("td",t.dom);return Hn(e,xt.fromTag("br",t.dom)),e}},ai=function(t){return function(){return xt.fromTag("col",t.dom)}},ui=function(t){return function(){return xt.fromTag("colgroup",t.dom)}},ci=function(t){return function(){return xt.fromTag("tr",t.dom)}},si=function(t,e,n){var r=function(t,e){var n=Cr(t,e),r=ce(Sr(t));return Wn(n,r),n}(t,e);return Pt(n,(function(t,e){null===t?Re(r,e):Me(r,e,t)})),r},li=function(t){return t},fi=function(t,e,n){var r=function(t,e){var n,r,o,i;n=t.element,r=e,o=n.dom,i=r.dom,Fe(o)&&Fe(i)&&(i.style.cssText=o.style.cssText),Ge(e,"height"),1!==t.colspan&&Ge(e,"width")};return{col:function(n){var o=xt.fromTag(Kt(n.element),e.dom);return r(n,o),t(n.element,o),o},colgroup:ui(e),row:ci(e),cell:function(o){var i=xt.fromTag(Kt(o.element),e.dom),a=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),u=a.length>0?function(t,e,n){return ei(t).map((function(r){var o=n.join(","),i=ye(r,o,(function(e){return Et(e,t)}));return j(i,(function(t,e){var n=Or(e);return Re(n,"contenteditable"),Hn(t,n),n}),e)})).getOr(e)}(o.element,i,a):i;return Hn(u,xt.fromTag("br")),r(o,i),function(t,e){Pt(oi,(function(n,r){return Pe(t,r).filter((function(t){return M(n,t)})).each((function(t){return Me(e,r,t)}))}))}(o.element,i),t(o.element,i),i},replace:si,colGap:ai(e),gap:ii(e)}},di=function(t){return{col:ai(t),colgroup:ui(t),row:ci(t),cell:ii(t),replace:li,colGap:ai(t),gap:ii(t)}},mi=function(t){return P(t,xt.fromDom)},pi=function(t){return xt.fromDom(t.getBody())},hi=function(t){return t.getBoundingClientRect().width},gi=function(t){return t.getBoundingClientRect().height},vi=function(t){return function(e){return Et(e,pi(t))}},bi=function(t){return/^\d+(\.\d+)?$/.test(t)?t+"px":t},yi=function(t){Re(t,"data-mce-style");var e=function(t){return Re(t,"data-mce-style")};R(rn(t),e),R(on(t),e),R(un(t),e)},_i=function(t){return xt.fromDom(t.selection.getStart())},wi=function(t){return vr(t.get(),m([]),p,W)},xi=function(t){var e=function(t,e){return Pe(t,e).exists((function(t){return parseInt(t,10)>1}))},n=wi(t);return n.length>0&&V(n,(function(t){return e(t,"rowspan")||e(t,"colspan")}))?C.some(n):C.none()},Oi=function(t,e,n){return vr(e.get(),C.none,(function(e){return e.length<=1?C.none():pr(t,n.firstSelectedSelector,n.lastSelectedSelector).map((function(t){return{bounds:t,cells:e}}))}),C.none)},Si={selected:"data-mce-selected",selectedSelector:"td[data-mce-selected],th[data-mce-selected]",firstSelected:"data-mce-first-selected",firstSelectedSelector:"td[data-mce-first-selected],th[data-mce-first-selected]",lastSelected:"data-mce-last-selected",lastSelectedSelector:"td[data-mce-last-selected],th[data-mce-last-selected]"},Ci=function(t,e,n){return{element:n,mergable:Oi(e,t,Si),unmergable:xi(t),selection:wi(t)}},Ei=function(t){return function(e,n){var r,o=Kt(e),i="col"===o||"colgroup"===o?an(r=e).bind((function(t){return mr(t,Si.firstSelectedSelector)})).fold(m(r),(function(t){return t[0]})):e;return ke(i,t,n)}},ki=Ei("th,td,caption"),Ti=Ei("th,td"),Mi=function(t){return wi(t)},Di=function(t,e,n){t.on("BeforeGetContent",(function(n){!0===n.selection&&vr(e.get(),d,(function(e){n.preventDefault(),function(t){return an(t[0]).map((function(t){var e=Jo(t,"[data-mce-selected]");return yi(e),[e]}))}(e).each((function(e){n.content="text"===n.format?function(t){return P(t,(function(t){return t.dom.innerText})).join("")}(e):function(t,e){return P(e,(function(e){return t.selection.serializer.serialize(e.dom,{})})).join("")}(t,e)}))}),d)})),t.on("BeforeSetContent",(function(r){if(!0===r.selection&&!0===r.paste){var o=Mi(e);G(o).each((function(e){an(e).each((function(o){var i,a,u,c=z((i=r.content,(u=(a||document).createElement("div")).innerHTML=i,ce(xt.fromDom(u))),(function(t){return"meta"!==Kt(t)})),s=ee("table");if(1===c.length&&s(c[0])){r.preventDefault();var l=xt.fromDom(t.getDoc()),f=di(l),d=function(t,e,n){return{element:t,clipboard:e,generators:n}}(e,c[0],f);n.pasteCells(o,d).each((function(){t.focus()}))}}))}))}}))},Ai=hr([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Pi=X({},Ai),Ri=function(t,e,n,r,o){var i=t.slice(0),a=function(t,e){return 0===t.length?Pi.none():1===t.length?Pi.only(0):0===e?Pi.left(0,1):e===t.length-1?Pi.right(e-1,e):e>0&&e<t.length-1?Pi.middle(e-1,e,e+1):Pi.none()}(t,e),u=m(P(i,m(0)));return a.fold(u,(function(t){return r.singleColumnWidth(i[t],n)}),(function(t,e){return o.calcLeftEdgeDeltas(i,t,e,n,r.minCellWidth(),r.isRelative)}),(function(t,e,a){return o.calcMiddleDeltas(i,t,e,a,n,r.minCellWidth(),r.isRelative)}),(function(t,e){return o.calcRightEdgeDeltas(i,t,e,n,r.minCellWidth(),r.isRelative)}))},Ii=function(t,e,n){for(var r=0,o=t;o<e;o++)r+=void 0!==n[o]?n[o]:0;return r},zi=function(t,e){var n=kn.justCells(t);return P(n,(function(t){var n=Ii(t.row,t.row+t.rowspan,e);return{element:t.element,height:n,rowspan:t.rowspan}}))},ji=function(t,e){return kn.hasColumns(t)?function(t,e){var n=kn.justColumns(t);return P(n,(function(t,n){return{element:t.element,width:e[n],colspan:t.colspan}}))}(t,e):function(t,e){var n=kn.justCells(t);return P(n,(function(t){var n=Ii(t.column,t.column+t.colspan,e);return{element:t.element,width:n,colspan:t.colspan}}))}(t,e)},Li=function(t,e,n){var r=ji(t,e);R(r,(function(t){n.setElementWidth(t.element,t.width)}))},Bi=function(t,e,n,r,o){var i=kn.fromTable(t),a=o.getCellDelta(e),u=o.getWidths(i,o),c=n===i.grid.columns-1,s=r.clampTableDelta(u,n,a,o.minCellWidth(),c),l=Ri(u,n,s,o,r),f=P(l,(function(t,e){return t+u[e]}));Li(i,f,o),r.resizeTable(o.adjustTableWidth,s,c)},Fi=function(t,e,n,r){var o=kn.fromTable(t),i=function(t,e,n){return Vo(t,e,n,Ao,(function(t){return t.getOrThunk(Ze)}))}(o,t,r),a=P(i,(function(t,r){return n===r?Math.max(e+t,Ze()):t})),u=zi(o,a),c=function(t,e){return P(t.all,(function(t,n){return{element:t.element,height:e[n]}}))}(o,a);R(c,(function(t){So(t.element,t.height)})),R(u,(function(t){So(t.element,t.height)}));var s=j(a,(function(t,e){return t+e}),0);So(t,s)},Ni=function(t){return P(t,m(0))},Hi=function(t,e,n,r,o){return o(t.slice(0,e)).concat(r).concat(o(t.slice(n)))},Vi=function(t){return function(e,n,r,o){if(t(r)){var i=Math.max(o,e[n]-Math.abs(r)),a=Math.abs(i-e[n]);return r>=0?a:-a}return r}},Ui=Vi((function(t){return t<0})),Wi=Vi(w),$i=function(){var t=function(t,e,n,r){var o=(100+n)/100,i=Math.max(r,(t[e]+n)/o);return P(t,(function(t,n){return(n===e?i:t/o)-t}))},e=function(e,n,r,o,i,a){return a?t(e,n,o,i):function(t,e,n,r,o){var i=Ui(t,e,r,o);return Hi(t,e,n+1,[i,0],Ni)}(e,n,r,o,i)};return{resizeTable:function(t,e){return t(e)},clampTableDelta:Ui,calcLeftEdgeDeltas:e,calcMiddleDeltas:function(t,n,r,o,i,a,u){return e(t,r,o,i,a,u)},calcRightEdgeDeltas:function(e,n,r,o,i,a){if(a)return t(e,r,o,i);var u=Ui(e,r,o,i);return Ni(e.slice(0,r)).concat([u])},calcRedestributedWidths:function(t,e,n,r){if(r){var o=(e+n)/e,i=P(t,(function(t){return t/o}));return{delta:100*o-100,newSizes:i}}return{delta:n,newSizes:t}}}},Gi=function(){var t=function(t,e,n,r,o){var i=Wi(t,r>=0?n:e,r,o);return Hi(t,e,n+1,[i,-i],Ni)};return{resizeTable:function(t,e,n){n&&t(e)},clampTableDelta:function(t,e,n,r,o){if(o){if(n>=0)return n;var i=L(t,(function(t,e){return t+e-r}),0);return Math.max(-i,n)}return Ui(t,e,n,r)},calcLeftEdgeDeltas:t,calcMiddleDeltas:function(e,n,r,o,i,a){return t(e,r,o,i,a)},calcRightEdgeDeltas:function(t,e,n,r,o,i){if(i)return Ni(t);var a=r/t.length;return P(t,m(a))},calcRedestributedWidths:function(t,e,n,r){return{delta:0,newSizes:t}}}},Ki=function(t,e){var n=C.from(t.dom.documentElement).map(xt.fromDom).getOr(t);return{parent:m(n),view:m(t),origin:m(Xr(0,0)),isResizable:e}},qi=function(t,e,n){return{parent:m(e),view:m(t),origin:m(Xr(0,0)),isResizable:n}},Xi=hr([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),Yi=function(t,e,n){var r=n.substring(0,n.length-t.length),o=parseFloat(r);return r===o.toString()?e(o):Xi.invalid(n)},Ji=X(X({},Xi),{from:function(t){return it(t,"%")?Yi("%",Xi.percent,t):it(t,"px")?Yi("px",Xi.pixels,t):Xi.invalid(t)}}),Qi=function(t,e,n){return t.fold((function(){return e}),(function(t){return function(t,e,n){var r=n/e;return P(t,(function(t){return Ji.from(t).fold((function(){return t}),(function(t){return t*r+"px"}),(function(t){return t/100*n+"px"}))}))}(e,n,t)}),(function(t){return function(t,e){return P(t,(function(t){return Ji.from(t).fold((function(){return t}),(function(t){return t/e*100+"%"}),(function(t){return t+"%"}))}))}(e,n)}))},Zi=function(t,e,n){var r=Ji.from(n),o=V(t,(function(t){return"0px"===t}))?function(t,e){var n=t.fold((function(){return m("")}),(function(t){return m(t/e+"px")}),(function(){return m(100/e+"%")}));return A(e,n)}(r,t.length):Qi(r,t,e);return na(o)},ta=function(t,e){return 0===t.length?e:j(t,(function(t,e){return Ji.from(e).fold(m(0),p,p)+t}),0)},ea=function(t,e){return Ji.from(t).fold(m(t),(function(t){return t+e+"px"}),(function(t){return t+e+"%"}))},na=function(t){if(0===t.length)return t;var e=j(t,(function(t,e){var n=Ji.from(e).fold((function(){return{value:e,remainder:0}}),(function(t){return function(t,e){var n=Math.floor(t);return{value:n+e,remainder:t-n}}(t,"px")}),(function(t){return{value:t+"%",remainder:0}}));return{output:[n.value].concat(t.output),remainder:t.remainder+n.remainder}}),{output:[],remainder:0}),n=e.output;return n.slice(0,n.length-1).concat([ea(n[n.length-1],Math.round(e.remainder))])},ra=Ji.from,oa=function(t){return ra(t).fold(m("px"),m("px"),m("%"))},ia=function(t,e,n){var r=kn.fromTable(t),o=r.all,i=kn.justCells(r),a=kn.justColumns(r);e.each((function(e){var n=oa(e),o=Ir(t),u=function(t,e){return Fo(t,e,jo,No)}(r,t),c=Zi(u,o,e);kn.hasColumns(r)?function(t,e,n){R(e,(function(e,r){var o=ta([t[r]],Qe());He(e.element,"width",o+n)}))}(c,a,n):function(t,e,n){R(e,(function(e){var r=t.slice(e.column,e.colspan+e.column),o=ta(r,Qe());He(e.element,"width",o+n)}))}(c,i,n),He(t,"width",e)})),n.each((function(e){var n=oa(e),a=$r(t),u=function(t,e,n){return Vo(t,e,n,Lo,No)}(r,t,so);!function(t,e,n,r){R(n,(function(e){var n=t.slice(e.row,e.rowspan+e.row),o=ta(n,Ze());He(e.element,"height",o+r)})),R(e,(function(e,n){He(e.element,"height",t[n])}))}(Zi(u,a,e),o,i,n),He(t,"height",e)}))},aa=function(t){return To(t).exists((function(t){return bo.test(t)}))},ua=function(t){return To(t).exists((function(t){return yo.test(t)}))},ca=function(t){return To(t).isNone()},sa=function(t){return kn.fromTable(t).grid},la=function(t){var e=[];return{bind:function(t){if(void 0===t)throw new Error("Event bind error: undefined handler");e.push(t)},unbind:function(t){e=z(e,(function(e){return e!==t}))},trigger:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o={};R(t,(function(t,e){o[t]=n[e]})),R(e,(function(t){t(o)}))}}},fa=function(t){return{registry:Rt(t,(function(t){return{bind:t.bind,unbind:t.unbind}})),trigger:Rt(t,(function(t){return t.trigger}))}},da=function(t){return t.slice(0).sort()},ma=function(t,e,n){if(0===e.length)throw new Error("You must specify at least one required field.");var o;return function(t,e){if(!i(e))throw new Error("The "+t+" fields must be an array. Was: "+e+".");R(e,(function(e){if(!r(e))throw new Error("The value "+e+" in the "+t+" fields was not a string.")}))}("required",e),o=da(e),B(o,(function(t,e){return e<o.length-1&&t===o[e+1]})).each((function(t){throw new Error("The field: "+t+" occurs more than once in the combined fields: ["+o.join(", ")+"].")})),function(r){var o=Dt(r);V(e,(function(t){return M(o,t)}))||function(t,e){throw new Error("All required keys ("+da(t).join(", ")+") were not specified. Specified keys were: "+da(e).join(", ")+".")}(e,o),t(e,o);var i=z(e,(function(t){return!n.validate(r[t],t)}));return i.length>0&&function(t,e){throw new Error("All values need to be of type: "+e+". Keys ("+da(t).join(", ")+") were not.")}(i,n.label),r}},pa=function(t,e){var n=z(e,(function(e){return!M(t,e)}));n.length>0&&function(t){throw new Error("Unsupported keys for object: "+da(t).join(", "))}(n)},ha=function(t){return function(t,e){return ma(t,e,{validate:l,label:"function"})}(pa,t)},ga=ha(["compare","extract","mutate","sink"]),va=ha(["element","start","stop","destroy"]),ba=ha(["forceDrop","drop","move","delayDrop"]),ya=function(){var t=C.none(),e=fa({move:la(["info"])});return{onEvent:function(n,r){r.extract(n).each((function(n){(function(e,n){var r=t.map((function(t){return e.compare(t,n)}));return t=C.some(n),r})(r,n).each((function(t){e.trigger.move(t)}))}))},reset:function(){t=C.none()},events:e.registry}},_a=function(){var t,e=(t=fa({move:la(["info"])}),{onEvent:d,reset:d,events:t.registry}),n=ya(),r=e;return{on:function(){r.reset(),r=n},off:function(){r.reset(),r=e},isOn:function(){return r===n},onEvent:function(t,e){r.onEvent(t,e)},events:n.events}},wa=function(t,e,n){var r,o,i,u,c=!1,s=fa({start:la([]),stop:la([])}),l=_a(),f=function(){p.stop(),l.isOn()&&(l.off(),s.trigger.stop())},d=(r=f,o=200,i=null,{cancel:u=function(){a(i)||(clearTimeout(i),i=null)},throttle:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];u(),i=setTimeout((function(){i=null,r.apply(null,t)}),o)}});l.events.move.bind((function(n){e.mutate(t,n.info)}));var m=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];c&&t.apply(null,e)}},p=e.sink(ba({forceDrop:f,drop:m(f),move:m((function(t){d.cancel(),l.onEvent(t,e)})),delayDrop:m(d.throttle)}),n);return{element:p.element,go:function(t){p.start(t),l.on(),s.trigger.start()},on:function(){c=!0},off:function(){c=!1},destroy:function(){p.destroy()},events:s.registry}},xa=function(t){var e,n,r=xt.fromDom(function(t){if(fe()&&s(t.target)){var e=xt.fromDom(t.target);if(Jt(e)&&he(e)&&t.composed&&t.composedPath){var n=t.composedPath();if(n)return G(n)}}return C.from(t.target)}(t).getOr(t.target)),o=function(){return t.stopPropagation()},i=function(){return t.preventDefault()},a=(e=i,n=o,function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e(n.apply(null,t))});return function(t,e,n,r,o,i,a){return{target:t,x:e,y:n,stop:r,prevent:o,kill:i,raw:a}}(r,t.clientX,t.clientY,o,i,a,t)},Oa=function(t,e,n,r,o){var i=function(t,e){return function(n){t(n)&&e(xa(n))}}(n,r);return t.dom.addEventListener(e,i,o),{unbind:g(Sa,t,e,i,o)}},Sa=function(t,e,n,r){t.dom.removeEventListener(e,n,r)},Ca=w,Ea=function(t,e,n){return function(t,e,n,r){return Oa(t,e,n,r,!1)}(t,e,Ca,n)},ka=xa,Ta=function(t,e){var n=Ae(t,e);return void 0===n||""===n?[]:n.split(" ")},Ma=function(t){return void 0!==t.dom.classList},Da=function(t,e){return function(t,e,n){var r=Ta(t,e).concat([n]);return Me(t,e,r.join(" ")),!0}(t,"class",e)},Aa=function(t,e){Ma(t)?t.dom.classList.add(e):Da(t,e)},Pa=function(t,e){return Ma(t)&&t.dom.classList.contains(e)},Ra=function(t){var e=t.replace(/\./g,"-");return{resolve:function(t){return e+"-"+t}}},Ia=Ra("ephox-dragster"),za=Ia.resolve,ja=ga({compare:function(t,e){return Xr(e.left-t.left,e.top-t.top)},extract:function(t){return C.some(Xr(t.x,t.y))},sink:function(t,e){var n=function(t){var e=X({layerClass:za("blocker")},t),n=xt.fromTag("div");Me(n,"role","presentation"),Ve(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),Aa(n,za("blocker")),Aa(n,e.layerClass);return{element:m(n),destroy:function(){Gn(n)}}}(e),r=Ea(n.element(),"mousedown",t.forceDrop),o=Ea(n.element(),"mouseup",t.drop),i=Ea(n.element(),"mousemove",t.move),a=Ea(n.element(),"mouseout",t.delayDrop);return va({element:n.element,start:function(t){Hn(t,n.element())},stop:function(){Gn(n.element())},destroy:function(){n.destroy(),o.unbind(),i.unbind(),a.unbind(),r.unbind()}})},mutate:function(t,e){t.mutate(e.left,e.top)}}),La=function(t){return ke(t,"[contenteditable]")},Ba=function(t,e){return void 0===e&&(e=!1),!_t().browser.isIE()&&ge(t)?t.dom.isContentEditable:La(t).fold(m(e),(function(t){return"true"===Fa(t)}))},Fa=function(t){return t.dom.contentEditable},Na=Ra("ephox-snooker"),Ha=Na.resolve,Va=function(){var t=fa({drag:la(["xDelta","yDelta","target"])}),e=C.none(),n=function(){var t=fa({drag:la(["xDelta","yDelta"])});return{mutate:function(e,n){t.trigger.drag(e,n)},events:t.registry}}();n.events.drag.bind((function(n){e.each((function(e){t.trigger.drag(n.xDelta,n.yDelta,e)}))}));return{assign:function(t){e=C.some(t)},get:function(){return e},mutate:n.mutate,events:t.registry}},Ua=Ha("resizer-bar"),Wa=Ha("resizer-rows"),$a=Ha("resizer-cols"),Ga=function(t){var e=we(t.parent(),"."+Ua);R(e,Gn)},Ka=function(t,e,n){var r=t.origin();R(e,(function(e){e.each((function(e){var o=n(r,e);Aa(o,Ua),Hn(t.parent(),o)}))}))},qa=function(t,e,n,r){Ka(t,e,(function(t,e){var o,i,a,u,c,s,l=(o=e.col,i=e.x-t.left,a=n.top-t.top,u=7,c=r,s=xt.fromTag("div"),Ve(s,{position:"absolute",left:i-u/2+"px",top:a+"px",height:c+"px",width:u+"px"}),De(s,{"data-column":o,role:"presentation"}),s);return Aa(l,$a),l}))},Xa=function(t,e,n,r){Ka(t,e,(function(t,e){var o=function(t,e,n,r,o){var i=xt.fromTag("div");return Ve(i,{position:"absolute",left:e+"px",top:n-o/2+"px",height:o+"px",width:r+"px"}),De(i,{"data-row":t,role:"presentation"}),i}(e.row,n.left-t.left,e.y-t.top,r,7);return Aa(o,Wa),o}))},Ya=function(t,e,n,r,o){var i=Jr(n),a=e.isResizable,u=r.length>0?so.positions(r,n):[],c=u.length>0?function(t,e){return H(t.all,(function(t,n){return e(t.element)?[n]:[]}))}(t,a):[],s=z(u,(function(t,e){return D(c,(function(t){return e===t}))}));Xa(e,s,i,zr(n));var l=o.length>0?po.positions(o,n):[],f=l.length>0?function(t,e){var n=[];return A(t.grid.columns,(function(r){kn.getColumnAt(t,r).map((function(t){return t.element})).forall(e)&&n.push(r)})),z(n,(function(n){var r=kn.filterItems(t,(function(t){return t.column===n}));return V(r,(function(t){return e(t.element)}))}))}(t,a):[],d=z(l,(function(t,e){return D(f,(function(t){return e===t}))}));qa(e,d,i,Gr(n))},Ja=function(t,e){if(Ga(t),t.isResizable(e)){var n=kn.fromTable(e),r=Nr(n),o=Br(n);Ya(n,t,e,r,o)}},Qa=function(t,e){var n=we(t.parent(),"."+Ua);R(n,e)},Za=function(t){Qa(t,(function(t){He(t,"display","none")}))},tu=function(t){Qa(t,(function(t){He(t,"display","block")}))},eu=Ha("resizer-bar-dragging"),nu=function(t){var e=Va(),n=function(t,e){void 0===e&&(e={});var n=void 0!==e.mode?e.mode:ja;return wa(t,n,e)}(e,{}),r=C.none(),o=function(t,e){return C.from(Ae(t,e))};e.events.drag.bind((function(t){o(t.target,"data-row").each((function(e){var n=Je(t.target,"top");He(t.target,"top",n+t.yDelta+"px")})),o(t.target,"data-column").each((function(e){var n=Je(t.target,"left");He(t.target,"left",n+t.xDelta+"px")}))}));var i=function(t,e){return Je(t,e)-Ke(t,"data-initial-"+e,0)};n.events.stop.bind((function(){e.get().each((function(e){r.each((function(n){o(e,"data-row").each((function(t){var r=i(e,"top");Re(e,"data-initial-top"),l.trigger.adjustHeight(n,r,parseInt(t,10))})),o(e,"data-column").each((function(t){var r=i(e,"left");Re(e,"data-initial-left"),l.trigger.adjustWidth(n,r,parseInt(t,10))})),Ja(t,n)}))}))}));var a=function(r,o){l.trigger.startAdjust(),e.assign(r),Me(r,"data-initial-"+o,Je(r,o)),Aa(r,eu),He(r,"opacity","0.2"),n.go(t.parent())},u=Ea(t.parent(),"mousedown",(function(t){var e;e=t.target,Pa(e,Wa)&&a(t.target,"top"),function(t){return Pa(t,$a)}(t.target)&&a(t.target,"left")})),c=function(e){return Et(e,t.view())},s=Ea(t.view(),"mouseover",(function(e){var n;(n=e.target,ke(n,"table",c).filter(Ba)).fold((function(){ge(e.target)&&Ga(t)}),(function(e){r=C.some(e),Ja(t,e)}))})),l=fa({adjustHeight:la(["table","delta","row"]),adjustWidth:la(["table","delta","column"]),startAdjust:la([])});return{destroy:function(){u.unbind(),s.unbind(),n.destroy(),Ga(t)},refresh:function(e){Ja(t,e)},on:n.on,off:n.off,hideBars:g(Za,t),showBars:g(tu,t),events:l.registry}},ru=function(t,e,n){var r=so,o=po,i=nu(t),a=fa({beforeResize:la(["table","type"]),afterResize:la(["table","type"]),startDrag:la([])});return i.events.adjustHeight.bind((function(t){var e=t.table;a.trigger.beforeResize(e,"row");var n=r.delta(t.delta,e);Fi(e,n,t.row,r),a.trigger.afterResize(e,"row")})),i.events.startAdjust.bind((function(t){a.trigger.startDrag()})),i.events.adjustWidth.bind((function(t){var r=t.table;a.trigger.beforeResize(r,"col");var i=o.delta(t.delta,r),u=n(r);Bi(r,i,t.column,e,u),a.trigger.afterResize(r,"col")})),{on:i.on,off:i.off,hideBars:i.hideBars,showBars:i.showBars,destroy:i.destroy,events:a.registry}},ou=function(t,e){return t.fire("newrow",{node:e})},iu=function(t,e){return t.fire("newcell",{node:e})},au=function(t,e,n){t.fire("TableModified",X(X({},n),{table:e}))},uu={structure:!1,style:!0},cu={structure:!0,style:!1},su={structure:!0,style:!0},lu={"border-collapse":"collapse",width:"100%"},fu=A(5,(function(t){var e=t+1+"px";return{title:e,value:e}})),du=P(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],(function(t){return{title:t,value:t.toLowerCase()}})),mu={border:"1"},pu=function(t){return t.getParam("table_sizing_mode","auto")},hu=function(t){return t.getParam("table_responsive_width")},gu=function(t){return t.getParam("table_border_widths",fu,"array")},vu=function(t){return t.getParam("table_border_styles",du,"array")},bu=function(t){return t.getParam("table_default_attributes",mu,"object")},yu=function(t){return t.getParam("table_default_styles",function(t){var e;if(ku(t)){var n=t.dom,r=null!==(e=n.getParent(t.selection.getStart(),n.isBlock))&&void 0!==e?e:t.getBody(),o=jr(xt.fromDom(r));return X(X({},lu),{width:o+"px"})}return Tu(t)?zt(lu,(function(t,e){return"width"!==e})):lu}(t),"object")},_u=function(t){return t.getParam("table_cell_advtab",!0,"boolean")},wu=function(t){return t.getParam("table_row_advtab",!0,"boolean")},xu=function(t){return t.getParam("table_advtab",!0,"boolean")},Ou=function(t){return t.getParam("table_style_by_css",!1,"boolean")},Su=function(t){return t.getParam("table_cell_class_list",[],"array")},Cu=function(t){return t.getParam("table_class_list",[],"array")},Eu=function(t){return"relative"===pu(t)||!0===hu(t)},ku=function(t){return"fixed"===pu(t)||!1===hu(t)},Tu=function(t){return"responsive"===pu(t)},Mu=function(t){return t.getParam("table_use_colgroups",!1,"boolean")},Du=function(t){var e=t.getParam("table_header_type","section","string");return M(["section","cells","sectionCells","auto"],e)?e:"section"},Au=function(t){var e=t.getParam("table_column_resizing","preservetable","string");return B(["preservetable","resizetable"],(function(t){return t===e})).getOr("preservetable")},Pu=function(t){return"preservetable"===Au(t)},Ru=function(t){return"resizetable"===Au(t)},Iu=function(t){var e=t.getParam("table_clone_elements");return r(e)?C.some(e.split(/[ ,]/)):Array.isArray(e)?C.some(e):C.none()},zu=function(t){return t.getParam("table_background_color_map",[],"array")},ju=function(t){return t.getParam("table_border_color_map",[],"array")},Lu=function(t,e){return Eu(t)?Xo(e):ku(t)?qo(e):Ko(e)},Bu=function(t){Re(t,"width")},Fu=function(t){var e=Ro(t);ia(t,C.some(e),C.none()),Bu(t)},Nu=function(t){var e=function(t){return Ir(t)+"px"}(t);ia(t,C.some(e),C.none()),Bu(t)},Hu=function(t){Ge(t,"width");var e=on(t),n=e.length>0?e:rn(t);R(n,(function(t){Ge(t,"width"),Bu(t)})),Bu(t)},Vu=function(){var t=xt.fromTag("div");return Ve(t,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Hn(ve(xt.fromDom(document)),t),t},Uu=function(t){return"false"!==Ae(t,"data-mce-resize")},Wu=function(t){var e,n,o=C.none(),i=C.none(),a=C.none(),u=function(t){return"TABLE"===t.nodeName},c=function(){return i},s=function(e){return Lu(t,e)},l=function(){return Pu(t)?Gi():$i()},f=function(r,o,i){var a=it(o,"e");if(""===n&&Fu(r),i!==e&&""!==n){He(r,"width",n);var u=l(),c=s(r),f=Pu(t)||a?function(t){return sa(t).columns}(r)-1:0;Bi(r,i-e,f,u,c)}else if(function(t){return/^(\d+(\.\d+)?)%$/.test(t)}(n)){var d=parseFloat(n.replace("%",""));He(r,"width",i*d/e+"%")}(function(t){return/^(\d+(\.\d+)?)px$/.test(t)})(n)&&function(t){var e=kn.fromTable(t);kn.hasColumns(e)||R(rn(t),(function(t){var e=Ue(t,"width");He(t,"width",e),Re(t,"width")}))}(r)};return t.on("init",(function(){var e=function(t,e){return t.inline?qi(pi(t),Vu(),e):Ki(xt.fromDom(t.getDoc()),e)}(t,Uu);if(a=C.some(e),function(t){var e=t.getParam("object_resizing",!0);return r(e)?"table"===e:e}(t)&&function(t){return t.getParam("table_resize_bars",!0,"boolean")}(t)){var n=l(),u=ru(e,n,s);u.on(),u.events.startDrag.bind((function(e){o=C.some(t.selection.getRng())})),u.events.beforeResize.bind((function(e){var n=e.table.dom;!function(t,e,n,r,o){t.fire("ObjectResizeStart",{target:e,width:n,height:r,origin:o})}(t,n,hi(n),gi(n),"bar-"+e.type)})),u.events.afterResize.bind((function(e){var n=e.table,r=n.dom;yi(n),o.each((function(e){t.selection.setRng(e),t.focus()})),function(t,e,n,r,o){t.fire("ObjectResized",{target:e,width:n,height:r,origin:o})}(t,r,hi(r),gi(r),"bar-"+e.type),t.undoManager.add()})),i=C.some(u)}})),t.on("ObjectResizeStart",(function(r){var o=r.target;if(u(o)){var i=xt.fromDom(o);R(t.dom.select(".mce-clonedresizable"),(function(e){t.dom.addClass(e,"mce-"+Au(t)+"-columns")})),!ua(i)&&ku(t)?Nu(i):!aa(i)&&Eu(t)&&Fu(i),ca(i)&&ot(r.origin,"bar-")&&Fu(i),e=r.width,n=Tu(t)?"":function(t,e){var n=t.dom.getStyle(e,"width")||t.dom.getAttrib(e,"width");return C.from(n).filter(ut)}(t,o).getOr("")}})),t.on("ObjectResized",(function(e){var n=e.target;if(u(n)){var r=xt.fromDom(n),o=e.origin;ot(o,"corner-")&&f(r,o,e.width),yi(r),au(t,r.dom,uu)}})),t.on("SwitchMode",(function(){c().each((function(e){t.mode.isReadOnly()?e.hideBars():e.showBars()}))})),{lazyResize:c,lazyWire:function(){return a.getOr(Ki(xt.fromDom(t.getBody()),Uu))},destroy:function(){i.each((function(t){t.destroy()})),a.each((function(e){!function(t,e){t.inline&&Gn(e.parent())}(t,e)}))}}},$u=function(t,e){return{element:t,offset:e}},Gu=function(t,e,n){return t.property().isText(e)&&0===t.property().getText(e).trim().length||t.property().isComment(e)?n(e).bind((function(e){return Gu(t,e,n).orThunk((function(){return C.some(e)}))})):C.none()},Ku=function(t,e){return t.property().isText(e)?t.property().getText(e).length:t.property().children(e).length},qu=function(t,e){var n=Gu(t,e,t.query().prevSibling).getOr(e);if(t.property().isText(n))return $u(n,Ku(t,n));var r=t.property().children(n);return r.length>0?qu(t,r[r.length-1]):$u(n,Ku(t,n))},Xu=qu,Yu=Zn(),Ju=function(t,e){1===qe(t,"colspan")&&function(t){return To(t).bind((function(t){return vo(t,["fixed","relative","empty"])}))}(t).each((function(n){var r=n.value/2;Po(t,r,n.unit),Po(e,r,n.unit)}))},Qu=ee("th"),Zu=function(t){return V(t,(function(t){return Qu(t.element)}))},tc=function(t,e){return t&&e?"sectionCells":t?"section":"cells"},ec=function(t){var e="thead"===t.section,n=ze(nc(t.cells),"th");return e||n?{type:"header",subType:tc(e,n)}:"tfoot"===t.section?{type:"footer"}:{type:"body"}},nc=function(t){var e=z(t,(function(t){return Qu(t.element)}));return 0===e.length?C.some("td"):e.length===t.length?C.some("th"):C.none()},rc=function(t,e,n){return $t(n(t.element,e),!0,t.isLocked)},oc=function(t,e){return t.section!==e?Gt(t.element,t.cells,e,t.isNew):t},ic=function(){return{transformRow:oc,transformCell:function(t,e,n){var r=n(t.element,e),o="td"!==Kt(r)?function(t,e){var n=Cr(t,e);Bn(t,n);var r=ce(t);return Wn(n,r),Gn(t),n}(r,"td"):r;return $t(o,t.isNew,t.isLocked)}}},ac=function(){return{transformRow:oc,transformCell:rc}},uc=function(){return{transformRow:function(t,e){return oc(t,"thead"===e?"tbody":e)},transformCell:rc}},cc=function(t,e){switch(function(t){return q(t.all,(function(t){var e=ec(t);return"header"===e.type?C.from(e.subType):C.none()}))}(kn.fromTable(t)).getOr(e)){case"section":return ic();case"sectionCells":return ac();case"cells":return uc()}},sc=ic,lc=ac,fc=uc,dc=function(){return{transformRow:p,transformCell:rc}},mc=function(t,e,n,r){n===r?Re(t,e):Me(t,e,n)},pc=function(t,e,n){K(_e(t,e)).fold((function(){return Nn(t,n)}),(function(t){return Fn(t,n)}))},hc=function(t,e){var n=[],r=[],o=function(t){return P(t,(function(t){t.isNew&&n.push(t.element);var e=t.element;return $n(e),R(t.cells,(function(t){t.isNew&&r.push(t.element),mc(t.element,"colspan",t.colspan,1),mc(t.element,"rowspan",t.rowspan,1),Hn(e,t.element)})),e}))},i=function(t){return H(t,(function(t){return P(t.cells,(function(t){return mc(t.element,"span",t.colspan,1),t.element}))}))},a=function(e,n){var r=function(t,e){var n=Ce(t,e).getOrThunk((function(){var n=xt.fromTag(e,ne(t).dom);return"thead"===e?pc(t,"caption,colgroup",n):"colgroup"===e?pc(t,"caption",n):Hn(t,n),n}));return $n(n),n}(t,n),a=("colgroup"===n?i:o)(e);Wn(r,a)},u=function(e,n){e.length>0?a(e,n):function(e){Ce(t,e).each(Gn)}(n)},c=[],s=[],l=[],f=[];return R(e,(function(t){switch(t.section){case"thead":c.push(t);break;case"tbody":s.push(t);break;case"tfoot":l.push(t);break;case"colgroup":f.push(t)}})),u(f,"colgroup"),u(c,"thead"),u(s,"tbody"),u(l,"tfoot"),{newRows:n,newCells:r}},gc=function(t,e){if(0===t.length)return 0;var n=t[0];return F(t,(function(t){return!e(n.element,t.element)})).getOr(t.length)},vc=function(t,e,n,r){var o=function(t,e){return t[e]}(t,e),i="colgroup"===o.section;return{colspan:gc(o.cells.slice(n),r),rowspan:i?1:gc(function(t,e){return P(t,(function(t){return gn(t,e)}))}(t.slice(e),n),r)}},bc=function(t,e){var n=P(t,(function(t){return P(t.cells,_)}));return P(t,(function(r,o){var i=H(r.cells,(function(r,i){if(!1===n[o][i]){var a=vc(t,o,i,e);return function(t,e,r,o){for(var i=t;i<t+r;i++)for(var a=e;a<e+o;a++)n[i][a]=!0}(o,i,a.rowspan,a.colspan),[(u=r.element,c=a.rowspan,s=a.colspan,l=r.isNew,{element:u,rowspan:c,colspan:s,isNew:l})]}return[];var u,c,s,l}));return function(t,e,n,r){return{element:t,cells:e,section:n,isNew:r}}(r.element,i,r.section,r.isNew)}))},yc=function(t,e,n){var r=[];R(t.colgroups,(function(o){for(var i=[],a=0;a<t.grid.columns;a++){var u=kn.getColumnAt(t,a).map((function(t){return $t(t.element,n,!1)})).getOrThunk((function(){return $t(e.colGap(),!0,!1)}));i.push(u)}r.push(Gt(o.element,i,"colgroup",n))}));for(var o=0;o<t.grid.rows;o++){for(var i=[],a=0;a<t.grid.columns;a++){var u=kn.getAt(t,o,a).map((function(t){return $t(t.element,n,t.isLocked)})).getOrThunk((function(){return $t(e.gap(),!0,!1)}));i.push(u)}var c=t.all[o],s=Gt(c.element,i,c.section,n);r.push(s)}return r},_c=function(t){return bc(t,Et)},wc=function(t,e){return q(t.all,(function(t){return B(t.cells,(function(t){return Et(e,t.element)}))}))},xc=function(t,e,n){var r=P(e.selection,(function(e){return nn(e).bind((function(e){return wc(t,e)})).filter(n)})),o=je(r);return Be(o.length>0,o)},Oc=function(t,e,n,r,o){return function(i,a,u,c,s){var l=kn.fromTable(a),f=C.from(null==s?void 0:s.section).getOrThunk(dc);return e(l,u).map((function(e){var n=function(t,e){return yc(t,e,!1)}(l,c),r=t(n,e,Et,o(c),f),i=On(r.grid);return{info:e,grid:_c(r.grid),cursor:r.cursor,lockedColumns:i}})).bind((function(t){var e=hc(a,t.grid),o=C.from(null==s?void 0:s.sizing).getOrThunk((function(){return Ko(a)})),u=C.from(null==s?void 0:s.resize).getOrThunk(Gi);return n(a,t.grid,t.info,{sizing:o,resize:u,section:f}),r(a),Ja(i,a),Re(a,wn),t.lockedColumns.length>0&&Me(a,wn,t.lockedColumns.join(",")),C.some({cursor:t.cursor,newRows:e.newRows,newCells:e.newCells})}))}},Sc=function(t,e){return xc(t,e,w).map((function(t){return{cells:t,generators:e.generators,clipboard:e.clipboard}}))},Cc=function(t,e){return xc(t,e,w)},Ec=function(t,e){return xc(t,e,(function(t){return!t.isLocked}))},kc=function(t,e){return V(e,(function(e){return function(t,e){return wc(t,e).exists((function(t){return!t.isLocked}))}(t,e)}))},Tc=function(t,e){return function(t,e){return e.mergable}(0,e).filter((function(e){return kc(t,e.cells)}))},Mc=function(t,e){return function(t,e){return e.unmergable}(0,e).filter((function(e){return kc(t,e)}))},Dc=function(t,e,n,r){for(var o=yn(t).rows,i=!0,a=0;a<o.length;a++)for(var u=0;u<bn(o[0]);u++){var c=o[a],s=gn(c,u),l=n(s.element,e);!0===l&&!1===i?pn(c,u,$t(r(),!0,s.isLocked)):!0===l&&(i=!1)}return t},Ac=function(t,e,n,r){var o=yn(t).rows;if(e>0&&e<o.length){var i=function(t,e){return L(t,(function(t,n){return D(t,(function(t){return e(t.element,n.element)}))?t:t.concat([n])}),[])}(o[e-1].cells,n);R(i,(function(t){for(var i=C.none(),a=e;a<o.length;a++)for(var u=function(e){var u=o[a],c=gn(u,e);n(c.element,t.element)&&(i.isNone()&&(i=C.some(r())),i.each((function(t){pn(u,e,$t(t,!0,c.isLocked))})))},c=0;c<bn(o[0]);c++)u(c)}))}return t},Pc=function(t){return{isValue:w,isError:_,getOr:m(t),getOrThunk:m(t),getOrDie:m(t),or:function(e){return Pc(t)},orThunk:function(e){return Pc(t)},fold:function(e,n){return n(t)},map:function(e){return Pc(e(t))},mapError:function(e){return Pc(t)},each:function(e){e(t)},bind:function(e){return e(t)},exists:function(e){return e(t)},forall:function(e){return e(t)},toOptional:function(){return C.some(t)}}},Rc=function(t){return{isValue:_,isError:w,getOr:p,getOrThunk:function(t){return t()},getOrDie:function(){return(e=String(t),function(){throw new Error(e)})();var e},or:p,orThunk:function(t){return t()},fold:function(e,n){return e(t)},map:function(e){return Rc(t)},mapError:function(e){return Rc(e(t))},each:d,bind:function(e){return Rc(t)},exists:_,forall:w,toOptional:C.none}},Ic={value:Pc,error:Rc,fromOption:function(t,e){return t.fold((function(){return Rc(e)}),Pc)}},zc=function(t,e){return{rowDelta:0,colDelta:bn(t[0])-bn(e[0])}},jc=function(t,e){return{rowDelta:t.length-e.length,colDelta:0}},Lc=function(t,e,n,r){var o="colgroup"===e.section?n.col:n.cell;return A(t,(function(t){return $t(o(),!0,r(t))}))},Bc=function(t,e,n,r){var o=t[t.length-1];return t.concat(A(e,(function(){var t="colgroup"===o.section?n.colgroup:n.row,e=_n(o,t,p),i=Lc(e.cells.length,e,n,(function(t){return Nt(r,t.toString())}));return hn(e,i)})))},Fc=function(t,e,n,r){return P(t,(function(t){var o=Lc(e,t,n,_);return dn(t,r,o)}))},Nc=function(t,e,n){var r=e.colDelta<0?Fc:p,o=e.rowDelta<0?Bc:p,i=On(t),a=bn(t[0]),u=D(i,(function(t){return t===a-1})),c=r(t,Math.abs(e.colDelta),n,u?a-1:a),s=On(c);return o(c,Math.abs(e.rowDelta),n,U(s,w))},Hc=function(t,e,n,r){var o=g(r,gn(t[e],n).element),i=t[e];return t.length>1&&bn(i)>1&&(n>0&&o(vn(i,n-1))||n<i.cells.length-1&&o(vn(i,n+1))||e>0&&o(vn(t[e-1],n))||e<t.length-1&&o(vn(t[e+1],n)))},Vc=function(t,e,n){return z(n,(function(n){return n>=t.column&&n<=bn(e[0])+t.column}))},Uc=function(t,e,n,r,o){var i=On(e),a=function(t,e,n){var r=bn(e[0]),o=yn(e).cols.length+t.row,i=A(r-t.column,(function(e){return e+t.column}));return{row:o,column:B(i,(function(t){return V(n,(function(e){return e!==t}))})).getOr(r-1)}}(t,e,i),u=yn(n).rows,c=Vc(a,u,i);return function(t,e,n){if(t.row>=e.length||t.column>bn(e[0]))return Ic.error("invalid start address out of table bounds, row: "+t.row+", column: "+t.column);var r=e.slice(t.row),o=r[0].cells.slice(t.column),i=bn(n[0]),a=n.length;return Ic.value({rowDelta:r.length-a,colDelta:o.length-i})}(a,e,u).map((function(t){var n=X(X({},t),{colDelta:t.colDelta-c.length}),i=Nc(e,n,r),s=On(i),l=Vc(a,u,s);return function(t,e,n,r,o,i){for(var a=t.row,u=t.column,c=a+n.length,s=u+bn(n[0])+i.length,l=U(i,w),f=a;f<c;f++)for(var d=0,m=u;m<s;m++)if(l[m])d++;else{Hc(e,f,m,o)&&Dc(e,vn(e[f],m),o,r.cell);var p=m-u-d,h=gn(n[f-a],p),g=h.element,v=r.replace(g);pn(e[f],m,$t(v,!0,h.isLocked))}return e}(a,i,u,r,o,l)}))},Wc=function(t,e,n,r,o){!function(t,e,n,r){e>0&&e<t[0].cells.length&&R(t,(function(t){var o=t.cells[e-1],i=t.cells[e];n(i.element,o.element)&&pn(t,e,$t(r(),!0,i.isLocked))}))}(e,t,o,r.cell);var i=jc(n,e),a=Nc(n,i,r),u=jc(e,a),c=Nc(e,u,r);return P(c,(function(e,n){return dn(e,t,a[n].cells)}))},$c=function(t,e,n,r,o){Ac(e,t,o,r.cell);var i=On(e),a=zc(e,n),u=X(X({},a),{colDelta:a.colDelta-i.length}),c=Nc(e,u,r),s=yn(c),l=s.cols,f=s.rows,d=On(c),m=zc(n,e),p=X(X({},m),{colDelta:m.colDelta+d.length}),h=function(t,e,n){return P(t,(function(t){return L(n,(function(n,r){var o=Lc(1,t,e,w)[0];return mn(n,r,o)}),t)}))}(n,r,d),g=Nc(h,p,r);return l.concat(f.slice(0,t)).concat(g).concat(f.slice(t,f.length))},Gc=function(t,e,n,r,o){var i=yn(t),a=i.rows,u=i.cols,c=a.slice(0,e),s=a.slice(e),l=function(t,e,n,r){return _n(t,(function(t){return r(t,n)}),e)}(a[n],(function(t,n){return e>0&&e<a.length&&r(vn(a[e-1],n),vn(a[e],n))?gn(a[e],n):$t(o(t.element,r),!0,t.isLocked)}),r,o);return u.concat(c).concat([l]).concat(s)},Kc=function(t,e,n,r,o){return P(t,(function(t){var i=e>0&&e<bn(t)&&r(vn(t,e-1),vn(t,e)),a=function(t,e,n,r,o,i,a){if("colgroup"!==n&&r)return gn(t,e);var u=gn(t,o);return $t(a(u.element,i),!0,!1)}(t,e,t.section,i,n,r,o);return mn(t,e,a)}))},qc=function(t,e,n,r){return function(t,e,n,r){return void 0!==vn(t[e],n)&&e>0&&r(vn(t[e-1],n),vn(t[e],n))}(t,e,n,r)||function(t,e,n){return e>0&&n(vn(t,e-1),vn(t,e))}(t[e],n,r)},Xc=function(t,e,n,r){var o=function(t){return function(t){return"row"===t?Ye(e):Xe(e)}(t)?t+"group":t};return t?Qu(e)?o(n):null:r&&Qu(e)?o("row"===n?"col":"row"):null},Yc=function(t,e,n){return $t(n(t.element,e),!0,t.isLocked)},Jc=function(t,e,n,r,o,i,a){return P(t,(function(t,u){return function(t,e){var n=t.cells,r=P(n,e);return Gt(t.element,r,t.section,t.isNew)}(t,(function(t,c){if(function(t){return D(e,(function(e){return n(t.element,e.element)}))}(t)){var s=a(t,u,c)?o(t,n,r):t;return i(s,u,c).each((function(t){var e,n;e=s.element,n={scope:C.from(t)},Pt(n,(function(t,n){t.fold((function(){Re(e,n)}),(function(t){Te(e.dom,n,t)}))}))})),s}return t}))}))},Qc=function(t,e,n){return H(t,(function(r,o){return qc(t,o,e,n)?[]:[gn(r,e)]}))},Zc=function(t,e,n,r,o){var i=yn(t).rows,a=H(e,(function(t){return Qc(i,t,r)})),u=P(t,(function(t){return Zu(t.cells)})),c=function(t,e){return V(e,p)&&Zu(t)?w:function(t,n,r){return!("th"===Kt(t.element)&&e[n])}}(a,u),s=function(t,e){return function(n,r){return C.some(Xc(t,n.element,"row",e[r]))}}(n,u);return Jc(t,a,r,o,Yc,s,c)},ts=function(t,e,n,r,o,i,a){var u=yn(t),c=u.cols,s=u.rows,l=s[e[0]],f=H(e,(function(t){return function(t,e,n){var r=t[e];return H(r.cells,(function(r,o){return qc(t,e,o,n)?[]:[r]}))}(s,t,o)})),d=P(l.cells,(function(t,e){return Zu(Qc(s,e,o))})),m=Y([],s,!0);R(e,(function(t){m[t]=a.transformRow(s[t],n)}));var h=c.concat(m),g=function(t,e){return V(e,p)&&Zu(t.cells)?w:function(t,n,r){return!("th"===Kt(t.element)&&e[r])}}(l,d),v=function(t,e){return function(n,r,o){return C.some(Xc(t,n.element,"col",e[o]))}}(r,d);return Jc(h,f,o,i,a.transformCell,v,g)},es=function(t,e,n,r){var o=yn(t).rows,i=P(e,(function(t){return gn(o[t.row],t.column)}));return Jc(t,i,n,r,Yc,C.none,w)},ns=function(t){return L(t,(function(t,e){return D(t,(function(t){return t.column===e.column}))?t:t.concat([e])}),[]).sort((function(t,e){return t.column-e.column}))},rs=ee("col"),os=ee("colgroup"),is=function(t){return"tr"===Kt(t)||os(t)},as=function(t){return{element:t,colspan:Ke(t,"colspan",1),rowspan:Ke(t,"rowspan",1)}},us=function(t){return Pe(t,"scope").map((function(t){return t.substr(0,3)}))},cs=function(t,e){void 0===e&&(e=as);var n=function(n){if(is(n))return os((o={element:n}).element)?t.colgroup(o):t.row(o);var o,i=function(e){return rs(e.element)?t.col(e):t.cell(e)}(e(n));return r=C.some({item:n,replacement:i}),i},r=C.none();return{getOrInit:function(t,e){return r.fold((function(){return n(t)}),(function(r){return e(t,r.item)?r.replacement:n(t)}))}}},ss=function(t){return function(e){var n=[],r=function(r){var o="td"===t?{scope:null}:{},i=e.replace(r,t,o);return n.push({item:r,sub:i}),i};return{replaceOrInit:function(t,e){return is(t)||rs(t)?t:function(t,e){return B(n,(function(n){return e(n.item,t)}))}(t,e).fold((function(){return r(t)}),(function(n){return e(t,n.item)?n.sub:r(t)}))}}}},ls=function(t){return{unmerge:function(e){var n=us(e);return n.each((function(t){return Me(e,"scope",t)})),function(){var r=t.cell({element:e,colspan:1,rowspan:1});return Ge(r,"width"),Ge(e,"width"),n.each((function(t){return Me(r,"scope",t)})),r}},merge:function(t){return Ge(t[0],"width"),function(){var e=je(P(t,us));if(0===e.length)return C.none();var n=e[0],r=["row","col"];return D(e,(function(t){return t!==n&&M(r,t)}))?C.none():C.from(n)}().fold((function(){return Re(t[0],"scope")}),(function(e){return Me(t[0],"scope",e+"group")})),m(t[0])}}},fs=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],ds=Zn(),ms=function(t){return function(t,e){var n=t.property().name(e);return M(fs,n)}(ds,t)},ps=function(t){return function(t,e){var n=t.property().name(e);return M(["ol","ul"],n)}(ds,t)},hs=function(t){return function(t,e){return M(["br","img","hr","input"],t.property().name(e))}(ds,t)},gs=function(t){var e,n=function(t){return"br"===Kt(t)},r=function(t){return ni(t).bind((function(e){var r=ue(e).map((function(t){return!!ms(t)||!!hs(t)&&"img"!==Kt(t)})).getOr(!1);return oe(e).map((function(o){return!0===r||function(t){return"li"===Kt(t)||Oe(t,ps).isSome()}(o)||n(e)||ms(o)&&!Et(t,o)?[]:[xt.fromTag("br")]}))})).getOr([])},o=0===(e=H(t,(function(t){var e=ce(t);return function(t){return V(t,(function(t){return n(t)||Qt(t)&&0===Xn(t).trim().length}))}(e)?[]:e.concat(r(t))}))).length?[xt.fromTag("br")]:e;$n(t[0]),Wn(t[0],o)},vs=function(t){return Ba(t,!0)},bs=function(t){0===rn(t).length&&Gn(t)},ys=function(t,e){return{grid:t,cursor:e}},_s=function(t,e,n){var r,o,i=yn(t).rows;return C.from(null===(o=null===(r=i[e])||void 0===r?void 0:r.cells[n])||void 0===o?void 0:o.element).filter(vs).orThunk((function(){return function(t){return q(t,(function(t){return q(t.cells,(function(t){var e=t.element;return Be(vs(e),e)}))}))}(i)}))},ws=function(t,e,n){var r=_s(t,e,n);return ys(t,r)},xs=function(t){return L(t,(function(t,e){return D(t,(function(t){return t.row===e.row}))?t:t.concat([e])}),[]).sort((function(t,e){return t.row-e.row}))},Os=function(t,e){return function(n,r,o,i,a){var u=xs(r),c=P(u,(function(t){return t.row})),s=ts(n,c,t,e,o,i.replaceOrInit,a);return ws(s,r[0].row,r[0].column)}},Ss=Os("thead",!0),Cs=Os("tbody",!1),Es=Os("tfoot",!1),ks=function(t,e,n){var r=function(t,e){return sn(t,(function(){return e}))}(t,n.section),o=kn.generate(r);return yc(o,e,!0)},Ts=function(t,e,n,r){return function(t,e,n,r){var o=kn.generate(e),i=r.getWidths(o,r);Li(o,i,r)}(0,e,0,r.sizing)},Ms=function(t,e,n,r){return function(t,e,n,r,o){var i=kn.generate(e),a=r.getWidths(i,r),u=r.pixelWidth(),c=o.calcRedestributedWidths(a,u,n.pixelDelta,r.isRelative),s=c.newSizes,l=c.delta;Li(i,s,r),r.adjustTableWidth(l)}(0,e,n,r.sizing,r.resize)},Ds=function(t,e){return D(e,(function(t){return 0===t.column&&t.isLocked}))},As=function(t,e){return D(e,(function(e){return e.column+e.colspan>=t.grid.columns&&e.isLocked}))},Ps=function(t,e){var n=Br(t),r=ns(e);return L(r,(function(t,e){return t+n[e.column].map(zr).getOr(0)}),0)},Rs=function(t){return function(e,n){return Cc(e,n).filter((function(n){return!(t?Ds:As)(e,n)})).map((function(t){return{details:t,pixelDelta:Ps(e,t)}}))}},Is=function(t){return function(e,n){return Sc(e,n).filter((function(n){return!(t?Ds:As)(e,n.cells)}))}},zs=ss("th"),js=ss("td"),Ls=Oc((function(t,e,n,r){var o=e[0].row,i=xs(e),a=j(i,(function(t,e){return{grid:Gc(t.grid,o,e.row+t.delta,n,r.getOrInit),delta:t.delta+1}}),{grid:t,delta:0}).grid;return ws(a,o,e[0].column)}),Cc,d,d,cs),Bs=Oc((function(t,e,n,r){var o=xs(e),i=o[o.length-1],a=i.row+i.rowspan,u=j(o,(function(t,e){return Gc(t,a,e.row,n,r.getOrInit)}),t);return ws(u,a,e[0].column)}),Cc,d,d,cs),Fs=Oc((function(t,e,n,r){var o=e.details,i=ns(o),a=i[0].column,u=j(i,(function(t,e){return{grid:Kc(t.grid,a,e.column+t.delta,n,r.getOrInit),delta:t.delta+1}}),{grid:t,delta:0}).grid;return ws(u,o[0].row,a)}),Rs(!0),Ms,d,cs),Ns=Oc((function(t,e,n,r){var o=e.details,i=o[o.length-1],a=i.column+i.colspan,u=ns(o),c=j(u,(function(t,e){return Kc(t,a,e.column,n,r.getOrInit)}),t);return ws(c,o[0].row,a)}),Rs(!1),Ms,d,cs),Hs=Oc((function(t,e,n,r){var o=ns(e.details),i=function(t,e){return H(t,(function(t){var n=t.cells,r=j(e,(function(t,e){return e>=0&&e<t.length?t.slice(0,e).concat(t.slice(e+1)):t}),n);return r.length>0?[Gt(t.element,r,t.section,t.isNew)]:[]}))}(t,P(o,(function(t){return t.column}))),a=i.length>0?i[0].cells.length-1:0;return ws(i,o[0].row,Math.min(o[0].column,a))}),(function(t,e){return Ec(t,e).map((function(e){return{details:e,pixelDelta:-Ps(t,e)}}))}),Ms,bs,cs),Vs=Oc((function(t,e,n,r){var o=xs(e),i=function(t,e,n){var r=yn(t),o=r.rows;return r.cols.concat(o.slice(0,e)).concat(o.slice(n+1))}(t,o[0].row,o[o.length-1].row),a=i.length>0?i.length-1:0;return ws(i,Math.min(e[0].row,a),e[0].column)}),Cc,d,bs,cs),Us=Oc((function(t,e,n,r){var o=ns(e),i=P(o,(function(t){return t.column})),a=Zc(t,i,!0,n,r.replaceOrInit);return ws(a,e[0].row,e[0].column)}),Ec,d,d,zs),Ws=Oc((function(t,e,n,r){var o=ns(e),i=P(o,(function(t){return t.column})),a=Zc(t,i,!1,n,r.replaceOrInit);return ws(a,e[0].row,e[0].column)}),Ec,d,d,js),$s=Oc(Ss,Ec,d,d,zs),Gs=Oc(Cs,Ec,d,d,js),Ks=Oc(Es,Ec,d,d,js),qs=Oc((function(t,e,n,r){var o=es(t,e,n,r.replaceOrInit);return ws(o,e[0].row,e[0].column)}),Ec,d,d,zs),Xs=Oc((function(t,e,n,r){var o=es(t,e,n,r.replaceOrInit);return ws(o,e[0].row,e[0].column)}),Ec,d,d,js),Ys=Oc((function(t,e,n,r){var o=e.cells;gs(o);var i=function(t,e,n,r){var o=yn(t).rows;if(0===o.length)return t;for(var i=e.startRow;i<=e.finishRow;i++)for(var a=e.startCol;a<=e.finishCol;a++){var u=o[i],c=gn(u,a).isLocked;pn(u,a,$t(r(),!1,c))}return t}(t,e.bounds,0,r.merge(o));return ys(i,C.from(o[0]))}),Tc,Ts,d,ls),Js=Oc((function(t,e,n,r){var o=j(e,(function(t,e){return Dc(t,e,n,r.unmerge(e))}),t);return ys(o,C.from(e[0]))}),Mc,Ts,d,ls),Qs=Oc((function(t,e,n,r){var o=function(t,e){var n=kn.fromTable(t);return yc(n,e,!0)}(e.clipboard,e.generators),i=function(t,e){return{row:t,column:e}}(e.row,e.column);return Uc(i,t,o,e.generators,n).fold((function(){return ys(t,C.some(e.element))}),(function(t){return ws(t,e.row,e.column)}))}),(function(t,e){return nn(e.element).bind((function(n){return wc(t,n).map((function(t){return X(X({},t),{generators:e.generators,clipboard:e.clipboard})}))}))}),Ts,d,cs),Zs=Oc((function(t,e,n,r){var o=yn(t).rows,i=e.cells[0].column,a=o[e.cells[0].row],u=ks(e.clipboard,e.generators,a),c=Wc(i,t,u,e.generators,n);return ws(c,e.cells[0].row,e.cells[0].column)}),Is(!0),d,d,cs),tl=Oc((function(t,e,n,r){var o=yn(t).rows,i=e.cells[e.cells.length-1].column+e.cells[e.cells.length-1].colspan,a=o[e.cells[0].row],u=ks(e.clipboard,e.generators,a),c=Wc(i,t,u,e.generators,n);return ws(c,e.cells[0].row,e.cells[0].column)}),Is(!1),d,d,cs),el=Oc((function(t,e,n,r){var o=yn(t).rows,i=e.cells[0].row,a=o[i],u=ks(e.clipboard,e.generators,a),c=$c(i,t,u,e.generators,n);return ws(c,e.cells[0].row,e.cells[0].column)}),Sc,d,d,cs),nl=Oc((function(t,e,n,r){var o=yn(t).rows,i=e.cells[e.cells.length-1].row+e.cells[e.cells.length-1].rowspan,a=o[e.cells[0].row],u=ks(e.clipboard,e.generators,a),c=$c(i,t,u,e.generators,n);return ws(c,e.cells[0].row,e.cells[0].column)}),Sc,d,d,cs),rl=function(t,e){var n=kn.fromTable(t);return Cc(n,e).bind((function(t){var e=t[t.length-1],r=t[0].column,o=e.column+e.colspan,i=N(P(n.all,(function(t){return z(t.cells,(function(t){return t.column>=r&&t.column<o}))})));return nc(i)})).getOr("")},ol=function(t,e){var n=kn.fromTable(t);return Cc(n,e).bind(nc).getOr("")},il=function(t,e){var n=kn.fromTable(t);return Cc(n,e).bind((function(t){var e=t[t.length-1],r=t[0].row,o=e.row+e.rowspan;return function(t){var e=P(t,(function(t){return ec(t).type})),n=M(e,"header"),r=M(e,"footer");if(n||r){var o=M(e,"body");return!n||o||r?n||o||!r?C.none():C.some("footer"):C.some("header")}return C.some("body")}(n.all.slice(r,o))})).getOr("")},al=function(t,e,n){var r=function(t){return"table"===Kt(pi(t))},o=Iu(t),i=Ru(t)?d:Ju,a=function(e){switch(Du(t)){case"section":return sc();case"sectionCells":return lc();case"cells":return fc();default:return cc(e,"section")}},u=function(n,r){return r.cursor.fold((function(){var r=rn(n);return G(r).filter(ge).map((function(r){e.clear(n);var o=t.dom.createRng();return o.selectNode(r.dom),t.selection.setRng(o),Me(r,"data-mce-selected","1"),o}))}),(function(r){var o=Xu(Yu,r),i=t.dom.createRng();return i.setStart(o.element.dom,o.offset),i.setEnd(o.element.dom,o.offset),t.selection.setRng(i),e.clear(n),C.some(i)}))},c=function(e,n,r,i,c){return function(s,l,f){void 0===f&&(f=!1),yi(s);var d=i(),m=xt.fromDom(t.getDoc()),p=fi(r,m,o),h={sizing:Lu(t,s),resize:Ru(t)?$i():Gi(),section:a(s)};return n(s)?e(d,s,l,p,h).bind((function(e){R(e.newRows,(function(e){ou(t,e.dom)})),R(e.newCells,(function(e){iu(t,e.dom)}));var n=u(s,e);return ge(s)&&(yi(s),f||au(t,s.dom,c)),n.map((function(t){return{rng:t,effect:c}}))})):C.none()}};return{deleteRow:c(Vs,(function(e){return!1===r(t)||sa(e).rows>1}),d,n,cu),deleteColumn:c(Hs,(function(e){return!1===r(t)||sa(e).columns>1}),d,n,cu),insertRowsBefore:c(Ls,w,d,n,cu),insertRowsAfter:c(Bs,w,d,n,cu),insertColumnsBefore:c(Fs,w,i,n,cu),insertColumnsAfter:c(Ns,w,i,n,cu),mergeCells:c(Ys,w,d,n,cu),unmergeCells:c(Js,w,d,n,cu),pasteColsBefore:c(Zs,w,d,n,cu),pasteColsAfter:c(tl,w,d,n,cu),pasteRowsBefore:c(el,w,d,n,cu),pasteRowsAfter:c(nl,w,d,n,cu),pasteCells:c(Qs,w,d,n,su),makeCellsHeader:c(qs,w,d,n,cu),unmakeCellsHeader:c(Xs,w,d,n,cu),makeColumnsHeader:c(Us,w,d,n,cu),unmakeColumnsHeader:c(Ws,w,d,n,cu),makeRowsHeader:c($s,w,d,n,cu),makeRowsBody:c(Gs,w,d,n,cu),makeRowsFooter:c(Ks,w,d,n,cu),getTableRowType:il,getTableCellType:ol,getTableColType:rl}},ul={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},cl=function(t){var e=xt.fromTag("colgroup");return A(t,(function(){return Hn(e,xt.fromTag("col"))})),e},sl=function(t,e,n,r){return A(t,(function(t){return function(t,e,n,r){for(var o=xt.fromTag("tr"),i=0;i<t;i++){var a=r<e||i<n?xt.fromTag("th"):xt.fromTag("td");i<n&&Me(a,"scope","row"),r<e&&Me(a,"scope","col"),Hn(a,xt.fromTag("br")),Hn(o,a)}return o}(e,n,r,t)}))},ll=function(t,e){t.selection.select(e.dom,!0),t.selection.collapse(!0)},fl=function(t,e,n,o,i){var a=yu(t),u={styles:a,attributes:bu(t),colGroups:Mu(t)};return t.undoManager.ignore((function(){var r=function(t,e,n,r,o,i){void 0===i&&(i=ul);var a=xt.fromTag("table"),u="cells"!==o;Ve(a,i.styles),De(a,i.attributes),i.colGroups&&Hn(a,cl(e));var c=Math.min(t,n);if(u&&n>0){var s=xt.fromTag("thead");Hn(a,s);var l=sl(n,e,"sectionCells"===o?c:0,r);Wn(s,l)}var f=xt.fromTag("tbody");Hn(a,f);var d=sl(u?t-c:t,e,u?0:n,r);return Wn(f,d),a}(n,e,i,o,Du(t),u);Me(r,"data-mce-id","__mce");var a=function(t){var e=xt.fromTag("div"),n=xt.fromDom(t.dom.cloneNode(!0));return Hn(e,n),function(t){return t.dom.innerHTML}(e)}(r);t.insertContent(a),t.addVisual()})),Ee(pi(t),'table[data-mce-id="__mce"]').map((function(e){return ku(t)?Nu(e):Tu(t)?Hu(e):(Eu(t)||function(t){return r(t)&&-1!==t.indexOf("%")}(a.width))&&Fu(e),yi(e),Re(e,"data-mce-id"),function(t,e){R(we(e,"tr"),(function(e){ou(t,e.dom),R(we(e,"th,td"),(function(e){iu(t,e.dom)}))}))}(t,e),function(t,e){Ee(e,"td,th").each(g(ll,t))}(t,e),e.dom})).getOr(null)},dl=function(t,e,n,r,o){void 0===r&&(r={});var i=function(t){return f(t)&&t>0};if(i(e)&&i(n)){var a=r.headerRows||0,u=r.headerColumns||0;return fl(t,n,e,u,a)}return null},ml=function(t){return function(){return t().fold((function(){return[]}),(function(t){return P(t,(function(t){return t.dom}))}))}},pl=function(t){return function(e){var n=e.length>0?C.some(mi(e)):C.none();t(n)}},hl=function(t){return function(e,n,r){void 0===r&&(r={});var o=dl(t,n,e,r);return t.undoManager.add(),o}},gl=function(t,e,n){var r=Ke(t,e,1);1===n||r<=1?Re(t,e):Me(t,e,Math.min(n,r))},vl=function(t,e){var n=kn.fromTable(t);return Ec(n,e).map((function(t){var e=t[t.length-1],r=t[0].column,o=e.column+e.colspan,i=function(t,e,n){if(kn.hasColumns(t)){var r=z(kn.justColumns(t),(function(t){return t.column>=e&&t.column<n})),o=P(r,(function(t){var r=Sr(t.element);return gl(r,"span",n-e),r})),i=xt.fromTag("colgroup");return Wn(i,o),[i]}return[]}(n,r,o),a=function(t,e,n){return P(t.all,(function(t){var r=z(t.cells,(function(t){return t.column>=e&&t.column<n})),o=P(r,(function(t){var r=Sr(t.element);return gl(r,"colspan",n-e),r})),i=xt.fromTag("tr");return Wn(i,o),i}))}(n,r,o);return Y(Y([],i,!0),a,!0)}))},bl=function(t,e,n){var r=kn.fromTable(t);return Cc(r,e).bind((function(t){var e=yc(r,n,!1),o=yn(e).rows.slice(t[0].row,t[t.length-1].row+t[t.length-1].rowspan),i=H(o,(function(t){var e=z(t.cells,(function(t){return!t.isLocked}));return e.length>0?[X(X({},t),{cells:e})]:[]})),a=_c(i);return Be(a.length>0,a)})).map((function(t){return function(t){return P(t,(function(t){var e=Or(t.element);return R(t.cells,(function(t){var n=Sr(t.element);mc(n,"colspan",t.colspan,1),mc(n,"rowspan",t.rowspan,1),Hn(e,n)})),e}))}(t)}))},yl=tinymce.util.Tools.resolve("tinymce.util.Tools"),_l=function(t,e,n){return function(e,r){for(var o=0;o<r.length;o++){var i=t.getStyle(r[o],n);if(void 0===e&&(e=i),e!==i)return""}return e}(void 0,t.select("td,th",e))},wl=function(t,e,n){n&&t.formatter.apply("align"+n,{},e)},xl=function(t,e){yl.each("left center right".split(" "),(function(n){t.formatter.remove("align"+n,{},e)}))},Ol=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],Sl=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Cl=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,El=function(t){return(e=t,n="#",ot(e,n)?function(t,e){return t.substring(e)}(e,n.length):e).toUpperCase();var e,n},kl=function(t){return function(t){return Sl.test(t)||Cl.test(t)}(t)?C.some({value:El(t)}):C.none()},Tl=function(t){var e=t.toString(16);return(1===e.length?"0"+e:e).toUpperCase()},Ml=function(t){return function(t){return{value:t}}(Tl(t.red)+Tl(t.green)+Tl(t.blue))},Dl=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,Al=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,Pl=function(t,e,n,r){return{red:t,green:e,blue:n,alpha:r}},Rl=function(t,e,n,r){var o=parseInt(t,10),i=parseInt(e,10),a=parseInt(n,10),u=parseFloat(r);return Pl(o,i,a,u)},Il=function(t){return kl(t).orThunk((function(){return function(t){if("transparent"===t)return C.some(Pl(0,0,0,0));var e=Dl.exec(t);if(null!==e)return C.some(Rl(e[1],e[2],e[3],"1"));var n=Al.exec(t);return null!==n?C.some(Rl(n[1],n[2],n[3],n[4])):C.none()}(t).map(Ml)})).getOrThunk((function(){var e=document.createElement("canvas");e.height=1,e.width=1;var n=e.getContext("2d");n.clearRect(0,0,e.width,e.height),n.fillStyle="#FFFFFF",n.fillStyle=t,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,o=r[0],i=r[1],a=r[2],u=r[3];return Ml(Pl(o,i,a,u))}))},zl=function(t){var e=t;return{get:function(){return e},set:function(t){e=t}}},jl=function(t){var e=zl(C.none()),n=function(){return e.get().each(t)};return{clear:function(){n(),e.set(C.none())},isSet:function(){return e.get().isSome()},get:function(){return e.get()},set:function(t){n(),e.set(C.some(t))}}},Ll=function(){var t=jl(d);return X(X({},t),{on:function(e){return t.get().each(e)}})},Bl=function(t,e,n,r){return function(o){var i=jl((function(t){return t.unbind()})),a=!ut(r),u=function(){var u=Mi(e),c=function(e){return t.formatter.match(n,{value:r},e.dom,a)};a?(o.setActive(!D(u,c)),i.set(t.formatter.formatChanged(n,(function(t){return o.setActive(!t)}),!0))):(o.setActive(V(u,c)),i.set(t.formatter.formatChanged(n,o.setActive,!1,{value:r})))};return t.initialized?u():t.on("init",u),i.clear}},Fl=function(t){return Ht(t,"menu")},Nl=function(t){return P(t,(function(t){var e=t.text||t.title;return Fl(t)?{text:e,items:Nl(t.menu)}:{text:e,value:t.value}}))},Hl=function(t,e,n,r,o){return P(n,(function(n){var i=n.text||n.title;return Fl(n)?{type:"nestedmenuitem",text:i,getSubmenuItems:function(){return Hl(t,e,n.menu,r,o)}}:{text:i,type:"togglemenuitem",onAction:function(){return o(n.value)},onSetup:Bl(t,e,r,n.value)}}))},Vl=function(t,e){return function(n){var r;t.execCommand("mceTableApplyCellStyle",!1,((r={})[e]=n,r))}},Ul=function(t){return H(t,(function(t){return Fl(t)?[X(X({},t),{menu:Ul(t.menu)})]:ut(t.value)?[t]:[]}))},Wl=function(t,e,n,r,o){return function(i){return i(Hl(t,e,n,r,o))}},$l=function(t,e,n){var r=P(e,(function(t){return{text:t.title,value:"#"+Il(t.value).value,type:"choiceitem"}}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:r.length>0?r:void 0,allowCustomColors:!1},onAction:function(e){var r,o="remove"===e.value?"":e.value;t.execCommand("mceTableApplyCellStyle",!1,((r={})[n]=o,r))}}]},Gl=function(t){return function(){var e="header"===t.queryCommandValue("mceTableRowType")?"body":"header";t.execCommand("mceTableRowType",!1,{type:e})}},Kl=function(t){return function(){var e="th"===t.queryCommandValue("mceTableColType")?"td":"th";t.execCommand("mceTableColType",!1,{type:e})}},ql=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:Ol}],Xl=function(t){return ql.concat(function(t){var e=Nl(Su(t));return e.length>0?C.some({name:"class",type:"listbox",label:"Class",items:e}):C.none()}(t).toArray())},Yl=function(t,e){var n=[{name:"borderstyle",type:"listbox",label:"Border style",items:[{text:"Select...",value:""}].concat(Nl(vu(t)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}];return{title:"Advanced",name:"advanced",items:"cell"===e?[{name:"borderwidth",type:"input",label:"Border width"}].concat(n):n}},Jl=function(t){return function(e,n){var r=e.dom;return{setAttrib:function(e,o){t&&!o||r.setAttrib(n,e,o)},setStyle:function(e,o){t&&!o||r.setStyle(n,e,o)},setFormat:function(r,o){t&&!o||(""===o?e.formatter.remove(r,{value:null},n,!0):e.formatter.apply(r,{value:o},n))}}}},Ql={normal:Jl(!1),ifTruthy:Jl(!0)},Zl=function(t){return function(e){return ot(e,"rgb")?t.toHex(e):e}},tf=function(t,e){var n=xt.fromDom(e);return{borderwidth:$e(n,"border-width").getOr(""),borderstyle:$e(n,"border-style").getOr(""),bordercolor:$e(n,"border-color").map(Zl(t)).getOr(""),backgroundcolor:$e(n,"background-color").map(Zl(t)).getOr("")}},ef=function(t){var e=t[0],n=t.slice(1);return R(n,(function(t){R(Dt(e),(function(n){Pt(t,(function(t,r){var o=e[n];""!==o&&n===r&&o!==t&&(e[n]="")}))}))})),e},nf=function(t,e,n,r){return B(t,(function(t){return!c(n.formatter.matchNode(r,e+t))})).getOr("")},rf=g(nf,["left","center","right"],"align"),of=g(nf,["top","middle","bottom"],"valign"),af=function(t){return an(xt.fromDom(t)).map((function(e){var n={selection:mi(t.cells)};return il(e,n)})).getOr("")},uf=function(t,e){var n=kn.fromTable(t),r=kn.justCells(n),o=z(r,(function(t){return D(e,(function(e){return Et(t.element,e)}))}));return P(o,(function(t){return{element:t.element.dom,column:kn.getColumnAt(n,t.column).map((function(t){return t.element.dom}))}}))},cf=function(t,e,n){var r=1===e.length;R(e,(function(e){var o=e.element,i=r?Ql.normal(t,o):Ql.ifTruthy(t,o);!function(t,e,n){t.setAttrib("scope",n.scope),t.setAttrib("class",n.class),t.setStyle("height",bi(n.height)),e.setStyle("width",bi(n.width))}(i,e.column.map((function(e){return r?Ql.normal(t,e):Ql.ifTruthy(t,e)})).getOr(i),n),_u(t)&&function(t,e){t.setFormat("tablecellbackgroundcolor",e.backgroundcolor),t.setFormat("tablecellbordercolor",e.bordercolor),t.setFormat("tablecellborderstyle",e.borderstyle),t.setFormat("tablecellborderwidth",bi(e.borderwidth))}(i,n),r&&(xl(t,o),function(t,e){yl.each("top middle bottom".split(" "),(function(n){t.formatter.remove("valign"+n,{},e)}))}(t,o)),n.halign&&wl(t,o,n.halign),n.valign&&function(t,e,n){n&&t.formatter.apply("valign"+n,{},e)}(t,o,n.valign)}))},sf=function(t,e,n,r){var o=r.getData();r.close(),t.undoManager.transact((function(){!function(t,e,n,r){var o=zt(r,(function(t,e){return n[e]!==t}));Bt(o)>0&&e.length>=1&&an(e[0]).each((function(n){var i=uf(n,e),a=Bt(zt(o,(function(t,e){return"scope"!==e&&"celltype"!==e})))>0,u=Nt(o,"celltype");(a||Nt(o,"scope"))&&cf(t,i,r),u&&function(t,e){t.execCommand("mceTableCellType",!1,{type:e.celltype,no_events:!0})}(t,r),au(t,n.dom,{structure:u,style:a})}))}(t,e,n,o),t.focus()}))},lf=function(t,e){var n=an(e[0]).map((function(n){return P(uf(n,e),(function(e){return function(t,e,n,r){var o,i=t.dom,a=r.getOr(e),u=function(t,e){return i.getStyle(t,e)||i.getAttrib(t,e)};return X({width:u(a,"width"),height:u(e,"height"),scope:i.getAttrib(e,"scope"),celltype:(o=e,o.nodeName.toLowerCase()),class:i.getAttrib(e,"class",""),halign:rf(t,e),valign:of(t,e)},n?tf(i,e):{})}(t,e.element,_u(t),e.column)}))}));return ef(n.getOrDie())},ff=function(t,e){var n=Mi(e);if(0!==n.length){var r=lf(t,n),o={type:"tabpanel",tabs:[{title:"General",name:"general",items:Xl(t)},Yl(t,"cell")]},i={type:"panel",items:[{type:"grid",columns:2,items:Xl(t)}]};t.windowManager.open({title:"Cell Properties",size:"normal",body:_u(t)?o:i,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:g(sf,t,n,r)})}},df=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],mf=function(t){return df.concat(function(t){var e=Nl(function(t){return t.getParam("table_row_class_list",[],"array")}(t));return e.length>0?C.some({name:"class",type:"listbox",label:"Class",items:e}):C.none()}(t).toArray())},pf=function(t,e,n,r){var o=1===e.length;R(e,(function(e){var i=o?Ql.normal(t,e):Ql.ifTruthy(t,e);!function(t,e){t.setAttrib("class",e.class),t.setStyle("height",bi(e.height))}(i,n),wu(t)&&function(t,e){t.setStyle("background-color",e.backgroundcolor),t.setStyle("border-color",e.bordercolor),t.setStyle("border-style",e.borderstyle)}(i,n),n.align!==r.align&&(xl(t,e),wl(t,e,n.align))}))},hf=function(t,e,n,r){var o=r.getData();r.close(),t.undoManager.transact((function(){!function(t,e,n,r){var o=zt(r,(function(t,e){return n[e]!==t}));if(Bt(o)>0){var i=Nt(o,"type"),a=!i||Bt(o)>1;a&&pf(t,e,r,n),i&&function(t,e){t.execCommand("mceTableRowType",!1,{type:e.type,no_events:!0})}(t,r),an(xt.fromDom(e[0])).each((function(e){return au(t,e.dom,{structure:i,style:a})}))}}(t,e,n,o),t.focus()}))},gf=function(t){var e,n,r,o,i=(e=_i(t),n=Si.selected,r=Ti(e),o=r.bind((function(t){return an(t)})).map((function(t){return un(t)})),Le(r,o,(function(t,e){return z(e,(function(e){return D(mi(e.dom.cells),(function(e){return"1"===Ae(e,n)||Et(e,t)}))}))})).getOr([]));if(0!==i.length){var a=P(i,(function(e){return function(t,e,n){var r=t.dom;return X({height:r.getStyle(e,"height")||r.getAttrib(e,"height"),class:r.getAttrib(e,"class",""),type:af(e),align:rf(t,e)},n?tf(r,e):{})}(t,e.dom,wu(t))})),u=ef(a),c={type:"tabpanel",tabs:[{title:"General",name:"general",items:mf(t)},Yl(t,"row")]},s={type:"panel",items:[{type:"grid",columns:2,items:mf(t)}]};t.windowManager.open({title:"Row Properties",size:"normal",body:wu(t)?c:s,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:u,onSubmit:g(hf,t,P(i,(function(t){return t.dom})),u)})}},vf=function(t,e,n){var r=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],o=function(t){return t.getParam("table_appearance_options",!0,"boolean")}(t)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],i=e.length>0?[{type:"listbox",name:"class",label:"Class",items:e}]:[];return r.concat([{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}]).concat(o).concat([{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}]).concat(i)},bf=function(t,e,n,o){if("TD"===e.tagName||"TH"===e.tagName)r(n)?t.setStyle(e,n,o):t.setStyle(e,n);else if(e.children)for(var i=0;i<e.children.length;i++)bf(t,e.children[i],n,o)},yf=function(t,e,n,r){var o=t.dom,i=r.getData(),a=zt(i,(function(t,e){return n[e]!==t}));r.close(),""===i.class&&delete i.class,t.undoManager.transact((function(){if(!e){var n=parseInt(i.cols,10)||1,r=parseInt(i.rows,10)||1;e=fl(t,n,r,0,0)}if(Bt(a)>0){!function(t,e,n){var r=t.dom,o={},i={};if(o.class=n.class,i.height=bi(n.height),r.getAttrib(e,"width")&&!Ou(t)?o.width=function(t){return t?t.replace(/px$/,""):""}(n.width):i.width=bi(n.width),Ou(t)?(i["border-width"]=bi(n.border),i["border-spacing"]=bi(n.cellspacing)):(o.border=n.border,o.cellpadding=n.cellpadding,o.cellspacing=n.cellspacing),Ou(t)&&e.children)for(var a=0;a<e.children.length;a++)bf(r,e.children[a],{"border-width":bi(n.border),padding:bi(n.cellpadding)}),xu(t)&&bf(r,e.children[a],{"border-color":n.bordercolor});xu(t)&&(i["background-color"]=n.backgroundcolor,i["border-color"]=n.bordercolor,i["border-style"]=n.borderstyle),o.style=r.serializeStyle(X(X({},yu(t)),i)),r.setAttribs(e,X(X({},bu(t)),o))}(t,e,i);var u=o.select("caption",e)[0];(u&&!i.caption||!u&&i.caption)&&t.execCommand("mceTableToggleCaption"),""===i.align?xl(t,e):wl(t,e,i.align)}if(t.focus(),t.addVisual(),Bt(a)>0){var c=Nt(a,"caption"),s=!c||Bt(a)>1;au(t,e,{structure:c,style:s})}}))},_f=function(t,e){var n,r=t.dom,o=function(t,e){var n,r,o,i,a=yu(t),u=bu(t),c=e?(n=t.dom,{borderstyle:Ft(a,"border-style").getOr(""),bordercolor:Zl(n)(Ft(a,"border-color").getOr("")),backgroundcolor:Zl(n)(Ft(a,"background-color").getOr(""))}):{};return X(X(X(X(X(X({},{height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""}),a),u),c),(i=a["border-width"],Ou(t)&&i?{border:i}:Ft(u,"border").fold((function(){return{}}),(function(t){return{border:t}})))),(r=Ft(a,"border-spacing").or(Ft(u,"cellspacing")).fold((function(){return{}}),(function(t){return{cellspacing:t}})),o=Ft(a,"border-padding").or(Ft(u,"cellpadding")).fold((function(){return{}}),(function(t){return{cellpadding:t}})),X(X({},r),o)))}(t,xu(t));!1===e?(n=r.getParent(t.selection.getStart(),"table",t.getBody()))?o=function(t,e,n){var r=t.dom,o=Ou(t)?r.getStyle(e,"border-spacing")||r.getAttrib(e,"cellspacing"):r.getAttrib(e,"cellspacing")||r.getStyle(e,"border-spacing"),i=Ou(t)?_l(r,e,"padding")||r.getAttrib(e,"cellpadding"):r.getAttrib(e,"cellpadding")||_l(r,e,"padding");return X({width:r.getStyle(e,"width")||r.getAttrib(e,"width"),height:r.getStyle(e,"height")||r.getAttrib(e,"height"),cellspacing:o,cellpadding:i,border:function(e,n){var r=$e(xt.fromDom(n),"border-width");return Ou(t)&&r.isSome()?r.getOr(""):e.getAttrib(n,"border")||_l(t.dom,n,"border-width")||_l(t.dom,n,"border")}(r,e),caption:!!r.select("caption",e)[0],class:r.getAttrib(e,"class",""),align:rf(t,e)},n?tf(r,e):{})}(t,n,xu(t)):xu(t)&&(o.borderstyle="",o.bordercolor="",o.backgroundcolor=""):(o.cols="1",o.rows="1",xu(t)&&(o.borderstyle="",o.bordercolor="",o.backgroundcolor=""));var i=Nl(Cu(t));i.length>0&&o.class&&(o.class=o.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:vf(t,i,e)},u=xu(t)?{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},Yl(t,"table")]}:{type:"panel",items:[a]};t.windowManager.open({title:"Table Properties",size:"normal",body:u,onSubmit:g(yf,t,n,o),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:o})},wf=function(t){return ki(_i(t),vi(t))},xf=function(t,e,n,i,a){var u=vi(t),c=function(t){return an(t,u)},s=function(e){return function(t){return Ti(_i(t),vi(t))}(t).bind((function(t){return c(t).map((function(n){return e(n,t)}))}))},l=function(e){t.focus()},f=function(t,e){return void 0===e&&(e=!1),s((function(n,r){var o=Ci(i,n,r);t(n,o,e).each(l)}))},m=function(){return s((function(e,n){var r=Ci(i,e,n),o=fi(d,xt.fromDom(t.getDoc()),C.none());return bl(e,r,o)}))},p=function(){return s((function(t,e){var n=Ci(i,t,e);return vl(t,n)}))},h=function(e,n){return n().each((function(n){var r=P(n,(function(t){return Sr(t)}));s((function(n,o){var a=di(xt.fromDom(t.getDoc())),u=function(t,e,n,r){return{selection:wi(t),clipboard:n,generators:r}}(i,0,r,a);e(n,u).each(l)}))}))},v=function(t){return function(e,n){return Ft(n,"type").each((function(e){f(t(e),n.no_events)}))}};Pt({mceTableSplitCells:function(){return f(e.unmergeCells)},mceTableMergeCells:function(){return f(e.mergeCells)},mceTableInsertRowBefore:function(){return f(e.insertRowsBefore)},mceTableInsertRowAfter:function(){return f(e.insertRowsAfter)},mceTableInsertColBefore:function(){return f(e.insertColumnsBefore)},mceTableInsertColAfter:function(){return f(e.insertColumnsAfter)},mceTableDeleteCol:function(){return f(e.deleteColumn)},mceTableDeleteRow:function(){return f(e.deleteRow)},mceTableCutCol:function(){return p().each((function(t){a.setColumns(t),f(e.deleteColumn)}))},mceTableCutRow:function(){return m().each((function(t){a.setRows(t),f(e.deleteRow)}))},mceTableCopyCol:function(){return p().each((function(t){return a.setColumns(t)}))},mceTableCopyRow:function(){return m().each((function(t){return a.setRows(t)}))},mceTablePasteColBefore:function(){return h(e.pasteColsBefore,a.getColumns)},mceTablePasteColAfter:function(){return h(e.pasteColsAfter,a.getColumns)},mceTablePasteRowBefore:function(){return h(e.pasteRowsBefore,a.getRows)},mceTablePasteRowAfter:function(){return h(e.pasteRowsAfter,a.getRows)},mceTableDelete:function(){return wf(t).each((function(e){an(e,u).filter(y(u)).each((function(e){var n=xt.fromText("");if(Fn(e,n),Gn(e),t.dom.isEmpty(t.getBody()))t.setContent(""),t.selection.setCursorLocation();else{var r=t.dom.createRng();r.setStart(n.dom,0),r.setEnd(n.dom,0),t.selection.setRng(r),t.nodeChanged()}}))}))},mceTableCellToggleClass:function(e,n){s((function(e){var r=Mi(i),o=V(r,(function(e){return t.formatter.match("tablecellclass",{value:n},e.dom)}))?t.formatter.remove:t.formatter.apply;R(r,(function(t){return o("tablecellclass",{value:n},t.dom)})),au(t,e.dom,uu)}))},mceTableToggleClass:function(e,n){s((function(e){t.formatter.toggle("tableclass",{value:n},e.dom),au(t,e.dom,uu)}))},mceTableToggleCaption:function(){wf(t).each((function(e){an(e,u).each((function(n){Ce(n,"caption").fold((function(){var e=xt.fromTag("caption");Hn(e,xt.fromText("Caption")),function(t,e,n){se(t,n).fold((function(){Hn(t,e)}),(function(t){Bn(t,e)}))}(n,e,0),t.selection.setCursorLocation(e.dom,0)}),(function(r){ee("caption")(e)&&Ct("td",n).each((function(e){return t.selection.setCursorLocation(e.dom,0)})),Gn(r)})),au(t,n.dom,cu)}))}))},mceTableSizingMode:function(e,n){return function(e){return wf(t).each((function(n){Tu(t)||ku(t)||Eu(t)||an(n,u).each((function(n){"relative"!==e||aa(n)?"fixed"!==e||ua(n)?"responsive"!==e||ca(n)||Hu(n):Nu(n):Fu(n),yi(n),au(t,n.dom,cu)}))}))}(n)},mceTableCellType:v((function(t){return"th"===t?e.makeCellsHeader:e.unmakeCellsHeader})),mceTableColType:v((function(t){return"th"===t?e.makeColumnsHeader:e.unmakeColumnsHeader})),mceTableRowType:v((function(t){switch(t){case"header":return e.makeRowsHeader;case"footer":return e.makeRowsFooter;default:return e.makeRowsBody}}))},(function(e,n){return t.addCommand(n,e)})),Pt({mceTableProps:g(_f,t,!1),mceTableRowProps:g(gf,t),mceTableCellProps:g(ff,t,i)},(function(e,n){return t.addCommand(n,(function(){return e()}))})),t.addCommand("mceInsertTable",(function(e,n){o(n)&&Dt(n).length>0?dl(t,n.rows,n.columns,n.options):_f(t,!0)})),t.addCommand("mceTableApplyCellStyle",(function(e,n){var a=function(t){return"tablecell"+t.toLowerCase().replace("-","")};if(o(n)){var u=Mi(i);if(0!==u.length){var s=zt(n,(function(e,n){return t.formatter.has(a(n))&&r(e)}));(function(t){for(var e in t)if(At.call(t,e))return!1;return!0})(s)||(Pt(s,(function(e,n){R(u,(function(r){Ql.normal(t,r.dom).setFormat(a(n),e)}))})),c(u[0]).each((function(e){return au(t,e.dom,uu)})))}}}))},Of={remove_similar:!0,inherit:!1},Sf=X({selector:"td,th"},Of),Cf={tablecellbackgroundcolor:X({styles:{backgroundColor:"%value"}},Sf),tablecellverticalalign:X({styles:{"vertical-align":"%value"}},Sf),tablecellbordercolor:X({styles:{borderColor:"%value"}},Sf),tablecellclass:X({classes:["%value"]},Sf),tableclass:X({selector:"table",classes:["%value"]},Of),tablecellborderstyle:X({styles:{borderStyle:"%value"}},Sf),tablecellborderwidth:X({styles:{borderWidth:"%value"}},Sf)},Ef=hr([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),kf=X(X({},Ef),{none:function(t){return void 0===t&&(t=void 0),Ef.none(t)}}),Tf=function(t,e,n,r,o){void 0===o&&(o=w);var i=1===r;if(!i&&n<=0)return kf.first(t[0]);if(i&&n>=t.length-1)return kf.last(t[t.length-1]);var a=n+r,u=t[a];return o(u)?kf.middle(e,u):Tf(t,e,a,r,o)},Mf=function(t,e){return an(t,e).bind((function(e){var n=rn(e);return F(n,(function(e){return Et(t,e)})).map((function(t){return{index:t,all:n}}))}))},Df=function(t,e,n,r){return{start:t,soffset:e,finish:n,foffset:r}},Af=hr([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Pf={before:Af.before,on:Af.on,after:Af.after,cata:function(t,e,n,r){return t.fold(e,n,r)},getStart:function(t){return t.fold(p,p,p)}},Rf=hr([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),If={domRange:Rf.domRange,relative:Rf.relative,exact:Rf.exact,exactFromRange:function(t){return Rf.exact(t.start,t.soffset,t.finish,t.foffset)},getWin:function(t){var e,n=function(t){return t.match({domRange:function(t){return xt.fromDom(t.startContainer)},relative:function(t,e){return Pf.getStart(t)},exact:function(t,e,n,r){return t}})}(t);return e=n,xt.fromDom(re(e).dom.defaultView)},range:Df},zf=function(t,e){var n=t.document.createRange();return n.selectNode(e.dom),n},jf=function(t,e){var n=t.document.createRange();return Lf(n,e),n},Lf=function(t,e){return t.selectNodeContents(e.dom)},Bf=function(t,e,n){var r,o=t.document.createRange();return r=o,e.fold((function(t){r.setStartBefore(t.dom)}),(function(t,e){r.setStart(t.dom,e)}),(function(t){r.setStartAfter(t.dom)})),function(t,e){e.fold((function(e){t.setEndBefore(e.dom)}),(function(e,n){t.setEnd(e.dom,n)}),(function(e){t.setEndAfter(e.dom)}))}(o,n),o},Ff=function(t,e,n,r,o){var i=t.document.createRange();return i.setStart(e.dom,n),i.setEnd(r.dom,o),i},Nf=function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:t.width,height:t.height}},Hf=hr([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Vf=function(t,e,n){return e(xt.fromDom(n.startContainer),n.startOffset,xt.fromDom(n.endContainer),n.endOffset)},Uf=function(t,e){return function(t,e){var n=e.ltr();return n.collapsed?e.rtl().filter((function(t){return!1===t.collapsed})).map((function(t){return Hf.rtl(xt.fromDom(t.endContainer),t.endOffset,xt.fromDom(t.startContainer),t.startOffset)})).getOrThunk((function(){return Vf(0,Hf.ltr,n)})):Vf(0,Hf.ltr,n)}(0,function(t,e){return e.match({domRange:function(t){return{ltr:m(t),rtl:C.none}},relative:function(e,n){return{ltr:J((function(){return Bf(t,e,n)})),rtl:J((function(){return C.some(Bf(t,n,e))}))}},exact:function(e,n,r,o){return{ltr:J((function(){return Ff(t,e,n,r,o)})),rtl:J((function(){return C.some(Ff(t,r,o,e,n))}))}}})}(t,e))},Wf=function(t,e){return Uf(t,e).match({ltr:function(e,n,r,o){var i=t.document.createRange();return i.setStart(e.dom,n),i.setEnd(r.dom,o),i},rtl:function(e,n,r,o){var i=t.document.createRange();return i.setStart(r.dom,o),i.setEnd(e.dom,n),i}})};Hf.ltr,Hf.rtl;var $f=function(t,e,n){return e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom},Gf=function(t,e,n,r,o){var i=function(n){var r=t.dom.createRange();return r.setStart(e.dom,n),r.collapse(!0),r},a=Xn(e).length,u=function(t,e,n,r,o){if(0===o)return 0;if(e===r)return o-1;for(var i=r,a=1;a<o;a++){var u=t(a),c=Math.abs(e-u.left);if(n<=u.bottom){if(n<u.top||c>i)return a-1;i=c}}return 0}((function(t){return i(t).getBoundingClientRect()}),n,r,o.right,a);return i(u)},Kf=function(t,e,n,r){return Qt(e)?function(t,e,n,r){var o=t.dom.createRange();o.selectNode(e.dom);var i=o.getClientRects();return q(i,(function(t){return $f(t,n,r)?C.some(t):C.none()})).map((function(o){return Gf(t,e,n,r,o)}))}(t,e,n,r):function(t,e,n,r){var o=t.dom.createRange(),i=ce(e);return q(i,(function(e){return o.selectNode(e.dom),$f(o.getBoundingClientRect(),n,r)?Kf(t,e,n,r):C.none()}))}(t,e,n,r)},qf=function(t,e){return e-t.left<t.right-e},Xf=function(t,e,n){var r=t.dom.createRange();return r.selectNode(e.dom),r.collapse(n),r},Yf=function(t,e,n){var r=t.dom.createRange();r.selectNode(e.dom);var o=r.getBoundingClientRect(),i=qf(o,n);return(!0===i?ei:ni)(e).map((function(e){return Xf(t,e,i)}))},Jf=function(t,e,n){var r=e.dom.getBoundingClientRect(),o=qf(r,n);return C.some(Xf(t,e,o))},Qf=function(t,e,n){var r,o;return C.from(null===(o=(r=t.dom).caretPositionFromPoint)||void 0===o?void 0:o.call(r,e,n)).bind((function(e){if(null===e.offsetNode)return C.none();var n=t.dom.createRange();return n.setStart(e.offsetNode,e.offset),n.collapse(),C.some(n)}))},Zf=function(t,e,n){var r,o;return C.from(null===(o=(r=t.dom).caretRangeFromPoint)||void 0===o?void 0:o.call(r,e,n))},td=function(t,e,n,r){var o=t.dom.createRange();o.selectNode(e.dom);var i=o.getBoundingClientRect();return function(t,e,n,r){var o=t.dom.createRange();o.selectNode(e.dom);var i=o.getBoundingClientRect(),a=Math.max(i.left,Math.min(i.right,n)),u=Math.max(i.top,Math.min(i.bottom,r));return Kf(t,e,a,u)}(t,e,Math.max(i.left,Math.min(i.right,n)),Math.max(i.top,Math.min(i.bottom,r)))},ed=function(t,e,n){return xt.fromPoint(t,e,n).bind((function(r){var o=function(){return function(t,e,n){return(0===ce(e).length?Jf:Yf)(t,e,n)}(t,r,e)};return 0===ce(r).length?o():td(t,r,e,n).orThunk(o)}))},nd=document.caretPositionFromPoint?Qf:document.caretRangeFromPoint?Zf:ed,rd=function(t,e){var n=Kt(t);return"input"===n?Pf.after(t):M(["br","img"],n)?0===e?Pf.before(t):Pf.after(t):Pf.on(t,e)},od=function(t,e){var n=t.fold(Pf.before,rd,Pf.after),r=e.fold(Pf.before,rd,Pf.after);return If.relative(n,r)},id=function(t,e,n,r){var o=rd(t,e),i=rd(n,r);return If.relative(o,i)},ad=function(t,e,n,r){var o=function(t,e,n,r){var o=ne(t).dom.createRange();return o.setStart(t.dom,e),o.setEnd(n.dom,r),o}(t,e,n,r),i=Et(t,n)&&e===r;return o.collapsed&&!i},ud=function(t){return C.from(t.getSelection())},cd=function(t,e){ud(t).each((function(t){t.removeAllRanges(),t.addRange(e)}))},sd=function(t,e,n,r,o){var i=Ff(t,e,n,r,o);cd(t,i)},ld=function(t,e){return Uf(t,e).match({ltr:function(e,n,r,o){sd(t,e,n,r,o)},rtl:function(e,n,r,o){ud(t).each((function(i){if(i.setBaseAndExtent)i.setBaseAndExtent(e.dom,n,r.dom,o);else if(i.extend)try{!function(t,e,n,r,o,i){e.collapse(n.dom,r),e.extend(o.dom,i)}(0,i,e,n,r,o)}catch(i){sd(t,r,o,e,n)}else sd(t,r,o,e,n)}))}})},fd=function(t,e,n,r,o){var i=id(e,n,r,o);ld(t,i)},dd=function(t,e,n){var r=od(e,n);ld(t,r)},md=function(t){var e=If.getWin(t).dom,n=function(t,n,r,o){return Ff(e,t,n,r,o)},r=function(t){return t.match({domRange:function(t){var e=xt.fromDom(t.startContainer),n=xt.fromDom(t.endContainer);return id(e,t.startOffset,n,t.endOffset)},relative:od,exact:id})}(t);return Uf(e,r).match({ltr:n,rtl:n})},pd=function(t){if(t.rangeCount>0){var e=t.getRangeAt(0),n=t.getRangeAt(t.rangeCount-1);return C.some(Df(xt.fromDom(e.startContainer),e.startOffset,xt.fromDom(n.endContainer),n.endOffset))}return C.none()},hd=function(t){if(null===t.anchorNode||null===t.focusNode)return pd(t);var e=xt.fromDom(t.anchorNode),n=xt.fromDom(t.focusNode);return ad(e,t.anchorOffset,n,t.focusOffset)?C.some(Df(e,t.anchorOffset,n,t.focusOffset)):pd(t)},gd=function(t,e,n){void 0===n&&(n=!0);var r=(n?jf:zf)(t,e);cd(t,r)},vd=function(t){return function(t){return ud(t).filter((function(t){return t.rangeCount>0})).bind(hd)}(t).map((function(t){return If.exact(t.start,t.soffset,t.finish,t.foffset)}))},bd=function(t,e){return function(t){var e=t.getClientRects(),n=e.length>0?e[0]:t.getBoundingClientRect();return n.width>0||n.height>0?C.some(n).map(Nf):C.none()}(Wf(t,e))},yd=function(t,e,n){return function(t,e,n){var r=xt.fromDom(t.document);return nd(r,e,n).map((function(t){return Df(xt.fromDom(t.startContainer),t.startOffset,xt.fromDom(t.endContainer),t.endOffset)}))}(t,e,n)},_d=tinymce.util.Tools.resolve("tinymce.util.VK"),wd=function(t,e,n){return Od(t,e,function(t,e,n){return Mf(t,n).fold((function(){return kf.none(t)}),(function(n){return Tf(n.all,t,n.index,1,e)}))}(n,Ba))},xd=function(t,e,n){return Od(t,e,function(t,e,n){return Mf(t,n).fold((function(){return kf.none()}),(function(n){return Tf(n.all,t,n.index,-1,e)}))}(n,Ba))},Od=function(t,e,n){return n.fold(C.none,C.none,(function(t,e){return ei(e).map((function(t){return function(t,e){var n=If.exact(e,0,e,0);return md(n)}(0,t)}))}),(function(n){return t.execCommand("mceTableInsertRowAfter"),wd(t,e,n)}))},Sd=["table","li","dl"],Cd=function(t,e){return{selection:t,kill:e}},Ed=function(t,e,n,r){return{start:Pf.on(t,e),finish:Pf.on(n,r)}},kd=function(t,e){var n=Wf(t,e);return Df(xt.fromDom(n.startContainer),n.startOffset,xt.fromDom(n.endContainer),n.endOffset)},Td=Ed,Md=function(t,e,n,r,o){return Et(n,r)?C.none():sr(n,r,e).bind((function(e){var r=e.boxes.getOr([]);return r.length>1?(o(t,r,e.start,e.finish),C.some(Cd(C.some(Td(n,0,n,Qo(n))),!0))):C.none()}))},Dd=function(t,e){return{item:t,mode:e}},Ad=function(t,e,n,r){return void 0===r&&(r=Pd),t.property().parent(e).map((function(t){return Dd(t,r)}))},Pd=function(t,e,n,r){return void 0===r&&(r=Rd),n.sibling(t,e).map((function(t){return Dd(t,r)}))},Rd=function(t,e,n,r){void 0===r&&(r=Rd);var o=t.property().children(e);return n.first(o).map((function(t){return Dd(t,r)}))},Id=[{current:Ad,next:Pd,fallback:C.none()},{current:Pd,next:Rd,fallback:C.some(Ad)},{current:Rd,next:Rd,fallback:C.some(Pd)}],zd=function(t,e,n,r,o){return void 0===o&&(o=Id),B(o,(function(t){return t.current===n})).bind((function(n){return n.current(t,e,r,n.next).orThunk((function(){return n.fallback.bind((function(n){return zd(t,e,n,r)}))}))}))},jd=function(){return{sibling:function(t,e){return t.query().prevSibling(e)},first:function(t){return t.length>0?C.some(t[t.length-1]):C.none()}}},Ld=function(){return{sibling:function(t,e){return t.query().nextSibling(e)},first:function(t){return t.length>0?C.some(t[0]):C.none()}}},Bd=function(t,e,n,r,o,i){return zd(t,e,r,o).bind((function(e){return i(e.item)?C.none():n(e.item)?C.some(e.item):Bd(t,e.item,n,e.mode,o,i)}))},Fd=function(t){return function(e){return 0===t.property().children(e).length}},Nd=function(t,e,n,r){return Bd(t,e,n,Pd,jd(),r)},Hd=function(t,e,n,r){return Bd(t,e,n,Pd,Ld(),r)},Vd=Zn(),Ud=function(t,e){return function(t,e,n){return Nd(t,e,Fd(t),n)}(Vd,t,e)},Wd=function(t,e){return function(t,e,n){return Hd(t,e,Fd(t),n)}(Vd,t,e)},$d=hr([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Gd=function(t){return ke(t,"tr")},Kd=X(X({},$d),{verify:function(t,e,n,r,o,i,a){return ke(r,"td,th",a).bind((function(n){return ke(e,"td,th",a).map((function(e){return Et(n,e)?Et(r,n)&&Qo(n)===o?i(e):$d.none("in same cell"):ur(Gd,[n,e]).fold((function(){return function(t,e,n){var r=t.getRect(e),o=t.getRect(n);return o.right>r.left&&o.left<r.right}(t,e,n)?$d.success():i(e)}),(function(t){return i(e)}))}))})).getOr($d.none("default"))},cata:function(t,e,n,r,o){return t.fold(e,n,r,o)}}),qd=function(t,e){return F(t,g(Et,e))},Xd=function(t){return"br"===Kt(t)},Yd=function(t,e,n){return e(t,n).bind((function(t){return Qt(t)&&0===Xn(t).trim().length?Yd(t,e,n):C.some(t)}))},Jd=function(t,e,n,r){return function(t,e){return se(t,e).filter(Xd).orThunk((function(){return se(t,e-1).filter(Xd)}))}(e,n).bind((function(e){return r.traverse(e).fold((function(){return Yd(e,r.gather,t).map(r.relative)}),(function(t){return function(t){return oe(t).bind((function(e){var n=ce(e);return qd(n,t).map((function(r){return function(t,e,n,r){return{parent:t,children:e,element:n,index:r}}(e,n,t,r)}))}))}(t).map((function(t){return Pf.on(t.parent,t.index)}))}))}))},Qd=function(t,e,n,r){return(Xd(e)?function(t,e,n){return n.traverse(e).orThunk((function(){return Yd(e,n.gather,t)})).map(n.relative)}(t,e,r):Jd(t,e,n,r)).map((function(t){return{start:t,finish:t}}))},Zd=function(t,e){return{left:t.left,top:t.top+e,right:t.right,bottom:t.bottom+e}},tm=function(t,e){return{left:t.left,top:t.top-e,right:t.right,bottom:t.bottom-e}},em=function(t,e,n){return{left:t.left+e,top:t.top+n,right:t.right+e,bottom:t.bottom+n}},nm=function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}},rm=function(t,e){return C.some(t.getRect(e))},om=function(t,e,n){return Jt(e)?rm(t,e).map(nm):Qt(e)?function(t,e,n){return n>=0&&n<Qo(e)?t.getRangedRect(e,n,e,n+1):n>0?t.getRangedRect(e,n-1,e,n):C.none()}(t,e,n).map(nm):C.none()},im=function(t,e){return Jt(e)?rm(t,e).map(nm):Qt(e)?t.getRangedRect(e,0,e,Qo(e)).map(nm):C.none()},am=hr([{none:[]},{retry:["caret"]}]),um=function(t,e,n){return(r=e,o=ms,xe((function(t,e){return e(t)}),Oe,r,o,i)).fold(_,(function(e){return im(t,e).exists((function(t){return function(t,e){return t.left<e.left||Math.abs(e.right-t.left)<1||t.left>e.right}(n,t)}))}));var r,o,i},cm={point:function(t){return t.bottom},adjuster:function(t,e,n,r,o){var i=Zd(o,5);return Math.abs(n.bottom-r.bottom)<1||n.top>o.bottom?am.retry(i):n.top===o.bottom?am.retry(Zd(o,1)):um(t,e,o)?am.retry(em(i,5,0)):am.none()},move:Zd,gather:Wd},sm=function(t,e,n,r,o){return 0===o?C.some(r):function(t,e,n){return t.elementFromPoint(e,n).filter((function(t){return"table"===Kt(t)})).isSome()}(t,r.left,e.point(r))?function(t,e,n,r,o){return sm(t,e,n,e.move(r,5),o)}(t,e,n,r,o-1):t.situsFromPoint(r.left,e.point(r)).bind((function(i){return i.start.fold(C.none,(function(i){return im(t,i).bind((function(a){return e.adjuster(t,i,a,n,r).fold(C.none,(function(r){return sm(t,e,n,r,o-1)}))})).orThunk((function(){return C.some(r)}))}),C.none)}))},lm=function(t,e,n){var r=t.move(n,5),o=sm(e,t,n,r,100).getOr(r);return function(t,e,n){return t.point(e)>n.getInnerHeight()?C.some(t.point(e)-n.getInnerHeight()):t.point(e)<0?C.some(-t.point(e)):C.none()}(t,o,e).fold((function(){return e.situsFromPoint(o.left,t.point(o))}),(function(n){return e.scrollBy(0,n),e.situsFromPoint(o.left,t.point(o)-n)}))},fm={tryUp:g(lm,{point:function(t){return t.top},adjuster:function(t,e,n,r,o){var i=tm(o,5);return Math.abs(n.top-r.top)<1||n.bottom<o.top?am.retry(i):n.bottom===o.top?am.retry(tm(o,1)):um(t,e,o)?am.retry(em(i,5,0)):am.none()},move:tm,gather:Ud}),tryDown:g(lm,cm),ieTryUp:function(t,e){return t.situsFromPoint(e.left,e.top-5)},ieTryDown:function(t,e){return t.situsFromPoint(e.left,e.bottom+5)},getJumpSize:m(5)},dm=function(t,e,n){return t.getSelection().bind((function(r){return Qd(e,r.finish,r.foffset,n).fold((function(){return C.some($u(r.finish,r.foffset))}),(function(o){var i=t.fromSitus(o);return function(t){return Kd.cata(t,(function(t){return C.none()}),(function(){return C.none()}),(function(t){return C.some($u(t,0))}),(function(t){return C.some($u(t,Qo(t)))}))}(Kd.verify(t,r.finish,r.foffset,i.finish,i.foffset,n.failure,e))}))}))},mm=function(t,e,n,r,o,i){return 0===i?C.none():gm(t,e,n,r,o).bind((function(a){var u=t.fromSitus(a),c=Kd.verify(t,n,r,u.finish,u.foffset,o.failure,e);return Kd.cata(c,(function(){return C.none()}),(function(){return C.some(a)}),(function(a){return Et(n,a)&&0===r?pm(t,n,r,tm,o):mm(t,e,a,0,o,i-1)}),(function(a){return Et(n,a)&&r===Qo(a)?pm(t,n,r,Zd,o):mm(t,e,a,Qo(a),o,i-1)}))}))},pm=function(t,e,n,r,o){return om(t,e,n).bind((function(e){return hm(t,o,r(e,fm.getJumpSize()))}))},hm=function(t,e,n){var r=_t().browser;return r.isChrome()||r.isSafari()||r.isFirefox()||r.isEdge()?e.otherRetry(t,n):r.isIE()?e.ieRetry(t,n):C.none()},gm=function(t,e,n,r,o){return om(t,n,r).bind((function(e){return hm(t,o,e)}))},vm=function(t,e){return Oe(t,(function(t){return oe(t).exists((function(t){return Et(t,e)}))}),n).isSome();var n},bm=function(t,e,n,r,o){return ke(r,"td,th",e).bind((function(r){return ke(r,"table",e).bind((function(i){return vm(o,i)?function(t,e,n){return dm(t,e,n).bind((function(r){return mm(t,e,r.element,r.offset,n,20).map(t.fromSitus)}))}(t,e,n).bind((function(t){return ke(t.finish,"td,th",e).map((function(e){return{start:r,finish:e,range:t}}))})):C.none()}))}))},ym=function(t,e,n,r,o,i){return _t().browser.isIE()?C.none():i(r,e).orThunk((function(){return bm(t,e,n,r,o).map((function(t){var e=t.range;return Cd(C.some(Td(e.start,e.soffset,e.finish,e.foffset)),!0)}))}))},_m=function(t,e){return ke(t,"tr",e).bind((function(t){return ke(t,"table",e).bind((function(n){var r=we(n,"tr");return Et(t,r[0])?function(t,e,n){return Nd(Vd,t,e,n)}(n,(function(t){return ni(t).isSome()}),e).map((function(t){var e=Qo(t);return Cd(C.some(Td(t,e,t,e)),!0)})):C.none()}))}))},wm=function(t,e){return ke(t,"tr",e).bind((function(t){return ke(t,"table",e).bind((function(n){var r=we(n,"tr");return Et(t,r[r.length-1])?function(t,e,n){return Hd(Vd,t,e,n)}(n,(function(t){return ei(t).isSome()}),e).map((function(t){return Cd(C.some(Td(t,0,t,0)),!0)})):C.none()}))}))},xm=function(t,e,n,r,o,i,a){return bm(t,n,r,o,i).bind((function(t){return Md(e,n,t.start,t.finish,a)}))},Om=function(t,e){return ke(t,"td,th",e)},Sm={traverse:ue,gather:Wd,relative:Pf.before,otherRetry:fm.tryDown,ieRetry:fm.ieTryDown,failure:Kd.failedDown},Cm={traverse:ae,gather:Ud,relative:Pf.before,otherRetry:fm.tryUp,ieRetry:fm.ieTryUp,failure:Kd.failedUp},Em=function(t){return function(e){return e===t}},km=Em(38),Tm=Em(40),Mm=function(t){return t>=37&&t<=40},Dm={isBackward:Em(37),isForward:Em(39)},Am={isBackward:Em(39),isForward:Em(37)},Pm=function(t){return{elementFromPoint:function(e,n){return xt.fromPoint(xt.fromDom(t.document),e,n)},getRect:function(t){return t.dom.getBoundingClientRect()},getRangedRect:function(e,n,r,o){var i=If.exact(e,n,r,o);return bd(t,i)},getSelection:function(){return vd(t).map((function(e){return kd(t,e)}))},fromSitus:function(e){var n=If.relative(e.start,e.finish);return kd(t,n)},situsFromPoint:function(e,n){return yd(t,e,n).map((function(t){return Ed(t.start,t.soffset,t.finish,t.foffset)}))},clearSelection:function(){!function(t){ud(t).each((function(t){return t.removeAllRanges()}))}(t)},collapseSelection:function(e){void 0===e&&(e=!1),vd(t).each((function(n){return n.fold((function(t){return t.collapse(e)}),(function(n,r){var o=e?n:r;dd(t,o,o)}),(function(n,r,o,i){var a=e?n:o,u=e?r:i;fd(t,a,u,a,u)}))}))},setSelection:function(e){fd(t,e.start,e.soffset,e.finish,e.foffset)},setRelativeSelection:function(e,n){dd(t,e,n)},selectNode:function(e){gd(t,e,!1)},selectContents:function(e){gd(t,e)},getInnerHeight:function(){return t.innerHeight},getScrollY:function(){var e,n,r,o;return(e=xt.fromDom(t.document),n=void 0!==e?e.dom:document,r=n.body.scrollLeft||n.documentElement.scrollLeft,o=n.body.scrollTop||n.documentElement.scrollTop,Xr(r,o)).top},scrollBy:function(e,n){!function(t,e,n){var r=(void 0!==n?n.dom:document).defaultView;r&&r.scrollBy(t,e)}(e,n,xt.fromDom(t.document))}}},Rm=function(t,e){return{rows:t,cols:e}},Im=function(t,e,n,r){var o=function(t,e,n,r){var o=Ll(),i=o.clear,a=function(i){o.on((function(o){r.clearBeforeUpdate(e),Om(i.target,n).each((function(a){sr(o,a,n).each((function(n){var o=n.boxes.getOr([]);if(1===o.length){var u=o[0],c="false"===Fa(u),s=ze(La(i.target),u,Et);c&&s&&(r.selectRange(e,o,u,u),t.selectContents(u))}else o.length>1&&(r.selectRange(e,o,n.start,n.finish),t.selectContents(a))}))}))}))};return{clearstate:i,mousedown:function(t){r.clear(e),Om(t.target,n).each(o.set)},mouseover:function(t){a(t)},mouseup:function(t){a(t),i()}}}(Pm(t),e,n,r);return{clearstate:o.clearstate,mousedown:o.mousedown,mouseover:o.mouseover,mouseup:o.mouseup}},zm=function(t,e,n,r){var o=Pm(t),i=function(){return r.clear(e),C.none()};return{keydown:function(t,a,u,c,s,l){var f=t.raw,d=f.which,m=!0===f.shiftKey;return lr(e,r.selectedSelector).fold((function(){return Mm(d)&&!m&&r.clearBeforeUpdate(e),Tm(d)&&m?g(xm,o,e,n,Sm,c,a,r.selectRange):km(d)&&m?g(xm,o,e,n,Cm,c,a,r.selectRange):Tm(d)?g(ym,o,n,Sm,c,a,wm):km(d)?g(ym,o,n,Cm,c,a,_m):C.none}),(function(t){var n=function(n){return function(){return q(n,(function(n){return function(t,e,n,r,o){return dr(r,t,e,o.firstSelectedSelector,o.lastSelectedSelector).map((function(t){return o.clearBeforeUpdate(n),o.selectRange(n,t.boxes,t.start,t.finish),t.boxes}))}(n.rows,n.cols,e,t,r)})).fold((function(){return fr(e,r.firstSelectedSelector,r.lastSelectedSelector).map((function(t){var n=Tm(d)||l.isForward(d)?Pf.after:Pf.before;return o.setRelativeSelection(Pf.on(t.first,0),n(t.table)),r.clear(e),Cd(C.none(),!0)}))}),(function(t){return C.some(Cd(C.none(),!0))}))}};return Tm(d)&&m?n([Rm(1,0)]):km(d)&&m?n([Rm(-1,0)]):l.isBackward(d)&&m?n([Rm(0,-1),Rm(-1,0)]):l.isForward(d)&&m?n([Rm(0,1),Rm(1,0)]):Mm(d)&&!m?i:C.none}))()},keyup:function(t,o,i,a,u){return lr(e,r.selectedSelector).fold((function(){var c=t.raw,s=c.which;return!0===c.shiftKey&&Mm(s)?function(t,e,n,r,o,i,a){return Et(n,o)&&r===i?C.none():ke(n,"td,th",e).bind((function(n){return ke(o,"td,th",e).bind((function(r){return Md(t,e,n,r,a)}))}))}(e,n,o,i,a,u,r.selectRange):C.none()}),C.none)}}},jm=function(t,e,n){var r=function(e){Re(e,t.selected),Re(e,t.firstSelected),Re(e,t.lastSelected)},o=function(e){Me(e,t.selected,"1")},i=function(t){a(t),n()},a=function(e){var n=we(e,t.selectedSelector+","+t.firstSelectedSelector+","+t.lastSelectedSelector);R(n,r)};return{clearBeforeUpdate:a,clear:i,selectRange:function(n,r,a,u){i(n),R(r,o),Me(a,t.firstSelected,"1"),Me(u,t.lastSelected,"1"),e(r,a,u)},selectedSelector:t.selectedSelector,firstSelectedSelector:t.firstSelectedSelector,lastSelectedSelector:t.lastSelectedSelector}},Lm=function(t,e,n){var r=kn.fromTable(t);return Cc(r,e).map((function(t){var e=yc(r,n,!1);return{upOrLeftCells:function(t,e){var n=t.slice(0,e[e.length-1].row+1),r=_c(n);return H(r,(function(t){var n=t.cells.slice(0,e[e.length-1].column+1);return P(n,(function(t){return t.element}))}))}(e,t),downOrRightCells:function(t,e){var n=t.slice(e[0].row+e[0].rowspan-1,t.length),r=_c(n);return H(r,(function(t){var n=t.cells.slice(e[0].column+e[0].colspan-1,t.cells.length);return P(n,(function(t){return t.element}))}))}(e,t)}}))},Bm=tinymce.util.Tools.resolve("tinymce.Env"),Fm=function(t){return!1===Pa(xt.fromDom(t.target),"ephox-snooker-resizer-bar")};function Nm(t,e,n){var r=jm(Si,(function(e,r,o){n.targets().each((function(n){an(r).each((function(i){var a=Iu(t),u=fi(d,xt.fromDom(t.getDoc()),a),c=Lm(i,n,u);!function(t,e,n,r,o){t.fire("TableSelectionChange",{cells:e,start:n,finish:r,otherCells:o})}(t,e,r,o,c)}))}))}),(function(){return function(t){t.fire("TableSelectionClear")}(t)}));return t.on("init",(function(n){var o=t.getWin(),i=pi(t),a=vi(t),u=Im(o,i,a,r),c=zm(o,i,a,r),s=function(t,e,n,r){var o=Pm(t);return function(t,i){r.clearBeforeUpdate(e),sr(t,i,n).each((function(t){var n=t.boxes.getOr([]);r.selectRange(e,n,t.start,t.finish),o.selectContents(i),o.collapseSelection()}))}}(o,i,a,r);t.on("TableSelectorChange",(function(t){return s(t.start,t.finish)}));var l,f,m=function(e,n){(function(t){return!0===t.raw.shiftKey})(e)&&(n.kill&&e.kill(),n.selection.each((function(e){var n=If.relative(e.start,e.finish),r=Wf(o,n);t.selection.setRng(r)})))},p=function(t){return 0===t.button},h=(l=zl(xt.fromDom(i)),f=zl(0),{touchEnd:function(t){var e=xt.fromDom(t.target);if("td"===Kt(e)||"th"===Kt(e)){var n=l.get(),r=f.get();Et(n,e)&&t.timeStamp-r<300&&(t.preventDefault(),s(e,e))}l.set(e),f.set(t.timeStamp)}});t.on("dragstart",(function(t){u.clearstate()})),t.on("mousedown",(function(t){p(t)&&Fm(t)&&u.mousedown(ka(t))})),t.on("mouseover",(function(t){var e;(void 0===(e=t).buttons||Bm.browser.isEdge()&&0===e.buttons||0!=(1&e.buttons))&&Fm(t)&&u.mouseover(ka(t))})),t.on("mouseup",(function(t){p(t)&&Fm(t)&&u.mouseup(ka(t))})),t.on("touchend",h.touchEnd),t.on("keyup",(function(e){var n=ka(e);if(n.raw.shiftKey&&Mm(n.raw.which)){var r=t.selection.getRng(),o=xt.fromDom(r.startContainer),i=xt.fromDom(r.endContainer);c.keyup(n,o,r.startOffset,i,r.endOffset).each((function(t){m(n,t)}))}})),t.on("keydown",(function(n){var r=ka(n);e().each((function(t){return t.hideBars()}));var o=t.selection.getRng(),i=xt.fromDom(o.startContainer),a=xt.fromDom(o.endContainer),u=Vr(Dm,Am)(xt.fromDom(t.selection.getStart()));c.keydown(r,i,o.startOffset,a,o.endOffset,u).each((function(t){m(r,t)})),e().each((function(t){return t.showBars()}))})),t.on("NodeChange",(function(){var e=t.selection,n=xt.fromDom(e.getStart()),o=xt.fromDom(e.getEnd());ur(an,[n,o]).fold((function(){return r.clear(i)}),d)}))})),{clear:r.clear}}var Hm=function(t,e){var n=zl(C.none()),r=zl([]),o=C.none(),i=ee("caption"),a=function(t){return o.forall((function(e){return!e[t]}))},u=function(){return ki(function(t){return xt.fromDom(t.selection.getEnd())}(t),vi(t))},c=function(){return ki(_i(t),vi(t)).bind((function(t){return Le(an(t),u().bind(an),(function(n,r){return Et(n,r)?i(t)?C.some(function(t){return{element:t,mergable:C.none(),unmergable:C.none(),selection:[t]}}(t)):C.some(Ci(e,n,t)):C.none()})).bind(p)}))},s=function(t){return an(t.element).map((function(e){var n=kn.fromTable(e),r=Cc(n,t).getOr([]),o=L(r,(function(t,e){return e.isLocked&&(t.onAny=!0,0===e.column?t.onFirst=!0:e.column+e.colspan>=n.grid.columns&&(t.onLast=!0)),t}),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:Tc(n,t).isSome(),unmergeable:Mc(n,t).isSome(),locked:o}}))},l=function(){n.set(J(c)()),o=n.get().bind(s),R(r.get(),(function(t){return t()}))},f=function(t){return t(),r.set(r.get().concat([t])),function(){r.set(z(r.get(),(function(e){return e!==t})))}},d=function(t,e){return f((function(){return n.get().fold((function(){t.setDisabled(!0)}),(function(n){t.setDisabled(e(n))}))}))},m=function(t,e,r){return f((function(){return n.get().fold((function(){t.setDisabled(!0),t.setActive(!1)}),(function(n){t.setDisabled(e(n)),t.setActive(r(n))}))}))},h=function(t){return o.exists((function(e){return e.locked[t]}))},g=function(e,n){return function(r){return m(r,(function(t){return i(t.element)}),(function(){return t.queryCommandValue(e)===n}))}},v=g("mceTableRowType","header"),b=g("mceTableColType","th");return t.on("NodeChange ExecCommand TableSelectorChange",l),{onSetupTable:function(t){return d(t,(function(t){return!1}))},onSetupCellOrRow:function(t){return d(t,(function(t){return i(t.element)}))},onSetupColumn:function(t){return function(e){return d(e,(function(e){return i(e.element)||h(t)}))}},onSetupPasteable:function(t){return function(e){return d(e,(function(e){return i(e.element)||t().isNone()}))}},onSetupPasteableColumn:function(t,e){return function(n){return d(n,(function(n){return i(n.element)||t().isNone()||h(e)}))}},onSetupMergeable:function(t){return d(t,(function(t){return a("mergeable")}))},onSetupUnmergeable:function(t){return d(t,(function(t){return a("unmergeable")}))},resetTargets:l,onSetupTableWithCaption:function(e){return m(e,_,(function(e){return an(e.element,vi(t)).exists((function(t){return Ce(t,"caption").isSome()}))}))},onSetupTableRowHeaders:v,onSetupTableColumnHeaders:b,targets:n.get}},Vm=function(t){var e=function(t,e,n){return{get:function(){return mr(t(),n).fold((function(){return e().fold(br,_r)}),(function(t){return yr(t)}))}}}((function(){return pi(t)}),(function(){return Ti(_i(t),vi(t))}),Si.selectedSelector),n=Hm(t,e),r=Wu(t),o=Nm(t,r.lazyResize,n),i=al(t,o,r.lazyWire),a=function(){var t=Ll(),e=Ll();return{getRows:t.get,setRows:function(n){n.fold(t.clear,t.set),e.clear()},clearRows:t.clear,getColumns:e.get,setColumns:function(n){n.fold(e.clear,e.set),t.clear()},clearColumns:e.clear}}();return xf(t,i,0,e,a),function(t,e,n){var r=vi(t),o=function(e){return Ti(_i(t)).bind((function(t){return an(t,r).map((function(r){var o=Ci(n,r,t);return e(r,o)}))})).getOr("")};Pt({mceTableRowType:function(){return o(e.getTableRowType)},mceTableCellType:function(){return o(e.getTableCellType)},mceTableColType:function(){return o(e.getTableColType)}},(function(e,n){return t.addQueryValueHandler(n,e)}))}(t,i,e),Di(t,e,i),function(t,e,n,r){var o=function(e){return function(){return t.execCommand(e)}},i=function(e){t.execCommand("mceInsertTable",!1,{rows:e.numRows,columns:e.numColumns})},a={text:"Table properties",onSetup:n.onSetupTable,onAction:o("mceTableProps")},u={text:"Delete table",icon:"table-delete-table",onSetup:n.onSetupTable,onAction:o("mceTableDelete")};t.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:o("mceTableInsertRowBefore"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:o("mceTableInsertRowAfter"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:o("mceTableDeleteRow"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:o("mceTableRowProps"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:o("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:o("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:o("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),t.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:o("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)});var c={type:"nestedmenuitem",text:"Row",getSubmenuItems:m("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")};t.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:o("mceTableInsertColBefore"),onSetup:n.onSetupColumn("onFirst")}),t.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:o("mceTableInsertColAfter"),onSetup:n.onSetupColumn("onLast")}),t.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:o("mceTableDeleteCol"),onSetup:n.onSetupColumn("onAny")}),t.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:o("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),t.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:o("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),t.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:o("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),t.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:o("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")});var s={type:"nestedmenuitem",text:"Column",getSubmenuItems:m("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")};t.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:o("mceTableCellProps"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:o("mceTableMergeCells"),onSetup:n.onSetupMergeable}),t.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:o("mceTableSplitCells"),onSetup:n.onSetupUnmergeable});var l={type:"nestedmenuitem",text:"Cell",getSubmenuItems:m("tablecellprops tablemergecells tablesplitcells")};!1===function(t){return t.getParam("table_grid",!0,"boolean")}(t)?t.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:o("mceInsertTable")}):t.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:i}]}}),t.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:o("mceInsertTable")}),t.ui.registry.addMenuItem("tableprops",a),t.ui.registry.addMenuItem("deletetable",u),t.ui.registry.addNestedMenuItem("row",c),t.ui.registry.addNestedMenuItem("column",s),t.ui.registry.addNestedMenuItem("cell",l),t.ui.registry.addContextMenu("table",{update:function(){return n.resetTargets(),n.targets().fold(m(""),(function(t){return"caption"===Kt(t.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}});var f=Ul(Cu(t));0!==f.length&&t.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return Hl(t,e,f,"tableclass",(function(e){return t.execCommand("mceTableToggleClass",!1,e)}))},onSetup:n.onSetupTable});var d=Ul(Su(t));0!==d.length&&t.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return Hl(t,e,d,"tablecellclass",(function(e){return t.execCommand("mceTableCellToggleClass",!1,e)}))},onSetup:n.onSetupCellOrRow}),t.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return Hl(t,e,Ol,"tablecellverticalalign",Vl(t,"vertical-align"))},onSetup:n.onSetupCellOrRow}),t.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return Hl(t,e,gu(t),"tablecellborderwidth",Vl(t,"border-width"))},onSetup:n.onSetupCellOrRow}),t.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return Hl(t,e,vu(t),"tablecellborderstyle",Vl(t,"border-style"))},onSetup:n.onSetupCellOrRow}),t.ui.registry.addToggleMenuItem("tablecaption",{icon:"table-caption",text:"Table caption",onAction:o("mceTableToggleCaption"),onSetup:n.onSetupTableWithCaption}),t.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return $l(t,zu(t),"background-color")},onSetup:n.onSetupCellOrRow}),t.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return $l(t,ju(t),"border-color")},onSetup:n.onSetupCellOrRow}),t.ui.registry.addToggleMenuItem("tablerowheader",{text:"Row header",icon:"table-top-header",onAction:Gl(t),onSetup:n.onSetupTableRowHeaders}),t.ui.registry.addToggleMenuItem("tablecolheader",{text:"Column header",icon:"table-left-header",onAction:Kl(t),onSetup:n.onSetupTableColumnHeaders})}(t,e,n,a),function(t,e,n,r){t.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(t){return t("inserttable | cell row column | advtablesort | tableprops deletetable")}});var o=function(e){return function(){return t.execCommand(e)}};t.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:o("mceTableProps"),icon:"table",onSetup:n.onSetupTable}),t.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:o("mceTableDelete"),icon:"table-delete-table",onSetup:n.onSetupTable}),t.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:o("mceTableCellProps"),icon:"table-cell-properties",onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:o("mceTableMergeCells"),icon:"table-merge-cells",onSetup:n.onSetupMergeable}),t.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:o("mceTableSplitCells"),icon:"table-split-cells",onSetup:n.onSetupUnmergeable}),t.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:o("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:o("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:o("mceTableDeleteRow"),icon:"table-delete-row",onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:o("mceTableRowProps"),icon:"table-row-properties",onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:o("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:n.onSetupColumn("onFirst")}),t.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:o("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:n.onSetupColumn("onLast")}),t.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:o("mceTableDeleteCol"),icon:"table-delete-column",onSetup:n.onSetupColumn("onAny")}),t.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:o("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:o("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),t.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:o("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),t.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:o("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)}),t.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:o("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),t.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:o("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),t.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:o("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),t.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:o("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")}),t.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:o("mceInsertTable"),icon:"table"});var i=Ul(Cu(t));0!==i.length&&t.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:Wl(t,e,i,"tableclass",(function(e){return t.execCommand("mceTableToggleClass",!1,e)})),onSetup:n.onSetupTable});var a=Ul(Su(t));0!==a.length&&t.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:Wl(t,e,a,"tablecellclass",(function(e){return t.execCommand("mceTableCellToggleClass",!1,e)})),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:Wl(t,e,Ol,"tablecellverticalalign",Vl(t,"vertical-align")),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:Wl(t,e,gu(t),"tablecellborderwidth",Vl(t,"border-width")),onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:Wl(t,e,vu(t),"tablecellborderstyle",Vl(t,"border-style")),onSetup:n.onSetupCellOrRow}),t.ui.registry.addToggleButton("tablecaption",{tooltip:"Table caption",onAction:o("mceTableToggleCaption"),icon:"table-caption",onSetup:n.onSetupTableWithCaption}),t.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:function(e){return e($l(t,zu(t),"background-color"))},onSetup:n.onSetupCellOrRow}),t.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function(e){return e($l(t,ju(t),"border-color"))},onSetup:n.onSetupCellOrRow}),t.ui.registry.addToggleButton("tablerowheader",{tooltip:"Row header",icon:"table-top-header",onAction:Gl(t),onSetup:n.onSetupTableRowHeaders}),t.ui.registry.addToggleButton("tablecolheader",{tooltip:"Column header",icon:"table-left-header",onAction:Kl(t),onSetup:n.onSetupTableColumnHeaders})}(t,e,n,a),function(t){var e=function(t){return t.getParam("table_toolbar","tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol")}(t);e.length>0&&t.ui.registry.addContextToolbar("table",{predicate:function(e){return t.dom.is(e,"table")&&t.getBody().contains(e)},items:e,scope:"node",position:"node"})}(t),t.on("PreInit",(function(){t.serializer.addTempAttr(Si.firstSelected),t.serializer.addTempAttr(Si.lastSelected),function(t){t.formatter.register(Cf)}(t)})),function(t){return t.getParam("table_tab_navigation",!0,"boolean")}(t)&&t.on("keydown",(function(e){!function(t,e,n){if(t.keyCode===_d.TAB){var r=pi(e),o=function(t){var e=Kt(t);return Et(t,r)||M(Sd,e)},i=e.selection.getRng(),a=xt.fromDom(t.shiftKey?i.startContainer:i.endContainer);nn(a,o).each((function(r){t.preventDefault(),an(r,o).each(n.clear),e.selection.collapse(t.shiftKey),(t.shiftKey?xd:wd)(e,o,r).each((function(t){e.selection.setRng(t)}))}))}}(e,t,o)})),t.on("remove",(function(){r.destroy()})),function(t,e,n,r){return{insertTable:hl(t),setClipboardRows:pl(e.setRows),getClipboardRows:ml(e.getRows),setClipboardCols:pl(e.setColumns),getClipboardCols:ml(e.getColumns),resizeHandler:n,selectionTargets:r}}(t,a,r,n)};wr.add("table",Vm)}()},"953b":function(t,e,n){"use strict";var r=n("dc19"),o=n("cb27"),i=n("8e16"),a=n("7f65"),u=n("384f"),c=n("5388"),s=o.Set,l=o.add,f=o.has;t.exports=function(t){var e=r(this),n=a(t),o=new s;return i(e)>n.size?c(n.getIterator(),(function(t){f(e,t)&&l(o,t)})):u(e,(function(t){n.includes(t)&&l(o,t)})),o}},"96a9":function(t,e,n){"use strict";n.r(e);var r={name:"generate-col-item",components:{GenerateFormItem:n("12f6").a},props:["element","model","rules","remote","display","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModels:this.model}},watch:{model:{deep:!0,handler:function(t){this.dataModels=t}}},methods:{fillingColumns:function(t){this.$emit("fillingColumns",t)},getColSpan:function(t){return"pc"===this.platform?24/t:"pad"===this.platform?t>1?12:24:"mobile"===this.platform?24:void 0}}},o=n("2877"),i=Object(o.a)(r,(function(){var t,e=this,n=e.$createElement,r=e._self._c||n;return e.display[e.element.model]?r("el-row",{staticClass:"renderer-grid-row",class:(t={},t[e.element.options&&e.element.options.customClass]=e.element.options&&e.element.options.customClass,t),attrs:{align:e.element.options.align,gutter:e.element.options.gutter||0,justify:e.element.options.justify,type:"flex"}},e._l(e.element.columns,(function(t,n){var o;return r("el-col",{key:n,class:(o={},o[t.options&&t.options.customClass]=t.options&&t.options.customClass,o),attrs:{offset:t.options?t.options.offset:0,pull:t.options?t.options.pull:0,push:t.options?t.options.push:0,span:e.getColSpan(e.element.columns.length||1)}},[e._l(t.list,(function(t){return[r("generate-form-item",{key:t.key,attrs:{"container-key":e.containerKey,"data-source-value":e.dataSourceValue,display:e.display,edit:e.edit,"event-function":e.eventFunction,models:e.dataModels,platform:e.platform,preview:e.preview,"print-read":e.printRead,remote:e.remote,"remote-option-source":e.remoteOptionSource,rules:e.rules,widget:t},on:{fillingColumns:e.fillingColumns}})]}))],2)})),1):e._e()}),[],!1,null,null,null);e.default=i.exports},9861:function(t,e,n){"use strict";n("5352")},"98fc":function(t,e,n){var r,o,i;!function(n,a){"use strict";o=[],void 0===(i="function"==typeof(r=function(t){return function(e){(e=e||{}).arrayAccessForm=e.arrayAccessForm||"none",e.emptyNodeForm=e.emptyNodeForm||"text",e.jsAttributeFilter=e.jsAttributeFilter,e.jsAttributeConverter=e.jsAttributeConverter,e.attributeConverters=e.attributeConverters||[],e.datetimeAccessFormPaths=e.datetimeAccessFormPaths||[],e.arrayAccessFormPaths=e.arrayAccessFormPaths||[],e.xmldomOptions=e.xmldomOptions||{},void 0===e.enableToStringFunc&&(e.enableToStringFunc=!0),void 0===e.skipEmptyTextNodesForObj&&(e.skipEmptyTextNodesForObj=!0),void 0===e.stripWhitespaces&&(e.stripWhitespaces=!0),void 0===e.useDoubleQuotes&&(e.useDoubleQuotes=!0),void 0===e.ignoreRoot&&(e.ignoreRoot=!1),void 0===e.escapeMode&&(e.escapeMode=!0),void 0===e.attributePrefix&&(e.attributePrefix="_"),void 0===e.selfClosingElements&&(e.selfClosingElements=!0),void 0===e.keepCData&&(e.keepCData=!1),void 0===e.keepText&&(e.keepText=!1),void 0===e.jsDateUTC&&(e.jsDateUTC=!1),function(){function t(t){var e=String(t);return 1===e.length&&(e="0"+e),e}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|^\n+|(\s|\n)+$/g,"")}),"function"!=typeof Date.prototype.toISOString&&(Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+t(this.getUTCMonth()+1)+"-"+t(this.getUTCDate())+"T"+t(this.getUTCHours())+":"+t(this.getUTCMinutes())+":"+t(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"})}();var n=1,r=3,o=4,i=8,a=9;function u(t){var e=t.localName;return null==e&&(e=t.baseName),null!=e&&""!==e||(e=t.nodeName),e}function c(t){return"string"==typeof t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):t}function s(t,n,r){switch(e.arrayAccessForm){case"property":t[n]instanceof Array?t[n+"_asArray"]=t[n]:t[n+"_asArray"]=[t[n]]}if(!(t[n]instanceof Array)&&e.arrayAccessFormPaths.length>0){for(var o=!1,i=0;i<e.arrayAccessFormPaths.length;i++){var a=e.arrayAccessFormPaths[i];if("string"==typeof a){if(a===r){o=!0;break}}else if(a instanceof RegExp){if(a.test(r)){o=!0;break}}else if("function"==typeof a&&a(n,r)){o=!0;break}}o&&(t[n]=[t[n]])}}function l(t){var e=t.split(/[-T:+Z]/g),n=new Date(e[0],e[1]-1,e[2]),r=e[5].split(".");if(n.setHours(e[3],e[4],r[0]),r.length>1&&n.setMilliseconds(r[1]),e[6]&&e[7]){var o=60*e[6]+Number(e[7]);o=0+("-"===(/\d\d-\d\d:\d\d$/.test(t)?"-":"+")?-1*o:o),n.setMinutes(n.getMinutes()-o-n.getTimezoneOffset())}else-1!==t.indexOf("Z",t.length-1)&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())));return n}function f(t,n){for(var r={__cnt:0},o=t.childNodes,a=0;a<o.length;a++){var c=o.item(a),f=u(c);c.nodeType!==i&&(r.__cnt++,null==r[f]?(r[f]=d(c,n+"."+f),s(r,f,n+"."+f)):(r[f]instanceof Array||(r[f]=[r[f]],s(r,f,n+"."+f)),r[f][r[f].length]=d(c,n+"."+f)))}for(var m=0;m<t.attributes.length;m++){var p=t.attributes.item(m);r.__cnt++;for(var h=p.value,g=0;g<e.attributeConverters.length;g++){var v=e.attributeConverters[g];v.test.call(null,p.name,p.value)&&(h=v.convert.call(null,p.name,p.value))}r[e.attributePrefix+p.name]=h}var b=t.prefix;return b&&(r.__cnt++,r.__prefix=b),r["#text"]&&(r.__text=r["#text"],r.__text instanceof Array&&(r.__text=r.__text.join("\n")),e.escapeMode&&(r.__text=r.__text.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")),e.stripWhitespaces&&(r.__text=r.__text.trim()),delete r["#text"],"property"===e.arrayAccessForm&&delete r["#text_asArray"],r.__text=function(t,n,r){if(e.datetimeAccessFormPaths.length>0)for(var o=r.split(".#")[0],i=0;i<e.datetimeAccessFormPaths.length;i++){var a=e.datetimeAccessFormPaths[i];if("string"==typeof a){if(a===o)return l(t)}else if(a instanceof RegExp){if(a.test(o))return l(t)}else if("function"==typeof a&&a(o))return l(t)}return t}(r.__text,0,n+".#text")),r.hasOwnProperty("#cdata-section")&&(r.__cdata=r["#cdata-section"],delete r["#cdata-section"],"property"===e.arrayAccessForm&&delete r["#cdata-section_asArray"]),1===r.__cnt&&r.__text&&!e.keepText?r=r.__text:0===r.__cnt&&"text"===e.emptyNodeForm?r="":r.__cnt>1&&void 0!==r.__text&&e.skipEmptyTextNodesForObj&&(e.stripWhitespaces&&""===r.__text||""===r.__text.trim())&&delete r.__text,delete r.__cnt,e.keepCData||r.hasOwnProperty("__text")||!r.hasOwnProperty("__cdata")||1!==Object.keys(r).length?(e.enableToStringFunc&&(r.__text||r.__cdata)&&(r.toString=function(){return(this.__text?this.__text:"")+(this.__cdata?this.__cdata:"")}),r):r.__cdata?r.__cdata:""}function d(t,i){return t.nodeType===a?function(t){for(var r={},o=t.childNodes,i=0;i<o.length;i++){var a=o.item(i);if(a.nodeType===n){var c=u(a);e.ignoreRoot?r=d(a,c):r[c]=d(a,c)}}return r}(t):t.nodeType===n?f(t,i):t.nodeType===r||t.nodeType===o?t.nodeValue:null}function m(t,n,r,o){var i="<"+(t&&t.__prefix?t.__prefix+":":"")+n;if(r)for(var a=0;a<r.length;a++){var u=r[a],s=t[u];e.escapeMode&&(s=c(s)),i+=" "+u.substr(e.attributePrefix.length)+"=",e.useDoubleQuotes?i+='"'+s+'"':i+="'"+s+"'"}return i+=o?" />":">"}function p(t,e){return"</"+(t&&t.__prefix?t.__prefix+":":"")+e+">"}function h(t,n){return"property"===e.arrayAccessForm&&(r=n.toString(),o="_asArray",-1!==r.indexOf(o,r.length-o.length))||0===n.toString().indexOf(e.attributePrefix)||0===n.toString().indexOf("__")||t[n]instanceof Function;var r,o}function g(t){var e=0;if(t instanceof Object)for(var n in t)h(t,n)||e++;return e}function v(t){var n=[];if(t instanceof Object)for(var r in t)-1===r.toString().indexOf("__")&&0===r.toString().indexOf(e.attributePrefix)&&n.push(r);return n}function b(t){var n="";return t instanceof Object?n+=function(t){var n="";return t.__cdata&&(n+="<![CDATA["+t.__cdata+"]]>"),(t.__text||"number"==typeof t.__text||"boolean"==typeof t.__text)&&(e.escapeMode?n+=c(t.__text):n+=t.__text),n}(t):null!==t&&(e.escapeMode?n+=c(t):n+=t),n}function y(t,n,r){var o="";if(e.jsAttributeFilter&&e.jsAttributeFilter.call(null,n,t))return o;if(e.jsAttributeConverter&&(t=e.jsAttributeConverter.call(null,n,t)),null!=t&&""!==t||!e.selfClosingElements)if("object"==typeof t)if("[object Array]"===Object.prototype.toString.call(t))o+=function(t,e,n){var r="";if(0===t.length)r+=m(t,e,n,!0);else for(var o=0;o<t.length;o++)r+=y(t[o],e,v(t[o]));return r}(t,n,r);else if(t instanceof Date)o+=m(t,n,r,!1),o+=e.jsDateUTC?t.toUTCString():t.toISOString(),o+=p(t,n);else{g(t)>0||"number"==typeof t.__text||"boolean"==typeof t.__text||t.__text||t.__cdata?(o+=m(t,n,r,!1),o+=_(t),o+=p(t,n)):e.selfClosingElements?o+=m(t,n,r,!0):(o+=m(t,n,r,!1),o+=p(t,n))}else o+=m(t,n,r,!1),o+=b(t),o+=p(t,n);else o+=m(t,n,r,!0);return o}function _(t){var e="";if(g(t)>0)for(var n in t)if(!h(t,n)){var r=t[n];e+=y(r,n,v(r))}return e+=b(t)}function w(n){if(void 0===n)return null;if("string"!=typeof n)return null;var r=null,o=null;if(t)o=(r=new t(e.xmldomOptions)).parseFromString(n,"text/xml");else if(window&&window.DOMParser){r=new window.DOMParser;var i=null;if(!(window.ActiveXObject||"ActiveXObject"in window)&&document.all&&!document.addEventListener)try{i=r.parseFromString("INVALID","text/xml").childNodes[0].namespaceURI}catch(t){i=null}try{o=r.parseFromString(n,"text/xml"),null!==i&&o.getElementsByTagNameNS(i,"parsererror").length>0&&(o=null)}catch(t){o=null}}else 0===n.indexOf("<?")&&(n=n.substr(n.indexOf("?>")+2)),(o=new ActiveXObject("Microsoft.XMLDOM")).async="false",o.loadXML(n);return o}this.asArray=function(t){return null==t?[]:t instanceof Array?t:[t]},this.toXmlDateTime=function(t){return t instanceof Date?t.toISOString():"number"==typeof t?new Date(t).toISOString():null},this.asDateTime=function(t){return"string"==typeof t?l(t):t},this.xml2dom=function(t){return w(t)},this.dom2js=function(t){return d(t,null)},this.js2dom=function(t){return w(this.js2xml(t))},this.xml2js=function(t){var e=w(t);return null!=e?this.dom2js(e):null},this.js2xml=function(t){return _(t)},this.getVersion=function(){return"3.4.4"}}})?r.apply(e,o):r)||(t.exports=i)}()},9961:function(t,e,n){"use strict";var r=n("dc19"),o=n("cb27"),i=n("83b9"),a=n("7f65"),u=n("5388"),c=o.add,s=o.has,l=o.remove;t.exports=function(t){var e=r(this),n=a(t).getIterator(),o=i(e);return u(n,(function(t){s(e,t)?l(o,t):c(o,t)})),o}},"99af":function(t,e,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("e8b5"),a=n("861d"),u=n("7b0b"),c=n("07fa"),s=n("3511"),l=n("8418"),f=n("65f0"),d=n("1dde"),m=n("b622"),p=n("1212"),h=m("isConcatSpreadable"),g=p>=51||!o((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),v=function(t){if(!a(t))return!1;var e=t[h];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,arity:1,forced:!g||!d("concat")},{concat:function(t){var e,n,r,o,i,a=u(this),d=f(a,0),m=0;for(e=-1,r=arguments.length;e<r;e++)if(v(i=-1===e?a:arguments[e]))for(o=c(i),s(m+o),n=0;n<o;n++,m++)n in i&&l(d,m,i[n]);else s(m+1),l(d,m++,i);return d.length=m,d}})},"99c2":function(t,e,n){"use strict";n("87fb")},"9a01":function(t,e,n){"use strict";var r=n("5530"),o=n("c7eb"),i=n("1da1"),a=n("2909"),u=(n("d9e2"),n("99af"),n("4de4"),n("c740"),n("d81d"),n("14d9"),n("a434"),n("b0c0"),n("d3b7"),n("498a"),{name:"MemberOrgTreeItem",props:{isActive:{default:!1,type:Boolean},data:{default:{}},isSelected:{default:!1,type:Boolean},showAppend:{default:!0,type:Boolean},canSelect:{default:!0,type:Boolean}},computed:{isDisabled(){return this.data.isDisabled||!this.canSelect}},model:{value:"isSelected",event:"change"},methods:{handleSwitch(t){"user"!==this.data.type&&this.$emit("click",this.data,t)},handleClick(t){this.$emit(t?"select":"unselect",this.data)}}}),c=n("2877"),s=Object(c.a)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"member-org-detail-item",class:{"is-active":t.isActive},attrs:{title:t.data.name}},[n("el-checkbox",{staticClass:"member-org-manage-check",attrs:{disabled:t.isDisabled,value:t.isSelected},on:{change:t.handleClick}}),n("div",{staticClass:"member-org-detail-item-wrapper item-org",on:{click:t.handleSwitch}},[n("div",{staticClass:"member-org-detail-icon"},["region"===t.data.type||"root"===t.data.type?n("base-icon",{attrs:{"icon-class":"government-line"}}):t._e(),"organ"===t.data.type?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):t._e(),"user"===t.data.type?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):t._e(),"role"===t.data.type?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):t._e()],1),n("span",{staticClass:"member-org-detail-title"},[t._v(" "+t._s(t.data.name)+" "),"user"===t.data.type&&t.data.account?n("small",[t._v(t._s(t.data.account))]):n("small",[t._v(t._s(t.data.code))])]),n("div",{staticClass:"member-org-spacing"}),t.showAppend?n("span",{staticClass:"member-org-detail-append"},[n("base-icon",{attrs:{"icon-class":"arrow-right-s-line"}})],1):t._e()])],1)}),[],!1,null,null,null).exports,l=n("7694"),f=n("60bb"),d=n.n(f),m={name:"OrganizationSelector",components:{MemberOrgTreeItem:s},computed:{total:function(){return this.data.length},searchTotal:function(){return this.searchData.length},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},componentSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},collapseTagSize:function(){return["small","mini"].indexOf(this.componentSize)>-1?"mini":"small"}},model:{prop:"selected",event:"change"},inject:{elForm:{default:""},elFormItem:{default:""}},props:{getOrgTree:{type:Function,default:l.i},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},parentCode:{type:String,default:"000000000000"},platform:{type:String,default:"pc"},text:{type:String,default:"选择"},customStyle:{type:Object,default:function(){return{}}},placeholder:{type:String,default:""},parentName:{type:String,default:"全国"},selected:{default:function(){return[]}},optionScopeType:{type:String,default:"ORGAN"},dialogTitle:{type:String,default:"选择组织机构"}},mounted:function(){null===this.selected&&(this.selected=[]),this.$emit("change",this.selected),this.selected.length&&this.$refs.nodeTree&&this.$refs.nodeTree.setCheckedKeys(Object(a.a)(d.a.cloneDeep(this.selected))),this.debounce=d.a.debounce(this.onSearch,50)},watch:{keyword:function(t){t.trim()?(this.isSearching=!0,this.debounce&&this.debounce()):this.isSearching=!1}},data:function(){return{data:[],isSearchLoading:!1,isSearching:!1,keyword:"",searchData:[],visible:!1,stack:[],currentDept:{},dataLoading:!0,debounce:!1}},methods:{onDialogClose:function(){this.data=[],this.isSearchLoading=!1,this.isSearching=!1,this.keyword="",this.searchData=[],this.visible=!1,this.stack=[],this.currentDept={},this.dataLoading=!1},onSearch:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.searchData=[],"PERSON"!==t.optionScopeType){e.next=7;break}return e.next=4,t.searchUser();case 4:t.searchData=e.sent,e.next=7;break;case 7:case"end":return e.stop()}}),e)})))()},onCheckedTreeNodeChange:function(t,e){if(e)this.multiple||(this.$refs.nodeTree.setCheckedKeys([t.code]),this.selected.pop()),this.selected.push(t);else{var n=this.selected.findIndex((function(e){return e.code===t.code}));n>-1&&this.selected.splice(n,1)}},loadTreeNode:function(t,e){var n=this;return Object(i.a)(Object(o.a)().mark((function r(){var i,u;return Object(o.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(0!==t.level){r.next=5;break}return i={code:n.parentCode,name:n.parentName,label:n.parentName,type:"root",children:[],disabled:"ORGAN"!==n.optionScopeType},r.abrupt("return",e([i]));case 5:return u=[],r.t0=[],r.t1=Object(a.a)(u),r.t2=a.a,r.next=11,n.getOrgByParentCode(t.data.code);case 11:if(r.t3=r.sent,r.t4=(0,r.t2)(r.t3),u=r.t0.concat.call(r.t0,r.t1,r.t4),!(["root","organ","region"].indexOf(t.data.type)>-1&&"PERSON"===n.optionScopeType)){r.next=23;break}return r.t5=[],r.t6=Object(a.a)(u),r.t7=a.a,r.next=20,n.getUserListByParentNode(t.data);case 20:r.t8=r.sent,r.t9=(0,r.t7)(r.t8),u=r.t5.concat.call(r.t5,r.t6,r.t9);case 23:return r.abrupt("return",e(u));case 24:case"end":return r.stop()}}),r)})))()},searchUser:function(){var t=this;return Object(i.a)(Object(o.a)().mark((function e(){var n,i;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.keyword&&!(t.keyword.length<1)){e.next=2;break}return e.abrupt("return");case 2:return t.isSearchLoading=!0,n=[],e.prev=4,e.next=7,Object(l.m)({condition:{name:t.keyword},limit:1e3,page:1});case 7:1===(i=e.sent).data.code&&(n=(n=i.data.data.data).map((function(t){return Object(r.a)(Object(r.a)({},t),{},{name:t.name,label:t.name,code:t.id,type:"user",isLeaf:!0})}))),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),t.$message.error(e.t0.message);case 14:return e.prev=14,t.isSearchLoading=!1,e.finish(14);case 17:return e.abrupt("return",n);case 18:case"end":return e.stop()}}),e,null,[[4,11,14,17]])})))()},getUserListByParentNode:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var i;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(l.j)({condition:{regionCode:t.regionCode||t.code,orgCode:t.code},limit:"1000",page:"1"});case 3:return i=n.sent,n.abrupt("return",i.data.data.data.length?i.data.data.data.map((function(t){return Object(r.a)(Object(r.a)({},t),{},{name:t.name,label:t.name,code:t.id,type:"user",isLeaf:!0,disabled:"PERSON"!==e.optionScopeType})})):[]);case 7:return n.prev=7,n.t0=n.catch(0),e.$message.error(n.t0),n.abrupt("return",[]);case 11:case"end":return n.stop()}}),n,null,[[0,7]])})))()},getOrgByParentCode:function(t){var e=this;return Object(i.a)(Object(o.a)().mark((function n(){var i;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(l.i)({code:t});case 3:if(1===(i=n.sent).data.code){n.next=6;break}throw new Error(i.data.message||"根据父级部门ID加载子集部门节点失败");case 6:return n.abrupt("return",i.data.data.length?i.data.data.map((function(t){return Object(r.a)(Object(r.a)({},t),{},{name:t.name,label:t.name,code:t.code,type:t.type,disabled:"ORGAN"!==e.optionScopeType})})):[]);case 9:return n.prev=9,n.t0=n.catch(0),e.$message.error(n.t0),n.abrupt("return",[]);case 13:case"end":return n.stop()}}),n,null,[[0,9]])})))()},handleSelect:function(){this.disabled||this.readonly||(this.visible=!0)},handleConfirm:function(){this.$emit("change",this.selected),this.onDialogClose()},handleCancel:function(){this.visible=!1},handleCloseTag:function(t){var e=this.selected.findIndex((function(e){return e.code===t.code}));e>-1&&this.selected.splice(e,1)},handleSelectItem:function(t){this.multiple||this.selected.pop(),this.selected.push(t)},handleUnSelectItem:function(t){var e=this.selected.findIndex((function(e){return e.code===t.code}));if(e>-1&&this.selected.splice(e,1),this.$refs.nodeTree){var n=this.$refs.nodeTree.getCheckedKeys();n=n.filter((function(e){return e!==t.code})),this.$refs.nodeTree.setCheckedKeys(n)}},handleClick:function(t){this.isSearching=!1,this.stack.push(t)}}},p=Object(c.a)(m,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"organization-selector el-select",class:[t.componentSize?"el-select--"+t.componentSize:""]},[t.visible?n("el-dialog",{class:"mobile"===t.platform?"organization-selector-mobile":"organization-selector-pc",attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,disabled:t.disabled,title:t.dialogTitle,visible:t.visible,"append-to-body":"","custom-class":"organization-selector-dialog",placement:"bottom-start",width:"800px"},on:{"update:visible":function(e){t.visible=e},close:t.onDialogClose}},[n("div",{staticClass:"tree-select-section-left"},[n("div",{staticClass:"member-org-detail-list-container"},["PERSON"===t.optionScopeType?n("div",{staticClass:"member-org-detail-title-bar"},[n("el-input",{attrs:{clearable:"",maxLength:"20",placeholder:"请输入关键词","prefix-icon":"el-icon-search",size:"small"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1):t._e(),t.isSearching?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isSearchLoading,expression:"isSearchLoading"}],staticClass:"b-scroll"},[t.searchTotal?n("div",{staticClass:"member-org-detail-list-item-container"},t._l(t.searchData,(function(e){return n("member-org-tree-item",{key:e.code,attrs:{data:e,"is-selected":t.selected.some((function(t){return t.code===e.code})),"show-append":!1},on:{select:t.handleSelectItem,unselect:t.handleUnSelectItem}})})),1):n("el-empty")],1):n("div",{staticClass:"b-scroll"},[n("div",{staticClass:"member-org-detail-list-item-container"},[n("el-tree",{ref:"nodeTree",staticClass:"organization-tree",attrs:{"default-checked-keys":t.selected.map((function(t){return t.code})),indent:8,load:t.loadTreeNode,props:{label:"name",children:"children",isLeaf:"isLeaf"},"check-strictly":"",lazy:"","node-key":"code","show-checkbox":""},on:{"check-change":t.onCheckedTreeNodeChange},scopedSlots:t._u([{key:"default",fn:function(e){e.node;var r=e.data;return n("div",{staticClass:"custom-tree-node",attrs:{title:r.name+" : "+(r.type&&"user"===r.type?r.account:r.code)}},[n("div",{staticClass:"custom-tree-node-icon"},["region"===r.type||"root"===r.type?n("base-icon",{attrs:{"icon-class":"government-line"}}):t._e(),"organ"===r.type?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):t._e(),"user"===r.type?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):t._e(),"role"===r.type?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):t._e()],1),n("div",{staticClass:"custom-tree-node-name"},[t._v(" "+t._s(r.name)+" "),n("small",[t._v(t._s(r.type&&"user"===r.type?r.account:r.code))])])])}}],null,!1,3974469761)})],1)])])]),n("div",{staticClass:"tree-select-section-right"},[t.selected.length?n("div",{staticClass:"b-scroll"},[n("div",{staticClass:"member-org-detail-list-item-container"},t._l(t.selected,(function(e){return n("member-org-tree-item",{key:e.code,attrs:{data:e,"is-selected":!0,"show-append":!1},on:{unselect:t.handleUnSelectItem}})})),1)]):n("el-empty")],1),n("div",{staticClass:"tree-select-section-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{disabled:!t.selected.length,type:"primary"},on:{click:t.handleConfirm}},[t._v("确定")])],1)]):t._e(),n("div",{staticClass:"organization-selector-container",class:{"is-disabled":t.disabled},style:t.customStyle,on:{click:t.handleSelect}},[n("div",{staticClass:"organization-selector-wrapper el-select__tags"},[t.selected&&t.selected.length?n("span",{staticClass:"select-tag"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.selected[0].name,disabled:t.selected[0].name.length<11,placement:"top"}},[n("el-tag",{attrs:{closable:!t.disabled,size:t.collapseTagSize,type:"info"},on:{close:function(e){return t.handleCloseTag(t.selected[0])}}},["region"===t.selected[0].type?n("base-icon",{attrs:{"icon-class":"government-line"}}):t._e(),"organ"===t.selected[0].type?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):t._e(),"user"===t.selected[0].type?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):t._e(),"role"===t.selected[0].type?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):t._e(),n("span",{staticClass:"tag-name"},[t._v(t._s(""+(t.selected[0].name.length>11?t.selected[0].name.substr(0,11)+"...":t.selected[0].name)))])],1)],1),t.selected.length>1?n("el-tag",{attrs:{closable:!1,size:t.collapseTagSize,"disable-transitions":"",type:"info"}},[n("span",{staticClass:"el-select__tags-text"},[t._v("+ "+t._s(t.selected.length-1))])]):t._e()],1):t._e()]),n("el-input",{ref:"reference",class:{"is-focus":t.visible},attrs:{disabled:t.disabled,placeholder:t.selected&&t.selected.length?"":t.placeholder,readonly:t.readonly,size:t.componentSize,"validate-event":!1,type:"text"}},[n("template",{slot:"prefix"},["ORGAN"===t.optionScopeType?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):t._e(),"PERSON"===t.optionScopeType?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):t._e(),"ROLE"===t.optionScopeType?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):t._e()],1)],2)],1)],1)}),[],!1,null,null,null);e.a=p.exports},"9a1f":function(t,e,n){"use strict";var r=n("c65b"),o=n("59ed"),i=n("825a"),a=n("0d51"),u=n("35a1"),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?u(t):e;if(o(n))return i(r(n,t));throw new c(a(t)+" is not iterable")}},"9adc":function(t,e,n){"use strict";var r=n("8558");t.exports="NODE"===r},"9bd9":function(t,e,n){"use strict";var r=n("12f6"),o=n("96a9"),i={name:"generate-card-item",components:{GenerateFormItem:r.a,GenerateColItem:o.default},props:["element","model","rules","remote","display","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModels:this.model}},watch:{model:{deep:!0,handler:function(t){this.dataModels=t}}},methods:{fillingColumns:function(t){this.$emit("fillingColumns",t)}}},a=n("2877"),u=Object(a.a)(i,(function(){var t,e=this,n=e.$createElement,r=e._self._c||n;return e.display[e.element.model]?r("el-card",{staticClass:"renderer-card",class:(t={},t[e.element.options&&e.element.options.customClass]=e.element.options&&e.element.options.customClass,t),attrs:{shadow:e.element.options.shadow}},[e.element.options&&e.element.options.showHeader?r("div",{attrs:{slot:"header"},slot:"header"},[e._v(e._s(e.element.name))]):e._e(),e._l(e.element.list,(function(t){return["grid"===t.type?r("generate-col-item",{key:t.key,ref:"icd-form-"+t.model,refInFor:!0,attrs:{id:t.model,"container-key":e.containerKey,"data-source-value":e.dataSourceValue,display:e.display,edit:e.edit,element:t,"event-function":e.eventFunction,model:e.dataModels,platform:e.platform,preview:e.preview,"print-read":e.printRead,remote:e.remote,"remote-option-source":e.remoteOptionSource,rules:e.rules},on:{fillingColumns:e.fillingColumns}}):r("generate-form-item",{key:t.key,attrs:{id:t.model,"container-key":e.containerKey,"data-source-value":e.dataSourceValue,display:e.display,edit:e.edit,"event-function":e.eventFunction,models:e.dataModels,platform:e.platform,preview:e.preview,"print-read":e.printRead,remote:e.remote,"remote-option-source":e.remoteOptionSource,rules:e.rules,widget:t},on:{fillingColumns:e.fillingColumns}})]}))],2):e._e()}),[],!1,null,null,null);e.a=u.exports},"9bdd":function(t,e,n){"use strict";var r=n("825a"),o=n("2a62");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},"9bf2":function(t,e,n){"use strict";var r=n("83ab"),o=n("0cfb"),i=n("aed9"),a=n("825a"),u=n("a04b"),c=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor;e.f=r?i?function(t,e,n){if(a(t),e=u(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=l(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return s(t,e,n)}:s:function(t,e,n){if(a(t),e=u(e),a(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9dd9":function(t,e,n){(function(t){!function(){"use strict";var e,n,r,o=function(t){var e=t;return{get:function(){return e},set:function(t){e=t}}},i=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=(e="array",function(t){return r=typeof(n=t),(null===n?"null":"object"===r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===e;var n,r}),c=function(t){return!function(t){return null==t}(t)},s=function(t){return function(e){return typeof e===t}}("function"),l=function(){},f=function(t){return function(){return t}},d=function(t){return t},m=f(!1),p=f(!0),h=function(){return g},g={fold:function(t,e){return t()},isSome:m,isNone:p,getOr:r=d,getOrThunk:n=function(t){return t()},getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:r,orThunk:n,map:h,each:l,bind:h,exists:m,forall:p,filter:function(){return h()},toArray:function(){return[]},toString:f("none()")},v=function(t){var e=f(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:p,isNone:m,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return v(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:g},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},b={some:v,none:h,from:function(t){return null==t?g:v(t)}},y={},_={exports:y};!function(e,n,r,o){!function(t,o){"object"==typeof n&&void 0!==r?r.exports=o():"function"==typeof e&&e.amd?e(o):(t="undefined"!=typeof globalThis?globalThis:t||self).EphoxContactWrapper=o()}(this,(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},n={exports:{}};!function(t){!function(e){var n=setTimeout;function r(){}function o(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(t,this)}function i(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,o._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void u(e.promise,t)}a(e.promise,r)}else(1===t._state?a:u)(e.promise,t._value)}))):t._deferreds.push(e)}function a(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof o)return t._state=3,t._value=e,void c(t);if("function"==typeof n)return void l((r=n,i=e,function(){r.apply(i,arguments)}),t)}t._state=1,t._value=e,c(t)}catch(e){u(t,e)}var r,i}function u(t,e){t._state=2,t._value=e,c(t)}function c(t){2===t._state&&0===t._deferreds.length&&o._immediateFn((function(){t._handled||o._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)i(t,t._deferreds[e]);t._deferreds=null}function s(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function l(t,e){var n=!1;try{t((function(t){n||(n=!0,a(e,t))}),(function(t){n||(n=!0,u(e,t))}))}catch(t){if(n)return;n=!0,u(e,t)}}o.prototype.catch=function(t){return this.then(null,t)},o.prototype.then=function(t,e){var n=new this.constructor(r);return i(this,new s(t,e,n)),n},o.all=function(t){var e=Array.prototype.slice.call(t);return new o((function(t,n){if(0===e.length)return t([]);var r=e.length;function o(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,(function(t){o(i,t)}),n)}e[i]=a,0==--r&&t(e)}catch(t){n(t)}}for(var i=0;i<e.length;i++)o(i,e[i])}))},o.resolve=function(t){return t&&"object"==typeof t&&t.constructor===o?t:new o((function(e){e(t)}))},o.reject=function(t){return new o((function(e,n){n(t)}))},o.race=function(t){return new o((function(e,n){for(var r=0,o=t.length;r<o;r++)t[r].then(e,n)}))},o._immediateFn="function"==typeof setImmediate?function(t){setImmediate(t)}:function(t){n(t,0)},o._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console},o._setImmediateFn=function(t){o._immediateFn=t},o._setUnhandledRejectionFn=function(t){o._unhandledRejectionFn=t},t.exports?t.exports=o:e.Promise||(e.Promise=o)}(e)}(n);var r=n.exports;return{boltExport:("undefined"!=typeof window?window:Function("return this;")()).Promise||r}}))}(void 0,y,_);var w=_.exports.boltExport,x=function(t,e){return C(document.createElement("canvas"),t,e)},O=function(t){var e=x(t.width,t.height);return S(e).drawImage(t,0,0),e},S=function(t){return t.getContext("2d")},C=function(t,e,n){return t.width=e,t.height=n,t},E=function(t){return new w((function(e,n){var r=URL.createObjectURL(t),o=new Image,i=function(){o.removeEventListener("load",a),o.removeEventListener("error",u)},a=function(){i(),e(o)},u=function(){i(),n("Unable to load data of type "+t.type+": "+r)};o.addEventListener("load",a),o.addEventListener("error",u),o.src=r,o.complete&&setTimeout(a,0)}))},k=function(t){return new w((function(e,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="blob",r.onload=function(){200===this.status&&e(this.response)},r.onerror=function(){var t,e=this;n(0===this.status?((t=new Error("No access to download image")).code=18,t.name="SecurityError",t):new Error("Error "+e.status+" downloading image"))},r.send()}))},T=function(t){return new w((function(e,n){(function(t){var e=t.split(","),n=/data:([^;]+)/.exec(e[0]);if(!n)return b.none();for(var r=n[1],o=e[1],i=atob(o),a=i.length,u=Math.ceil(a/1024),c=new Array(u),s=0;s<u;++s){for(var l=1024*s,f=Math.min(l+1024,a),d=new Array(f-l),m=l,p=0;m<f;++p,++m)d[p]=i[m].charCodeAt(0);c[s]=new Uint8Array(d)}return b.some(new Blob(c,{type:r}))})(t).fold((function(){n("uri is not base64: "+t)}),e)}))},M=function(t,e,n){return e=e||"image/png",s(HTMLCanvasElement.prototype.toBlob)?new w((function(r,o){t.toBlob((function(t){t?r(t):o()}),e,n)})):T(t.toDataURL(e,n))},D=function(t){URL.revokeObjectURL(t.src)},A=function(t){return function(t){var e=t.src;return 0===e.indexOf("data:")?T(e):k(e)}(t)},P=Array.prototype.indexOf,R=function(t,e){return n=t,r=e,P.call(n,r)>-1;var n,r},I=function(t,e){for(var n=0,r=t.length;n<r;n++){e(t[n],n)}},z=function(t,e){return function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return b.some(i);if(n(i,r))break}return b.none()}(t,e,m)},j=function(t,e){for(var n=0,r=t.length;n<r;++n){if(!0!==e(t[n],n))return!1}return!0},L=Object.keys;(function(t){if(!u(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};I(t,(function(r,o){var i=L(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],c=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!u(c))throw new Error("case arguments must be an array");e.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==c.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+c.length+" ("+c+"), got "+i);var u=function(t){var r=L(t);if(e.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+e.join(",")+"\nActual: "+r.join(","));if(!j(e,(function(t){return R(r,t)})))throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+e.join(", "));return t[a].apply(null,n)};return{fold:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(e.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+e.length);var i=e[o];return i.apply(null,n)},match:u,log:function(t){}}}}))})([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var B=function(t,e,n){var r=e.type,o=f(r),i=f(n),a=function(e,n){return t.then((function(t){return function(t,e,n){return e=e||"image/png",t.toDataURL(e,n)}(t,e,n)}))};return{getType:o,toBlob:function(){return w.resolve(e)},toDataURL:i,toBase64:function(){return n.split(",")[1]},toAdjustedBlob:function(e,n){return t.then((function(t){return M(t,e,n)}))},toAdjustedDataURL:a,toAdjustedBase64:function(t,e){return a(t,e).then((function(t){return t.split(",")[1]}))},toCanvas:function(){return t.then(O)}}},F=function(t){return function(t){return new w((function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)}))}(t).then((function(e){return B(function(t){return E(t).then((function(t){D(t);var e=x(function(t){return t.naturalWidth||t.width}(t),function(t){return t.naturalHeight||t.height}(t));return S(e).drawImage(t,0,0),e}))}(t),t,e)}))},N=function(t,e){return M(t,e).then((function(e){return B(w.resolve(t),e,t.toDataURL())}))},H=function(t,e){void 0===e&&(e=2);var n=Math.pow(10,e),r=Math.round(t*n);return Math.ceil(r/n)},V=function(t,e,n){var r=(n<0?360+n:n)*Math.PI/180,o=t.width,i=t.height,a=Math.sin(r),u=Math.cos(r),c=H(Math.abs(o*u)+Math.abs(i*a)),s=H(Math.abs(o*a)+Math.abs(i*u)),l=x(c,s),f=S(l);return f.translate(c/2,s/2),f.rotate(r),f.drawImage(t,-o/2,-i/2),N(l,e)},U=function(t,e,n){var r=x(t.width,t.height),o=S(r);return"v"===n?(o.scale(1,-1),o.drawImage(t,0,-r.height)):(o.scale(-1,1),o.drawImage(t,-r.width,0)),N(r,e)},W=function(t,e){return function(t,e){return t.toCanvas().then((function(n){return U(n,t.getType(),e)}))}(t,e)},$=function(t,e){return function(t,e){return t.toCanvas().then((function(n){return V(n,t.getType(),e)}))}(t,e)},G=function(t,e,n){return void 0===n&&(n=!1),new w((function(r){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&r({status:o.status,blob:o.response})},o.open("GET",t,!0),o.withCredentials=n,function(t,e){for(var n=L(t),r=0,o=n.length;r<o;r++){var i=n[r];e(t[i],i)}}(e,(function(t,e){o.setRequestHeader(e,t)})),o.responseType="blob",o.send()}))},K=[{code:404,message:"Could not find Image Proxy"},{code:403,message:"Rejected request"},{code:0,message:"Incorrect Image Proxy URL"}],q=[{type:"not_found",message:"Failed to load image."},{type:"key_missing",message:"The request did not include an api key."},{type:"key_not_found",message:"The provided api key could not be found."},{type:"domain_not_trusted",message:"The api key is not valid for the request origins."}],X=function(t,e){var n,r,o=(n=function(t,e){return c(t)?t[e]:void 0},r=t,I(e,(function(t,e){r=n(r,t,e)})),r);return b.from(o)},Y=function(t){var e=function(t){return"ImageProxy HTTP error: "+z(K,(function(e){return t===e.code})).fold(f("Unknown ImageProxy error"),(function(t){return t.message}))}(t);return w.reject(e)},J=function(t){return z(q,(function(e){return e.type===t})).fold(f("Unknown service error"),(function(t){return t.message}))},Q=function(t){return"ImageProxy Service error: "+function(t){try{return b.some(JSON.parse(t))}catch(t){return b.none()}}(t).bind((function(t){return X(t,["error","type"]).map(J)})).getOr("Invalid JSON in service error message")},Z=function(t){return function(t){return new w((function(e,n){var r=new FileReader;r.onload=function(){e(r.result)},r.onerror=function(t){n(t)},r.readAsText(t)}))}(t).then((function(t){var e=Q(t);return w.reject(e)}))},tt=function(t){return t<200||t>=300},et=function(t,e){var n={"Content-Type":"application/json;charset=UTF-8","tiny-api-key":e};return G(function(t,e){var n=-1===t.indexOf("?")?"?":"&";return/[?&]apiKey=/.test(t)?t:t+n+"apiKey="+encodeURIComponent(e)}(t,e),n).then((function(t){return tt(t.status)?(e=t.status,n=t.blob,function(t,e){return"application/json"===(null==e?void 0:e.type)&&(400===t||403===t||404===t||500===t)}(e,n)?Z(n):Y(e)):w.resolve(t.blob);var e,n}))},nt=function(t,e,n){return void 0===n&&(n=!1),e?et(t,e):function(t,e){return G(t,{},e).then((function(t){return tt(t.status)?Y(t.status):w.resolve(t.blob)}))}(t,n)},rt=function(t){return F(t)},ot=function(t){if(null==t)throw new Error("Node cannot be null or undefined");return{dom:t}},it={fromHtml:function(t,e){var n=(e||document).createElement("div");if(n.innerHTML=t,!n.hasChildNodes()||n.childNodes.length>1)throw new Error("HTML must have a single root node");return ot(n.childNodes[0])},fromTag:function(t,e){var n=(e||document).createElement(t);return ot(n)},fromText:function(t,e){var n=(e||document).createTextNode(t);return ot(n)},fromDom:ot,fromPoint:function(t,e,n){return b.from(t.dom.elementFromPoint(e,n)).map(ot)}};"undefined"!=typeof window?window:Function("return this;")();var at=function(t,e){return function(t,e){return z(t.dom.childNodes,(function(t){return e(it.fromDom(t))})).map(it.fromDom)}(t,(function(t){return function(t,e){var n=t.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")}(t,e)}))},ut=tinymce.util.Tools.resolve("tinymce.util.Delay"),ct=tinymce.util.Tools.resolve("tinymce.util.Promise"),st=tinymce.util.Tools.resolve("tinymce.util.URI"),lt=function(t){return t.getParam("imagetools_toolbar","rotateleft rotateright flipv fliph editimage imageoptions")},ft=function(t){return t.getParam("imagetools_proxy")},dt=function(t){var e,n,r=function(t){return/^[0-9\.]+px$/.test(t)};return e=t.style.width,n=t.style.height,e||n?r(e)&&r(n)?{w:parseInt(e,10),h:parseInt(n,10)}:null:(e=t.width,n=t.height,e&&n?{w:parseInt(e,10),h:parseInt(n,10)}:null)},mt=function(t){return{w:t.naturalWidth,h:t.naturalHeight}},pt=0,ht=function(t){return at(it.fromDom(t),"img")},gt=function(t,e){return t.dom.is(e,"figure")},vt=function(t,e){return t.dom.is(e,"img:not([data-mce-object],[data-mce-placeholder])")},bt=function(t,e){var n=function(e){return vt(t,e)&&(xt(t,e)||Ot(t,e)||c(ft(t)))};return gt(t,e)?ht(e).bind((function(t){return n(t.dom)?b.some(t.dom):b.none()})):n(e)?b.some(e):b.none()},yt=function(t,e){t.notificationManager.open({text:e,type:"error"})},_t=function(t){var e=t.selection.getNode(),n=t.dom.getParent(e,"figure.image");return null!==n&>(t,n)?ht(n):vt(t,e)?b.some(it.fromDom(e)):b.none()},wt=function(t,e,n){var r=e.match(/(?:\/|^)(([^\/\?]+)\.(?:[a-z0-9.]+))(?:\?|$)/i);return c(r)?t.dom.encode(r[n]):null},xt=function(t,e){var n=e.src;return 0===n.indexOf("data:")||0===n.indexOf("blob:")||new st(n).host===t.documentBaseURI.host},Ot=function(t,e){return-1!==a.inArray(function(t){return t.getParam("imagetools_cors_hosts",[],"string[]")}(t),new st(e.src).host)},St=function(t,e){if(Ot(t,e))return nt(e.src,null,function(t,e){return-1!==a.inArray(function(t){return t.getParam("imagetools_credentials_hosts",[],"string[]")}(t),new st(e.src).host)}(t,e));if(!xt(t,e)){var n=ft(t),r=n+(-1===n.indexOf("?")?"?":"&")+"url="+encodeURIComponent(e.src),o=function(t){return t.getParam("api_key",t.getParam("imagetools_api_key","","string"),"string")}(t);return nt(r,o,!1)}return A(e)},Ct=function(t,e){return function(t){return b.from(t.getParam("imagetools_fetch_image",null,"function"))}(t).fold((function(){return St(t,e)}),(function(t){return t(e)}))},Et=function(t,e){var n=t.editorUpload.blobCache.getByUri(e.src);return n?ct.resolve(n.blob()):Ct(t,e)},kt=function(t){ut.clearTimeout(t.get())},Tt=function(t,e,n,r,o,i,a){return n.toBlob().then((function(u){var s,l,f,d,m=t.editorUpload.blobCache;s=i.src;var p=e.type===u.type;return function(t){return t.getParam("images_reuse_filename",!1,"boolean")}(t)&&(d=m.getByUri(s),c(d)?(s=d.uri(),l=d.name(),f=d.filename()):(l=wt(t,s,2),f=wt(t,s,1))),d=m.create({id:"imagetools"+pt++,blob:u,base64:n.toBase64(),uri:s,name:l,filename:p?f:void 0}),m.add(d),t.undoManager.transact((function(){var e=function(){t.$(i).off("load",e),t.nodeChanged(),r?t.editorUpload.uploadImagesAuto():(kt(o),function(t,e){var n=ut.setEditorTimeout(t,(function(){t.editorUpload.uploadImagesAuto()}),function(t){return t.getParam("images_upload_timeout",3e4,"number")}(t));e.set(n)}(t,o))};t.$(i).on("load",e),a&&t.$(i).attr({width:a.w,height:a.h}),t.$(i).attr({src:d.blobUri()}).removeAttr("data-mce-src")})),d}))},Mt=function(t,e,n,r){return function(){return _t(t).fold((function(){yt(t,"Could not find selected image")}),(function(o){return t._scanForImages().then((function(){return Et(t,o.dom)})).then((function(i){return rt(i).then(n).then((function(n){return Tt(t,i,n,!1,e,o.dom,r)}))})).catch((function(e){yt(t,e)}))}))}},Dt=function(t,e,n){return function(){var r=_t(t).map((function(t){var e=dt(t.dom);return e?{w:e.h,h:e.w}:null})).getOrNull();return Mt(t,e,(function(t){return $(t,n)}),r)()}},At=function(t,e,n){return function(){return Mt(t,e,(function(t){return W(t,n)}))()}},Pt=function(t,e,n,r,o){return function(t){return E(t)}(o).then((function(t){var e=mt(t);return r.w===e.w&&r.h===e.h||dt(n)&&function(t,e){var n,r;e&&(n=t.style.width,r=t.style.height,(n||r)&&(t.style.width=e.w+"px",t.style.height=e.h+"px",t.removeAttribute("data-mce-style")),n=t.width,r=t.height,(n||r)&&(t.setAttribute("width",String(e.w)),t.setAttribute("height",String(e.h))))}(n,e),URL.revokeObjectURL(t.src),o})).then(rt).then((function(r){return Tt(t,o,r,!0,e,n)}))},Rt=function(t,e){return function(){var n=_t(t),r=n.map((function(t){return mt(t.dom)}));n.each((function(o){bt(t,o.dom).each((function(i){Et(t,o.dom).then((function(o){var i=function(t){return{blob:t,url:URL.createObjectURL(t)}}(o);t.windowManager.open({title:"Edit Image",size:"large",body:{type:"panel",items:[{type:"imagetools",name:"imagetools",label:"Edit Image",currentState:i}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0,disabled:!0}],onSubmit:function(o){var i=o.getData().imagetools.blob;n.each((function(n){r.each((function(r){Pt(t,e,n.dom,r,i)}))})),o.close()},onCancel:l,onAction:function(t,e){switch(e.name){case"save-state":e.value?t.enable("save"):t.disable("save");break;case"disable":t.disable("save"),t.disable("cancel");break;case"enable":t.enable("cancel")}}})}))}))}))}};i.add("imagetools",(function(t){var e=o(0),n=o(null);!function(t,e){a.each({mceImageRotateLeft:Dt(t,e,-90),mceImageRotateRight:Dt(t,e,90),mceImageFlipVertical:At(t,e,"v"),mceImageFlipHorizontal:At(t,e,"h"),mceEditImage:Rt(t,e)},(function(e,n){t.addCommand(n,e)}))}(t,e),function(t){var e=[],n=function(e){return function(){return t.execCommand(e)}},r=function(){return _t(t).exists((function(e){return bt(t,e.dom).isSome()}))},o=function(t){var n=function(e){return t.setDisabled(!e)};return n(r()),e=e.concat([n]),function(){e=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n}(e,(function(t){return t!==n}))}};t.on("NodeChange",(function(){var t=r();I(e,(function(e){return e(t)}))})),t.ui.registry.addButton("rotateleft",{tooltip:"Rotate counterclockwise",icon:"rotate-left",onAction:n("mceImageRotateLeft"),onSetup:o}),t.ui.registry.addButton("rotateright",{tooltip:"Rotate clockwise",icon:"rotate-right",onAction:n("mceImageRotateRight"),onSetup:o}),t.ui.registry.addButton("flipv",{tooltip:"Flip vertically",icon:"flip-vertically",onAction:n("mceImageFlipVertical"),onSetup:o}),t.ui.registry.addButton("fliph",{tooltip:"Flip horizontally",icon:"flip-horizontally",onAction:n("mceImageFlipHorizontal"),onSetup:o}),t.ui.registry.addButton("editimage",{tooltip:"Edit image",icon:"edit-image",onAction:n("mceEditImage"),onSetup:o}),t.ui.registry.addButton("imageoptions",{tooltip:"Image options",icon:"image",onAction:n("mceImage")}),t.ui.registry.addContextMenu("imagetools",{update:function(e){return bt(t,e).map((function(t){return{text:"Edit image",icon:"edit-image",onAction:n("mceEditImage")}})).toArray()}})}(t),function(t){t.ui.registry.addContextToolbar("imagetools",{items:lt(t),predicate:function(e){return bt(t,e).isSome()},position:"node",scope:"node"})}(t),function(t,e,n){t.on("NodeChange",(function(r){var o=n.get(),i=bt(t,r.element);o&&!i.exists((function(t){return o.src===t.src}))&&(kt(e),t.editorUpload.uploadImagesAuto(),n.set(null)),i.each(n.set)}))}(t,e,n)}))}()}).call(this,n("c8ba"))},"9f7f":function(t,e,n){"use strict";var r=n("d039"),o=n("cfe9").RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),u=i||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:u,MISSED_STICKY:a,UNSUPPORTED_Y:i}},"9ffa":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITF14=e.ITF=void 0;var r=i(n("3c7c")),o=i(n("07df"));function i(t){return t&&t.__esModule?t:{default:t}}e.ITF=r.default,e.ITF14=o.default},a04b:function(t,e,n){"use strict";var r=n("c04e"),o=n("d9b5");t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},a15b:function(t,e,n){"use strict";var r=n("23e7"),o=n("e330"),i=n("44ad"),a=n("fc6a"),u=n("a640"),c=o([].join);r({target:"Array",proto:!0,forced:i!==Object||!u("join",",")},{join:function(t){return c(a(this),void 0===t?",":t)}})},a2b0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=[];return function t(n){if(Array.isArray(n))for(var r=0;r<n.length;r++)t(n[r]);else n.text=n.text||"",n.data=n.data||"",e.push(n)}(t),e}},a434:function(t,e,n){"use strict";var r=n("23e7"),o=n("7b0b"),i=n("23cb"),a=n("5926"),u=n("07fa"),c=n("3a34"),s=n("3511"),l=n("65f0"),f=n("8418"),d=n("083a"),m=n("1dde")("splice"),p=Math.max,h=Math.min;r({target:"Array",proto:!0,forced:!m},{splice:function(t,e){var n,r,m,g,v,b,y=o(this),_=u(y),w=i(t,_),x=arguments.length;for(0===x?n=r=0:1===x?(n=0,r=_-w):(n=x-2,r=h(p(a(e),0),_-w)),s(_+n-r),m=l(y,r),g=0;g<r;g++)(v=w+g)in y&&f(m,g,y[v]);if(m.length=r,n<r){for(g=w;g<_-r;g++)b=g+n,(v=g+r)in y?y[b]=y[v]:d(y,b);for(g=_;g>_-r+n;g--)d(y,g-1)}else if(n>r)for(g=_-r;g>w;g--)b=g+n-1,(v=g+r-1)in y?y[b]=y[v]:d(y,b);for(g=0;g<n;g++)y[g+w]=arguments[g+2];return c(y,_-r+n),m}})},a4d3:function(t,e,n){"use strict";n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a4e7:function(t,e,n){"use strict";var r=n("23e7"),o=n("395e");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("isSupersetOf")},{isSupersetOf:o})},a5d2:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("c243"),i=a(n("5726"));function a(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var t=o.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,i.default)(this.data,t,"01"),text:this.text}}}]),e}(a(n("e762")).default);e.default=u},a5f7:function(t,e,n){"use strict";var r=n("dc19"),o=n("cb27"),i=n("83b9"),a=n("8e16"),u=n("7f65"),c=n("384f"),s=n("5388"),l=o.has,f=o.remove;t.exports=function(t){var e=r(this),n=u(t),o=i(e);return a(e)<=n.size?c(e,(function(t){n.includes(t)&&f(o,t)})):s(n.getIterator(),(function(t){l(e,t)&&f(o,t)})),o}},a630:function(t,e,n){"use strict";var r=n("23e7"),o=n("4df4");r({target:"Array",stat:!0,forced:!n("1c7e")((function(t){Array.from(t)}))},{from:o})},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},a9e3:function(t,e,n){"use strict";var r=n("23e7"),o=n("c430"),i=n("83ab"),a=n("cfe9"),u=n("428f"),c=n("e330"),s=n("94ca"),l=n("1a2d"),f=n("7156"),d=n("3a9b"),m=n("d9b5"),p=n("c04e"),h=n("d039"),g=n("241c").f,v=n("06cf").f,b=n("9bf2").f,y=n("408a"),_=n("58a8").trim,w=a.Number,x=u.Number,O=w.prototype,S=a.TypeError,C=c("".slice),E=c("".charCodeAt),k=function(t){var e=p(t,"number");return"bigint"==typeof e?e:T(e)},T=function(t){var e,n,r,o,i,a,u,c,s=p(t,"number");if(m(s))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=_(s),43===(e=E(s,0))||45===e){if(88===(n=E(s,2))||120===n)return NaN}else if(48===e){switch(E(s,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=C(s,2)).length,u=0;u<a;u++)if((c=E(i,u))<48||c>o)return NaN;return parseInt(i,r)}return+s},M=s("Number",!w(" 0o1")||!w("0b1")||w("+0x1")),D=function(t){return d(O,t)&&h((function(){y(t)}))},A=function(t){var e=arguments.length<1?0:w(k(t));return D(this)?f(Object(e),this,A):e};A.prototype=O,M&&!o&&(O.constructor=A),r({global:!0,constructor:!0,wrap:!0,forced:M},{Number:A});var P=function(t,e){for(var n,r=i?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)l(e,n=r[o])&&!l(t,n)&&b(t,n,v(e,n))};o&&x&&P(u.Number,x),(M||o)&&P(u.Number,w)},aab3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(n("5261")),o=i(n("ca32"));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){var e={};for(var n in o.default)o.default.hasOwnProperty(n)&&(t.hasAttribute("jsbarcode-"+n.toLowerCase())&&(e[n]=t.getAttribute("jsbarcode-"+n.toLowerCase())),t.hasAttribute("data-"+n.toLowerCase())&&(e[n]=t.getAttribute("data-"+n.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,r.default)(e)}},ab13:function(t,e,n){"use strict";var r=n("b622")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},ab36:function(t,e,n){"use strict";var r=n("861d"),o=n("9112");t.exports=function(t,e){r(e)&&"cause"in e&&o(t,"cause",e.cause)}},ab5b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTotalWidthOfEncodings=e.calculateEncodingAttributes=e.getBarcodePadding=e.getEncodingHeight=e.getMaximumHeightOfEncodings=void 0;var r,o=n("fd7c"),i=(r=o)&&r.__esModule?r:{default:r};function a(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function u(t,e,n){if(n.displayValue&&e<t){if("center"==n.textAlign)return Math.floor((t-e)/2);if("left"==n.textAlign)return 0;if("right"==n.textAlign)return Math.floor(t-e)}return 0}function c(t,e,n){var r;if(n)r=n;else{if("undefined"==typeof document)return 0;r=document.createElement("canvas").getContext("2d")}r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var o=r.measureText(t);return o?o.width:0}e.getMaximumHeightOfEncodings=function(t){for(var e=0,n=0;n<t.length;n++)t[n].height>e&&(e=t[n].height);return e},e.getEncodingHeight=a,e.getBarcodePadding=u,e.calculateEncodingAttributes=function(t,e,n){for(var r=0;r<t.length;r++){var o,s=t[r],l=(0,i.default)(e,s.options);o=l.displayValue?c(s.text,l,n):0;var f=s.data.length*l.width;s.width=Math.ceil(Math.max(o,f)),s.height=a(s,l),s.barcodePadding=u(o,f,l)}},e.getTotalWidthOfEncodings=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].width;return e}},ac1f:function(t,e,n){"use strict";var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},addb:function(t,e,n){"use strict";var r=n("f36a"),o=Math.floor,i=function(t,e){var n=t.length;if(n<8)for(var a,u,c=1;c<n;){for(u=c,a=t[c];u&&e(t[u-1],a)>0;)t[u]=t[--u];u!==c++&&(t[u]=a)}else for(var s=o(n/2),l=i(r(t,0,s),e),f=i(r(t,s),e),d=l.length,m=f.length,p=0,h=0;p<d||h<m;)t[p+h]=p<d&&h<m?e(l[p],f[h])<=0?l[p++]:f[h++]:p<d?l[p++]:f[h++];return t};t.exports=i},ade3:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("53ca");n("8172"),n("d9e2"),n("efec"),n("a9e3");function o(t){var e=function(t,e){if("object"!=Object(r.a)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=Object(r.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Object(r.a)(e)?e:e+""}function i(t,e,n){return(e=o(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},ae68:function(t,e){!function(){"use strict";var t=Object.hasOwnProperty,e=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.Env"),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),o=function(t){return t.getParam("min_height",t.getElement().offsetHeight,"number")},i=function(t,e,n,o,a){r.setEditorTimeout(t,(function(){c(t,e),n--?i(t,e,n,o,a):a&&a()}),o)},a=function(t,e){var n=t.getBody();n&&(n.style.overflowY=e?"":"hidden",e||(n.scrollTop=0))},u=function(t,e,n,r){var o=parseInt(t.getStyle(e,n,r),10);return isNaN(o)?0:o},c=function(t,e,r){var i=t.dom,s=t.getDoc();if(s)if(function(t){return t.plugins.fullscreen&&t.plugins.fullscreen.isFullscreen()}(t))a(t,!0);else{var l=s.documentElement,f=function(t){return t.getParam("autoresize_bottom_margin",50,"number")}(t),d=o(t),m=u(i,l,"margin-top",!0),p=u(i,l,"margin-bottom",!0),h=l.offsetHeight+m+p+f;h<0&&(h=0);var g=t.getContainer().offsetHeight-t.getContentAreaContainer().offsetHeight;h+g>o(t)&&(d=h+g);var v=function(t){return t.getParam("max_height",0,"number")}(t);if(v&&d>v?(d=v,a(t,!0)):a(t,!1),d!==e.get()){var b=d-e.get();if(i.setStyle(t.getContainer(),"height",d+"px"),e.set(d),function(t){t.fire("ResizeEditor")}(t),n.browser.isSafari()&&n.mac){var y=t.getWin();y.scrollTo(y.pageXOffset,y.pageYOffset)}t.hasFocus()&&function(t){if("setcontent"===(null==t?void 0:t.type.toLowerCase())){var e=t;return!0===e.selection||!0===e.paste}return!1}(r)&&t.selection.scrollIntoView(),n.webkit&&b<0&&c(t,e,r)}}};e.add("autoresize",(function(e){var n,r,o;if(n=e.settings,r="resize",t.call(n,r)||(e.settings.resize=!1),!e.inline){var a=(o=0,{get:function(){return o},set:function(t){o=t}});!function(t,e){t.addCommand("mceAutoResize",(function(){c(t,e)}))}(e,a),function(t,e){t.on("init",(function(){var e=function(t){return t.getParam("autoresize_overflow_padding",1,"number")}(t),n=t.dom;n.setStyles(t.getDoc().documentElement,{height:"auto"}),n.setStyles(t.getBody(),{paddingLeft:e,paddingRight:e,"min-height":0})})),t.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",(function(n){c(t,e,n)})),function(t){return t.getParam("autoresize_on_init",!0,"boolean")}(t)&&t.on("init",(function(){i(t,e,20,100,(function(){i(t,e,5,1e3)}))}))}(e,a)}}))}()},ae93:function(t,e,n){"use strict";var r,o,i,a=n("d039"),u=n("1626"),c=n("861d"),s=n("7c73"),l=n("e163"),f=n("cb2d"),d=n("b622"),m=n("c430"),p=d("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):h=!0),!c(r)||a((function(){var t={};return r[p].call(t)!==t}))?r={}:m&&(r=s(r)),u(r[p])||f(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},aeb0:function(t,e,n){"use strict";var r=n("9bf2").f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){"use strict";var r=n("83ab"),o=n("d039");t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b041:function(t,e,n){"use strict";var r=n("00ee"),o=n("f5df");t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(t,e,n){"use strict";var r=n("83ab"),o=n("5e77").EXISTS,i=n("e330"),a=n("edd0"),u=Function.prototype,c=i(u.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(s.exec);r&&!o&&a(u,"name",{configurable:!0,get:function(){try{return l(s,c(this))[1]}catch(t){return""}}})},b1d8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=u(n("aab3")),i=u(n("752b")),a=n("dca2");function u(t){return t&&t.__esModule?t:{default:t}}function c(t){if("string"==typeof t)return function(t){var e=document.querySelectorAll(t);if(0===e.length)return;for(var n=[],r=0;r<e.length;r++)n.push(c(e[r]));return n}(t);if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++)e.push(c(t[n]));return e}if("undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLImageElement)return u=t,{element:s=document.createElement("canvas"),options:(0,o.default)(u),renderer:i.default.CanvasRenderer,afterRender:function(){u.setAttribute("src",s.toDataURL())}};if(t&&t.nodeName&&"svg"===t.nodeName.toLowerCase()||"undefined"!=typeof SVGElement&&t instanceof SVGElement)return{element:t,options:(0,o.default)(t),renderer:i.default.SVGRenderer};if("undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement)return{element:t,options:(0,o.default)(t),renderer:i.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:i.default.CanvasRenderer};if(t&&"object"===(void 0===t?"undefined":r(t))&&!t.nodeName)return{element:t,renderer:i.default.ObjectRenderer};throw new a.InvalidElementException;var u,s}e.default=c},b42e:function(t,e,n){"use strict";var r=Math.ceil,o=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?o:r)(e)}},b4bc:function(t,e,n){"use strict";var r=n("dc19"),o=n("cb27").has,i=n("8e16"),a=n("7f65"),u=n("384f"),c=n("5388"),s=n("2a62");t.exports=function(t){var e=r(this),n=a(t);if(i(e)<=n.size)return!1!==u(e,(function(t){if(n.includes(t))return!1}),!0);var l=n.getIterator();return!1!==c(l,(function(t){if(o(e,t))return s(l,"normal",!1)}))}},b4f8:function(t,e,n){"use strict";var r=n("23e7"),o=n("d066"),i=n("1a2d"),a=n("577e"),u=n("5692"),c=n("0b43"),s=u("string-to-symbol-registry"),l=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=a(t);if(i(s,e))return s[e];var n=o("Symbol")(e);return s[e]=n,l[n]=e,n}})},b50d:function(t,e,n){"use strict";var r=n("c532"),o=n("467f"),i=n("30b5"),a=n("c345"),u=n("3934"),c=n("2d83");t.exports=function(t){return new Promise((function(e,s){var l=t.data,f=t.headers;r.isFormData(l)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",p=t.auth.password||"";f.Authorization="Basic "+btoa(m+":"+p)}if(d.open(t.method.toUpperCase(),i(t.url,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:t,request:d};o(e,s,r),d=null}},d.onerror=function(){s(c("Network Error",t,null,d)),d=null},d.ontimeout=function(){s(c("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var h=n("7aac"),g=(t.withCredentials||u(t.url))&&t.xsrfCookieName?h.read(t.xsrfCookieName):void 0;g&&(f[t.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(f,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete f[e]:d.setRequestHeader(e,t)})),t.withCredentials&&(d.withCredentials=!0),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),s(t),d=null)})),void 0===l&&(l=null),d.send(l)}))}},b575:function(t,e,n){"use strict";var r,o,i,a,u,c=n("cfe9"),s=n("157a"),l=n("0366"),f=n("2cf4").set,d=n("01b4"),m=n("52c8"),p=n("ebc1"),h=n("ec87"),g=n("9adc"),v=c.MutationObserver||c.WebKitMutationObserver,b=c.document,y=c.process,_=c.Promise,w=s("queueMicrotask");if(!w){var x=new d,O=function(){var t,e;for(g&&(t=y.domain)&&t.exit();e=x.get();)try{e()}catch(t){throw x.head&&r(),t}t&&t.enter()};m||g||h||!v||!b?!p&&_&&_.resolve?((a=_.resolve(void 0)).constructor=_,u=l(a.then,a),r=function(){u(O)}):g?r=function(){y.nextTick(O)}:(f=l(f,c),r=function(){f(O)}):(o=!0,i=b.createTextNode(""),new v(O).observe(i,{characterData:!0}),r=function(){i.data=o=!o}),w=function(t){x.head||r(),x.add(t)}}t.exports=w},b5db:function(t,e,n){"use strict";var r=n("cfe9").navigator,o=r&&r.userAgent;t.exports=o?String(o):""},b622:function(t,e,n){"use strict";var r=n("cfe9"),o=n("5692"),i=n("1a2d"),a=n("90e3"),u=n("04f8"),c=n("fdbf"),s=r.Symbol,l=o("wks"),f=c?s.for||s:s&&s.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=u&&i(s,t)?s[t]:f("Symbol."+t)),l[t]}},b636:function(t,e,n){"use strict";n("e065")("asyncIterator")},b64b:function(t,e,n){"use strict";var r=n("23e7"),o=n("7b0b"),i=n("df75");r({target:"Object",stat:!0,forced:n("d039")((function(){i(1)}))},{keys:function(t){return i(o(t))}})},b680:function(t,e,n){"use strict";var r=n("23e7"),o=n("e330"),i=n("5926"),a=n("408a"),u=n("1148"),c=n("d039"),s=RangeError,l=String,f=Math.floor,d=o(u),m=o("".slice),p=o(1..toFixed),h=function(t,e,n){return 0===e?n:e%2==1?h(t,e-1,n*t):h(t*t,e/2,n)},g=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=f(o/1e7)},v=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=f(r/e),r=r%e*1e7},b=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=l(t[e]);n=""===n?r:n+d("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:c((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!c((function(){p({})}))},{toFixed:function(t){var e,n,r,o,u=a(this),c=i(t),f=[0,0,0,0,0,0],p="",y="0";if(c<0||c>20)throw new s("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return l(u);if(u<0&&(p="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*h(2,69,1))-69)<0?u*h(2,-e,1):u/h(2,e,1),n*=4503599627370496,(e=52-e)>0){for(g(f,0,n),r=c;r>=7;)g(f,1e7,0),r-=7;for(g(f,h(10,r,1),0),r=e-1;r>=23;)v(f,1<<23),r-=23;v(f,1<<r),g(f,1,1),v(f,2),y=b(f)}else g(f,0,n),g(f,1<<-e,0),y=b(f)+d("0",c);return y=c>0?p+((o=y.length)<=c?"0."+d("0",c-o)+y:m(y,0,o-c)+"."+m(y,o-c)):p+y}})},b727:function(t,e,n){"use strict";var r=n("0366"),o=n("e330"),i=n("44ad"),a=n("7b0b"),u=n("07fa"),c=n("65f0"),s=o([].push),l=function(t){var e=1===t,n=2===t,o=3===t,l=4===t,f=6===t,d=7===t,m=5===t||f;return function(p,h,g,v){for(var b,y,_=a(p),w=i(_),x=u(w),O=r(h,g),S=0,C=v||c,E=e?C(p,x):n||d?C(p,0):void 0;x>S;S++)if((m||S in w)&&(y=O(b=w[S],S,_),t))if(e)E[S]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:s(E,b)}else switch(t){case 4:return!1;case 7:s(E,b)}return f?-1:o||l?l:E}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},b980:function(t,e,n){"use strict";var r=n("d039"),o=n("5c6c");t.exports=!r((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},bb2f:function(t,e,n){"use strict";var r=n("d039");t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bb5d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f08e"),o=function(t){return t.match(new RegExp("^"+r.A_CHARS+"*"))[0].length},i=function(t){return t.match(new RegExp("^"+r.B_CHARS+"*"))[0].length},a=function(t){return t.match(new RegExp("^"+r.C_CHARS+"*"))[0]};function u(t,e){var n=e?r.A_CHARS:r.B_CHARS,o=t.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(o)return o[1]+String.fromCharCode(204)+c(t.substring(o[1].length));var i=t.match(new RegExp("^"+n+"+"))[0];return i.length===t.length?t:i+String.fromCharCode(e?205:206)+u(t.substring(i.length),!e)}function c(t){var e=a(t),n=e.length;if(n===t.length)return t;t=t.substring(n);var r=o(t)>=i(t);return e+String.fromCharCode(r?206:205)+u(t,r)}e.default=function(t){var e=void 0;if(a(t).length>=2)e=r.C_START_CHAR+c(t);else{var n=o(t)>i(t);e=(n?r.A_START_CHAR:r.B_START_CHAR)+u(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(t,e){return String.fromCharCode(203)+e}))}},bc3a:function(t,e,n){t.exports=n("cee4")},bc54:function(t,e,n){n("7c4f")},bcc9:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("c7eb"),o=n("1da1"),i=(n("2909"),n("99af"),n("7db0"),n("e260"),n("d81d"),n("14d9"),n("b0c0"),n("b64b"),n("d3b7"),n("25f0"),n("3ca3"),n("159b"),n("ddb0"),n("2b3d"),n("bf19"),n("9861"),n("88a7"),n("271a"),n("5494"),n("98fc"),n("7694"));function a(){return u.apply(this,arguments)}function u(){return(u=Object(o.a)(Object(r.a)().mark((function t(){var e,n,o,a,u,c,s=arguments;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=s.length>0&&void 0!==s[0]?s[0]:[],n=s.length>1&&void 0!==s[1]?s[1]:null,!e.length){t.next=15;break}return e=e.map((function(t){if(t.url&&t.url.length&&t.url.indexOf("fileName=")>-1&&t.url.split("fileName=").length>1){var e=t.url.split("fileName=")[1];return e.split("&originalName=").length>1?{name:e.split("&originalName=")[0],originalName:e.split("&originalName=")[1]}:{name:e,originalName:t.name}}return!1})),t.prev=4,t.next=7,Object(i.a)(e);case 7:(o=t.sent).code&&"0000"!==o.code?this.$message.error(o.message):(a=new Blob([o.data],{type:"application/zip"}),u=window.URL.createObjectURL(a),(c=document.createElement("a")).href=u,c.download="".concat(n?n+"_":"","批量下载_").concat((new Date).getTime(),".zip"),document.body.appendChild(c),c.click()),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(4),this.$message.error(t.t0.message||"批量下载失败");case 15:case"end":return t.stop()}}),t,this,[[4,11]])})))).apply(this,arguments)}},bd8a:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.api=e}return r(t,[{key:"handleCatch",value:function(t){if("InvalidInputException"!==t.name)throw t;if(this.api._options.valid===this.api._defaults.valid)throw t.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(t){try{var e=t.apply(void 0,arguments);return this.api._options.valid(!0),e}catch(t){return this.handleCatch(t),this.api}}}]),t}();e.default=o},bdfe:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("c243"),i=a(n("5726"));function a(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.fontSize=!n.flat&&n.fontSize>10*n.width?10*n.width:n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:o.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:o.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:o.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){return{data:[o.SIDE_BIN,this.leftEncode(),o.MIDDLE_BIN,this.rightEncode(),o.SIDE_BIN].join(""),text:this.text}}}]),e}(a(n("e762")).default);e.default=u},be5e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("fd7c"),a=(r=i)&&r.__esModule?r:{default:r},u=n("ab5b");var c="http://www.w3.org/2000/svg",s=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.svg=e,this.encodings=n,this.options=r,this.document=r.xmlDocument||document}return o(t,[{key:"render",value:function(){var t=this.options.marginLeft;this.prepareSVG();for(var e=0;e<this.encodings.length;e++){var n=this.encodings[e],r=(0,a.default)(this.options,n.options),o=this.createGroup(t,r.marginTop,this.svg);this.setGroupOptions(o,r),this.drawSvgBarcode(o,r,n),this.drawSVGText(o,r,n),t+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,u.calculateEncodingAttributes)(this.encodings,this.options);var t=(0,u.getTotalWidthOfEncodings)(this.encodings),e=(0,u.getMaximumHeightOfEncodings)(this.encodings),n=t+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,e),this.options.background&&this.drawRect(0,0,n,e,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(t,e,n){var r,o=n.data;r="top"==e.textPosition?e.fontSize+e.textMargin:0;for(var i=0,a=0,u=0;u<o.length;u++)a=u*e.width+n.barcodePadding,"1"===o[u]?i++:i>0&&(this.drawRect(a-e.width*i,r,e.width*i,e.height,t),i=0);i>0&&this.drawRect(a-e.width*(i-1),r,e.width*i,e.height,t)}},{key:"drawSVGText",value:function(t,e,n){var r,o,i=this.document.createElementNS(c,"text");e.displayValue&&(i.setAttribute("style","font:"+e.fontOptions+" "+e.fontSize+"px "+e.font),o="top"==e.textPosition?e.fontSize-e.textMargin:e.height+e.textMargin+e.fontSize,"left"==e.textAlign||n.barcodePadding>0?(r=0,i.setAttribute("text-anchor","start")):"right"==e.textAlign?(r=n.width-1,i.setAttribute("text-anchor","end")):(r=n.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",r),i.setAttribute("y",o),i.appendChild(this.document.createTextNode(n.text)),t.appendChild(i))}},{key:"setSvgAttributes",value:function(t,e){var n=this.svg;n.setAttribute("width",t+"px"),n.setAttribute("height",e+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+t+" "+e),n.setAttribute("xmlns",c),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,e,n){var r=this.document.createElementNS(c,"g");return r.setAttribute("transform","translate("+t+", "+e+")"),n.appendChild(r),r}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("style","fill:"+e.lineColor+";")}},{key:"drawRect",value:function(t,e,n,r,o){var i=this.document.createElementNS(c,"rect");return i.setAttribute("x",t),i.setAttribute("y",e),i.setAttribute("width",n),i.setAttribute("height",r),o.appendChild(i),i}}]),t}();e.default=s},be98:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=u(n("5726")),i=u(n("e762")),a=n("e8b2");function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],l=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],f=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(r.isValid=!1,-1!==t.search(/^[0-9]{6}$/))r.middleDigits=t,r.upcA=d(t,"0"),r.text=n.text||""+r.upcA[0]+t+r.upcA[r.upcA.length-1],r.isValid=!0;else{if(-1===t.search(/^[01][0-9]{7}$/))return c(r);if(r.middleDigits=t.substring(1,t.length-1),r.upcA=d(r.middleDigits,t[0]),r.upcA[r.upcA.length-1]!==t[t.length-1])return c(r);r.isValid=!0}return r.displayValue=n.displayValue,n.fontSize>10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=this.encodeMiddleDigits(),{data:t+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=this.upcA[this.upcA.length-1],n=l[parseInt(e)][parseInt(t)];return(0,o.default)(this.middleDigits,n)}}]),e}(i.default);function d(t,e){for(var n=parseInt(t[t.length-1]),r=s[n],o="",i=0,u=0;u<r.length;u++){var c=r[u];o+="X"===c?t[i++]:c}return""+(o=""+e+o)+(0,a.checksum)(o)}e.default=f},bf19:function(t,e,n){"use strict";var r=n("23e7"),o=n("c65b");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},bfce:function(t,e,n){"use strict";var r=n("53ca"),o=(n("e9c4"),n("d3b7"),n("25f0"),n("f579")),i=n.n(o),a=n("658f"),u=n.n(a),c={name:"QrCodeComponent",props:{options:{type:Object,default:function(){}},dataModels:{type:Object,default:function(){}},content:{type:String,default:""},isFixedContent:{type:Boolean,default:!1}},components:{VueBarcode:i.a,VueQr:u.a},computed:{codeValue:function(){return this.isFixedContent?this.content:this.options.codeValue}},methods:{getImageData:function(){var t="",e=this.$refs.codeRef;if(e)if("qr"===this.options.mode)t=e.imgUrl;else if("bar"===this.options.mode)try{var n=e.$el.getElementsByTagName("img");n&&n.length&&(t=n[0].src)}catch(t){}return t}},watch:{dataModels:{immediate:!0,deep:!0,handler:function(t){if(this.options.relatedField&&""!==this.options.relatedField)for(var e in t)e===this.options.relatedField&&("object"===Object(r.a)(t[e])?this.options.codeValue=JSON.stringify(t[e]):this.options.codeValue=t[e].toString())}}}},s=n("2877"),l=Object(s.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",["qr"===t.options.mode?n("vue-qr",{ref:"codeRef",attrs:{correctLevel:3,margin:5,size:t.options.codeSize,text:t.codeValue}}):"bar"===t.options.mode?n("vue-barcode",{ref:"codeRef",attrs:{displayValue:t.options.displayCodeValue,height:t.options.codeHeight,value:t.codeValue,"element-tag":"img",font:"-apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif","font-size":"14",width:"1"}},[t._v(" 请输入或配置条码内容(CODE128) ")]):t._e()],1)}),[],!1,null,null,null);e.a=l.exports},c04e:function(t,e,n){"use strict";var r=n("c65b"),o=n("861d"),i=n("d9b5"),a=n("dc4a"),u=n("485a"),c=n("b622"),s=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,c=a(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!o(n)||i(n))return n;throw new s("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},c17b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.codabar=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("e762");var a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),0===t.search(/^[0-9\-\$\:\.\+\/]+$/)&&(t="A"+t+"A");var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),n));return r.text=r.options.text||r.text.replace(/[A-D]/g,""),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){for(var t=[],e=this.getEncodings(),n=0;n<this.data.length;n++)t.push(e[this.data.charAt(n)]),n!==this.data.length-1&&t.push("0");return{text:this.text,data:t.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(((r=i)&&r.__esModule?r:{default:r}).default);e.codabar=a},c1a1:function(t,e,n){"use strict";var r=n("23e7"),o=n("b4bc");r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("isDisjointFrom")},{isDisjointFrom:o})},c243:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SIDE_BIN="101",e.MIDDLE_BIN="01010",e.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},e.EAN2_STRUCTURE=["LL","LG","GL","GG"],e.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],e.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},c32d:function(t,e){t.exports=require("moment")},c345:function(t,e,n){"use strict";var r=n("c532"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c401:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},c430:function(t,e,n){"use strict";t.exports=!1},c513:function(t,e,n){"use strict";var r=n("23e7"),o=n("1a2d"),i=n("d9b5"),a=n("0d51"),u=n("5692"),c=n("0b43"),s=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!i(t))throw new TypeError(a(t)+" is not a symbol");if(o(s,t))return s[t]}})},c532:function(t,e,n){"use strict";var r=n("1d2b"),o=n("c7ce"),i=Object.prototype.toString;function a(t){return"[object Array]"===i.call(t)}function u(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===i.call(t)}function s(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:a,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:u,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:c,isStream:function(t){return u(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:s,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)s(arguments[r],n);return e},extend:function(t,e,n){return s(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},c5f1:function(t,e,n){"use strict";n("e7c2")},c65b:function(t,e,n){"use strict";var r=n("40d5"),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},c6b6:function(t,e,n){"use strict";var r=n("e330"),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},c6cd:function(t,e,n){"use strict";var r=n("c430"),o=n("cfe9"),i=n("6374"),a=t.exports=o["__core-js_shared__"]||i("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.38.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},c6d2:function(t,e,n){"use strict";var r=n("23e7"),o=n("c65b"),i=n("c430"),a=n("5e77"),u=n("1626"),c=n("dcc3"),s=n("e163"),l=n("d2bb"),f=n("d44e"),d=n("9112"),m=n("cb2d"),p=n("b622"),h=n("3f8c"),g=n("ae93"),v=a.PROPER,b=a.CONFIGURABLE,y=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x=function(){return this};t.exports=function(t,e,n,a,p,g,O){c(n,e,a);var S,C,E,k=function(t){if(t===p&&P)return P;if(!_&&t&&t in D)return D[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},T=e+" Iterator",M=!1,D=t.prototype,A=D[w]||D["@@iterator"]||p&&D[p],P=!_&&A||k(p),R="Array"===e&&D.entries||A;if(R&&(S=s(R.call(new t)))!==Object.prototype&&S.next&&(i||s(S)===y||(l?l(S,y):u(S[w])||m(S,w,x)),f(S,T,!0,!0),i&&(h[T]=x)),v&&"values"===p&&A&&"values"!==A.name&&(!i&&b?d(D,"name","values"):(M=!0,P=function(){return o(A,this)})),p)if(C={values:k("values"),keys:g?P:k("keys"),entries:k("entries")},O)for(E in C)(_||M||!(E in D))&&m(D,E,C[E]);else r({target:e,proto:!0,forced:_||M},C);return i&&!O||D[w]===P||m(D,w,P,{name:p}),h[e]=P,C}},c6eb:function(t,e,n){"use strict";(function(t){var r=n("5ea3"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.a.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();e.a=u}).call(this,n("dd40")(t))},c740:function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").findIndex,i=n("44d2"),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},c7ce:function(t,e){
|
|
12
12
|
/*!
|
|
13
13
|
* Determine if an object is a Buffer
|
|
14
14
|
*
|