iss-library-form-designer 5.0.3 → 5.0.4

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.
@@ -10,7 +10,7 @@ var o=n(16),r=n(17),i=n(18);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647
10
10
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
11
11
  t.read=function(e,t,n,o,r){var i,a,s=8*r-o-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?r-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,o),i-=c}return(p?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var a,s,l,c=8*i-r-1,u=(1<<c)-1,d=u>>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=o?0:i-1,m=o?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+p]=255&s,p+=m,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;e[n+p]=255&a,p+=m,a/=256,c-=8);e[n+p-m]|=128*h}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||u||s(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";n.r(t);var o=n(6),r=n.n(o),i=n(3),a=n.n(i);function s(e){return""===e?e:"true"===e||"1"==e}var l=function(e,t){return new Promise((function(t,n){var o=new XMLHttpRequest;o.responseType="blob",o.onload=function(){var e=new FileReader;e.onloadend=function(){t(e.result)},e.readAsArrayBuffer(o.response)},o.open("GET",e),o.send()}))},c=n(9),u=function(e,t,n,o,r,i,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=[],c._compiled=!0),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}({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 e=this;return r()(a.a.mark((function t(){var n,o,r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.gifBgSrc){t.next=7;break}return t.next=3,l(e.gifBgSrc);case 3:return n=t.sent,o=e.logoSrc,e.render(void 0,o,n),t.abrupt("return");case 7:r=e.bgSrc,i=e.logoSrc,e.render(r,i);case 10:case"end":return t.stop()}}),t)})))()},render:function(e,t,n){var o=this;return r()(a.a.mark((function r(){var i;return a.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:i=o,new c.a({gifBackground:n,text:i.text,size:i.size,margin:i.margin,colorDark:i.colorDark,colorLight:i.colorLight,backgroundColor:i.backgroundColor,backgroundImage:e,backgroundDimming:i.backgroundDimming,logoImage:t,logoScale:i.logoScale,logoBackgroundColor:i.logoBackgroundColor,correctLevel:i.correctLevel,logoMargin:i.logoMargin,logoCornerRadius:i.logoCornerRadius,whiteMargin:s(i.whiteMargin),dotScale:i.dotScale,autoColor:s(i.autoColor),binarize:s(i.binarize),binarizeThreshold:i.binarizeThreshold,components:i.components}).draw().then((function(e){o.imgUrl=e,i.callback&&i.callback(e,i.qid)}));case 2:case"end":return r.stop()}}),r)})))()}}},(function(){var e=this.$createElement,t=this._self._c||e;return this.bindElement?t("img",{staticStyle:{display:"inline-block"},attrs:{src:this.imgUrl}}):this._e()})).exports;u.install=function(e){return e.component(u.name,u)};var d=u,f=[d];"undefined"!=typeof window&&window.Vue&&function(e){f.map((function(t){e.component(t.name,t)}))}(window.Vue),t.default=d}])},"65f0":function(e,t,n){"use strict";var o=n("0b42");e.exports=function(e,t){return new(o(e))(0===t?0:t)}},"68be":function(e,t,n){"use strict";n.r(t),n("caad");var o={name:"SortableSetter",mixins:[n("dc43").a],methods:{handleChange:function(e){["member","organization"].includes(this.widgetConfig.type)&&!0===e&&(this.widgetConfig.options.multiple=!0)}}},r=n("2877"),i=Object(r.a)(o,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-switch",{on:{change:e.handleChange},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}})}),[],!1,null,null,null);t.default=i.exports},"68df":function(e,t,n){"use strict";var o=n("dc19"),r=n("8e16"),i=n("384f"),a=n("7f65");e.exports=function(e){var t=o(this),n=a(e);return!(r(t)>n.size)&&!1!==i(t,(function(e){if(!n.includes(e))return!1}),!0)}},"68ee":function(e,t,n){"use strict";var o=n("e330"),r=n("d039"),i=n("1626"),a=n("f5df"),s=n("d066"),l=n("8925"),c=function(){},u=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=o(d.exec),p=!d.test(c),m=function(e){if(!i(e))return!1;try{return u(c,[],e),!0}catch(e){return!1}},h=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,l(e))}catch(e){return!0}};h.sham=!0,e.exports=!u||r((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?h:m},6964:function(e,t,n){"use strict";var o=n("cb2d");e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},"69a4":function(e,t){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),o=function(e){var o=function(e){var o="",r=e.dom.encode,i=function(e){return e.getParam("content_style","","string")}(e);o+='<base href="'+r(e.documentBaseURI.getURI())+'">';var a=function(e){return e.getParam("content_css_cors",!1,"boolean")}(e)?' crossorigin="anonymous"':"";n.each(e.contentCSS,(function(t){o+='<link type="text/css" rel="stylesheet" href="'+r(e.documentBaseURI.toAbsolute(t))+'"'+a+">"})),i&&(o+='<style type="text/css">'+i+"</style>");var s=function(e){var t=e.getParam("body_id","tinymce","string");return-1===t.indexOf("=")?t:function(e){var t=e.getParam("body_id","","hash");return t[e.id]||t}(e)}(e),l=function(e){var t=e.getParam("body_class","","string");return-1===t.indexOf("=")?t:function(e){return e.getParam("body_class","","hash")[e.id]||""}(e)}(e),c='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+(t.mac?"e.metaKey":"e.ctrlKey && !e.altKey")+")) {e.preventDefault();}}}, false);<\/script> ",u=e.getBody().dir,d=u?' dir="'+r(u)+'"':"";return"<!DOCTYPE html><html><head>"+o+'</head><body id="'+r(s)+'" class="mce-content-body '+r(l)+'"'+d+">"+e.getContent()+c+"</body></html>"}(e);e.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:o}}).focus("close")};e.add("preview",(function(e){!function(e){e.addCommand("mcePreview",(function(){o(e)}))}(e),function(e){var t=function(){return e.execCommand("mcePreview")};e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:t}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:t})}(e)}))}()},"69f3":function(e,t,n){"use strict";var o,r,i,a=n("cdce"),s=n("cfe9"),l=n("861d"),c=n("9112"),u=n("1a2d"),d=n("c6cd"),f=n("f772"),p=n("d012"),m=s.TypeError,h=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new h);g.get=g.get,g.has=g.has,g.set=g.set,o=function(e,t){if(g.has(e))throw new m("Object already initialized");return t.facade=e,g.set(e,t),t},r=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=f("state");p[v]=!0,o=function(e,t){if(u(e,v))throw new m("Object already initialized");return t.facade=e,c(e,v,t),t},r=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},"6a16":function(e,t,n){"use strict";n.r(t);var o={name:"TextSetter",mixins:[n("dc43").a]},r=n("2877"),i=Object(r.a)(o,(function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v(this._s(this.staticConfig.name))])}),[],!1,null,null,null);t.default=i.exports},"6b75":function(e,t,n){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,"a",(function(){return o}))},"6ba6":function(e,t,n){"use strict";function o(){return{list:[],config:{labelWidth:100,labelPosition:"right",labelSuffix:!1,size:"small",customClass:"",ui:"element",layout:"horizontal",labelCol:3,width:"100%",hideLabel:!1,hideErrorMessage:!1,theme:"default",themeTitle:"",themeSubTitle:"",themeTitleAlign:"left",displayDensity:"normal",background:"normal",submitHiddenArea:!1,submitValueCompList:[],linkageConfig:{ruleList:[]},eventScript:[{key:"mounted",name:"mounted",func:""},{key:"beforeSubmit",name:"beforeSubmit",func:"// 在表单提交前调用,且返回值会影响提交结果\n// 返回值为true时会继续执行 \n// 返回值为false时会阻止提交 \n// 返回值为Error时会阻止提交 且会修改错误提示信息 return new Error('提示信息'); \nreturn true;"},{key:"submitted",name:"submitted",func:""},{key:"beforeDestroy",name:"beforeDestroy",func:""}],unitedFormSetting:{hidden:!0,readonly:!1,disabled:!0}},version:1}}n.d(t,"a",(function(){return o}))},"6bd7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l}));var o=n("8bbf"),r=n.n(o);n("3751");const i=Object.prototype.hasOwnProperty;function a(e,t){return i.call(e,t)}const s=function(){return!r.a.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};function l(e){let t=!1;return function(...n){t||(t=!0,window.requestAnimationFrame(o=>{e.apply(this,n),t=!1}))}}},"6cf8":function(e,t,n){"use strict";n("afa3")},"6d61":function(e,t,n){"use strict";var o=n("23e7"),r=n("cfe9"),i=n("e330"),a=n("94ca"),s=n("cb2d"),l=n("f183"),c=n("2266"),u=n("19aa"),d=n("1626"),f=n("7234"),p=n("861d"),m=n("d039"),h=n("1c7e"),g=n("d44e"),v=n("7156");e.exports=function(e,t,n){var b=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),_=b?"set":"add",w=r[e],C=w&&w.prototype,x=w,O={},T=function(e){var t=i(C[e]);s(C,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!p(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(w)||!(y||C.forEach&&!m((function(){(new w).entries().next()})))))x=n.getConstructor(t,e,b,_),l.enable();else if(a(e,!0)){var E=new x,S=E[_](y?{}:-0,1)!==E,D=m((function(){E.has(1)})),k=h((function(e){new w(e)})),A=!y&&m((function(){for(var e=new w,t=5;t--;)e[_](t,t);return!e.has(-0)}));k||((x=t((function(e,t){u(e,C);var n=v(new w,e,x);return f(t)||c(t,n[_],{that:n,AS_ENTRIES:b}),n}))).prototype=C,C.constructor=x),(D||A)&&(T("delete"),T("has"),b&&T("get")),(A||S)&&T(_),y&&C.clear&&delete C.clear}return O[e]=x,o({global:!0,constructor:!0,forced:x!==w},O),g(x,e),y||n.setStrong(x,e,b),x}},"6e3f":function(e,t,n){},"6e53":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mod10=function(e){for(var t=0,n=0;n<e.length;n++){var o=parseInt(e[n]);(n+e.length)%2==0?t+=o:t+=2*o%10+Math.floor(2*o/10)}return(10-t%10)%10},t.mod11=function(e){for(var t=0,n=[2,3,4,5,6,7],o=0;o<e.length;o++){var r=parseInt(e[e.length-1-o]);t+=n[o%n.length]*r}return(11-t%11)%11}},"6e9b":function(e,t,n){"use strict";n("6e3f")},"6f19":function(e,t,n){"use strict";var o=n("9112"),r=n("0d26"),i=n("b980"),a=Error.captureStackTrace;e.exports=function(e,t,n,s){i&&(a?a(e,t):o(e,"stack",r(n,s)))}},"6f24":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n("4b23")),r=i(n("bb5d"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(e,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,r.default)(e),n));else o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return a(o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default);t.default=s},"6f3e":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("a4d3"),n("e01a"),n("d28b"),n("d9e2"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");var o=n("53ca");function r(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Object(o.a)(e)+" is not iterable")}},"6f48":function(e,t,n){"use strict";n("6d61")("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n("6566"))},"6f53":function(e,t,n){"use strict";var o=n("83ab"),r=n("d039"),i=n("e330"),a=n("e163"),s=n("df75"),l=n("fc6a"),c=i(n("d1e7").f),u=i([].push),d=o&&r((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),f=function(e){return function(t){for(var n,r=l(t),i=s(r),f=d&&null===a(r),p=i.length,m=0,h=[];p>m;)n=i[m++],o&&!(f?n in r:c(r,n))||u(h,e?[n,r[n]]:r[n]);return h}};e.exports={entries:f(!0),values:f(!1)}},"701d":function(e,t,n){"use strict";n.r(t),n("b0c0"),n("a9e3");var o={name:"WidthSetter",mixins:[n("dc43").a],props:{max:{type:Number,default:999999},min:{type:Number,default:0},precision:{type:Number,default:0},step:{type:Number,default:0}},computed:{modelName:function(){return this.setterConfig.name}}},r=n("2877"),i=Object(r.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-checkbox",{model:{value:e.widgetConfig.options[e.setterConfig.switch],callback:function(t){e.$set(e.widgetConfig.options,e.setterConfig.switch,t)},expression:"widgetConfig.options[setterConfig.switch]"}},[e._v(e._s(e.$iss18n.t("issfd.components.dateProp.formatCustom")))]),n("div",[n("el-input-number",{staticClass:"config-number-input",attrs:{disabled:!e.widgetConfig.options[e.setterConfig.switch],max:200,min:0,step:"labelWidth"===e.setterConfig.name?10:1},model:{value:e.widgetConfig.options[e.setterConfig.name],callback:function(t){e.$set(e.widgetConfig.options,e.setterConfig.name,t)},expression:"widgetConfig.options[setterConfig.name]"}}),n("span",{staticClass:"config-number-unit"},[e._v(e._s("labelWidth"===e.setterConfig.name?"px":"%"))])],1)],1)}),[],!1,null,null,null);t.default=i.exports},"70b0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n("4b23"),a=(o=i)&&o.__esModule?o:{default:o},s=n("f08e"),l=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,s.B_START_CHAR+e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"valid",value:function(){return new RegExp("^"+s.B_CHARS+"+$").test(this.data)}}]),t}(a.default);t.default=l},7149:function(e,t,n){"use strict";var o=n("23e7"),r=n("d066"),i=n("c430"),a=n("d256"),s=n("4738").CONSTRUCTOR,l=n("cdf9"),c=r("Promise"),u=i&&!s;o({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(u&&this===c?a:this,e)}})},7156:function(e,t,n){"use strict";var o=n("1626"),r=n("861d"),i=n("d2bb");e.exports=function(e,t,n){var a,s;return i&&o(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},7170:function(e,t,n){"use strict";n.r(t),n("c740"),n("caad"),n("b0c0"),n("e260"),n("d3b7"),n("e6cf"),n("3ca3"),n("ddb0");var o=n("6f3e"),r=n("c14f"),i=n("1da1"),a=(n("4de4"),n("7db0"),n("d81d"),n("14d9"),n("e9f5"),n("910d"),n("f665"),n("ab43"),n("25f0"),n("fee3")),s=n("eb5f"),l=n("5c9a"),c=n("8907"),u={computed:{componentShow:function(){return!this.printRead||"button"!==this.element.type&&"inline"!==this.element.type}},methods:{getRemoteSource:function(e,t){var n=this;return Object(i.a)(Object(r.a)().m((function i(){var s,l,u,d,f,p,m,h,g;return Object(r.a)().w((function(i){for(;;)switch(i.n){case 0:if(s="",l=e.options&&e.options.remoteOption&&e.options.remoteOption.remoteDict,!a.e[e.type]){i.n=4;break}if(!t||!t.length){i.n=3;break}s=[],u=null,d=Object(r.a)().m((function e(){var o,i,a,d,p;return Object(r.a)().w((function(e){for(;;)switch(e.n){case 0:if(o=t[f],!(p=l)){e.n=2;break}return e.n=1,Object(c.a)(n,{dictId:u?u.dictId:l.dictId,parentId:u?u.id:l.dictOptionId&&l.dictOptionId.length?l.dictOptionId:"#"});case 1:p=e.v;case 2:a=(i=p)&&i.data,(d=a&&a.length&&a.find((function(e){return e.itemCode===o})))&&(u=d,s.push(d.itemName));case 3:return e.a(2)}}),e)})),f=0;case 1:if(!(f<t.length)){i.n=3;break}return i.d(Object(o.a)(d()),2);case 2:f++,i.n=1;break;case 3:i.n=7;break;case 4:if(!(g=l)){i.n=6;break}return i.n=5,Object(c.a)(n,{dictId:l.dictId,parentId:l.dictOptionId&&l.dictOptionId.length?l.dictOptionId:"#"});case 5:g=i.v;case 6:m=(p=g)&&p.data,t&&t.length&&(Array.isArray(t)?(s=[],s=t.map((function(e){var t=m.find((function(t){return t.itemCode===e}));return t&&t.itemName})).filter((function(e){return null!=e}))):(h=m.find((function(e){return e.itemCode===t})),s=h&&h.itemName));case 7:return s=s.toString(),i.a(2,s)}}),i)})))()},getStaticSource:function(e,t){var n="";if(a.s[e.type]&&(n=t),a.u[e.type]){var o=e&&e.options&&e.options.suffix;n=t+"".concat(o&&o.length?o:"")}return a.w[e.type]&&(n=t.toString()),a.p[e.type]&&(n="yyyy"===e.options.undefined?Object(s.e)(t):"yyyy-MM"===e.options.undefined?Object(s.d)(t):"yyyy-MM-dd HH:mm:ss"===e.options.undefined?Object(s.c)(t):Object(s.a)(t)),a.n[e.type]&&(n=!0===t?e.options.activeText:e.options.inactiveText),a.h[e.type]&&(n=(n=t.map((function(e){return e.name}))).toString()),n},displayValueRender:function(e,t){var n=this;return Object(i.a)(Object(r.a)().m((function o(){var i,a;return Object(r.a)().w((function(o){for(;;)switch(o.n){case 0:return i="",a=n.columns&&n.columns.find((function(e){return e.model===t})),null!==e&&a&&a.type&&(i=a.options.remote===l.a.DICT_DATA?n.getRemoteSource(a,e):n.getStaticSource(a,e)),o.a(2,i)}}),o)})))()}}},d={name:"Card",mixins:[u],components:{BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"7170"))}},props:["element","models","rules","remote","displayFields","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModels:this.models}},watch:{models:{deep:!0,handler:function(e){this.dataModels=e}}}},f=n("2877"),p={name:"Grid",mixins:[u],components:{BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"7170"))}},props:["element","models","rules","remote","displayFields","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModels:this.models}},watch:{models:{deep:!0,handler:function(e){this.dataModels=e}}},methods:{getColSpan:function(e){return"pc"===this.platform?24/e:"pad"===this.platform?e>1?12:24:"mobile"===this.platform?24:void 0},getCol:function(e){return"pc"===this.platform?e:"pad"===this.platform||"mobile"===this.platform?1:void 0}}},m={name:"Report",mixins:[u],components:{BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"7170"))}},props:["element","models","rules","remote","displayFields","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModels:this.models}},watch:{models:{deep:!0,handler:function(e){this.dataModels=this.models}}}},h={name:"tab",mixins:[u],components:{BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"7170"))}},props:["element","models","rules","remote","displayFields","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModels:this.models,tabActive:this.element.children.length?this.element.children[0].name:""}},watch:{models:{deep:!0,handler:function(e){this.dataModels=this.models}}},methods:{handleItemChange:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=null===(e=this.element)||void 0===e||null===(e=e.events)||void 0===e?void 0:e.onChange;n&&this.eventFunction[n]&&this.eventFunction[n]({activeTab:t,tabActive:this.tabActive})}}},g={name:"collapse",components:{BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"7170"))}},props:["element","models","rules","remote","displayFields","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModels:this.models,collapseActive:this.element.children.length?this.element.children[0].name:""}},watch:{models:{deep:!0,handler:function(e){this.dataModels=this.models}}},methods:{handleItemChange:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=null===(e=this.element)||void 0===e||null===(e=e.events)||void 0===e?void 0:e.onChange;n&&this.eventFunction[n]&&this.eventFunction[n]({activeNames:t})}}},v={name:"Inline",components:{BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"7170"))}},props:["element","models","rules","remote","displayFields","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],data:function(){return{dataModels:this.models}},watch:{models:{deep:!0,handler:function(e){this.dataModels=e}}}},b={name:"step",mixins:[u],components:{BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"7170"))}},props:["element","models","rules","remote","displayFields","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],computed:{showStepCompleteBtn:function(){var e;return!0===(null===(e=this.element)||void 0===e||null===(e=e.options)||void 0===e?void 0:e.showStepCompleteBtn)}},data:function(){return{dataModels:this.models,stepActive:0}},methods:{handleOnChangeEvent:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=null;switch(t){case"nextStep":n="下一步";break;case"preStep":n="上一步";break;case"complete":n="完成"}var o={code:t,label:n},r=null===(e=this.element)||void 0===e||null===(e=e.events)||void 0===e?void 0:e.onChange;r&&this.eventFunction[r]&&this.eventFunction[r]({btnData:o,stepActive:this.stepActive,stepActiveData:this.element.children[this.stepActive]})},nextStep:function(){this.stepActive++>this.element.children.length-1&&(this.stepActive=this.element.children.length),this.handleOnChangeEvent("nextStep")},preStep:function(){this.stepActive--<=0&&(this.stepActive=0),this.handleOnChangeEvent("preStep")}},watch:{models:{deep:!0,handler:function(e){this.dataModels=this.models}}}},y={card:Object(f.a)(d,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return t.displayFields[t.element.model]?o("el-card",{staticClass:"renderer-card",class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options&&t.element.options.customClass,e),attrs:{shadow:t.element.options.shadow}},[t.element.options&&t.element.options.showHeader?o("div",{attrs:{slot:"header"},slot:"header"},[t._v(t._s(t.element.name))]):t._e(),t._l(t.element.children,(function(e){return[t.componentShow?o("base-element-item",{key:e.key,attrs:{id:e.model,"container-key":t.containerKey,"data-source-value":t.dataSourceValue,"display-fields":t.displayFields,edit:t.edit,"event-function":t.eventFunction,models:t.dataModels,platform:t.platform,preview:t.preview,"print-read":t.printRead,remote:t.remote,"remote-option-source":t.remoteOptionSource,rules:t.rules,element:e}}):t._e()]}))],2):t._e()}),[],!1,null,null,null).exports,grid:Object(f.a)(p,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return t.displayFields[t.element.model]?o("el-row",{staticClass:"renderer-grid-row",class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options&&t.element.options.customClass,e["grid-width-"+t.getCol(t.element.children.length||1)]=!0,e),attrs:{align:t.element.options.align,gutter:t.element.options.gutter||0,justify:t.element.options.justify,type:"flex"}},t._l(t.element.children,(function(e,n){var r;return o("el-col",{key:n,class:(r={},r[e.options&&e.options.customClass]=e.options&&e.options.customClass,r),attrs:{offset:e.options?e.options.offset:0,pull:e.options?e.options.pull:0,push:e.options?e.options.push:0,span:t.getColSpan(t.element.children.length||1)}},[t._l(e.children,(function(e){return[t.componentShow?o("base-element-item",{key:e.key,attrs:{"container-key":t.containerKey,"data-source-value":t.dataSourceValue,"display-fields":t.displayFields,edit:t.edit,"event-function":t.eventFunction,models:t.dataModels,platform:t.platform,preview:t.preview,"print-read":t.printRead,remote:t.remote,"remote-option-source":t.remoteOptionSource,rules:t.rules,element:e}}):t._e()]}))],2)})),1):t._e()}),[],!1,null,null,null).exports,report:Object(f.a)(m,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return t.displayFields[t.element.model]?o("table",{staticClass:"renderer-report",class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options&&t.element.options.customClass,e),style:{"border-top-width":t.element.options.borderWidth+"px","border-top-color":t.element.options.borderColor,"border-left-width":t.element.options.borderWidth+"px","border-left-color":t.element.options.borderColor,width:t.element.options.width||"100%"}},t._l(t.element.children,(function(e,n){return o("tr",{key:n},t._l(e.children,(function(e,r){var i;return e.options.invisible?t._e():o("td",{key:n+"-"+r,staticClass:"report-container-td",class:(i={},i[e.options.customClass]=e.options.customClass,i),style:{"border-right-width":t.element.options.borderWidth+"px","border-right-color":t.element.options.borderColor,"border-bottom-width":t.element.options.borderWidth+"px","border-bottom-color":t.element.options.borderColor,width:e.options.width,height:e.options.height},attrs:{colspan:e.options.colspan,rowspan:e.options.rowspan,valign:"top"}},[t._l(e.children,(function(e){return[t.componentShow?o("base-element-item",{key:e.key,attrs:{"container-key":t.containerKey,"data-source-value":t.dataSourceValue,"display-fields":t.displayFields,edit:t.edit,"event-function":t.eventFunction,models:t.dataModels,platform:t.platform,preview:t.preview,"print-read":t.printRead,remote:t.remote,"remote-option-source":t.remoteOptionSource,rules:t.rules,element:e}}):t._e()]}))],2)})),0)})),0):t._e()}),[],!1,null,null,null).exports,tabs:Object(f.a)(h,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return t.displayFields[t.element.model]?o("el-tabs",{class:(e={},e[t.element.options.customClass]=t.element.options.customClass,e),staticStyle:{"margin-bottom":"18px"},attrs:{"tab-position":"mobile"===t.platform?"top":t.element.options.tabPosition,type:t.element.options.type},on:{"tab-click":t.handleItemChange},model:{value:t.tabActive,callback:function(e){t.tabActive=e},expression:"tabActive"}},t._l(t.element.children,(function(e){return o("el-tab-pane",{key:e.name,attrs:{label:e.name,name:e.name}},[t._l(e.children,(function(e){return[t.componentShow?o("base-element-item",{key:e.key,attrs:{"container-key":t.containerKey,"data-source-value":t.dataSourceValue,"display-fields":t.displayFields,edit:t.edit,"event-function":t.eventFunction,models:t.dataModels,platform:t.platform,preview:t.preview,"print-read":t.printRead,remote:t.remote,"remote-option-source":t.remoteOptionSource,rules:t.rules,element:e}}):t._e()]}))],2)})),1):t._e()}),[],!1,null,null,null).exports,collapse:Object(f.a)(g,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return t.displayFields[t.element.model]?o("el-collapse",{staticClass:"renderer-collapse",class:(e={},e[t.element.options.customClass]=t.element.options.customClass,e),attrs:{accordion:t.element.options.accordion},on:{change:t.handleItemChange},model:{value:t.collapseActive,callback:function(e){t.collapseActive=e},expression:"collapseActive"}},t._l(t.element.children,(function(e){return o("el-collapse-item",{key:e.name,attrs:{name:e.name}},[o("div",{staticClass:"el-collapse-header-title",attrs:{slot:"title",title:e.name},slot:"title"},[t._v(t._s(e.name))]),t._l(e.children,(function(e){return o("base-element-item",{key:e.key,attrs:{"container-key":t.containerKey,"data-source-value":t.dataSourceValue,"display-fields":t.displayFields,edit:t.edit,"event-function":t.eventFunction,models:t.dataModels,platform:t.platform,preview:t.preview,"print-read":t.printRead,remote:t.remote,"remote-option-source":t.remoteOptionSource,rules:t.rules,element:e}})}))],2)})),1):t._e()}),[],!1,null,null,null).exports,inline:Object(f.a)(v,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return t.displayFields[t.element.model]?o("div",{staticClass:"renderer-inline",class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options&&t.element.options.customClass,e),attrs:{shadow:t.element.options.shadow}},t._l(t.element.children,(function(e){return e.options.showInPrintRead||!t.printRead?o("base-element-item",{key:e.key,staticClass:"item",attrs:{id:e.model,"container-key":t.containerKey,"data-source-value":t.dataSourceValue,"display-fields":t.displayFields,edit:t.edit,"event-function":t.eventFunction,models:t.dataModels,platform:t.platform,preview:t.preview,"print-read":t.printRead,remote:t.remote,"remote-option-source":t.remoteOptionSource,rules:t.rules,element:e}}):t._e()})),1):t._e()}),[],!1,null,null,null).exports,steps:Object(f.a)(b,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("div",{staticClass:"steps-container"},[o("div",{style:"vertical"===t.element.options.direction?"display: flex":""},[o("el-steps",{staticClass:"widget-steps",class:(e={},e[t.element.options.customClass]=t.element.options.customClass,e),attrs:{active:t.stepActive,direction:t.element.options.direction,"align-center":t.element.options.alignCenter,simple:t.element.options.simple,"finish-status":"success"}},t._l(t.element.children,(function(e,t){return o("el-step",{key:"step_"+t,staticClass:"widget-step",attrs:{title:e.name,description:e.description}})})),1),t._l(t.element.children,(function(e,n){return o("el-card",{directives:[{name:"show",rawName:"v-show",value:t.stepActive===n,expression:"stepActive === index"}],key:"content_"+e.name,staticClass:"widget-card",class:["vertical"===t.element.options.direction?"step-content-vertical":"step-content-horizontal",{"is-empty":0===e.children.length}]},[o("div",{attrs:{slot:"header"},slot:"header"},[o("span",[t._v(t._s(e.name))])]),t._l(e.children,(function(e){return[t.componentShow?o("base-element-item",{key:e.key,attrs:{"container-key":t.containerKey,"data-source-value":t.dataSourceValue,"display-fields":t.displayFields,edit:t.edit,"event-function":t.eventFunction,models:t.dataModels,platform:t.platform,preview:t.preview,"print-read":t.printRead,remote:t.remote,"remote-option-source":t.remoteOptionSource,rules:t.rules,element:e}}):t._e()]}))],2)}))],2),o("div",{staticClass:"button-class"},[0!==t.stepActive?o("el-button",{attrs:{size:"small"},on:{click:t.preStep}},[t._v(t._s(t.$iss18n.t("issfd.runtime.common.buttons.pre"))+" ")]):t._e(),t.stepActive<t.element.children.length-1?o("el-button",{attrs:{size:"small"},on:{click:t.nextStep}},[t._v(" "+t._s(t.$iss18n.t("issfd.runtime.common.buttons.next"))+" ")]):t._e(),t.showStepCompleteBtn&&t.stepActive===t.element.children.length-1?o("el-button",{attrs:{size:"small"},on:{click:function(e){t.stepActive++}}},[t._v(t._s(t.$iss18n.t("issfd.runtime.component.import.complete"))+" ")]):t._e()],1)])}),[],!1,null,null,null).exports},_=n("5530"),w=(n("d9e2"),n("7d54"),n("159b"),n("b64b"),n("a9e3"),{value:{type:[Number,String,Array,Object,Boolean],default:void 0},element:{type:Object,default:function(){}},models:{type:Object,default:function(){}},platform:{type:String,default:""},preview:{type:Boolean,default:!1},printRead:{type:Boolean,default:!1},edit:{type:Boolean,default:!1},remote:{type:Object,default:function(){}},remoteOptionSource:{type:Object,default:function(){return{}}},dataSourceValue:{type:Array,default:function(){return[]}},rules:{type:Object,default:function(){return{}}},eventFunction:{type:Object,default:function(){return{}}},isTable:{type:Boolean,default:!1},tableName:{type:String,default:""},isInTable:{type:Boolean,default:!1},rowIndex:{type:Number,default:0},scopeRowData:{type:Object,default:function(){}}}),C=(n("2532"),function(e,t){return e&&e.length?e.map((function(e){return C(e[t.children],t).length?{value:e[t.value],label:e[t.label],children:C(e[t.children],t)}:{value:e[t.value],label:e[t.label]}})):[]}),x=function(e,t){return t.map((function(t){return e.options.props.children&&e.options.props.children.length&&Object.keys(t).includes(e.options.props.children)?{value:t[e.options.props.value],label:t[e.options.props.label],children:C(t[e.options.props.children],e.options.props)}:{value:t[e.options.props.value],label:t[e.options.props.label]}}))},O=function(e,t,n,o){return T.apply(this,arguments)};function T(){return(T=Object(i.a)(Object(r.a)().m((function e(t,n,o,i){var a,s;return Object(r.a)().w((function(e){for(;;)switch(e.n){case 0:return a=[],t.options.remote===l.a.FUNCTIONS&&n[t.options.remoteFunc]&&n[t.options.remoteFunc]((function(e){a=x(t,e)})),t.options.remote===l.a.OPTION&&o[t.options.remoteOptionSource]&&(a=x(t,o[t.options.remoteOptionSource])),t.options.remote===l.a.API_DATA&&i&&(s=i.find((function(e){return e.key===t.options.remoteDataSource})),a=x(t,s.value)),e.a(2,{remoteOptions:a})}}),e)})))).apply(this,arguments)}var E,S,D={name:"plugin",props:Object(_.a)({},w),inject:["variable","formValue","currentFormId","data"],data:function(){return{dataModel:this.value,dataModels:this.models,optionLoading:!1,optionLoadFailed:!1}},watch:{value:function(e){this.dataModel=e},dataModel:function(e){this.$emit("input",e)},remoteOptionSource:{deep:!0,handler:function(){Object.keys(this.remoteOptionSource).indexOf(this.element.options.remoteOptionSource)>=0&&this.element.options.remote!==l.a.STATIC_DATA&&"option"===this.element.options.remoteType&&(this.element.options.remoteOptions=x(this.element,this.remoteOptionSource[this.element.options.remoteOptionSource]))}},dataSourceValue:{deep:!0,handler:function(){var e=this;if(this.dataSourceValue){var t=this.dataSourceValue.find((function(t){return t.key===e.element.options.remoteDataSource}));this.element.options.remoteOptions=x(this.element,t.value)}}}},computed:{disabled:function(){return this.printRead||!this.edit||this.element.options.disabled},pluginWidth:function(){return this.isInTable?"100%":this.element.options.isWidgetWidth?"".concat(this.element.options.width,"%"):"100%"},isRemote:function(){var e,t;return this.element.options.remote!==l.a.STATIC_DATA||"cascader"===(null===(e=this.element)||void 0===e?void 0:e.type)&&(null===(t=this.element)||void 0===t||null===(t=t.options)||void 0===t?void 0:t.remote)===l.a.UC},widgetForm:function(){return this.data()}},methods:{handleRelatedFormDataChange:function(e){this.$emit("getRelatedFormData",e)},handleAfterChange:function(){var e,t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===(e=this.eventFunction)||void 0===e||null===(t=e[null===(n=this.element)||void 0===n||null===(n=n.events)||void 0===n?void 0:n.afterChange])||void 0===t||t.call(e,{field:this.element.model,table:this.tableName,rowIndex:this.rowIndex,value:o})},handleOnConfirm:function(){var e,t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===(e=this.eventFunction)||void 0===e||null===(t=e[null===(n=this.element)||void 0===n||null===(n=n.events)||void 0===n?void 0:n.onConfirm])||void 0===t||t.call(e,{field:this.element.model,table:this.tableName,rowIndex:this.rowIndex,value:o})},handleOnFocus:function(){if(this.element.events&&this.element.events.onFocus){var e=this.element.events.onFocus;this.isTable&&this.tableName?this.eventFunction[e]&&this.eventFunction[e]({field:this.element.model,table:this.tableName,rowIndex:this.rowIndex}):this.eventFunction[e]&&this.eventFunction[e]({field:this.element.model})}},handleOnBlur:function(){if(this.element.events&&this.element.events.onBlur){var e=this.element.events.onBlur;this.isTable&&this.tableName?this.eventFunction[e]&&this.eventFunction[e]({field:this.element.model,table:this.tableName,rowIndex:this.rowIndex}):this.eventFunction[e]&&this.eventFunction[e]({field:this.element.model})}},getParentCode:function(e){return this.element.options.isInitNode&&this.element.options.initNode&&this.element.options.initNode.length?this.element.options.initNode[0][e]:"code"===e?this.variable.USER_REGION_CODE:this.variable.USER_REGION},handleLoadDictOptions:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){var n,o,i;return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:if(!(e.element.options.remoteOptions&&e.element.options.remoteOptions.length||e.optionLoading)){t.n=1;break}return t.a(2);case 1:return e.optionLoading=!0,e.optionLoadFailed=!1,n=e.element.options.remoteOption.remoteDict,o="",i={},"dict"===n.dictDataType?o="#":"dictItem"===n.dictDataType&&(o=n.dictOptionId),t.n=2,Object(c.a)(e,{dictId:n.dictId,parentId:o});case 2:(i=t.v).data?e.element.options.remoteOptions=i.data:e.optionLoadFailed=!0,e.optionLoading=!1;case 3:return t.a(2)}}),t)})))()},onUploadSuccess:function(){if(this.element.events&&this.element.events.onUploadSuccess){var e=this.element.events.onUploadSuccess;this.eventFunction[e]&&this.eventFunction[e]()}},onUploadFileRemoved:function(e){if(this.element.events&&this.element.events.onRemoveUploadFile){var t=this.element.events.onRemoveUploadFile;this.eventFunction[t]&&this.eventFunction[t]({removedFile:e})}}}},k=D,A=Object(f.a)(k,(function(){var e=this.$createElement;return(this._self._c||e)("div")}),[],!1,null,null,null),M=A.exports,I=n("7694"),P=n("60bb"),R=n.n(P),L=n("a16a"),N={name:"renderer-input",extends:M,mixins:[L.a],data:function(){return{allColumnList:[]}},computed:{widgetForm:function(){return this.data()}},created:function(){"maxLength"in this.element.options||this.$set(this.element.options,"maxLength",100)},mounted:function(){this.element.options&&this.element.options.relatedFormEnabled&&this.widgetForm&&this.widgetForm.list&&this.widgetForm.list.length&&this.getLocalColumnList(R.a.cloneDeep(this.widgetForm.list))},methods:{getLocalColumnList:function(e){var t=this;e.length&&e.forEach((function(e){e.children?t.getLocalColumnList(e.children):t.allColumnList.push(R.a.cloneDeep(e))}))},queryColumns:function(e,t){var n=this;return Object(i.a)(Object(r.a)().m((function o(){var a,s,l;return Object(r.a)().w((function(o){for(;;)switch(o.n){case 0:return a=[],s=n.element.options.relatedFormInfo.targetColumn,o.n=1,Object(I.p)({size:50,current:1,formId:n.element.options.relatedFormInfo.formId,data:[{columnName:s,operateType:"CONTAIN",value:e,valueType:"FIXED",widgetType:"input"}]});case 1:if((l=o.v).data&&l.data.code&&"0000"===l.data.code){o.n=2;break}throw new Error(l&&l.data&&l.data.message?l.data.message:"获取表单数据列表失败");case 2:if(!l.data.data.records.length){o.n=4;break}if(!n.columnList||0!==n.columnList.length){o.n=3;break}return o.n=3,n.getColumnList(n.element.options.relatedFormInfo.formId);case 3:a=l.data.data.records.map(function(){var e=Object(i.a)(Object(r.a)().m((function e(t){var o,i;return Object(r.a)().w((function(e){for(;;)switch(e.n){case 0:if(null===t[s]){e.n=2;break}return e.n=1,n.getOptionLabel(t,s);case 1:i=e.v,e.n=3;break;case 2:i="";case 3:return o=i,e.a(2,Object(_.a)({value:o&&o.substring(0,100)},t))}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:Promise.all(a).then((function(e){t(e)}));case 5:return o.a(2)}}),o)})))()},selectData:function(e){if(0!==this.element.options.relatedFormInfo.dataFillRules.length){var t={value:{},fillingRules:[],selectedItem:{label:e[this.element.options.relatedFormInfo.targetColumn],value:e.ID,widgetModel:this.element.model,type:"input"}};t.fillingRules=this.element.options.relatedFormInfo.dataFillRules;var n=R.a.cloneDeep(e);this.$delete(n,"value"),t.value=n,this.fillingColumns(t)}}}},F=N,j=Object(f.a)(F,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.printRead?[n("div",{staticClass:"custom-input-section"},[e._v(" "+e._s(e.element.options.showPassword?"*********":e.dataModel)+" ")])]:[e.element.options.relatedFormEnabled?[e.element.options.dataTypeCheck&&"number"===e.element.options.dataType?n("el-autocomplete",{ref:"icd-form-"+e.element.model,style:{width:e.pluginWidth},attrs:{disabled:e.disabled,placeholder:e.element.options.placeholder,"show-password":e.element.options.showPassword,"fetch-suggestions":e.queryColumns,debounce:0,type:"number",maxlength:e.element.options.maxLength},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"}}):n("el-autocomplete",{ref:"icd-form-"+e.element.model,class:{"renderer-input-word-limit":!e.element.options.closeWordLimit},style:{width:e.pluginWidth},attrs:{disabled:e.disabled,placeholder:e.element.options.placeholder,"show-password":e.element.options.showPassword,"fetch-suggestions":e.queryColumns,debounce:0,type:e.element.options.dataTypeCheck?e.element.options.dataType:"text","show-word-limit":!e.element.options.closeWordLimit,maxlength:e.element.options.maxLength},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.element.options.dataTypeCheck&&"number"===e.element.options.dataType?n("el-input",{ref:"icd-form-"+e.element.model,style:{width:e.pluginWidth},attrs:{disabled:e.disabled,placeholder:e.element.options.placeholder,"show-password":e.element.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"}}):n("el-input",{ref:"icd-form-"+e.element.model,class:{"renderer-input-word-limit":!e.element.options.closeWordLimit},style:{width:e.pluginWidth},attrs:{disabled:e.disabled,placeholder:e.element.options.placeholder,"show-password":e.element.options.showPassword,type:e.element.options.dataTypeCheck?e.element.options.dataType:"text",maxlength:e.element.options.maxLength,"show-word-limit":!e.element.options.closeWordLimit},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]]],2)}),[],!1,null,null,null),B=j.exports,$={name:"renderer-textarea",extends:M},z=$,U=Object(f.a)(z,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.printRead?n("div",{staticClass:"custom-textarea-section"},[e._v(" "+e._s(e.dataModel)+" ")]):n("el-input",{ref:"icd-form-"+e.element.model,style:{width:e.pluginWidth},attrs:{autosize:!!e.element.options.autosize&&{minRows:e.element.options.rows},disabled:e.disabled,placeholder:e.element.options.placeholder,rows:e.element.options.rows,maxlength:e.element.options.maxLength,type:"textarea"},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})}),[],!1,null,null,null),V=U.exports,H=(n("b680"),{name:"renderer-number",extends:M,computed:{digitalValue:function(){var e="",t=this.element.options.showSuffix?this.element.options.suffix:"";if(!isNaN(Number(this.dataModel))){var n=Number(this.dataModel);this.element.options.precision&&(n=Number(n.toFixed(this.element.options.precision))),this.element.options.thousandth&&(n=n.toLocaleString("en-US")),e=n+t}return e},widthDisplay:function(){return this.element.options.isWidgetWidth?{width:this.element.options.width+"%"}:this.isInTable?{flex:1}:{width:"auto"}}}}),W=H,Y=(n("069e"),Object(f.a)(W,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.printRead?n("div",[e._v(" "+e._s(e.digitalValue)+" ")]):n("div",{staticClass:"number-display"},[n("el-input-number",{ref:"icd-form-"+e.element.model,style:e.widthDisplay,attrs:{controls:!e.printRead&&e.element.options.controls,"controls-position":e.element.options.controlsPosition,disabled:e.disabled,max:e.element.options.max,min:e.element.options.min,precision:e.element.options.closePrecision?void 0:e.element.options.precision,step:e.element.options.step},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.element.options.showSuffix?n("span",{staticClass:"iss-number-unit"},[e._v(" "+e._s(e.element.options.suffix)+" ")]):e._e()],1)}),[],!1,null,null,null)),q=Y.exports,G={name:"renderer-radio",extends:M,computed:{showDataModelInfo:function(){var e=this,t=this.dataModel;if(this.isRemote&&this.element.options.remoteOptions){var n=this.element.options.remoteOptions.find((function(t){return t.value===e.dataModel}));t=n?n.label:""}return t||""}},created:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:if(e.element.options.remote!==l.a.DICT_DATA){t.n=2;break}if(!e.element.options.remoteOption||!e.element.options.remoteOption.remoteDict){t.n=1;break}return t.n=1,e.handleLoadDictOptions();case 1:t.n=3;break;case 2:e.element.options.remoteOptions=O(e.element,e.remote,e.remoteOptionSource,e.dataSourceValue,e.edit);case 3:return t.a(2)}}),t)})))()}},K=G,X=Object(f.a)(K,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.printRead?n("div",[e._v(" "+e._s(e.showDataModelInfo)+" ")]):n("div",[e.optionLoading?[n("i",{staticClass:"el-icon-loading"}),e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.options.loadOptions"))+" ")]:e._e(),e.optionLoadFailed?n("div",{staticClass:"form-option-load-failed"},[n("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.options.loadFailed"))+" "),n("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[n("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.options.retry"))+" ")],1)],1):e._e(),n("el-radio-group",{ref:"icd-form-"+e.element.model,style:{width:e.pluginWidth},attrs:{disabled:!e.edit||e.element.options.disabled},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},["button"===e.element.options.optionStyle?e._l(e.isRemote?e.element.options.remoteOptions:e.element.options.options,(function(t,o){return n("el-radio-button",{key:t.value+o,style:{display:"inline-block"},attrs:{label:t.value,disabled:e.element.options.disabledOptions&&e.element.options.disabledOptions.indexOf(t.value)>-1}},[e._v(" "+e._s(t.label)+" ")])})):e._l(e.isRemote?e.element.options.remoteOptions:e.element.options.options,(function(t,o){return n("el-radio",{key:t.value+o,style:{display:"mobile"===e.platform&&"border"===e.element.options.optionStyle?"block":e.element.options.inline?"inline-block":"block"},attrs:{border:"border"===e.element.options.optionStyle,disabled:e.element.options.disabledOptions&&e.element.options.disabledOptions.indexOf(t.value)>-1,label:t.value}},[e._v(" "+e._s(t.label)+" ")])}))],2)],2)}),[],!1,null,null,null),J=X.exports,Q={name:"renderer-checkbox",extends:M,created:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:if(e.element.options.remote!==l.a.DICT_DATA){t.n=2;break}if(!e.element.options.remoteOption||!e.element.options.remoteOption.remoteDict){t.n=1;break}return t.n=1,e.handleLoadDictOptions();case 1:t.n=3;break;case 2:e.element.options.remoteOptions=O(e.element,e.remote,e.remoteOptionSource,e.dataSourceValue,e.edit);case 3:"checkbox"!==e.element.type||e.dataModel||(e.dataModel=[]);case 4:return t.a(2)}}),t)})))()}},Z=Q,ee=Object(f.a)(Z,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.printRead?n("div",[e.isRemote?[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return e.element.options.remoteOptions.find((function(e){return e.value===t}))&&e.element.options.remoteOptions.find((function(e){return e.value===t})).label})).join("、")||"")+" ")]:[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(t){return e.element.options.options.find((function(e){return e.value===t}))&&e.element.options.options.find((function(e){return e.value===t})).label})).join("、")||"")+" ")]],2):n("div",[e.optionLoading?[n("i",{staticClass:"el-icon-loading"}),e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.options.loadOptions"))+" ")]:e._e(),e.optionLoadFailed?n("div",{staticClass:"form-option-load-failed"},[n("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.options.loadFailed"))+" "),n("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[n("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.options.retry"))+" ")],1)],1):e._e(),n("el-checkbox-group",{ref:"icd-form-"+e.element.model,style:{width:e.pluginWidth},attrs:{disabled:!e.edit||e.element.options.disabled,max:e.element.options.enableMaxSelection?e.element.options.maxSelection:void 0},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},["button"===e.element.options.optionStyle?e._l(e.isRemote?e.element.options.remoteOptions:e.element.options.options,(function(t,o){return n("el-checkbox-button",{key:t.value+o,style:{display:"inline-block"},attrs:{label:t.value,disabled:e.element.options.disabledOptions&&e.element.options.disabledOptions.indexOf(t.value)>-1}},[e._v(" "+e._s(t.label)+" ")])})):e._l(e.isRemote?e.element.options.remoteOptions:e.element.options.options,(function(t,o){return n("el-checkbox",{key:t.value+o,style:{display:"mobile"===e.platform&&"border"===e.element.options.optionStyle?"block":e.element.options.inline?"inline-block":"block"},attrs:{border:"border"===e.element.options.optionStyle,label:t.value,disabled:e.element.options.disabledOptions&&e.element.options.disabledOptions.indexOf(t.value)>-1}},[e._v(" "+e._s(t.label)+" ")])}))],2)],2)}),[],!1,null,null,null),te=ee.exports,ne={name:"renderer-time",extends:M},oe=ne,re=Object(f.a)(oe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.printRead?n("div",[e._v(" "+e._s(e.dataModel)+" ")]):n("div",[n("el-time-picker",{ref:"icd-form-"+e.element.model,style:{width:e.pluginWidth},attrs:{arrowControl:e.element.options.arrowControl,clearable:e.element.options.clearable,disabled:!e.edit||e.element.options.disabled,editable:e.element.options.editable,"end-placeholder":e.element.options.endPlaceholder,"is-range":e.element.options.isRange,placeholder:e.element.options.placeholder,readonly:e.element.options.readonly,"start-placeholder":e.element.options.startPlaceholder,"value-format":e.element.options.format},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})],1)}),[],!1,null,null,null),ie=re.exports,ae=(n("ac1f"),n("5319"),n("c32d")),se=n.n(ae),le={props:{platform:{type:String,default:"mobile"},value:{type:[String,Number],default:""},format:{type:String,default:""},type:{type:String,default:""},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},placeholder:{type:String,default:""},printRead:{default:!1}},data:function(){return{show:!1,currentDate:new Date,minDate:new Date("/1920/01/01"),maxDate:new Date("/2120/11/01"),defaultIndex:0,currentYear:(new Date).getFullYear()+""}},computed:{formatValue:function(){if(this.value){var e=this.format.replace("yyyy","YYYY").replace("dd","DD");return se()(this.value).format(e)}return""},modelValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},yearList:function(){for(var e=[],t=this.minDate.getFullYear(),n=this.maxDate.getFullYear(),o=t;o<n+1;o++)e.push(o+"");return e}},methods:{openPopup:function(){var e=this;if(!this.disabled){if("year"===this.type)if(this.value){var t=new Date(this.value).getFullYear(),n=this.yearList.findIndex((function(e){return e===t+""}));this.defaultIndex=-1!==n?n:0}else{var o=this.yearList.findIndex((function(t){return t===e.currentYear}));this.defaultIndex=-1!==o?o:0}else this.currentDate=this.value?new Date(this.value):new Date;this.show=!0}},clearValue:function(){this.currentDate=new Date,this.modelValue=""},handleOnBlur:function(){this.$emit("blur")},handleOnFocus:function(){this.$emit("focus")},formatter:function(e,t){return"year"===e?"".concat(t,"年"):"month"===e?"".concat(t,"月"):"day"===e?"".concat(t,"日"):"hour"===e?"".concat(t,"时"):"minute"===e?"".concat(t,"分"):t},onFinish:function(e){"year"===this.type?this.modelValue=new Date(e,0,1,0,0,0,0).getTime():this.modelValue=e.getTime(),this.show=!1}}},ce=le,ue=Object(f.a)(ce,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.printRead?[e._v(e._s(e.formatValue))]:[n("div",{on:{click:e.openPopup}},[n("el-input",{attrs:{placeholder:e.placeholder,readonly:"",clearable:""},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.formatValue,callback:function(t){e.formatValue=t},expression:"formatValue"}},[e.clearable&&e.formatValue?n("i",{staticClass:"el-icon-circle-close",attrs:{slot:"suffix"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.clearValue.apply(null,arguments)}},slot:"suffix"}):e._e()])],1)],n("van-popup",{attrs:{round:"",position:"bottom"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},["year"!==e.type?n("van-datetime-picker",{attrs:{type:"month"===e.type?"year-month":e.type,title:e.$iss18n.t("issfd.runtime.component.filters.pleaseSelectClean"),formatter:e.formatter,minDate:e.minDate,maxDate:e.maxDate},on:{confirm:e.onFinish,cancel:function(t){e.show=!1}},model:{value:e.currentDate,callback:function(t){e.currentDate=t},expression:"currentDate"}}):n("van-picker",{attrs:{title:e.$iss18n.t("issfd.runtime.component.filters.pleaseSelectClean"),"show-toolbar":"",columns:e.yearList,"default-index":e.defaultIndex,teleport:"body"},on:{confirm:e.onFinish,cancel:function(t){e.show=!1}}})],1)],2)}),[],!1,null,null,null),de=ue.exports,fe={name:"renderer-date",extends:M,components:{CustomMobileDate:de},mounted:function(){if("current"===this.element.options.isVariableDefaultValue&&!this.element.options.hidden&&(!this.printRead||this.element.options.readonly)&&!this.dataModel){var e=(new Date).getFullYear(),t=(new Date).getMonth(),n=(new Date).getDate();switch(this.element.options.format){case"yyyy":var o=new Date(e,0,1,0,0,0,0);this.dataModel=o.getTime();break;case"yyyy-MM":var r=new Date(e,t,1,0,0,0,0);this.dataModel=r.getTime();break;case"yyyy-MM-dd":var i=new Date(e,t,n,0,0,0,0);this.dataModel=i.getTime();break;case"yyyy-MM-dd HH:mm:ss":this.dataModel=(new Date).getTime()}}},methods:{handleOnChange:function(e){this.dataModel=e}}},pe=fe,me=Object(f.a)(pe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return"mobile"===e.platform?n("custom-mobile-date",{ref:"icd-form-"+e.element.model,attrs:{"print-read":e.printRead,disabled:e.printRead||!e.edit||e.element.options.disabled,clearable:e.element.options.clearable,placeholder:e.element.options.placeholder,format:"custom"===e.element.options.format?e.element.options.customFormat:e.element.options.format,type:e.element.options.type},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}):n("el-date-picker",{ref:"icd-form-"+e.element.model,style:{width:e.pluginWidth},attrs:{clearable:e.element.options.clearable,disabled:e.disabled,editable:e.element.options.editable,"end-placeholder":e.element.options.endPlaceholder,format:"custom"===e.element.options.format?e.element.options.customFormat:e.element.options.format,placeholder:e.element.options.placeholder,readonly:e.element.options.readonly,"start-placeholder":e.element.options.startPlaceholder,type:e.element.options.type,"value-format":"timestamp"},on:{change:e.handleOnChange,blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})}),[],!1,null,null,null),he=me.exports,ge={name:"renderer-rate",extends:M},ve=ge,be=Object(f.a)(ve,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-rate",{ref:"icd-form-"+e.element.model,style:e.element.options.clearable?"float:left":"",attrs:{"allow-half":e.element.options.allowHalf,disabled:e.disabled,"icon-classes":["ri-star-fill","ri-star-fill","ri-star-fill"],max:e.element.options.max,"score-template":"{value}"+e.element.options.suffix,"show-score":e.element.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.element.options.clearable&&!e.printRead?n("el-link",{staticStyle:{float:"left","margin-left":"1rem"},attrs:{underline:!1,type:"primary"},on:{click:function(t){e.dataModel=0}}},[e._v("清空")]):e._e()],1)}),[],!1,null,null,null),ye=be.exports,_e=n("f73f"),we=n("d9c2"),Ce={name:"renderer-select",extends:M,components:{CustomSelectComponent:_e.a,CustomMobileSelect:we.a},inject:{elFormItem:{default:""}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._elFormItemSize||(this.$ELEMENT||{}).size||"small"}},created:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:if(e.element.options.remote!==l.a.DICT_DATA){t.n=2;break}if(!e.element.options.remoteOption||!e.element.options.remoteOption.remoteDict){t.n=1;break}return t.n=1,e.handleLoadDictOptions();case 1:t.n=3;break;case 2:e.element.options.remoteOptions=O(e.element,e.remote,e.remoteOptionSource,e.dataSourceValue,e.edit);case 3:return t.a(2)}}),t)})))()}},xe=Ce,Oe=Object(f.a)(xe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.printRead?n("div",[e.isRemote?[e._v(" "+e._s(("object"==typeof e.dataModel&&e.dataModel?e.dataModel.map((function(t){return e.element.options.remoteOptions.find((function(e){return e.value===t}))&&e.element.options.remoteOptions.find((function(e){return e.value===t})).label})).join("、"):e.element.options.remoteOptions.find((function(t){return t.value===e.dataModel}))&&e.element.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.element.options.options.find((function(e){return e.value===t}))&&e.element.options.options.find((function(e){return e.value===t})).label})).join("、"):e.element.options.options.find((function(t){return t.value===e.dataModel}))&&e.element.options.options.find((function(t){return t.value===e.dataModel})).label)||"")+" ")]],2):n("div",["mobile"===e.platform?n("custom-mobile-select",{ref:"icd-form-"+e.element.model,attrs:{multiple:e.element.options.multiple,options:e.isRemote?e.element.options.remoteOptions:e.element.options.options,disabled:!e.edit||e.element.options.disabled,clearable:e.element.options.clearable,filterable:e.element.options.filterable,placeholder:e.element.options.placeholder},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}):n("custom-select-component",{ref:"icd-form-"+e.element.model,style:{width:e.pluginWidth},attrs:{clearable:e.element.options.clearable,"custom-multiple":e.element.options.multiple,disabled:!e.edit||e.element.options.disabled,filterable:e.element.options.filterable,loading:e.optionLoading,placeholder:e.element.options.placeholder,"loading-text":e.$iss18n.t("issfd.runtime.component.options.loadOptions"),multiple:"",size:e.size},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},e._l(e.isRemote?e.element.options.remoteOptions:e.element.options.options,(function(t,o){return n("el-option",{key:t.id||t.value+o,attrs:{disabled:e.element.options.disabledOptions&&e.element.options.disabledOptions.indexOf(t.value)>-1,label:t.label,value:t.value}})})),1),e.optionLoadFailed?n("div",{staticClass:"form-option-load-failed"},[n("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.options.loadFailed"))+" "),n("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[n("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.options.retry"))+" ")],1)],1):e._e()],1)}),[],!1,null,null,null),Te=Oe.exports,Ee={name:"renderer-switches",extends:M},Se=Ee,De=Object(f.a)(Se,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.printRead?n("div",[e._v(" "+e._s(!0===e.dataModel?e.element.options.activeText||"是":!1===e.dataModel?e.element.options.inactiveText||"否":"")+" ")]):n("div",[n("el-switch",{ref:"icd-form-"+e.element.model,attrs:{"active-text":e.element.options.activeText,disabled:!e.edit||e.element.options.disabled,"inactive-text":e.element.options.inactiveText},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})],1)}),[],!1,null,null,null),ke=De.exports,Ae={name:"renderer-slider",extends:M},Me=Ae,Ie=Object(f.a)(Me,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.printRead?n("div",[e._v(" "+e._s(e.dataModel+e.element.options.suffix)+" ")]):n("el-slider",{ref:"icd-form-"+e.element.model,style:{width:e.pluginWidth},attrs:{disabled:e.disabled,"format-tooltip":function(t){return t+e.element.options.suffix},max:e.element.options.max,min:e.element.options.min,range:e.element.options.range,"show-input":e.element.options.showInput,step:e.element.options.step},on:{change:e.handleAfterChange},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})}),[],!1,null,null,null),Pe=Ie.exports,Re=n("0a4d"),Le={name:"renderer-editor",extends:M,components:{RichEditor:Re.a}},Ne=Le,Fe=Object(f.a)(Ne,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rich-editor",{ref:"icd-form-"+e.element.model,attrs:{"custom-style":{width:e.pluginWidth,cursor:!e.edit||e.element.options.disabled?"no-drop":"",backgroundColor:!e.edit||e.element.options.disabled?"#F5F7FA":""},disabled:e.disabled,placeholder:e.element.options.placeholder,readonly:!0},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})}),[],!1,null,null,null),je=Fe.exports,Be=n("9a01"),$e={name:"renderer-organization",extends:M,components:{OrganizationSelector:Be.a}},ze=$e,Ue=Object(f.a)(ze,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.printRead?n("div",[e._v(" "+e._s(e.dataModel&&e.dataModel.map((function(e){return e.name})).join("、")||"")+" ")]):n("div",[n("organization-selector",{ref:"icd-form-"+e.element.model,attrs:{"dialog-title":"选择"+("ORGAN"===e.element.options.optionScopeType?"组织机构":"人员"),"custom-style":{width:e.pluginWidth},disabled:e.disabled,multiple:e.element.options.multiple,"parent-code":e.getParentCode("code"),"parent-name":e.getParentCode("name"),"option-scope-type":e.element.options.optionScopeType,placeholder:e.element.options.placeholder,platform:e.platform,sortable:e.element.options.sortable,element:e.element,"event-function":e.eventFunction},on:{onConfirm:e.handleOnConfirm},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})],1)}),[],!1,null,null,null),Ve=Ue.exports,He={name:"renderer-member",extends:Ve},We=He,Ye=Object(f.a)(We,void 0,void 0,!1,null,null,null),qe=Ye.exports,Ge=n("2909"),Ke=(n("99af"),n("5db7"),n("a15b"),n("73d9"),n("796d"),n("e2e6")),Xe=n("ade3"),Je={name:"CustomMobileCascader",props:Object(Xe.a)({platform:{type:String,default:"mobile"},options:{type:Array,default:function(){return[]}},value:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},placeholder:{type:String,default:""},isRemote:{type:Boolean,default:!1},remoteType:{type:String,default:null},checkStrictly:{type:Boolean,default:!1}},"checkStrictly",{type:Boolean,default:!1}),data:function(){return{isLoading:!1,cascaderValue:"",fieldNames:{text:"label",value:"value",children:"children"},show:!1,cascaderCode:""}},watch:{value:{deep:!0,immediate:!0,handler:function(){this.initValue()}}},mounted:function(){this.initValue()},methods:{handleClickOption:function(e){this.checkStrictly&&this.$emit("input",[null==e?void 0:e.value]||!1)},initValue:function(){var e=this;if(this.value&&this.value.length){this.cascaderCode=this.value[this.value.length-1];var t={children:this.options},n=[];this.value.forEach((function(o){t&&t.children&&t.children.length&&(t=t.children.find((function(t){return e.remoteType===l.a.DICT_DATA?t.itemCode===o:t.value===o})),n.push(t?t.label:""))})),this.isRemote?this.cascaderValue=n.join("/"):this.cascaderValue=this.value.join("/")}else this.currtentNode="",this.cascaderValue=""},onShowDialog:function(){this.disabled||(this.show=!0)},clearValue:function(){this.cascaderCode="",this.cascaderValue="",this.$emit("change","")},onChange:function(e){var t=this;return Object(i.a)(Object(r.a)().m((function n(){var o,i,a,s,u,d,f,p;return Object(r.a)().w((function(n){for(;;)switch(n.n){case 0:if(a=e.value,s=e.selectedOptions,t.isRemote){n.n=1;break}return n.a(2);case 1:t.isLoading=!0,u=s.findIndex((function(e){return t.remoteType===l.a.DICT_DATA?e.itemCode===a:e.value===a})),d=null,p=t.remoteType,n.n=p===l.a.DICT_DATA?2:p===l.a.UC?4:6;break;case 2:return n.n=3,Object(c.a)(t,{dictId:s[u].dictId,parentId:s[u].id});case 3:return d=n.v,null!==(o=d)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&o.length?(t.$set(s[u],"children",(null===(f=d)||void 0===f?void 0:f.data)||[]),t.isLoading=!1):(t.show=!1,t.isLoading=!1),n.a(3,7);case 4:return n.n=5,t.getOrgByParentCode(a);case 5:return d=n.v,null!==(i=d)&&void 0!==i&&i.length?(t.$set(s[u],"children",d||[]),t.isLoading=!1):(t.show=!1,t.isLoading=!1),n.a(3,7);case 6:return n.a(3,7);case 7:return n.a(2)}}),n)})))()},getOrgByParentCode:function(){var e=arguments;return Object(i.a)(Object(r.a)().m((function t(){var n,o;return Object(r.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:if(n=e.length>0&&void 0!==e[0]?e[0]:null){t.n=1;break}return t.a(2,null);case 1:return t.p=1,t.n=2,Object(I.s)({code:n});case 2:if(1===(o=t.v).data.code){t.n=3;break}return t.a(2,null);case 3:return t.a(2,o.data.data.length?o.data.data.map((function(e){return{id:e.code,label:e.name,value:e.code,meta:e}})):[]);case 4:return t.p=4,t.v,t.a(2,null)}}),t,null,[[1,4]])})))()},onFinish:function(e){var t=e.selectedOptions;this.isRemote||(this.show=!1),this.cascaderCode=t[t.length-1].value,this.cascaderValue=t.map((function(e){return e.label})).join("/");var n=t.map((function(e){return e.value}));this.$emit("input",n),this.$emit("change",n)},handleOnBlur:function(){this.$emit("blur")},handleOnFocus:function(){this.$emit("focus")}}},Qe=Je,Ze=Object(f.a)(Qe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{on:{click:e.onShowDialog}},[n("el-input",{staticClass:"address-mobile",attrs:{placeholder:e.placeholder,readonly:"",clearable:""},on:{blur:e.handleOnBlur,focus:e.handleOnFocus},model:{value:e.cascaderValue,callback:function(t){e.cascaderValue=t},expression:"cascaderValue"}},[e.cascaderValue&&e.clearable?n("i",{staticClass:"el-icon-circle-close address-icon",attrs:{slot:"suffix"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.clearValue.apply(null,arguments)}},slot:"suffix"}):e._e()])],1),n("van-popup",{style:{minHeight:"60vh",maxHeight:"90vh"},attrs:{round:"",position:"bottom","close-on-click-overlay":!1},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[n("van-cascader",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoading,expression:"isLoading"}],attrs:{title:e.$iss18n.t("issfd.runtime.component.filters.pleaseSelectClean"),options:e.options,"field-names":e.fieldNames,"active-color":"#3164f6"},on:{close:function(t){e.show=!1},change:e.onChange,finish:e.onFinish},scopedSlots:e._u([{key:"option",fn:function(t){var o=t.option;return[n("div",{staticClass:"mobile-cascader-option",on:{click:function(t){return e.handleClickOption(o)}}},[e._v(e._s(o.label))])]}}]),model:{value:e.cascaderCode,callback:function(t){e.cascaderCode=t},expression:"cascaderCode"}})],1)],1)}),[],!1,null,null,null),et=Ze.exports,tt={name:"renderer-cascader",extends:M,inject:["formValue"],components:{CustomMobileCascader:et},watch:{printRead:{deep:!0,immediate:!1,handler:(S=Object(i.a)(Object(r.a)().m((function e(t){return Object(r.a)().w((function(e){for(;;)switch(e.n){case 0:t?this.getCascaderPrintValue():this.initOptions();case 1:return e.a(2)}}),e,this)}))),function(e){return S.apply(this,arguments)})},platform:{deep:!0,immediate:!1,handler:(E=Object(i.a)(Object(r.a)().m((function e(){return Object(r.a)().w((function(e){for(;;)switch(e.n){case 0:this.printRead?this.getCascaderPrintValue():this.initOptions();case 1:return e.a(2)}}),e,this)}))),function(){return E.apply(this,arguments)})}},data:function(){return{selectionTypeSuffix:Ke.a,DATASOURCE_TYPE:l.a,printValue:"",options:[],optionLoading:!1,optionLoadFailed:!1,optionsFinish:!1}},mounted:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){var n,o,i;return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:if(!e.printRead){t.n=4;break}if((null===(n=e.element)||void 0===n||null===(n=n.options)||void 0===n?void 0:n.remote)!==l.a.UC){t.n=2;break}return e.options=[{label:e.getParentCode("name"),value:e.getParentCode("code")}],t.n=1,e.loadCascaderOptions();case 1:o=e.flattingArray(e.options),i=(o||[]).filter((function(t){return(e.value||[]).includes(t.value)})).map((function(e){return e.label})),e.printValue=(i||[]).join(" / "),t.n=3;break;case 2:return t.n=3,e.getCascaderPrintValue();case 3:t.n=5;break;case 4:return t.n=5,e.initOptions();case 5:return t.a(2)}}),t)})))()},methods:{flattingArray:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return R.a.flatMap(t,(function(t){var n=Object(_.a)({},t);return"children"in n&&delete n.children,[n].concat(Object(Ge.a)(e.flattingArray(t.children,"children")))}))},initOptions:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){var n;return Object(r.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:if(t.p=0,e.optionsFinish=!1,e.element.options.remote!==l.a.DICT_DATA||null===(n=e.element.options.remoteOption)||void 0===n||!n.remoteDict){t.n=3;break}if(!e.edit){t.n=2;break}return t.n=1,e.handleLoadDictOptions();case 1:e.options=e.element.options.remoteOptions,e.options&&e.options.length&&e.options.forEach((function(e){e.leaf="0"===e.hasChild}));case 2:t.n=6;break;case 3:if(e.element.options.remote!==l.a.UC){t.n=4;break}e.edit&&(e.options=[{label:e.getParentCode("name"),value:e.getParentCode("code")}]),t.n=6;break;case 4:if(e.element.options.remote!==l.a.DATA_SET){t.n=6;break}if(!e.edit){t.n=6;break}return t.n=5,e.getOptionsByDataset(e.element.options.dataSet,e.element.options.dataSetMapper);case 5:return e.options=t.v,t.a(2);case 6:return t.n=7,e.loadCascaderOptions();case 7:t.n=9;break;case 8:t.p=8,t.v;case 9:return t.p=9,e.optionsFinish=!0,t.f(9);case 10:return t.a(2)}}),t,null,[[0,8,9,10]])})))()},getOptionsByDataset:function(){var e=arguments,t=this;return Object(i.a)(Object(r.a)().m((function n(){var o,i,a,s,l,c,u,d,f,p,m,h;return Object(r.a)().w((function(n){for(;;)switch(n.p=n.n){case 0:if(o=e.length>0&&void 0!==e[0]?e[0]:null,i=e.length>1&&void 0!==e[1]?e[1]:{},o){n.n=1;break}return n.a(2,[]);case 1:return a="从数据集获取选项(全量加载)",t.optionLoading=!0,n.p=2,n.n=3,Object(I.f)({setId:null==o?void 0:o.setId});case 3:if(200===(l=n.v).data.code){n.n=4;break}return t.$message.warning("".concat(a," - 失败")),n.a(2,[]);case 4:return c=null!==(s=l.data.data)&&void 0!==s?s:{},u=c.columns,d=void 0===u?[]:u,f=c.rows,p=void 0===f?[]:f,m=Object.keys(i).map((function(e){return i[e]}))||[],h=p.map((function(e){var t={};return d.forEach((function(n,o){m.includes(n.name)&&(t[n.name]=e[o])})),t})).map((function(e){return Object(_.a)(Object(_.a)({},e),{},{label:e[i.label],value:e[i.value]})})),n.a(2,t.buildTreeByParent(h,"",i.parent,i.value));case 5:n.p=5,n.v,t.$message.warning("".concat(a," - 失败"));case 6:return n.p=6,t.optionLoading=!1,n.f(6);case 7:return n.a(2)}}),n,null,[[2,5,6,7]])})))()},buildTreeByParent:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"parent",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"value";if(!t.length)return[];var i=t.filter((function(e){return e[o]===n}));return null!=i&&i.length?i.map((function(n){var i=e.buildTreeByParent(t,n[r],o,r);return Object(_.a)(Object(_.a)({},n),{},{children:i,leaf:0===i.length})})):[]},loadCascaderOptions:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){var n,o;return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:if(!(e.dataModel&&e.dataModel.length&&e.options&&e.options.length)){t.n=2;break}return n=e.options.findIndex((function(t){return t.value===e.dataModel[0]})),t.n=1,e.getChildren(e.options[n],1);case 1:(o=t.v)&&o.length?(o.forEach((function(e){e.children&&0===e.children.length&&(e.leaf=!0,delete e.children)})),e.$set(e.options[n],"children",o)):e.$set(e.options[n],"leaf",!0);case 2:return t.a(2)}}),t)})))()},getChildren:function(e,t){var n=this;return Object(i.a)(Object(r.a)().m((function o(){var i,a,s,c,u;return Object(r.a)().w((function(o){for(;;)switch(o.n){case 0:a=null,u=null===(i=n.element)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.remote,o.n=u===l.a.DICT_DATA?1:u===l.a.UC?3:5;break;case 1:return o.n=2,n.loadDictOption(e);case 2:return a=o.v,o.a(3,6);case 3:return o.n=4,n.getOrgByParentCode(e.value);case 4:return a=o.v,o.a(3,6);case 5:return o.a(3,6);case 6:if(!(a&&a.length&&t<n.dataModel.length)){o.n=8;break}return s=a.findIndex((function(e){return e.value===n.dataModel[t]})),o.n=7,n.getChildren(a[s],t+1);case 7:(c=o.v)&&c.length&&n.$set(a[s],"children",c);case 8:return o.a(2,a)}}),o)})))()},loadDictOption:function(e){var t=this;return Object(i.a)(Object(r.a)().m((function n(){var o,i;return Object(r.a)().w((function(n){for(;;)switch(n.p=n.n){case 0:return t.loading=!0,n.p=1,n.n=2,Object(c.a)(t,{dictId:e.dictId,parentId:e.id});case 2:return(o=n.v).data&&o.data.length&&(o.data=o.data.map((function(e){return Object(_.a)(Object(_.a)({},e),{},{leaf:"0"===e.hasChild})}))),n.a(2,o.data);case 3:return n.p=3,i=n.v,t.$message.error(i),n.a(2,null);case 4:return n.p=4,t.loading=!1,n.f(4);case 5:return n.a(2)}}),n,null,[[1,3,4,5]])})))()},cascaderLazyLoad:function(e,t){var n=this;return Object(i.a)(Object(r.a)().m((function o(){var i,a,s,u;return Object(r.a)().w((function(o){for(;;)switch(o.n){case 0:if(n.optionLoadFailed=!1,(null===(i=n.element)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.remote)!==l.a.DICT_DATA){o.n=5;break}if(!(e.root||e.data&&e.data.leaf)){o.n=1;break}return t(),o.a(2);case 1:if(e.children&&!(e.children.length<1)){o.n=3;break}return o.n=2,Object(c.a)(n,{dictId:e.data.dictId,parentId:e.data.id});case 2:(s=o.v).data?t(s.data.map((function(e){return Object(_.a)(Object(_.a)({},e),{},{leaf:e.hasChild&&"0"===e.hasChild})}))):n.optionLoadFailed=!0,o.n=4;break;case 3:t();case 4:o.n=10;break;case 5:if((null===(a=n.element)||void 0===a||null===(a=a.options)||void 0===a?void 0:a.remote)!==l.a.UC){o.n=9;break}if(0!==e.level){o.n=6;break}t([{label:n.getParentCode("name"),value:n.getParentCode("code")}]),o.n=8;break;case 6:return o.n=7,n.getOrgByParentCode(e.value);case 7:(u=o.v)&&u.length?t(u):t();case 8:o.n=10;break;case 9:t();case 10:return o.a(2)}}),o)})))()},getOrgByParentCode:function(){var e=arguments,t=this;return Object(i.a)(Object(r.a)().m((function n(){var o,i;return Object(r.a)().w((function(n){for(;;)switch(n.p=n.n){case 0:if(o=e.length>0&&void 0!==e[0]?e[0]:null){n.n=1;break}return t.optionLoadFailed=!0,n.a(2,null);case 1:return n.p=1,n.n=2,Object(I.s)({code:o});case 2:if(1===(i=n.v).data.code){n.n=3;break}return t.optionLoadFailed=!0,n.a(2,null);case 3:return n.a(2,i.data.data.length?i.data.data.map((function(e){return{label:e.name,value:e.code,leaf:0===e.childs,meta:e}})):[]);case 4:return n.p=4,n.v,t.optionLoadFailed=!0,n.a(2,null)}}),n,null,[[1,4]])})))()},onCascaderChange:function(e){var t=this;e&&this.$nextTick((function(){t.$parent&&t.$parent.clearValidate&&t.$parent.clearValidate(),t.$parent&&t.$parent.$parent&&t.$parent.$parent.$refs.BaseElementItem&&t.$parent.$parent.$refs.BaseElementItem.clearValidate()}))},getCascaderPrintValue:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){var n,o,i,a,s,c,u;return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:if(!e.isInTable){t.n=10;break}if(!e.formValue[e.tableName]){t.n=1;break}n=e.formValue[e.tableName][e.rowIndex],e.printValue=n?(n["".concat(e.element.model,"_").concat(Ke.a)]||[]).join(" / "):"",t.n=9;break;case 1:if(!e.isRemote){t.n=8;break}u=null===(o=e.element)||void 0===o||null===(o=o.options)||void 0===o?void 0:o.remote,t.n=u===l.a.DICT_DATA?2:u===l.a.UC?4:5;break;case 2:return t.n=3,e.handleLoadDictOptions();case 3:return e.options=e.element.options.remoteOptions,t.a(3,6);case 4:return e.options=[{label:e.getParentCode("name"),value:e.getParentCode("code")}],t.a(3,6);case 5:return t.a(3,6);case 6:return t.n=7,e.loadCascaderOptions();case 7:i={children:e.options},a=[],e.printValue="",e.dataModel.forEach((function(e){i&&i.children&&(i=i.children.find((function(t){return t.itemCode===e})),a.push(i?i.label:""))})),e.printValue=a.join("/"),t.n=9;break;case 8:e.printValue=e.value.join("/");case 9:t.n=11;break;case 10:void 0!==e.formValue["".concat(e.element.model,"_").concat(Ke.a)]?e.printValue=(e.formValue["".concat(e.element.model,"_").concat(Ke.a)]||[]).join(" / "):e.$refs["icd-form-".concat(e.element.model)]&&("mobile"===e.platform?e.printValue=e.$refs["icd-form-".concat(e.element.model)].cascaderValue:(s=e.$refs["icd-form-".concat(e.element.model)].getCheckedNodes(),c=s&&s.length?s[0].pathLabels:[],e.printValue=e.isRemote?c.join(" / "):e.dataModel.join(" / ")));case 11:return t.a(2)}}),t)})))()}}},nt=tt,ot=Object(f.a)(nt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.printRead?n("div",[e._v(e._s(e.printValue))]):n("div",["mobile"===e.platform&&e.optionsFinish?n("custom-mobile-cascader",{ref:"icd-form-"+e.element.model,attrs:{options:e.isRemote?e.options:e.element.options.options,disabled:e.printRead||!e.edit||e.element.options.disabled,clearable:e.element.options.clearable,filterable:e.element.options.filterable,placeholder:e.element.options.placeholder,isRemote:e.isRemote,"remote-type":e.element.options.remote,"check-strictly":e.element.options.checkStrictly},on:{blur:e.handleOnBlur,change:e.onCascaderChange,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}):e.optionsFinish?n("el-cascader",{ref:"icd-form-"+e.element.model,style:{width:e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{clearable:e.element.options.clearable,disabled:e.disabled,filterable:e.element.options.filterable,loading:e.optionLoading,options:e.isRemote?e.options:e.element.options.options,placeholder:e.element.options.placeholder,props:{lazy:e.isRemote,lazyLoad:e.cascaderLazyLoad,checkStrictly:e.element.options.checkStrictly},"collapse-tags":"","loading-text":e.$iss18n.t("issfd.runtime.component.options.loadOptions")},on:{blur:e.handleOnBlur,change:e.onCascaderChange,focus:e.handleOnFocus},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}):e._e(),e.optionLoadFailed?n("div",{staticClass:"form-option-load-failed"},[n("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.options.loadFailed"))+" "),n("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[n("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.options.retry"))+" ")],1)],1):e._e()],1)}),[],!1,null,null,null).exports,rt={name:"renderer-upload",extends:M,components:{UploadComponent:n("c1ea").a}},it=Object(f.a)(rt,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("upload-component",{ref:"icd-form-"+e.element.model,style:{width:e.pluginWidth},attrs:{disabled:!e.edit||e.element.options.disabled,limit:e.element.options.limit,multiple:e.element.options.multiple,"print-read":e.printRead,size:e.element.options.size,accept:e.element.options.accept,tip:e.element.options.tip,"hide-tips":e.element.options.hideTips,"is-batch-download":e.element.options.isBatchDownload,searchable:e.element.options.searchable,isPreview:e.element.options.isPreview,"enable-drag":e.element.options.isDrag,platform:e.platform},on:{onSuccess:e.onUploadSuccess,onRemove:e.onUploadFileRemoved},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})}),[],!1,null,null,null).exports,at={name:"renderer-imageUpload",extends:M,components:{UploadImageComponent:n("7afc").a}},st=Object(f.a)(at,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("upload-image-component",{ref:"icd-form-"+e.element.model,style:{width:e.pluginWidth},attrs:{disabled:!e.edit||e.element.options.disabled,limit:e.element.options.limit,multiple:e.element.options.multiple,"print-read":e.printRead,size:e.element.options.size,tip:e.element.options.tip,"hide-tips":e.element.options.hideTips,accept:e.element.options.accept,"is-batch-download":e.element.options.isBatchDownload},on:{onSuccess:e.onUploadSuccess,onRemove:e.onUploadFileRemoved},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})}),[],!1,null,null,null).exports,lt={name:"renderer-uuid",extends:M,components:{UuidComponent:n("b3da").a}},ct=Object(f.a)(lt,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("uuid-component",{ref:"icd-form-"+e.element.model,attrs:{"custom-style":{width:e.pluginWidth},"print-read":e.printRead},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})}),[],!1,null,null,null).exports,ut={name:"renderer-sequence",extends:M},dt=Object(f.a)(ut,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.currentFormId&&e.currentFormId.length?n("div",{ref:"icd-form-"+e.element.model},[e.printRead?[e._v(e._s(e.dataModel))]:n("el-input",{attrs:{value:e.dataModel&&e.dataModel.length?e.dataModel.toString():e.$iss18n.t("issfd.runtime.component.sequenceTip"),disabled:""}})],2):n("div",[e._v(e._s(e.$iss18n.t("issfd.runtime.component.sequenceTip")))])}),[],!1,null,null,null).exports,ft={name:"renderer-address",extends:M,inject:{elFormItem:{default:""}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._elFormItemSize||(this.$ELEMENT||{}).size||"small"}},components:{AddressComponent:n("ce9d").a}},pt=Object(f.a)(ft,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("address-component",{ref:"icd-form-"+e.element.model,attrs:{disabled:e.element.options.disabled||!e.edit,"is-address-detail":e.element.options.isAddressDetail,"print-read":e.printRead,platform:e.platform,size:e.size},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})}),[],!1,null,null,null).exports,mt={name:"renderer-relatedForm",extends:M,components:{RelatedForm:n("40e3").a},inject:["renderFormRef"],props:["isInTable","rowIndex"],mounted:function(){var e=this;this.rules[this.element.model]&&!this.dataModel&&this.$nextTick((function(){e.renderFormRef().clearValidate([e.element.model])}))}},ht=Object(f.a)(mt,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("related-form",{ref:"icd-form-"+e.element.model,attrs:{clearable:e.element.options.clearable,disabled:e.disabled,models:e.dataModels,placeholder:e.element.options.placeholder,"print-read":e.printRead,widget:e.element,platform:e.platform,"is-in-table":e.isInTable,"row-index":e.rowIndex,"scope-row-data":e.scopeRowData},on:{getRelatedFormData:e.handleRelatedFormDataChange},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})}),[],!1,null,null,null).exports,gt=n("53ca"),vt=(n("fb6a"),n("a434"),n("ec26")),bt=n("7461"),yt={add:{label:"新增",value:"add",icon:"add-line"},cancelCurrent:{label:"取消选中",value:"cancelCurrent",icon:"close-line"},remove:{label:"删除",value:"remove",icon:"delete-bin-4-fill"},removeList:{label:"批量删除",value:"removeList",icon:"delete-bin-4-fill"},copy:{label:"复制",value:"copy",icon:"file-copy-fill"},upload:{label:"导入",value:"upload",icon:"download-2-line"},download:{label:"导出",value:"download",icon:"upload-2-line"},moveUp:{label:"上移",value:"moveUp",icon:"arrow-up-line"},moveDown:{label:"下移",value:"moveDown",icon:"arrow-down-line"},cancel:{label:"取消",value:"cancel",icon:"close-circle-fill"}},_t=n("0f01"),wt={name:"TableItem",props:["element","value","models","remote","isTable","isInTable","disabled","edit","remoteOptionSource","rules","platform","preview","dataSourceValue","eventFunction","rowIndex","tableName","printRead","scopeRowData"],data:function(){return{Elements:pn,dataModel:this.value,relatedFormData:null,selectedItem:null}},methods:{handleRelatedFormDataChange:function(e){e&&(this.relatedFormData=e.value,this.selectedItem=e.selectedItem)},onClickInDetail:function(){var e,t,n,o,r=this.printRead||this.element.options.readonly,i=null===(e=this.element)||void 0===e||null===(e=e.events)||void 0===e?void 0:e.onClickInDetail,a=!0===(null===(t=this.element)||void 0===t||null===(t=t.options)||void 0===t?void 0:t.disabled)||!0===(null===(n=this.element)||void 0===n||null===(n=n.options)||void 0===n?void 0:n.readonly);(!0===r&&null!==(o=this.eventFunction)&&void 0!==o&&o[i]&&![null,"",void 0,[]].includes(this.dataModel)||!0===a)&&this.eventFunction[i]({models:this.models,rowIndex:this.rowIndex,scopeRowData:this.scopeRowData})}},mounted:function(){},watch:{value:function(e){this.dataModel=e},dataModel:function(e){var t=this;return Object(i.a)(Object(r.a)().m((function n(){return Object(r.a)().w((function(n){for(;;)switch(n.n){case 0:t.$emit("input",e),t.isTable&&t.tableName&&t.$emit("on-table-change",{value:e,field:t.element.model,table:t.tableName,rowIndex:t.rowIndex,haveEvent:t.element.events&&t.element.events.onChange,relatedFormData:t.relatedFormData,selectedItem:t.selectedItem});case 1:return n.a(2)}}),n)})))()}}},Ct=Object(f.a)(wt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"print-read-mode":e.printRead},attrs:{"data-id":e.tableName+"_"+e.element.model}},[n(e.Elements[e.element.type],{ref:"icd-form-"+e.element.model,tag:"component",attrs:{element:e.element,platform:e.platform,preview:e.preview,"print-read":e.printRead,edit:e.edit,"row-index":e.rowIndex,"table-name":e.tableName,isInTable:e.isInTable,isTable:e.isTable,scopeRowData:e.scopeRowData,remote:e.remote,"remote-option-source":e.remoteOptionSource,"event-function":e.eventFunction,rules:e.rules},on:{getRelatedFormData:e.handleRelatedFormDataChange},nativeOn:{click:function(t){return t.stopPropagation(),e.onClickInDetail.apply(null,arguments)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})],1)}),[],!1,null,null,null).exports,xt=(n("2b3d"),n("bf19"),n("9861"),n("88a7"),n("271a"),n("5494"),{name:"StepOne",components:{BaseIcon:bt.a},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(e,t){this.$refs.upload.clearFiles(),this.fileList=t},handleUpload:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){var n,o,i,a;return Object(r.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:if((n=e.fileList[0].raw).size/1024/1024<1){t.n=1;break}return e.$message.error("上传文件大小不能超过 1MB!"),t.a(2);case 1:return e.loading=!0,e.$emit("onUpload"),(o=new FormData).append("file",n),o.append("formId",e.currentFormId),t.p=2,t.n=3,Object(I.C)(o);case 3:if("0000"!==(i=t.v).data.code){t.n=5;break}return e.fileName=i.data.data,t.n=4,e.handleImport();case 4:e.$emit("onNext",e.result),t.n=6;break;case 5:e.$message.error(i.data.message);case 6:t.n=8;break;case 7:t.p=7,a=t.v,e.$message.error(a.message);case 8:return t.p=8,e.loading=!1,e.$emit("onUploadEnd"),e.fileList=[],t.f(8);case 9:return t.a(2)}}),t,null,[[2,7,8,9]])})))()},handleImport:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){var n;return Object(r.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:return e.processing=!0,t.p=1,t.n=2,Object(I.e)({fileName:e.fileName,formId:e.currentFormId,previewFlag:!0,tableWidgetKey:e.widgetKey,versionId:e.formPublishVersionId}).then((function(t){e.result.state="0000"===t.data.code,e.result.message=t.data.message||("0000"===t.data.code?"处理成功":"处理失败"),e.result.data=t.data.data})).catch((function(t){e.result.state=!1,e.result.message=t.message||t.data.message}));case 2:t.n=4;break;case 3:t.p=3,n=t.v,e.result.state=!1,e.result.message=n.message;case 4:return t.p=4,e.processing=!1,t.f(4);case 5:return t.a(2)}}),t,null,[[1,3,4,5]])})))()},downloadModel:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){var n,o,i,a;return Object(r.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:return e.$emit("onUpload"),e.loading=!0,t.p=1,t.n=2,Object(I.h)({formId:e.currentFormId,tableWidgetKey:e.widgetKey});case 2:(n=t.v).data?(o=window.URL.createObjectURL(new Blob([n.data],{type:"application/vnd.ms-excel"})),(i=document.createElement("a")).href=o,i.setAttribute("download","".concat(e.widgetName?e.widgetName:"","_").concat(e.widgetKey,"_导入模板.xlsx")),document.body.appendChild(i),i.click()):e.$message.error(n.data.message||"下载子表单导出模板失败"),t.n=4;break;case 3:t.p=3,a=t.v,e.$message.error(a);case 4:return t.p=4,e.loading=!1,e.$emit("onUploadEnd"),t.f(4);case 5:return t.a(2)}}),t,null,[[1,3,4,5]])})))()}}}),Ot=(n("fa69"),Object(f.a)(xt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"step-one-container"},[n("div",{staticClass:"row-item opt-top-bar"},[e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.import.step1"))+" "),n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.downloadModel}},[e._v(e._s(e.$iss18n.t("issfd.runtime.component.import.downloadTemplate")))])],1),n("div",{staticClass:"row-item upload-bar"},[n("el-upload",{ref:"upload",staticClass:"upload-excel",attrs:{"http-request":e.handleUpload,multiple:!1,"on-change":e.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"},[e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.import.dragHere"))+" "),n("em",[e._v(e._s(e.$iss18n.t("issfd.runtime.component.import.clickUpload")))])])],1)],1),n("div",{staticClass:"row-item note-bar"},[n("ul",{staticClass:"upload-info"},[n("li",[e._v(e._s(e.$iss18n.t("issfd.runtime.component.import.tip1")))]),n("li",[e._v(e._s(e.$iss18n.t("issfd.runtime.component.import.tip2")))]),n("li",[e._v(e._s(e.$iss18n.t("issfd.runtime.component.import.tip3")))]),n("li",[e._v(e._s(e.$iss18n.t("issfd.runtime.component.import.tip4")))])])])])}),[],!1,null,"4702b75a",null).exports),Tt={name:"StepTwo",props:{displayData:{type:Object,default:null}},data:function(){return{status:"success",statusMap:{success:this.$iss18n.t("issfd.runtime.component.import.successTip"),warning:this.$iss18n.t("issfd.runtime.component.import.partSuccessTip"),error:this.$iss18n.t("issfd.runtime.component.import.failedTip")}}},mounted:function(){this.status=this.displayData&&this.displayData.state?"success":"error"}},Et={name:"DataImport",components:{StepTwo:Object(f.a)(Tt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"step-two-container"},[n("el-result",{attrs:{icon:e.status,title:e.statusMap[e.status]}},["success"!==e.status?n("template",{slot:"subTitle"},[e._v(" "+e._s(e.displayData&&e.displayData.message)+" ")]):n("template",{slot:"subTitle"},[e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.import.success",{expr:e.displayData&&e.displayData.data&&e.displayData.data.successCount}))+" ")])],2)],1)}),[],!1,null,null,null).exports,StepOne:Ot},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(e){this.activeStep+=1,this.uploadResData=e,this.loading=!1}}},St=(n("6cf8"),Object(f.a)(Et,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,visible:e.isDisplay,"append-to-body":"","custom-class":"data-import-container",title:e.$iss18n.t("issfd.runtime.component.import.batch")},on:{close:function(t){return e.$emit("onClose")}}},[n("div",{staticClass:"header"},[n("el-steps",{attrs:{active:e.activeStep,"align-center":"","finish-status":"success"}},[n("el-step",{attrs:{title:e.$iss18n.t("issfd.runtime.component.import.upload")}}),n("el-step",{attrs:{title:e.$iss18n.t("issfd.runtime.component.import.complete")}})],1)],1),n("div",{staticClass:"body"},[0===e.activeStep?n("step-one",{attrs:{"widget-key":e.widgetKey,"widget-name":e.widgetName},on:{onNext:e.onNext,onUpload:function(t){e.loading=!0},onUploadEnd:function(t){e.loading=!1}}}):e._e(),1===e.activeStep?n("step-two",{attrs:{"display-data":e.uploadResData}}):e._e()],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){return e.$emit("onClose")}}},[e._v(e._s(e.$iss18n.t("issfd.runtime.common.buttons.cancel")))]),e.activeStep>0?n("el-button",{on:{click:function(t){e.activeStep-=1}}},[e._v(e._s(e.$iss18n.t("issfd.runtime.common.buttons.pre")))]):e._e(),1===e.activeStep?n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$emit("onComplete",e.uploadResData)}}},[e._v(e._s(e.$iss18n.t("issfd.runtime.common.buttons.complete")))]):e._e()],1)])}),[],!1,null,null,null).exports),Dt={name:"TableLayout",mounted:function(){}},kt=Object(f.a)(Dt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"table-layout-container"},[n("div",{staticClass:"absolute-header"},[e._t("absoluteHeader")],2),n("div",{staticClass:"table-layout-container-item single-col-header"},[e._t("singleColHeader")],2),n("div",{staticClass:"table-layout-container-item header"},[n("div",{staticClass:"header-item left"},[e._t("headerLeft")],2),n("div",{staticClass:"header-item right"},[e._t("headerRight")],2)]),n("div",{staticClass:"table-layout-container-item body"},[e._t("body")],2),n("div",{staticClass:"table-layout-container-item col-footer"},[e._t("colFooter")],2),n("div",{staticClass:"table-layout-container-item footer"},[n("div",{staticClass:"footer-item left"},[e._t("footerLeft")],2),n("div",{staticClass:"footer-item right"},[e._t("footerRight")],2)])])}),[],!1,null,null,null).exports,At={name:"HeaderRightOptBar",inject:["currentFormId"],components:{BaseIcon:bt.a},props:{size:{default:"mini"},enableCreateBtn:{default:!1},element:{type:Object,default:function(){return{}}},editable:{default:!0},printable:{default:!1},platformValue:{default:"pc"}},computed:{edit:function(){return this.editable},printRead:function(){return this.printable},platform:function(){return this.platformValue}},data:function(){return{TABLE_COMP_OPT_VALUE_MAP:yt,currentOptType:null,isConfirmMode:!1,showOptList:!1,moreOptList:[]}},created:function(){this.initMoreOptList()},methods:{initMoreOptList:function(){this.element&&this.element.options&&this.element.options.dataImport&&!this.printRead&&(this.currentFormId&&this.currentFormId.length&&this.moreOptList.push({name:yt.upload.label,value:yt.upload.value}),this.moreOptList.push({name:yt.removeList.label,value:yt.removeList.value})),this.element&&this.element.options&&this.element.options.dataImport&&this.edit&&this.printRead&&this.moreOptList.push({name:yt.download.label,value:yt.download.value})},onMoreOptSelect:function(e){e.value===yt.removeList.value?this.openMode(e.value):this.onOpt(e.value)},openMode:function(e){this.showOptList=!1,this.currentOptType=e,[yt.download.value,yt.removeList.value].indexOf(this.currentOptType)>-1&&(this.isConfirmMode=!0),this.$emit("openMode",e)},onOpt:function(e){this.showOptList=!1,this.$emit("onOpt",e)}}},Mt=Object(f.a)(At,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"header-right-opt-bar-container"},[e.isConfirmMode?[n("el-button",{attrs:{size:e.size},on:{click:function(t){return e.onOpt(e.TABLE_COMP_OPT_VALUE_MAP.cancel.value)}}},[e._v(" "+e._s(e.TABLE_COMP_OPT_VALUE_MAP.cancel.label)+" ")]),e.currentOptType===e.TABLE_COMP_OPT_VALUE_MAP.removeList.value?n("el-button",{attrs:{size:e.size,type:"danger",plain:""},on:{click:function(t){return e.onOpt(e.TABLE_COMP_OPT_VALUE_MAP.removeList.value)}}},[n("base-icon",{attrs:{"icon-class":"delete-bin-4-fill"}}),e._v(" 确认删除 ")],1):e._e(),e.currentOptType===e.TABLE_COMP_OPT_VALUE_MAP.download.value?n("el-button",{attrs:{size:e.size,type:"primary",plain:""},on:{click:function(t){return e.onOpt(e.TABLE_COMP_OPT_VALUE_MAP.download.value)}}},[n("base-icon",{attrs:{"icon-class":"delete-bin-4-fill"}}),e._v(" "+e._s("确认"+e.TABLE_COMP_OPT_VALUE_MAP.download.label)+" ")],1):e._e()]:[e.enableCreateBtn&&!e.printRead?n("el-button",{attrs:{type:"primary",size:e.size},on:{click:function(t){return e.onOpt(e.TABLE_COMP_OPT_VALUE_MAP.add.value)}}},[n("base-icon",{attrs:{"icon-class":"add-line"}}),e._v(" "+e._s(e.TABLE_COMP_OPT_VALUE_MAP.add.label)+" ")],1):e._e(),"mobile"===e.platform?[e.edit?[e.element&&e.element.options&&e.element.options.enableExport&&e.printRead?n("el-button",{attrs:{type:"primary",size:e.size,disabled:!e.currentFormId||!e.currentFormId.length},on:{click:function(t){return e.onOpt(e.TABLE_COMP_OPT_VALUE_MAP.download.value)}}},[n("base-icon",{attrs:{"icon-class":"upload-2-line"}}),e._v(" "+e._s(e.TABLE_COMP_OPT_VALUE_MAP.download.label)+" ")],1):e._e()]:e._e()]:[e.element&&e.element.options&&e.element.options.dataImport&&!e.printRead?n("el-button",{attrs:{type:"primary",size:e.size,disabled:!e.currentFormId||!e.currentFormId.length},on:{click:function(t){return e.onOpt(e.TABLE_COMP_OPT_VALUE_MAP.upload.value)}}},[n("base-icon",{attrs:{"icon-class":"download-2-line"}}),e._v(" "+e._s(e.TABLE_COMP_OPT_VALUE_MAP.upload.label)+" ")],1):e._e(),e.element&&e.element.options&&e.element.options.enableExport&&e.edit&&e.printRead?n("el-button",{attrs:{type:"primary",size:e.size,disabled:!e.currentFormId||!e.currentFormId.length},on:{click:function(t){return e.onOpt(e.TABLE_COMP_OPT_VALUE_MAP.download.value)}}},[n("base-icon",{attrs:{"icon-class":"upload-2-line"}}),e._v(" "+e._s(e.TABLE_COMP_OPT_VALUE_MAP.download.label)+" ")],1):e._e(),e.element&&e.element.options&&e.element.options.batchDelete&&!e.printRead?n("el-button",{attrs:{size:e.size},on:{click:function(t){return e.openMode(e.TABLE_COMP_OPT_VALUE_MAP.removeList.value)}}},[n("base-icon",{attrs:{"icon-class":"delete-bin-4-fill"}}),e._v(" "+e._s(e.TABLE_COMP_OPT_VALUE_MAP.removeList.label)+" ")],1):e._e()]],!e.printRead&&e.showOptList?n("van-action-sheet",{attrs:{actions:e.moreOptList,"cancel-text":"取消","close-on-click-action":""},on:{cancel:function(t){e.showOptList=!1},select:e.onMoreOptSelect},model:{value:e.showOptList,callback:function(t){e.showOptList=t},expression:"showOptList"}}):e._e()],2)}),[],!1,null,null,null).exports,It={name:"FooterLeftOptBar",components:{BaseIcon:bt.a},props:{size:{default:"small"},enableCreateBtn:{default:!1},enableRemoveBtn:{default:!1},enableCopyBtn:{default:!1},enableCancelCurrentBtn:{default:!1},activeRowData:{default:null},element:{type:Object,default:null},platformValue:{default:"pc"}},computed:{activeRow:function(){return this.activeRowData},platform:function(){return this.platformValue}},data:function(){return{TABLE_COMP_OPT_VALUE_MAP:yt}},methods:{onOpt:function(e){this.$emit("onOpt",e,R.a.cloneDeep(this.activeRow))}}},Pt=Object(f.a)(It,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"footer-left-opt-bar-container",class:{mobile:"mobile"===e.platform}},[e.enableCreateBtn?n("el-link",{staticClass:"container-item",attrs:{type:"primary",underline:!1,size:e.size},on:{click:function(t){return e.onOpt(e.TABLE_COMP_OPT_VALUE_MAP.add.value)}}},[n("base-icon",{attrs:{"icon-class":e.TABLE_COMP_OPT_VALUE_MAP.add.icon}}),e._v(" "+e._s(e.TABLE_COMP_OPT_VALUE_MAP.add.label)+" ")],1):e._e(),e.enableRemoveBtn?n("el-link",{staticClass:"container-item",attrs:{underline:!1,size:e.size},on:{click:function(t){return e.onOpt(e.TABLE_COMP_OPT_VALUE_MAP.remove.value)}}},[n("base-icon",{attrs:{"icon-class":e.TABLE_COMP_OPT_VALUE_MAP.remove.icon}}),e._v(" "+e._s(e.TABLE_COMP_OPT_VALUE_MAP.remove.label)+" ")],1):e._e(),e.enableCopyBtn?n("el-link",{staticClass:"container-item",attrs:{underline:!1,size:e.size},on:{click:function(t){return e.onOpt(e.TABLE_COMP_OPT_VALUE_MAP.copy.value)}}},[n("base-icon",{attrs:{"icon-class":e.TABLE_COMP_OPT_VALUE_MAP.copy.icon}}),e._v(" "+e._s(e.TABLE_COMP_OPT_VALUE_MAP.copy.label)+" ")],1):e._e(),e.element&&e.element.options&&e.element.options.rowMove?[n("el-link",{staticClass:"container-item",attrs:{underline:!1,size:e.size,disabled:!e.activeRow},on:{click:function(t){return e.onOpt(e.TABLE_COMP_OPT_VALUE_MAP.moveUp.value)}}},[n("base-icon",{attrs:{"icon-class":e.TABLE_COMP_OPT_VALUE_MAP.moveUp.icon}}),e._v(" "+e._s(e.TABLE_COMP_OPT_VALUE_MAP.moveUp.label)+" ")],1),n("el-link",{staticClass:"container-item",attrs:{underline:!1,size:e.size,disabled:!e.activeRow},on:{click:function(t){return e.onOpt(e.TABLE_COMP_OPT_VALUE_MAP.moveDown.value)}}},[n("base-icon",{attrs:{"icon-class":e.TABLE_COMP_OPT_VALUE_MAP.moveDown.icon}}),e._v(" "+e._s(e.TABLE_COMP_OPT_VALUE_MAP.moveDown.label)+" ")],1)]:e._e(),e.enableCancelCurrentBtn&&e.activeRow?n("el-link",{staticClass:"container-item",attrs:{underline:!1,size:e.size,type:"info"},on:{click:function(t){return e.onOpt(e.TABLE_COMP_OPT_VALUE_MAP.cancelCurrent.value)}}},[n("base-icon",{attrs:{"icon-class":e.TABLE_COMP_OPT_VALUE_MAP.cancelCurrent.icon}}),e._v(" "+e._s(e.TABLE_COMP_OPT_VALUE_MAP.cancelCurrent.label)+" ")],1):e._e()],2)}),[],!1,null,null,null).exports,Rt={name:"NoteBar",props:{text:{default:""}}},Lt=Object(f.a)(Rt,(function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"note-bar-container"},[this._v(this._s(this.text))])}),[],!1,null,null,null).exports,Nt={name:"PagingBar",props:["tableDataValue","currentPageValue","pageSize","layout"],computed:{tableData:function(){return this.tableDataValue},currentPage:function(){return this.currentPageValue||1}},methods:{handlePageChange:function(e){this.$emit("handlePageChange",e)}}},Ft=Object(f.a)(Nt,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"paging-bar-container"},[t("el-pagination",{staticClass:"pagination-data",attrs:{background:"","current-page":this.currentPage,"page-size":this.pageSize,"pager-count":5,total:this.tableData.length,layout:this.layout?this.layout:"total, prev, pager, next"},on:{"current-change":this.handlePageChange}})],1)}),[],!1,null,null,null).exports,jt=n("7408"),Bt=n("b860"),$t=n("1503"),zt={name:"Table",mixins:[u],components:{BaseIcon:bt.a,RendererTableItem:Ct,DataImport:St,TableLayout:kt,HeaderRightOptBar:Mt,FooterLeftOptBar:Pt,NoteBar:Lt,PagingBar:Ft,IcdEmpty:jt.a},inject:["variable","currentFormId","dataId"],props:["columns","value","models","remote","disabledData","rules","name","remoteOptionSource","preview","platform","dataSourceValue","eventFunction","element","printRead","paging","pageSize","edit"],data:function(){return{pagingConfig:Bt.a,tableData:[],displayFields:{},changeItem:{},pagingData:[],currentPage:1,currentActive:[],displayDataImport:!1,visible:!0,visibleDynamicTableTitle:!0,optionLoading:!1,optionLoadFailed:!1,selectedRows:[],isSelectedAll:!1,orderTypes:["input","textarea","number","rate","slider","switches","radio","select","checkbox","address","date"],activeRow:null,tableSelectionMode:!1,searchValue:"",remoteOptionMap:{},elementValue:null,serverInfo:Object(I.x)()}},computed:{mode:function(){return"auto"===this.element.options.displayMode?"pc"===this.platform?"table":"section":this.element.options.displayMode}},created:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){var n,i,a;return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,e.getTableData();case 1:if(e.tableData=t.v,e.tableData&&e.tableData.length&&e.tableData.forEach((function(e){e._uuid=e._uuid&&e._uuid.length?e._uuid:e.ID})),!e.element.options.enableDynamicTableTitle||!e.element.options.relatedField){t.n=4;break}n=Object(r.a)().m((function t(n){return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,e.displayValueRender(e.tableData[n][e.element.options.relatedField],e.element.options.relatedField).then((function(t){e.$set(e.tableData[n],"dynamicTableTitle",t)}));case 1:return t.a(2)}}),t)})),i=0;case 2:if(!(i<e.tableData.length)){t.n=4;break}return t.d(Object(o.a)(n(i)),3);case 3:i++,t.n=2;break;case 4:for(a=0;a<e.columns.length;a++)e.displayFields[e.columns[a].model]=!e.columns[a].options.hidden;e.loadPagingData();case 5:return t.a(2)}}),t)})))()},mounted:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:e.tableData.forEach((function(t){t._uuid=Object(vt.a)(),"section"===e.mode&&(t.checked=!1),delete t.SYS_DATA_SORT})),e.visible=!1,e.columns&&e.columns.length&&e.columns.map(function(){var t=Object(i.a)(Object(r.a)().m((function t(n){return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:if(n.options.remote!==l.a.DICT_DATA||!n.options.remoteOption||!n.options.remoteOption.remoteDict||"cascader"===n.type){t.n=2;break}return t.n=1,e.handleLoadDictOptions(n);case 1:n=t.v;case 2:return t.a(2,n)}}),t)})));return function(e){return t.apply(this,arguments)}}()),e.elementValue=e.getElementValue(),_t.a.$on("update-data-in-table",(function(t){t&&e.name===t.tableModel&&e.tableData[t.rowIndex]&&(e.$set(e.tableData[t.rowIndex],t.targetColumnName,t.targetColumnValue),e.$refs.dataTable&&e.$refs.dataTable.doLayout&&e.$refs.dataTable.doLayout())})),e.$nextTick((function(){e.visible=!0}));case 1:return t.a(2)}}),t)})))()},methods:{isDisplayComp:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(null==t?void 0:t.type)!==$t.a.BUTTON||!this.printRead||!0===(null==t||null===(e=t.options)||void 0===e?void 0:e.showInPrintRead)},onSearch:function(){this.tableData=this.getTableData()},getTableData:function(){var e=this;if(this.searchValue&&this.searchValue.length){var t=this.columns.map((function(e){return e.model}))||[],n=this.value.filter((function(n){var o=!1;return Object.keys(n).length&&Object.keys(n).forEach((function(r){var i=e.columns.find((function(e){return e.model===r}));if("_uuid"!==r&&t.indexOf(r)>-1&&null!==n[r]&&void 0!==n[r])if(["number","string"].indexOf(Object(gt.a)(n[r]))>-1&&n[r].toString&&n[r].toString().indexOf(e.searchValue)>-1)o=!0;else if(e.remoteOptionMap[r]&&e.remoteOptionMap[r].length)"string"==typeof n[r]?e.remoteOptionMap[r].forEach((function(t){var i=t.value===n[r]?t.label:null;i&&i.indexOf(e.searchValue)>-1&&(o=!0)})):Array.isArray(n[r])&&e.remoteOptionMap[r].forEach((function(t){var i=n[r].indexOf(t.value)>-1?t.label:null;i&&i.indexOf(e.searchValue)>-1&&(o=!0)}));else if(["select","checkbox"].indexOf(i.type)>-1){var s=n[r]&&n[r].toString?n[r].toString():null;s&&s.indexOf(e.searchValue)>-1&&(o=!0)}else if(a.n[i.type]){if(i&&i.options){var l=n[r]?i.options.activeText:i.options.inactiveText;l&&l.length&&l.indexOf(e.searchValue)>-1&&(o=!0)}}else if(a.c[i.type]){var c="".concat(n[r].province).concat(n[r].city).concat(n[r].district).concat(n[r].details);c&&c.length&&c.indexOf(e.searchValue)>-1&&(o=!0)}else if(a.d[i.type]){var u=n[r].map((function(e){return e.label}));u&&u.length&&u.toString&&u.toString().indexOf(e.searchValue)>-1&&(o=!0)}else if(a.A[i.type]){var d=n[r].map((function(e){return e.name}));d&&d.length&&d.toString&&d.toString().indexOf(e.searchValue)>-1&&(o=!0)}})),o}));return n&&n.length&&this.handlePageChange(1),n}return this.value},clearActiveRow:function(){this.activeRow=null,this.selectedRows=[],this.$refs.dataTable&&(this.$refs.dataTable.setCurrentRow&&this.$refs.dataTable.setCurrentRow(this.activeRow),this.$refs.dataTable.clearSelection&&this.$refs.dataTable.clearSelection())},handleCurrentChange:function(e){this.activeRow=R.a.cloneDeep(e)},openMode:function(e){var t=this;switch(e){case yt.download.value:case yt.removeList.value:this.visible=!1,this.tableSelectionMode=!0,this.$nextTick((function(){t.visible=!0}))}},onOpt:function(e,t){var n=this;switch(e){case yt.add.value:if(this.element.options.maxLimit&&this.tableData.length>=this.element.options.maxRows)this.$message.error("已达上限,无法继续添加");else{var o,r=this.activeRow?this.tableData.findIndex((function(e){return e._uuid===n.activeRow._uuid})):void 0;this.activeRow&&void 0!==r&&null!==(o=this.elementValue)&&void 0!==o&&o.options.inLineMode?this.handleAddRow(r-1,this.activeRow):this.handleAddRow()}break;case yt.moveUp.value:this.rowMove(t._uuid,"up");break;case yt.moveDown.value:this.rowMove(t._uuid,"down");break;case yt.upload.value:this.displayDataImport=!0;break;case yt.download.value:this.exportData();break;case yt.remove.value:var i=R.a.cloneDeep(this.paging?this.pagingData:this.tableData).findIndex((function(e){return e._uuid===t._uuid}));this.handleRemove(i);break;case yt.removeList.value:this.batchDelete();break;case yt.copy.value:this.handleCopy(t);break;case yt.cancel.value:this.visible=!1,this.resetConfirmMode();break;case yt.cancelCurrent.value:this.clearActiveRow()}},exportData:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){var n,o,i,a,s;return Object(r.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,Object(I.g)({formId:e.currentFormId,dataIds:[e.dataId],current:1,size:9999999,orderBy:null,data:[],exportColumns:[e.name]});case 1:"0000"!==(n=t.v).data.code?e.$message.warning("导出失败"):(o=n.data.data,i="".concat(e.serverInfo.baseUrl).concat(o),(a=document.createElement("a")).href=i,document.body.appendChild(a),a.click(),document.body.removeChild(a)),t.n=3;break;case 2:t.p=2,s=t.v,e.$message.error("导出失败:".concat(s.message||s));case 3:return t.a(2)}}),t,null,[[0,2]])})))()},resetConfirmMode:function(){var e=this;this.isSelectedAll=!1,this.selectedAll(!1),this.$refs.headerRightOptBar&&(this.$set(this.$refs.headerRightOptBar,"currentOptType",null),this.$set(this.$refs.headerRightOptBar,"isConfirmMode",!1)),this.tableSelectionMode=!1,this.$nextTick((function(){e.visible=!0}))},selectedAll:function(e){this.selectedRows=e?R.a.cloneDeep(this.paging?this.pagingData:this.tableData):[],(this.paging?this.pagingData:this.tableData).forEach((function(t){t.checked=e}))},handleCardSelectionChange:function(e,t){e?this.selectedRows.push(t):this.selectedRows=this.selectedRows.filter((function(e){return e._uuid!==t._uuid}))},rowMove:function(e,t){this.activeRow=null;var n=this.tableData.findIndex((function(t){return t._uuid===e}));if("up"===t){var o=this.tableData[n-1];o&&(this.tableData.splice(n-1,1),this.tableData.splice(n,0,o)),this.handleCurrentChange(this.tableData[o?n-1:0])}else{var r=this.tableData[n+1];r&&(this.tableData.splice(n+1,1),this.tableData.splice(n,0,r)),this.handleCurrentChange(this.tableData[r?n+1:n])}this.tableData.forEach((function(e,t){e.SYS_DATA_SORT=t})),this.loadPagingData()},batchDelete:function(){var e=this;this.selectedRows.length?this.$confirm("此操作将永久删除选中数据,确定要删除吗?","提示",{confirmButtonText:"确认"}).then((function(){e.visible=!1,e.handleCurrentChange(null),e.selectedRows.length&&e.selectedRows.forEach((function(t){var n=e.tableData.findIndex((function(e){return e._uuid===t._uuid}));e.tableData.splice(n,1)})),e.paging&&(e.currentPage=1,e.loadPagingData(),e.selectedRows=[]),e.resetConfirmMode(),e.isSelectedAll=!1})).catch((function(){})):this.$message.warning("请选择需要删除的数据")},handleSelectionChange:function(e){this.selectedRows=e},handleLoadDictOptions:function(e){var t=this;return Object(i.a)(Object(r.a)().m((function n(){var o,i;return Object(r.a)().w((function(n){for(;;)switch(n.n){case 0:if(t.optionLoading=!0,t.optionLoadFailed=!1,o={},"dict"!==(i=e.options.remoteOption.remoteDict).dictDataType){n.n=2;break}return n.n=1,Object(c.a)(t,{dictId:i.dictId,parentId:"#"});case 1:o=n.v,n.n=4;break;case 2:if("dictItem"!==i.dictDataType){n.n=4;break}return n.n=3,Object(c.a)(t,{dictId:i.dictId,parentId:i.dictOptionId});case 3:o=n.v;case 4:return o.data?(e.options.remoteOptions=o.data,t.remoteOptionMap[e.model]=e.options.remoteOptions):t.optionLoadFailed=!0,t.optionLoading=!1,n.a(2,e)}}),n)})))()},onDataImportComplete:function(e){var t=this;if(this.displayDataImport=!1,this.visible=!1,e.data&&e.data.dataList)if(this.element.options.maxLimit)if(this.tableData.length>=this.element.options.maxRows)this.$message.error("已超出最大数据限制,无法继续导入数据");else{var n=this.element.options.maxRows-this.tableData.length;n>=0?(this.models[this.element.model]=[].concat(Object(Ge.a)(e.data.dataList.slice(0,n).map((function(e){return Object(_.a)(Object(_.a)({},e),{},{_uuid:Object(vt.a)()})}))),Object(Ge.a)(this.tableData)),n<e.data.dataList.length&&this.$message.info("最大数据上限为".concat(this.element.options.maxRows,"条,本次有效导入数据").concat(n,"条"))):this.$message.error("当前数据已超出最大数据量,无法继续导入")}else this.models[this.element.model]=[].concat(Object(Ge.a)(e.data.dataList),Object(Ge.a)(this.tableData));this.loadPagingData(),this.$nextTick((function(){t.visible=!0}))},handleAddRow:function(e,t,n){var o=this,r={};if(n)r=R.a.cloneDeep(t);else for(var i=0;i<this.columns.length;i++)if("variable"===this.columns[i].options.isVariableDefaultValue){var a="未初始化变量数据";this.variable&&(a=this.variable[this.columns[i].options.defaultVariable]||""),r[this.columns[i].model]=a}else r[this.columns[i].model]=this.columns[i].options.defaultValue;if(r._uuid=Object(vt.a)(),delete r.ID,t&&!n?this.tableData.splice(e+1,0,R.a.cloneDeep(r)):this.tableData.push(R.a.cloneDeep(r)),this.element&&this.element.events&&this.element.events.onRowAdd){var s=this.element.events.onRowAdd;this.eventFunction[s]&&this.eventFunction[s]({rowIndex:this.tableData.length-1,field:this.element.model})}this.changeItem={},this.paging&&this.$nextTick((function(){o.tableData.length>o.currentPage*o.pageSize&&!t&&(o.currentPage=parseInt((o.tableData.length-1)/o.pageSize)+1),o.loadPagingData()}));try{this.currentActive.push((this.paging?this.pageSize*(this.currentPage-1):0)+(this.tableData.length-1))}catch(e){}},handleCopy:function(e,t){if(this.element.options.maxLimit&&this.tableData.length>=this.element.options.maxRows)this.$message.error("已达上限,无法复制");else{var n=t;"number"!=typeof t&&(n=this.tableData.findIndex((function(t){return e._uuid===t._uuid}))),n>-1&&this.handleAddRow(n,e,!0)}},handleRemove:function(e){var t=this;this.$confirm("此操作将永久删除该数据, 确定要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var n=t.tableData[e];if(t.activeRow&&t.activeRow._uuid===n._uuid&&t.handleCurrentChange(e-1>0?t.tableData[e-1]:null),t.tableData.splice(e,1),t.element&&t.element.events&&t.element.events.onRowRemove){var o=t.element.events.onRowRemove;t.eventFunction[o]&&t.eventFunction[o]({removeIndex:e,field:t.element.model})}t.changeItem={},t.pagingData=[],t.paging&&t.$nextTick((function(){t.tableData.length%t.pageSize==0&&t.currentPage>parseInt(t.tableData.length/t.pageSize)&&(t.currentPage=parseInt(t.tableData.length/t.pageSize)),t.loadPagingData()}))})).catch((function(){}))},hide:function(e){var t=this;Object.keys(this.displayFields).forEach((function(n){e.indexOf(n)>=0&&t.$set(t.displayFields,n,!1)})),this.displayFields=Object(_.a)({},this.displayFields)},display:function(e){var t=this;Object.keys(this.displayFields).forEach((function(n){e.indexOf(n)>=0&&t.$set(t.displayFields,n,!0)})),this.displayFields=Object(_.a)({},this.displayFields)},disabled:function(e,t){for(var n=0;n<this.columns.length;n++)e.indexOf(this.columns[n].model)>=0&&this.$set(this.columns[n].options,"disabled",t)},setDisabled:function(e,t){for(var n=0;n<this.columns.length;n++)e.indexOf(this.columns[n].model)>=0&&this.$set(this.columns[n].options,"disabled",t)},setReadOnly:function(e,t){for(var n=0;n<this.columns.length;n++)e.indexOf(this.columns[n].model)>=0&&this.$set(this.columns[n].options,"readonly",t)},sortChange:function(e){if(this.paging){var t="descending"===e.order?"desc":"asc";this.tableData=R.a.orderBy(this.tableData,[e.prop],[t])}},handleTableChange:function(e){var t=this;this.changeItem=e,this.updateDynamicTableTitle(e),this.$nextTick((function(){e.selectedItem&&e.selectedItem.widgetModel&&e.field===e.selectedItem.widgetModel&&(t.tableData[t.changeItem.rowIndex][e.field+"_"+Ke.a]=e.selectedItem&&e.selectedItem.label)}))},updateDynamicTableTitle:function(e){var t=this;return Object(i.a)(Object(r.a)().m((function n(){var i,a;return Object(r.a)().w((function(n){for(;;)switch(n.n){case 0:if(!t.element.options.enableDynamicTableTitle||!t.element.options.relatedField||t.element.options.relatedField!==e.field){n.n=3;break}i=Object(r.a)().m((function e(n){return Object(r.a)().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,t.displayValueRender(t.tableData[n][t.element.options.relatedField],t.element.options.relatedField).then((function(e){t.$set(t.tableData[n],"dynamicTableTitle",e)}));case 1:return e.a(2)}}),e)})),a=0;case 1:if(!(a<t.tableData.length)){n.n=3;break}return n.d(Object(o.a)(i(a)),2);case 2:a++,n.n=1;break;case 3:return n.a(2)}}),n)})))()},handlePageChange:function(e){var t=this;"section"===this.mode&&(this.selectedRows=[],(this.paging?this.pagingData:this.tableData).forEach((function(e){e.checked=!1})),this.isSelectedAll=!1),this.currentPage=e,this.pagingData=[],this.$nextTick((function(){t.loadPagingData(),t.$refs[t.name+"-item"]&&t.$refs[t.name+"-item"].length&&t.$refs[t.name+"-item"].forEach((function(e){e.clearValidate()}))}))},loadPagingData:function(){var e=(this.currentPage-1)*this.pageSize,t=e+this.pageSize;this.pagingData=this.tableData.slice(e,t)},getElementValue:function(){if(this.columns=this.element&&this.element.children,this.columns&&this.columns.length)for(var e=0;e<this.columns.length;e++)this.displayFields[this.columns[e].model]=!this.columns[e].options.hidden;return this.element}},watch:{value:function(e){Array.isArray(e)?this.tableData=e:(this.tableData=[],Function("console.error('子表单:请设置正确Array格式的数据,当前为".concat(e,"');"))())},tableData:{deep:!0,immediate:!0,handler:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:e.loadPagingData(),e.changeItem.haveEvent&&e.eventFunction[e.changeItem.haveEvent](e.changeItem);case 1:return t.a(2)}}),t)})))()}},printRead:{immediate:!0,handler:function(e){this.clearActiveRow(),this.onOpt(yt.cancel.value),e&&!this.edit&&(this.$set(this.element.options,"paging",!1),this.currentActive=this.tableData.map((function(e,t){return t})))}},edit:{handler:function(){this.clearActiveRow(),this.onOpt(yt.cancel.value)}},elementValue:{deep:!0,handler:function(){return this.getElementValue()}}},beforeDestroy:function(){_t.a.$off("update-data-in-table")}},Ut={name:"renderer-table",extends:M,components:{GenerateTable:Object(f.a)(zt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.optionLoading,expression:"optionLoading"}],staticClass:"renderer-table",class:{"is-disabled":e.disabledData}},["mobile"===e.platform?[e.elementValue&&e.elementValue.options?n("table-layout",{scopedSlots:e._u([!e.edit||e.elementValue.options.disabled||e.elementValue.options.hideLabel?null:{key:"absoluteHeader",fn:function(){return[n("header-right-opt-bar",{ref:"headerRightOptBar",attrs:{element:e.element,editable:e.edit,printable:e.printRead,"enable-create-btn":!0,"platform-value":e.platform},on:{openMode:e.openMode,onOpt:e.onOpt}})]},proxy:!0},!e.edit||e.elementValue.options.disabled||e.elementValue.options.hideLabel?null:{key:"singleColHeader",fn:function(){return[e.tableSelectionMode?n("el-checkbox",{ref:"selectedAllBtn",staticClass:"header-sub-item select-all-btn",attrs:{size:"mini"},on:{change:e.selectedAll},model:{value:e.isSelectedAll,callback:function(t){e.isSelectedAll=t},expression:"isSelectedAll"}},[e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.table.selectAll"))+" ")]):e._e(),e.element.options.enableSearch&&e.printRead?n("el-input",{staticClass:"header-sub-item table-search-bar full-line",attrs:{placeholder:e.$iss18n.t("issfd.runtime.component.searchPlaceholder"),size:"mini",clearable:""},on:{clear:function(t){e.searchValue=""},change:e.onSearch},scopedSlots:e._u([{key:"append",fn:function(){return[n("el-button",{on:{click:e.onSearch}},[n("base-icon",{attrs:{"icon-class":"search-line"}})],1)]},proxy:!0}],null,!1,434776296),model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}):e._e()]},proxy:!0},e.edit&&!e.elementValue.options.disabled&&e.elementValue.options.hideLabel?{key:"headerRight",fn:function(){return[n("header-right-opt-bar",{ref:"headerRightOptBar",attrs:{element:e.element,editable:e.edit,printable:e.printRead,"enable-create-btn":!0,"platform-value":e.platform},on:{openMode:e.openMode,onOpt:e.onOpt}})]},proxy:!0}:null,e.edit&&!e.elementValue.options.disabled&&e.elementValue.options.hideLabel?{key:"headerLeft",fn:function(){return[e.tableSelectionMode?n("el-checkbox",{ref:"selectedAllBtn",staticClass:"select-all-btn header-sub-item",attrs:{size:"mini"},on:{change:e.selectedAll},model:{value:e.isSelectedAll,callback:function(t){e.isSelectedAll=t},expression:"isSelectedAll"}},[e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.table.selectAll"))+" ")]):e._e(),e.element.options.enableSearch&&e.printRead?n("el-input",{staticClass:"header-sub-item table-search-bar",attrs:{placeholder:e.$iss18n.t("issfd.runtime.component.searchPlaceholder"),size:"mini"},on:{change:e.onSearch},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}):e._e()]},proxy:!0}:null,{key:"body",fn:function(){return["table"===e.mode?[e.visible?n("el-table",{ref:"dataTable",staticClass:"renderer-table-pc",attrs:{data:e.edit?e.paging?e.pagingData:e.tableData:e.printRead?e.tableData:e.paging?e.pagingData:e.tableData,border:"",size:"small",stripe:e.edit&&!e.printRead,"highlight-current-row":""},on:{"current-change":e.handleCurrentChange,"sort-change":e.sortChange,"selection-change":e.handleSelectionChange},scopedSlots:e._u([{key:"empty",fn:function(){return[n("icd-empty",{attrs:{"is-image":!1}})]},proxy:!0}],null,!1,2345313130)},[!e.printRead&&e.tableSelectionMode?n("el-table-column",{attrs:{type:"selection",align:"center",width:"70"}}):e._e(),e.tableSelectionMode?e._e():n("el-table-column",{attrs:{"header-align":"center",align:"center",fixed:"",label:"序号",width:e.edit&&!e.printRead?70:50},scopedSlots:e._u([{key:"default",fn:function(t){return[e.edit&&!e.element.options.disabled?[n("div",{staticClass:"scope-index"},[n("span",[e._v(e._s((e.paging?e.pageSize*(e.currentPage-1):0)+t.$index+1))])]),n("div",{staticClass:"scope-action"},[e.printRead?e._e():n("el-button",{staticClass:"renderer-table-delete",attrs:{disabled:e.disabledData,size:"small",type:"text",title:e.$iss18n.t("issfd.runtime.common.buttons.delete")},on:{click:function(n){e.handleRemove((e.paging?e.pageSize*(e.currentPage-1):0)+t.$index)}}},[n("base-icon",{attrs:{"icon-class":"delete-bin-4-fill"}})],1),e.printRead?e._e():n("el-button",{staticClass:"renderer-table-row-add",attrs:{title:e.$iss18n.t("issfd.runtime.common.buttons.copy"),disabled:e.disabledData,size:"small",type:"text"},on:{click:function(n){return e.handleCopy(t.row,t.$index)}}},[n("base-icon",{attrs:{"icon-class":"file-copy-fill"}})],1),e.printRead?n("span",[e._v(e._s((e.paging?e.pageSize*(e.currentPage-1):0)+t.$index+1))]):e._e()],1)]:[n("span",[e._v(e._s((e.paging?e.pageSize*(e.currentPage-1):0)+t.$index+1))])]]}}],null,!1,1999669670)}),0===e.columns.length?n("el-table-column"):[e._l(e.columns,(function(t){return[e.displayFields[t.model]?n("el-table-column",{key:t.key,attrs:{prop:t.model,sortable:(e.printRead||!e.edit)&&e.orderTypes.includes(t.type),"sort-orders":["ascending","descending"],"header-align":"center",align:"number"===t.type?"right":"text"===t.type?"left":"center","min-width":t.options.isWidgetWidth?2*t.options.width+"px":"200px"},scopedSlots:e._u([{key:"default",fn:function(o){return[e.displayFields[t.model]?n("el-form-item",{ref:e.name+"-item",refInFor:!0,attrs:{prop:e.name+"."+((e.paging?e.pageSize*(e.currentPage-1):0)+o.$index)+"."+t.model,rules:e.rules[e.name+"."+t.model]}},[n("renderer-table-item",{attrs:{"data-source-value":e.dataSourceValue,edit:!e.disabledData,"event-function":e.eventFunction,"is-in-table":!0,"is-table":!0,models:e.tableData[(e.paging?e.pageSize*(e.currentPage-1):0)+o.$index],platform:e.platform,"print-read":e.printRead||t.options.readonly,remote:e.remote,"remote-option-source":e.remoteOptionSource,"row-index":(e.paging?e.pageSize*(e.currentPage-1):0)+o.$index,"table-name":e.name,element:t,"scope-row-data":o.row},on:{"on-table-change":e.handleTableChange},model:{value:o.row[t.model],callback:function(n){e.$set(o.row,t.model,n)},expression:"scope.row[column.model]"}})],1):e._e()]}}],null,!0)},[n("template",{slot:"header"},[n("span",{staticClass:"render-table-header"},[n("span",{staticClass:"header-label",class:t.options.required?"required":""},[e._v(e._s(t.options.hideLabel?"":t.name))]),t.options.inputTips?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover","popper-class":"render-table-header-tip",content:t.options.inputTips}},[n("base-icon",{attrs:{slot:"reference","icon-class":"question-fill"},slot:"reference"})],1):e._e()],1)])],2):e._e()]}))]],2):e._e()]:[e.tableData.length?n("el-collapse",{staticClass:"renderer-table-mobile",class:{mobile:"mobile"===e.platform},model:{value:e.currentActive,callback:function(t){e.currentActive=t},expression:"currentActive"}},e._l(e.paging?e.pagingData:e.tableData,(function(t,o){return n("el-collapse-item",{key:(e.paging?e.pageSize*(e.currentPage-1):0)+o,staticClass:"renderer-table-mobile-item",attrs:{name:(e.paging?e.pageSize*(e.currentPage-1):0)+o}},[n("div",{staticClass:"renderer-table-mobile-item-top",attrs:{slot:"title"},slot:"title"},[e.tableSelectionMode?n("el-checkbox",{staticClass:"renderer-table-mobile-checkbox",on:{change:function(n){return e.handleCardSelectionChange(n,t)}},model:{value:t.checked,callback:function(n){e.$set(t,"checked",n)},expression:"t.checked"}}):e._e(),n("span",{staticClass:"renderer-table-mobile-title"},[e.element.options.enableDynamicTableTitle&&e.element.options.relatedField?[e._v(e._s(t.dynamicTableTitle))]:[e._v(e._s((e.paging?e.pageSize*(e.currentPage-1):0)+o+1))]],2)],1),n("div",{staticClass:"renderer-table-mobile-item-content"},[e._l(e.columns,(function(t){return[e.displayFields[t.model]?n("el-form-item",{key:t.key,ref:e.name+"-item",refInFor:!0,attrs:{label:t.options.hideLabel?"":t.name,"label-width":t.options.hideLabel?"0px":t.options.isLabelWidth?t.options.labelWidth+"px":"",prop:e.name+"."+((e.paging?e.pageSize*(e.currentPage-1):0)+o)+"."+t.model,rules:e.rules[e.name+"."+t.model]}},[n("template",{slot:"label"},[e._v(" "+e._s(t.options.hideLabel?"":t.name)+" "),t.options.inputTips?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover","popper-class":"render-table-header-tip",content:t.options.inputTips}},[n("base-icon",{staticStyle:{color:"#8492a6"},attrs:{slot:"reference","icon-class":"question-fill"},slot:"reference"})],1):e._e()],1),n("renderer-table-item",{attrs:{"data-source-value":e.dataSourceValue,edit:!e.disabledData,"event-function":e.eventFunction,"is-in-table":!0,"is-table":!0,models:e.tableData[(e.paging?e.pageSize*(e.currentPage-1):0)+o],platform:e.platform,"print-read":e.printRead||t.options.readonly,remote:e.remote,"remote-option-source":e.remoteOptionSource,"row-index":(e.paging?e.pageSize*(e.currentPage-1):0)+o,"table-name":e.name,element:t,"scope-row-data":e.tableData[(e.paging?e.pageSize*(e.currentPage-1):0)+o]},on:{"on-table-change":e.handleTableChange},model:{value:e.tableData[(e.paging?e.pageSize*(e.currentPage-1):0)+o][t.model],callback:function(n){e.$set(e.tableData[(e.paging?e.pageSize*(e.currentPage-1):0)+o],t.model,n)},expression:"tableData[(paging ? pageSize * (currentPage - 1) : 0) + index][column.model]"}})],2):e._e()]}))],2),e.printRead||!e.edit||e.element.options.disabled?e._e():n("div",{staticClass:"renderer-table-mobile-item-footer"},[n("footer-left-opt-bar",{attrs:{element:e.element,"enable-copy-btn":!0,"enable-remove-btn":!0,"active-row-data":t,"platform-value":e.platform},on:{onOpt:e.onOpt}})],1)])})),1):n("icd-empty",{attrs:{"is-image":!1}})]]},proxy:!0},{key:"colFooter",fn:function(){return[e.element.options.maxLimit&&!e.printRead&&e.edit&&!e.element.options.disabled?n("note-bar",{staticClass:"col-footer-item",attrs:{text:e.$iss18n.t("issfd.runtime.component.table.maxLimit",{maxRows:e.element.options.maxRows,length:e.tableData&&e.tableData.length})}}):e._e(),e.paging&&e.edit&&!e.element.options.disabled?n("paging-bar",{staticClass:"col-footer-item",attrs:{paging:e.paging,"page-size":e.pageSize,"table-data-value":e.tableData,layout:e.pagingConfig.pageMobileLayout,"current-page-value":e.currentPage},on:{handlePageChange:e.handlePageChange}}):e._e()]},proxy:!0}],null,!0)}):e._e()]:["table"===e.mode?[e.elementValue&&e.elementValue.options?n("table-layout",{scopedSlots:e._u([e.edit&&!e.elementValue.options.disabled?{key:"headerLeft",fn:function(){return[e.element.options.enableSearch&&e.printRead?n("el-input",{staticClass:"left-item table-search-bar",attrs:{placeholder:e.$iss18n.t("issfd.runtime.component.searchPlaceholder"),size:"mini",clearable:""},on:{clear:function(t){e.searchValue=""},change:e.onSearch},scopedSlots:e._u([{key:"append",fn:function(){return[n("el-button",{on:{click:e.onSearch}},[n("base-icon",{attrs:{"icon-class":"search-line"}})],1)]},proxy:!0}],null,!1,434776296),model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}):e._e()]},proxy:!0}:null,e.edit&&!e.elementValue.options.disabled?{key:"headerRight",fn:function(){return[n("header-right-opt-bar",{ref:"headerRightOptBar",attrs:{element:e.element,editable:e.edit,printable:e.printRead},on:{openMode:e.openMode,onOpt:e.onOpt}})]},proxy:!0}:null,{key:"body",fn:function(){return[e.visible?n("el-table",{ref:"dataTable",staticClass:"renderer-table-pc",attrs:{data:e.edit?e.paging?e.pagingData:e.tableData:e.printRead?e.tableData:e.paging?e.pagingData:e.tableData,border:"",size:"small",stripe:e.edit&&!e.printRead,"highlight-current-row":"","default-sort":e.printRead?{prop:e.element.options.defaultSort,order:e.element.options.defaultSortOrder}:{}},on:{"current-change":e.handleCurrentChange,"sort-change":e.sortChange,"selection-change":e.handleSelectionChange},scopedSlots:e._u([{key:"empty",fn:function(){return[n("icd-empty",{attrs:{"is-image":!1}})]},proxy:!0}],null,!1,2345313130)},[!e.printRead&&e.tableSelectionMode?n("el-table-column",{attrs:{type:"selection",align:"center",width:"70"}}):e._e(),e.tableSelectionMode?e._e():n("el-table-column",{attrs:{"header-align":"center",align:"center",label:"序号",width:e.edit&&!e.printRead?70:50},scopedSlots:e._u([{key:"default",fn:function(t){return[e.edit&&!e.element.options.disabled?[n("div",{staticClass:"scope-index"},[n("span",[e._v(e._s((e.paging?e.pageSize*(e.currentPage-1):0)+t.$index+1))])]),n("div",{staticClass:"scope-action"},[e.printRead?e._e():n("el-button",{staticClass:"renderer-table-delete",attrs:{disabled:e.disabledData,size:"small",type:"text",title:e.$iss18n.t("issfd.runtime.common.buttons.delete")},on:{click:function(n){e.handleRemove((e.paging?e.pageSize*(e.currentPage-1):0)+t.$index)}}},[n("base-icon",{attrs:{"icon-class":"delete-bin-4-fill"}})],1),e.printRead?e._e():n("el-button",{staticClass:"renderer-table-row-add",attrs:{title:e.$iss18n.t("issfd.runtime.common.buttons.copy"),disabled:e.disabledData,size:"small",type:"text"},on:{click:function(n){return e.handleCopy(t.row,t.$index)}}},[n("base-icon",{attrs:{"icon-class":"file-copy-fill"}})],1),e.printRead?n("span",[e._v(e._s((e.paging?e.pageSize*(e.currentPage-1):0)+t.$index+1))]):e._e()],1)]:[n("span",[e._v(e._s((e.paging?e.pageSize*(e.currentPage-1):0)+t.$index+1))])]]}}],null,!1,1999669670)}),0===e.columns.length?n("el-table-column"):[e._l(e.columns,(function(t){return[e.displayFields[t.model]&&e.isDisplayComp(t)?n("el-table-column",{key:t.key,attrs:{prop:t.model,sortable:(e.printRead||!e.edit)&&e.orderTypes.includes(t.type),"sort-orders":["ascending","descending"],"header-align":"center",align:"number"===t.type?"right":"text"===t.type?"left":"center","min-width":t.options.isWidgetWidth?2*t.options.width+"px":"200px"},scopedSlots:e._u([{key:"default",fn:function(o){return[e.displayFields[t.model]?n("el-form-item",{ref:e.name+"-item",refInFor:!0,attrs:{prop:e.name+"."+((e.paging?e.pageSize*(e.currentPage-1):0)+o.$index)+"."+t.model,rules:e.rules[e.name+"."+t.model]}},[n("renderer-table-item",{attrs:{"data-source-value":e.dataSourceValue,edit:!e.disabledData,"event-function":e.eventFunction,"is-in-table":!0,"is-table":!0,models:e.tableData[(e.paging?e.pageSize*(e.currentPage-1):0)+o.$index],platform:e.platform,"print-read":e.printRead||t.options.readonly,remote:e.remote,"remote-option-source":e.remoteOptionSource,"row-index":(e.paging?e.pageSize*(e.currentPage-1):0)+o.$index,"table-name":e.name,element:t,"scope-row-data":o.row},on:{"on-table-change":e.handleTableChange},model:{value:o.row[t.model],callback:function(n){e.$set(o.row,t.model,n)},expression:"scope.row[column.model]"}})],1):e._e()]}}],null,!0)},[n("template",{slot:"header"},[n("span",{staticClass:"render-table-header"},[n("span",{staticClass:"header-label",class:t.options.required?"required":""},[e._v(e._s(t.options.hideLabel?"":t.name))]),t.options.inputTips?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover","popper-class":"render-table-header-tip",content:t.options.inputTips}},[n("base-icon",{attrs:{slot:"reference","icon-class":"question-fill"},slot:"reference"})],1):e._e()],1)])],2):e._e()]}))]],2):e._e()]},proxy:!0},!e.edit||e.printRead||e.element.options.disabled?null:{key:"footerLeft",fn:function(){return[n("footer-left-opt-bar",{attrs:{element:e.element,"enable-create-btn":!0,"active-row-data":e.activeRow,"enable-cancel-current-btn":!0},on:{onOpt:e.onOpt}})]},proxy:!0},{key:"footerRight",fn:function(){return[!e.element.options.maxLimit||e.printRead||e.element.options.disabled?e._e():n("note-bar",{attrs:{text:e.$iss18n.t("issfd.runtime.component.table.maxLimit",{maxRows:e.element.options.maxRows,length:e.tableData&&e.tableData.length})}}),e.paging&&e.edit?n("paging-bar",{attrs:{paging:e.paging,"page-size":e.pageSize,"table-data-value":e.tableData,"current-page-value":e.currentPage},on:{handlePageChange:e.handlePageChange}}):e._e()]},proxy:!0}],null,!0)}):e._e()]:[e.elementValue&&e.elementValue.options?n("table-layout",{scopedSlots:e._u([e.elementValue.options.disabled?null:{key:"headerLeft",fn:function(){return[e.tableSelectionMode?n("el-checkbox",{ref:"selectedAllBtn",staticClass:"select-all-btn header-sub-item",attrs:{size:"mini"},on:{change:e.selectedAll},model:{value:e.isSelectedAll,callback:function(t){e.isSelectedAll=t},expression:"isSelectedAll"}},[e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.table.selectAll"))+" ")]):e._e(),e.element.options.enableSearch&&e.printRead?n("el-input",{staticClass:"table-search-bar",attrs:{placeholder:e.$iss18n.t("issfd.runtime.component.searchPlaceholder"),size:"mini",clearable:""},on:{clear:function(t){e.searchValue=""},change:e.onSearch},scopedSlots:e._u([{key:"append",fn:function(){return[n("el-button",{on:{click:e.onSearch}},[n("base-icon",{attrs:{"icon-class":"search-line"}})],1)]},proxy:!0}],null,!1,434776296),model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}):e._e()]},proxy:!0},e.elementValue.options.disabled?null:{key:"headerRight",fn:function(){return[n("header-right-opt-bar",{ref:"headerRightOptBar",attrs:{element:e.element,editable:e.edit,printable:e.printRead,"enable-create-btn":!0},on:{openMode:e.openMode,onOpt:e.onOpt}})]},proxy:!0},{key:"body",fn:function(){return[e.visible&&e.tableData.length?n("el-collapse",{staticClass:"renderer-table-mobile",model:{value:e.currentActive,callback:function(t){e.currentActive=t},expression:"currentActive"}},e._l(e.paging?e.pagingData:e.tableData,(function(t,o){return n("el-collapse-item",{key:(e.paging?e.pageSize*(e.currentPage-1):0)+o,staticClass:"renderer-table-mobile-item",attrs:{name:(e.paging?e.pageSize*(e.currentPage-1):0)+o}},[n("div",{staticClass:"renderer-table-mobile-item-top",attrs:{slot:"title"},slot:"title"},[e.tableSelectionMode?n("el-checkbox",{staticClass:"renderer-table-mobile-checkbox",on:{change:function(n){return e.handleCardSelectionChange(n,t)}},model:{value:t.checked,callback:function(n){e.$set(t,"checked",n)},expression:"t.checked"}}):e._e(),n("span",{staticClass:"renderer-table-mobile-title"},[e.element.options.enableDynamicTableTitle&&e.element.options.relatedField?[e._v(e._s(t.dynamicTableTitle))]:[e._v(e._s((e.paging?e.pageSize*(e.currentPage-1):0)+o+1))]],2)],1),n("div",{on:{click:function(n){return e.handleCurrentChange(t)}}},[n("div",{staticClass:"renderer-table-mobile-item-content"},[e._l(e.columns,(function(t){var r;return[e.displayFields[t.model]?n("el-form-item",{key:t.key,ref:e.name+"-item",refInFor:!0,class:(r={},r[t.options&&t.options.customClass]=t.options&&t.options.customClass,r),attrs:{label:t.options.hideLabel?"":t.name,"label-width":t.options.hideLabel?"0px":t.options.isLabelWidth?t.options.labelWidth+"px":"",prop:e.name+"."+((e.paging?e.pageSize*(e.currentPage-1):0)+o)+"."+t.model,rules:e.rules[e.name+"."+t.model]}},[n("template",{slot:"label"},[e._v(" "+e._s(t.options.hideLabel?"":t.name)+" "),t.options.inputTips?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover","popper-class":"render-table-header-tip",content:t.options.inputTips}},[n("base-icon",{staticStyle:{color:"#8492a6"},attrs:{slot:"reference","icon-class":"question-fill"},slot:"reference"})],1):e._e()],1),n("renderer-table-item",{attrs:{"data-source-value":e.dataSourceValue,edit:!e.disabledData,"event-function":e.eventFunction,"is-in-table":!0,"is-table":!0,models:e.tableData[(e.paging?e.pageSize*(e.currentPage-1):0)+o],platform:e.platform,"print-read":e.printRead||t.options.readonly,remote:e.remote,"remote-option-source":e.remoteOptionSource,"row-index":(e.paging?e.pageSize*(e.currentPage-1):0)+o,"table-name":e.name,element:t,"scope-row-data":e.tableData[(e.paging?e.pageSize*(e.currentPage-1):0)+o]},on:{"on-table-change":e.handleTableChange},model:{value:e.tableData[(e.paging?e.pageSize*(e.currentPage-1):0)+o][t.model],callback:function(n){e.$set(e.tableData[(e.paging?e.pageSize*(e.currentPage-1):0)+o],t.model,n)},expression:"tableData[(paging ? pageSize * (currentPage - 1) : 0) + index][column.model]"}})],2):e._e()]}))],2),e.printRead||!e.edit||e.element.options.disabled?e._e():n("div",{staticClass:"renderer-table-mobile-item-footer"},[n("footer-left-opt-bar",{attrs:{element:e.element,"enable-copy-btn":!0,"enable-remove-btn":!0,"active-row-data":t},on:{onOpt:e.onOpt}})],1)])])})),1):n("icd-empty",{attrs:{"is-image":!1}})]},proxy:!0},e.element.options.maxLimit&&!e.printRead?{key:"footerLeft",fn:function(){return[n("note-bar",{attrs:{text:e.$iss18n.t("issfd.runtime.component.table.maxLimit",{maxRows:e.element.options.maxRows,length:e.tableData&&e.tableData.length})}})]},proxy:!0}:null,e.paging&&e.edit?{key:"footerRight",fn:function(){return[n("paging-bar",{attrs:{paging:e.paging,"page-size":e.pageSize,"table-data-value":e.tableData,"current-page-value":e.currentPage},on:{handlePageChange:e.handlePageChange}})]},proxy:!0}:null],null,!0)}):e._e()]],e.displayDataImport?n("data-import",{attrs:{"widget-key":e.element.key,"widget-name":e.element.name},on:{onClose:function(t){e.displayDataImport=!1},onComplete:e.onDataImportComplete},model:{value:e.displayDataImport,callback:function(t){e.displayDataImport=t},expression:"displayDataImport"}}):e._e()],2)}),[],!1,null,null,null).exports}},Vt=Object(f.a)(Ut,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("generate-table",{ref:"icd-form-"+e.element.model,attrs:{columns:e.element.children,"data-source-value":e.dataSourceValue,"disabled-data":e.disabled,"event-function":e.eventFunction,models:e.dataModels,name:e.element.model,"page-size":e.element.options.pageSize,paging:e.element.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,element:e.element,widget:e.element,edit:e.edit}})}),[],!1,null,null,null).exports,Ht={name:"renderer-qrCode",extends:M,components:{QrCodeComponent:n("bfce").a}},Wt=Object(f.a)(Ht,(function(){var e=this.$createElement;return(this._self._c||e)("qr-code-component",{ref:"icd-form-"+this.element.model,attrs:{options:this.element.options,"data-models":this.dataModels}})}),[],!1,null,null,null).exports,Yt=n("7b30"),qt={name:"renderer-button",extends:M,components:{TextComponent:Yt.a},methods:{handleOnClick:function(){if(this.element.events&&this.element.events.onClick){var e=this.element.events.onClick;this.isTable&&this.tableName?this.eventFunction[e]&&this.eventFunction[e]({field:this.element.model,table:this.tableName,rowIndex:this.rowIndex,scopeRowData:this.scopeRowData}):this.eventFunction[e]&&this.eventFunction[e]({field:this.element.model})}}}},Gt=Object(f.a)(qt,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("text-component",{attrs:{align:t.element.options.contentPosition}},[t.element.options.showInPrintRead||!t.printRead?o("el-button",{ref:"icd-form-"+t.element.model,class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options&&t.element.options.customClass,e),style:t.element.options.customWidth?{width:t.element.options.width+"%"}:"",attrs:{circle:t.element.options.buttonCircle,disabled:!t.element.options.showInPrintRead&&!t.edit||t.element.options.disabled,plain:t.element.options.buttonPlain,round:t.element.options.buttonRound,size:t.element.options.buttonSize,type:t.element.options.buttonType},on:{click:t.handleOnClick}},[t._v(" "+t._s(t.element.options.buttonName)+" ")]):t._e()],1)}),[],!1,null,null,null).exports,Kt={name:"renderer-divider",extends:M},Xt=Object(f.a)(Kt,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("div",{class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options&&t.element.options.customClass,e),style:{paddingTop:t.element.options.paddingTop+"px",paddingBottom:t.element.options.paddingBottom+"px"}},[o("el-divider",{ref:"icd-form-"+t.element.model,attrs:{"content-position":t.element.options.contentPosition}},[t._v(" "+t._s(t.element.options.text)+" ")])],1)}),[],!1,null,null,null).exports,Jt={name:"renderer-iframe",extends:M},Qt=Object(f.a)(Jt,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return t.element.options.href?o("iframe",{ref:"icd-form-"+t.element.model,staticClass:"iss-iframe",class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options&&t.element.options.customClass,e),style:{width:t.element.options.width+"%",height:t.element.options.height+"px"},attrs:{src:t.element.options.href}}):o("div",{staticClass:"iss-image-load-failed",style:{width:t.element.options.width+"%",height:t.element.options.height+"px"}},[o("div",{staticClass:"iss-empty-image"}),o("span",[t._v(t._s(t.$iss18n.t("issfd.runtime.component.configIframeUrl")))])])}),[],!1,null,null,null).exports,Zt={name:"renderer-image",extends:M,methods:{handleOnClick:function(){if(this.element.events&&this.element.events.onClick){var e=this.element.events.onClick;this.eventFunction[e]&&this.eventFunction[e]({field:this.element.model})}}}},en=Object(f.a)(Zt,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("el-image",{ref:"icd-form-"+t.element.model,class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options&&t.element.options.customClass,e),style:{width:t.element.options.width+"%",height:t.element.options.autoHeight?"auto":t.element.options.height+"px"},attrs:{alt:t.element.name,fit:t.element.options.autoHeight?"fill":t.element.options.fit,src:t.element.options.src},nativeOn:{click:function(e){return t.handleOnClick.apply(null,arguments)}}},[o("div",{staticClass:"iss-image-load-failed",attrs:{slot:"error"},slot:"error"},[o("div",{staticClass:"iss-empty-image"}),t.element.options.src?o("span",[t._v(t._s(t.$iss18n.t("issfd.runtime.component.ImageLoadFailed")))]):o("span",[t._v(t._s(t.$iss18n.t("issfd.runtime.component.configImageUrl")))])])])}),[],!1,null,null,null).exports,tn={name:"renderer-link",extends:M,components:{TextComponent:Yt.a},methods:{handleOnClick:function(){if(this.element.events&&this.element.events.onClick){var e=this.element.events.onClick;this.eventFunction[e]&&this.eventFunction[e]({field:this.element.model})}}}},nn=Object(f.a)(tn,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("text-component",{attrs:{align:t.element.options.contentPosition}},[o("el-link",{ref:"icd-form-"+t.element.model,class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options&&t.element.options.customClass,e),attrs:{disabled:t.element.options.disabled,href:t.element.options.href,type:t.element.options.linkType,underline:t.element.options.underline,target:"_blank"},on:{click:t.handleOnClick}},[t._v(" "+t._s(t.element.options.text)+" ")])],1)}),[],!1,null,null,null).exports,on={name:"renderer-text",extends:M,components:{TextComponent:Yt.a}},rn=Object(f.a)(on,(function(){var e,t=this,n=t.$createElement;return(t._self._c||n)("text-component",{ref:"icd-form-"+t.element.model,class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options&&t.element.options.customClass,e),attrs:{align:t.element.options.contentPosition,"font-color":t.element.options.fontColor,"font-family":t.element.options.fontFamily,"font-size":t.element.options.fontSize,"font-style":t.element.options.fontStyle,"font-weight":t.element.options.fontWeight,"margin-bottom":t.element.options.marginBottom,"margin-top":t.element.options.marginTop}},[t._v(" "+t._s(t.element.options.text)+" ")])}),[],!1,null,null,null).exports,an={name:"renderer-custom",extends:M,computed:{customPluginStoped:function(){var e=this.element.code||this.element.options.customName,t=window[e];return(!t||!t.renderer&&!t[e+"Renderer"])&&"组件已被删除"}}},sn=(n("8752"),Object(f.a)(an,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.customPluginStoped?n("div",{staticClass:"plugin-stoped"},[n("span",{staticClass:"plugin-deleted__text"},[n("base-icon",{attrs:{"icon-class":"spam-3-line"}}),e._v(" "+e._s(e.customPluginStoped))],1)]):n((e.element.code||e.element.options.customName)+"-renderer",{ref:"icd-form-"+e.element.model,tag:"component",attrs:{element:e.element,platform:e.platform,isInTable:e.isInTable,"event-function":e.eventFunction,preview:e.preview,"print-read":e.printRead||e.element.options.readonly,edit:e.edit,"data-source-value":e.dataSourceValue,remote:e.remote,"remote-option-source":e.remoteOptionSource,rules:e.rules,tableName:e.tableName},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})],1)}),[],!1,null,null,null).exports),ln={name:"renderer-user-notice",extends:M,components:{TextComponent:Yt.a},data:function(){return{optionTypeList:["title","content","checkboxText"],timer:null}},methods:{loading:function(){this.element.options.checkboxTextOptions.countDown--},clearTimer:function(){clearInterval(this.timer),this.timer=null}},mounted:function(){var e=this;this.timer=setInterval((function(){0===e.element.options.checkboxTextOptions.countDown?e.clearTimer():e.loading()}),1e3)}},cn=(n("c156"),Object(f.a)(ln,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("div",{ref:"icd-form-"+t.element.model,class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options&&t.element.options.customClass,e)},[t._l(t.optionTypeList,(function(e){return[o("div",{key:e,class:e+"-class"},["title"===e||"checkboxText"===e?o("text-component",{attrs:{align:t.element.options[e+"Options"].contentPosition,"font-color":t.element.options[e+"Options"].fontColor,"font-size":t.element.options[e+"Options"].fontSize,"font-style":t.element.options[e+"Options"].fontStyle,"font-weight":t.element.options[e+"Options"].fontWeight,"font-family":t.element.options[e+"Options"].fontFamily,"margin-top":t.element.options[e+"Options"].marginTop,"margin-bottom":t.element.options[e+"Options"].marginBottom}},["checkboxText"===e?[o("el-checkbox",{attrs:{disabled:t.element.options[e+"Options"].countDown>0},model:{value:t.element.options[e+"Options"].checkboxSelected,callback:function(n){t.$set(t.element.options[e+"Options"],"checkboxSelected",n)},expression:"element.options[optionType + 'Options'].checkboxSelected"}}),t._v(" "+t._s(t.element.options[e+"Options"].text)+" "+t._s(t.element.options[e+"Options"].countDown>0?"("+t.element.options[e+"Options"].countDown+"s)":"")+" ")]:[t._v(" "+t._s(t.element.options[e+"Options"].text)+" ")]],2):o("div",{staticClass:"content-class",domProps:{innerHTML:t._s(t.element.options[e+"Options"].text)}})],1)]}))],2)}),[],!1,null,"335a629f",null).exports),un=n("b85c"),dn=n("ec39"),fn={name:"UnitedForm",components:{icdEmpty:jt.a},mixins:[u],inject:["variable"],props:["element","models","rules","remote","displayFields","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead"],watch:{models:{deep:!0,handler:function(e){this.dataModels=e}}},mounted:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){return Object(r.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:if(e.loading=!0,!e.element){t.n=6;break}return t.p=1,t.n=2,e.fetchByFormId();case 2:t.n=4;break;case 3:t.p=3,t.v;case 4:return t.p=4,e.loading=!1,t.f(4);case 5:t.n=7;break;case 6:e.loading=!1;case 7:return t.a(2)}}),t,null,[[1,3,4,5]])})))()},data:function(){return{loading:!0,dataModels:this.models,targetFormModel:null,collapseActive:["collapseItem"],serverInfo:Object(I.x)()}},methods:{updateModels:function(e){this.models[this.element.model]=e},fetchByFormId:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){var n,o,i,a;return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(I.i)({formId:e.element.options&&e.element.options.unitedFormInfo&&e.element.options.unitedFormInfo.formId});case 1:if("0000"!==(n=t.v).data.code){t.n=3;break}if(e.targetFormModel=n.data.data,!n.data.data.customComponentList||!n.data.data.customComponentList.length){t.n=2;break}o=Object(un.a)(n.data.data.customComponentList);try{for(o.s();!(i=o.n()).done;)(a=i.value).content="".concat(e.serverInfo.baseUrl).concat(a.content)}catch(e){o.e(e)}finally{o.f()}return t.n=2,Object(dn.a)(n.data.data.customComponentList);case 2:t.n=4;break;case 3:e.$message.error("加载信息失败:".concat(n.data.message));case 4:return t.a(2)}}),t)})))()}}},pn={input:B,textarea:V,number:q,radio:J,checkbox:te,time:ie,date:he,rate:ye,select:Te,switches:ke,slider:Pe,editor:je,member:qe,organization:Ve,cascader:ot,upload:it,imageUpload:st,uuid:ct,sequence:dt,address:pt,relatedForm:ht,table:Vt,qrCode:Wt,button:Gt,divider:Xt,iframe:Qt,image:en,link:nn,text:rn,custom:sn,userNotice:cn,unitedForm:Object(f.a)(fn,(function(){var e,t,n=this,o=n.$createElement,r=n._self._c||o;return r("div",[n.element&&n.element.options?["card"===n.element.options.styleType?[r("el-card",{directives:[{name:"loading",rawName:"v-loading",value:n.loading,expression:"loading"}],class:(e={},e[n.element.options&&n.element.options.customClass]=n.element.options&&n.element.options.customClass,e["renderer-card"]=!0,e["renderer-united-form"]=!0,e),attrs:{shadow:n.element.options.shadow},scopedSlots:n._u([n.element.options.showHeader?{key:"header",fn:function(){return[r("div",[n._v(n._s(n.element.name))])]},proxy:!0}:null],null,!0)},[!1===n.loading?[n.targetFormModel?[r("iss-library-form-renderer",{ref:"icd-form-"+n.element.model,attrs:{edit:n.edit,"lock-platform":!0,"prefer-platform":n.platform,"print-read":n.element.options.disabled||n.printRead,source:n.targetFormModel.content,value:n.models[n.element.model],variables:n.variable,"is-united-form-comp":!0,"current-form-id":n.element&&n.element.options&&n.element.options.unitedFormInfo&&n.element.options.unitedFormInfo.formId,"form-publish-version-id":n.element&&n.element.options&&n.element.options.unitedFormInfo&&n.element.options.unitedFormInfo.versionId,insite:"true",preview:""},on:{updateModels:n.updateModels}})]:[r("icd-empty",{attrs:{"is-image":!1,description:"未加载到聚合表单"}})]]:n._e()],2)]:"collapse"===n.element.options.styleType?[r("el-collapse",{class:(t={"renderer-collapse":!0},t[n.element.options.customClass]=n.element.options.customClass,t["renderer-united-form"]=!0,t),model:{value:n.collapseActive,callback:function(e){n.collapseActive=e},expression:"collapseActive"}},[r("el-collapse-item",{attrs:{name:"collapseItem"},scopedSlots:n._u([{key:"title",fn:function(){return[r("div",{staticClass:"el-collapse-header-title",attrs:{title:n.element.name}},[n._v(n._s(n.element.name))])]},proxy:!0},!1===n.loading?{key:"default",fn:function(){return[n.targetFormModel?[r("iss-library-form-renderer",{ref:"icd-form-"+n.element.model,attrs:{edit:n.edit,"lock-platform":!0,"prefer-platform":n.platform,"print-read":n.element.options.disabled||n.printRead,source:n.targetFormModel.content,value:n.models[n.element.model],variables:n.variable,"is-united-form-comp":!0,"current-form-id":n.element&&n.element.options&&n.element.options.unitedFormInfo&&n.element.options.unitedFormInfo.formId,"form-publish-version-id":n.element&&n.element.options&&n.element.options.unitedFormInfo&&n.element.options.unitedFormInfo.versionId,insite:"true",preview:""},on:{updateModels:n.updateModels}})]:[r("icd-empty",{attrs:{"is-image":!1,description:"未加载到聚合表单"}})]]},proxy:!0}:null],null,!0)})],1)]:n._e()]:[n._v("组件加载失败")]],2)}),[],!1,null,null,null).exports},mn=n("522e"),hn={name:"BaseElementItem",props:["element","models","rules","remote","edit","remoteOptionSource","platform","preview","containerKey","dataSourceValue","eventFunction","printRead","displayFields","inLineRender","row","hideRequiredSymbol"],computed:{formLabel:function(){return this.inLineRender?this.element.options.required&&!this.hideRequiredSymbol?" ":"":this.element.options.hideLabel||!this.element.options.labelWidth?"":this.element.name},isContainer:function(){return mn.a[this.element.type]&&mn.a[this.element.type].isContainer&&"table"!==this.element.type},pluginLabelWidth:function(){return this.inLineRender||this.element.options.hideLabel?"0px":this.element.options.isLabelWidth?this.element.options.labelWidth+"px":""},componentShow:function(){return this.printRead&&"button"===this.element.type?!!this.element.options.showInPrintRead:!this.printRead||"inline"!==this.element.type||this.element.children.findIndex((function(e){return e.options.showInPrintRead}))>-1}},data:function(){return{Containers:y,RenderElements:pn,dataModel:this.models[this.element.model],dataModels:this.models,componentConfig:mn.a}},watch:{dataModel:{deep:!0,handler:function(e){if(_t.a.$emit("on-change-"+this.containerKey,e,this.element.model,this.containerKey,this.row),this.element.events&&this.element.events.onChange){var t=this.element.events.onChange;this.eventFunction[t]&&this.eventFunction[t]({value:e,field:this.element.model,element:this.element})}}},models:{deep:!0,handler:function(e){this.dataModels=e,this.dataModel=e[this.element.model]}}},methods:{onClickInDetail:function(){var e,t,n,o,r=this.printRead||this.element.options.readonly,i=null===(e=this.element)||void 0===e||null===(e=e.events)||void 0===e?void 0:e.onClickInDetail,a=!0===(null===(t=this.element)||void 0===t||null===(t=t.options)||void 0===t?void 0:t.disabled)||!0===(null===(n=this.element)||void 0===n||null===(n=n.options)||void 0===n?void 0:n.readonly);(!0===r&&null!==(o=this.eventFunction)&&void 0!==o&&o[i]&&![null,"",void 0,[]].includes(this.dataModel)||!0===a)&&this.eventFunction[i]({models:this.models})}}},gn=Object(f.a)(hn,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return t.element.key&&t.displayFields[t.element.model]?o("div",{staticClass:"iss-form-renderer-form-item",attrs:{"data-id":t.element.model}},[t.isContainer?o(t.Containers[t.element.type],{key:t.element.key,ref:"icd-form-"+t.element.model,tag:"component",attrs:{id:t.element.model,"container-key":t.containerKey,"data-source-value":t.dataSourceValue,"display-fields":t.displayFields,edit:t.edit,element:t.element,"event-function":t.eventFunction,models:t.dataModels,platform:t.platform,preview:t.preview,"print-read":t.printRead,remote:t.remote,"remote-option-source":t.remoteOptionSource,rules:t.rules}}):t.componentShow?o("el-form-item",{staticClass:"renderer-form-item",class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options&&t.element.options.customClass,e["no-label-form-item"]=t.element.options.isLabelWidth&&0===t.element.options.labelWidth,e["print-read-mode"]=t.printRead,e["no-form-label"]=!t.element.options.labelWidth,e),attrs:{label:t.formLabel,"label-width":t.pluginLabelWidth,prop:t.element.model,required:t.element.options.required,"status-icon":!0}},[o(t.RenderElements[t.element.type],{tag:"component",attrs:{"data-source-value":t.dataSourceValue,models:t.dataModels,element:t.element,platform:t.platform,"is-table":!1,"event-function":t.eventFunction,preview:t.preview,"print-read":t.printRead||t.element.options.readonly,edit:t.edit,remote:t.remote,"remote-option-source":t.remoteOptionSource,rules:t.rules},nativeOn:{click:function(e){return e.stopPropagation(),t.onClickInDetail.apply(null,arguments)}},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}}),t.element.options.inputTips?o("small",{staticClass:"widget-input-tips"},[t._v(t._s(t.element.options.inputTips))]):t._e()],1):t._e()],1):t._e()}),[],!1,null,null,null);t.default=gn.exports},7193:function(e,t,n){n("ae68")},"71f6":function(e,t,n){"use strict";n.r(t),n("a434"),n("b0c0"),n("ac1f"),n("00b4"),n("498a"),n("e260"),n("d3b7"),n("e6cf"),n("3ca3"),n("ddb0");var o=n("b76a"),r=n.n(o),i=n("c14f"),a=n("5530"),s=n("2909"),l=n("1da1"),c=(n("99af"),n("14d9"),n("0f01")),u=n("e42e"),d=n("f859"),f=n("4260"),p=n("1503"),m=n("60bb"),h=n.n(m),g=n("1bf7"),v=n("ec39"),b={data:function(){return{selectWidget:this.select||{}}},props:["widgetForm"],methods:{handlePut:function(e,t,n){return Object(u.a)(n.getAttribute("type"),this.currentType)},handlePluginUpdate:function(){var e=this;this.$nextTick((function(){c.a.$emit("on-history-add-"+e.formKey)}))},handlePluginAdd:function(e,t,n){var o=this;return Object(l.a)(Object(i.a)().m((function r(){var l,m,b,y,_,w,C,x,O,T,E,S,D,k;return Object(i.a)().w((function(r){for(;;)switch(r.n){case 0:l=e.newIndex,m=[],k=o.element.type,r.n=k===p.a.TABLE?1:k===p.a.LAYOUT_CARD||k===p.a.LAYOUT_INLINE?2:k===p.a.LAYOUT_GRID||k===p.a.LAYOUT_TAB||k===p.a.LAYOUT_STEPS||k===p.a.LAYOUT_COLLAPSE?3:k===p.a.LAYOUT_REPORT?4:5;break;case 1:return m=o.element.children,r.a(3,6);case 2:return m=o.element.children,Object(f.b)(m,l),r.a(3,6);case 3:return m=o.element.children[t].children,Object(f.b)(m,l),r.a(3,6);case 4:return m=o.element.children[n].children[t].children,Object(f.b)(m,l),r.a(3,6);case 5:m=o.element;case 6:if("multi"!==m[l].type){r.n=12;break}_=m[l],o.$delete(m,l),w=Object(g.a)(_,o.element.type===p.a.TABLE),C=w.finalChilds,x=w.newEventScript,O=0;case 7:if(!(O<C.length)){r.n=11;break}if(T=C[O],o.element.type!==p.a.TABLE){r.n=9;break}if(Object(u.b)(T.type,o.currentType)){r.n=8;break}return o.$message.warning(o.$iss18n.t("issfd.coreDesigner.elements.table.warning")),r.a(2);case 8:r.n=10;break;case 9:if(!T.children){r.n=10;break}if(Object(u.a)(T.type,o.currentType)){r.n=10;break}return o.$message.warning(o.$iss18n.t("issfd.coreDesigner.elements.table.warning")),r.a(2);case 10:O++,r.n=7;break;case 11:(b=m).splice.apply(b,[l,0].concat(Object(s.a)(C))),o.selectWidget=m[l],(y=o.widgetForm.config.eventScript).push.apply(y,Object(s.a)(x)),r.n=15;break;case 12:if("SOURCE_CODE"!==m[l].customComponentType){r.n=14;break}return r.n=13,Object(v.b)(m[l]);case 13:m[l]=r.v;case 14:o.$set(m,l,h.a.cloneDeep(m[l])),E=Object(d.a)(),(S=m[l]).children&&(S.children=Object(f.d)(S.children)),D=Object(a.a)(Object(a.a)({},S),{},{options:Object(a.a)(Object(a.a)({},S.options),{},{remoteFunc:S.options.remoteFunc||"func_"+E,remoteOptionSource:S.options.remoteOptionSource||"option_"+E,tableColumn:o.element.type===p.a.TABLE}),key:S.key||E,model:S.model||S.type+"_"+E,rules:S.rules?Object(s.a)(S.rules):[]}),o.$set(m,l,D),o.selectWidget=D;case 15:o.$nextTick((function(){c.a.$emit("on-history-add-"+o.formKey)}));case 16:return r.a(2)}}),r)})))()},handleSelectChange:function(e){var t=this;setTimeout((function(){t.selectWidget=e>=0?t.children[e]:t.element}))}},watch:{select:function(e){this.selectWidget=e},selectWidget:{deep:!0,handler:function(e){this.$emit("update:select",e)}}}},y={name:"widget-card",mixins:[b],components:{Draggable:r.a,BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"71f6"))}},props:["element","select","index","children","platform","formKey"],data:function(){return{currentType:"card"}}},_=y,w=n("2877"),C=Object(w.a)(_,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-card",{staticClass:"widget-card",class:{"is-empty":0===e.element.children.length},attrs:{shadow:e.element.options.shadow}},[e.element.options&&e.element.options.showHeader?n("div",{attrs:{slot:"header"},slot:"header"},[e._v(e._s(e.element.name))]):e._e(),n("draggable",{staticClass:"widget-col-list",attrs:{animation:200,group:{name:"icdDesigner",put:e.handlePut},"no-transition-on-drag":!0,"data-text":e.$iss18n.t("issfd.coreDesigner.elements.dragToHere"),ghostClass:"ghost",handle:".widget-view-drag"},on:{add:function(t){return e.handlePluginAdd(t,e.element)},update:e.handlePluginUpdate},model:{value:e.element.children,callback:function(t){e.$set(e.element,"children",t)},expression:"element.children"}},[e._l(e.element.children,(function(t,o){return[t&&t.key?n("base-element-item",{key:t.key,attrs:{children:e.element.children,element:t,"form-key":e.formKey,index:o,platform:e.platform,select:e.selectWidget},on:{"update:select":function(t){e.selectWidget=t},"select-change":function(t){return e.handleSelectChange(t)}}}):e._e()]}))],2)],1)}),[],!1,null,null,null),x=C.exports,O=(n("e9f5"),n("7d54"),n("159b"),{name:"Grid",mixins:[b],components:{Draggable:r.a,BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"71f6"))}},props:["element","select","index","children","platform","formKey"],data:function(){return{currentType:"grid",selectWidget:this.select||{},selectIndex:-1}},methods:{getColSpan:function(e){return"pc"===this.platform?24/e:"pad"===this.platform?e>1?12:24:"mobile"===this.platform?24:void 0},handleSelectChange:function(e,t){var n=this;setTimeout((function(){n.selectWidget=e>=0?t.children[e]:{}}))},handleColumnAdd:function(){for(var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1?arguments[1]:void 0,o=0;o<t;o++)this.children.push({name:this.$iss18n.t("issfd.components.gridCol",{key:n}),model:"col_".concat(Object(d.a)()),type:"col",options:{customClass:""},children:[],key:Object(d.a)()}),this.$nextTick((function(){c.a.$emit("on-history-add-"+e.formKey)}))},handleColumnDelete:function(e,t){var n=this;this.children.splice(e,t),this.children.forEach((function(e,t){e.name=n.$iss18n.t("issfd.components.gridCol",{key:t+1})})),setTimeout((function(){c.a.$emit("on-history-add-"+n.formKey)}),20)},handleColumnChange:function(e){var t=e-this.element.children.length;t>0?this.handleColumnAdd(t,e):t<0&&this.handleColumnDelete(e,Math.abs(t))}},watch:{select:function(e){this.selectWidget=e},selectWidget:{deep:!0,handler:function(e){this.$emit("update:select",e)}}}}),T=O,E=Object(w.a)(T,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("div",{staticClass:"widget-grid"},[o("el-row",{staticClass:"widget-grid-row",class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options&&t.element.options.customClass,e),attrs:{align:t.element.options.align,gutter:t.element.options.gutter||0,justify:t.element.options.justify,type:"flex"}},t._l(t.element.children,(function(e,n){var r;return o("el-col",{key:e.key,staticClass:"widget-grid-item",class:(r={active:t.selectWidget.key&&t.selectWidget.key===e.key},r[e.options&&e.options.customClass]=e.options&&e.options.customClass,r["is-empty"]=0===e.children.length,r),attrs:{offset:e.options?e.options.offset:0,pull:e.options?e.options.pull:0,push:e.options?e.options.push:0,span:t.getColSpan(t.element.children.length||1)}},[o("draggable",{staticClass:"widget-col-list",class:{"is-empty":0===e.children.length},attrs:{animation:200,group:{name:"icdDesigner",put:t.handlePut},"no-transition-on-drag":!0,"data-text":t.$iss18n.t("issfd.coreDesigner.elements.dragToHere"),ghostClass:"ghost",handle:".widget-view-drag"},on:{add:function(e){return t.handlePluginAdd(e,n)},update:t.handlePluginUpdate},model:{value:e.children,callback:function(n){t.$set(e,"children",n)},expression:"item.children"}},[t._l(e.children,(function(n,r){return[n&&n.key?o("base-element-item",{key:n.key,attrs:{children:e.children,element:n,"form-key":t.formKey,platform:t.platform,index:r,select:t.selectWidget},on:{"update:select":function(e){t.selectWidget=e},"select-change":function(n){return t.handleSelectChange(n,e)}}}):t._e()]}))],2)],1)})),1),t.selectWidget.key===t.element.key?o("div",{staticClass:"widget-view-action widget-extra-action"},[o("el-dropdown",{attrs:{size:"small",trigger:"click"}},[o("span",{staticClass:"el-dropdown-link"},[o("base-icon",{attrs:{"icon-class":"list-settings-fill",title:t.$iss18n.t("issfd.coreDesigner.elements.grid.colSet")}})],1),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{nativeOn:{click:function(e){return e.stopPropagation(),t.handleColumnChange(1)}}},[o("base-icon",{attrs:{"icon-class":"layout-column-fill"}}),t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.grid.col1"))+" ")],1),o("el-dropdown-item",{nativeOn:{click:function(e){return e.stopPropagation(),t.handleColumnChange(2)}}},[o("base-icon",{attrs:{"icon-class":"layout-column-fill"}}),t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.grid.col2"))+" ")],1),o("el-dropdown-item",{nativeOn:{click:function(e){return e.stopPropagation(),t.handleColumnChange(3)}}},[o("base-icon",{attrs:{"icon-class":"layout-column-fill"}}),t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.grid.col3"))+" ")],1),o("el-dropdown-item",{nativeOn:{click:function(e){return e.stopPropagation(),t.handleColumnChange(4)}}},[o("base-icon",{attrs:{"icon-class":"layout-column-fill"}}),t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.grid.col4"))+" ")],1)],1)],1)],1):t._e()],1)}),[],!1,null,null,null),S=E.exports,D={name:"widget-collapse-item",mixins:[b],components:{Draggable:r.a,BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"71f6"))}},props:["element","select","index","children","platform","formKey"],data:function(){return{currentType:"collapse",collapseActive:this.element.children[0].name}},methods:{handleSelectChange:function(e,t){var n=this;setTimeout((function(){n.selectWidget=e>=0?t.children[e]:n.element}))}}},k=D,A=Object(w.a)(k,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("el-collapse",{staticClass:"widget-collapse",class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options.customClass,e),attrs:{accordion:t.element.options.accordion},model:{value:t.collapseActive,callback:function(e){t.collapseActive=e},expression:"collapseActive"}},t._l(t.element.children,(function(e,n){return o("el-collapse-item",{key:e.name,staticClass:"widget-collapse-item",class:{"is-empty":0===e.children.length},attrs:{name:e.name}},[o("div",{staticClass:"el-collapse-header-title",attrs:{slot:"title",title:e.name},slot:"title"},[t._v(t._s(e.name))]),o("draggable",{staticClass:"widget-col-list",attrs:{animation:200,group:{name:"icdDesigner",put:t.handlePut},"no-transition-on-drag":!0,"data-text":t.$iss18n.t("issfd.coreDesigner.elements.dragToHere"),ghostClass:"ghost",handle:".widget-view-drag"},on:{add:function(e){return t.handlePluginAdd(e,n)},update:t.handlePluginUpdate},model:{value:e.children,callback:function(n){t.$set(e,"children",n)},expression:"item.children"}},[t._l(e.children,(function(n,r){return[n&&n.key?o("base-element-item",{key:n.key,attrs:{children:e.children,element:n,"form-key":t.formKey,index:r,platform:t.platform,select:t.selectWidget},on:{"update:select":function(e){t.selectWidget=e},"select-change":function(n){return t.handleSelectChange(n,e)}}}):t._e()]}))],2)],1)})),1)}),[],!1,null,null,null),M=A.exports,I=(n("a630"),{name:"widget-report",mixins:[b],components:{Draggable:r.a,BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"71f6"))}},props:["element","select","index","children","platform","formKey"],data:function(){return{currentType:"report",selectWidget:this.select||{},selectR:-1,selectC:-1}},computed:{showRight:function(){var e=this.element.children[this.selectR].children[this.selectC].options.rowspan,t=this.element.children[this.selectR].children[this.selectC].options.colspan;if(this.selectC+t<this.element.children[this.selectR].children.length){var n=this.element.children[this.selectR].children[t+this.selectC];if(!n.options.invisible&&e===n.options.rowspan)return!0}return!1},showBottom:function(){var e=this.element.children[this.selectR].children[this.selectC].options.rowspan,t=this.element.children[this.selectR].children[this.selectC].options.colspan;if(e+this.selectR<this.element.children.length){var n=this.element.children[e+this.selectR].children[this.selectC];if(!n.options.invisible&&t===n.options.colspan)return!0}return!1},showRemoveRow:function(){if(this.element.children.length>1){var e=this.element.children[this.selectR].children[this.selectC].options.rowspan;if(1===e)return!0;for(var t=0;t<this.element.children[this.selectR].children.length;t++)if(e!==this.element.children[this.selectR].children[t].options.rowspan||this.element.children[this.selectR].children[t].options.invisible)return!1;if(this.element.children[this.selectR].children.length===t)return!0}return!1},showRemoveColumn:function(){if(this.element.children[this.selectR].children.length>1){var e=this.element.children[this.selectR].children[this.selectC].options.colspan;if(1===e)return!0;for(var t=0;t<this.element.children.length;t++)if(e!==this.element.children[t].children[this.selectC].options.colspan||this.element.children[t].children[this.selectC].options.invisible)return!1;if(this.element.children.length===t)return!0}return!1},showSplitColumn:function(){return this.element.children[this.selectR].children[this.selectC].options.colspan>1},showSplitRow:function(){return this.element.children[this.selectR].children[this.selectC].options.rowspan>1}},methods:{handlePut:function(e,t,n){return Object(u.a)(n.getAttribute("type"),this.currentType)},handleSelectItemWidget:function(e,t){this.selectWidget=this.children[e].children[t],this.selectR=e,this.selectC=t},handleWidgetItemUpdate:function(){c.a.$emit("on-history-add-"+this.formKey)},handleAddRow:function(){var e=this,t=this.children[0].children.length;this.children.push({name:this.$iss18n.t("issfd.components.reportRow"),model:"report_".concat(Object(d.a)()),type:"tr",children:Array.from({length:t},(function(e){return{type:"td",model:"td_".concat(Object(d.a)()),children:[],options:{customClass:"",colspan:1,rowspan:1,hidden:!1,height:""},key:Object(d.a)()}}))}),this.resetChildrenName(),this.$nextTick((function(){c.a.$emit("on-history-add-"+e.formKey)}))},resetChildrenName:function(){var e=this;this.element.children.forEach((function(t,n){t.name=e.$iss18n.t("issfd.components.reportRow",{key:n+1}),t.children.forEach((function(t,n){t.name=e.$iss18n.t("issfd.components.reportCol",{key:n+1})}))}))},handleAddColumns:function(){var e=this;this.children.forEach((function(e){e.children.push({type:"td",model:"td_".concat(Object(d.a)()),children:[],options:{customClass:"",colspan:1,rowspan:1,hidden:!1,height:""},key:Object(d.a)()})})),this.resetChildrenName(),this.$nextTick((function(){c.a.$emit("on-history-add-"+e.formKey)}))},insertColumns:function(e){for(var t=0;t<this.element.children.length;t++){var n=this.findPrevColIndex(t,e);if(n!==e&&this.element.children[t].children[e].options.invisible){this.element.children[t].children.splice(e,0,{type:"td",model:"td_".concat(Object(d.a)()),children:[],options:{customClass:"",colspan:1,rowspan:1,hidden:!1,height:"",invisible:!0},key:Object(d.a)()});var o=this.element.children[t].children[n].options.colspan;this.element.children[t].children[n].options.colspan=o+1;for(var r=0;r<o+1;r++)this.element.children[t].children[n+r].options.markCol=r}else this.element.children[t].children.splice(e,0,{type:"td",model:"td_".concat(Object(d.a)()),children:[],options:{customClass:"",colspan:1,rowspan:1,hidden:!1,height:""},key:Object(d.a)()})}this.resetChildrenName()},insertRow:function(e){for(var t=this,n=[],o=0;o<this.element.children[0].children.length;o++){var r=this.findPrevRowIndex(e,o);r!==e&&this.element.children[e].children[o].options.invisible?(n.push({model:"td_".concat(Object(d.a)()),type:"td",children:[],options:{customClass:"",colspan:1,rowspan:1,hidden:!1,height:"",invisible:!0},key:Object(d.a)()}),this.element.children[r].children[o].options.rowspan=this.element.children[r].children[o].options.rowspan+1):n.push({model:"td_".concat(Object(d.a)()),type:"td",children:[],options:{customClass:"",colspan:1,rowspan:1,hidden:!1,height:""},key:Object(d.a)()})}this.element.children.splice(e,0,{model:"report_".concat(Object(d.a)()),children:n,type:"tr"}),this.resetChildrenName(),this.$nextTick((function(){for(var n=0;n<t.element.children[e].children.length;n++)if(t.element.children[e].children[n].options.invisible){var o=t.findPrevRowIndex(e-1,n);t.element.children[o].children[n].options.invisible||t.markTableItem(o,n)}}))},handleInsertLeft:function(){var e=this,t=this.selectC;this.insertColumns(t),this.selectC=this.selectC++,this.$nextTick((function(){c.a.$emit("on-history-add-"+e.formKey)}))},handleInsertRight:function(){var e=this,t=this.element.children[this.selectR].children[this.selectC].options.colspan>1?this.findNextColIndex(this.selectR,this.selectC+1):this.selectC+1;this.insertColumns(t),this.$nextTick((function(){c.a.$emit("on-history-add-"+e.formKey)}))},handleInserBefore:function(){var e=this,t=this.selectR;this.insertRow(t),this.selectR=this.selectR++,this.$nextTick((function(){c.a.$emit("on-history-add-"+e.formKey)}))},handleInserAfter:function(){var e=this,t=this.element.children[this.selectR].children[this.selectC].options.rowspan>1?this.findNextRowIndex(this.selectR+1,this.selectC):this.selectR+1;this.insertRow(t),this.$nextTick((function(){c.a.$emit("on-history-add-"+e.formKey)}))},markTableItem:function(e,t){for(var n=this.element.children[e].children[t].options.colspan,o=this.element.children[e].children[t].options.rowspan,r=0;r<o;r++)for(var i=0;i<n;i++)this.element.children[e+r].children[t+i].options.markCol=i,this.element.children[e+r].children[t+i].options.markRow=r},handleRight:function(e){var t=this,n=e.options.colspan,o=this.selectC+n,r=this.element.children[this.selectR].children[o].options.colspan;this.$set(e.options,"colspan",n+r),this.element.children[this.selectR].children[o].options.invisible=!0;var i=Object(s.a)(this.element.children[this.selectR].children[o].children);this.element.children[this.selectR].children[o].children=[],e.children=e.children.concat(i),this.markTableItem(this.selectR,this.selectC),this.$nextTick((function(){c.a.$emit("on-history-add-"+t.formKey)}))},handleBottom:function(e){var t=this,n=e.options.rowspan,o=this.selectR+n,r=this.element.children[o].children[this.selectC].options.rowspan;this.$set(e.options,"rowspan",n+r),this.element.children[o].children[this.selectC].options.invisible=!0;var i=Object(s.a)(this.element.children[o].children[this.selectC].children);this.element.children[o].children[this.selectC].children=[],e.children=e.children.concat(i),this.markTableItem(this.selectR,this.selectC),this.$nextTick((function(){c.a.$emit("on-history-add-"+t.formKey)}))},handleSplitColumn:function(){for(var e=this,t=this.element.children[this.selectR].children[this.selectC].options.colspan,n=this.element.children[this.selectR].children[this.selectC].options.rowspan,o=0;o<t;o++)this.element.children[this.selectR].children[this.selectC+o].options.invisible=!1,this.element.children[this.selectR].children[this.selectC+o].options.colspan=1,this.element.children[this.selectR].children[this.selectC+o].options.rowspan=n,this.markTableItem(this.selectR,this.selectC+o);this.$nextTick((function(){c.a.$emit("on-history-add-"+e.formKey)}))},handleSplitRow:function(){for(var e=this,t=this.element.children[this.selectR].children[this.selectC].options.colspan,n=this.element.children[this.selectR].children[this.selectC].options.rowspan,o=0;o<n;o++)this.element.children[this.selectR+o].children[this.selectC].options.invisible=!1,this.element.children[this.selectR+o].children[this.selectC].options.rowspan=1,this.element.children[this.selectR+o].children[this.selectC].options.colspan=t,this.markTableItem(this.selectR,this.selectC+o);this.$nextTick((function(){c.a.$emit("on-history-add-"+e.formKey)}))},findPrevRowIndex:function(e,t){return e>=this.element.children.length||!this.element.children[e].children[t].options.markRow?e:this.findPrevRowIndex(e-1,t)},findPrevColIndex:function(e,t){return t>=this.element.children[e].children.length||!this.element.children[e].children[t].options.markCol?t:this.findPrevColIndex(e,t-1)},findNextColIndex:function(e,t){return t>=this.element.children[e].children.length||!this.element.children[e].children[t].options.markCol?t:this.findNextColIndex(e,t+1)},findNextRowIndex:function(e,t){return e>=this.element.children.length||!this.element.children[e].children[t].options.markRow?e:this.findNextRowIndex(e+1,t)},handleRemoveRow:function(){for(var e=this,t=0;t<this.element.children[this.selectR].children.length;t++){var n=this.element.children[this.selectR].children[t].options.rowspan,o=this.element.children[this.selectR].children[t].options.colspan;if(this.element.children[this.selectR].children[t].options.invisible){var r=this.findPrevRowIndex(this.selectR,t);r!==this.selectR&&this.element.children[r].children[t].options.rowspan>1&&(this.element.children[r].children[t].options.rowspan=this.element.children[r].children[t].options.rowspan-1)}else n>1&&(this.element.children[this.selectR+1].children[t].children=Object(s.a)(this.element.children[this.selectR].children[t].children),this.element.children[this.selectR+1].children[t].options.invisible=!1,this.element.children[this.selectR+1].children[t].options.rowspan=n-1,this.element.children[this.selectR+1].children[t].options.colspan=o,this.markTableItem(this.selectR+1,t))}this.element.children.splice(this.selectR,1),this.$nextTick((function(){c.a.$emit("on-history-add-"+e.formKey)}))},handleRemoveColumn:function(){for(var e=this,t=0;t<this.element.children.length;t++){var n=this.element.children[t].children[this.selectC].options.colspan,o=this.element.children[t].children[this.selectC].options.rowspan;if(this.element.children[t].children[this.selectC].options.invisible){var r=this.findPrevColIndex(t,this.selectC);r!==this.selectC&&this.element.children[t].children[r].options.colspan>1&&(this.element.children[t].children[r].options.colspan=this.element.children[t].children[r].options.colspan-1)}else n>1&&(this.element.children[t].children[this.selectC+1].children=Object(s.a)(this.element.children[t].children[this.selectC].children),this.element.children[t].children[this.selectC+1].options.invisible=!1,this.element.children[t].children[this.selectC+1].options.colspan=n-1,this.element.children[t].children[this.selectC+1].options.rowspan=o,this.markTableItem(t,this.selectC+1));this.element.children[t].children.splice(this.selectC,1)}this.$nextTick((function(){c.a.$emit("on-history-add-"+e.formKey)}))},handleSelectChange:function(e,t){var n=this;setTimeout((function(){n.selectWidget=e>=0?t.children[e]:n.children.children[n.index]}))}},watch:{select:function(e){this.selectWidget=e},selectWidget:{deep:!0,handler:function(e){this.$emit("update:select",e)}}}}),P=I,R=Object(w.a)(P,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("div",{staticClass:"widget-report"},[o("table",{staticClass:"report-container",class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options.customClass,e),style:{"border-top-width":t.element.options.borderWidth+"px","border-top-color":t.element.options.borderColor,"border-left-width":t.element.options.borderWidth+"px","border-left-color":t.element.options.borderColor,width:t.element.options.width||"100%"}},t._l(t.element.children,(function(e,n){return o("tr",{key:n},t._l(e.children,(function(e,r){var i;return e.options.invisible?t._e():o("td",{key:n+"-"+r,staticClass:"widget-report-item report-container-td",class:(i={active:t.selectWidget.key&&t.selectWidget.key===e.key},i[e.options.customClass]=e.options.customClass,i["is-empty"]=e.children&&0===e.children.length,i),style:{"border-right-width":t.element.options.borderWidth+"px","border-right-color":t.element.options.borderColor,"border-bottom-width":t.element.options.borderWidth+"px","border-bottom-color":t.element.options.borderColor,height:e.options.height},attrs:{colspan:e.options.colspan,rowspan:e.options.rowspan,valign:"top"},on:{click:function(e){return e.stopPropagation(),t.handleSelectItemWidget(n,r)}}},[o("draggable",{staticClass:"widget-col-list",attrs:{animation:200,group:{name:"icdDesigner",put:t.handlePut},"no-transition-on-drag":!0,"data-text":t.$iss18n.t("issfd.coreDesigner.elements.dragToHere"),ghostClass:"ghost",handle:".widget-view-drag"},on:{add:function(e){return t.handlePluginAdd(e,r,n)},update:t.handleWidgetItemUpdate},model:{value:e.children,callback:function(n){t.$set(e,"children",n)},expression:"column.children"}},[t._l(e.children,(function(n,r){return[n&&n.key?o("base-element-item",{key:n.key,attrs:{platform:t.platform,children:e.children,element:n,"form-key":t.formKey,index:r,select:t.selectWidget},on:{"update:select":function(e){t.selectWidget=e},"select-change":function(n){return t.handleSelectChange(n,e)}}}):t._e()]}))],2),t.selectWidget.key===e.key?o("div",{staticClass:"widget-view-action widget-col-action"},[o("el-dropdown",{attrs:{size:"small",trigger:"click"}},[o("span",{staticClass:"el-dropdown-link"},[o("base-icon",{attrs:{"icon-class":"list-settings-fill",title:t.$iss18n.t("issfd.coreDesigner.elements.report.set")}})],1),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{nativeOn:{click:function(e){return e.stopPropagation(),t.handleInsertLeft.apply(null,arguments)}}},[t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.report.insertLeft"))+" ")]),o("el-dropdown-item",{nativeOn:{click:function(e){return e.stopPropagation(),t.handleInsertRight.apply(null,arguments)}}},[t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.report.insertRight"))+" ")]),o("el-dropdown-item",{nativeOn:{click:function(e){return e.stopPropagation(),t.handleInserBefore.apply(null,arguments)}}},[t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.report.insertBefore"))+" ")]),o("el-dropdown-item",{nativeOn:{click:function(e){return e.stopPropagation(),t.handleInserAfter.apply(null,arguments)}}},[t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.report.insertAfter"))+" ")]),o("el-dropdown-item",{attrs:{disabled:!t.showRight,divided:""},nativeOn:{click:function(n){return n.stopPropagation(),t.handleRight(e)}}},[t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.report.mergeRight"))+" ")]),o("el-dropdown-item",{attrs:{disabled:!t.showBottom},nativeOn:{click:function(n){return n.stopPropagation(),t.handleBottom(e)}}},[t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.report.mergeBottom"))+" ")]),o("el-dropdown-item",{attrs:{disabled:!t.showSplitColumn,divided:""},nativeOn:{click:function(e){return e.stopPropagation(),t.handleSplitColumn.apply(null,arguments)}}},[t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.report.splitColumn"))+" ")]),o("el-dropdown-item",{attrs:{disabled:!t.showSplitRow},nativeOn:{click:function(e){return e.stopPropagation(),t.handleSplitRow.apply(null,arguments)}}},[t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.report.splitRow"))+" ")]),o("el-dropdown-item",{attrs:{disabled:!t.showRemoveColumn,divided:""},nativeOn:{click:function(e){return e.stopPropagation(),t.handleRemoveColumn.apply(null,arguments)}}},[t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.report.deleteCol"))+" ")]),o("el-dropdown-item",{attrs:{disabled:!t.showRemoveRow},nativeOn:{click:function(e){return e.stopPropagation(),t.handleRemoveRow.apply(null,arguments)}}},[t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.report.deleteRow"))+" ")])],1)],1)],1):t._e()],1)})),0)})),0),t.selectWidget.key===t.element.key?o("div",{staticClass:"widget-view-action widget-extra-action"},[o("base-help-icon",{attrs:{content:t.$iss18n.t("issfd.coreDesigner.elements.report.mobileWarning")}}),o("base-icon",{attrs:{"icon-class":"insert-row-top",title:t.$iss18n.t("issfd.coreDesigner.elements.report.addRow")},on:{click:function(e){return e.stopPropagation(),t.handleAddRow()}}}),o("base-icon",{attrs:{"icon-class":"insert-column-left",title:t.$iss18n.t("issfd.coreDesigner.elements.report.addCol")},on:{click:function(e){return e.stopPropagation(),t.handleAddColumns()}}})],1):t._e()])}),[],!1,null,null,null),L=R.exports,N={name:"widget-tab-item",mixins:[b],components:{Draggable:r.a,BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"71f6"))}},props:["element","select","index","children","platform","formKey"],data:function(){return{currentType:"tabs",tabActive:this.element.children[0].name}},methods:{handleSelectChange:function(e,t){var n=this;setTimeout((function(){n.selectWidget=e>=0?t.children[e]:{}}))}}},F=N,j=Object(w.a)(F,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("el-tabs",{staticClass:"widget-tab",class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options.customClass,e),attrs:{"tab-position":t.element.options.tabPosition,type:t.element.options.type},model:{value:t.tabActive,callback:function(e){t.tabActive=e},expression:"tabActive"}},t._l(t.element.children,(function(e,n){return o("el-tab-pane",{key:e.name,staticClass:"widget-tab-pane",class:{"is-empty":0===e.children.length},attrs:{label:e.name,name:e.name}},[o("draggable",{staticClass:"widget-col-list",attrs:{animation:200,group:{name:"icdDesigner",put:t.handlePut},"no-transition-on-drag":!0,"data-text":t.$iss18n.t("issfd.coreDesigner.elements.dragToHere"),ghostClass:"ghost",handle:".widget-view-drag"},on:{add:function(e){return t.handlePluginAdd(e,n)},update:t.handlePluginUpdate},model:{value:e.children,callback:function(n){t.$set(e,"children",n)},expression:"item.children"}},[t._l(e.children,(function(n,r){return[n&&n.key?o("base-element-item",{key:n.key,attrs:{children:e.children,element:n,"form-key":t.formKey,index:r,platform:t.platform,select:t.selectWidget},on:{"update:select":function(e){t.selectWidget=e},"select-change":function(n){return t.handleSelectChange(n,e)}}}):t._e()]}))],2)],1)})),1)}),[],!1,null,null,null),B=j.exports,$=(n("a15b"),n("d81d"),n("ab43"),/^(?!_)(?![0-9])[a-zA-Z0-9_]{2,50}$/),z={element:{type:Object,default:function(){}},platform:{type:String,default:""},isInTable:{type:Boolean,default:!1}},U=n("5c9a"),V=n("f016"),H=n("ec26"),W=n("8907"),Y={name:"plugin",props:Object(a.a)({},z),computed:{model:{get:function(){return this.element.options.defaultValue},set:function(e){this.element.options.defaultValue=e}},isRemote:function(){return("radio"===this.element.type||"checkbox"===this.element.type)&&this.element.options.remote!==U.a.STATIC_DATA&&this.element.options.remoteOption.remoteDict},disabled:function(){return this.element.options.disabled},placeholder:function(){return this.element.options.placeholder}},data:function(){return{DATASOURCE_TYPE:U.a,variableMap:V.b,key:Object(d.a)(),elementKey:Object(d.a)(),remoteOptions:[],optionLoading:!1,optionLoadFailed:!1}},methods:{v4:H.a,handleLoadDictOptions:function(){var e=this;return Object(l.a)(Object(i.a)().m((function t(){var n,o;return Object(i.a)().w((function(t){for(;;)switch(t.n){case 0:if(!e.optionLoading){t.n=1;break}return t.a(2);case 1:if(e.optionLoading=!0,e.optionLoadFailed=!1,n={},"dict"!==(o=e.element.options.remoteOption.remoteDict).dictDataType){t.n=3;break}return t.n=2,Object(W.a)(e,{dictId:o.dictId,parentId:"#"});case 2:n=t.v,t.n=5;break;case 3:if("dictItem"!==o.dictDataType){t.n=5;break}return t.n=4,Object(W.a)(e,{dictId:o.dictId,parentId:o.dictOptionId});case 4:n=t.v;case 5:n.data&&n.data.length?e.remoteOptions=n.data:e.optionLoadFailed=!0,e.optionLoading=!1;case 6:return t.a(2)}}),t)})))()}},watch:{isRemote:{immediate:!0,handler:function(e){e&&this.handleLoadDictOptions()}},"element.options.remoteOption.remoteDict":{deep:!0,handler:function(e){e&&this.isRemote&&this.handleLoadDictOptions()}},"element.options.defaultValue":function(){this.elementKey=Object(d.a)()}}},q=Y,G=Object(w.a)(q,(function(){var e=this.$createElement;return(this._self._c||e)("div")}),[],!1,null,null,null),K=G.exports,X={name:"designer-input",extends:K,computed:{isVariableDefaultValue:function(){return this.element.options.isVariableDefaultValue}},created:function(){var e=this.element.options.isVariableDefaultValue;"boolean"==typeof e&&this.$set(this.element.options,"isVariableDefaultValue",e?"variable":"static"),"maxLength"in this.element.options||this.$set(this.element.options,"maxLength",100)}},J=X,Q=Object(w.a)(J,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",["static"===e.isVariableDefaultValue?n("el-input",{style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{disabled:e.disabled,placeholder:e.placeholder,"show-password":e.element.options.showPassword,maxlength:"50"},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}}):"formula"===e.isVariableDefaultValue?n("el-input",{style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{disabled:e.disabled,placeholder:e.placeholder,"show-password":e.element.options.showPassword,maxlength:"50"}}):n("el-input",{style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{disabled:e.disabled,placeholder:e.placeholder,"show-password":e.element.options.showPassword,value:"{{"+(e.element.options.defaultVariable?e.variableMap[e.element.options.defaultVariable]:e.$iss18n.t("issfd.coreDesigner.elements.notSelected"))+"}}",maxlength:"50"}})],1)}),[],!1,null,null,null),Z=Q.exports,ee={name:"designer-textarea",extends:K,computed:{isVariableDefaultValue:function(){return this.element.options.isVariableDefaultValue}},created:function(){var e=this.element.options.isVariableDefaultValue;"boolean"==typeof e?this.$set(this.element.options,"isVariableDefaultValue",e?"variable":"static"):e||this.$set(this.element.options,"isVariableDefaultValue","static")}},te=ee,ne=Object(w.a)(te,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",["static"===e.isVariableDefaultValue?n("el-input",{style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{autosize:!!e.element.options.autosize&&{minRows:e.element.options.rows},disabled:e.disabled,placeholder:e.placeholder,rows:e.element.options.rows,type:"textarea"},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}}):"formula"===e.isVariableDefaultValue?n("el-input",{style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{autosize:!!e.element.options.autosize&&{minRows:e.element.options.rows},disabled:e.disabled,placeholder:e.placeholder,rows:e.element.options.rows,type:"textarea"}}):n("el-input",{style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{autosize:!!e.element.options.autosize&&{minRows:e.element.options.rows},disabled:e.disabled,placeholder:e.placeholder,rows:e.element.options.rows,value:"{{"+(e.element.options.defaultVariable?e.variableMap[e.element.options.defaultVariable]:e.$iss18n.t("issfd.coreDesigner.elements.notSelected"))+"}}",type:"textarea"}})],1)}),[],!1,null,null,null),oe=ne.exports,re={name:"designer-number",extends:K,computed:{isVariableDefaultValue:function(){return this.element.options.isVariableDefaultValue},widthDisplay:function(){return this.element.options.isWidgetWidth?{width:this.element.options.width+"%"}:this.isInTable?{flex:1}:{width:"auto"}}},created:function(){var e=this.element.options.isVariableDefaultValue;"boolean"!=typeof e&&(e||this.$set(this.element.options,"isVariableDefaultValue",e?"variable":"static"))}},ie=re,ae=(n("4744"),Object(w.a)(ie,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"number-display"},[n("el-input-number",{style:e.widthDisplay,attrs:{value:"static"===e.isVariableDefaultValue?e.model:"",controls:e.element.options.controls,"controls-position":e.element.options.controlsPosition,disabled:e.disabled,precision:e.element.options.closePrecision?void 0:e.element.options.precision}}),e.element.options.showSuffix?n("span",{staticClass:"iss-number-unit"},[e._v(e._s(e.element.options.suffix))]):e._e()],1)}),[],!1,null,null,null)),se=ae.exports,le={name:"designer-radio",extends:K},ce=le,ue=Object(w.a)(ce,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-radio-group",{style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{disabled:e.disabled},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}},["button"===e.element.options.optionStyle?e._l(e.isRemote?e.remoteOptions:e.element.options.options,(function(t,o){return n("el-radio-button",{key:t.value+o,style:{display:"inline-block"},attrs:{label:t.value}},[e._v(" "+e._s(t.label)+" ")])})):e._l(e.isRemote?e.remoteOptions:e.element.options.options,(function(t,o){return n("el-radio",{key:t.value+o,style:{display:"mobile"===e.platform&&"border"===e.element.options.optionStyle?"block":e.element.options.inline?"inline-block":"block"},attrs:{border:"border"===e.element.options.optionStyle,label:t.value}},[e._v(" "+e._s(t.label)+" ")])}))],2),e.isRemote?[e.optionLoading?[n("i",{staticClass:"el-icon-loading"}),e._v(" "+e._s(e.$iss18n.t("issfd.coreDesigner.elements.loadingOptions"))+" ")]:e._e(),e.optionLoadFailed?n("div",{staticClass:"form-option-load-failed"},[n("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.coreDesigner.elements.loadOptionFailed"))+" "),n("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[n("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.coreDesigner.elements.loadRetry"))+" ")],1)],1):e._e()]:e._e()],2)}),[],!1,null,null,null),de=ue.exports,fe={name:"designer-checkbox",extends:K},pe=fe,me=Object(w.a)(pe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-checkbox-group",{style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{disabled:e.disabled,max:e.element.options.enableMaxSelection?e.element.options.maxSelection:void 0},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}},["button"===e.element.options.optionStyle?e._l(e.isRemote?e.remoteOptions:e.element.options.options,(function(t,o){return n("el-checkbox-button",{key:t.value+o,style:{display:"inline-block"},attrs:{label:t.value}},[e._v(" "+e._s(t.label)+" ")])})):e._l(e.isRemote?e.remoteOptions:e.element.options.options,(function(t,o){return n("el-checkbox",{key:t.value+o,style:{display:"mobile"===e.platform&&"border"===e.element.options.optionStyle?"block":e.element.options.inline?"inline-block":"block"},attrs:{border:"border"===e.element.options.optionStyle,label:t.value}},[e._v(" "+e._s(t.label)+" ")])}))],2),e.isRemote?[e.optionLoading?[n("i",{staticClass:"el-icon-loading"}),e._v(" "+e._s(e.$iss18n.t("issfd.coreDesigner.elements.loadingOptions"))+" ")]:e._e(),e.optionLoadFailed?n("div",{staticClass:"form-option-load-failed"},[n("base-icon",{attrs:{"icon-class":"information-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.coreDesigner.elements.loadOptionFailed"))+" "),n("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.handleLoadDictOptions}},[n("base-icon",{attrs:{"icon-class":"refresh-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.coreDesigner.elements.loadRetry"))+" ")],1)],1):e._e()]:e._e()],2)}),[],!1,null,null,null),he=me.exports,ge={name:"designer-time",extends:K},ve=Object(w.a)(ge,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.element.options.isVariableDefaultValue?n("el-input",{attrs:{value:"{{动态时间}}"}}):n("el-time-picker",{key:e.elementKey,style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{clearable:e.element.options.clearable,"default-value":e.model,disabled:e.disabled,editable:e.element.options.editable,placeholder:e.placeholder,readonly:e.element.options.readonly,"value-format":e.element.options.format},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}})],1)}),[],!1,null,null,null).exports,be={name:"designer-date",extends:K,computed:{isVariableDefaultValue:function(){return this.element.options.isVariableDefaultValue}},created:function(){var e=this.element.options.useDynamicValue;"boolean"==typeof e&&this.$set(this.element.options,"isVariableDefaultValue",e?"current":"static")}},ye=Object(w.a)(be,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",["current"===e.isVariableDefaultValue?n("el-input",{attrs:{value:e.$iss18n.t("issfd.coreDesigner.elements.dynamicDate")}}):"formula"===e.isVariableDefaultValue?n("el-input"):n("el-date-picker",{key:e.elementKey,style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{clearable:e.element.options.clearable,disabled:e.disabled,editable:e.element.options.editable,placeholder:e.placeholder,readonly:e.element.options.readonly,type:e.element.options.type,format:"custom"===e.element.options.format?e.element.options.customFormat:e.element.options.format,"value-format":"timestamp"},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}})],1)}),[],!1,null,null,null).exports,_e={name:"designer-rate",extends:K},we=Object(w.a)(_e,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-rate",{style:e.element.options.clearable?"float:left":"",attrs:{"allow-half":e.element.options.allowHalf,disabled:e.disabled,"icon-classes":["ri-star-fill","ri-star-fill","ri-star-fill"],"void-icon-class":"ri-star-line","disabled-void-icon-class":"ri-star-fill",max:e.element.options.max,"show-score":e.element.options.showScore,"score-template":"{value}"+e.element.options.suffix},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}}),e.element.options.clearable?n("el-link",{staticStyle:{float:"left","margin-left":"1rem"},attrs:{type:"primary",underline:!1}},[e._v(e._s(e.$iss18n.t("issfd.components.rateProp.clear")))]):e._e()],1)}),[],!1,null,null,null).exports,Ce={name:"designer-select",extends:K,inject:{elFormItem:{default:""}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._elFormItemSize||(this.$ELEMENT||{}).size||"small"}},components:{CustomSelectComponent:n("f73f").a}},xe=Object(w.a)(Ce,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("custom-select-component",{style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{clearable:e.element.options.clearable,disabled:e.disabled,placeholder:e.placeholder,"custom-multiple":e.element.options.multiple,size:e.size,multiple:""},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}},e._l(e.element.options.options,(function(e,t){return n("el-option",{key:e.value+t,attrs:{label:e.label,value:e.label}})})),1)],1)}),[],!1,null,null,null).exports,Oe={name:"render-switches",extends:K},Te=Object(w.a)(Oe,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-switch",{attrs:{disabled:e.disabled,"active-text":e.element.options.activeText,"inactive-text":e.element.options.inactiveText},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}})}),[],!1,null,null,null).exports,Ee={name:"render-slider",extends:K},Se=Object(w.a)(Ee,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-slider",{style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{disabled:e.disabled,max:e.element.options.max,min:e.element.options.min,range:e.element.options.range,"show-input":e.element.options.showInput,step:e.element.options.step,"format-tooltip":function(t){return t+e.element.options.suffix}},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}})}),[],!1,null,null,null).exports,De={name:"render-editor",extends:K,components:{RichEditor:n("0a4d").a}},ke=Object(w.a)(De,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rich-editor",{attrs:{disabled:e.disabled,placeholder:e.placeholder},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}})}),[],!1,null,null,null).exports,Ae={name:"render-organization",extends:K,components:{OrganizationSelector:n("9a01").a}},Me=Object(w.a)(Ae,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("organization-selector",{attrs:{"custom-style":{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},disabled:e.disabled,multiple:e.element.options.multiple,placeholder:e.placeholder,"option-scope-type":e.element.options.optionScopeType,readonly:!0},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}})}),[],!1,null,null,null).exports,Ie={name:"render-member",extends:Me},Pe=Object(w.a)(Ie,void 0,void 0,!1,null,null,null).exports,Re={name:"render-cascader",extends:K},Le=Object(w.a)(Re,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-cascader",{style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{clearable:e.element.options.clearable,disabled:e.disabled,options:e.element.options.remote!==e.DATASOURCE_TYPE.STATIC_DATA?[]:e.element.options.options,placeholder:e.placeholder,props:{multiple:e.element.options.multiple,checkStrictly:e.element.options.checkStrictly}},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}})}),[],!1,null,null,null).exports,Ne={name:"render-upload",extends:K,components:{UploadComponent:n("c1ea").a}},Fe=Object(w.a)(Ne,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("upload-component",{style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{disabled:e.disabled,limit:e.element.options.limit,multiple:e.element.options.multiple,size:e.element.options.size,accept:e.element.options.accept,"enable-drag":e.element.options.isDrag,"hide-tips":e.element.options.hideTips,tip:e.element.options.tip},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}})}),[],!1,null,null,null).exports,je={name:"render-imageUpload",extends:K,components:{UploadImageComponent:n("7afc").a}},Be=Object(w.a)(je,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("upload-image-component",{style:{width:e.isInTable?"100%":e.element.options.isWidgetWidth?e.element.options.width+"%":"100%"},attrs:{disabled:e.disabled,limit:e.element.options.limit,multiple:e.element.options.multiple,size:e.element.options.size,"hide-tips":e.element.options.hideTips,tip:e.element.options.tip},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}})}),[],!1,null,null,null).exports,$e={name:"render-uuid",extends:K,components:{UuidComponent:n("b3da").a}},ze=Object(w.a)($e,(function(){var e=this.$createElement;return(this._self._c||e)("uuid-component",{attrs:{"custom-style":{width:this.isInTable?"100%":this.element.options.isWidgetWidth?this.element.options.width+"%":"100%"},value:this.v4()}})}),[],!1,null,null,null).exports,Ue={name:"render-sequence",extends:K},Ve=Object(w.a)(Ue,(function(){var e=this.$createElement;return(this._self._c||e)("el-input",{attrs:{value:this.element.options.previewValue,resize:"none",disabled:""}})}),[],!1,null,null,null).exports,He={name:"render-address",extends:K,inject:{elFormItem:{default:""}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._elFormItemSize||(this.$ELEMENT||{}).size||"small"}},components:{AddressComponent:n("ce9d").a}},We=Object(w.a)(He,(function(){var e=this.$createElement;return(this._self._c||e)("address-component",{attrs:{disabled:this.disabled,"is-address-detail":this.element.options.isAddressDetail,size:this.size}})}),[],!1,null,null,null).exports,Ye={name:"render-relatedForm",extends:K,components:{RelatedForm:n("40e3").a}},qe=Object(w.a)(Ye,(function(){var e=this.$createElement;return(this._self._c||e)("related-form",{attrs:{placeholder:this.placeholder}})}),[],!1,null,null,null).exports,Ge={name:"render-qrCode",extends:K,components:{QrCodeComponent:n("bfce").a}},Ke=Object(w.a)(Ge,(function(){var e=this.$createElement;return(this._self._c||e)("qr-code-component",{attrs:{options:this.element.options}})}),[],!1,null,null,null).exports,Xe=n("7b30"),Je={name:"designer-divider",extends:K,components:{TextComponent:Xe.a}},Qe=Object(w.a)(Je,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("text-component",{attrs:{align:e.element.options.contentPosition}},[n("el-button",{style:e.element.options.customWidth?{width:e.element.options.width+"%"}:"",attrs:{circle:e.element.options.buttonCircle,disabled:e.element.options.disabled,plain:e.element.options.buttonPlain,round:e.element.options.buttonRound,size:e.element.options.buttonSize,type:e.element.options.buttonType}},[e._v(" "+e._s(e.element.options.buttonName)+" ")])],1)}),[],!1,null,"aa58ff26",null).exports,Ze={name:"designer-divider",extends:K},et=Object(w.a)(Ze,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{style:{paddingTop:this.element.options.paddingTop+"px",paddingBottom:this.element.options.paddingBottom+"px"}},[t("el-divider",{attrs:{"content-position":this.element.options.contentPosition}},[this._v(" "+this._s(this.element.options.text)+" ")])],1)}),[],!1,null,"fb853664",null).exports,tt={name:"designer-divider",extends:K},nt=Object(w.a)(tt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.element.options.href?n("iframe",{staticClass:"iss-iframe",style:{width:e.element.options.width+"%",height:e.element.options.height+"px"},attrs:{src:e.element.options.href}}):n("div",{staticClass:"iss-image-load-failed",style:{width:e.element.options.width+"%",height:e.element.options.height+"px"}},[n("div",{staticClass:"iss-empty-image"}),n("span",[e._v(e._s(e.$iss18n.t("issfd.coreDesigner.elements.configIframeUrl")))])])}),[],!1,null,"e2f66010",null).exports,ot={name:"designer-divider",extends:K},rt=Object(w.a)(ot,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-image",{style:{width:e.element.options.width+"%",height:e.element.options.autoHeight?"auto":e.element.options.height+"px"},attrs:{alt:e.element.name,fit:e.element.options.autoHeight?"fill":e.element.options.fit,src:e.element.options.src,lazy:""}},[n("div",{staticClass:"iss-image-load-failed",attrs:{slot:"error"},slot:"error"},[n("div",{staticClass:"iss-empty-image"}),e.element.options.src?n("span",[e._v(" "+e._s(e.$iss18n.t("issfd.coreDesigner.elements.ImageLoadFailed"))+" ")]):n("span",[e._v(e._s(e.$iss18n.t("issfd.coreDesigner.elements.configImageUrl")))])])])}),[],!1,null,"3cc3d189",null).exports,it={name:"designer-divider",extends:K,components:{TextComponent:Xe.a}},at=Object(w.a)(it,(function(){var e=this.$createElement,t=this._self._c||e;return t("text-component",{attrs:{align:this.element.options.contentPosition}},[t("el-link",{attrs:{disabled:this.element.options.disabled,type:this.element.options.linkType,underline:this.element.options.underline}},[this._v(" "+this._s(this.element.options.text)+" ")])],1)}),[],!1,null,"06094750",null).exports,st={name:"designer-text",extends:K,components:{TextComponent:Xe.a}},lt=Object(w.a)(st,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("text-component",{attrs:{align:e.element.options.contentPosition,"font-color":e.element.options.fontColor,"font-size":e.element.options.fontSize,"font-style":e.element.options.fontStyle,"font-weight":e.element.options.fontWeight,"font-family":e.element.options.fontFamily,"margin-top":e.element.options.marginTop,"margin-bottom":e.element.options.marginBottom}},[e._v(" "+e._s(e.element.options.text)+" ")])}),[],!1,null,"0ea10c2a",null).exports,ct={name:"designer-custom",extends:K,inject:["customComponentList"],computed:{customComponents:function(){return this.customComponentList()},customPluginStoped:function(){var e=this.element.code||this.element.options.customName,t=window[e];return(!t||!t.designer&&!t[e+"Designer"])&&this.$iss18n.t("issfd.coreDesigner.elements.deletedCustomComponent")}}},ut=(n("0ace"),Object(w.a)(ct,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.customPluginStoped?n("div",{staticClass:"plugin-stoped"},[n("span",{staticClass:"plugin-deleted__text"},[n("base-icon",{attrs:{"icon-class":"spam-3-line"}}),e._v(" "+e._s(e.customPluginStoped)+" ")],1)]):n((e.element.code||e.element.options.customName)+"-designer",{tag:"component",attrs:{element:e.element,platform:e.platform,isInTable:e.isInTable}})],1)}),[],!1,null,null,null).exports),dt={name:"designer-user-notice",extends:K,components:{TextComponent:Xe.a},data:function(){return{optionTypeList:["title","content","checkboxText"]}}},ft=(n("e9ac"),Object(w.a)(dt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.optionTypeList,(function(t){return[n("div",{key:t,class:t+"-class"},["title"===t||"checkboxText"===t?n("text-component",{attrs:{align:e.element.options[t+"Options"].contentPosition,"font-color":e.element.options[t+"Options"].fontColor,"font-size":e.element.options[t+"Options"].fontSize,"font-style":e.element.options[t+"Options"].fontStyle,"font-weight":e.element.options[t+"Options"].fontWeight,"font-family":e.element.options[t+"Options"].fontFamily,"margin-top":e.element.options[t+"Options"].marginTop,"margin-bottom":e.element.options[t+"Options"].marginBottom}},["checkboxText"===t?[n("el-checkbox",{model:{value:e.element.options[t+"Options"].checkboxSelected,callback:function(n){e.$set(e.element.options[t+"Options"],"checkboxSelected",n)},expression:"element.options[optionType + 'Options'].checkboxSelected"}}),e._v(" "+e._s(e.element.options[t+"Options"].text)+" ")]:[e._v(" "+e._s(e.element.options[t+"Options"].text)+" ")]],2):n("div",{staticClass:"content-class",domProps:{innerHTML:e._s(e.element.options[t+"Options"].text)}})],1)]}))],2)}),[],!1,null,"7c1d4833",null).exports),pt=n("b85c"),mt=n("7694"),ht={name:"designer-united-form",extends:K,data:function(){return{collapseActive:["collapseItem"],loading:!1,formInfo:null,serverInfo:Object(mt.x)()}},watch:{element:{deep:!0,handler:function(){this.fetchByFormId()}}},mounted:function(){this.fetchByFormId()},methods:{fetchByFormId:function(){var e=this;return Object(l.a)(Object(i.a)().m((function t(){var n,o,r,a,s;return Object(i.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:if(e.loading=!0,e.formInfo=null,t.p=1,!(e.element&&e.element.options&&e.element.options.unitedFormInfo&&e.element.options.unitedFormInfo.formId&&e.element.options.unitedFormInfo.formId.length)){t.n=5;break}return t.n=2,Object(mt.i)({formId:e.element.options.unitedFormInfo.formId});case 2:if("0000"!==(n=t.v).data.code){t.n=4;break}if(!n.data.data.customComponentList||!n.data.data.customComponentList.length){t.n=3;break}o=Object(pt.a)(n.data.data.customComponentList);try{for(o.s();!(r=o.n()).done;)(a=r.value).content="".concat(e.serverInfo.baseUrl).concat(a.content)}catch(e){o.e(e)}finally{o.f()}return t.n=3,Object(v.a)(n.data.data.customComponentList);case 3:n.data.data.content&&n.data.data.content.list&&(e.formInfo=n.data.data),t.n=5;break;case 4:e.$message.error(n.data.message);case 5:t.n=7;break;case 6:t.p=6,s=t.v,e.$message.error(s.message);case 7:return t.p=7,setTimeout((function(){e.loading=!1}),200),t.f(7);case 8:return t.a(2)}}),t,null,[[1,6,7,8]])})))()}}},gt={input:Z,textarea:oe,number:se,radio:de,checkbox:he,time:ve,date:ye,rate:we,select:xe,switches:Te,slider:Se,editor:ke,member:Pe,organization:Me,cascader:Le,upload:Fe,imageUpload:Be,uuid:ze,sequence:Ve,address:We,relatedForm:qe,qrCode:Ke,button:Qe,divider:et,iframe:nt,image:rt,link:at,text:lt,custom:ut,userNotice:ft,unitedForm:Object(w.a)(ht,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"designer-united-form"},[t.element&&t.element.options?["card"===t.element.options.styleType?o("el-card",{staticClass:"widget-card",attrs:{shadow:t.element.options.shadow},scopedSlots:t._u([t.element.options.showHeader?{key:"header",fn:function(){return[o("div",[t._v(t._s(t.element.name))])]},proxy:!0}:null,{key:"default",fn:function(){return[t.formInfo?o("iss-library-form-renderer",{ref:"generateForm",attrs:{id:"export-id",edit:!1,"lock-platform":!0,"prefer-platform":t.platform,"print-read":!1,source:t.formInfo.content,insite:"true","is-united-form-comp":!0,preview:""}}):t._e()]},proxy:!0}],null,!0)}):"collapse"===t.element.options.styleType?o("el-collapse",{class:(e={"widget-collapse":!0},e[t.element.options&&t.element.options.customClass]=t.element.options.customClass,e),model:{value:t.collapseActive,callback:function(e){t.collapseActive=e},expression:"collapseActive"}},[o("el-collapse-item",{staticClass:"widget-collapse-item",attrs:{name:"collapseItem"},scopedSlots:t._u([{key:"title",fn:function(){return[o("div",{staticClass:"el-collapse-header-title",attrs:{title:t.element.name}},[t._v(t._s(t.element.name))])]},proxy:!0},{key:"default",fn:function(){return[t.formInfo?o("iss-library-form-renderer",{ref:"generateForm",attrs:{id:"export-id",edit:!1,"lock-platform":!0,"prefer-platform":t.platform,"print-read":!1,source:t.formInfo.content,"is-united-form-comp":!0,insite:"true",preview:""}}):t._e()]},proxy:!0}],null,!1,1834815255)})],1):t._e()]:t._e()],2)}),[],!1,null,null,null).exports},vt={props:["element","select","index","data","platform","formKey","mode"],data:function(){return{Elements:gt,currentType:"table-item",selectWidget:this.select||{}}},created:function(){this.element.options.isInTable=!0},computed:{isModelValidate:function(){return $.test(this.element.model)},pluginLabelWidth:function(){return this.element.options.hideLabel?"0px":this.element.options.isLabelWidth?this.element.options.labelWidth+"px":""}},methods:{handleSelectWidget:function(e){this.selectWidget=this.data[e]},handleWidgetDelete:function(e){var t=this;1===this.data.length?this.$emit("select-change",-1):this.data.length-1===e?this.$emit("select-change",e-1):this.$emit("select-change",e),this.$nextTick((function(){t.data.splice(e,1),setTimeout((function(){c.a.$emit("on-history-add-"+t.formKey)}),20)}))},handleWidgetClone:function(e){var t=this,n=Object(d.a)(),o=Object(a.a)(Object(a.a)({},h.a.cloneDeep(this.data[e])),{},{key:n,model:this.data[e].type+"_"+n});this.data.splice(e+1,0,o),this.$nextTick((function(){t.selectWidget=t.data[e+1],t.$nextTick((function(){c.a.$emit("on-history-add-"+t.formKey)}))}))}},watch:{select:function(e){this.selectWidget=e},selectWidget:{handler:function(e){this.$emit("update:select",e)},deep:!0}}},bt=Object(w.a)(vt,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return t.element&&t.element.key?o("div",{staticClass:"widget-table-view",class:{active:t.selectWidget.key===t.element.key,"is-required":t.element.options.required,"is-hidden":t.element.options.hidden,"has-error":!t.isModelValidate,mobile:"section"===t.mode},style:{width:"table"===t.mode?t.element.options.isWidgetWidth?2*t.element.options.width+"px":"200px":""},attrs:{type:t.currentType},on:{click:function(e){return e.stopPropagation(),t.handleSelectWidget(t.index)}}},["table"===t.mode?o("el-table",{attrs:{data:[{}],"row-class-name":"widget-table-row"}},[o("el-table-column",{key:t.element.key,attrs:{"header-align":"center",align:"center"},scopedSlots:t._u([{key:"header",fn:function(e){return[o("div",{staticClass:"design-table-header"},[o("p",{staticClass:"header-label",class:t.element.options.required?"required":""},[t._v(t._s(t.element.options.hideLabel?"":t.element.name))]),t.element.options.inputTips?o("el-popover",{attrs:{placement:"top","popper-class":"designer-table-header-tip",width:"200",trigger:"hover",content:t.element.options.inputTips}},[o("base-icon",{attrs:{slot:"reference","icon-class":"question-fill"},slot:"reference"})],1):t._e()],1)]}}],null,!1,1550510021)},[o(t.Elements[t.element.type],{tag:"component",attrs:{element:t.element,platform:t.platform,isInTable:!0}})],1)],1):t._e(),"section"===t.mode?[o("el-form-item",{class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options.customClass,e),attrs:{label:t.element.options.hideLabel||!t.element.options.labelWidth?"":t.element.name,"label-width":t.pluginLabelWidth}},[o(t.Elements[t.element.type],{tag:"component",attrs:{element:t.element,platform:t.platform,isInTable:!1}})],1)]:t._e(),t.isModelValidate?t._e():o("div",{staticClass:"error-tip",attrs:{title:t.$iss18n.t("issfd.coreDesigner.elements.tableItem.errorTip")}},[o("base-icon",{attrs:{"icon-class":"error-warning-fill"}}),t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.invalidID"))+" ")],1),t.selectWidget.key===t.element.key?o("div",{staticClass:"widget-view-action"},[o("base-icon",{attrs:{"icon-class":"file-copy-line",title:t.$iss18n.t("issfd.common.buttons.copy")},on:{click:function(e){return e.stopPropagation(),t.handleWidgetClone(t.index)}}}),o("base-icon",{attrs:{"icon-class":"delete-bin-line",title:t.$iss18n.t("issfd.common.buttons.delete")},on:{click:function(e){return e.stopPropagation(),t.handleWidgetDelete(t.index)}}})],1):t._e(),t.selectWidget.key===t.element.key?o("div",{staticClass:"widget-view-drag"},[o("base-icon",{attrs:{"icon-class":"drag-move-fill"}})],1):t._e()],2):t._e()}),[],!1,null,null,null).exports,yt=function(e){var t=Object(d.a)();return e.children?Object(a.a)(Object(a.a)({},e),{},{key:t,model:e.type+"_"+t,children:e.children.map((function(e){return e.children?Object(a.a)(Object(a.a)({},e),{},{children:e.children.map((function(e){return yt(e)})),key:Object(d.a)(),model:e.type+"_"+Object(d.a)()}):yt(e)}))}):Object(a.a)(Object(a.a)({},e),{},{key:t,model:e.type+"_"+t})},_t={mixins:[b],name:"DesignTable",components:{Draggable:r.a,TableItem:bt},props:["widgetForm","element","select","index","data","platform","formKey"],data:function(){return{currentType:"table",selectWidget:this.select||{},columnsWidthStyle:"200px"}},computed:{mode:function(){return"auto"===this.element.options.displayMode?"pc"===this.platform?"table":"section":this.element.options.displayMode}},mounted:function(){this.calcTableColumnsWidth()},methods:{handleSelectWidget:function(e){this.selectWidget=this.data.list[e]},handleWidgetDelete:function(e){var t=this;1===this.data.list.length?this.$emit("select-change",-1):this.data.list.length-1===e?this.$emit("select-change",e-1):this.$emit("select-change",e),this.data.list.splice(e,1),setTimeout((function(){c.a.$emit("on-history-add-"+t.formKey)}),20)},handleTableClone:function(e){var t=this,n=h.a.cloneDeep(this.data.list[e]);this.data.list.splice(e+1,0,yt(n)),this.$nextTick((function(){t.selectWidget=t.data.list[e+1],t.$nextTick((function(){c.a.$emit("on-history-add-"+t.formKey)}))}))},handleWidgetTableUpdate:function(e){var t=this;this.$nextTick((function(){c.a.$emit("on-history-add-"+t.formKey)}))},calcTableColumnsWidth:function(){this.columnsWidthStyle="calc(400px)";var e=this.element.children.map((function(e){return e.options.isWidgetWidth?"".concat(2*e.options.width,"px"):"200px"}));e.length&&(this.columnsWidthStyle="calc(400px + ".concat(e.join(" + "),")"))},handlePut:function(e,t,n){return Object(u.b)(n.getAttribute("type"),this.currentType)},handleSelectChange:function(e,t){var n=this;setTimeout((function(){n.selectWidget=e>=0?n.element.children[e]:n.data.list[n.index]}))}},watch:{select:function(e){this.selectWidget=e},selectWidget:{deep:!0,handler:function(e){this.$emit("update:select",e)}},element:{deep:!0,handler:function(e){this.calcTableColumnsWidth()}}}},wt=Object(w.a)(_t,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("div",{staticClass:"widget-table"},[o("el-form-item",{class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options.customClass,e),attrs:{label:t.element.options.hideLabel?"":t.element.name,"label-width":t.element.options.hideLabel?"0px":t.element.options.isLabelWidth?t.element.options.labelWidth+"px":""}},[o("div",{staticClass:"widget-table-wrapper",class:{mobile:"section"===t.mode}},["table"===t.mode?o("el-table",{staticClass:"widget-table-left",attrs:{data:[{}],"row-class-name":"widget-table-row"}},[o("el-table-column",{attrs:{align:"center",label:t.$iss18n.t("issfd.coreDesigner.elements.table.index"),type:"index",width:"50"}})],1):o("div",{staticClass:"widget-table-top"},[t.element.options.enableDynamicTableTitle&&t.element.options.relatedField?o("span",{staticClass:"renderer-table-mobile-title"},[t._v(" "+t._s(t.element.children.find((function(e){return e.model===t.element.options.relatedField}))?t.element.children.find((function(e){return e.model===t.element.options.relatedField})).name:"未配置")+" ")]):o("el-link",[t._v(t._s(t.$iss18n.t("issfd.coreDesigner.elements.table.code")))])],1),o("div",{staticClass:"widget-table-content",class:{mobile:"section"===t.mode}},[0===t.element.children.length?o("div",{staticClass:"table-empty"},[t._v(t._s(t.$iss18n.t("issfd.coreDesigner.elements.dragToHere")))]):t._e(),o("draggable",{staticClass:"widget-col-list",attrs:{animation:200,direction:"table"===t.mode?"horizontal":"vertical",group:{name:"icdTableDesigner",put:t.handlePut},"no-transition-on-drag":!0,"data-text":t.$iss18n.t("issfd.coreDesigner.elements.dragToHere"),ghostClass:"ghost",handle:".widget-view-drag"},on:{add:function(e){return t.handlePluginAdd(e)},update:t.handleWidgetTableUpdate},model:{value:t.element.children,callback:function(e){t.$set(t.element,"children",e)},expression:"element.children"}},[o("transition-group",{staticClass:"widget-table-col",style:{width:"table"===t.mode?t.columnsWidthStyle:"100%"},attrs:{name:"fade",tag:"div"}},t._l(t.element.children,(function(e,n){return e.key?o("table-item",{key:e.key,attrs:{data:t.element.children,element:e,"form-key":t.formKey,index:n,mode:t.mode,platform:t.platform,select:t.selectWidget,tableElement:t.element},on:{"update:select":function(e){t.selectWidget=e},"select-change":function(n){return t.handleSelectChange(n,e)}}}):t._e()})),1)],1)],1)],1),t.element.options.maxLimit?o("span",{staticClass:"max-limit-tip"},[t._v(t._s(t.$iss18n.t("issfd.coreDesigner.elements.table.maxLimit",{maxRows:t.element.options.maxRows})))]):t._e()])],1)}),[],!1,null,null,null).exports,Ct={name:"widget-inline",mixins:[b],components:{Draggable:r.a,BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"71f6"))}},props:["element","select","index","children","platform","formKey"],data:function(){return{currentType:"inline"}}},xt=Object(w.a)(Ct,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"widget-inline",class:{"is-empty":0===e.element.children.length},attrs:{shadow:e.element.options.shadow}},[n("draggable",{staticClass:"widget-col-list",attrs:{animation:200,group:{name:"icdDesigner",put:e.handlePut},"no-transition-on-drag":!0,"data-text":e.$iss18n.t("issfd.coreDesigner.elements.dragToHere"),ghostClass:"ghost",handle:".widget-view-drag"},on:{add:function(t){return e.handlePluginAdd(t,e.element)},update:e.handlePluginUpdate},model:{value:e.element.children,callback:function(t){e.$set(e.element,"children",t)},expression:"element.children"}},[e._l(e.element.children,(function(t,o){return[t&&t.key?n("base-element-item",{key:t.key,attrs:{children:e.element.children,element:t,"form-key":e.formKey,index:o,platform:e.platform,select:e.selectWidget},on:{"update:select":function(t){e.selectWidget=t},"select-change":function(t){return e.handleSelectChange(t)}}}):e._e()]}))],2)],1)}),[],!1,null,null,null).exports,Ot={name:"widget-step-item",mixins:[b],components:{Draggable:r.a,BaseElementItem:function(){return Promise.resolve().then(n.bind(null,"71f6"))}},props:["element","select","index","children","platform","formKey"],computed:{showStepCompleteBtn:function(){var e;return!0===(null===(e=this.element)||void 0===e||null===(e=e.options)||void 0===e?void 0:e.showStepCompleteBtn)}},data:function(){return{currentType:"steps",stepActive:0}},methods:{nextStep:function(){this.stepActive++>this.element.children.length-1&&(this.stepActive=this.element.children.length)},preStep:function(){this.stepActive--<=0&&(this.stepActive=0)},handleSelectChange:function(e,t){var n=this;setTimeout((function(){n.selectWidget=e>=0?t.children[e]:{}}))}}},Tt={card:x,grid:S,collapse:M,report:L,tabs:B,table:wt,inline:xt,steps:Object(w.a)(Ot,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("div",[o("div",{style:"vertical"===t.element.options.direction?"display: flex":""},[o("el-steps",{staticClass:"widget-steps",class:(e={},e[t.element.options&&t.element.options.customClass]=t.element.options.customClass,e),attrs:{active:t.stepActive,direction:t.element.options.direction,simple:t.element.options.simple,"align-center":t.element.options.alignCenter,"finish-status":"success"}},t._l(t.element.children,(function(e,t){return o("el-step",{key:"step_"+t,staticClass:"widget-step",attrs:{title:e.name,description:e.description}})})),1),t._l(t.element.children,(function(e,n){return[o("el-card",{directives:[{name:"show",rawName:"v-show",value:t.stepActive===n,expression:"stepActive === index"}],key:"content_"+e.name,staticClass:"widget-card",class:["vertical"===t.element.options.direction?"step-content-vertical":"step-content-horizontal",{"is-empty":0===e.children.length}]},[o("div",{attrs:{slot:"header"},slot:"header"},[o("span",[t._v(t._s(e.name))])]),o("draggable",{staticClass:"widget-col-list",attrs:{animation:200,group:{name:"icdDesigner",put:t.handlePut},"no-transition-on-drag":!0,"data-text":t.$iss18n.t("issfd.coreDesigner.elements.dragToHere"),ghostClass:"ghost",handle:".widget-view-drag"},on:{add:function(e){return t.handlePluginAdd(e,n)},update:t.handlePluginUpdate},model:{value:e.children,callback:function(n){t.$set(e,"children",n)},expression:"item.children"}},[t._l(e.children,(function(n,r){return[n&&n.key?o("base-element-item",{key:n.key,attrs:{children:e.children,element:n,"form-key":t.formKey,index:r,platform:t.platform,select:t.selectWidget},on:{"update:select":function(e){t.selectWidget=e},"select-change":function(n){return t.handleSelectChange(n,e)}}}):t._e()]}))],2)],1)]}))],2),o("div",{staticClass:"button-class"},[0!==t.stepActive?o("el-button",{attrs:{size:"small"},on:{click:t.preStep}},[t._v(t._s(t.$iss18n.t("issfd.common.buttons.pre")))]):t._e(),t.stepActive<t.element.children.length-1?o("el-button",{attrs:{size:"small"},on:{click:t.nextStep}},[t._v(t._s(t.$iss18n.t("issfd.common.buttons.next")))]):t._e(),t.showStepCompleteBtn&&t.stepActive===t.element.children.length-1?o("el-button",{attrs:{size:"small"},on:{click:function(e){t.stepActive++}}},[t._v(t._s(t.$iss18n.t("issfd.common.buttons.complete")))]):t._e()],1)])}),[],!1,null,null,null).exports},Et=n("522e"),St=n("fee3"),Dt={props:["widgetForm","element","select","index","children","formKey","platform","isInTable"],name:"BaseElementItem",data:function(){return{plugins:gt,Containers:Tt,WIDGET_UNITED_FORM_MAP:St.z,selectWidget:this.select||{},componentConfig:Et.a,errorMessage:""}},computed:{isContainer:function(){return Et.a[this.element.type]&&Et.a[this.element.type].isContainer},isModelValidate:function(){var e=!0;if(St.k[this.element.type]||"input"===this.element.type&&this.element.options.relatedFormEnabled?(e=!(!this.element.options.relatedFormInfo||!this.element.options.relatedFormInfo.formId),this.updateErrorMessage(this.$iss18n.t("issfd.coreDesigner.elements.selectRelatedFormError")),e&&(e=!(!this.element.options.relatedFormInfo||!this.element.options.relatedFormInfo.targetColumn),this.updateErrorMessage(this.$iss18n.t("issfd.coreDesigner.elements.selectRelatedColumnError")))):!St.z[this.element.type]||this.element.options.unitedFormInfo&&this.element.options.unitedFormInfo.formId||(e=!1,this.updateErrorMessage(this.$iss18n.t("issfd.coreDesigner.elements.unionFormsSelectError"))),e){if(!(e=!!(e=this.element.model&&this.element.model.length>0)&&$.test(this.element.model)))return this.updateErrorMessage(this.$iss18n.t("issfd.coreDesigner.elements.invalidID")),e;if(!(e=!!this.element.name.trim()))return this.updateErrorMessage(this.$iss18n.t("issfd.coreDesigner.elements.requiredName")),e}return e},pluginLabelWidth:function(){return this.element.options.hideLabel?"0px":this.element.options.isLabelWidth?this.element.options.labelWidth+"px":""}},methods:{updateErrorMessage:function(e){this.errorMessage=e},handleSelectWidget:function(e){this.selectWidget=this.children[e]},handleWidgetDelete:function(e){var t=this;1===this.children.length?this.$emit("select-change",-1):this.children.length-1===e?this.$emit("select-change",e-1):this.$emit("select-change",e),this.$nextTick((function(){t.children.splice(e,1),setTimeout((function(){c.a.$emit("on-history-add-"+t.formKey)}),20)}))},handleWidgetClone:function(e){var t=this,n=h.a.cloneDeep(this.children[e]);this.children.splice(e+1,0,yt(n)),this.$nextTick((function(){t.selectWidget=t.children[e+1],t.$nextTick((function(){c.a.$emit("on-history-add-"+t.formKey)}))}))},handleSelectChange:function(e){var t=this;setTimeout((function(){t.selectWidget=e>=0?t.widgetForm.list[e]:{}}))}},watch:{select:function(e){this.selectWidget=e},selectWidget:{handler:function(e){this.$emit("update:select",e)},deep:!0}}},kt=Object(w.a)(Dt,(function(){var e,t=this,n=t.$createElement,o=t._self._c||n;return o("div",{staticClass:"widget-view",class:{active:t.selectWidget.key===t.element.key,"is-required":t.element.options.required,"is-hidden":t.element.options.hidden,"is-container":t.isContainer,"has-error":!t.isModelValidate},attrs:{type:t.element.type},on:{click:function(e){return e.stopPropagation(),t.handleSelectWidget(t.index)}}},[t.element&&t.element.key?[t.isContainer?o(t.Containers[t.element.type],{tag:"component",attrs:{children:t.element.children,element:t.element,index:t.index,formKey:t.formKey,platform:t.platform,select:t.selectWidget,"widget-form":t.widgetForm},on:{"update:select":function(e){t.selectWidget=e},"select-change":t.handleSelectChange}}):o("el-form-item",{class:(e={"no-form-label":!t.element.options.labelWidth},e[t.element.options&&t.element.options.customClass]=t.element.options.customClass,e),attrs:{label:t.element.options.hideLabel||!t.element.options.labelWidth?"":t.element.name,"label-width":t.pluginLabelWidth}},[o(t.plugins[t.element.type],{tag:"component",attrs:{element:t.element,platform:t.platform,isInTable:!1}}),t.element.options.inputTips?o("small",{staticClass:"widget-input-tips"},[t._v(t._s(t.element.options.inputTips))]):t._e()],1)]:t._e(),t.isModelValidate?t._e():o("div",{staticClass:"error-tip",attrs:{title:t.errorMessage}},[o("base-icon",{attrs:{"icon-class":"error-warning-fill"}}),t._v(" "+t._s(t.$iss18n.t("issfd.coreDesigner.elements.elementConfigError",{errorMessage:t.errorMessage}))+" ")],1),t.selectWidget.key===t.element.key?[o("div",{staticClass:"widget-view-action"},[t._t("default"),t.WIDGET_UNITED_FORM_MAP[t.element.type]?t._e():o("base-icon",{attrs:{"icon-class":"file-copy-line",title:t.$iss18n.t("issfd.common.buttons.copy")},on:{click:function(e){return e.stopPropagation(),t.handleWidgetClone(t.index)}}}),o("base-icon",{attrs:{"icon-class":"delete-bin-line",title:t.$iss18n.t("issfd.common.buttons.delete")},on:{click:function(e){return e.stopPropagation(),t.handleWidgetDelete(t.index)}}})],2),o("div",{staticClass:"widget-view-drag"},[o("base-icon",{attrs:{"icon-class":"drag-move-fill"}})],1)]:t._e()],2)}),[],!1,null,null,null);t.default=kt.exports},"721a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n("fd7c"),a=(o=i)&&o.__esModule?o:{default:o},s=n("ab5b"),l=function(){function e(t,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.canvas=t,this.encodings=n,this.options=o}return r(e,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var e=0;e<this.encodings.length;e++){var t=(0,a.default)(this.options,this.encodings[e].options);this.drawCanvasBarcode(t,this.encodings[e]),this.drawCanvasText(t,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var e=this.canvas.getContext("2d");e.save(),(0,s.calculateEncodingAttributes)(this.encodings,this.options,e);var t=(0,s.getTotalWidthOfEncodings)(this.encodings),n=(0,s.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=t+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,e.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(e.fillStyle=this.options.background,e.fillRect(0,0,this.canvas.width,this.canvas.height)),e.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(e,t){var n,o=this.canvas.getContext("2d"),r=t.data;n="top"==e.textPosition?e.marginTop+e.fontSize+e.textMargin:e.marginTop,o.fillStyle=e.lineColor;for(var i=0;i<r.length;i++){var a=i*e.width+t.barcodePadding;"1"===r[i]?o.fillRect(a,n,e.width,e.height):r[i]&&o.fillRect(a,n,e.width,e.height*r[i])}}},{key:"drawCanvasText",value:function(e,t){var n,o,r=this.canvas.getContext("2d"),i=e.fontOptions+" "+e.fontSize+"px "+e.font;e.displayValue&&(o="top"==e.textPosition?e.marginTop+e.fontSize-e.textMargin:e.height+e.textMargin+e.marginTop+e.fontSize,r.font=i,"left"==e.textAlign||t.barcodePadding>0?(n=0,r.textAlign="left"):"right"==e.textAlign?(n=t.width-1,r.textAlign="right"):(n=t.width/2,r.textAlign="center"),r.fillText(t.text,n,o))}},{key:"moveCanvasDrawing",value:function(e){this.canvas.getContext("2d").translate(e.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),e}();t.default=l},7234:function(e,t,n){"use strict";e.exports=function(e){return null==e}},7282:function(e,t,n){"use strict";var o=n("e330"),r=n("59ed");e.exports=function(e,t,n){try{return o(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},"72ab":function(e,t,n){"use strict";n("520a")},"72c3":function(e,t,n){"use strict";var o=n("23e7"),r=n("e9bc"),i=n("5320");o({target:"Set",proto:!0,real:!0,forced:!n("dad2")("union")||!i("union")},{union:r})},"72fe":function(e,t,n){var o;e.exports=(o=n("21bf"),function(e){var t=o,n=t.lib,r=n.WordArray,i=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var o=t+n,r=e[o];e[o]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],m=e[t+3],h=e[t+4],g=e[t+5],v=e[t+6],b=e[t+7],y=e[t+8],_=e[t+9],w=e[t+10],C=e[t+11],x=e[t+12],O=e[t+13],T=e[t+14],E=e[t+15],S=i[0],D=i[1],k=i[2],A=i[3];S=c(S,D,k,A,a,7,s[0]),A=c(A,S,D,k,l,12,s[1]),k=c(k,A,S,D,p,17,s[2]),D=c(D,k,A,S,m,22,s[3]),S=c(S,D,k,A,h,7,s[4]),A=c(A,S,D,k,g,12,s[5]),k=c(k,A,S,D,v,17,s[6]),D=c(D,k,A,S,b,22,s[7]),S=c(S,D,k,A,y,7,s[8]),A=c(A,S,D,k,_,12,s[9]),k=c(k,A,S,D,w,17,s[10]),D=c(D,k,A,S,C,22,s[11]),S=c(S,D,k,A,x,7,s[12]),A=c(A,S,D,k,O,12,s[13]),k=c(k,A,S,D,T,17,s[14]),S=u(S,D=c(D,k,A,S,E,22,s[15]),k,A,l,5,s[16]),A=u(A,S,D,k,v,9,s[17]),k=u(k,A,S,D,C,14,s[18]),D=u(D,k,A,S,a,20,s[19]),S=u(S,D,k,A,g,5,s[20]),A=u(A,S,D,k,w,9,s[21]),k=u(k,A,S,D,E,14,s[22]),D=u(D,k,A,S,h,20,s[23]),S=u(S,D,k,A,_,5,s[24]),A=u(A,S,D,k,T,9,s[25]),k=u(k,A,S,D,m,14,s[26]),D=u(D,k,A,S,y,20,s[27]),S=u(S,D,k,A,O,5,s[28]),A=u(A,S,D,k,p,9,s[29]),k=u(k,A,S,D,b,14,s[30]),S=d(S,D=u(D,k,A,S,x,20,s[31]),k,A,g,4,s[32]),A=d(A,S,D,k,y,11,s[33]),k=d(k,A,S,D,C,16,s[34]),D=d(D,k,A,S,T,23,s[35]),S=d(S,D,k,A,l,4,s[36]),A=d(A,S,D,k,h,11,s[37]),k=d(k,A,S,D,b,16,s[38]),D=d(D,k,A,S,w,23,s[39]),S=d(S,D,k,A,O,4,s[40]),A=d(A,S,D,k,a,11,s[41]),k=d(k,A,S,D,m,16,s[42]),D=d(D,k,A,S,v,23,s[43]),S=d(S,D,k,A,_,4,s[44]),A=d(A,S,D,k,x,11,s[45]),k=d(k,A,S,D,E,16,s[46]),S=f(S,D=d(D,k,A,S,p,23,s[47]),k,A,a,6,s[48]),A=f(A,S,D,k,b,10,s[49]),k=f(k,A,S,D,T,15,s[50]),D=f(D,k,A,S,g,21,s[51]),S=f(S,D,k,A,x,6,s[52]),A=f(A,S,D,k,m,10,s[53]),k=f(k,A,S,D,w,15,s[54]),D=f(D,k,A,S,l,21,s[55]),S=f(S,D,k,A,y,6,s[56]),A=f(A,S,D,k,E,10,s[57]),k=f(k,A,S,D,v,15,s[58]),D=f(D,k,A,S,O,21,s[59]),S=f(S,D,k,A,h,6,s[60]),A=f(A,S,D,k,C,10,s[61]),k=f(k,A,S,D,p,15,s[62]),D=f(D,k,A,S,_,21,s[63]),i[0]=i[0]+S|0,i[1]=i[1]+D|0,i[2]=i[2]+k|0,i[3]=i[3]+A|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var i=e.floor(o/4294967296),a=o;n[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,o,r,i,a){var s=e+(t&n|~t&o)+r+a;return(s<<i|s>>>32-i)+t}function u(e,t,n,o,r,i,a){var s=e+(t&o|n&~o)+r+a;return(s<<i|s>>>32-i)+t}function d(e,t,n,o,r,i,a){var s=e+(t^n^o)+r+a;return(s<<i|s>>>32-i)+t}function f(e,t,n,o,r,i,a){var s=e+(n^(t|~o))+r+a;return(s<<i|s>>>32-i)+t}t.MD5=i._createHelper(l),t.HmacMD5=i._createHmacHelper(l)}(Math),o.MD5)},"73d9":function(e,t,n){"use strict";n("44d2")("flatMap")},7408:function(e,t,n){"use strict";var o={name:"Loading",props:{description:{type:String,default:"暂无数据"},isImage:{default:!0}}},r=n("2877"),i=Object(r.a)(o,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"iss-empty-container"},[this.isImage?t("div",{staticClass:"container-item image"},[t("div",{staticClass:"icon-area"})]):this._e(),t("div",{staticClass:"container-item description"},[t("div",[this._v(this._s(this.description))]),t("div",[this._t("default")],2)])])}),[],!1,null,null,null);t.a=i.exports},"740f":function(e,t,n){"use strict";n("b252")},7418:function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},7461:function(e,t,n){"use strict";var o={name:"BaseIcon",props:{iconClass:String}},r=(n("f4e4"),n("2877")),i=Object(r.a)(o,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("i",{staticClass:"base-icon",class:"ri-"+e.iconClass,on:{click:function(t){return e.$emit("click",t)}}})}),[],!1,null,"3e34b48e",null);t.a=i.exports},"74bc":function(e,t,n){},"752b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(n("721a")),r=a(n("be5e")),i=a(n("4ced"));function a(e){return e&&e.__esModule?e:{default:e}}t.default={CanvasRenderer:o.default,SVGRenderer:r.default,ObjectRenderer:i.default}},7694:function(e,t,n){"use strict";n.d(t,"w",(function(){return M})),n.d(t,"m",(function(){return I})),n.d(t,"n",(function(){return P})),n.d(t,"x",(function(){return R})),n.d(t,"j",(function(){return L})),n.d(t,"v",(function(){return N})),n.d(t,"A",(function(){return F})),n.d(t,"s",(function(){return j})),n.d(t,"q",(function(){return B})),n.d(t,"l",(function(){return $})),n.d(t,"p",(function(){return z})),n.d(t,"u",(function(){return U})),n.d(t,"B",(function(){return V})),n.d(t,"h",(function(){return H})),n.d(t,"C",(function(){return W})),n.d(t,"e",(function(){return Y})),n.d(t,"b",(function(){return q})),n.d(t,"g",(function(){return G})),n.d(t,"i",(function(){return K})),n.d(t,"k",(function(){return X})),n.d(t,"r",(function(){return J})),n.d(t,"o",(function(){return Q})),n.d(t,"z",(function(){return Z})),n.d(t,"d",(function(){return ee})),n.d(t,"c",(function(){return te})),n.d(t,"t",(function(){return ne})),n.d(t,"a",(function(){return oe})),n.d(t,"y",(function(){return re})),n.d(t,"f",(function(){return ie})),n("d9e2");var o=null,r=null,i=null,a=null,s=null,l=null,c=null,u=null,d=null,f=null,p=null,m=null,h=null,g=null,v=null,b=null,y=null,_=null,w=null,C=null,x=null,O=null,T=null,E=null,S=null,D=null,k=null,A=null,M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o=e.getDictItemsByParentId,r=e.getDictListByPage,i=e.ossServiceInfo,a=e.fileDownload,s=e.getUserList,l=e.searchUser,c=e.getOrgTree,u=e.getFormInfoListByPage,d=e.getColumnList,f=e.getFormDataListByPage,p=e.getThirdApiListByPage,m=e.triggerThirdApi,h=e.exportFormModel2Excel,g=e.uploadExcel,v=e.excelData2Table,b=e.batchDownload,y=e.exportFormData,e.getFormModelInfo,e.getFormInfo,_=e.fetchByFormId,w=e.getApplicationListByPage,C=e.getMenuTreeByApplicationId,x=e.getFormData,O=e.saveFormData,T=e.editFormData,E=e.deleteFormData,S=e.getStaticResources,D=e.addStaticResource,k=e.queryDataSetListByParams,A=e.execDatasetByParams},I=function(e){return o?o(e):new Error("adapter must use after initialization!")},P=function(e){return r?r(e):new Error("adapter must use after initialization!")},R=function(e){return i?i(e):new Error("adapter must use after initialization!")},L=function(e){return a?a(e):new Error("adapter must use after initialization!")},N=function(e){return s?s(e):new Error("adapter must use after initialization!")},F=function(e){return l?l(e):new Error("adapter must use after initialization!")},j=function(e){return c?c(e):new Error("adapter must use after initialization!")},B=function(e){return u?u(e):new Error("adapter must use after initialization!")},$=function(e){return d?d(e):new Error("adapter must use after initialization!")},z=function(e){return f?f(e):new Error("adapter must use after initialization!")},U=function(e){return p?p(e):new Error("adapter must use after initialization!")},V=function(e){return m?m(e):new Error("adapter must use after initialization!")},H=function(e){return h?h(e):new Error("adapter must use after initialization!")},W=function(e){return g?g(e):new Error("adapter must use after initialization!")},Y=function(e){return v?v(e):new Error("adapter must use after initialization!")},q=function(e){return b?b(e):new Error("adapter must use after initialization!")},G=function(e){return y?y(e):new Error("adapter must use after initialization!")},K=function(e){return _?_(e):new Error("adapter must use after initialization!")},X=function(e){return w?w(e):new Error("adapter must use after initialization!")},J=function(e){return C?C(e):new Error("adapter must use after initialization!")},Q=function(e){return x?x(e):new Error("adapter must use after initialization!")},Z=function(e){return O?O(e):new Error("adapter must use after initialization!")},ee=function(e){return T?T(e):new Error("adapter must use after initialization!")},te=function(e){return E?E(e):new Error("adapter must use after initialization!")},ne=function(e){return S?S(e):new Error("adapter must use after initialization!")},oe=function(e){return D?D(e):new Error("adapter must use after initialization!")},re=function(e){return k?k(e):new Error("adapter must use after initialization!")},ie=function(e){return A?A(e):new Error("adapter must use after initialization!")}},"76c4":function(e,t,n){"use strict";n.r(t);var o={name:"IframeSetter",mixins:[n("dc43").a]},r=n("2877"),i=Object(r.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.iframeProp.url")))]),n("el-input",{attrs:{maxLength:500,placeholder:e.$iss18n.t("issfd.components.iframeProp.urlTip")},model:{value:e.widgetConfig.options.href,callback:function(t){e.$set(e.widgetConfig.options,"href",t)},expression:"widgetConfig.options.href"}},[n("base-icon",{attrs:{slot:"prefix","icon-class":"links-line"},slot:"prefix"})],1),n("base-help-icon",{attrs:{content:e.$iss18n.t("issfd.components.iframeProp.urlHelp")}})],1),n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.iframeProp.width")))]),n("el-input-number",{attrs:{max:100,min:0,step:10,placeholder:e.$iss18n.t("issfd.components.iframeProp.widthTip")},model:{value:e.widgetConfig.options.width,callback:function(t){e.$set(e.widgetConfig.options,"width",t)},expression:"widgetConfig.options.width"}}),n("span",{staticClass:"config-number-unit"},[e._v("%")])],1),n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.iframeProp.height")))]),n("el-input-number",{attrs:{max:2e4,min:0,step:50,placeholder:e.$iss18n.t("issfd.components.iframeProp.heightTip")},model:{value:e.widgetConfig.options.height,callback:function(t){e.$set(e.widgetConfig.options,"height",t)},expression:"widgetConfig.options.height"}}),n("span",{staticClass:"config-number-unit"},[e._v("px")])],1)])}),[],!1,null,null,null);t.default=i.exports},7839:function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,n){"use strict";var o=n("cc12")("span").classList,r=o&&o.constructor&&o.constructor.prototype;e.exports=r===Object.prototype?void 0:r},"78e5":function(e,t,n){"use strict";n.r(t);var o={name:"RadioSetter",mixins:[n("dc43").a]},r=(n("a168"),n("2877")),i=Object(r.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"radio-setter"},[n("el-radio-group",{staticClass:"default-options",model:{value:e.widgetConfig.options[e.setterConfig.name],callback:function(t){e.$set(e.widgetConfig.options,e.setterConfig.name,t)},expression:"widgetConfig.options[setterConfig.name]"}},e._l(e.setterConfig.setter.props.options,(function(t){return n("el-radio-button",{key:t.value,attrs:{value:t.value,label:t.value}},[e.setterConfig.setter.showIcon?n("div",[n("base-icon",{attrs:{"icon-class":t.icon}})],1):n("span",[e._v(e._s(t.label))])])})),1),e.setterConfig.setter.helpWarn?n("base-help-icon",{staticClass:"tip",attrs:{content:e.$iss18n.t("issfd.components.radioProp.alert")}}):e._e()],1)}),[],!1,null,"1d5ae966",null);t.default=i.exports},7917:function(e,t,n){"use strict";var o=n("c532");function r(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}o.a.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:o.a.toJSONObject(this.config),code:this.code,status:this.status}}});const i=r.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{a[e]={value:e}}),Object.defineProperties(r,a),Object.defineProperty(i,"isAxiosError",{value:!0}),r.from=(e,t,n,a,s,l)=>{const c=Object.create(i);o.a.toFlatObject(e,c,(function(e){return e!==Error.prototype}),e=>"isAxiosError"!==e);const u=e&&e.message?e.message:"Error",d=null==t&&e?e.code:t;return r.call(c,u,d,n,a,s),e&&null==c.cause&&Object.defineProperty(c,"cause",{value:e,configurable:!0}),c.name=e&&e.name||"Error",l&&Object.assign(c,l),c},t.a=r},"796d":function(e,t,n){"use strict";var o=n("23e7"),r=n("c65b"),i=n("59ed"),a=n("825a"),s=n("46c4"),l=n("34e1"),c=n("c5cc"),u=n("2a62"),d=n("c430"),f=n("2baa"),p=n("f99f"),m=!d&&!f("flatMap",(function(){})),h=!d&&!m&&p("flatMap",TypeError),g=d||m||h,v=c((function(){for(var e,t,n=this.iterator,o=this.mapper;;){if(t=this.inner)try{if(!(e=a(r(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){u(n,"throw",e)}if(e=a(r(this.next,n)),this.done=!!e.done)return;try{this.inner=l(o(e.value,this.counter++),!1)}catch(e){u(n,"throw",e)}}}));o({target:"Iterator",proto:!0,real:!0,forced:g},{flatMap:function(e){a(this);try{i(e)}catch(e){u(this,"throw",e)}return h?r(h,this,e):new v(s(this),{mapper:e,inner:null})}})},"79a4":function(e,t,n){"use strict";var o=n("23e7"),r=n("d039"),i=n("953b");o({target:"Set",proto:!0,real:!0,forced:!n("dad2")("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||r((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:i})},"79f1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}},"7afc":function(e,t,n){"use strict";var o=n("c14f"),r=n("1da1"),i=(n("d9e2"),n("99af"),n("4de4"),n("c740"),n("e260"),n("d81d"),n("a434"),n("b0c0"),n("e9f5"),n("910d"),n("7d54"),n("ab43"),n("a9e3"),n("d3b7"),n("e6cf"),n("ac1f"),n("3ca3"),n("841c"),n("159b"),n("ddb0"),n("2b3d"),n("bf19"),n("9861"),n("88a7"),n("271a"),n("5494"),n("7694")),a=n("08a9"),s=n("bcc9"),l=n("7461"),c=n("c36e"),u={name:"UploadImageComponent",components:{BaseIcon:l.a,ImagePreviewer:a.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:"image/*"},isBatchDownload:{type:Boolean,default:!1},hideTips:{type:Boolean,default:!1}},model:{prop:"value",event:"change"},watch:{value:{handler:function(e){e&&0!==e.length||(this.displayValue=[],this.fileList=[])}}},data:function(){return{fileList:[],serverInfo:Object(i.x)(),dialogImageUrl:"",dialogVisible:!1}},created:function(){this.fileList=(this.value||[]).map((function(e){return e.status="success",e})),this.handleEmitChange()},methods:{batchDownload:function(){var e=this;return Object(r.a)(Object(o.a)().m((function t(){return Object(o.a)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(s.a)(e.value);case 1:return t.a(2)}}),t)})))()},handleRemove:function(e,t){this.fileList=t,this.$emit("onRemove",e),this.handleEmitChange()},beforeRemove:function(){return this.$confirm("确定要删除该图片?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},handlePreview:function(e){var t=this;return Object(r.a)(Object(o.a)().m((function n(){var r,a,s,l,c,u,d;return Object(o.a)().w((function(n){for(;;)switch(n.p=n.n){case 0:return r=e.fileName,n.p=1,e.fileName||(a=location.origin,s=new URL(e.url,a),l=new URLSearchParams(s.search),r=l.get("fileName")),c={fileName:r},n.n=2,Object(i.j)(c);case 2:200===(u=n.v).status?(d=new Blob([u.data]),t.dialogImageUrl=URL.createObjectURL(d),t.dialogVisible=!0):t.$message.warning("预览文件出错"),n.n=4;break;case 3:n.p=3,n.v;case 4:return n.a(2)}}),n,null,[[1,3]])})))()},handleClosePreview:function(){this.dialogImageUrl="",this.dialogVisible=!1},handleSuccess:function(e,t,n){var o,r=null===(o=Object(c.a)({data:e}))||void 0===o?void 0:o.data;if("0000"!==r.code){this.$message.error("文件上传失败!");var i=0;return n.forEach((function(e,n){e.name===t.name&&(i=n)})),void n.splice(i,1)}this.$emit("onSuccess");var a=n.findIndex((function(e){return e.uid===t.uid}));a>=0&&(n[a]={status:"success",name:t.name,url:"".concat(this.serverInfo.baseUrl).concat(r.data&&r.data.length&&r.data[0])},this.fileList=n,this.handleEmitChange())},handleExceed:function(e,t){this.$message.warning("本次选择了 ".concat(e.length," 个图片,共选择了 ").concat(e.length+t.length," 个图片,已超出当前限制 ").concat(this.limit," 个图片"))},handleDownload:function(e){},handleBeforeUpload:function(e){var t=this;return new Promise((function(n,o){e.size>1024*t.size*1024?setTimeout((function(){t.$message.error("".concat(e.name," 图片大小已大于 ").concat(t.size," MB ,上传失败!")),o(new Error("上传图片超出指定大小"))}),100):n()}))},handleEmitChange:function(){var e=this.fileList.filter((function(e){return"success"===e.status})).map((function(e){return{name:e.name,url:e.url}}));this.$emit("change",e)}}},d=(n("3a99"),n("2877")),f=Object(d.a)(u,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.printRead&&e.isBatchDownload?n("el-button",{staticClass:"download-btn",attrs:{size:"mini",type:"primary",disabled:!e.value.length},on:{click:e.batchDownload}},[e._v(" "+e._s(e.$iss18n.t("issfd.components.isBatchDownload"))+" ")]):e._e(),n("el-upload",{staticClass:"iss-upload-file",class:{"print-read":e.printRead,disabled:e.disabled,"upload-limited":e.fileList.length>=e.limit},attrs:{action:e.serverInfo.action,"before-upload":e.handleBeforeUpload,disabled:e.disabled||e.printRead,"file-list":e.fileList,headers:e.serverInfo.headers,limit:e.limit,multiple:e.multiple,"on-exceed":e.handleExceed,"on-preview":e.handlePreview,"on-remove":e.handleRemove,"before-remove":e.beforeRemove,"on-success":e.handleSuccess,accept:e.accept,"list-type":"picture-card"}},[n("div",{staticClass:"iss-image-upload-button"},[n("base-icon",{attrs:{"icon-class":"image-add-fill"}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.hideTips,expression:"!hideTips"}],staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.upload.imageTip1",{expr:e.multiple?e.limit:"1",size:e.size}))+" "),n("br"),e._v(" "+e._s(e.$iss18n.t("issfd.runtime.component.upload.imageTip2"))+" "),e.tip?[n("br"),e._v(" 3."+e._s(e.tip)+" ")]:e._e(),e.dialogVisible?n("image-previewer",{attrs:{"on-close":e.handleClosePreview,"url-list":[e.dialogImageUrl],"z-index":1e4,"append-to-body":"","mask-closable":""}}):e._e()],2)])],1)}),[],!1,null,null,null);t.a=f.exports},"7b0b":function(e,t,n){"use strict";var o=n("1d80"),r=Object;e.exports=function(e){return r(o(e))}},"7b30":function(e,t,n){"use strict";n("a9e3");var o={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}},r=(n("a7af"),n("2877")),i=Object(r.a)(o,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"text-component",style:{textAlign:e.align,color:e.fontColor,fontSize:e.fontSize,fontStyle:e.fontStyle,fontWeight:e.fontWeight,fontFamily:e.fontFamily,marginTop:e.marginTop+"px",marginBottom:e.marginBottom+"px"}},[e._t("default")],2)}),[],!1,null,"08c99474",null);t.a=i.exports},"7b4d":function(e,t,n){"use strict";n.r(t);var o={name:"BtnControlSetter",mixins:[n("dc43").a]},r=n("2877"),i=Object(r.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.buttonProp.control")))]),n("el-switch",{model:{value:e.widgetConfig.options.controls,callback:function(t){e.$set(e.widgetConfig.options,"controls",t)},expression:"widgetConfig.options.controls"}})],1),e.widgetConfig.options.controls?n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.buttonProp.position")))]),n("el-radio-group",{model:{value:e.widgetConfig.options.controlsPosition,callback:function(t){e.$set(e.widgetConfig.options,"controlsPosition",t)},expression:"widgetConfig.options.controlsPosition"}},[n("el-radio-button",{attrs:{label:""}},[e._v(e._s(e.$iss18n.t("issfd.components.buttonProp.both")))]),n("el-radio-button",{attrs:{label:"right"}},[e._v(e._s(e.$iss18n.t("issfd.components.buttonProp.right")))])],1)],1):e._e()])}),[],!1,null,null,null);t.default=i.exports},"7ba2":function(e,t,n){"use strict";n.r(t);var o=n("dc43"),r=n("53be"),i={name:"SelectSetter",mixins:[o.a],components:{DateTimeFormatNote:r.a}},a=n("2877"),s=Object(a.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.selectProp.format")))]),n("div",[n("el-select",{staticClass:"config-layout-content",attrs:{"allow-create":"","default-first-option":"",filterable:"",multiple:e.setterConfig.setter.multiple},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}},e._l(e.setterConfig.setter.props.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[e.setterConfig.setter.customShow?n("div",{style:{fontFamily:t.value}},[n("span",[e._v(e._s(t.label))]),n("span",{staticStyle:{float:"right","padding-left":"1rem"}},[e._v(e._s(t.value))])]):e._e()])})),1),e.setterConfig.setter.showTip?n("date-time-format-note"):e._e()],1)])])}),[],!1,null,null,null);t.default=s.exports},"7bcc":function(e,t){function n(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var o=/javascript\s*\:/gim;t.whiteList=n(),t.getDefaultWhiteList=n,t.onAttr=function(e,t,n){},t.onIgnoreAttr=function(e,t,n){},t.safeAttrValue=function(e,t){return o.test(t)?"":t}},"7c4f":function(e,t){!function(){"use strict";var e,t,n,o,r,i=function(e){var t=e;return{get:function(){return t},set:function(e){t=e}}},a=tinymce.util.Tools.resolve("tinymce.PluginManager"),s=(e="array",function(t){return o=typeof(n=t),(null===n?"null":"object"===o&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===o&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":o)===e;var n,o}),l=function(e){return!function(e){return null==e}(e)},c=function(e){return function(t){return typeof t===e}}("function"),u=function(){},d=function(e){return function(){return e}},f=function(e){return e},p=d(!1),m=d(!0),h=function(){return g},g={fold:function(e,t){return e()},isSome:p,isNone:m,getOr:n=f,getOrThunk:t=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:n,orThunk:t,map:h,each:u,bind:h,exists:p,forall:m,filter:function(){return h()},toArray:function(){return[]},toString:d("none()")},v=function(e){var t=d(e),n=function(){return r},o=function(t){return t(e)},r={fold:function(t,n){return n(e)},isSome:m,isNone:p,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return v(t(e))},each:function(t){t(e)},bind:o,exists:o,forall:o,filter:function(t){return t(e)?r:g},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return r},b={some:v,none:h,from:function(e){return null==e?g:v(e)}},y=Array.prototype.slice,_=Array.prototype.push,w=function(e,t){for(var n=0,o=e.length;n<o;n++)if(t(e[n],n))return!0;return!1},C=function(e,t){for(var n=e.length,o=new Array(n),r=0;r<n;r++){var i=e[r];o[r]=t(i,r)}return o},x=function(e,t){for(var n=0,o=e.length;n<o;n++)t(e[n],n)},O=function(e,t){return function(e){for(var t=[],n=0,o=e.length;n<o;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);_.apply(t,e[n])}return t}(C(e,t))},T=c(Array.from)?Array.from:function(e){return y.call(e)},E=function(){return(E=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},S=function(){var e=function(e){var t=i(b.none()),n=function(){return t.get().each(e)};return{clear:function(){n(),t.set(b.none())},isSet:function(){return t.get().isSome()},get:function(){return t.get()},set:function(e){n(),t.set(b.some(e))}}}(u);return E(E({},e),{on:function(t){return e.get().each(t)}})},D=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},k=tinymce.util.Tools.resolve("tinymce.Env"),A=tinymce.util.Tools.resolve("tinymce.util.Delay"),M=tinymce.util.Tools.resolve("tinymce.util.Promise"),I=tinymce.util.Tools.resolve("tinymce.util.VK"),P=function(e,t){return e.fire("PastePlainTextToggle",{state:t})},R=tinymce.util.Tools.resolve("tinymce.util.Tools"),L=function(e){return e.getParam("paste_data_images",!1)},N=function(e){return e.getParam("paste_merge_formats",!0)},F=function(e){return e.getParam("paste_retain_style_properties")},j=function(e){return e.getParam("validate")},B=function(e){return e.getParam("allow_html_data_urls",!1,"boolean")},$=function(e){return e.getParam("paste_data_images",!1,"boolean")},z=function(e){return R.explode(e.getParam("images_file_types","jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp","string"))},U=function(e){return-1!==e.indexOf("\x3c!-- x-tinymce/html --\x3e")},V=d("x-tinymce/html"),H=Object.hasOwnProperty,W=function(e,t){return H.call(e,t)},Y=tinymce.util.Tools.resolve("tinymce.html.Entities"),q=function(e,t,n){var o=e.split(/\n\n/),r=function(e,t){var n=[],o="<"+e;if("object"==typeof t){for(var r in t)W(t,r)&&n.push(r+'="'+Y.encodeAllRaw(t[r])+'"');n.length&&(o+=" "+n.join(" "))}return o+">"}(t,n),i="</"+t+">",a=R.map(o,(function(e){return e.split(/\n/).join("<br />")}));return 1===a.length?a[0]:R.map(a,(function(e){return r+e+i})).join("")},G=tinymce.util.Tools.resolve("tinymce.html.DomParser"),K=tinymce.util.Tools.resolve("tinymce.html.Serializer"),X=tinymce.util.Tools.resolve("tinymce.html.Node"),J=tinymce.util.Tools.resolve("tinymce.html.Schema"),Q=function(e,t){return R.each(t,(function(t){e=t.constructor===RegExp?e.replace(t,""):e.replace(t[0],t[1])})),e},Z=function(e){return Q(e,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,function(e,t,n){return t||n?" ":" "}],/<br class="Apple-interchange-newline">/g,/<br>$/i])},ee=function(e){return/<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument/i.test(e)||/class="OutlineElement/.test(e)||/id="?docs\-internal\-guid\-/.test(e)},te=function(e){var t=!1;return e=e.replace(/^[\u00a0 ]+/,""),R.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(e))return t=!0,!1})),t},ne=function(e,t,n,o){var r={},i=e.dom.parseStyle(o);R.each(i,(function(i,a){switch(a){case"mso-list":var s=/\w+ \w+([0-9]+)/i.exec(o);s&&(n._listLevel=parseInt(s[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&&(r[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"===F(e)||t&&t[a])&&(r[a]=i):n.remove()})),/(bold)/i.test(r["font-weight"])&&(delete r["font-weight"],n.wrap(new X("b",1))),/(italic)/i.test(r["font-style"])&&(delete r["font-style"],n.wrap(new X("i",1)));var a=e.dom.serializeStyle(r,n.name);return a||null},oe=function(e,t){var n,o=F(e);o&&(n=R.makeMap(o.split(/[, ]/))),t=Q(t,[/<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>"],[/&nbsp;/gi," "],[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(e,t){return t.length>0?t.replace(/./," ").slice(Math.floor(t.length/2)).split("").join(" "):""}]]);var r=function(e){return e.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")}(e),i=J({valid_elements:r,valid_children:"-li[p]"});R.each(i.elements,(function(e){e.attributes.class||(e.attributes.class={},e.attributesOrder.push("class")),e.attributes.style||(e.attributes.style={},e.attributesOrder.push("style"))}));var a=G({},i);a.addAttributeFilter("style",(function(t){for(var o,r=t.length;r--;)(o=t[r]).attr("style",ne(e,n,o,o.attr("style"))),"span"===o.name&&o.parent&&!o.attributes.length&&o.unwrap()})),a.addAttributeFilter("class",(function(e){for(var t,n,o=e.length;o--;)n=(t=e[o]).attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&t.remove(),t.attr("class",null)})),a.addNodeFilter("del",(function(e){for(var t=e.length;t--;)e[t].remove()})),a.addNodeFilter("a",(function(e){for(var t,n,o,r=e.length;r--;)if(n=(t=e[r]).attr("href"),o=t.attr("name"),n&&-1!==n.indexOf("#_msocom_"))t.remove();else if(n&&0===n.indexOf("file://")&&(n=n.split("#")[1])&&(n="#"+n),n||o){if(o&&!/^_?(?:toc|edn|ftn)/i.test(o)){t.unwrap();continue}t.attr({href:n,name:o})}else t.unwrap()}));var s=a.parse(t);return function(e){return e.getParam("paste_convert_word_fake_lists",!0)}(e)&&function(e){for(var t,n,o=1,r=function(e){var t="";if(3===e.type)return e.value;if(e=e.firstChild)do{t+=r(e)}while(e=e.next);return t},i=function(e,t){if(3===e.type&&t.test(e.value))return e.value=e.value.replace(t,""),!1;if(e=e.firstChild)do{if(!i(e,t))return!1}while(e=e.next);return!0},a=function(e){if(e._listIgnore)e.remove();else if(e=e.firstChild)do{a(e)}while(e=e.next)},s=function(e,r,s){var l=e._listLevel||o;l!==o&&(l<o?t&&(t=t.parent.parent):(n=t,t=null)),t&&t.name===r?t.append(e):(n=n||t,t=new X(r,1),s>1&&t.attr("start",""+s),e.wrap(t)),e.name="li",l>o&&n&&n.lastChild.append(t),o=l,a(e),i(e,/^\u00a0+/),i(e,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),i(e,/^\u00a0+/)},l=[],c=e.firstChild;null!=c;)if(l.push(c),null!==(c=c.walk()))for(;void 0!==c&&c.parent!==e;)c=c.walk();for(var u=0;u<l.length;u++)if("p"===(e=l[u]).name&&e.firstChild){var d=r(e);if(/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(d)){s(e,"ul");continue}if(te(d)){var f=/([0-9]+)\./.exec(d),p=1;f&&(p=parseInt(f[1],10)),s(e,"ol",p);continue}if(e._listLevel){s(e,"ul",1);continue}t=null}else n=t,t=null}(s),K({validate:j(e)},i).serialize(s)},re=function(e,t){return{content:e,cancelled:t}},ie=function(e,t,n,o){var r=function(e,t,n,o){return e.fire("PastePreProcess",{content:t,internal:n,wordContent:o})}(e,t,n,o),i=function(e,t){var n=G({},e.schema);n.addNodeFilter("meta",(function(e){R.each(e,(function(e){e.remove()}))}));var o=n.parse(t,{forced_root_block:!1,isRootContent:!0});return K({validate:j(e)},e.schema).serialize(o)}(e,r.content);return e.hasEventListeners("PastePostProcess")&&!r.isDefaultPrevented()?function(e,t,n,o){var r=e.dom.create("div",{style:"display:none"},t),i=function(e,t,n,o){return e.fire("PastePostProcess",{node:t,internal:n,wordContent:o})}(e,r,n,o);return re(i.node.innerHTML,i.isDefaultPrevented())}(e,i,n,o):re(i,r.isDefaultPrevented())},ae=function(e,t,n){var o=ee(t),r=o?function(e,t){return function(e){return e.getParam("paste_enable_default_filters",!0)}(e)?oe(e,t):t}(e,t):t;return ie(e,r,n,o)},se=function(e,t){return e.insertContent(t,{merge:N(e),paste:!0}),!0},le=function(e){return/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(e)},ce=function(e,t){return le(t)&&w(z(e),(function(e){return n=t.toLowerCase(),o="."+e.toLowerCase(),D(n,o,n.length-o.length);var n,o}))},ue=function(e,t,n){return!(!1!==e.selection.isCollapsed()||!le(t))&&function(e,t,n){return e.undoManager.extra((function(){n(e,t)}),(function(){e.execCommand("mceInsertLink",!1,t)})),!0}(e,t,n)},de=function(e,t,n){return!!ce(e,t)&&function(e,t,n){return e.undoManager.extra((function(){n(e,t)}),(function(){e.insertContent('<img src="'+t+'">')})),!0}(e,t,n)},fe=function(e,t,n){n||!1===function(e){return e.getParam("smart_paste",!0)}(e)?se(e,t):function(e,t){R.each([ue,de,se],(function(n){return!0!==n(e,t,se)}))}(e,t)},pe=function(e){return"\n"===e||"\r"===e},me=function(e,t){var n,o,r=(n=" ",(o=function(e){return e.getParam("paste_tab_spaces",4,"number")}(e))<=0?"":new Array(o+1).join(n)),i=t.replace(/\t/g,r);return function(e,t,n){return x(e,(function(e,o){n=t(n,e,o)})),n}(i,(function(e,t){return function(e){return-1!==" \f\t\v".indexOf(e)}(t)||" "===t?e.pcIsSpace||""===e.str||e.str.length===i.length-1||function(e,t){return t<e.length&&t>=0&&pe(e[t])}(i,e.str.length+1)?{pcIsSpace:!1,str:e.str+" "}:{pcIsSpace:!0,str:e.str+" "}:{pcIsSpace:pe(t),str:e.str+t}}),{pcIsSpace:!1,str:""}).str},he=function(e,t,n,o){var r=ae(e,t,n);!1===r.cancelled&&fe(e,r.content,o)},ge=function(e,t,n){var o=n||U(t);he(e,function(e){return e.replace("\x3c!-- x-tinymce/html --\x3e","")}(t),o,!1)},ve=function(e,t){var n=e.dom.encode(t).replace(/\r\n/g,"\n"),o=function(e,t,n){return t?q(e,!0===t?"p":t,n):function(e){return e.replace(/\r?\n/g,"<br>")}(e)}(me(e,n),function(e){return e.getParam("forced_root_block")}(e),function(e){return e.getParam("forced_root_block_attrs")}(e));he(e,o,!1,!0)},be=function(e){var t={};if(e){if(e.getData){var n=e.getData("Text");n&&n.length>0&&-1===n.indexOf("data:text/mce-internal,")&&(t["text/plain"]=n)}if(e.types)for(var o=0;o<e.types.length;o++){var r=e.types[o];try{t[r]=e.getData(r)}catch(e){t[r]=""}}}return t},ye=function(e,t){return t in e&&e[t].length>0},_e=function(e){return ye(e,"text/html")||ye(e,"text/plain")},we=(o="mceclip",r=0,function(){return o+r++}),Ce=function(e,t){var n,o,r=(n=t.uri,(o=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(n))?{type:o[1],data:decodeURIComponent(o[2])}:{type:null,data:null}),i=r.data,a=r.type,s=we(),c=t.blob,u=new Image;if(u.src=t.uri,function(e,t){var n=function(e){return e.getParam("images_dataimg_filter")}(e);return!n||n(t)}(e,u)){var d=e.editorUpload.blobCache,f=void 0,p=d.getByData(i,a);if(p)f=p;else{var m=function(e){return e.getParam("images_reuse_filename")}(e)&&l(c.name),h=m?function(e,t){var n=t.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return l(n)?e.dom.encode(n[1]):null}(e,c.name):s,g=m?c.name:void 0;f=d.create(s,c,i,h,g),d.add(f)}ge(e,'<img src="'+f.blobUri()+'">',!1)}else ge(e,'<img src="'+t.uri+'">',!1)},xe=function(e){return M.all(C(e,(function(e){return new M((function(t){var n=function(e){return l(e.getAsFile)}(e)?e.getAsFile():e,o=new window.FileReader;o.onload=function(){t({blob:n,uri:o.result})},o.readAsDataURL(n)}))})))},Oe=function(e){var t=z(e);return function(e){return function(e,t){return D(e,t,0)}(e.type,"image/")&&w(t,(function(t){return n=t.toLowerCase(),o={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"},(R.hasOwn(o,n)?"image/"+o[n]:"image/"+n)===e.type;var n,o}))}},Te=function(e,t,n){var o="paste"===t.type?t.clipboardData:t.dataTransfer;if($(e)&&o){var r=function(e,t){var n=t.items?O(T(t.items),(function(e){return"file"===e.kind?[e.getAsFile()]:[]})):[],o=t.files?T(t.files):[];return function(e,t){for(var n=[],o=0,r=e.length;o<r;o++){var i=e[o];t(i,o)&&n.push(i)}return n}(n.length>0?n:o,Oe(e))}(e,o);if(r.length>0)return t.preventDefault(),xe(r).then((function(t){n&&e.selection.setRng(n),x(t,(function(t){Ce(e,t)}))})),!0}return!1},Ee=function(e){return I.metaKeyPressed(e)&&86===e.keyCode||e.shiftKey&&45===e.keyCode},Se=function(e,t,n){var o,r=S(),i=S();e.on("keyup",i.clear),e.on("keydown",(function(n){var a=function(e){Ee(e)&&!e.isDefaultPrevented()&&t.remove()};if(Ee(n)&&!n.isDefaultPrevented()){if((o=n.shiftKey&&86===n.keyCode)&&k.webkit&&-1!==navigator.userAgent.indexOf("Version/"))return;if(n.stopImmediatePropagation(),r.set(n),i.set(!0),k.ie&&o)return n.preventDefault(),void function(e,t){e.fire("paste",{ieFake:t})}(e,!0);t.remove(),t.create(),e.once("keyup",a),e.once("paste",(function(){e.off("keyup",a)}))}}));var a=function(e,n,o,r,i){var a;ye(n,"text/html")?a=n["text/html"]:(a=t.getHtml(),i=i||U(a),t.isDefaultContent(a)&&(r=!0)),a=Z(a),t.remove();var s=!1===i&&!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(a),l=le(a);(!a.length||s&&!l)&&(r=!0),(r||l)&&(a=ye(n,"text/plain")&&s?n["text/plain"]:function(e){var t=J(),n=G({},t),o="",r=t.getShortEndedElements(),i=R.makeMap("script noscript style textarea video audio iframe object"," "),a=t.getBlockElements(),s=function(e){var t=e.name,n=e;if("br"!==t){if("wbr"!==t)if(r[t]&&(o+=" "),i[t])o+=" ";else{if(3===e.type&&(o+=e.value),!e.shortEnded&&(e=e.firstChild))do{s(e)}while(e=e.next);a[t]&&n.next&&(o+="\n","p"===t&&(o+="\n"))}}else o+="\n"};return e=Q(e,[/<!\[[^\]]+\]>/g]),s(n.parse(e)),o}(a)),t.isDefaultContent(a)?o||e.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents."):r?ve(e,a):ge(e,a,i)};e.on("paste",(function(s){var l=r.isSet()||i.isSet();l&&r.clear();var c=function(e,t){return be(t.clipboardData||e.getDoc().dataTransfer)}(e,s),u="text"===n.get()||o,d=ye(c,V());o=!1,s.isDefaultPrevented()||function(e){var t=e.clipboardData;return-1!==navigator.userAgent.indexOf("Android")&&t&&t.items&&0===t.items.length}(s)?t.remove():_e(c)||!Te(e,s,t.getLastRng()||e.selection.getRng())?(l||s.preventDefault(),!k.ie||l&&!s.ieFake||ye(c,"text/html")||(t.create(),e.dom.bind(t.getEl(),"paste",(function(e){e.stopPropagation()})),e.getDoc().execCommand("Paste",!1,null),c["text/html"]=t.getHtml()),ye(c,"text/html")?(s.preventDefault(),d||(d=U(c["text/html"])),a(e,c,l,u,d)):A.setEditorTimeout(e,(function(){a(e,c,l,u,d)}),0)):t.remove()}))},De=function(e){return k.ie&&e.inline?document.body:e.getBody()},ke=function(e,t,n){(function(e){return De(e)!==e.getBody()})(e)&&e.dom.bind(t,"paste keyup",(function(t){Ie(e,n)||e.fire("paste")}))},Ae=function(e){return e.dom.get("mcepastebin")},Me=function(e,t){return t===e},Ie=function(e,t){var n,o=Ae(e);return(n=o)&&"mcepastebin"===n.id&&Me(t,o.innerHTML)},Pe=function(e){var t=i(null);return{create:function(){return function(e,t,n){var o=e.dom,r=e.getBody();t.set(e.selection.getRng());var i=e.dom.add(De(e),"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);(k.ie||k.gecko)&&o.setStyle(i,"left","rtl"===o.getStyle(r,"direction",!0)?65535:-65535),o.bind(i,"beforedeactivate focusin focusout",(function(e){e.stopPropagation()})),ke(e,i,n),i.focus(),e.selection.select(i,!0)}(e,t,"%MCEPASTEBIN%")},remove:function(){return function(e,t){if(Ae(e)){for(var n=void 0,o=t.get();n=e.dom.get("mcepastebin");)e.dom.remove(n),e.dom.unbind(n);o&&e.selection.setRng(o)}t.set(null)}(e,t)},getEl:function(){return Ae(e)},getHtml:function(){return function(e){var t=function(t,n){t.appendChild(n),e.dom.remove(n,!0)},n=R.grep(De(e).childNodes,(function(e){return"mcepastebin"===e.id})),o=n.shift();R.each(n,(function(e){t(o,e)}));for(var r=e.dom.select("div[id=mcepastebin]",o),i=r.length-1;i>=0;i--){var a=e.dom.create("div");o.insertBefore(a,r[i]),t(a,r[i])}return o?o.innerHTML:""}(e)},getLastRng:t.get,isDefault:function(){return Ie(e,"%MCEPASTEBIN%")},isDefaultContent:function(e){return Me("%MCEPASTEBIN%",e)}}},Re=function(e,t){var n=Pe(e);return e.on("PreInit",(function(){return function(e,t,n){var o;Se(e,t,n),e.parser.addNodeFilter("img",(function(t,n,r){var i=function(e){e.attr("data-mce-object")||o===k.transparentSrc||e.remove()},a=function(e){return 0===e.indexOf("webkit-fake-url")},s=function(e){return 0===e.indexOf("data:")};if(!$(e)&&function(e){return e.data&&!0===e.data.paste}(r))for(var l=t.length;l--;)(o=t[l].attr("src"))&&(a(o)||!B(e)&&s(o))&&i(t[l])}))}(e,n,t)})),{pasteFormat:t,pasteHtml:function(t,n){return ge(e,t,n)},pasteText:function(t){return ve(e,t)},pasteImageData:function(t,n){return Te(e,t,n)},getDataTransferItems:be,hasHtmlOrText:_e,hasContentType:ye}},Le=function(e,t){e.addCommand("mceTogglePlainTextPaste",(function(){!function(e,t){"text"===t.pasteFormat.get()?(t.pasteFormat.set("html"),P(e,!1)):(t.pasteFormat.set("text"),P(e,!0)),e.focus()}(e,t)})),e.addCommand("mceInsertClipboardContent",(function(e,n){n.content&&t.pasteHtml(n.content,n.internal),n.text&&t.pasteText(n.text)}))},Ne=function(e,t,n){if(!function(e){return!1===k.iOS&&"function"==typeof(null==e?void 0:e.setData)}(e))return!1;try{return e.clearData(),e.setData("text/html",t),e.setData("text/plain",n),e.setData(V(),t),!0}catch(e){return!1}},Fe=function(e,t,n,o){Ne(e.clipboardData,t.html,t.text)?(e.preventDefault(),o()):n(t.html,o)},je=function(e){return function(t,n){var o=function(e){return"\x3c!-- x-tinymce/html --\x3e"+e}(t),r=e.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),i=e.dom.create("div",{contenteditable:"true"},o);e.dom.setStyles(r,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),r.appendChild(i),e.dom.add(e.getBody(),r);var a=e.selection.getRng();i.focus();var s=e.dom.createRng();s.selectNodeContents(i),e.selection.setRng(s),A.setTimeout((function(){e.selection.setRng(a),r.parentNode.removeChild(r),n()}),0)}},Be=function(e){return{html:e.selection.getContent({contextual:!0}),text:e.selection.getContent({format:"text"})}},$e=function(e){return!e.selection.isCollapsed()||function(e){return!!e.dom.getParent(e.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",e.getBody())}(e)},ze=function(e){e.on("cut",function(e){return function(t){$e(e)&&Fe(t,Be(e),je(e),(function(){if(k.browser.isChrome()||k.browser.isFirefox()){var t=e.selection.getRng();A.setEditorTimeout(e,(function(){e.selection.setRng(t),e.execCommand("Delete")}),0)}else e.execCommand("Delete")}))}}(e)),e.on("copy",function(e){return function(t){$e(e)&&Fe(t,Be(e),je(e),u)}}(e))},Ue=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Ve=function(e,t){return Ue.getCaretRangeFromPoint(t.clientX,t.clientY,e.getDoc())},He=function(e,t){e.focus(),e.selection.setRng(t)},We=function(e,t){e.on("PastePreProcess",(function(n){n.content=t(e,n.content,n.internal,n.wordContent)}))},Ye=function(e,t){if(!ee(t))return t;var n=[];R.each(e.schema.getBlockElements(),(function(e,t){n.push(t)}));var o=new RegExp("(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*(<\\/?("+n.join("|")+")[^>]*>)(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*","g");return t=Q(t,[[o,"$1"]]),Q(t,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]])},qe=function(e,t,n,o){if(o||n)return t;var r,i=function(e){return e.getParam("paste_webkit_styles")}(e);if(!1===function(e){return e.getParam("paste_remove_styles_if_webkit",!0)}(e)||"all"===i)return t;if(i&&(r=i.split(/[, ]/)),r){var a=e.dom,s=e.selection.getNode();t=t.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(function(e,t,n,o){var i=a.parseStyle(a.decode(n)),l={};if("none"===r)return t+o;for(var c=0;c<r.length;c++){var u=i[r[c]],d=a.getStyle(s,r[c],!0);/color/.test(r[c])&&(u=a.toHex(u),d=a.toHex(d)),d!==u&&(l[r[c]]=u)}var f=a.serializeStyle(l,"span");return f?t+' style="'+f+'"'+o:t+o}))}else t=t.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return t.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(function(e,t,n,o){return t+' style="'+n+'"'+o}))},Ge=function(e,t){e.$("a",t).find("font,u").each((function(t,n){e.dom.remove(n,!0)}))},Ke=function(e,t){return function(n){n.setActive("text"===t.pasteFormat.get());var o=function(e){return n.setActive(e.state)};return e.on("PastePlainTextToggle",o),function(){return e.off("PastePlainTextToggle",o)}}};a.add("paste",(function(e){if(!1===function(e){return!!e.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)}(e)){var t=i(!1),n=i(function(e){return e.getParam("paste_as_text",!1)}(e)?"text":"html"),o=Re(e,n);return function(e){k.webkit&&We(e,qe),k.ie&&(We(e,Ye),function(e,t){e.on("PastePostProcess",(function(n){t(e,n.node)}))}(e,Ge))}(e),function(e,t){var n=function(){return e.execCommand("mceTogglePlainTextPaste")};e.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:n,onSetup:Ke(e,t)}),e.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:n,onSetup:Ke(e,t)})}(e,o),Le(e,o),function(e){var t=e.plugins.paste,n=function(e){return e.getParam("paste_preprocess")}(e);n&&e.on("PastePreProcess",(function(e){n.call(t,t,e)}));var o=function(e){return e.getParam("paste_postprocess")}(e);o&&e.on("PastePostProcess",(function(e){o.call(t,t,e)}))}(e),ze(e),function(e,t,n){(function(e){return e.getParam("paste_block_drop",!1)})(e)&&e.on("dragend dragover draggesture dragdrop drop drag",(function(e){e.preventDefault(),e.stopPropagation()})),L(e)||e.on("drop",(function(e){var t=e.dataTransfer;t&&t.files&&t.files.length>0&&e.preventDefault()})),e.on("drop",(function(o){var r=Ve(e,o);if(!o.isDefaultPrevented()&&!n.get()){var i,a=t.getDataTransferItems(o.dataTransfer),s=t.hasContentType(a,V());if((t.hasHtmlOrText(a)&&(!(i=a["text/plain"])||0!==i.indexOf("file://"))||!t.pasteImageData(o,r))&&r&&function(e){return e.getParam("paste_filter_drop",!0)}(e)){var l=a["mce-internal"]||a["text/html"]||a["text/plain"];l&&(o.preventDefault(),A.setEditorTimeout(e,(function(){e.undoManager.transact((function(){a["mce-internal"]&&e.execCommand("Delete"),He(e,r),l=Z(l),a["text/html"]?t.pasteHtml(l,s):t.pasteText(l)}))})))}}})),e.on("dragstart",(function(e){n.set(!0)})),e.on("dragover dragend",(function(t){L(e)&&!1===n.get()&&(t.preventDefault(),He(e,Ve(e,t))),"dragend"===t.type&&n.set(!1)}))}(e,o,t),function(e){return{clipboard:e}}(o)}}))}()},"7c73":function(e,t,n){"use strict";var o,r=n("825a"),i=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),d=u("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},m=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&o?m(o):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):m(o);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=r(e),n=new f,f.prototype=null,n[d]=e):n=h(),void 0===t?n:i.f(n,t)}},"7cb9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pharmacode=void 0;var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n("e762"),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.number=parseInt(e,10),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"encode",value:function(){for(var e=this.number,t="";!isNaN(e)&&0!=e;)e%2==0?(t="11100"+t,e=(e-2)/2):(t="100"+t,e=(e-1)/2);return{data:t=t.slice(0,-2),text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),t}(((o=i)&&o.__esModule?o:{default:o}).default);t.pharmacode=a},"7d54":function(e,t,n){"use strict";var o=n("23e7"),r=n("c65b"),i=n("2266"),a=n("59ed"),s=n("825a"),l=n("46c4"),c=n("2a62"),u=n("f99f")("forEach",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(u)return r(u,this,e);var t=l(this),n=0;i(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},"7db0":function(e,t,n){"use strict";var o=n("23e7"),r=n("b727").find,i=n("44d2"),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),o({target:"Array",proto:!0,forced:a},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},"7dda":function(e,t,n){},"7f65":function(e,t,n){"use strict";var o=n("59ed"),r=n("825a"),i=n("c65b"),a=n("5926"),s=n("46c4"),l=RangeError,c=TypeError,u=Math.max,d=function(e,t){this.set=e,this.size=u(t,0),this.has=o(e.has),this.keys=o(e.keys)};d.prototype={getIterator:function(){return s(r(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){r(e);var t=+e.size;if(t!=t)throw new c("Invalid size");var n=a(t);if(n<0)throw new l("Invalid size");return new d(e,n)}},"805f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n("124f"),i=(o=r)&&o.__esModule?o:{default:o},a=n("6e53"),s=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e+=(0,a.mod11)(e),e+=(0,a.mod10)(e),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default);t.default=s},8116:function(e,t,n){"use strict";n("7dda")},"812f":function(e,t,n){"use strict";n.r(t);var o={name:"FileUploadSetter",mixins:[n("dc43").a]},r=(n("9460"),n("2877")),i=Object(r.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"widget-form-item-group fileUploadSetter"},[e.widgetConfig.options.multiple?n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(" "+e._s(e.$iss18n.t("issfd.components.uploadProp.limit"))+" ")]),n("div",{staticClass:"number-group"},[n("el-input-number",{staticClass:"right",attrs:{step:1},model:{value:e.widgetConfig.options.limit,callback:function(t){e.$set(e.widgetConfig.options,"limit",t)},expression:"widgetConfig.options.limit"}}),n("span",{staticClass:"config-number-unit"},[e._v(e._s(e.$iss18n.t("issfd.components.uploadProp.unit")))])],1)]):e._e(),n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.uploadProp.sizeLimit")))]),n("div",{staticClass:"number-group"},[n("el-input-number",{staticClass:"right",attrs:{step:1},model:{value:e.widgetConfig.options.size,callback:function(t){e.$set(e.widgetConfig.options,"size",t)},expression:"widgetConfig.options.size"}}),n("span",{staticClass:"config-number-unit"},[e._v(e._s(e.$iss18n.t("issfd.components.uploadProp.sizeLimitUnit")))])],1)]),n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(" "+e._s(e.$iss18n.t("issfd.components.uploadProp.accept"))+" "),n("span",[n("base-help-icon",{attrs:{width:100,content:"imageUpload"===e.widgetConfig.type?e.$iss18n.t("issfd.components.uploadProp.typeImage"):e.$iss18n.t("issfd.components.uploadProp.typeFile")}})],1)]),n("el-input",{attrs:{placeholder:e.$iss18n.t("issfd.components.uploadProp.acceptPlaceholder"),clearable:""},model:{value:e.widgetConfig.options.accept,callback:function(t){e.$set(e.widgetConfig.options,"accept",t)},expression:"widgetConfig.options.accept"}})],1),n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.uploadProp.hideTips")))]),n("el-checkbox",{staticClass:"right",model:{value:e.widgetConfig.options.hideTips,callback:function(t){e.$set(e.widgetConfig.options,"hideTips",t)},expression:"widgetConfig.options.hideTips"}})],1),e.widgetConfig.options.hideTips?e._e():n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.uploadProp.uploadTips")))]),n("el-input",{staticClass:"right",attrs:{maxLength:50,placeholder:e.$iss18n.t("issfd.components.uploadProp.uploadTipsPlaceholder")},model:{value:e.widgetConfig.options.tip,callback:function(t){e.$set(e.widgetConfig.options,"tip",t)},expression:"widgetConfig.options.tip"}})],1),n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.uploadProp.multi")))]),n("el-checkbox",{staticClass:"right",model:{value:e.widgetConfig.options.multiple,callback:function(t){e.$set(e.widgetConfig.options,"multiple",t)},expression:"widgetConfig.options.multiple"}})],1)])}),[],!1,null,null,null);t.default=i.exports},8172:function(e,t,n){"use strict";var o=n("e065"),r=n("57b9");o("toPrimitive"),r()},"825a":function(e,t,n){"use strict";var o=n("861d"),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not an object")}},"827b":function(e,t,n){"use strict";n("e9f5"),n("7d54"),n("d3b7"),n("159b");var o=n("1b01"),r=n("60bb"),i=n.n(r),a={name:"AddressSelector",props:{value:{default:function(){}},size:{type:String,default:"small"}},watch:{value:{handler:function(){this.selected=this.value?i.a.cloneDeep(this.value):{postAddress:[]}},deep:!0,immediate:!0}},mounted:function(){this.selected=this.value?i.a.cloneDeep(this.value):{postAddress:[]}},data:function(){return{selected:{postAddress:[]},options:o.c}},methods:{handleAddressChange:function(e){var t=this;e&&e.length?(this.$set(this.selected,"province",null),this.$set(this.selected,"city",null),this.$set(this.selected,"district",null),e.forEach((function(e,n){var r=o.a[e];switch(n){case 0:t.$set(t.selected,"province",r);break;case 1:t.$set(t.selected,"city",r);break;case 2:t.$set(t.selected,"district",r)}})),this.$emit("change",this.selected)):this.$emit("change",null)}}},s=(n("b801"),n("2877")),l=Object(s.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"address-selector-container"},[n("el-cascader",{attrs:{options:e.options,size:e.size,clearable:"",filterable:"",placeholder:e.$iss18n.t("issfd.runtime.component.addressPlaceholder")},on:{change:e.handleAddressChange},model:{value:e.selected.postAddress,callback:function(t){e.$set(e.selected,"postAddress",t)},expression:"selected.postAddress"}})],1)}),[],!1,null,"0d8a3963",null);t.a=l.exports},8397:function(e,t,n){},"83ab":function(e,t,n){"use strict";var o=n("d039");e.exports=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var o=n("cb27"),r=n("384f"),i=o.Set,a=o.add;e.exports=function(e){var t=new i;return r(e,(function(e){a(t,e)})),t}},8418:function(e,t,n){"use strict";var o=n("83ab"),r=n("9bf2"),i=n("5c6c");e.exports=function(e,t,n){o?r.f(e,t,i(0,n)):e[t]=n}},"841c":function(e,t,n){"use strict";var o=n("c65b"),r=n("d784"),i=n("825a"),a=n("861d"),s=n("1d80"),l=n("129f"),c=n("577e"),u=n("dc4a"),d=n("14c3");r("search",(function(e,t,n){return[function(t){var n=s(this),r=a(t)?u(t,e):void 0;return r?o(r,t,n):new RegExp(t)[e](c(n))},function(e){var o=i(this),r=c(e),a=n(t,o,r);if(a.done)return a.value;var s=o.lastIndex;l(s,0)||(o.lastIndex=0);var u=d(o,r);return l(o.lastIndex,s)||(o.lastIndex=s),null===u?-1:u.index}]}))},"845c":function(e,t,n){},"848d":function(e,t,n){"use strict";n.r(t),n("a9e3");var o={name:"NumberSetter",mixins:[n("dc43").a],props:{max:{type:Number,default:999999},min:{type:Number,default:0},precision:{type:Number,default:0},step:{type:Number,default:1},disabled:{type:Boolean,default:!1},unit:{type:String,default:""}}},r=(n("3143"),n("2877")),i=Object(r.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"number-setter"},[n("el-input-number",{attrs:{max:e.max,min:e.min,precision:e.precision,step:e.step,controls:e.setterConfig.setter.controls,disabled:e.disabled},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}}),n("span",{staticClass:"config-number-unit"},[e._v(e._s(e.unit||e.widgetConfig.options[e.setterConfig.setter.unit]))]),e.setterConfig.setter.tip?n("div",{staticClass:"config-number-unit"},[e._v(e._s(e.$iss18n.t("issfd.components.numberProp.precision")))]):e._e()],1)}),[],!1,null,null,null);t.default=i.exports},"84ec":function(e,t,n){n("2401")},"854c":function(e,t,n){"use strict";n.r(t);var o={name:"PrecisionSetter",mixins:[n("dc43").a]},r=(n("5d4f"),n("2877")),i=Object(r.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.precisionProp.min")))]),n("el-input-number",{attrs:{controls:!1,max:e.widgetConfig.options.max},model:{value:e.widgetConfig.options.min,callback:function(t){e.$set(e.widgetConfig.options,"min",t)},expression:"widgetConfig.options.min"}})],1),n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.precisionProp.max")))]),n("el-input-number",{attrs:{controls:!1,min:e.widgetConfig.options.min},model:{value:e.widgetConfig.options.max,callback:function(t){e.$set(e.widgetConfig.options,"max",t)},expression:"widgetConfig.options.max"}})],1),n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.precisionProp.step")))]),n("el-input-number",{attrs:{controls:!1,max:e.widgetConfig.options.max-e.widgetConfig.options.min,min:0},model:{value:e.widgetConfig.options.step,callback:function(t){e.$set(e.widgetConfig.options,"step",t)},expression:"widgetConfig.options.step"}})],1),n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.precisionProp.thousandth")))]),n("el-switch",{model:{value:e.widgetConfig.options.thousandth,callback:function(t){e.$set(e.widgetConfig.options,"thousandth",t)},expression:"widgetConfig.options.thousandth"}})],1),n("div",{staticClass:"setter-inner-vertical"},[n("span",{staticClass:"left"},[e._v(e._s(e.$iss18n.t("issfd.components.precisionProp.close")))]),n("el-switch",{model:{value:e.widgetConfig.options.closePrecision,callback:function(t){e.$set(e.widgetConfig.options,"closePrecision",t)},expression:"widgetConfig.options.closePrecision"}})],1),n("div",{staticClass:"config-layout horizontal"},[n("span",{staticClass:"config-layout-label"},[e._v(e._s(e.$iss18n.t("issfd.components.precisionProp.precision")))]),n("div",{staticClass:"config-layout-content vertical-show"},[n("el-input-number",{attrs:{max:6,min:0,step:1,disabled:e.widgetConfig.options.closePrecision},model:{value:e.widgetConfig.options.precision,callback:function(t){e.$set(e.widgetConfig.options,"precision",t)},expression:"widgetConfig.options.precision"}}),n("span",{staticClass:" config-number-unit"},[e._v(e._s(e.$iss18n.t("issfd.components.precisionProp.unit")))])],1)])])}),[],!1,null,"4ad28f9e",null);t.default=i.exports},8558:function(e,t,n){"use strict";var o=n("cfe9"),r=n("b5db"),i=n("c6b6"),a=function(e){return r.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":o.Bun&&"string"==typeof Bun.version?"BUN":o.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(o.process)?"NODE":o.window&&o.document?"BROWSER":"REST"},"861d":function(e,t,n){"use strict";var o=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:o(e)}},8752:function(e,t,n){"use strict";n("1e2f")},8753:function(e,t){e.exports={indexOf:function(e,t){var n,o;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var o,r;if(Array.prototype.forEach)return e.forEach(t,n);for(o=0,r=e.length;o<r;o++)t.call(n,e[o],o,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}},8856:function(e,t,n){"use strict";var o=n("c14f"),r=n("1da1"),i=n("5530"),a=n("2909"),s=(n("d9e2"),n("4de4"),n("7db0"),n("c740"),n("caad"),n("14d9"),n("a434"),n("b0c0"),n("e9f5"),n("910d"),n("f665"),n("d3b7"),n("1584")),l=n("f859"),c=n("7694"),u=n("ff25"),d=n("6234"),f=n("60bb"),p=n.n(f),m={name:"OptionSelector",props:{placeholder:{type:String,default:function(){return"输入名称筛选"}},dataList:{type:Array,default:function(){return[]}},nodeKey:{type:String,default:function(){return""}},filterKey:{type:String,default:function(){return""}},valueKey:{type:String,default:function(){return""}}},data:function(){return{searchData:"",displayList:this.dataList?p.a.clone(this.dataList):[]}},methods:{onSelectNode:function(e){e.isIcdApi?this.$emit("onSelectIcdApi",e.content):this.valueKey.length&&void 0!==e[this.valueKey]?this.$emit("onSelect",e[this.valueKey]):this.$emit("onSelect",e)},onFilter:function(e){var t=this;if(e.length&&this.dataList.length){var n=e.toLowerCase();this.displayList=this.dataList.filter((function(e){return void 0!==e[t.filterKey]&&e[t.filterKey].toLowerCase().indexOf(n)>-1}))}else this.displayList=void 0!==this.dataList?p.a.clone(this.dataList):[]}}},h=(n("72ab"),n("2877")),g=Object(h.a)(m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"option-selector-container"},[n("div",{staticClass:"opt-bar"},[n("el-input",{attrs:{placeholder:e.placeholder},on:{input:e.onFilter},model:{value:e.searchData,callback:function(t){e.searchData=t},expression:"searchData"}},[n("template",{slot:"prefix"},[n("base-icon",{attrs:{"icon-class":"search-line"}})],1)],2)],1),n("div",{staticClass:"data-list"},[e.displayList.length?e._l(e.displayList,(function(t,o){return n("div",{key:void 0!==t[e.nodeKey]?t[e.nodeKey]:o,staticClass:"node-item",attrs:{title:t[e.filterKey]},on:{click:function(n){return e.onSelectNode(t)}}},[n("span",[e._v(e._s(t[e.filterKey]))])])})):e._e()],2)])}),[],!1,null,"55322e36",null).exports,v={name:"EventMain",components:{BaseIcon:n("7461").a,CodeEditor:s.a,ApiEditor:u.a,CollapseAsideBar:d.a,OptionSelector:g},props:{value:{type:Array,default:function(){return[]}},widgetList:{type:Array,default:function(){return[]}}},inject:["isInMultiComponentDesign"],mounted:function(){var e=this;return Object(r.a)(Object(o.a)().m((function t(){return Object(o.a)().w((function(t){for(;;)switch(t.n){case 0:e.list.length&&(e.selectKey=e.list[0].key),e.isInMultiComponentDesign&&(e.list=e.list.filter((function(e){return!["mounted","beforeSubmit","submitted","beforeDestroy"].includes(e.key)}))),e.visible=!0,document.addEventListener("keydown",e.save);case 1:return t.a(2)}}),t)})))()},beforeDestroy:function(){document.removeEventListener("keydown",this.save)},data:function(){var e=this;return{loading:{},activeToolNames:[],unableEditList:["mounted","beforeSubmit","submitted","beforeDestroy"],formData:{key:"",name:"",func:""},formRules:{name:[{required:!0,message:" "},{validator:function(t,n,o){var r=e.historyList.find((function(e){return e.name===n}));r&&r.key!==e.selectKey?o(new Error(e.$iss18n.t("issfd.events.pane.duplicate"))):o()}}]},list:Object(a.a)(this.value),selectIndex:-1,selectKey:"",historyList:Object(a.a)(this.value),saved:!0,eventType:"",thirdApiList:[],thirdSelectedApi:"",selectedApiObj:{},visible:!1,apiEditorVisible:!1,isVisibleThirdApiSelector:!1}},methods:{save:function(e){(e.ctrlKey||e.metaKey)&&"s"===e.key&&(e.preventDefault(),this.handleSave(!1))},handlePreview:function(){var e=this;return Object(r.a)(Object(o.a)().m((function t(){return Object(o.a)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,e.handleSave(!1);case 1:setTimeout((function(){e.$set(e.list,e.list.findIndex((function(t){return t.key===e.selectKey})),e.formData),e.historyList=Object(a.a)(e.list),e.saved=!0,e.$emit("input",e.historyList),e.$emit("handlePreview",!0,Object(i.a)(Object(i.a)({},e.formData),{},{type:e.eventType}))}),500);case 2:return t.a(2)}}),t)})))()},onThirdSelectedApiChange:function(e){this.selectedApiObj=e,this.apiEditorVisible=!0,this.thirdSelectedApi=""},onThirdSelectedApiVisibleChange:function(){var e=this;return Object(r.a)(Object(o.a)().m((function t(){return Object(o.a)().w((function(t){for(;;)switch(t.n){case 0:return e.isVisibleThirdApiSelector=!0,t.n=1,e.getApiList();case 1:return t.a(2)}}),t)})))()},onHideThirdSelectedApi:function(){this.isVisibleThirdApiSelector=!1},getApiList:function(){var e=this;return Object(r.a)(Object(o.a)().m((function t(){var n;return Object(o.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:return e.loading.thirdApi=!0,t.p=1,t.n=2,Object(c.u)({current:1,size:1e4});case 2:if("0000"===(n=t.v).data.code){t.n=3;break}throw new Error(n.data.message);case 3:e.thirdApiList=n.data.data.records,t.n=5;break;case 4:t.p=4,t.v,e.$message.error(e.$iss18n.t("issfd.events.pane.thirdAPIError"));case 5:return t.p=5,e.loading.thirdApi=!1,t.f(5);case 6:return t.a(2)}}),t,null,[[1,4,5,6]])})))()},onApiEditorConfirm:function(e){var t=this;this.visible=!1,this.$nextTick((function(){t.formData.func+=e,t.visible=!0}))},handleSave:function(e){var t=this;this.$refs.dataForm.validate((function(n){n&&(t.$set(t.list,t.list.findIndex((function(e){return e.key===t.selectKey})),t.formData),t.historyList=Object(a.a)(t.list),t.saved=!0,t.$emit("input",t.historyList),e?(t.$emit("on-confirm-event",Object(i.a)(Object(i.a)({},t.formData),{},{type:t.eventType})),t.$message.success(t.$iss18n.t("issfd.events.pane.saveAndBondSuccess"))):t.$message.success(t.$iss18n.t("issfd.events.pane.saveSuccess")))}))},handleAdd:function(){if(this.saved){var e=Object(l.a)();this.list.push({key:e,name:"func_"+e,func:""}),this.selectKey=e,this.saved=!1}else this.$message.warning(this.$iss18n.t("issfd.events.pane.saveFirst"))},loadNewFunction:function(e){var t=Object(l.a)();this.list.push({key:t,name:e+"_"+t,func:""}),this.selectKey=t,this.saved=!1,this.eventType=e},loadForm:function(){var e=this.list[this.selectIndex];this.formData=Object(i.a)({},e)},handleSelect:function(e){e!==this.selectKey&&(this.saved?this.selectKey=e:this.$message.warning(this.$iss18n.t("issfd.events.pane.saveFirst")))},loadFunction:function(e,t){this.selectKey=e,t&&(this.eventType=t)},handleCancel:function(){this.selectKey="",this.list=Object(a.a)(this.historyList),this.saved=!0,this.$emit("on-cancel")},handleClone:function(e){if(this.saved){var t=this.list[e],n=Object(l.a)(),o=Object(i.a)(Object(i.a)({},t),{},{key:n,name:t.name+"_copy"});this.list.push(o),this.selectKey=n,this.saved=!1}else this.$message.warning(this.$iss18n.t("issfd.events.pane.saveFirst"))},handleRemove:function(e){var t=this,n=this.list[e];this.$confirm(this.$iss18n.t("issfd.events.pane.deleteConfirm",{name:n.name}),"",{type:"warning"}).then((function(){n.key===t.selectKey&&(t.selectKey="",t.saved=!0),t.list.splice(e,1),e<t.historyList.length&&t.historyList.splice(e,1),t.$emit("input",t.historyList)})).catch((function(){}))}},watch:{selectKey:function(e){e?(this.selectIndex=this.list.findIndex((function(t){return t.key===e})),this.loadForm()):this.selectIndex=-1},value:function(e){this.historyList=Object(a.a)(e),this.list=Object(a.a)(e)}}},b=(n("9362"),n("d4ce"),Object(h.a)(v,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",{staticClass:"event-script-container"},[n("el-aside",{staticClass:"event-script-aside"},[n("el-container",[n("el-header",{attrs:{height:"40px"}},[n("el-button",{staticClass:"aside-header-btn",attrs:{size:"small"},on:{click:e.handleAdd}},[n("base-icon",{attrs:{"icon-class":"add-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.events.pane.add"))+" ")],1)],1),n("el-main",[n("el-menu",{staticClass:"event-script-aside-menu",attrs:{"default-active":e.selectKey},on:{select:e.handleSelect}},e._l(e.list,(function(t,o){return n("el-menu-item",{key:t.key,attrs:{disabled:!e.saved,index:t.key},nativeOn:{click:function(n){return e.handleSelect(t.key)}}},[n("div",{staticClass:"event-script-menu-node",attrs:{slot:"title"},slot:"title"},[n("div",{staticClass:"event-script-menu-icon"},[n("base-icon",{attrs:{"icon-class":"code-box-fill"}})],1),n("div",{staticClass:"event-script-menu-label"},[e._v(e._s(t.name))]),e.unableEditList.indexOf(t.key)>-1?e._e():n("div",{staticClass:"event-script-menu-action"},[n("el-dropdown",{attrs:{trigger:"click"}},[n("span",[n("base-icon",{staticClass:"dropdown-icon",attrs:{"icon-class":"more-2-fill",title:e.$iss18n.t("issfd.events.pane.more")}})],1),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(t){return t.stopPropagation(),e.handleClone(o)}}},[n("base-icon",{attrs:{"icon-class":"file-copy-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.common.buttons.copy"))+" ")],1),n("el-dropdown-item",{nativeOn:{click:function(t){return t.stopPropagation(),e.handleRemove(o)}}},[n("base-icon",{attrs:{"icon-class":"delete-bin-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.common.buttons.delete"))+" ")],1)],1)],1)],1)])])})),1)],1)],1)],1),n("el-main",{staticClass:"event-script-main"},[n("el-main",{staticClass:"event-script-main-main"},[n("div",{staticClass:"event-script-main-main-main"},[n("el-form",{key:e.selectKey,ref:"dataForm",staticClass:"event-script-main-form",attrs:{model:e.formData,rules:e.formRules,"label-position":"right","label-width":"80px",size:"small"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-form-item",{staticClass:"code-name",attrs:{label:e.$iss18n.t("issfd.events.pane.method"),prop:"name"}},[n("el-input",{attrs:{disabled:e.unableEditList.indexOf(e.formData.key)>-1},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),n("el-form-item",{staticClass:"code-container",attrs:{"label-width":"0",prop:"func"}},[n("div",{staticClass:"code-line opt-bar"},[n("div",{staticClass:"opt-item opt-item-name"},[e._v("Function () {")]),n("el-popover",{attrs:{"popper-class":"third-api-selector-popover",placement:"bottom",width:"295",trigger:"click"},on:{hide:e.onHideThirdSelectedApi,show:e.onThirdSelectedApiVisibleChange}},[e.thirdApiList.length?n("option-selector",{attrs:{"data-list":e.thirdApiList,"node-key":"id","filter-key":"apiName"},on:{onSelect:e.onThirdSelectedApiChange,onSelectIcdApi:e.onApiEditorConfirm}}):e._e(),n("div",{staticClass:"opt-item opt-item-collapse-bar",attrs:{slot:"reference"},slot:"reference"},[n("div",{staticClass:"opt-item-collapse-bar-title"},[e._v(e._s(e.$iss18n.t("issfd.events.pane.thirdApi")))]),n("div",{staticClass:"opt-item-collapse-bar-btn"},[n("el-button",{attrs:{type:"text"}},[e._v(" "+e._s(e.$iss18n.t("issfd.components.tableProp.dynamicTitleItemPlaceholder"))+" "),n("i",{class:{"el-icon-arrow-up":!0,"is-active":e.isVisibleThirdApiSelector}})])],1)])],1)],1),e.visible?n("code-editor",{staticClass:"code-wrapper",attrs:{height:"calc(100vh - 283px)",width:"unset",mode:"javascript"},model:{value:e.formData.func,callback:function(t){e.$set(e.formData,"func",t)},expression:"formData.func"}}):e._e(),n("div",{staticClass:"code-line code-line-bottom"},[e._v("}")])],1)],1)],1),n("div",{staticClass:"event-script-main-main-aside"},[n("collapse-aside-bar",{attrs:{"widget-list":e.widgetList}})],1)]),n("div",{staticClass:"event-script-main-footer"},[n("el-button",{attrs:{size:"mini",type:"default"},on:{click:e.handlePreview}},[n("base-icon",{attrs:{"icon-class":"terminal-box-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.events.pane.test"))+" ")],1),n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleSave(!1)}}},[n("base-icon",{attrs:{"icon-class":"save-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.events.pane.save"))+" ")],1),this.eventType?n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleSave(!0)}}},[n("base-icon",{attrs:{"icon-class":"checkbox-circle-line"}}),e._v(" "+e._s(e.$iss18n.t("issfd.common.buttons.ok"))+" ")],1):e._e()],1)],1),e.apiEditorVisible?n("api-editor",{attrs:{api:e.selectedApiObj,"widget-list":e.widgetList},on:{onConfirm:e.onApiEditorConfirm,onClose:function(t){e.apiEditorVisible=!1}},model:{value:e.apiEditorVisible,callback:function(t){e.apiEditorVisible=t},expression:"apiEditorVisible"}}):e._e()],1)}),[],!1,null,"7a2237bb",null).exports),y={name:"DrawerLayout",props:{visible:{type:Boolean,default:function(){return!1}},isAside:{type:Boolean,default:function(){return!0}},isFooter:{type:Boolean,default:function(){return!0}},width:{type:String,default:function(){return"100vw"}},bodyAsideWidth:{type:String,default:function(){return"200px"}},direction:{type:String,default:function(){return"rtl"}},cancelText:{type:String,default:function(){return"取消"}},confirmText:{type:String,default:function(){return"保存"}}},model:{prop:"visible",event:"change"},methods:{onCancel:function(){this.$emit("onCancel")},onConfirm:function(){this.$emit("onConfirm")}}},_=(n("4180"),{components:{EventScriptIndex:b,DrawerLayout:Object(h.a)(y,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-drawer",{staticClass:"drawer-layout-container",attrs:{direction:e.direction,size:e.width,visible:e.visible,"with-header":!1,"wrapper-closable":!1,"append-to-body":""}},[n("div",{staticClass:"header"},[n("div",{staticClass:"header-title"},[e._t("headerTitle")],2),n("div",{staticClass:"header-opt"},[n("el-button",{attrs:{type:"text",title:e.cancelText},on:{click:e.onCancel}},[n("base-icon",{staticClass:"btn-close",attrs:{"icon-class":"close-fill"}})],1)],1)]),n("div",{staticClass:"body"},[e.isAside?n("div",{staticClass:"body-aside",style:{width:e.bodyAsideWidth}},[e._t("bodyAside")],2):e._e(),n("div",{staticClass:"body-content"},[n("div",{staticClass:"body-content-main"},[e._t("bodyContentMain")],2),e.isFooter?n("div",{staticClass:"body-content-footer"},[n("el-button",{on:{click:e.onCancel}},[e._v(e._s(e.cancelText))]),n("el-button",{on:{click:e.onConfirm}},[e._v(e._s(e.confirmText))]),e._t("bodyContentFooterBtn")],2):e._e()])])])}),[],!1,null,"e195ccfe",null).exports},props:["widgetList","title"],data:function(){return{visible:!1,scriptList:[]}},methods:{handlePreview:function(e,t){var n=this;return Object(r.a)(Object(o.a)().m((function r(){return Object(o.a)().w((function(o){for(;;)switch(o.n){case 0:n.$emit("handlePreview",e,t,n.scriptList);case 1:return o.a(2)}}),r)})))()},open:function(e,t,n){var o=this;this.visible=!0,e&&(this.scriptList=e),this.$nextTick((function(){!n&&t&&o.$refs.eventScriptIndex.loadNewFunction(t),n&&t&&o.$refs.eventScriptIndex.loadFunction(n,t)}))},handleClose:function(){this.$emit("dialog-close",this.scriptList),this.visible=!1},handleConfirmEvent:function(e){this.$emit("dialog-close",this.scriptList),this.$emit("dialog-confirm",e),this.visible=!1}}}),w=(n("8116"),Object(h.a)(_,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.visible?n("drawer-layout",{attrs:{"is-aside":!1,"is-footer":!1},on:{onCancel:e.handleClose,onConfirm:e.handleConfirmEvent},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("template",{slot:"headerTitle"},[n("div",{staticClass:"title-content"},[e._v(e._s(e.title))]),e._t("help-icon")],2),n("template",{slot:"bodyContentMain"},[n("event-script-index",{ref:"eventScriptIndex",attrs:{slot:"bodyAside","widget-list":e.widgetList},on:{"on-cancel":e.handleClose,"on-confirm-event":e.handleConfirmEvent,handlePreview:e.handlePreview},slot:"bodyAside",model:{value:e.scriptList,callback:function(t){e.scriptList=t},expression:"scriptList"}})],1)],2):e._e()}),[],!1,null,"aa16d650",null));t.a=w.exports},8861:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n("124f"),i=(o=r)&&o.__esModule?o:{default:o},a=n("6e53"),s=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e+=(0,a.mod10)(e),e+=(0,a.mod10)(e),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default);t.default=s},8863:function(e,t,n){n("9dd9")},8875:function(e,t,n){var o,r,i;"undefined"!=typeof self&&self,r=[],void 0===(i="function"==typeof(o=function(){return function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(e){var n,o,r,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(e.stack),a=i&&i[1]||!1,s=i&&i[2]||!1,l=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");a===l&&(n=document.documentElement.outerHTML,o=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(o,"$1").trim());for(var u=0;u<c.length;u++){if("interactive"===c[u].readyState)return c[u];if(c[u].src===a)return c[u];if(a===l&&c[u].innerHTML&&c[u].innerHTML.trim()===r)return c[u]}return null}}})?o.apply(t,r):o)||(e.exports=i)},"88a7":function(e,t,n){"use strict";var o=n("cb2d"),r=n("e330"),i=n("577e"),a=n("d6d6"),s=URLSearchParams,l=s.prototype,c=r(l.append),u=r(l.delete),d=r(l.forEach),f=r([].push),p=new s("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&o(l,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var o=[];d(this,(function(e,t){f(o,{key:t,value:e})})),a(t,1);for(var r,s=i(e),l=i(n),p=0,m=0,h=!1,g=o.length;p<g;)r=o[p++],h||r.key===s?(h=!0,u(this,r.key)):m++;for(;m<g;)(r=o[m++]).key===s&&r.value===l||c(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},8907:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var o=n("c14f"),r=n("5530"),i=n("1da1"),a=(n("d81d"),n("14d9"),n("b0c0"),n("e9f5"),n("7d54"),n("ab43"),n("d3b7"),n("159b"),n("7694"));function s(e,t){return l.apply(this,arguments)}function l(){return(l=Object(i.a)(Object(o.a)().m((function e(t,n){var i,s,l;return Object(o.a)().w((function(e){for(;;)switch(e.p=e.n){case 0:return i={total:0,data:[]},e.p=1,e.n=2,Object(a.n)(n);case 2:"0000"===(s=e.v).data.code?(i.data=s.data.data.records.map((function(e){return Object(r.a)(Object(r.a)({},e),{},{dataType:"dict",id:e.id,label:e.name,value:e.itemCode})})),i.total=s.data.data.length):t.$message.error("加载字典失败 : ".concat(s.data.message)),e.n=4;break;case 3:e.p=3,l=e.v,t.$message.error("加载字典失败 : ".concat(l.message));case 4:return e.a(2,i)}}),e,null,[[1,3]])})))).apply(this,arguments)}function c(e,t){return u.apply(this,arguments)}function u(){return(u=Object(i.a)(Object(o.a)().m((function e(t,n){var i,s,l;return Object(o.a)().w((function(e){for(;;)switch(e.p=e.n){case 0:return i={total:0,data:[]},e.p=1,e.n=2,Object(a.m)(n);case 2:if("0000"===(s=e.v).data.code){e.n=3;break}return t.$message.error("加载字典选项失败 : ".concat(s.data.message)),e.a(2,i);case 3:return s.data.data.forEach((function(e){i.data.push(Object(r.a)(Object(r.a)({},e),{},{dataType:"dictItem",id:e.id,label:e.itemName,value:e.itemCode}))})),i.total=s.data.data.length,e.a(2,i);case 4:return e.p=4,l=e.v,t.$message.error("加载字典选项失败 : ".concat(l.message)),e.a(2,i)}}),e,null,[[1,4]])})))).apply(this,arguments)}},8925:function(e,t,n){"use strict";var o=n("e330"),r=n("1626"),i=n("c6cd"),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},"89a2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n("c243"),s=n("bdfe"),l=(o=s)&&o.__esModule?o:{default:o},c=function(e){return(10-e.substr(0,12).split("").map((function(e){return+e})).reduce((function(e,t,n){return n%2?e+3*t:e+t}),0)%10)%10},u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),-1!==e.search(/^[0-9]{12}$/)&&(e+=c(e));var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.lastChar=n.lastChar,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===c(this.data)}},{key:"leftText",value:function(){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var e=this.data.substr(1,6),n=a.EAN13_STRUCTURE[this.data[0]];return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,e,n)}},{key:"rightText",value:function(){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var e=this.data.substr(7,6);return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,e,"RRRRRR")}},{key:"encodeGuarded",value:function(){var e=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(e.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(e.push({data:"00"}),e.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),e}}]),t}(l.default);t.default=u},"8a79":function(e,t,n){"use strict";var o,r=n("23e7"),i=n("4625"),a=n("06cf").f,s=n("50c4"),l=n("577e"),c=n("5a34"),u=n("1d80"),d=n("ab13"),f=n("c430"),p=i("".slice),m=Math.min,h=d("endsWith");r({target:"String",proto:!0,forced:!(!f&&!h&&(o=a(String.prototype,"endsWith"),o&&!o.writable))&&!h},{endsWith:function(e){var t=l(u(this));c(e);var n=arguments.length>1?arguments[1]:void 0,o=t.length,r=void 0===n?o:m(s(n),o),i=l(e);return p(t,r-i.length,r)===i}})},"8aa5":function(e,t,n){"use strict";var o=n("6547").charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},"8b00":function(e,t,n){"use strict";var o=n("23e7"),r=n("68df");o({target:"Set",proto:!0,real:!0,forced:!n("dad2")("isSubsetOf",(function(e){return e}))},{isSubsetOf:r})},"8b0e":function(e,t,n){},"8ba4":function(e,t,n){"use strict";n("23e7")({target:"Number",stat:!0},{isInteger:n("eac5")})},"8bbf":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__8bbf__},"8bda":function(e,t,n){},"8c33":function(e,t,n){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,o={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function r(e){return e&&e.bracketRegex||/[(){}[\]]/}function i(e,t,i){var s=e.getLineHandle(t.line),l=t.ch-1,c=i&&i.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var u=r(i),d=!c&&l>=0&&u.test(s.text.charAt(l))&&o[s.text.charAt(l)]||u.test(s.text.charAt(l+1))&&o[s.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(i&&i.strict&&f>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),m=a(e,n(t.line,l+(f>0?1:0)),f,p,i);return null==m?null:{from:n(t.line,l),to:m&&m.pos,match:m&&m.ch==d.charAt(0),forward:f>0}}function a(e,t,i,a,s){for(var l=s&&s.maxScanLineLength||1e4,c=s&&s.maxScanLines||1e3,u=[],d=r(s),f=i>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),p=t.line;p!=f;p+=i){var m=e.getLine(p);if(m){var h=i>0?0:m.length-1,g=i>0?m.length:-1;if(!(m.length>l))for(p==t.line&&(h=t.ch-(i<0?1:0));h!=g;h+=i){var v=m.charAt(h);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(p,h+1))||"")==(a||""))){var b=o[v];if(b&&">"==b.charAt(1)==i>0)u.push(v);else{if(!u.length)return{pos:n(p,h),ch:v};u.pop()}}}}}return p-i!=(i>0?e.lastLine():e.firstLine())&&null}function s(e,o,r){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=r&&r.highlightNonMatching,l=[],c=e.listSelections(),u=0;u<c.length;u++){var d=c[u].empty()&&i(e,c[u].head,r);if(d&&(d.match||!1!==s)&&e.getLine(d.from.line).length<=a){var f=d.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(d.from,n(d.from.line,d.from.ch+1),{className:f})),d.to&&e.getLine(d.to.line).length<=a&&l.push(e.markText(d.to,n(d.to.line,d.to.ch+1),{className:f}))}}if(l.length){t&&e.state.focused&&e.focus();var p=function(){e.operation((function(){for(var e=0;e<l.length;e++)l[e].clear()}))};if(!o)return p;setTimeout(p,800)}}function l(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}function c(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,(function(t,n,o){o&&o!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",c),c(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",c))})),e.defineExtension("matchBrackets",(function(){s(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),i(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,o){return a(this,e,t,n,o)}))}(n("56b3"))},"8dee":function(e,t,n){"use strict";n("e408")},"8e16":function(e,t,n){"use strict";var o=n("7282"),r=n("cb27");e.exports=o(r.proto,"size","get")||function(e){return e.size}},"8e4b":function(module,__webpack_exports__,__webpack_require__){"use strict";var D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("53ca"),D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("c14f"),D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("1da1"),D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("b85c"),D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("5530"),D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("2909"),D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("ade3"),core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("d9e2"),core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("99af"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("4de4"),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("7db0"),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_10__),core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("c740"),core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("caad"),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_12__),core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("e260"),core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_13__),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("a15b"),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_14__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("d81d"),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_15__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("14d9"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_16__),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("fb6a"),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_17__),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("a434"),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_18__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_19__),core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("e9f5"),core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_20__),core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("910d"),core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_21__),core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("f665"),core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_22__),core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("7d54"),core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_23__),core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("ab43"),core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_24___default=__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_24__),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("e9c4"),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_25___default=__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_25__),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("b64b"),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_26__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("d3b7"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_27___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_27__),core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("e6cf"),core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_28___default=__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_28__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("ac1f"),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_29___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_29__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("25f0"),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_30__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("2532"),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_31__),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("3ca3"),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_32___default=__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_32__),core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("466d"),core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_33___default=__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_33__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("5319"),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_34___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_34__),core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("5b81"),core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_35___default=__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_35__),core_js_modules_esnext_json_parse_js__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("5087"),core_js_modules_esnext_json_parse_js__WEBPACK_IMPORTED_MODULE_36___default=__webpack_require__.n(core_js_modules_esnext_json_parse_js__WEBPACK_IMPORTED_MODULE_36__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("159b"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_37__),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("ddb0"),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_38__),_BaseElementItem__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("7170"),_util_index__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("4260"),_util_event_bus__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("0f01"),lodash__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("60bb"),lodash__WEBPACK_IMPORTED_MODULE_42___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_42__),axios__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("cee4"),uuid__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("ec26"),_common_consts_form_base_config__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("6ba6"),_util_widget_public_const__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("e2e6"),_adapters_api_adapter__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("7694"),_adapters_api_instance__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("8907"),moment__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("c32d"),moment__WEBPACK_IMPORTED_MODULE_49___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_49__),x2js__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("98fc"),x2js__WEBPACK_IMPORTED_MODULE_50___default=__webpack_require__.n(x2js__WEBPACK_IMPORTED_MODULE_50__),_util_public_methods__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("bcc9"),_util_constants__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("1503"),_util_plugin_in_layout_widget__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("c986"),_util_comp_linkage__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("afee"),_util_handle_multi_widget__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("1bf7"),_components_FormulaEditor_utils__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("af46"),iss_library_formula__WEBPACK_IMPORTED_MODULE_57__=__webpack_require__("2412"),_common_consts_widget_components_type_map__WEBPACK_IMPORTED_MODULE_58__=__webpack_require__("fee3"),_common_consts_datasource_types__WEBPACK_IMPORTED_MODULE_59__=__webpack_require__("5c9a"),FORMULA="formulajs.";window.formulajs=iss_library_formula__WEBPACK_IMPORTED_MODULE_57__,__webpack_exports__.a={name:"iss-library-form-renderer",mixins:[_util_comp_linkage__WEBPACK_IMPORTED_MODULE_54__.a],components:{BaseElementItem:_BaseElementItem__WEBPACK_IMPORTED_MODULE_39__.default},props:{colOptions:{type:Function,default:null},editRows:{type:Array,default:function(){return[]}},displayColData:{type:Array,default:function(){return[]}},dataSource:{type:Array,default:function(){return[]}},source:{type:Object,default:function(){return Object(_common_consts_form_base_config__WEBPACK_IMPORTED_MODULE_45__.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""}},previewUrl:{type:String,default:""},internalUrl:{type:String,default:location.origin},customComponentList:{type:Array,default:function(){return[]}},override:{type:Object,default:function(){return{autoLabelPosition:!0}}},formType:{type:String},isUnitedFormComp:{default:!1},inLineMode:{type:Boolean,default:!1},inLineEditSymbol:{type:String,default:"__editting"},flowKey:{type:String,default:""},requiredSymbolMode:{type:String,default:"INLINE"},isAutoMounted:{type:Boolean,default:!0}},provide:function(){var e=this;return{variable:this.variables,currentFormId:this.currentFormId,formPublishVersionId:this.formPublishVersionId,formValue:this.value,preview:this.preview,edit:this.edit,printRead:this.printRead,dataId:this.value?this.value.ID:"",data:function(){return e.data},previewUrl:this.previewUrl,internalUrl:this.internalUrl,customComponentList:function(){return e.customComponentList},override:this.override,formType:this.formType,formSize:function(){return e.data.config.size},renderFormRef:function(){return e.$refs[e.formRef]}}},computed:{showForm:function(){var e=this;return function(t){return e.editRows.includes(t)&&e.listBac&&e.modelsBac&&e.displayFieldsBac}},platform:function(){return this.lockPlatform?this.preferPlatform:this.responsivePlatform},labelPosition:function(){return this.override&&this.override.autoLabelPosition?"pc"===this.platform?this.data.config&&this.data.config.labelPosition:"top":this.data.config&&this.data.config.labelPosition},background:function(){var e=this.data.config.background,t=this.data.config.backgroundColor||"#fff",n=e;return"normal"!==e&&e||(n="#fff"),"custom"===e&&(n=t),n}},data:function(){return{loading:!1,responsivePlatform:"pc",tableData:{},displayFieldsAll:{},listBac:null,modelsBac:null,displayFieldsBac:null,data:{},models:{},rules:{},displayFields:{},resetModels:{},formKey:Object(uuid__WEBPACK_IMPORTED_MODULE_44__.a)(),formStyleKey:Object(uuid__WEBPACK_IMPORTED_MODULE_44__.a)(),formValue:this.value,formShow:!1,formRef:"FORM_".concat(Object(uuid__WEBPACK_IMPORTED_MODULE_44__.a)()),containerKey:Object(uuid__WEBPACK_IMPORTED_MODULE_44__.a)(),dataSourceValue:[],eventFunction:{},formulas:{},flatList:[],unitedFormModels:[]}},created:function(){this.updateWidgetForm(),this.data=lodash__WEBPACK_IMPORTED_MODULE_42___default.a.cloneDeep(this.source),this.inLineMode&&this._initInlineModeSource(),this._loadDataSource(),this._loadEvents(),this._initForm()},mounted:function(){var e=this,t=this;_util_event_bus__WEBPACK_IMPORTED_MODULE_41__.a.$on("on-change-"+this.containerKey,(function(n,o,r,i){e.inLineMode&&t._rowEditting(i),e.containerKey===r&&t.setData(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__.a)({},o,n)),t.$emit("on-change",o,n,t.models),t.$emit("on-".concat(o,"-change"),n)})),this.isAutoMounted&&setTimeout((function(){e.eventFunction.mounted&&e.eventFunction.mounted()}),100),this.responsivePlatform=this.preferPlatform,this.initCompLinkageRules(),this._resizeHandler(),window.addEventListener("resize",lodash__WEBPACK_IMPORTED_MODULE_42___default.a.throttle((function(){t._resizeHandler()}),300)),setTimeout((function(){e.initUnitedFormLinkageActions()}),500)},beforeDestroy:function(){var e=".iss-form-"+this.formStyleKey+" ";Object(_util_index__WEBPACK_IMPORTED_MODULE_40__.a)(e),_util_event_bus__WEBPACK_IMPORTED_MODULE_41__.a.$off("on-change-"+this.containerKey),window.removeEventListener("resize",this._resizeHandler)},watch:{loading:{handler:function(e){this.$emit("onLoadingChange",e)}},models:{deep:!0,immediate:!0,handler:function(e){this.$emit("updateModels",e)}},dataSource:{deep:!1,immediate:!1,handler:function(){this._initInlineColDisplay(),this._initInlineRender()}}},methods:{_colLabel:function(e){var t=e.columnLabel;return"HEADER"===this.requiredSymbolMode&&this.data.list.forEach((function(n){var o;(null==n?void 0:n.model)===(null==e?void 0:e.columnName)&&null!=n&&null!==(o=n.options)&&void 0!==o&&o.required&&(t="* "+t)})),t},_initInlineModeSource:function(){var e,t,n=null!==(e=null===(t=this.data)||void 0===t?void 0:t.list)&&void 0!==e?e:[],o=function(e){var t=[];return null==e||e.forEach((function(e){if(e.meta)t.push(e);else{if(!e.children)return 0;var n=o(e.children);t.push.apply(t,Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__.a)(n))}})),t},r=o(n);this.$set(this.data,"list",r)},_currentField:function(e,t){return e.find((function(e){return e.model===t.columnName}))},_colOptions:function(e){return this.colOptions?this.colOptions(e):{}},_initInlineColDisplay:function(){var e=this;if(this.displayColData.length){var t=this.displayColData.map((function(e){return e.columnName})),n=this.data.list;Object.keys(this.models).map((function(n){t.includes(n)||delete e.models[n]})),Object.keys(this.displayFields).map((function(n){t.includes(n)||delete e.displayFields[n]})),this.data.list=n.filter((function(e){return t.includes(e.model)}))}},_initInlineRender:function(){var e=this;this.dataSource.forEach((function(t,n){if(!t.__row){var o=Object(uuid__WEBPACK_IMPORTED_MODULE_44__.a)();e.addRow(o,e.flowKey?t[e.flowKey]:t),e.$set(e.dataSource[n],"__row",o)}}))},addRow:function(e,t){null===this.listBac&&(this.listBac=lodash__WEBPACK_IMPORTED_MODULE_42___default.a.cloneDeep(this.data.list)),null===this.modelsBac&&(this.modelsBac=lodash__WEBPACK_IMPORTED_MODULE_42___default.a.cloneDeep(this.models)),null===this.displayFieldsBac&&(this.displayFieldsBac=lodash__WEBPACK_IMPORTED_MODULE_42___default.a.cloneDeep(this.displayFields));var n=this.data.column,o=void 0===n?{}:n;o[e]=lodash__WEBPACK_IMPORTED_MODULE_42___default.a.cloneDeep(this.listBac);var r=Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__.a)({},this.modelsBac),t);if(!t){var i=this.dataSource.find((function(t){return t.__row===e}));this.$set(i,this.inLineEditSymbol,"editting")}this.$set(this.data,"column",o),this.$set(this.displayFieldsAll,e,Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__.a)({},this.displayFieldsBac)),this.$set(this.tableData,e,r)},validateRow:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!n)return Promise.resolve({status:!0,result:this.tableData[e]});var o=this.$refs[e],r=Math.floor(o.length/2),i=o.slice(0,r),a=i.map((function(e){return e.validate()}));return Promise.all(a).then((function(){return{status:!0,result:t.tableData[e]}})).catch((function(e){return{status:!1,result:e}}))},_rowEditting:function(e){var t=e.__row,n=this.dataSource.find((function(e){return e.__row===t}));this.models=this.tableData[t],this.displayFields=this.displayFieldsAll[t],this.$set(this.data,"list",this.data.column[t]),this.$set(n,this.inLineEditSymbol,"editting"),this.$set(this.models,this.inLineEditSymbol,"editting")},getUnitedFormModels:function(e){var t=this,n=[];return e&&e.length&&e.forEach((function(e){if(e.children&&e.children.length){var o=t.getUnitedFormModels(e.children);o&&o.length&&(n=[].concat(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__.a)(n),Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__.a)(o)))}else _common_consts_widget_components_type_map__WEBPACK_IMPORTED_MODULE_58__.z[e.type]&&n.push(e)})),n},execUnitedAction:function(e){var t=this;this.unitedFormModels&&this.unitedFormModels.length&&this.unitedFormModels.forEach((function(n){if(t.models[n.model]&&Object.keys(t.models[n.model]).indexOf(e)>-1){var o=t.getComponent("icd-form-".concat(n.model)),r=o&&o.flatList&&o.flatList.find((function(t){return t.model===e})),i=t.flatList.find((function(t){return t.model===e}));r&&i&&r.type&&i.type&&r.type===i.type&&o&&o.setValue&&o.setValue(e,t.models[e])}}))},execSubUnitedAction:function(e,t,n){var o=this,r=this.getComponent("icd-form-".concat(e))&&this.getComponent("icd-form-".concat(e)).flatList&&this.getComponent("icd-form-".concat(e)).flatList.find((function(e){return e.model===t}));n.forEach((function(n){var i=o.getComponent("icd-form-".concat(n)),a=i&&i.flatList&&i.flatList.find((function(e){return e.model===t}));a&&r&&a.type&&r.type&&a.type===r.type&&i.setValue&&n!==e&&i.setValue(t,o.models[e][t])}))},updateLessUnitedComp:function(e,t,n){var o=this,r=this.data.config&&this.data.config.unitedFormSetting,i=this.getComponent("icd-form-".concat(e))&&this.getComponent("icd-form-".concat(e)).flatList&&this.getComponent("icd-form-".concat(e)).flatList.find((function(e){return e.model===t}));n.forEach((function(n){var a=o.getComponent("icd-form-".concat(n)),s=a&&a.flatList&&a.flatList.find((function(e){return e.model===t}));s&&i&&s.type&&i.type&&s.type===i.type&&(r&&r.hidden&&a.hide&&n!==e&&a.hide([t]),r&&r.readonly&&a.setReadOnly&&n!==e&&a.setReadOnly([t],!0),r&&r.disabled&&a.disabled&&n!==e&&a.disabled([t],!0))}))},processUnitedCompInUnitedForm:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[];t.forEach((function(r){n.forEach((function(n){e.models[r]&&Object.keys(e.models[r]).indexOf(n)>-1&&o.indexOf(n)<0&&(o.push(n),e.$watch((function(){return[this.models[r][n]]}),(function(){e.execSubUnitedAction(r,n,t)}),{deep:!0,immediate:!0}),e.updateLessUnitedComp(r,n,t))}))}))},initUnitedFormLinkageActions:function(){var e=this;if(!this.isUnitedFormComp&&this.data.list&&this.data.list.length){var t=this.data.config&&this.data.config.unitedFormSetting;this.unitedFormModels=this.getUnitedFormModels(this.data.list);var n=this.unitedFormModels&&this.unitedFormModels.map((function(e){return e.model})),o=this.flatList.filter((function(e){return n.indexOf(e.model)<0})),r=o&&o.map((function(e){return e.model})),i=[];Object.keys(this.models).forEach((function(t){n.indexOf(t)>-1&&Object.keys(e.models[t]).length&&Object.keys(e.models[t]).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))}));var a=lodash__WEBPACK_IMPORTED_MODULE_42___default.a.intersection(r,i);if(a&&a.length){a.forEach((function(n){e.$watch((function(){return[this.models[n]]}),(function(){e.execUnitedAction(n)}),{deep:!0,immediate:!0}),e.unitedFormModels.forEach((function(o){var r=e.getComponent("icd-form-".concat(o.model)),i=r&&r.flatList&&r.flatList.find((function(e){return e.model===n})),a=e.flatList.find((function(e){return e.model===n}));i&&a&&i.type&&a.type&&i.type===a.type&&(t&&t.hidden&&r&&r.hide&&r.hide([n]),t&&t.readonly&&r&&r.setReadOnly&&r.setReadOnly([n],!0),t&&t.disabled&&r&&r.disabled&&r.disabled([n],!0))}))}));var s=i.filter((function(e){return a.findIndex((function(t){return t===e}))<0}));this.processUnitedCompInUnitedForm(n,s)}else this.processUnitedCompInUnitedForm(n,i)}},setMultiComponentToSource:function(e){var t;if("string"==typeof e){if(!e)return;e=JSON.parse(e)}var n=Object(_util_handle_multi_widget__WEBPACK_IMPORTED_MODULE_55__.a)(e),o=n.finalChilds,r=n.newEventScript;this.updateWidgetForm(),this.data=lodash__WEBPACK_IMPORTED_MODULE_42___default.a.cloneDeep(this.source),(t=this.data.list).push.apply(t,Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__.a)(o)),this.data.config.eventScript=r,this._loadDataSource(),this._loadEvents(),this._initForm()},updateWidgetForm:function(){if(!(this.source.version&&this.source.version>=1)&&this.source.list.length){var e,t=Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_3__.a)(this.source.list);try{for(t.s();!(e=t.n()).done;){var n=e.value;_util_constants__WEBPACK_IMPORTED_MODULE_52__.b.includes(n.type)&&Object(_util_plugin_in_layout_widget__WEBPACK_IMPORTED_MODULE_53__.a)(n)}}catch(e){t.e(e)}finally{t.f()}this.source.version=1}},batchDownload:function(){var e=arguments;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().m((function t(){var n;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().w((function(t){for(;;)switch(t.n){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:[],t.n=1,Object(_util_public_methods__WEBPACK_IMPORTED_MODULE_51__.a)(n);case 1:return t.a(2)}}),t)})))()},getWidthType:function(e){return e<576?"mobile":e<792?"pad":"pc"},_resizeHandler:function(){if(!document.hidden){var e=document.getElementById("iss-form-renderer");if(e){var t=e.getBoundingClientRect().width;this.responsivePlatform=this.getWidthType(t)}}},_initForm:function(){if(this.formShow=!1,Object.keys(this.data).length?this.generateModel(this.data.list):this.generateModel([]),this.resetModels=lodash__WEBPACK_IMPORTED_MODULE_42___default.a.cloneDeep(this.models),this.models=Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__.a)({},this.models),this.formShow=!0,this.data.config&&this.data.config.styleSheets){var e=".iss-form-"+this.formStyleKey+" ";Object(_util_index__WEBPACK_IMPORTED_MODULE_40__.g)(Object(_util_index__WEBPACK_IMPORTED_MODULE_40__.f)(this.data.config.styleSheets),e)}this._initFormula()},_initFormula:function(){var e=this;if(this.data.list){var t=Object(_components_FormulaEditor_utils__WEBPACK_IMPORTED_MODULE_56__.a)(this.data.list);this.flatList=t,t.forEach((function(t){if(t.options&&"formula"===t.options.isVariableDefaultValue&&t.options.formula){var n=t.options.formula,o=t.options.modelDateMap,r=n.match(/\${[\w$\\.]+}/g),i=[];r&&r.length&&r.forEach((function(e){i.push(e.replaceAll("${","").replaceAll("}",""))}));var a=t.options?t.options.tableModel:"",s=t.options?t.options.tableKey:"",l={fn:e._parseFormula(n,i),paramModels:i,model:t.model,modelDateMap:o,tableModel:a,tableKey:s};if(l.fn)if(i&&i.length){var c=a?a+"$$"+t.model:t.model;e.formulas[c]=[l]}else if(!e.models[t.model]){var u=l.fn();"date"===t.type&&(u=Date.parse(u)),e.models[t.model]=u}}}));var n=function(t){if(t.indexOf("$$")>0){var n=t.substring(0,t.indexOf("$$"));e.$watch((function(){return this.getParamsTargetInTable(n,t)}),(function(e,o){this.setValueTargetInTable(n,e,o,t)}),{deep:!0,immediate:!Object.keys(e.formValue).length})}else e.$watch((function(){return this.getParamsInMain(t)}),(function(e){this.setValueTargetInMain(t,e)}),{deep:!0,immediate:!Object.keys(e.formValue).length})};for(var o in this.formulas)n(o)}},valueTypeTransfer:function(e){return"boolean"==typeof e?e=e.toString():Array.isArray(e)?e=e.join():"number"==typeof e&&isNaN(e)?e="":e instanceof Date?e=+e||"":"Invalid date"===e?e="":e===1/0&&(e=0),e},_parseFormula:function(e,t){e=e.replace(/@/g,FORMULA).replace(/\$\{([\w$\\.]*)\}/g,"$1");try{if(t){var n=[];for(var o in t)n.push(t[o]);return new Function(n,"return "+e)}return new Function("return "+e)}catch(e){return null}},runFunc:function(e,t,n,o){try{var r=lodash__WEBPACK_IMPORTED_MODULE_42___default.a.cloneDeep(t),i=e.fn.apply(this,r);if(i=this.valueTypeTransfer(i),"object"===Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__.a)(i))return;return e.isLinkage||(n?this.$set(this.models[n][o],e.model,i):this.$set(this.models,e.model,i)),i}catch(e){}},getParamsInMain:function(e){var t=this,n=[],o=this.formulas[e][0];if(o.paramModels&&o.paramModels.length>0)for(var r=function(){var e=o.paramModels[i];if(e.includes("$$")){for(var r=[],a=e.split("$$")[0],s=t.models[a],l=e.split("$$")[1],c=t.flatList.find((function(e){return e.model===l})),u=0;u<s.length;u++)if(c&&"date"===c.type&&o.modelDateMap[l]&&s[u][l])r.push(Object(_util_index__WEBPACK_IMPORTED_MODULE_40__.c)(s[u][l],o.modelDateMap[l]));else{var d=s[u][l]||c.options.defaultValue;r.push(d)}n.push(r)}else{var f=t.flatList.find((function(t){return t.model===e}));if(f&&"date"===f.type&&o.modelDateMap[e]&&t.models[e]){var p=Object(_util_index__WEBPACK_IMPORTED_MODULE_40__.c)(t.models[e],o.modelDateMap[e]);n.push(p)}else n.push(t.models[e])}},i=0;i<o.paramModels.length;i++)r();return n},getParamsTargetInTable:function(e,t){for(var n=this,o=this.formulas[t][0],r=o.paramModels,i=this.models[e]||[],a=[],s=0;s<i.length;s++){var l=[];if(r&&r.length)for(var c=function(){var t=r[u];if(t.indexOf(e)>=0){var a=t.split("$$")[1],c=n.flatList.find((function(e){return e.model===a}));c&&"date"===c.type&&o.modelDateMap[e+"/"+a]&&i[s][a]?l.push(Object(_util_index__WEBPACK_IMPORTED_MODULE_40__.c)(i[s][a],o.modelDateMap[e+"/"+a])):l.push(i[s][a])}else{var d=n.flatList.find((function(e){return e.model===t}));d&&"date"===d.type&&o.modelDateMap[t]&&n.models[t]?l.push(Object(_util_index__WEBPACK_IMPORTED_MODULE_40__.c)(n.models[t],o.modelDateMap[t])):l.push(n.models[t])}},u=0;u<r.length;u++)c();a.push(l)}return a},setValueTargetInMain:function(e,t){var n=this.formulas[e][0];this.runFunc(n,t)},setValueTargetInTable:function(e,t,n,o){var r=this.formulas[o][0],i=this.models[e]||[];if(i.length&&!(t.length<n.length))if(t.length>n.length){var a=t.length-1;this.runFunc(r,t[a],e,a)}else{var s=t.findIndex((function(e,t){return e.toString()!==n[t].toString()}));if(s<0)return;var l=t[s].findIndex((function(e,t){return e!==n[s][t]}));if(r.paramModels[l].includes("$$"))this.runFunc(r,t[s],e,s);else for(var c=0;c<i.length;c++)this.runFunc(r,t[c],e,c)}},_loadEvents:function(){if(this.data.config&&this.data.config.eventScript)for(var e=0;e<this.data.config.eventScript.length;e++){var t=this.data.config.eventScript[e];try{this.eventFunction[t.key]=Function("return async function() { "+t.func+" }")().bind(this)}catch(e){this.$alert(e.message,"Function[".concat(t.key,"] 动作设置错误"),{type:"error"})}}},_loadDataSource:function(){if(this.data.config&&this.data.config.dataSource)for(var e=0;e<this.data.config.dataSource.length;e++){var t=this.data.config.dataSource[e];t.auto&&this._sendRequest(t.name)}},_sendRequest:function(e){var t=this,n=this.data.config.dataSource.find((function(t){return t.name===e}));if(n){var o={method:n.method,url:n.url,headers:n.headers,params:n.params};n.requestFunc&&(o=Function("config","return async function(config) { "+n.requestFunc+" }")().bind(this)(o)),Object(axios__WEBPACK_IMPORTED_MODULE_43__.a)(o).then((function(e){var o=e;n.responseFunc&&(o=Function("res","return async function(res) { "+n.responseFunc+" }")().bind(t)(e.data));var r=t.dataSourceValue.find((function(e){return e.key===n.key}));r?r.value=o:t.dataSourceValue.push({key:n.key,value:o})})).catch((function(e){n.errorFunc&&Function("error","return async function(error) { "+n.errorFunc+" }")().bind(t)(e)}))}},getRules:function getRules(plugin){var _this16=this;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__.a)(plugin.rules?plugin.rules.map((function(item){if(item.pattern)return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__.a)({},item),{},{pattern:eval(item.pattern)});if(item.func){var validatorFunc=Function("rule","value","callback",item.func).bind(_this16);return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__.a)({},item),{},{validator:validatorFunc})}return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__.a)({},item)})):[])},generateModel:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.forEach((function(e){var o=e.model;if(e.type!==_util_constants__WEBPACK_IMPORTED_MODULE_52__.a.TABLE&&e.type!==_util_constants__WEBPACK_IMPORTED_MODULE_52__.a.UNITED_FORM&&e.children&&e.children.length)t.generateModel(e.children,e.options?!e.options.hidden:n),t.displayFields[o]=e.options?!e.options.hidden:n;else{if(void 0!==t.formValue[o])e.key&&o&&(t.models[o]=t.formValue[o]),t.displayFields[o]=e.options?!e.options.hidden:n;else{if(e.key&&o&&e.options)if("variable"===e.options.isVariableDefaultValue){var r="未初始化变量数据";t.variables&&(r=t.variables[e.options.defaultVariable]||""),t.models[o]=r}else"formula"===e.options.isVariableDefaultValue?t.models[o]=e.options.defaultValue:(t.models[o]=e.options.defaultValue,_common_consts_widget_components_type_map__WEBPACK_IMPORTED_MODULE_58__.z[e.type]&&setTimeout((function(){var e=t.getComponent("icd-form-".concat(o));e&&e.models&&(t.models[o]=Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__.a)({},t.models[o]),e.models))}),500));t.displayFields[o]=e.options?!e.options.hidden:n}e.children&&e.children.length&&e.children.forEach((function(e){t.rules["".concat(o,".").concat(e.model)]?t.rules["".concat(o,".").concat(e.model)]=[].concat(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__.a)(t.rules["".concat(o,".").concat(e.model)]),Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__.a)(t.getRules(e))):t.rules["".concat(o,".").concat(e.model)]=t.getRules(e)})),t.rules[o]?t.rules[o]=[].concat(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__.a)(t.rules[o]),Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__.a)(t.getRules(e))):t.rules[o]=t.getRules(e)}}))},_getProperty:function(e,t,n){for(var o,r=0;r<e.length;r++)if(e[r].children){var i;t.indexOf(e[r].model)>=0&&e[r].options&&(o=null===(i=e[r].options)||void 0===i?void 0:i[n]);var a=t;t.includes(e[r].model)&&(a=e[r].children.map((function(e){return e.model}))),o=this._getProperty(e[r].children,a,n)}else{var s;t.indexOf(e[r].model)>=0&&e[r].options&&(o=null===(s=e[r].options)||void 0===s?void 0:s[n])}return o},_setProperty:function(e,t,n,o){for(var r=0;r<e.length;r++)if(e[r].children){t.indexOf(e[r].model)>=0&&e[r].options&&this.$set(e[r].options,o,n);var i=t;t.includes(e[r].model)&&(i=e[r].children.map((function(e){return e.model}))),this._setProperty(e[r].children,i,n,o)}else t.indexOf(e[r].model)>=0&&e[r].options&&this.$set(e[r].options,o,n)},_updateClassName:function(e,t,n,o){for(var r=0;r<e.length;r++)if(e[r].children){var i=t;t.includes(e[r].model)&&(i=e[r].children.map((function(e){return e.model}))),this._updateClassName(e[r].children,i,n,o)}else if(t.indexOf(e[r].model)>=0&&("add"!==o||e[r].options.customClass.split(" ").includes(n)||this.$set(e[r].options,"customClass",[].concat(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__.a)(e[r].options.customClass.split(" ")),[n]).join(" ")),"remove"===o&&e[r].options.customClass.split(" ").includes(n))){var a=e[r].options.customClass.split(" ");a.splice(a.findIndex((function(e){return e===n})),1),this.$set(e[r].options,"customClass",a.join(" "))}},_setOptions:function(e,t,n){for(var o=this,r=function(r){if(e[r].children){var i=t;t.includes(e[r].model)&&(i=e[r].children.map((function(e){return e.model}))),o._setOptions(e[r].children,i,n)}else t.indexOf(e[r].model)>=0&&Object.keys(n).forEach((function(t){o.$set(e[r].options,t,n[t])}))},i=0;i<e.length;i++)r(i)},_getData:function(){var e=arguments,t=this;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().m((function n(){var o,r,i,a,s;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().w((function(n){for(;;)switch(n.n){case 0:if(e.length>0&&void 0!==e[0]&&!e[0]||!t.eventFunction.beforeSubmit){n.n=2;break}return n.n=1,t.eventFunction.beforeSubmit();case 1:if(!((o=n.v)instanceof Error)&&o){n.n=2;break}return n.a(2,Promise.reject(o instanceof Error?o:new Error("请按提示完善表单内容(E:BEFORE_SUBMIT)")));case 2:if(r=lodash__WEBPACK_IMPORTED_MODULE_42___default.a.cloneDeep(t.models),!(t.data&&t.data.config&&t.data.config.submitHiddenArea)){n.n=3;break}return n.a(2,r);case 3:for(a in i={},r)s=a.replace("_".concat(_util_widget_public_const__WEBPACK_IMPORTED_MODULE_46__.a),""),(t.displayFields[s]||t.data.config.submitValueCompList&&t.data.config.submitValueCompList.indexOf(a)>-1)&&(i[a]=r[a]);return n.a(2,i);case 4:return n.a(2)}}),n)})))()},_submitted:function(e){return this.eventFunction.submitted&&this.eventFunction.submitted(e)},_beforeDestroy:function(e){return this.eventFunction.beforeDestroy&&this.eventFunction.beforeDestroy(e)},getData:function(){var e=arguments,t=this;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().m((function n(){var o,r,i,a,s,l,c,u,d;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().w((function(n){for(;;)switch(n.p=n.n){case 0:if(o=!(e.length>0&&void 0!==e[0])||e[0],r=!(e.length>1&&void 0!==e[1])||e[1],!o){n.n=14;break}return n.p=1,n.n=2,t.$refs[t.formRef].validate();case 2:i=n.v,a=Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_3__.a)(t.data.list),n.p=3,a.s();case 4:if((s=a.n()).done){n.n=7;break}if(l=s.value,!_common_consts_widget_components_type_map__WEBPACK_IMPORTED_MODULE_58__.z[l.type]){n.n=6;break}if(!((c=t.getComponent("icd-form-".concat(l.model)))&&c.$refs[c.formRef]&&c.$refs[c.formRef].validate)){n.n=6;break}return n.n=5,c.$refs[c.formRef].validate();case 5:!0!==(u=n.v)&&(i=u);case 6:n.n=4;break;case 7:n.n=9;break;case 8:n.p=8,d=n.v,a.e(d);case 9:return n.p=9,a.f(),n.f(9);case 10:if(!i){n.n=11;break}return n.a(2,t._getData(r));case 11:n.n=13;break;case 12:return n.p=12,n.v,n.a(2,Promise.reject(new Error("请按提示完善表单内容")));case 13:n.n=15;break;case 14:return n.a(2,t._getData(r));case 15:return n.a(2)}}),n,null,[[3,8,9,10],[1,12]])})))()},reset:function(){var e=this;this.setData(lodash__WEBPACK_IMPORTED_MODULE_42___default.a.cloneDeep(this.resetModels)),this.$nextTick((function(){e.$refs[e.formRef]&&e.$refs[e.formRef].clearValidate()}))},onInputChange:function(e,t){this.$emit("on-change",t,e,this.models),this.$emit("on-".concat(t,"-change"),e)},display:function(e){var t=this;Object.keys(this.displayFields).forEach((function(n){e.indexOf(n)>=0&&t.$set(t.displayFields,n,!0)})),this.inLineMode||(this.displayFields=Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__.a)({},this.displayFields)),this._setProperty(this.data.list,e,!1,"hidden")},hide:function(e){var t=this;Object.keys(this.displayFields).forEach((function(n){e.indexOf(n)>=0&&t.$set(t.displayFields,n,!1)})),this.inLineMode||(this.displayFields=Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__.a)({},this.displayFields)),this._setProperty(this.data.list,e,!0,"hidden")},disabled:function(e,t){this._setProperty(this.data.list,e,t,"disabled")},setDisabled:function(e,t){this._setProperty(this.data.list,e,t,"disabled")},setReadOnly:function(e,t){this._setProperty(this.data.list,e,t,"readonly")},addClassName:function(e,t){this._updateClassName(this.data.list,e,t,"add")},removeClassName:function(e,t){this._updateClassName(this.data.list,e,t,"remove")},refresh:function(){this._loadDataSource(),this._loadEvents(),this._initForm()},setData:function(e){var t=this;Object.keys(e).forEach((function(n){t.$set(t.models,n,e[n])}))},_findComponentDownward:function(e,t,n){var o=e.$children;if(n)return n;if(0===o.length)n=null;else for(var r=0;r<o.length;r++){var i=o[r];if(Object.keys(i.$refs).indexOf(t)>=0){n=i.$refs[t];break}n=this._findComponentDownward(i,t,n)}return n},setRootNode:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(null!=t&&t.length&&null!=n&&n.length&&null!=o&&o.length){var r=this.getComponentById(t);r?null!=r&&r.compType&&["organization","member"].includes(null==r?void 0:r.compType)?null==r||null===(e=r.setRootNode)||void 0===e||e.call(r,n,o):this.$message.warning("除【组织机构】和【人员选择】组件外不支持 setRootNode()"):this.$message.warning("未找到ID为 ".concat(t," 的组件"))}else this.$message.warning("传参不全,无法执行 setRootNode()")},getComponent:function(e){return Object.keys(this.$refs).indexOf(e)>=0?this.$refs[e]:this._findComponentDownward(this,e,null)},getComponentById:function(e){return this.getComponent("icd-form-".concat(e))},getValues:function(){return this.models},getValue:function(e){return this.models[e]},setValues:function(e){var t=this;Object.keys(e).forEach((function(n){t.$set(t.models,n,e[n])}))},setValue:function(e,t){this.$set(this.models,e,t)},setRules:function(e,t){this.$set(this.rules,e,Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__.a)(t)),this.$refs[this.formRef].clearValidate(e)},setOptions:function(e,t){this._setOptions(this.data.list,e,t)},httpRequest:function(e){return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().m((function t(){return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().w((function(t){for(;;)switch(t.n){case 0:if("get"!==e.type.toLowerCase()){t.n=1;break}return t.a(2,axios__WEBPACK_IMPORTED_MODULE_43__.a.get(e.url,e.config));case 1:if("post"!==e.type.toLowerCase()){t.n=2;break}return t.a(2,axios__WEBPACK_IMPORTED_MODULE_43__.a.post(e.url,e.params,e.config));case 2:if("put"!==e.type.toLowerCase()){t.n=3;break}return t.a(2,axios__WEBPACK_IMPORTED_MODULE_43__.a.put(e.url,e.params,e.config));case 3:if("delete"!==e.type.toLowerCase()){t.n=4;break}return t.a(2,axios__WEBPACK_IMPORTED_MODULE_43__.a.delete(e.url,e.config));case 4:return t.a(2)}}),t)})))()},onTriggerThirdApi:function(e){return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().m((function t(){return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().w((function(t){for(;;)switch(t.n){case 0:return e.body="string"==typeof e.body?e.body:JSON.stringify(e.body),t.n=1,Object(_adapters_api_adapter__WEBPACK_IMPORTED_MODULE_47__.B)(e);case 1:return t.a(2,t.v)}}),t)})))()},xmlToJson:function(e){return(new x2js__WEBPACK_IMPORTED_MODULE_50___default.a).xml2js(e.toString())},getTimeUtils:function(){return moment__WEBPACK_IMPORTED_MODULE_49___default.a},getLodash:function(){return lodash__WEBPACK_IMPORTED_MODULE_42___default.a},getUUID:function(){return Object(uuid__WEBPACK_IMPORTED_MODULE_44__.a)()},getToken:function(){return localStorage.getItem("_token")},getUserInfo:function(){var e=localStorage.getItem("_userInfo");return e&&e.length&&JSON.parse(e)},queryApplicationList:function(e){var t=this;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().m((function n(){var o,r,i,a,s,l,c,u,d,f,p;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().w((function(n){for(;;)switch(n.n){case 0:return o=e.size,r=void 0===o?10:o,i=e.current,a=void 0===i?1:i,s=e.name,l=void 0===s?"":s,c=e.applicationTagId,u=void 0===c?null:c,d=e.status,f=void 0===d?"":d,n.n=1,Object(_adapters_api_adapter__WEBPACK_IMPORTED_MODULE_47__.k)({size:r,current:a,data:{name:l,applicationTagId:u,status:f}});case 1:if(!(p=n.v)||!p.data||"0000"!==p.data.code){n.n=2;break}return n.a(2,p.data&&p.data.data);case 2:return t.$message.warning("应用管理,分页获取应用列表失败"),n.a(2,null);case 3:return n.a(2)}}),n)})))()},getMenuTreeByApplicationId:function(){var e=arguments,t=this;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().m((function n(){var o,r;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().w((function(n){for(;;)switch(n.n){case 0:return o=e.length>0&&void 0!==e[0]?e[0]:"",n.n=1,Object(_adapters_api_adapter__WEBPACK_IMPORTED_MODULE_47__.r)(o);case 1:if(!(r=n.v)||!r.data||"0000"!==r.data.code){n.n=2;break}return n.a(2,r.data&&r.data.data);case 2:return t.$message.warning("根据应用ID获取菜单树失败"),n.a(2,null);case 3:return n.a(2)}}),n)})))()},getFormDataListByPage:function(e){var t=this;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().m((function n(){var o,r,i,a,s,l,c,u,d,f,p;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().w((function(n){for(;;)switch(n.n){case 0:return o=e.formId,r=void 0===o?"":o,i=e.current,a=void 0===i?1:i,s=e.size,l=void 0===s?10:s,c=e.orderBy,u=void 0===c?null:c,d=e.data,f=void 0===d?[]:d,n.n=1,Object(_adapters_api_adapter__WEBPACK_IMPORTED_MODULE_47__.p)({formId:r,current:a,size:l,orderBy:u,data:f});case 1:if(!(p=n.v)||!p.data||"0000"!==p.data.code){n.n=2;break}return n.a(2,p.data&&p.data.data);case 2:return t.$message.warning("按条件筛查表单数据失败"),n.a(2,null);case 3:return n.a(2)}}),n)})))()},getFormData:function(e){var t=this;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().m((function n(){var o;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().w((function(n){for(;;)switch(n.n){case 0:return n.n=1,Object(_adapters_api_adapter__WEBPACK_IMPORTED_MODULE_47__.o)(e);case 1:if(!(o=n.v)||!o.data||"0000"!==o.data.code){n.n=2;break}return n.a(2,o.data&&o.data.data);case 2:return t.$message.warning("获取表单数据详情失败"),n.a(2,null);case 3:return n.a(2)}}),n)})))()},saveFormData:function(e){var t=this;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().m((function n(){var o;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().w((function(n){for(;;)switch(n.n){case 0:return n.n=1,Object(_adapters_api_adapter__WEBPACK_IMPORTED_MODULE_47__.z)(e);case 1:if(!(o=n.v)||!o.data||"0000"!==o.data.code){n.n=2;break}return n.a(2,o.data&&o.data.data);case 2:return t.$message.warning("表单运行管理,提交数据(保存表单数据)失败"),n.a(2,null);case 3:return n.a(2)}}),n)})))()},editFormData:function(e){var t=this;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().m((function n(){var o;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().w((function(n){for(;;)switch(n.n){case 0:return n.n=1,Object(_adapters_api_adapter__WEBPACK_IMPORTED_MODULE_47__.d)(e);case 1:if(!(o=n.v)||!o.data||"0000"!==o.data.code){n.n=2;break}return n.a(2,o.data);case 2:return t.$message.warning("表单运行管理,提交编辑数据失败"),n.a(2,null);case 3:return n.a(2)}}),n)})))()},deleteFormData:function(e){var t=this;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.a)(Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().m((function n(){var o;return Object(D_InspurCode_iss_library_form_designer_node_modules_babel_runtime_helpers_esm_regenerator_js__WEBPACK_IMPORTED_MODULE_1__.a)().w((function(n){for(;;)switch(n.n){case 0:return n.n=1,Object(_adapters_api_adapter__WEBPACK_IMPORTED_MODULE_47__.c)(e);case 1:if(!(o=n.v)||!o.data||"0000"!==o.data.code){n.n=2;break}return n.a(2,o.data);case 2:return t.$message.warning("表单运行管理,删除数据失败"),n.a(2,null);case 3:return n.a(2)}}),n)})))()},getDictOptions:function(e,t){return Object(_adapters_api_instance__WEBPACK_IMPORTED_MODULE_48__.a)(this,{dictId:e,parentId:t})},getDictOptionsByCode:function(e,t){return Object(_adapters_api_instance__WEBPACK_IMPORTED_MODULE_48__.a)(this,{dictId:e,parentCode:t})},setElementOptions:function(e,t){var n=this;this.$nextTick((function(){n._setProperty(n.data.list,e,t,"options")}))},setElementDisabledOptions:function(e,t){this._setProperty(this.data.list,e,t,"disabledOptions")},handleFormButtonDisplay:function(e,t){var n=document.getElementById(e);n&&n.style&&this.$set(n.style,"display","display"===t?"inline-block":"none")},getElementOptions:function(e){var t=this._getProperty(this.data.list,e,"remote");return t===_common_consts_datasource_types__WEBPACK_IMPORTED_MODULE_59__.a.DICT_DATA||t===_common_consts_datasource_types__WEBPACK_IMPORTED_MODULE_59__.a.API_DATA?this._getProperty(this.data.list,e,"remoteOptions"):this._getProperty(this.data.list,e,"options")},openSubPage:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(location.href.indexOf("app-runtime.html")<0)return this.$message.warning("该方法仅限【运行态】可用"),!1;(null===(e=window)||void 0===e||null===(e=e.$icd)||void 0===e||null===(e=e.func)||void 0===e?void 0:e.handleOpenSubPageByFunc)&&window.$icd.func.handleOpenSubPageByFunc(t,n,o,r,i)}}}},"8e51":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MSI1110=t.MSI1010=t.MSI11=t.MSI10=t.MSI=void 0;var o=l(n("124f")),r=l(n("4727")),i=l(n("4461")),a=l(n("8861")),s=l(n("805f"));function l(e){return e&&e.__esModule?e:{default:e}}t.MSI=o.default,t.MSI10=r.default,t.MSI11=i.default,t.MSI1010=a.default,t.MSI1110=s.default},"8f5e":function(e,t,n){"use strict";n("58ab")},"8f94":function(e,t,n){var o;e.exports=(o=n("56b3"),function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=3)}([function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),r=window.CodeMirror||o.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),o=1;o<arguments.length;o++){var r=arguments[o];if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n},writable:!0,configurable:!0}),t.default={name:"codemirror",data:function(){return{content:"",codemirror:null,cminstance:null}},props:{code:String,value:String,marker:Function,unseenLines:Array,name:{type:String,default:"codemirror"},placeholder:{type:String,default:""},merge:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{}}},globalEvents:{type:Array,default:function(){return[]}}},watch:{options:{deep:!0,handler:function(e){for(var t in e)this.cminstance.setOption(t,e[t])}},merge:function(){this.$nextTick(this.switchMerge)},code:function(e){this.handerCodeChange(e)},value:function(e){this.handerCodeChange(e)}},methods:{initialize:function(){var e=this,t=Object.assign({},this.globalOptions,this.options);this.merge?(this.codemirror=r.MergeView(this.$refs.mergeview,t),this.cminstance=this.codemirror.edit):(this.codemirror=r.fromTextArea(this.$refs.textarea,t),this.cminstance=this.codemirror,this.cminstance.setValue(this.code||this.value||this.content)),this.cminstance.on("change",(function(t){e.content=t.getValue(),e.$emit&&e.$emit("input",e.content)}));var n={};["scroll","changes","beforeChange","cursorActivity","keyHandled","inputRead","electricInput","beforeSelectionChange","viewportChange","swapDoc","gutterClick","gutterContextMenu","focus","blur","refresh","optionChange","scrollCursorIntoView","update"].concat(this.events).concat(this.globalEvents).filter((function(e){return!n[e]&&(n[e]=!0)})).forEach((function(t){e.cminstance.on(t,(function(){for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];e.$emit.apply(e,[t].concat(o));var i=t.replace(/([A-Z])/g,"-$1").toLowerCase();i!==t&&e.$emit.apply(e,[i].concat(o))}))})),this.$emit("ready",this.codemirror),this.unseenLineMarkers(),this.refresh()},refresh:function(){var e=this;this.$nextTick((function(){e.cminstance.refresh()}))},destroy:function(){var e=this.cminstance.doc.cm.getWrapperElement();e&&e.remove&&e.remove()},handerCodeChange:function(e){if(e!==this.cminstance.getValue()){var t=this.cminstance.getScrollInfo();this.cminstance.setValue(e),this.content=e,this.cminstance.scrollTo(t.left,t.top)}this.unseenLineMarkers()},unseenLineMarkers:function(){var e=this;void 0!==this.unseenLines&&void 0!==this.marker&&this.unseenLines.forEach((function(t){var n=e.cminstance.lineInfo(t);e.cminstance.setGutterMarker(t,"breakpoints",n.gutterMarkers?null:e.marker())}))},switchMerge:function(){var e=this.cminstance.doc.history,t=this.cminstance.doc.cleanGeneration;this.options.value=this.cminstance.getValue(),this.destroy(),this.initialize(),this.cminstance.doc.history=e,this.cminstance.doc.cleanGeneration=t}},mounted:function(){this.initialize()},beforeDestroy:function(){this.destroy()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=n.n(o);for(var i in o)["default","default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var a=n(5),s=n(4)(r.a,a.a,!1,null,null,null);t.default=s.exports},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.codemirror=t.CodeMirror=void 0;var r=o(n(0)),i=o(n(2)),a=window.CodeMirror||r.default,s=function(e,t){t&&(t.options&&(i.default.props.globalOptions.default=function(){return t.options}),t.events&&(i.default.props.globalEvents.default=function(){return t.events})),e.component(i.default.name,i.default)},l={CodeMirror:a,codemirror:i.default,install:s};t.default=l,t.CodeMirror=a,t.codemirror=i.default,t.install=s},function(e,t){e.exports=function(e,t,n,o,r,i){var a,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(a=e,s=e.default);var c,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=c):o&&(c=o),c){var d=u.functional,f=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(e,t){return c.call(t),f(e,t)}):u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:a,exports:s,options:u}}},function(e,t,n){"use strict";var o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-codemirror",class:{merge:e.merge}},[e.merge?n("div",{ref:"mergeview"}):n("textarea",{ref:"textarea",attrs:{name:e.name,placeholder:e.placeholder}})])},staticRenderFns:[]};t.a=o}]))},"905a":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__905a__},"90aa":function(e,t,n){},"90d8":function(e,t,n){"use strict";var o=n("c65b"),r=n("1a2d"),i=n("3a9b"),a=n("0f33"),s=n("ad6d"),l=RegExp.prototype;e.exports=a.correct?function(e){return e.flags}:function(e){return a.correct||!i(l,e)||r(e,"flags")?e.flags:o(s,e)}},"90e3":function(e,t,n){"use strict";var o=n("e330"),r=0,i=Math.random(),a=o(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+i,36)}},"90fa":function(e,t,n){"use strict";n("cc1a")},"910d":function(e,t,n){"use strict";var o=n("23e7"),r=n("c65b"),i=n("59ed"),a=n("825a"),s=n("46c4"),l=n("c5cc"),c=n("9bdd"),u=n("c430"),d=n("2a62"),f=n("2baa"),p=n("f99f"),m=!u&&!f("filter",(function(){})),h=!u&&!m&&p("filter",TypeError),g=u||m||h,v=l((function(){for(var e,t,n=this.iterator,o=this.predicate,i=this.next;;){if(e=a(r(i,n)),this.done=!!e.done)return;if(t=e.value,c(n,o,[t,this.counter++],!0))return t}}));o({target:"Iterator",proto:!0,real:!0,forced:g},{filter:function(e){a(this);try{i(e)}catch(e){d(this,"throw",e)}return h?r(h,this,e):new v(s(this),{predicate:e})}})},9112:function(e,t,n){"use strict";var o=n("83ab"),r=n("9bf2"),i=n("5c6c");e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9152:function(e,t){
12
12
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
13
- t.read=function(e,t,n,o,r){var i,a,s=8*r-o-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?r-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,o),i-=c}return(p?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var a,s,l,c=8*i-r-1,u=(1<<c)-1,d=u>>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=o?0:i-1,m=o?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+p]=255&s,p+=m,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;e[n+p]=255&a,p+=m,a/=256,c-=8);e[n+p-m]|=128*h}},9224:function(e){e.exports=JSON.parse('{"a":"5.0.3"}')},9225:function(e,t,n){"use strict";n.d(t,"a",(function(){return oe}));var o=n("5530"),r=(n("7db0"),n("e260"),n("d81d"),n("13d5"),n("b0c0"),n("e9f5"),n("f665"),n("ab43"),n("9485"),n("d3b7"),n("ac1f"),n("466d"),n("ddb0"),n("8bbf")),i=n.n(r),a=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],s=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],l=Array.isArray;function c(e){return null!==e&&"object"==typeof e}function u(e){return"string"==typeof e}var d=Object.prototype.toString;function f(e){return"[object Object]"===d.call(e)}function p(e){return null==e}function m(e){return"function"==typeof e}function h(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,o=null;return 1===e.length?c(e[0])||l(e[0])?o=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(c(e[1])||l(e[1]))&&(o=e[1])),{locale:n,params:o}}function g(e){return JSON.parse(JSON.stringify(e))}function v(e,t){return!!~e.indexOf(t)}var b=Object.prototype.hasOwnProperty;function y(e,t){return b.call(e,t)}function _(e){for(var t=arguments,n=Object(e),o=1;o<arguments.length;o++){var r=t[o];if(null!=r){var i=void 0;for(i in r)y(r,i)&&(c(r[i])?n[i]=_(n[i],r[i]):n[i]=r[i])}}return n}function w(e,t){if(e===t)return!0;var n=c(e),o=c(t);if(!n||!o)return!n&&!o&&String(e)===String(t);try{var r=l(e),i=l(t);if(r&&i)return e.length===t.length&&e.every((function(e,n){return w(e,t[n])}));if(r||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return w(e[n],t[n])}))}catch(e){return!1}}function C(e){return null!=e&&Object.keys(e).forEach((function(t){"string"==typeof e[t]&&(e[t]=e[t].replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"))})),e}var x={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,o=t.parent,r=t.props,i=t.slots,a=o.$i18n;if(a){var s=r.path,l=r.locale,c=r.places,u=i(),d=a.i(s,l,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(u)||c?function(e,t){var n=t?function(e){return Array.isArray(e)?e.reduce(T,{}):Object.assign({},e)}(t):{};if(!e)return n;var o=(e=e.filter((function(e){return e.tag||""!==e.text.trim()}))).every(E);return e.reduce(o?O:T,n)}(u.default,c):u),f=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return f?e(f,n,d):d}}};function O(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function T(e,t,n){return e[n]=t,e}function E(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var S,D={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,o=t.parent,r=t.data,i=o.$i18n;if(!i)return null;var s=null,l=null;u(n.format)?s=n.format:c(n.format)&&(n.format.key&&(s=n.format.key),l=Object.keys(n.format).reduce((function(e,t){var o;return v(a,t)?Object.assign({},e,((o={})[t]=n.format[t],o)):e}),null));var d=n.locale||i.locale,f=i._ntp(n.value,d,s,l),p=f.map((function(e,t){var n,o=r.scopedSlots&&r.scopedSlots[e.type];return o?o(((n={})[e.type]=e.value,n.index=t,n.parts=f,n)):e.value})),m=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return m?e(m,{attrs:r.attrs,class:r.class,staticClass:r.staticClass},p):p}};function k(e,t,n){I(e,n)&&P(e,t,n)}function A(e,t,n,o){if(I(e,n)){var r=n.context.$i18n;(function(e,t){var n=t.context;return e._locale===n.$i18n.locale})(e,n)&&w(t.value,t.oldValue)&&w(e._localeMessage,r.getLocaleMessage(r.locale))||P(e,t,n)}}function M(e,t,n,o){if(n.context){var r=n.context.$i18n||{};t.modifiers.preserve||r.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}}function I(e,t){var n=t.context;return!!n&&!!n.$i18n}function P(e,t,n){var o,r,i=function(e){var t,n,o,r;return u(e)?t=e:f(e)&&(t=e.path,n=e.locale,o=e.args,r=e.choice),{path:t,locale:n,args:o,choice:r}}(t.value),a=i.path,s=i.locale,l=i.args,c=i.choice;if((a||s||l)&&a){var d=n.context;e._vt=e.textContent=null!=c?(o=d.$i18n).tc.apply(o,[a,c].concat(R(s,l))):(r=d.$i18n).t.apply(r,[a].concat(R(s,l))),e._locale=d.$i18n.locale,e._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}}function R(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||f(t))&&n.push(t),n}function L(e,t){void 0===t&&(t={bridge:!1}),L.installed=!0,(S=e).version&&Number(S.version.split(".")[0]),function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var o=this.$i18n;return o._t.apply(o,[e,o.locale,o._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],o=arguments.length-2;o-- >0;)n[o]=arguments[o+2];var r=this.$i18n;return r._tc.apply(r,[e,r.locale,r._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],o=arguments.length-1;o-- >0;)n[o]=arguments[o+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],o=arguments.length-1;o-- >0;)n[o]=arguments[o+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}(S),S.mixin(function(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n){if(e.i18n instanceof J){if(e.__i18nBridge||e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach((function(e){t=_(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(e){}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(f(e.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof J?this.$root.$i18n:null;if(n&&(e.i18n.root=this.$root,e.i18n.formatter=n.formatter,e.i18n.fallbackLocale=n.fallbackLocale,e.i18n.formatFallbackMessages=n.formatFallbackMessages,e.i18n.silentTranslationWarn=n.silentTranslationWarn,e.i18n.silentFallbackWarn=n.silentFallbackWarn,e.i18n.pluralizationRules=n.pluralizationRules,e.i18n.preserveDirectiveContent=n.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var o=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach((function(e){o=_(o,JSON.parse(e))})),e.i18n.messages=o}catch(e){}var r=e.i18n.sharedMessages;r&&f(r)&&(e.i18n.messages=_(e.i18n.messages,r)),this._i18n=new J(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof J?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof J&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?(e.i18n instanceof J||f(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof J||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof J)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}(t.bridge)),S.directive("t",{bind:k,update:A,unbind:M}),S.component(x.name,x),S.component(D.name,D),S.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var N=function(){this._caches=Object.create(null)};N.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){for(var t=[],n=0,o="";n<e.length;){var r=e[n++];if("{"===r){o&&t.push({type:"text",value:o}),o="";var i="";for(r=e[n++];void 0!==r&&"}"!==r;)i+=r,r=e[n++];var a="}"===r,s=F.test(i)?"list":a&&j.test(i)?"named":"unknown";t.push({value:i,type:s})}else"%"===r?"{"!==e[n]&&(o+=r):o+=r}return o&&t.push({type:"text",value:o}),t}(e),this._caches[e]=n),function(e,t){var n=[],o=0,r=Array.isArray(t)?"list":c(t)?"named":"unknown";if("unknown"===r)return n;for(;o<e.length;){var i=e[o];switch(i.type){case"text":n.push(i.value);break;case"list":n.push(t[parseInt(i.value,10)]);break;case"named":"named"===r&&n.push(t[i.value]);break;case"unknown":}o++}return n}(n,t)};var F=/^(?:\d)+/,j=/^(?:\w)+/,B=[];B[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},B[1]={ws:[1],".":[2],"[":[4],eof:[7]},B[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},B[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},B[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},B[5]={"'":[4,0],eof:8,else:[5,0]},B[6]={'"':[4,0],eof:8,else:[6,0]};var $=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function z(e){if(null==e)return"eof";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function U(e){var t,n,o,r=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(o=r,$.test(o)?(n=(t=r).charCodeAt(0))!==t.charCodeAt(t.length-1)||34!==n&&39!==n?t:t.slice(1,-1):"*"+r)}var V=function(){this._cache=Object.create(null)};V.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=function(e){var t,n,o,r,i,a,s,l=[],c=-1,u=0,d=0,f=[];function p(){var t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,o="\\"+t,f[0](),!0}for(f[1]=function(){void 0!==n&&(l.push(n),n=void 0)},f[0]=function(){void 0===n?n=o:n+=o},f[2]=function(){f[0](),d++},f[3]=function(){if(d>0)d--,u=4,f[0]();else{if(d=0,void 0===n)return!1;if(!1===(n=U(n)))return!1;f[1]()}};null!==u;)if(c++,"\\"!==(t=e[c])||!p()){if(r=z(t),8===(i=(s=B[u])[r]||s.else||8))return;if(u=i[0],(a=f[i[1]])&&(o=void 0===(o=i[2])?t:o,!1===a()))return;if(7===u)return l}}(e))&&(this._cache[e]=t),t||[]},V.prototype.getPathValue=function(e,t){if(!c(e))return null;var n=this.parsePath(t);if(0===n.length)return null;for(var o=n.length,r=e,i=0;i<o;){var a=r[n[i]];if(null==a)return null;r=a,i++}return r};var H,W=/<\/?[\w\s="/.':;#-\/]+>/,Y=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,q=/^@(?:\.([a-zA-Z]+))?:/,G=/[()]/g,K={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},X=new N,J=function(e){var t=this;void 0===e&&(e={}),!S&&"undefined"!=typeof window&&window.Vue&&L(window.Vue);var n=e.locale||"en-US",o=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),r=e.messages||{},i=e.dateTimeFormats||e.datetimeFormats||{},a=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||X,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._fallbackRootWithEmptyString=void 0===e.fallbackRootWithEmptyString||!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new V,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(e,n){var o,r,i=Object.getPrototypeOf(t);return i&&i.getChoiceIndex?i.getChoiceIndex.call(t,e,n):t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):(o=e,r=n,o=Math.abs(o),2===r?o?o>1?1:0:1:o?Math.min(o,2):0)},this._exist=function(e,n){return!(!e||!n)&&(!p(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])})),this._initVM({locale:n,fallbackLocale:o,messages:r,dateTimeFormats:i,numberFormats:a})},Q={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};J.prototype._checkLocaleMessage=function(e,t,n){var o=function(e,t,n,r){f(n)?Object.keys(n).forEach((function(i){var a=n[i];f(a)?(r.push(i),r.push("."),o(e,t,a,r),r.pop(),r.pop()):(r.push(i),o(e,t,a,r),r.pop())})):l(n)?n.forEach((function(n,i){f(n)?(r.push("["+i+"]"),r.push("."),o(e,t,n,r),r.pop(),r.pop()):(r.push("["+i+"]"),o(e,t,n,r),r.pop())})):u(n)&&W.test(n)&&r.join("")};o(t,e,n,[])},J.prototype._initVM=function(e){var t=S.config.silent;S.config.silent=!0,this._vm=new S({data:e,__VUE18N__INSTANCE__:!0}),S.config.silent=t},J.prototype.destroyVM=function(){this._vm.$destroy()},J.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},J.prototype.unsubscribeDataChanging=function(e){!function(e,t){e.delete(t)}(this._dataListeners,e)},J.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t,n,o=(t=e._dataListeners,n=[],t.forEach((function(e){return n.push(e)})),n),r=o.length;r--;)S.nextTick((function(){o[r]&&o[r].$forceUpdate()}))}),{deep:!0})},J.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,n=this._vm;return this.vm.$watch("locale",(function(o){n.$set(n,"locale",o),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=o),n.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var o=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){o.$set(o,"locale",e),o.$forceUpdate()}),{immediate:!0})},J.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},Q.vm.get=function(){return this._vm},Q.messages.get=function(){return g(this._getMessages())},Q.dateTimeFormats.get=function(){return g(this._getDateTimeFormats())},Q.numberFormats.get=function(){return g(this._getNumberFormats())},Q.availableLocales.get=function(){return Object.keys(this.messages).sort()},Q.locale.get=function(){return this._vm.locale},Q.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},Q.fallbackLocale.get=function(){return this._vm.fallbackLocale},Q.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},Q.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Q.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},Q.missing.get=function(){return this._missing},Q.missing.set=function(e){this._missing=e},Q.formatter.get=function(){return this._formatter},Q.formatter.set=function(e){this._formatter=e},Q.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Q.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},Q.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Q.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},Q.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Q.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},Q.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Q.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var o=this._getMessages();Object.keys(o).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,o[e])}))}},Q.postTranslation.get=function(){return this._postTranslation},Q.postTranslation.set=function(e){this._postTranslation=e},Q.sync.get=function(){return this._sync},Q.sync.set=function(e){this._sync=e},J.prototype._getMessages=function(){return this._vm.messages},J.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},J.prototype._getNumberFormats=function(){return this._vm.numberFormats},J.prototype._warnDefault=function(e,t,n,o,r,i){if(!p(n))return n;if(this._missing){var a=this._missing.apply(null,[e,t,o,r]);if(u(a))return a}if(this._formatFallbackMessages){var s=h.apply(void 0,r);return this._render(t,i,s.params,t)}return t},J.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:p(e))&&!p(this._root)&&this._fallbackRoot},J.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},J.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},J.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},J.prototype._interpolate=function(e,t,n,o,r,i,a){if(!t)return null;var s,c=this._path.getPathValue(t,n);if(l(c)||f(c))return c;if(p(c)){if(!f(t))return null;if(!u(s=t[n])&&!m(s))return null}else{if(!u(c)&&!m(c))return null;s=c}return u(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(e,t,s,o,"raw",i,a)),this._render(s,r,i,n)},J.prototype._link=function(e,t,n,o,r,i,a){var s=n,c=s.match(Y);for(var u in c)if(c.hasOwnProperty(u)){var d=c[u],f=d.match(q),p=f[0],m=f[1],h=d.replace(p,"").replace(G,"");if(v(a,h))return s;a.push(h);var g=this._interpolate(e,t,h,o,"raw"===r?"string":r,"raw"===r?void 0:i,a);if(this._isFallbackRoot(g)){if(!this._root)throw Error("unexpected error");var b=this._root.$i18n;g=b._translate(b._getMessages(),b.locale,b.fallbackLocale,h,o,r,i)}g=this._warnDefault(e,h,g,o,l(i)?i:[i],r),this._modifiers.hasOwnProperty(m)?g=this._modifiers[m](g):K.hasOwnProperty(m)&&(g=K[m](g)),a.pop(),s=g?s.replace(d,g):s}return s},J.prototype._createMessageContext=function(e,t,n,o){var r=this,i=l(e)?e:[],a=c(e)?e:{},s=this._getMessages(),u=this.locale;return{list:function(e){return i[e]},named:function(e){return a[e]},values:e,formatter:t,path:n,messages:s,locale:u,linked:function(e){return r._interpolate(u,s[u]||{},e,null,o,void 0,[e])}}},J.prototype._render=function(e,t,n,o){if(m(e))return e(this._createMessageContext(n,this._formatter||X,o,t));var r=this._formatter.interpolate(e,n,o);return r||(r=X.interpolate(e,n,o)),"string"!==t||u(r)?r:r.join("")},J.prototype._appendItemToChain=function(e,t,n){var o=!1;return v(e,t)||(o=!0,t&&(o="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(o=n[t]))),o},J.prototype._appendLocaleToChain=function(e,t,n){var o,r=t.split("-");do{var i=r.join("-");o=this._appendItemToChain(e,i,n),r.splice(-1,1)}while(r.length&&!0===o);return o},J.prototype._appendBlockToChain=function(e,t,n){for(var o=!0,r=0;r<t.length&&"boolean"==typeof o;r++){var i=t[r];u(i)&&(o=this._appendLocaleToChain(e,i,n))}return o},J.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];for(var o,r=[e];l(r);)r=this._appendBlockToChain(n,r,t);(r=u(o=l(t)?t:c(t)?t.default?t.default:null:t)?[o]:o)&&this._appendBlockToChain(n,r,null),this._localeChainCache[e]=n}return n},J.prototype._translate=function(e,t,n,o,r,i,a){for(var s,l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(!p(s=this._interpolate(u,e[u],o,r,i,a,[o])))return s}return null},J.prototype._t=function(e,t,n,o){for(var r,i=[],a=arguments.length-4;a-- >0;)i[a]=arguments[a+4];if(!e)return"";var s=h.apply(void 0,i);this._escapeParameterHtml&&(s.params=C(s.params));var l=s.locale||t,c=this._translate(n,l,this.fallbackLocale,e,o,"string",s.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[e].concat(i))}return c=this._warnDefault(l,e,c,o,i,"string"),this._postTranslation&&null!=c&&(c=this._postTranslation(c,e)),c},J.prototype.t=function(e){for(var t,n=[],o=arguments.length-1;o-- >0;)n[o]=arguments[o+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},J.prototype._i=function(e,t,n,o,r){var i=this._translate(n,t,this.fallbackLocale,e,o,"raw",r);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,r)}return this._warnDefault(t,e,i,o,[r],"raw")},J.prototype.i=function(e,t,n){return e?(u(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},J.prototype._tc=function(e,t,n,o,r){for(var i,a=[],s=arguments.length-5;s-- >0;)a[s]=arguments[s+5];if(!e)return"";void 0===r&&(r=1);var l={count:r,n:r},c=h.apply(void 0,a);return c.params=Object.assign(l,c.params),a=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((i=this)._t.apply(i,[e,t,n,o].concat(a)),r)},J.prototype.fetchChoice=function(e,t){if(!e||!u(e))return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},J.prototype.tc=function(e,t){for(var n,o=[],r=arguments.length-2;r-- >0;)o[r]=arguments[r+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(o))},J.prototype._te=function(e,t,n){for(var o=[],r=arguments.length-3;r-- >0;)o[r]=arguments[r+3];var i=h.apply(void 0,o).locale||t;return this._exist(n[i],e)},J.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},J.prototype.getLocaleMessage=function(e){return g(this._vm.messages[e]||{})},J.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},J.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,_(void 0!==this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},J.prototype.getDateTimeFormat=function(e){return g(this._vm.dateTimeFormats[e]||{})},J.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},J.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,_(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},J.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var o=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(o)&&delete this._dateTimeFormatters[o]}},J.prototype._localizeDateTime=function(e,t,n,o,r,i){for(var a=t,s=o[a],l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(a=u,!p(s=o[u])&&!p(s[r]))break}if(p(s)||p(s[r]))return null;var d,f=s[r];if(i)d=new Intl.DateTimeFormat(a,Object.assign({},f,i));else{var m=a+"__"+r;(d=this._dateTimeFormatters[m])||(d=this._dateTimeFormatters[m]=new Intl.DateTimeFormat(a,f))}return d.format(e)},J.prototype._d=function(e,t,n,o){if(!n)return(o?new Intl.DateTimeFormat(t,o):new Intl.DateTimeFormat(t)).format(e);var r=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n,o);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return r||""},J.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var o=this.locale,r=null,i=null;return 1===t.length?(u(t[0])?r=t[0]:c(t[0])&&(t[0].locale&&(o=t[0].locale),t[0].key&&(r=t[0].key)),i=Object.keys(t[0]).reduce((function(e,n){var o;return v(s,n)?Object.assign({},e,((o={})[n]=t[0][n],o)):e}),null)):2===t.length&&(u(t[0])&&(r=t[0]),u(t[1])&&(o=t[1])),this._d(e,o,r,i)},J.prototype.getNumberFormat=function(e){return g(this._vm.numberFormats[e]||{})},J.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},J.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,_(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},J.prototype._clearNumberFormat=function(e,t){for(var n in t){var o=e+"__"+n;this._numberFormatters.hasOwnProperty(o)&&delete this._numberFormatters[o]}},J.prototype._getNumberFormatter=function(e,t,n,o,r,i){for(var a=t,s=o[a],l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(a=u,!p(s=o[u])&&!p(s[r]))break}if(p(s)||p(s[r]))return null;var d,f=s[r];if(i)d=new Intl.NumberFormat(a,Object.assign({},f,i));else{var m=a+"__"+r;(d=this._numberFormatters[m])||(d=this._numberFormatters[m]=new Intl.NumberFormat(a,f))}return d},J.prototype._n=function(e,t,n,o){if(!J.availabilities.numberFormat)return"";if(!n)return(o?new Intl.NumberFormat(t,o):new Intl.NumberFormat(t)).format(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,o),i=r&&r.format(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},o))}return i||""},J.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var o=this.locale,r=null,i=null;return 1===t.length?u(t[0])?r=t[0]:c(t[0])&&(t[0].locale&&(o=t[0].locale),t[0].key&&(r=t[0].key),i=Object.keys(t[0]).reduce((function(e,n){var o;return v(a,n)?Object.assign({},e,((o={})[n]=t[0][n],o)):e}),null)):2===t.length&&(u(t[0])&&(r=t[0]),u(t[1])&&(o=t[1])),this._n(e,o,r,i)},J.prototype._ntp=function(e,t,n,o){if(!J.availabilities.numberFormat)return[];if(!n)return(o?new Intl.NumberFormat(t,o):new Intl.NumberFormat(t)).formatToParts(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,o),i=r&&r.formatToParts(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,o)}return i||[]},Object.defineProperties(J.prototype,Q),Object.defineProperty(J,"availabilities",{get:function(){if(!H){var e="undefined"!=typeof Intl;H={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return H}}),J.install=L,J.version="8.28.2";var Z=J;i.a.use(Z);var ee=n("c2c2"),te=ee.keys().map((function(e){return{name:e.match(/.\/(\S+).json/)[1],locale:ee(e)}}));function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return te.reduce((function(t,n){var r=e.find((function(e){return e.locale===n.name}))||{};return t[r.locale||n.name]=Object(o.a)(Object(o.a)({},n.locale),r.message),t}),{})}function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN",n=localStorage.getItem("_iss_fd_language_type")||t;return new Z({locale:n,messages:ne(e)})}},9230:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n("2ad9"),a=n("e762"),s=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var e=this.data.split("").flatMap((function(e){return i.MULTI_SYMBOLS[e]||e})),n=e.map((function(e){return t.getEncoding(e)})).join(""),o=t.checksum(e,20),r=t.checksum(e.concat(o),15);return{text:this.text,data:t.getEncoding("ÿ")+n+t.getEncoding(o)+t.getEncoding(r)+t.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(e){return i.BINARIES[t.symbolValue(e)]}},{key:"getSymbol",value:function(e){return i.SYMBOLS[e]}},{key:"symbolValue",value:function(e){return i.SYMBOLS.indexOf(e)}},{key:"checksum",value:function(e,n){var o=e.slice().reverse().reduce((function(e,o,r){var i=r%n+1;return e+t.symbolValue(o)*i}),0);return t.getSymbol(o%47)}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);t.default=s},9263:function(e,t,n){"use strict";var o,r,i=n("c65b"),a=n("e330"),s=n("577e"),l=n("ad6d"),c=n("9f7f"),u=n("5692"),d=n("7c73"),f=n("69f3").get,p=n("fce3"),m=n("107c"),h=u("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,b=a("".charAt),y=a("".indexOf),_=a("".replace),w=a("".slice),C=(r=/b*/g,i(g,o=/a/,"a"),i(g,r,"a"),0!==o.lastIndex||0!==r.lastIndex),x=c.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(C||O||x||p||m)&&(v=function(e){var t,n,o,r,a,c,u,p=this,m=f(p),T=s(e),E=m.raw;if(E)return E.lastIndex=p.lastIndex,t=i(v,E,T),p.lastIndex=E.lastIndex,t;var S=m.groups,D=x&&p.sticky,k=i(l,p),A=p.source,M=0,I=T;if(D&&(k=_(k,"y",""),-1===y(k,"g")&&(k+="g"),I=w(T,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==b(T,p.lastIndex-1))&&(A="(?: "+A+")",I=" "+I,M++),n=new RegExp("^(?:"+A+")",k)),O&&(n=new RegExp("^"+A+"$(?!\\s)",k)),C&&(o=p.lastIndex),r=i(g,D?n:p,I),D?r?(r.input=w(r.input,M),r[0]=w(r[0],M),r.index=p.lastIndex,p.lastIndex+=r[0].length):p.lastIndex=0:C&&r&&(p.lastIndex=p.global?r.index+r[0].length:o),O&&r&&r.length>1&&i(h,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&S)for(r.groups=c=d(null),a=0;a<S.length;a++)c[(u=S[a])[0]]=r[u[1]];return r}),e.exports=v},9362:function(e,t,n){"use strict";n("fa83")},9418:function(e,t,n){"use strict";n("15c4")},9460:function(e,t,n){"use strict";n("2cba")},"946c":function(e,t,n){},9485:function(e,t,n){"use strict";var o=n("23e7"),r=n("2266"),i=n("59ed"),a=n("825a"),s=n("46c4"),l=n("2a62"),c=n("f99f"),u=n("2ba4"),d=n("d039"),f=TypeError,p=d((function(){[].keys().reduce((function(){}),void 0)})),m=!p&&c("reduce",f);o({target:"Iterator",proto:!0,real:!0,forced:p||m},{reduce:function(e){a(this);try{i(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,n=t?void 0:arguments[1];if(m)return u(m,this,t?[e]:[e,n]);var o=s(this),c=0;if(r(o,(function(o){t?(t=!1,n=o):n=e(n,o,c),c++}),{IS_RECORD:!0}),t)throw new f("Reduce of empty iterator with no initial value");return n}})},"94ca":function(e,t,n){"use strict";var o=n("d039"),r=n("1626"),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===u||n!==c&&(r(t)?o(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},"94ce":function(e,t){!function(){"use strict";var e=function(e){return function(t){return o=typeof(n=t),(null===n?"null":"object"===o&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===o&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":o)===e;var n,o}},t=function(e){return function(t){return typeof t===e}},n=function(e){return function(t){return e===t}},o=e("string"),r=e("object"),i=e("array"),a=n(null),s=t("boolean"),l=n(void 0),c=function(e){return!function(e){return null==e}(e)},u=t("function"),d=t("number"),f=function(){},p=function(e){return function(){return e}},m=function(e){return e},h=function(e,t){return e===t};function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var r=t.concat(n);return e.apply(null,r)}}var v,b,y=function(e){return function(t){return!e(t)}},_=p(!1),w=p(!0),C=function(){return x},x={fold:function(e,t){return e()},isSome:_,isNone:w,getOr:b=m,getOrThunk:v=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:p(null),getOrUndefined:p(void 0),or:b,orThunk:v,map:C,each:f,bind:C,exists:_,forall:w,filter:function(){return C()},toArray:function(){return[]},toString:p("none()")},O=function(e){var t=p(e),n=function(){return r},o=function(t){return t(e)},r={fold:function(t,n){return n(e)},isSome:w,isNone:_,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return O(t(e))},each:function(t){t(e)},bind:o,exists:o,forall:o,filter:function(t){return t(e)?r:x},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return r},T={some:O,none:C,from:function(e){return null==e?x:O(e)}},E=Array.prototype.slice,S=Array.prototype.indexOf,D=Array.prototype.push,k=function(e,t){return n=e,o=t,S.call(n,o)>-1;var n,o},A=function(e,t){for(var n=0,o=e.length;n<o;n++)if(t(e[n],n))return!0;return!1},M=function(e,t){for(var n=[],o=0;o<e;o++)n.push(t(o));return n},I=function(e,t){for(var n=e.length,o=new Array(n),r=0;r<n;r++){var i=e[r];o[r]=t(i,r)}return o},P=function(e,t){for(var n=0,o=e.length;n<o;n++)t(e[n],n)},R=function(e,t){for(var n=[],o=[],r=0,i=e.length;r<i;r++){var a=e[r];(t(a,r)?n:o).push(a)}return{pass:n,fail:o}},L=function(e,t){for(var n=[],o=0,r=e.length;o<r;o++){var i=e[o];t(i,o)&&n.push(i)}return n},N=function(e,t,n){return function(e,t){for(var n=e.length-1;n>=0;n--)t(e[n],n)}(e,(function(e,o){n=t(n,e,o)})),n},F=function(e,t,n){return P(e,(function(e,o){n=t(n,e,o)})),n},j=function(e,t){return function(e,t,n){for(var o=0,r=e.length;o<r;o++){var i=e[o];if(t(i,o))return T.some(i);if(n(i,o))break}return T.none()}(e,t,_)},B=function(e,t){for(var n=0,o=e.length;n<o;n++)if(t(e[n],n))return T.some(n);return T.none()},$=function(e){for(var t=[],n=0,o=e.length;n<o;++n){if(!i(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);D.apply(t,e[n])}return t},z=function(e,t){return $(I(e,t))},U=function(e,t){for(var n=0,o=e.length;n<o;++n)if(!0!==t(e[n],n))return!1;return!0},V=function(e,t){for(var n={},o=0,r=e.length;o<r;o++){var i=e[o];n[String(i)]=t(i,o)}return n},H=function(e){return[e]},W=function(e,t){return t>=0&&t<e.length?T.some(e[t]):T.none()},Y=function(e){return W(e,0)},q=function(e){return W(e,e.length-1)},G=function(e,t){for(var n=0;n<e.length;n++){var o=t(e[n],n);if(o.isSome())return o}return T.none()},K=function(){return(K=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function X(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var J=function(e){var t,n=!1;return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];return n||(n=!0,t=e.apply(null,o)),t}},Q=function(){return Z(0,0)},Z=function(e,t){return{major:e,minor:t}},ee={nu:Z,detect:function(e,t){var n=String(t).toLowerCase();return 0===e.length?Q():function(e,t){var n=function(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(o.test(t))return o}}(e,t);if(!n)return{major:0,minor:0};var o=function(e){return Number(t.replace(n,"$"+e))};return Z(o(1),o(2))}(e,n)},unknown:Q},te=function(e,t){var n=String(t).toLowerCase();return j(e,(function(e){return e.search(n)}))},ne=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},oe=function(e,t){return-1!==e.indexOf(t)},re=function(e,t){return ne(e,t,0)},ie=function(e,t){return ne(e,t,e.length-t.length)},ae=function(e){return function(t){return t.replace(e,"")}}(/^\s+|\s+$/g),se=function(e){return e.length>0},le=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ce=function(e){return function(t){return oe(t,e)}},ue=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return oe(e,"edge/")&&oe(e,"chrome")&&oe(e,"safari")&&oe(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,le],search:function(e){return oe(e,"chrome")&&!oe(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return oe(e,"msie")||oe(e,"trident")}},{name:"Opera",versionRegexes:[le,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ce("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ce("firefox")},{name:"Safari",versionRegexes:[le,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(oe(e,"safari")||oe(e,"mobile/"))&&oe(e,"applewebkit")}}],de=[{name:"Windows",search:ce("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return oe(e,"iphone")||oe(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ce("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ce("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ce("linux"),versionRegexes:[]},{name:"Solaris",search:ce("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ce("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ce("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],fe={browsers:p(ue),oses:p(de)},pe=function(e){var t=e.current,n=e.version,o=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:o("Edge"),isChrome:o("Chrome"),isIE:o("IE"),isOpera:o("Opera"),isFirefox:o("Firefox"),isSafari:o("Safari")}},me={unknown:function(){return pe({current:void 0,version:ee.unknown()})},nu:pe,edge:p("Edge"),chrome:p("Chrome"),ie:p("IE"),opera:p("Opera"),firefox:p("Firefox"),safari:p("Safari")},he=function(e){var t=e.current,n=e.version,o=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:o("Windows"),isiOS:o("iOS"),isAndroid:o("Android"),isOSX:o("OSX"),isLinux:o("Linux"),isSolaris:o("Solaris"),isFreeBSD:o("FreeBSD"),isChromeOS:o("ChromeOS")}},ge={unknown:function(){return he({current:void 0,version:ee.unknown()})},nu:he,windows:p("Windows"),ios:p("iOS"),android:p("Android"),linux:p("Linux"),osx:p("OSX"),solaris:p("Solaris"),freebsd:p("FreeBSD"),chromeos:p("ChromeOS")},ve=function(e,t,n){var o=fe.browsers(),r=fe.oses(),i=t.bind((function(e){return function(e,t){return G(t.brands,(function(t){var n=t.brand.toLowerCase();return j(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:ee.nu(parseInt(t.version,10),0)}}))}))}(o,e)})).orThunk((function(){return function(e,t){return te(e,t).map((function(e){var n=ee.detect(e.versionRegexes,t);return{current:e.name,version:n}}))}(o,e)})).fold(me.unknown,me.nu),a=function(e,t){return te(e,t).map((function(e){var n=ee.detect(e.versionRegexes,t);return{current:e.name,version:n}}))}(r,e).fold(ge.unknown,ge.nu),s=function(e,t,n,o){var r=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!r,a=e.isiOS()||e.isAndroid(),s=a||o("(pointer:coarse)"),l=r||!i&&a&&o("(min-device-width:768px)"),c=i||a&&!l,u=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!c&&!l&&!u;return{isiPad:p(r),isiPhone:p(i),isTablet:p(l),isPhone:p(c),isTouch:p(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:p(u),isDesktop:p(d)}}(a,i,e,n);return{browser:i,os:a,deviceType:s}},be=function(e){return window.matchMedia(e).matches},ye=J((function(){return ve(navigator.userAgent,T.from(navigator.userAgentData),be)})),_e=function(){return ye()},we=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},Ce={fromHtml:function(e,t){var n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1)throw new Error("HTML must have a single root node");return we(n.childNodes[0])},fromTag:function(e,t){var n=(t||document).createElement(e);return we(n)},fromText:function(e,t){var n=(t||document).createTextNode(e);return we(n)},fromDom:we,fromPoint:function(e,t,n){return T.from(e.dom.elementFromPoint(t,n)).map(we)}},xe=function(e,t){var n=e.dom;if(1!==n.nodeType)return!1;var o=n;if(void 0!==o.matches)return o.matches(t);if(void 0!==o.msMatchesSelector)return o.msMatchesSelector(t);if(void 0!==o.webkitMatchesSelector)return o.webkitMatchesSelector(t);if(void 0!==o.mozMatchesSelector)return o.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Oe=function(e){return 1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount},Te=function(e,t){var n=void 0===t?document:t.dom;return Oe(n)?T.none():T.from(n.querySelector(e)).map(Ce.fromDom)},Ee=function(e,t){return e.dom===t.dom},Se=function(e,t){return n=e.dom,o=t.dom,function(e,t,n){return 0!=(e.compareDocumentPosition(t)&n)}(n,o,Node.DOCUMENT_POSITION_CONTAINED_BY);var n,o},De=function(e,t){return _e().browser.isIE()?Se(e,t):function(e,t){var n=e.dom,o=t.dom;return n!==o&&n.contains(o)}(e,t)},ke=xe,Ae=Object.keys,Me=Object.hasOwnProperty,Ie=function(e,t){for(var n=Ae(e),o=0,r=n.length;o<r;o++){var i=n[o];t(e[i],i)}},Pe=function(e,t){return Re(e,(function(e,n){return{k:n,v:t(e,n)}}))},Re=function(e,t){var n={};return Ie(e,(function(e,o){var r=t(e,o);n[r.k]=r.v})),n},Le=function(e,t){var n={};return function(e,t,n,o){Ie(e,(function(e,r){(t(e,r)?n:o)(e,r)}))}(e,t,function(e){return function(t,n){e[n]=t}}(n),f),n},Ne=function(e,t){var n=[];return Ie(e,(function(e,o){n.push(t(e,o))})),n},Fe=function(e){return Ne(e,m)},je=function(e){return Ae(e).length},Be=function(e,t){return $e(e,t)?T.from(e[t]):T.none()},$e=function(e,t){return Me.call(e,t)},ze=function(e,t){return $e(e,t)&&void 0!==e[t]&&null!==e[t]},Ue=["tfoot","thead","tbody","colgroup"],Ve=function(e,t,n){return{element:e,rowspan:t,colspan:n}},He=function(e,t,n){return{element:e,cells:t,section:n}},We=function(e,t,n){return{element:e,isNew:t,isLocked:n}},Ye=function(e,t,n,o){return{element:e,cells:t,section:n,isNew:o}};"undefined"!=typeof window?window:Function("return this;")();var qe=function(e){return e.dom.nodeName.toLowerCase()},Ge=function(e){return e.dom.nodeType},Ke=function(e){return function(t){return Ge(t)===e}},Xe=function(e){return 8===Ge(e)||"#comment"===qe(e)},Je=Ke(1),Qe=Ke(3),Ze=Ke(9),et=Ke(11),tt=function(e){return function(t){return Je(t)&&qe(t)===e}},nt=function(e){return Ce.fromDom(e.dom.ownerDocument)},ot=function(e){return Ze(e)?e:nt(e)},rt=function(e){return T.from(e.dom.parentNode).map(Ce.fromDom)},it=function(e,t){for(var n=u(t)?t:_,o=e.dom,r=[];null!==o.parentNode&&void 0!==o.parentNode;){var i=o.parentNode,a=Ce.fromDom(i);if(r.push(a),!0===n(a))break;o=i}return r},at=function(e){return T.from(e.dom.previousSibling).map(Ce.fromDom)},st=function(e){return T.from(e.dom.nextSibling).map(Ce.fromDom)},lt=function(e){return I(e.dom.childNodes,Ce.fromDom)},ct=function(e,t){var n=e.dom.childNodes;return T.from(n[t]).map(Ce.fromDom)},ut=u(Element.prototype.attachShadow)&&u(Node.prototype.getRootNode),dt=p(ut),ft=ut?function(e){return Ce.fromDom(e.dom.getRootNode())}:ot,pt=function(e){var t,n=ft(e);return et(t=n)&&c(t.dom.host)?T.some(n):T.none()},mt=function(e){return Ce.fromDom(e.dom.host)},ht=function(e){return c(e.dom.shadowRoot)},gt=function(e){var t=Qe(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;var n,o,r=t.ownerDocument;return pt(Ce.fromDom(t)).fold((function(){return r.body.contains(t)}),(n=gt,o=mt,function(e){return n(o(e))}))},vt=function(e){var t=e.dom.body;if(null==t)throw new Error("Body is not available yet");return Ce.fromDom(t)},bt=function(e,t){var n=[];return P(lt(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(bt(e,t))})),n},yt=function(e,t,n){return function(e,t,n){return L(it(e,n),t)}(e,(function(e){return xe(e,t)}),n)},_t=function(e,t){return function(e,t){return L(lt(e),t)}(e,(function(e){return xe(e,t)}))},wt=function(e,t){return function(e,t){var n=void 0===t?document:t.dom;return Oe(n)?[]:I(n.querySelectorAll(e),Ce.fromDom)}(t,e)};function Ct(e,t,n,o,r){return e(n,o)?T.some(n):u(r)&&r(n)?T.none():t(n,o,r)}var xt=function(e,t,n){for(var o=e.dom,r=u(n)?n:_;o.parentNode;){o=o.parentNode;var i=Ce.fromDom(o);if(t(i))return T.some(i);if(r(i))break}return T.none()},Ot=function(e,t,n){return xt(e,(function(e){return xe(e,t)}),n)},Tt=function(e,t){return function(e,t){return j(e.dom.childNodes,(function(e){return t(Ce.fromDom(e))})).map(Ce.fromDom)}(e,(function(e){return xe(e,t)}))},Et=function(e,t){return Te(t,e)},St=function(e,t,n){return Ct((function(e,t){return xe(e,t)}),Ot,e,t,n)},Dt=function(e,t,n){if(!(o(n)||s(n)||d(n)))throw new Error("Attribute value was not simple");e.setAttribute(t,n+"")},kt=function(e,t,n){Dt(e.dom,t,n)},At=function(e,t){var n=e.dom;Ie(t,(function(e,t){Dt(n,t,e)}))},Mt=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},It=function(e,t){return T.from(Mt(e,t))},Pt=function(e,t){e.dom.removeAttribute(t)},Rt=function(e){return F(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},Lt=function(e,t,n){return void 0===n&&(n=h),e.exists((function(e){return n(e,t)}))},Nt=function(e){for(var t=[],n=function(e){t.push(e)},o=0;o<e.length;o++)e[o].each(n);return t},Ft=function(e,t,n){return e.isSome()&&t.isSome()?T.some(n(e.getOrDie(),t.getOrDie())):T.none()},jt=function(e,t){return e?T.some(t):T.none()},Bt=function(e){return void 0!==e.style&&u(e.style.getPropertyValue)},$t=function(e,t,n){if(!o(n))throw new Error("CSS value must be a string: "+n);Bt(e)&&e.style.setProperty(t,n)},zt=function(e,t,n){var o=e.dom;$t(o,t,n)},Ut=function(e,t){var n=e.dom;Ie(t,(function(e,t){$t(n,t,e)}))},Vt=function(e,t){var n=e.dom,o=window.getComputedStyle(n).getPropertyValue(t);return""!==o||gt(e)?o:Ht(n,t)},Ht=function(e,t){return Bt(e)?e.style.getPropertyValue(t):""},Wt=function(e,t){var n=e.dom,o=Ht(n,t);return T.from(o).filter((function(e){return e.length>0}))},Yt=function(e,t){!function(e,t){Bt(e)&&e.style.removeProperty(t)}(e.dom,t),Lt(It(e,"style").map(ae),"")&&Pt(e,"style")},qt=function(e,t,n){return void 0===n&&(n=0),It(e,t).map((function(e){return parseInt(e,10)})).getOr(n)},Gt=function(e,t){return qt(e,t,1)},Kt=function(e){return tt("col")(e)?qt(e,"span",1)>1:Gt(e,"colspan")>1},Xt=function(e){return Gt(e,"rowspan")>1},Jt=function(e,t){return parseInt(Vt(e,t),10)},Qt=p(10),Zt=p(10),en=function(e,t){return tn(e,t,w)},tn=function(e,t,n){return z(lt(e),(function(e){return xe(e,t)?n(e)?[e]:[]:tn(e,t,n)}))},nn=function(e,t){return function(e,t,n){return void 0===n&&(n=_),n(t)?T.none():k(e,qe(t))?T.some(t):Ot(t,e.join(","),(function(e){return xe(e,"table")||n(e)}))}(["td","th"],e,t)},on=function(e){return en(e,"th,td")},rn=function(e){return xe(e,"colgroup")?_t(e,"col"):z(ln(e),(function(e){return _t(e,"col")}))},an=function(e,t){return St(e,"table",t)},sn=function(e){return en(e,"tr")},ln=function(e){return an(e).fold(p([]),(function(e){return _t(e,"colgroup")}))},cn=function(e,t){return I(e,(function(e){if("colgroup"===qe(e)){var n=I(rn(e),(function(e){var t=qt(e,"span",1);return Ve(e,1,t)}));return He(e,n,"colgroup")}return n=I(on(e),(function(e){var t=qt(e,"rowspan",1),n=qt(e,"colspan",1);return Ve(e,t,n)})),He(e,n,t(e))}))},un=function(e){return rt(e).map((function(e){var t=qe(e);return function(e){return k(Ue,e)}(t)?t:"tbody"})).getOr("tbody")},dn=function(e){var t=sn(e),n=X(X([],ln(e),!0),t,!0);return cn(n,un)},fn=function(e,t,n){var o=e.cells,r=o.slice(0,t),i=o.slice(t),a=r.concat(n).concat(i);return hn(e,a)},pn=function(e,t,n){return fn(e,t,[n])},mn=function(e,t,n){e.cells[t]=n},hn=function(e,t){return Ye(e.element,t,e.section,e.isNew)},gn=function(e,t){return e.cells[t]},vn=function(e,t){return gn(e,t).element},bn=function(e){return e.cells.length},yn=function(e){var t=R(e,(function(e){return"colgroup"===e.section}));return{rows:t.fail,cols:t.pass}},_n=function(e,t,n){var o=I(e.cells,n);return Ye(t(e.element),o,e.section,!0)},wn="data-snooker-locked-cols",Cn=function(e){return It(e,wn).bind((function(e){return T.from(e.match(/\d+/g))})).map((function(e){return V(e,w)}))},xn=function(e){var t=F(yn(e).rows,(function(e,t){return P(t.cells,(function(t,n){t.isLocked&&(e[n]=!0)})),e}),{});return function(e,t){var n=E.call(e,0);return n.sort(t),n}(Ne(t,(function(e,t){return parseInt(t,10)})))},On=function(e,t){return e+","+t},Tn=function(e,t){var n=z(e.all,(function(e){return e.cells}));return L(n,t)},En=function(e){var t={},n=[],o=Y(e).map((function(e){return e.element})).bind(an).bind(Cn).getOr({}),r=0,i=0,a=0,s=R(e,(function(e){return"colgroup"===e.section})),l=s.pass,c=s.fail;P(c,(function(e){var s=[];P(e.cells,(function(e){for(var n=0;void 0!==t[On(a,n)];)n++;for(var r=ze(o,n.toString()),l=function(e,t,n,o,r,i){return{element:e,rowspan:t,colspan:n,row:o,column:r,isLocked:i}}(e.element,e.rowspan,e.colspan,a,n,r),c=0;c<e.colspan;c++)for(var u=0;u<e.rowspan;u++){var d=n+c,f=On(a+u,d);t[f]=l,i=Math.max(i,d+1)}s.push(l)})),r++,n.push(He(e.element,s,e.section)),a++}));var u=q(l).map((function(e){var t=function(e){var t={},n=0;return P(e.cells,(function(e){var o=e.colspan;M(o,(function(r){var i=n+r;t[i]=function(e,t,n){return{element:e,colspan:t,column:n}}(e.element,o,i)})),n+=o})),t}(e);return{colgroups:[function(e,t){return{element:e,columns:t}}(e.element,Fe(t))],columns:t}})).getOrThunk((function(){return{colgroups:[],columns:{}}})),d=u.columns,f=u.colgroups;return{grid:function(e,t){return{rows:e,columns:t}}(r,i),access:t,all:n,columns:d,colgroups:f}},Sn={fromTable:function(e){var t=dn(e);return En(t)},generate:En,getAt:function(e,t,n){return T.from(e.access[On(t,n)])},findItem:function(e,t,n){var o=Tn(e,(function(e){return n(t,e.element)}));return o.length>0?T.some(o[0]):T.none()},filterItems:Tn,justCells:function(e){return z(e.all,(function(e){return e.cells}))},justColumns:function(e){return Fe(e.columns)},hasColumns:function(e){return Ae(e.columns).length>0},getColumnAt:function(e,t){return T.from(e.columns[t])}},Dn=function(e,t){var n=t.column,o=t.column+t.colspan-1,r=t.row,i=t.row+t.rowspan-1;return n<=e.finishCol&&o>=e.startCol&&r<=e.finishRow&&i>=e.startRow},kn=function(e,t){return t.column>=e.startCol&&t.column+t.colspan-1<=e.finishCol&&t.row>=e.startRow&&t.row+t.rowspan-1<=e.finishRow},An=function(e,t,n){var o=Sn.findItem(e,t,Ee),r=Sn.findItem(e,n,Ee);return o.bind((function(e){return r.map((function(t){return n=e,o=t,r=Math.min(n.row,o.row),i=Math.min(n.column,o.column),a=Math.max(n.row+n.rowspan-1,o.row+o.rowspan-1),s=Math.max(n.column+n.colspan-1,o.column+o.colspan-1),{startRow:r,startCol:i,finishRow:a,finishCol:s};var n,o,r,i,a,s}))}))},Mn=function(e,t,n){return An(e,t,n).bind((function(t){return function(e,t){for(var n=!0,o=g(kn,t),r=t.startRow;r<=t.finishRow;r++)for(var i=t.startCol;i<=t.finishCol;i++)n=n&&Sn.getAt(e,r,i).exists(o);return n?T.some(t):T.none()}(e,t)}))},In=function(e,t,n){return An(e,t,n).map((function(t){var n=Sn.filterItems(e,g(Dn,t));return I(n,(function(e){return e.element}))}))},Pn=function(e,t){return Sn.findItem(e,t,(function(e,t){return De(t,e)})).map((function(e){return e.element}))},Rn=function(e,t,n){return an(e).bind((function(o){return function(e,t,n,o){return Sn.findItem(e,t,Ee).bind((function(t){var r=n>0?t.row+t.rowspan-1:t.row,i=o>0?t.column+t.colspan-1:t.column;return Sn.getAt(e,r+n,i+o).map((function(e){return e.element}))}))}(Fn(o),e,t,n)}))},Ln=function(e,t,n){var o=Fn(e);return In(o,t,n)},Nn=function(e,t,n,o,r){var i=Fn(e),a=Ee(e,n)?T.some(t):Pn(i,t),s=Ee(e,r)?T.some(o):Pn(i,o);return a.bind((function(e){return s.bind((function(t){return In(i,e,t)}))}))},Fn=Sn.fromTable,jn=function(e,t){rt(e).each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},Bn=function(e,t){st(e).fold((function(){rt(e).each((function(e){zn(e,t)}))}),(function(e){jn(e,t)}))},$n=function(e,t){(function(e){return ct(e,0)})(e).fold((function(){zn(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},zn=function(e,t){e.dom.appendChild(t.dom)},Un=function(e,t){jn(e,t),zn(t,e)},Vn=function(e,t){P(t,(function(n,o){var r=0===o?e:t[o-1];Bn(r,n)}))},Hn=function(e,t){P(t,(function(t){zn(e,t)}))},Wn=function(e){e.dom.textContent="",P(lt(e),(function(e){Yn(e)}))},Yn=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},qn=function(e){var t,n=lt(e);n.length>0&&(t=e,P(n,(function(e){jn(t,e)}))),Yn(e)},Gn=function(e,t){var n=function(t){return e(t)?T.from(t.dom.nodeValue):T.none()};return{get:function(o){if(!e(o))throw new Error("Can only get "+t+" value of a "+t+" node");return n(o).getOr("")},getOption:n,set:function(n,o){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=o}}}(Qe,"text"),Kn=function(e){return Gn.get(e)},Xn=function(e){return Gn.getOption(e)},Jn=function(e,t){return Gn.set(e,t)},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:p({selector:Ot,closest:St,predicate:xt,all:it}),down:p({selector:wt,predicate:bt}),styles:p({get:Vt,getRaw:Wt,set:zt,remove:Yt}),attrs:p({get:Mt,set:kt,remove:Pt,copyTo:function(e,t){var n=Rt(e);At(t,n)}}),insert:p({before:jn,after:Bn,afterAll:Vn,append:zn,appendAll:Hn,prepend:$n,wrap:Un}),remove:p({unwrap:qn,remove:Yn}),create:p({nu:Ce.fromTag,clone:function(e){return Ce.fromDom(e.dom.cloneNode(!1))},text:Ce.fromText}),query:p({comparePosition:function(e,t){return e.dom.compareDocumentPosition(t.dom)},prevSibling:at,nextSibling:st}),property:p({children:lt,name:qe,parent:rt,document:function(e){return ot(e).dom},isText:Qe,isComment:Xe,isElement:Je,isSpecial:function(e){var t=qe(e);return k(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},getLanguage:function(e){return Je(e)?It(e,"lang"):T.none()},getText:Kn,setText:Jn,isBoundary:function(e){return!!Je(e)&&("body"===qe(e)||k(Qn,qe(e)))},isEmptyTag:function(e){return!!Je(e)&&k(["br","img","hr","input"],qe(e))},isNonEditable:function(e){return Je(e)&&"false"===Mt(e,"contenteditable")}}),eq:Ee,is:ke}}var eo,to,no=function(e,t,n,o){var r=t(e,n);return N(o,(function(n,o){var r=t(e,o);return oo(e,n,r)}),r)},oo=function(e,t,n){return t.bind((function(t){return n.filter(g(e.eq,t))}))},ro=function(e,t,n){return n.length>0?function(e,t,n,o){return o(e,t,n[0],n.slice(1))}(e,t,n,no):T.none()},io=function(e,t,n,o){void 0===o&&(o=_);var r=[t].concat(e.up().all(t)),i=[n].concat(e.up().all(n)),a=function(e){return B(e,o).fold((function(){return e}),(function(t){return e.slice(0,t+1)}))},s=a(r),l=a(i),c=j(s,(function(t){return A(l,function(e,t){return g(e.eq,t)}(e,t))}));return{firstpath:s,secondpath:l,shared:c}},ao=Zn(),so=function(e,t){return ro(ao,(function(t,n){return e(n)}),t)},lo=function(e){return Ot(e,"table")},co=function(e,t,n){var o=function(e){return function(t){return void 0!==n&&n(t)||Ee(t,e)}};return Ee(e,t)?T.some({boxes:T.some([e]),start:e,finish:t}):lo(e).bind((function(r){return lo(t).bind((function(i){if(Ee(r,i))return T.some({boxes:Ln(r,e,t),start:e,finish:t});if(De(r,i)){var a=(s=yt(t,"td,th",o(r))).length>0?s[s.length-1]:t;return T.some({boxes:Nn(r,e,r,t,i),start:e,finish:a})}if(De(i,r)){var s,l=(s=yt(e,"td,th",o(i))).length>0?s[s.length-1]:e;return T.some({boxes:Nn(i,e,r,t,i),start:e,finish:l})}return function(e,t,n){return io(ao,e,t,n)}(e,t).shared.bind((function(a){return St(a,"table",n).bind((function(n){var a=yt(t,"td,th",o(n)),s=a.length>0?a[a.length-1]:t,l=yt(e,"td,th",o(n)),c=l.length>0?l[l.length-1]:e;return T.some({boxes:Nn(n,e,r,t,i),start:c,finish:s})}))}))}))}))},uo=function(e,t){var n=wt(e,t);return n.length>0?T.some(n):T.none()},fo=function(e,t,n){return Et(e,t).bind((function(t){return Et(e,n).bind((function(e){return so(lo,[t,e]).map((function(n){return{first:t,last:e,table:n}}))}))}))},po=function(e,t,n,o,r){return function(e,t){return j(e,(function(e){return xe(e,t)}))}(e,r).bind((function(e){return Rn(e,t,n).bind((function(e){return function(e,t){return Ot(e,"table").bind((function(n){return Et(n,t).bind((function(t){return co(t,e).bind((function(e){return e.boxes.map((function(t){return{boxes:t,start:e.start,finish:e.finish}}))}))}))}))}(e,o)}))}))},mo=function(e,t){return uo(e,t)},ho=function(e,t,n){return fo(e,t,n).bind((function(t){var n=function(t){return Ee(e,t)},o=Ot(t.first,"thead,tfoot,tbody,table",n),r=Ot(t.last,"thead,tfoot,tbody,table",n);return o.bind((function(e){return r.bind((function(n){return Ee(e,n)?function(e,t,n){var o=Fn(e);return Mn(o,t,n)}(t.table,t.first,t.last):T.none()}))}))}))},go=function(e){if(!i(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return P(e,(function(o,r){var a=Ae(o);if(1!==a.length)throw new Error("one and only one name per case");var s=a[0],l=o[s];if(void 0!==n[s])throw new Error("duplicate key detected:"+s);if("cata"===s)throw new Error("cannot have a case named cata (sorry)");if(!i(l))throw new Error("case arguments must be an array");t.push(s),n[s]=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n.length;if(i!==l.length)throw new Error("Wrong number of arguments to case "+s+". Expected "+l.length+" ("+l+"), got "+i);var a=function(e){var o=Ae(e);if(t.length!==o.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+o.join(","));if(!U(t,(function(e){return k(o,e)})))throw new Error("Not all branches were specified when using match. Specified: "+o.join(", ")+"\nRequired: "+t.join(", "));return e[s].apply(null,n)};return{fold:function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var i=t[r];return i.apply(null,n)},match:a,log:function(e){}}}})),n},vo=go([{none:[]},{multiple:["elements"]},{single:["element"]}]),bo=function(e,t,n,o){return e.fold(t,n,o)},yo=vo.none,_o=vo.multiple,wo=vo.single,Co=tinymce.util.Tools.resolve("tinymce.PluginManager"),xo=function(e,t){return Ce.fromDom(e.dom.cloneNode(t))},Oo=function(e){return xo(e,!1)},To=function(e){return xo(e,!0)},Eo=function(e,t){var n=Ce.fromTag(t),o=Rt(e);return At(n,o),n},So=function(e,t){var n=function(n){var o=t(n);if(o<=0||null===o){var r=Vt(n,e);return parseFloat(r)||0}return o},o=function(e,t){return F(t,(function(t,n){var o=Vt(e,n),r=void 0===o?0:parseInt(o,10);return isNaN(r)?t:t+r}),0)};return{set:function(t,n){if(!d(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var o=t.dom;Bt(o)&&(o.style[e]=n+"px")},get:n,getOuter:n,aggregate:o,max:function(e,t,n){var r=o(e,n);return t>r?t-r:0}}},Do=function(){var e=_e().browser;return e.isIE()||e.isEdge()},ko=function(e,t){return function(e){var t=parseFloat(e);return isNaN(t)?T.none():T.some(t)}(e).getOr(t)},Ao=function(e,t,n){return ko(Vt(e,t),n)},Mo=function(e){return Vt(e,"box-sizing")},Io=function(e,t,n,o){return t-Ao(e,"padding-"+n,0)-Ao(e,"padding-"+o,0)-Ao(e,"border-"+n+"-width",0)-Ao(e,"border-"+o+"-width",0)},Po=function(e,t){var n=e.dom,o=n.getBoundingClientRect().width||n.offsetWidth;return"border-box"===t?o:Io(e,o,"left","right")},Ro=So("width",(function(e){return e.dom.offsetWidth})),Lo=function(e){return Ro.get(e)},No=function(e){return Ro.getOuter(e)},Fo=function(e){return Po(e,"content-box")},jo=function(e){return Do()?Po(e,Mo(e)):Ao(e,"width",e.dom.offsetWidth)},Bo=function(e,t){void 0===t&&(t=w);var n=e.grid,o=M(n.columns,m),r=M(n.rows,m);return I(o,(function(n){return $o((function(){return z(r,(function(t){return Sn.getAt(e,t,n).filter((function(e){return e.column===n})).toArray()}))}),(function(e){return 1===e.colspan&&t(e.element)}),(function(){return Sn.getAt(e,0,n)}))}))},$o=function(e,t,n){var o=e();return j(o,t).orThunk((function(){return T.from(o[0]).orThunk(n)})).map((function(e){return e.element}))},zo=function(e){var t=e.grid,n=M(t.rows,m),o=M(t.columns,m);return I(n,(function(t){return $o((function(){return z(o,(function(n){return Sn.getAt(e,t,n).filter((function(e){return e.row===t})).fold(p([]),(function(e){return[e]}))}))}),(function(e){return 1===e.rowspan}),(function(){return Sn.getAt(e,t,0)}))}))},Uo=function(e,t){if(t<0||t>=e.length-1)return T.none();var n=e[t].fold((function(){var n=function(e){var t=E.call(e,0);return t.reverse(),t}(e.slice(0,t));return G(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return T.some({value:e,delta:0})})),o=e[t+1].fold((function(){var n=e.slice(t+1);return G(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return T.some({value:e,delta:1})}));return n.bind((function(e){return o.map((function(t){var n=t.delta+e.delta;return Math.abs(t.value-e.value)/n}))}))},Vo=function(e,t){return function(n){return"rtl"===Ho(n)?t:e}},Ho=function(e){return"rtl"===Vt(e,"direction")?"rtl":"ltr"},Wo=So("height",(function(e){var t=e.dom;return gt(e)?t.getBoundingClientRect().height:t.offsetHeight})),Yo=function(e){return Wo.get(e)},qo=function(e){return Wo.getOuter(e)},Go=function(e){return Do()?function(e,t){var n=e.dom,o=n.getBoundingClientRect().height||n.offsetHeight;return"border-box"===t?o:Io(e,o,"top","bottom")}(e,Mo(e)):Ao(e,"height",e.dom.offsetHeight)},Ko=function(e,t){return{left:e,top:t,translate:function(n,o){return Ko(e+n,t+o)}}},Xo=Ko,Jo=function(e,t){return void 0!==e?e:void 0!==t?t:0},Qo=function(e){var t=e.dom.ownerDocument,n=t.body,o=t.defaultView,r=t.documentElement;if(n===e.dom)return Xo(n.offsetLeft,n.offsetTop);var i=Jo(null==o?void 0:o.pageYOffset,r.scrollTop),a=Jo(null==o?void 0:o.pageXOffset,r.scrollLeft),s=Jo(r.clientTop,n.clientTop),l=Jo(r.clientLeft,n.clientLeft);return Zo(e).translate(a-l,i-s)},Zo=function(e){var t=e.dom,n=t.ownerDocument.body;return n===t?Xo(n.offsetLeft,n.offsetTop):gt(e)?function(e){var t=e.getBoundingClientRect();return Xo(t.left,t.top)}(t):Xo(0,0)},er=function(e,t){return{row:e,y:t}},tr=function(e,t){return{col:e,x:t}},nr=function(e){return Qo(e).left+No(e)},or=function(e){return Qo(e).left},rr=function(e,t){return tr(e,or(t))},ir=function(e,t){return tr(e,nr(t))},ar=function(e){return Qo(e).top},sr=function(e,t){return er(e,ar(t))},lr=function(e,t){return er(e,ar(t)+qo(t))},cr=function(e,t,n){if(0===n.length)return[];var o=I(n.slice(1),(function(t,n){return t.map((function(t){return e(n,t)}))})),r=n[n.length-1].map((function(e){return t(n.length-1,e)}));return o.concat([r])},ur={delta:m,positions:function(e){return cr(sr,lr,e)},edge:ar},dr={delta:m,edge:or,positions:function(e){return cr(rr,ir,e)}},fr={delta:function(e){return-e},edge:nr,positions:function(e){return cr(ir,rr,e)}},pr=Vo(dr,fr),mr={delta:function(e,t){return pr(t).delta(e,t)},positions:function(e,t){return pr(t).positions(e,t)},edge:function(e){return pr(e).edge(e)}},hr={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:[""]},gr=(eo=function(e){return"(?:"+e+")?"},to=["Infinity","[0-9]+\\."+eo("[0-9]+")+eo("[eE][+-]?[0-9]+"),"\\.[0-9]+"+eo("[eE][+-]?[0-9]+"),"[0-9]+"+eo("[eE][+-]?[0-9]+")].join("|"),new RegExp("^([+-]?(?:"+to+"))(.*)$")),vr=function(e,t){return T.from(gr.exec(e)).bind((function(e){var n=Number(e[1]),o=e[2];return function(e,t){return A(t,(function(t){return A(hr[t],(function(t){return e===t}))}))}(o,t)?T.some({value:n,unit:o}):T.none()}))},br=/(\d+(\.\d+)?)%/,yr=/(\d+(\.\d+)?)px|em/,_r=tt("col"),wr=function(e,t,n){var o,r=(o=e,T.from(o.dom.parentElement).map(Ce.fromDom)).getOrThunk((function(){return vt(nt(e))}));return t(e)/n(r)*100},Cr=function(e,t){zt(e,"width",t+"px")},xr=function(e,t){zt(e,"width",t+"%")},Or=function(e,t){zt(e,"height",t+"px")},Tr=function(e,t,n,o){var r=parseFloat(e);return ie(e,"%")&&"table"!==qe(t)?function(e,t,n,o){var r=an(e).map((function(e){var o=n(e);return Math.floor(t/100*o)})).getOr(t);return o(e,r),r}(t,r,n,o):r},Er=function(e){var t=function(e){return Go(e)+"px"}(e);return t?Tr(t,e,Yo,Or):Yo(e)},Sr=function(e,t){return Wt(e,t).orThunk((function(){return It(e,t).map((function(e){return e+"px"}))}))},Dr=function(e){return Sr(e,"width")},kr=function(e){return wr(e,Lo,Fo)},Ar=function(e){return _r(e)?Lo(e):jo(e)},Mr=function(e){return function(e,t,n){return n(e)/Gt(e,t)}(e,"rowspan",Er)},Ir=function(e,t,n){zt(e,"width",t+n)},Pr=function(e){return wr(e,Lo,Fo)+"%"},Rr=p(br),Lr=tt("col"),Nr=function(e){return Dr(e).getOrThunk((function(){return Ar(e)+"px"}))},Fr=function(e){return(t=e,Sr(t,"height")).getOrThunk((function(){return Mr(e)+"px"}));var t},jr=function(e,t,n,o,r,i){return e.filter(o).fold((function(){return i(Uo(n,t))}),(function(e){return r(e)}))},Br=function(e,t,n,o){var r=Bo(e),i=Sn.hasColumns(e)?function(e){return I(Sn.justColumns(e),(function(e){return T.from(e.element)}))}(e):r,a=[T.some(mr.edge(t))].concat(I(mr.positions(r,t),(function(e){return e.map((function(e){return e.x}))}))),s=y(Kt);return I(i,(function(e,t){return jr(e,t,a,s,(function(e){if(function(e){var t=_e().browser,n=t.isChrome()||t.isFirefox();return!Lr(e)||n}(e))return n(e);var i,l,c=(i=r[t],l=m,null!=i?l(i):T.none());return jr(c,t,a,s,(function(e){return o(T.some(Lo(e)))}),o)}),o)}))},$r=function(e){return e.map((function(e){return e+"px"})).getOr("")},zr=function(e,t,n){return Br(e,t,Ar,(function(e){return e.getOrThunk(n.minCellWidth)}))},Ur=function(e,t,n,o,r){var i=zo(e),a=[T.some(n.edge(t))].concat(I(n.positions(i,t),(function(e){return e.map((function(e){return e.y}))})));return I(i,(function(e,t){return jr(e,t,a,y(Xt),o,r)}))},Vr=function(e,t){return function(){return gt(e)?t(e):parseFloat(Wt(e,"width").getOr("0"))}},Hr=function(e){var t=Vr(e,Lo),n=p(0);return{width:t,pixelWidth:t,getWidths:function(t,n){return zr(t,e,n)},getCellDelta:n,singleColumnWidth:p([0]),minCellWidth:n,setElementWidth:f,adjustTableWidth:f,isRelative:!0,label:"none"}},Wr=function(e){var t=Vr(e,(function(e){return parseFloat(Pr(e))})),n=Vr(e,Lo);return{width:t,pixelWidth:n,getWidths:function(t,n){return function(e,t,n){return Br(e,t,kr,(function(e){return e.fold((function(){return n.minCellWidth()}),(function(e){return e/n.pixelWidth()*100}))}))}(t,e,n)},getCellDelta:function(e){return e/n()*100},singleColumnWidth:function(e,t){return[100-e]},minCellWidth:function(){return Qt()/n()*100},setElementWidth:xr,adjustTableWidth:function(n){var o=t();xr(e,o+n/100*o)},isRelative:!0,label:"percent"}},Yr=function(e){var t=Vr(e,Lo);return{width:t,pixelWidth:t,getWidths:function(t,n){return zr(t,e,n)},getCellDelta:m,singleColumnWidth:function(e,t){return[Math.max(Qt(),e+t)-e]},minCellWidth:Qt,setElementWidth:Cr,adjustTableWidth:function(n){var o=t()+n;Cr(e,o)},isRelative:!1,label:"pixel"}},qr=function(e){return Dr(e).fold((function(){return Hr(e)}),(function(t){return function(e,t){return null!==Rr().exec(t)?Wr(e):Yr(e)}(e,t)}))},Gr=Yr,Kr=Wr,Xr=function(e,t,n){var o=e[n].element,r=Ce.fromTag("td");zn(r,Ce.fromTag("br")),(t?zn:$n)(o,r)},Jr=function(e,t){var n=function(e){return xe(e.element,t)},o=To(e),r=dn(o),i=qr(e),a=Sn.generate(r),s=function(e,t){var n=e.grid.columns,o=e.grid.rows,r=n,i=0,a=0,s=[],l=[];return Ie(e.access,(function(e){if(s.push(e),t(e)){l.push(e);var n=e.row,c=n+e.rowspan-1,u=e.column,d=u+e.colspan-1;n<o?o=n:c>i&&(i=c),u<r?r=u:d>a&&(a=d)}})),function(e,t,n,o,r,i){return{minRow:e,minCol:t,maxRow:n,maxCol:o,allCells:r,selectedCells:i}}(o,r,i,a,s,l)}(a,n),l="th:not("+t+"),td:not("+t+")",c=tn(o,"th,td",(function(e){return xe(e,l)}));return P(c,Yn),function(e,t,n,o){for(var r=t.grid.columns,i=t.grid.rows,a=0;a<i;a++)for(var s=!1,l=0;l<r;l++)a<n.minRow||a>n.maxRow||l<n.minCol||l>n.maxCol||(Sn.getAt(t,a,l).filter(o).isNone()?Xr(e,s,a):s=!0)}(r,a,s,n),function(e,t,n,o){Ie(n.columns,(function(e){(e.column<t.minCol||e.column>t.maxCol)&&Yn(e.element)}));var r=L(en(e,"tr"),(function(e){return 0===e.dom.childElementCount}));P(r,Yn),t.minCol!==t.maxCol&&t.minRow!==t.maxRow||P(en(e,"th,td"),(function(e){Pt(e,"rowspan"),Pt(e,"colspan")})),Pt(e,wn),Pt(e,"data-snooker-col-series"),qr(e).adjustTableWidth(o)}(o,s,a,function(e,t,n,o){if(0===o.minCol&&t.grid.columns===o.maxCol+1)return 0;var r=zr(t,e,n),i=F(r,(function(e,t){return e+t}),0),a=F(r.slice(o.minCol,o.maxCol+1),(function(e,t){return e+t}),0)/i*n.pixelWidth()-n.pixelWidth();return n.getCellDelta(a)}(e,Sn.fromTable(e),i,s)),o},Qr=function(e){return"img"===qe(e)?1:Xn(e).fold((function(){return lt(e).length}),(function(e){return e.length}))},Zr=["img","br"],ei=function(e){return Xn(e).filter((function(e){return 0!==e.trim().length||e.indexOf(" ")>-1})).isSome()||k(Zr,qe(e))},ti=function(e){return t=ei,(n=function(e){for(var o=0;o<e.childNodes.length;o++){var r=Ce.fromDom(e.childNodes[o]);if(t(r))return T.some(r);var i=n(e.childNodes[o]);if(i.isSome())return i}return T.none()})(e.dom);var t,n},ni=function(e){return oi(e,ei)},oi=function(e,t){var n=function(e){for(var o=lt(e),r=o.length-1;r>=0;r--){var i=o[r];if(t(i))return T.some(i);var a=n(i);if(a.isSome())return a}return T.none()};return n(e)},ri={scope:["row","col"]},ii=function(e){return function(){var t=Ce.fromTag("td",e.dom);return zn(t,Ce.fromTag("br",e.dom)),t}},ai=function(e){return function(){return Ce.fromTag("col",e.dom)}},si=function(e){return function(){return Ce.fromTag("colgroup",e.dom)}},li=function(e){return function(){return Ce.fromTag("tr",e.dom)}},ci=function(e,t,n){var o=function(e,t){var n=Eo(e,t),o=lt(To(e));return Hn(n,o),n}(e,t);return Ie(n,(function(e,t){null===e?Pt(o,t):kt(o,t,e)})),o},ui=function(e){return e},di=function(e,t,n){var o=function(e,t){var n,o,r,i;n=e.element,o=t,r=n.dom,i=o.dom,Bt(r)&&Bt(i)&&(i.style.cssText=r.style.cssText),Yt(t,"height"),1!==e.colspan&&Yt(t,"width")};return{col:function(n){var r=Ce.fromTag(qe(n.element),t.dom);return o(n,r),e(n.element,r),r},colgroup:si(t),row:li(t),cell:function(r){var i=Ce.fromTag(qe(r.element),t.dom),a=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),s=a.length>0?function(e,t,n){return ti(e).map((function(o){var r=n.join(","),i=yt(o,r,(function(t){return Ee(t,e)}));return N(i,(function(e,t){var n=Oo(t);return Pt(n,"contenteditable"),zn(e,n),n}),t)})).getOr(t)}(r.element,i,a):i;return zn(s,Ce.fromTag("br")),o(r,i),function(e,t){Ie(ri,(function(n,o){return It(e,o).filter((function(e){return k(n,e)})).each((function(e){return kt(t,o,e)}))}))}(r.element,i),e(r.element,i),i},replace:ci,colGap:ai(t),gap:ii(t)}},fi=function(e){return{col:ai(e),colgroup:si(e),row:li(e),cell:ii(e),replace:ui,colGap:ai(e),gap:ii(e)}},pi=function(e){return I(e,Ce.fromDom)},mi=function(e){return Ce.fromDom(e.getBody())},hi=function(e){return e.getBoundingClientRect().width},gi=function(e){return e.getBoundingClientRect().height},vi=function(e){return function(t){return Ee(t,mi(e))}},bi=function(e){return/^\d+(\.\d+)?$/.test(e)?e+"px":e},yi=function(e){Pt(e,"data-mce-style");var t=function(e){return Pt(e,"data-mce-style")};P(on(e),t),P(rn(e),t),P(sn(e),t)},_i=function(e){return Ce.fromDom(e.selection.getStart())},wi=function(e){return bo(e.get(),p([]),m,H)},Ci=function(e){var t=function(e,t){return It(e,t).exists((function(e){return parseInt(e,10)>1}))},n=wi(e);return n.length>0&&U(n,(function(e){return t(e,"rowspan")||t(e,"colspan")}))?T.some(n):T.none()},xi=function(e,t,n){return bo(t.get(),T.none,(function(t){return t.length<=1?T.none():ho(e,n.firstSelectedSelector,n.lastSelectedSelector).map((function(e){return{bounds:e,cells:t}}))}),T.none)},Oi={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]"},Ti=function(e,t,n){return{element:n,mergable:xi(t,e,Oi),unmergable:Ci(e),selection:wi(e)}},Ei=function(e){return function(t,n){var o,r=qe(t),i="col"===r||"colgroup"===r?an(o=t).bind((function(e){return mo(e,Oi.firstSelectedSelector)})).fold(p(o),(function(e){return e[0]})):t;return St(i,e,n)}},Si=Ei("th,td,caption"),Di=Ei("th,td"),ki=function(e){return wi(e)},Ai=function(e,t,n){e.on("BeforeGetContent",(function(n){!0===n.selection&&bo(t.get(),f,(function(t){n.preventDefault(),function(e){return an(e[0]).map((function(e){var t=Jr(e,"[data-mce-selected]");return yi(t),[t]}))}(t).each((function(t){n.content="text"===n.format?function(e){return I(e,(function(e){return e.dom.innerText})).join("")}(t):function(e,t){return I(t,(function(t){return e.selection.serializer.serialize(t.dom,{})})).join("")}(e,t)}))}),f)})),e.on("BeforeSetContent",(function(o){if(!0===o.selection&&!0===o.paste){var r=ki(t);Y(r).each((function(t){an(t).each((function(r){var i,a,s,l=L((i=o.content,(s=(a||document).createElement("div")).innerHTML=i,lt(Ce.fromDom(s))),(function(e){return"meta"!==qe(e)})),c=tt("table");if(1===l.length&&c(l[0])){o.preventDefault();var u=Ce.fromDom(e.getDoc()),d=fi(u),f=function(e,t,n){return{element:e,clipboard:t,generators:n}}(t,l[0],d);n.pasteCells(r,f).each((function(){e.focus()}))}}))}))}}))},Mi=go([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Ii=K({},Mi),Pi=function(e,t,n,o,r){var i=e.slice(0),a=function(e,t){return 0===e.length?Ii.none():1===e.length?Ii.only(0):0===t?Ii.left(0,1):t===e.length-1?Ii.right(t-1,t):t>0&&t<e.length-1?Ii.middle(t-1,t,t+1):Ii.none()}(e,t),s=p(I(i,p(0)));return a.fold(s,(function(e){return o.singleColumnWidth(i[e],n)}),(function(e,t){return r.calcLeftEdgeDeltas(i,e,t,n,o.minCellWidth(),o.isRelative)}),(function(e,t,a){return r.calcMiddleDeltas(i,e,t,a,n,o.minCellWidth(),o.isRelative)}),(function(e,t){return r.calcRightEdgeDeltas(i,e,t,n,o.minCellWidth(),o.isRelative)}))},Ri=function(e,t,n){for(var o=0,r=e;r<t;r++)o+=void 0!==n[r]?n[r]:0;return o},Li=function(e,t){var n=Sn.justCells(e);return I(n,(function(e){var n=Ri(e.row,e.row+e.rowspan,t);return{element:e.element,height:n,rowspan:e.rowspan}}))},Ni=function(e,t){return Sn.hasColumns(e)?function(e,t){var n=Sn.justColumns(e);return I(n,(function(e,n){return{element:e.element,width:t[n],colspan:e.colspan}}))}(e,t):function(e,t){var n=Sn.justCells(e);return I(n,(function(e){var n=Ri(e.column,e.column+e.colspan,t);return{element:e.element,width:n,colspan:e.colspan}}))}(e,t)},Fi=function(e,t,n){var o=Ni(e,t);P(o,(function(e){n.setElementWidth(e.element,e.width)}))},ji=function(e,t,n,o,r){var i=Sn.fromTable(e),a=r.getCellDelta(t),s=r.getWidths(i,r),l=n===i.grid.columns-1,c=o.clampTableDelta(s,n,a,r.minCellWidth(),l),u=Pi(s,n,c,r,o),d=I(u,(function(e,t){return e+s[t]}));Fi(i,d,r),o.resizeTable(r.adjustTableWidth,c,l)},Bi=function(e,t,n,o){var r=Sn.fromTable(e),i=function(e,t,n){return Ur(e,t,n,Mr,(function(e){return e.getOrThunk(Zt)}))}(r,e,o),a=I(i,(function(e,o){return n===o?Math.max(t+e,Zt()):e})),s=Li(r,a),l=function(e,t){return I(e.all,(function(e,n){return{element:e.element,height:t[n]}}))}(r,a);P(l,(function(e){Or(e.element,e.height)})),P(s,(function(e){Or(e.element,e.height)}));var c=N(a,(function(e,t){return e+t}),0);Or(e,c)},$i=function(e){return I(e,p(0))},zi=function(e,t,n,o,r){return r(e.slice(0,t)).concat(o).concat(r(e.slice(n)))},Ui=function(e){return function(t,n,o,r){if(e(o)){var i=Math.max(r,t[n]-Math.abs(o)),a=Math.abs(i-t[n]);return o>=0?a:-a}return o}},Vi=Ui((function(e){return e<0})),Hi=Ui(w),Wi=function(){var e=function(e,t,n,o){var r=(100+n)/100,i=Math.max(o,(e[t]+n)/r);return I(e,(function(e,n){return(n===t?i:e/r)-e}))},t=function(t,n,o,r,i,a){return a?e(t,n,r,i):function(e,t,n,o,r){var i=Vi(e,t,o,r);return zi(e,t,n+1,[i,0],$i)}(t,n,o,r,i)};return{resizeTable:function(e,t){return e(t)},clampTableDelta:Vi,calcLeftEdgeDeltas:t,calcMiddleDeltas:function(e,n,o,r,i,a,s){return t(e,o,r,i,a,s)},calcRightEdgeDeltas:function(t,n,o,r,i,a){if(a)return e(t,o,r,i);var s=Vi(t,o,r,i);return $i(t.slice(0,o)).concat([s])},calcRedestributedWidths:function(e,t,n,o){if(o){var r=(t+n)/t,i=I(e,(function(e){return e/r}));return{delta:100*r-100,newSizes:i}}return{delta:n,newSizes:e}}}},Yi=function(){var e=function(e,t,n,o,r){var i=Hi(e,o>=0?n:t,o,r);return zi(e,t,n+1,[i,-i],$i)};return{resizeTable:function(e,t,n){n&&e(t)},clampTableDelta:function(e,t,n,o,r){if(r){if(n>=0)return n;var i=F(e,(function(e,t){return e+t-o}),0);return Math.max(-i,n)}return Vi(e,t,n,o)},calcLeftEdgeDeltas:e,calcMiddleDeltas:function(t,n,o,r,i,a){return e(t,o,r,i,a)},calcRightEdgeDeltas:function(e,t,n,o,r,i){if(i)return $i(e);var a=o/e.length;return I(e,p(a))},calcRedestributedWidths:function(e,t,n,o){return{delta:0,newSizes:e}}}},qi=function(e,t){var n=T.from(e.dom.documentElement).map(Ce.fromDom).getOr(e);return{parent:p(n),view:p(e),origin:p(Xo(0,0)),isResizable:t}},Gi=function(e,t,n){return{parent:p(t),view:p(e),origin:p(Xo(0,0)),isResizable:n}},Ki=go([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),Xi=function(e,t,n){var o=n.substring(0,n.length-e.length),r=parseFloat(o);return o===r.toString()?t(r):Ki.invalid(n)},Ji=K(K({},Ki),{from:function(e){return ie(e,"%")?Xi("%",Ki.percent,e):ie(e,"px")?Xi("px",Ki.pixels,e):Ki.invalid(e)}}),Qi=function(e,t,n){return e.fold((function(){return t}),(function(e){return function(e,t,n){var o=n/t;return I(e,(function(e){return Ji.from(e).fold((function(){return e}),(function(e){return e*o+"px"}),(function(e){return e/100*n+"px"}))}))}(t,n,e)}),(function(e){return function(e,t){return I(e,(function(e){return Ji.from(e).fold((function(){return e}),(function(e){return e/t*100+"%"}),(function(e){return e+"%"}))}))}(t,n)}))},Zi=function(e,t,n){var o=Ji.from(n),r=U(e,(function(e){return"0px"===e}))?function(e,t){var n=e.fold((function(){return p("")}),(function(e){return p(e/t+"px")}),(function(){return p(100/t+"%")}));return M(t,n)}(o,e.length):Qi(o,e,t);return na(r)},ea=function(e,t){return 0===e.length?t:N(e,(function(e,t){return Ji.from(t).fold(p(0),m,m)+e}),0)},ta=function(e,t){return Ji.from(e).fold(p(e),(function(e){return e+t+"px"}),(function(e){return e+t+"%"}))},na=function(e){if(0===e.length)return e;var t=N(e,(function(e,t){var n=Ji.from(t).fold((function(){return{value:t,remainder:0}}),(function(e){return function(e,t){var n=Math.floor(e);return{value:n+t,remainder:e-n}}(e,"px")}),(function(e){return{value:e+"%",remainder:0}}));return{output:[n.value].concat(e.output),remainder:e.remainder+n.remainder}}),{output:[],remainder:0}),n=t.output;return n.slice(0,n.length-1).concat([ta(n[n.length-1],Math.round(t.remainder))])},oa=Ji.from,ra=function(e){return oa(e).fold(p("px"),p("px"),p("%"))},ia=function(e,t,n){var o=Sn.fromTable(e),r=o.all,i=Sn.justCells(o),a=Sn.justColumns(o);t.each((function(t){var n=ra(t),r=Lo(e),s=function(e,t){return Br(e,t,Nr,$r)}(o,e),l=Zi(s,r,t);Sn.hasColumns(o)?function(e,t,n){P(t,(function(t,o){var r=ea([e[o]],Qt());zt(t.element,"width",r+n)}))}(l,a,n):function(e,t,n){P(t,(function(t){var o=e.slice(t.column,t.colspan+t.column),r=ea(o,Qt());zt(t.element,"width",r+n)}))}(l,i,n),zt(e,"width",t)})),n.each((function(t){var n=ra(t),a=Yo(e),s=function(e,t,n){return Ur(e,t,n,Fr,$r)}(o,e,ur);!function(e,t,n,o){P(n,(function(t){var n=e.slice(t.row,t.rowspan+t.row),r=ea(n,Zt());zt(t.element,"height",r+o)})),P(t,(function(t,n){zt(t.element,"height",e[n])}))}(Zi(s,a,t),r,i,n),zt(e,"height",t)}))},aa=function(e){return Dr(e).exists((function(e){return br.test(e)}))},sa=function(e){return Dr(e).exists((function(e){return yr.test(e)}))},la=function(e){return Dr(e).isNone()},ca=function(e){return Sn.fromTable(e).grid},ua=function(e){var t=[];return{bind:function(e){if(void 0===e)throw new Error("Event bind error: undefined handler");t.push(e)},unbind:function(e){t=L(t,(function(t){return t!==e}))},trigger:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var r={};P(e,(function(e,t){r[e]=n[t]})),P(t,(function(e){e(r)}))}}},da=function(e){return{registry:Pe(e,(function(e){return{bind:e.bind,unbind:e.unbind}})),trigger:Pe(e,(function(e){return e.trigger}))}},fa=function(e){return e.slice(0).sort()},pa=function(e,t,n){if(0===t.length)throw new Error("You must specify at least one required field.");var r;return function(e,t){if(!i(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");P(t,(function(t){if(!o(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")}))}("required",t),r=fa(t),j(r,(function(e,t){return t<r.length-1&&e===r[t+1]})).each((function(e){throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+r.join(", ")+"].")})),function(o){var r=Ae(o);U(t,(function(e){return k(r,e)}))||function(e,t){throw new Error("All required keys ("+fa(e).join(", ")+") were not specified. Specified keys were: "+fa(t).join(", ")+".")}(t,r),e(t,r);var i=L(t,(function(e){return!n.validate(o[e],e)}));return i.length>0&&function(e,t){throw new Error("All values need to be of type: "+t+". Keys ("+fa(e).join(", ")+") were not.")}(i,n.label),o}},ma=function(e,t){var n=L(t,(function(t){return!k(e,t)}));n.length>0&&function(e){throw new Error("Unsupported keys for object: "+fa(e).join(", "))}(n)},ha=function(e){return function(e,t){return pa(e,t,{validate:u,label:"function"})}(ma,e)},ga=ha(["compare","extract","mutate","sink"]),va=ha(["element","start","stop","destroy"]),ba=ha(["forceDrop","drop","move","delayDrop"]),ya=function(){var e=T.none(),t=da({move:ua(["info"])});return{onEvent:function(n,o){o.extract(n).each((function(n){(function(t,n){var o=e.map((function(e){return t.compare(e,n)}));return e=T.some(n),o})(o,n).each((function(e){t.trigger.move(e)}))}))},reset:function(){e=T.none()},events:t.registry}},_a=function(){var e,t=(e=da({move:ua(["info"])}),{onEvent:f,reset:f,events:e.registry}),n=ya(),o=t;return{on:function(){o.reset(),o=n},off:function(){o.reset(),o=t},isOn:function(){return o===n},onEvent:function(e,t){o.onEvent(e,t)},events:n.events}},wa=function(e,t,n){var o,r,i,s,l=!1,c=da({start:ua([]),stop:ua([])}),u=_a(),d=function(){m.stop(),u.isOn()&&(u.off(),c.trigger.stop())},f=(o=d,r=200,i=null,{cancel:s=function(){a(i)||(clearTimeout(i),i=null)},throttle:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];s(),i=setTimeout((function(){i=null,o.apply(null,e)}),r)}});u.events.move.bind((function(n){t.mutate(e,n.info)}));var p=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];l&&e.apply(null,t)}},m=t.sink(ba({forceDrop:d,drop:p(d),move:p((function(e){f.cancel(),u.onEvent(e,t)})),delayDrop:p(f.throttle)}),n);return{element:m.element,go:function(e){m.start(e),u.on(),c.trigger.start()},on:function(){l=!0},off:function(){l=!1},destroy:function(){m.destroy()},events:c.registry}},Ca=function(e){var t,n,o=Ce.fromDom(function(e){if(dt()&&c(e.target)){var t=Ce.fromDom(e.target);if(Je(t)&&ht(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return Y(n)}}return T.from(e.target)}(e).getOr(e.target)),r=function(){return e.stopPropagation()},i=function(){return e.preventDefault()},a=(t=i,n=r,function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t(n.apply(null,e))});return function(e,t,n,o,r,i,a){return{target:e,x:t,y:n,stop:o,prevent:r,kill:i,raw:a}}(o,e.clientX,e.clientY,r,i,a,e)},xa=function(e,t,n,o,r){var i=function(e,t){return function(n){e(n)&&t(Ca(n))}}(n,o);return e.dom.addEventListener(t,i,r),{unbind:g(Oa,e,t,i,r)}},Oa=function(e,t,n,o){e.dom.removeEventListener(t,n,o)},Ta=w,Ea=function(e,t,n){return function(e,t,n,o){return xa(e,t,n,o,!1)}(e,t,Ta,n)},Sa=Ca,Da=function(e,t){var n=Mt(e,t);return void 0===n||""===n?[]:n.split(" ")},ka=function(e){return void 0!==e.dom.classList},Aa=function(e,t){return function(e,t,n){var o=Da(e,t).concat([n]);return kt(e,t,o.join(" ")),!0}(e,"class",t)},Ma=function(e,t){ka(e)?e.dom.classList.add(t):Aa(e,t)},Ia=function(e,t){return ka(e)&&e.dom.classList.contains(t)},Pa=function(e){var t=e.replace(/\./g,"-");return{resolve:function(e){return t+"-"+e}}},Ra=Pa("ephox-dragster"),La=Ra.resolve,Na=ga({compare:function(e,t){return Xo(t.left-e.left,t.top-e.top)},extract:function(e){return T.some(Xo(e.x,e.y))},sink:function(e,t){var n=function(e){var t=K({layerClass:La("blocker")},e),n=Ce.fromTag("div");return kt(n,"role","presentation"),Ut(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),Ma(n,La("blocker")),Ma(n,t.layerClass),{element:p(n),destroy:function(){Yn(n)}}}(t),o=Ea(n.element(),"mousedown",e.forceDrop),r=Ea(n.element(),"mouseup",e.drop),i=Ea(n.element(),"mousemove",e.move),a=Ea(n.element(),"mouseout",e.delayDrop);return va({element:n.element,start:function(e){zn(e,n.element())},stop:function(){Yn(n.element())},destroy:function(){n.destroy(),r.unbind(),i.unbind(),a.unbind(),o.unbind()}})},mutate:function(e,t){e.mutate(t.left,t.top)}}),Fa=function(e){return St(e,"[contenteditable]")},ja=function(e,t){return void 0===t&&(t=!1),!_e().browser.isIE()&&gt(e)?e.dom.isContentEditable:Fa(e).fold(p(t),(function(e){return"true"===Ba(e)}))},Ba=function(e){return e.dom.contentEditable},$a=Pa("ephox-snooker"),za=$a.resolve,Ua=function(){var e=da({drag:ua(["xDelta","yDelta","target"])}),t=T.none(),n=function(){var e=da({drag:ua(["xDelta","yDelta"])});return{mutate:function(t,n){e.trigger.drag(t,n)},events:e.registry}}();return n.events.drag.bind((function(n){t.each((function(t){e.trigger.drag(n.xDelta,n.yDelta,t)}))})),{assign:function(e){t=T.some(e)},get:function(){return t},mutate:n.mutate,events:e.registry}},Va=za("resizer-bar"),Ha=za("resizer-rows"),Wa=za("resizer-cols"),Ya=function(e){var t=wt(e.parent(),"."+Va);P(t,Yn)},qa=function(e,t,n){var o=e.origin();P(t,(function(t){t.each((function(t){var r=n(o,t);Ma(r,Va),zn(e.parent(),r)}))}))},Ga=function(e,t,n,o){qa(e,t,(function(e,t){var r,i,a,s,l,c,u=(r=t.col,i=t.x-e.left,a=n.top-e.top,s=7,l=o,c=Ce.fromTag("div"),Ut(c,{position:"absolute",left:i-s/2+"px",top:a+"px",height:l+"px",width:s+"px"}),At(c,{"data-column":r,role:"presentation"}),c);return Ma(u,Wa),u}))},Ka=function(e,t,n,o){qa(e,t,(function(e,t){var r=function(e,t,n,o,r){var i=Ce.fromTag("div");return Ut(i,{position:"absolute",left:t+"px",top:n-r/2+"px",height:r+"px",width:o+"px"}),At(i,{"data-row":e,role:"presentation"}),i}(t.row,n.left-e.left,t.y-e.top,o,7);return Ma(r,Ha),r}))},Xa=function(e,t,n,o,r){var i=Qo(n),a=t.isResizable,s=o.length>0?ur.positions(o,n):[],l=s.length>0?function(e,t){return z(e.all,(function(e,n){return t(e.element)?[n]:[]}))}(e,a):[],c=L(s,(function(e,t){return A(l,(function(e){return t===e}))}));Ka(t,c,i,No(n));var u=r.length>0?mr.positions(r,n):[],d=u.length>0?function(e,t){var n=[];return M(e.grid.columns,(function(o){Sn.getColumnAt(e,o).map((function(e){return e.element})).forall(t)&&n.push(o)})),L(n,(function(n){var o=Sn.filterItems(e,(function(e){return e.column===n}));return U(o,(function(e){return t(e.element)}))}))}(e,a):[],f=L(u,(function(e,t){return A(d,(function(e){return t===e}))}));Ga(t,f,i,qo(n))},Ja=function(e,t){if(Ya(e),e.isResizable(t)){var n=Sn.fromTable(t),o=zo(n),r=Bo(n);Xa(n,e,t,o,r)}},Qa=function(e,t){var n=wt(e.parent(),"."+Va);P(n,t)},Za=function(e){Qa(e,(function(e){zt(e,"display","none")}))},es=function(e){Qa(e,(function(e){zt(e,"display","block")}))},ts=za("resizer-bar-dragging"),ns=function(e){var t=Ua(),n=function(e,t){void 0===t&&(t={});var n=void 0!==t.mode?t.mode:Na;return wa(e,n,t)}(t,{}),o=T.none(),r=function(e,t){return T.from(Mt(e,t))};t.events.drag.bind((function(e){r(e.target,"data-row").each((function(t){var n=Jt(e.target,"top");zt(e.target,"top",n+e.yDelta+"px")})),r(e.target,"data-column").each((function(t){var n=Jt(e.target,"left");zt(e.target,"left",n+e.xDelta+"px")}))}));var i=function(e,t){return Jt(e,t)-qt(e,"data-initial-"+t,0)};n.events.stop.bind((function(){t.get().each((function(t){o.each((function(n){r(t,"data-row").each((function(e){var o=i(t,"top");Pt(t,"data-initial-top"),u.trigger.adjustHeight(n,o,parseInt(e,10))})),r(t,"data-column").each((function(e){var o=i(t,"left");Pt(t,"data-initial-left"),u.trigger.adjustWidth(n,o,parseInt(e,10))})),Ja(e,n)}))}))}));var a=function(o,r){u.trigger.startAdjust(),t.assign(o),kt(o,"data-initial-"+r,Jt(o,r)),Ma(o,ts),zt(o,"opacity","0.2"),n.go(e.parent())},s=Ea(e.parent(),"mousedown",(function(e){var t;t=e.target,Ia(t,Ha)&&a(e.target,"top"),function(e){return Ia(e,Wa)}(e.target)&&a(e.target,"left")})),l=function(t){return Ee(t,e.view())},c=Ea(e.view(),"mouseover",(function(t){var n;(n=t.target,St(n,"table",l).filter(ja)).fold((function(){gt(t.target)&&Ya(e)}),(function(t){o=T.some(t),Ja(e,t)}))})),u=da({adjustHeight:ua(["table","delta","row"]),adjustWidth:ua(["table","delta","column"]),startAdjust:ua([])});return{destroy:function(){s.unbind(),c.unbind(),n.destroy(),Ya(e)},refresh:function(t){Ja(e,t)},on:n.on,off:n.off,hideBars:g(Za,e),showBars:g(es,e),events:u.registry}},os=function(e,t,n){var o=ur,r=mr,i=ns(e),a=da({beforeResize:ua(["table","type"]),afterResize:ua(["table","type"]),startDrag:ua([])});return i.events.adjustHeight.bind((function(e){var t=e.table;a.trigger.beforeResize(t,"row");var n=o.delta(e.delta,t);Bi(t,n,e.row,o),a.trigger.afterResize(t,"row")})),i.events.startAdjust.bind((function(e){a.trigger.startDrag()})),i.events.adjustWidth.bind((function(e){var o=e.table;a.trigger.beforeResize(o,"col");var i=r.delta(e.delta,o),s=n(o);ji(o,i,e.column,t,s),a.trigger.afterResize(o,"col")})),{on:i.on,off:i.off,hideBars:i.hideBars,showBars:i.showBars,destroy:i.destroy,events:a.registry}},rs=function(e,t){return e.fire("newrow",{node:t})},is=function(e,t){return e.fire("newcell",{node:t})},as=function(e,t,n){e.fire("TableModified",K(K({},n),{table:t}))},ss={structure:!1,style:!0},ls={structure:!0,style:!1},cs={structure:!0,style:!0},us={"border-collapse":"collapse",width:"100%"},ds=M(5,(function(e){var t=e+1+"px";return{title:t,value:t}})),fs=I(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],(function(e){return{title:e,value:e.toLowerCase()}})),ps={border:"1"},ms=function(e){return e.getParam("table_sizing_mode","auto")},hs=function(e){return e.getParam("table_responsive_width")},gs=function(e){return e.getParam("table_border_widths",ds,"array")},vs=function(e){return e.getParam("table_border_styles",fs,"array")},bs=function(e){return e.getParam("table_default_attributes",ps,"object")},ys=function(e){return e.getParam("table_default_styles",function(e){var t;if(Ss(e)){var n=e.dom,o=null!==(t=n.getParent(e.selection.getStart(),n.isBlock))&&void 0!==t?t:e.getBody(),r=Fo(Ce.fromDom(o));return K(K({},us),{width:r+"px"})}return Ds(e)?Le(us,(function(e,t){return"width"!==t})):us}(e),"object")},_s=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},ws=function(e){return e.getParam("table_row_advtab",!0,"boolean")},Cs=function(e){return e.getParam("table_advtab",!0,"boolean")},xs=function(e){return e.getParam("table_style_by_css",!1,"boolean")},Os=function(e){return e.getParam("table_cell_class_list",[],"array")},Ts=function(e){return e.getParam("table_class_list",[],"array")},Es=function(e){return"relative"===ms(e)||!0===hs(e)},Ss=function(e){return"fixed"===ms(e)||!1===hs(e)},Ds=function(e){return"responsive"===ms(e)},ks=function(e){return e.getParam("table_use_colgroups",!1,"boolean")},As=function(e){var t=e.getParam("table_header_type","section","string");return k(["section","cells","sectionCells","auto"],t)?t:"section"},Ms=function(e){var t=e.getParam("table_column_resizing","preservetable","string");return j(["preservetable","resizetable"],(function(e){return e===t})).getOr("preservetable")},Is=function(e){return"preservetable"===Ms(e)},Ps=function(e){return"resizetable"===Ms(e)},Rs=function(e){var t=e.getParam("table_clone_elements");return o(t)?T.some(t.split(/[ ,]/)):Array.isArray(t)?T.some(t):T.none()},Ls=function(e){return e.getParam("table_background_color_map",[],"array")},Ns=function(e){return e.getParam("table_border_color_map",[],"array")},Fs=function(e,t){return Es(e)?Kr(t):Ss(e)?Gr(t):qr(t)},js=function(e){Pt(e,"width")},Bs=function(e){var t=Pr(e);ia(e,T.some(t),T.none()),js(e)},$s=function(e){var t=function(e){return Lo(e)+"px"}(e);ia(e,T.some(t),T.none()),js(e)},zs=function(e){Yt(e,"width");var t=rn(e),n=t.length>0?t:on(e);P(n,(function(e){Yt(e,"width"),js(e)})),js(e)},Us=function(){var e=Ce.fromTag("div");return Ut(e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),zn(vt(Ce.fromDom(document)),e),e},Vs=function(e){return"false"!==Mt(e,"data-mce-resize")},Hs=function(e){var t,n,r=T.none(),i=T.none(),a=T.none(),s=function(e){return"TABLE"===e.nodeName},l=function(){return i},c=function(t){return Fs(e,t)},u=function(){return Is(e)?Yi():Wi()},d=function(o,r,i){var a=ie(r,"e");if(""===n&&Bs(o),i!==t&&""!==n){zt(o,"width",n);var s=u(),l=c(o),d=Is(e)||a?function(e){return ca(e).columns}(o)-1:0;ji(o,i-t,d,s,l)}else if(function(e){return/^(\d+(\.\d+)?)%$/.test(e)}(n)){var f=parseFloat(n.replace("%",""));zt(o,"width",i*f/t+"%")}(function(e){return/^(\d+(\.\d+)?)px$/.test(e)})(n)&&function(e){var t=Sn.fromTable(e);Sn.hasColumns(t)||P(on(e),(function(e){var t=Vt(e,"width");zt(e,"width",t),Pt(e,"width")}))}(o)};return e.on("init",(function(){var t=function(e,t){return e.inline?Gi(mi(e),Us(),t):qi(Ce.fromDom(e.getDoc()),t)}(e,Vs);if(a=T.some(t),function(e){var t=e.getParam("object_resizing",!0);return o(t)?"table"===t:t}(e)&&function(e){return e.getParam("table_resize_bars",!0,"boolean")}(e)){var n=u(),s=os(t,n,c);s.on(),s.events.startDrag.bind((function(t){r=T.some(e.selection.getRng())})),s.events.beforeResize.bind((function(t){var n=t.table.dom;!function(e,t,n,o,r){e.fire("ObjectResizeStart",{target:t,width:n,height:o,origin:r})}(e,n,hi(n),gi(n),"bar-"+t.type)})),s.events.afterResize.bind((function(t){var n=t.table,o=n.dom;yi(n),r.each((function(t){e.selection.setRng(t),e.focus()})),function(e,t,n,o,r){e.fire("ObjectResized",{target:t,width:n,height:o,origin:r})}(e,o,hi(o),gi(o),"bar-"+t.type),e.undoManager.add()})),i=T.some(s)}})),e.on("ObjectResizeStart",(function(o){var r=o.target;if(s(r)){var i=Ce.fromDom(r);P(e.dom.select(".mce-clonedresizable"),(function(t){e.dom.addClass(t,"mce-"+Ms(e)+"-columns")})),!sa(i)&&Ss(e)?$s(i):!aa(i)&&Es(e)&&Bs(i),la(i)&&re(o.origin,"bar-")&&Bs(i),t=o.width,n=Ds(e)?"":function(e,t){var n=e.dom.getStyle(t,"width")||e.dom.getAttrib(t,"width");return T.from(n).filter(se)}(e,r).getOr("")}})),e.on("ObjectResized",(function(t){var n=t.target;if(s(n)){var o=Ce.fromDom(n),r=t.origin;re(r,"corner-")&&d(o,r,t.width),yi(o),as(e,o.dom,ss)}})),e.on("SwitchMode",(function(){l().each((function(t){e.mode.isReadOnly()?t.hideBars():t.showBars()}))})),{lazyResize:l,lazyWire:function(){return a.getOr(qi(Ce.fromDom(e.getBody()),Vs))},destroy:function(){i.each((function(e){e.destroy()})),a.each((function(t){!function(e,t){e.inline&&Yn(t.parent())}(e,t)}))}}},Ws=function(e,t){return{element:e,offset:t}},Ys=function(e,t,n){return e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?n(t).bind((function(t){return Ys(e,t,n).orThunk((function(){return T.some(t)}))})):T.none()},qs=function(e,t){return e.property().isText(t)?e.property().getText(t).length:e.property().children(t).length},Gs=function(e,t){var n=Ys(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(n))return Ws(n,qs(e,n));var o=e.property().children(n);return o.length>0?Gs(e,o[o.length-1]):Ws(n,qs(e,n))},Ks=Gs,Xs=Zn(),Js=function(e,t){1===Gt(e,"colspan")&&function(e){return Dr(e).bind((function(e){return vr(e,["fixed","relative","empty"])}))}(e).each((function(n){var o=n.value/2;Ir(e,o,n.unit),Ir(t,o,n.unit)}))},Qs=tt("th"),Zs=function(e){return U(e,(function(e){return Qs(e.element)}))},el=function(e,t){return e&&t?"sectionCells":e?"section":"cells"},tl=function(e){var t="thead"===e.section,n=Lt(nl(e.cells),"th");return t||n?{type:"header",subType:el(t,n)}:"tfoot"===e.section?{type:"footer"}:{type:"body"}},nl=function(e){var t=L(e,(function(e){return Qs(e.element)}));return 0===t.length?T.some("td"):t.length===e.length?T.some("th"):T.none()},ol=function(e,t,n){return We(n(e.element,t),!0,e.isLocked)},rl=function(e,t){return e.section!==t?Ye(e.element,e.cells,t,e.isNew):e},il=function(){return{transformRow:rl,transformCell:function(e,t,n){var o=n(e.element,t),r="td"!==qe(o)?function(e,t){var n=Eo(e,t);jn(e,n);var o=lt(e);return Hn(n,o),Yn(e),n}(o,"td"):o;return We(r,e.isNew,e.isLocked)}}},al=function(){return{transformRow:rl,transformCell:ol}},sl=function(){return{transformRow:function(e,t){return rl(e,"thead"===t?"tbody":t)},transformCell:ol}},ll=function(e,t){switch(function(e){return G(e.all,(function(e){var t=tl(e);return"header"===t.type?T.from(t.subType):T.none()}))}(Sn.fromTable(e)).getOr(t)){case"section":return il();case"sectionCells":return al();case"cells":return sl()}},cl=il,ul=al,dl=sl,fl=function(){return{transformRow:m,transformCell:ol}},pl=function(e,t,n,o){n===o?Pt(e,t):kt(e,t,n)},ml=function(e,t,n){q(_t(e,t)).fold((function(){return $n(e,n)}),(function(e){return Bn(e,n)}))},hl=function(e,t){var n=[],o=[],r=function(e){return I(e,(function(e){e.isNew&&n.push(e.element);var t=e.element;return Wn(t),P(e.cells,(function(e){e.isNew&&o.push(e.element),pl(e.element,"colspan",e.colspan,1),pl(e.element,"rowspan",e.rowspan,1),zn(t,e.element)})),t}))},i=function(e){return z(e,(function(e){return I(e.cells,(function(e){return pl(e.element,"span",e.colspan,1),e.element}))}))},a=function(t,n){var o=function(e,t){var n=Tt(e,t).getOrThunk((function(){var n=Ce.fromTag(t,nt(e).dom);return"thead"===t?ml(e,"caption,colgroup",n):"colgroup"===t?ml(e,"caption",n):zn(e,n),n}));return Wn(n),n}(e,n),a=("colgroup"===n?i:r)(t);Hn(o,a)},s=function(t,n){t.length>0?a(t,n):function(t){Tt(e,t).each(Yn)}(n)},l=[],c=[],u=[],d=[];return P(t,(function(e){switch(e.section){case"thead":l.push(e);break;case"tbody":c.push(e);break;case"tfoot":u.push(e);break;case"colgroup":d.push(e)}})),s(d,"colgroup"),s(l,"thead"),s(c,"tbody"),s(u,"tfoot"),{newRows:n,newCells:o}},gl=function(e,t){if(0===e.length)return 0;var n=e[0];return B(e,(function(e){return!t(n.element,e.element)})).getOr(e.length)},vl=function(e,t,n,o){var r=function(e,t){return e[t]}(e,t),i="colgroup"===r.section;return{colspan:gl(r.cells.slice(n),o),rowspan:i?1:gl(function(e,t){return I(e,(function(e){return gn(e,t)}))}(e.slice(t),n),o)}},bl=function(e,t){var n=I(e,(function(e){return I(e.cells,_)}));return I(e,(function(o,r){var i=z(o.cells,(function(o,i){if(!1===n[r][i]){var a=vl(e,r,i,t);return function(e,t,o,r){for(var i=e;i<e+o;i++)for(var a=t;a<t+r;a++)n[i][a]=!0}(r,i,a.rowspan,a.colspan),[(s=o.element,l=a.rowspan,c=a.colspan,u=o.isNew,{element:s,rowspan:l,colspan:c,isNew:u})]}return[];var s,l,c,u}));return function(e,t,n,o){return{element:e,cells:t,section:n,isNew:o}}(o.element,i,o.section,o.isNew)}))},yl=function(e,t,n){var o=[];P(e.colgroups,(function(r){for(var i=[],a=0;a<e.grid.columns;a++){var s=Sn.getColumnAt(e,a).map((function(e){return We(e.element,n,!1)})).getOrThunk((function(){return We(t.colGap(),!0,!1)}));i.push(s)}o.push(Ye(r.element,i,"colgroup",n))}));for(var r=0;r<e.grid.rows;r++){for(var i=[],a=0;a<e.grid.columns;a++){var s=Sn.getAt(e,r,a).map((function(e){return We(e.element,n,e.isLocked)})).getOrThunk((function(){return We(t.gap(),!0,!1)}));i.push(s)}var l=e.all[r],c=Ye(l.element,i,l.section,n);o.push(c)}return o},_l=function(e){return bl(e,Ee)},wl=function(e,t){return G(e.all,(function(e){return j(e.cells,(function(e){return Ee(t,e.element)}))}))},Cl=function(e,t,n){var o=I(t.selection,(function(t){return nn(t).bind((function(t){return wl(e,t)})).filter(n)})),r=Nt(o);return jt(r.length>0,r)},xl=function(e,t,n,o,r){return function(i,a,s,l,c){var u=Sn.fromTable(a),d=T.from(null==c?void 0:c.section).getOrThunk(fl);return t(u,s).map((function(t){var n=function(e,t){return yl(e,t,!1)}(u,l),o=e(n,t,Ee,r(l),d),i=xn(o.grid);return{info:t,grid:_l(o.grid),cursor:o.cursor,lockedColumns:i}})).bind((function(e){var t=hl(a,e.grid),r=T.from(null==c?void 0:c.sizing).getOrThunk((function(){return qr(a)})),s=T.from(null==c?void 0:c.resize).getOrThunk(Yi);return n(a,e.grid,e.info,{sizing:r,resize:s,section:d}),o(a),Ja(i,a),Pt(a,wn),e.lockedColumns.length>0&&kt(a,wn,e.lockedColumns.join(",")),T.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})}))}},Ol=function(e,t){return Cl(e,t,w).map((function(e){return{cells:e,generators:t.generators,clipboard:t.clipboard}}))},Tl=function(e,t){return Cl(e,t,w)},El=function(e,t){return Cl(e,t,(function(e){return!e.isLocked}))},Sl=function(e,t){return U(t,(function(t){return function(e,t){return wl(e,t).exists((function(e){return!e.isLocked}))}(e,t)}))},Dl=function(e,t){return function(e,t){return t.mergable}(0,t).filter((function(t){return Sl(e,t.cells)}))},kl=function(e,t){return function(e,t){return t.unmergable}(0,t).filter((function(t){return Sl(e,t)}))},Al=function(e,t,n,o){for(var r=yn(e).rows,i=!0,a=0;a<r.length;a++)for(var s=0;s<bn(r[0]);s++){var l=r[a],c=gn(l,s),u=n(c.element,t);!0===u&&!1===i?mn(l,s,We(o(),!0,c.isLocked)):!0===u&&(i=!1)}return e},Ml=function(e,t,n,o){var r=yn(e).rows;if(t>0&&t<r.length){var i=function(e,t){return F(e,(function(e,n){return A(e,(function(e){return t(e.element,n.element)}))?e:e.concat([n])}),[])}(r[t-1].cells,n);P(i,(function(e){for(var i=T.none(),a=t;a<r.length;a++)for(var s=function(t){var s=r[a],l=gn(s,t);n(l.element,e.element)&&(i.isNone()&&(i=T.some(o())),i.each((function(e){mn(s,t,We(e,!0,l.isLocked))})))},l=0;l<bn(r[0]);l++)s(l)}))}return e},Il=function(e){return{isValue:w,isError:_,getOr:p(e),getOrThunk:p(e),getOrDie:p(e),or:function(t){return Il(e)},orThunk:function(t){return Il(e)},fold:function(t,n){return n(e)},map:function(t){return Il(t(e))},mapError:function(t){return Il(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOptional:function(){return T.some(e)}}},Pl=function(e){return{isValue:_,isError:w,getOr:m,getOrThunk:function(e){return e()},getOrDie:function(){return(t=String(e),function(){throw new Error(t)})();var t},or:m,orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return Pl(e)},mapError:function(t){return Pl(t(e))},each:f,bind:function(t){return Pl(e)},exists:_,forall:w,toOptional:T.none}},Rl={value:Il,error:Pl,fromOption:function(e,t){return e.fold((function(){return Pl(t)}),Il)}},Ll=function(e,t){return{rowDelta:0,colDelta:bn(e[0])-bn(t[0])}},Nl=function(e,t){return{rowDelta:e.length-t.length,colDelta:0}},Fl=function(e,t,n,o){var r="colgroup"===t.section?n.col:n.cell;return M(e,(function(e){return We(r(),!0,o(e))}))},jl=function(e,t,n,o){var r=e[e.length-1];return e.concat(M(t,(function(){var e="colgroup"===r.section?n.colgroup:n.row,t=_n(r,e,m),i=Fl(t.cells.length,t,n,(function(e){return $e(o,e.toString())}));return hn(t,i)})))},Bl=function(e,t,n,o){return I(e,(function(e){var r=Fl(t,e,n,_);return fn(e,o,r)}))},$l=function(e,t,n){var o=t.colDelta<0?Bl:m,r=t.rowDelta<0?jl:m,i=xn(e),a=bn(e[0]),s=A(i,(function(e){return e===a-1})),l=o(e,Math.abs(t.colDelta),n,s?a-1:a),c=xn(l);return r(l,Math.abs(t.rowDelta),n,V(c,w))},zl=function(e,t,n,o){var r=g(o,gn(e[t],n).element),i=e[t];return e.length>1&&bn(i)>1&&(n>0&&r(vn(i,n-1))||n<i.cells.length-1&&r(vn(i,n+1))||t>0&&r(vn(e[t-1],n))||t<e.length-1&&r(vn(e[t+1],n)))},Ul=function(e,t,n){return L(n,(function(n){return n>=e.column&&n<=bn(t[0])+e.column}))},Vl=function(e,t,n,o,r){var i=xn(t),a=function(e,t,n){var o=bn(t[0]),r=yn(t).cols.length+e.row,i=M(o-e.column,(function(t){return t+e.column}));return{row:r,column:j(i,(function(e){return U(n,(function(t){return t!==e}))})).getOr(o-1)}}(e,t,i),s=yn(n).rows,l=Ul(a,s,i);return function(e,t,n){if(e.row>=t.length||e.column>bn(t[0]))return Rl.error("invalid start address out of table bounds, row: "+e.row+", column: "+e.column);var o=t.slice(e.row),r=o[0].cells.slice(e.column),i=bn(n[0]),a=n.length;return Rl.value({rowDelta:o.length-a,colDelta:r.length-i})}(a,t,s).map((function(e){var n=K(K({},e),{colDelta:e.colDelta-l.length}),i=$l(t,n,o),c=xn(i),u=Ul(a,s,c);return function(e,t,n,o,r,i){for(var a=e.row,s=e.column,l=a+n.length,c=s+bn(n[0])+i.length,u=V(i,w),d=a;d<l;d++)for(var f=0,p=s;p<c;p++)if(u[p])f++;else{zl(t,d,p,r)&&Al(t,vn(t[d],p),r,o.cell);var m=p-s-f,h=gn(n[d-a],m),g=h.element,v=o.replace(g);mn(t[d],p,We(v,!0,h.isLocked))}return t}(a,i,s,o,r,u)}))},Hl=function(e,t,n,o,r){!function(e,t,n,o){t>0&&t<e[0].cells.length&&P(e,(function(e){var r=e.cells[t-1],i=e.cells[t];n(i.element,r.element)&&mn(e,t,We(o(),!0,i.isLocked))}))}(t,e,r,o.cell);var i=Nl(n,t),a=$l(n,i,o),s=Nl(t,a),l=$l(t,s,o);return I(l,(function(t,n){return fn(t,e,a[n].cells)}))},Wl=function(e,t,n,o,r){Ml(t,e,r,o.cell);var i=xn(t),a=Ll(t,n),s=K(K({},a),{colDelta:a.colDelta-i.length}),l=$l(t,s,o),c=yn(l),u=c.cols,d=c.rows,f=xn(l),p=Ll(n,t),m=K(K({},p),{colDelta:p.colDelta+f.length}),h=function(e,t,n){return I(e,(function(e){return F(n,(function(n,o){var r=Fl(1,e,t,w)[0];return pn(n,o,r)}),e)}))}(n,o,f),g=$l(h,m,o);return u.concat(d.slice(0,e)).concat(g).concat(d.slice(e,d.length))},Yl=function(e,t,n,o,r){var i=yn(e),a=i.rows,s=i.cols,l=a.slice(0,t),c=a.slice(t),u=function(e,t,n,o){return _n(e,(function(e){return o(e,n)}),t)}(a[n],(function(e,n){return t>0&&t<a.length&&o(vn(a[t-1],n),vn(a[t],n))?gn(a[t],n):We(r(e.element,o),!0,e.isLocked)}),o,r);return s.concat(l).concat([u]).concat(c)},ql=function(e,t,n,o,r){return I(e,(function(e){var i=t>0&&t<bn(e)&&o(vn(e,t-1),vn(e,t)),a=function(e,t,n,o,r,i,a){if("colgroup"!==n&&o)return gn(e,t);var s=gn(e,r);return We(a(s.element,i),!0,!1)}(e,t,e.section,i,n,o,r);return pn(e,t,a)}))},Gl=function(e,t,n,o){return function(e,t,n,o){return void 0!==vn(e[t],n)&&t>0&&o(vn(e[t-1],n),vn(e[t],n))}(e,t,n,o)||function(e,t,n){return t>0&&n(vn(e,t-1),vn(e,t))}(e[t],n,o)},Kl=function(e,t,n,o){var r=function(e){return function(e){return"row"===e?Xt(t):Kt(t)}(e)?e+"group":e};return e?Qs(t)?r(n):null:o&&Qs(t)?r("row"===n?"col":"row"):null},Xl=function(e,t,n){return We(n(e.element,t),!0,e.isLocked)},Jl=function(e,t,n,o,r,i,a){return I(e,(function(e,s){return function(e,t){var n=e.cells,o=I(n,t);return Ye(e.element,o,e.section,e.isNew)}(e,(function(e,l){if(function(e){return A(t,(function(t){return n(e.element,t.element)}))}(e)){var c=a(e,s,l)?r(e,n,o):e;return i(c,s,l).each((function(e){var t,n;t=c.element,n={scope:T.from(e)},Ie(n,(function(e,n){e.fold((function(){Pt(t,n)}),(function(e){Dt(t.dom,n,e)}))}))})),c}return e}))}))},Ql=function(e,t,n){return z(e,(function(o,r){return Gl(e,r,t,n)?[]:[gn(o,t)]}))},Zl=function(e,t,n,o,r){var i=yn(e).rows,a=z(t,(function(e){return Ql(i,e,o)})),s=I(e,(function(e){return Zs(e.cells)})),l=function(e,t){return U(t,m)&&Zs(e)?w:function(e,n,o){return!("th"===qe(e.element)&&t[n])}}(a,s),c=function(e,t){return function(n,o){return T.some(Kl(e,n.element,"row",t[o]))}}(n,s);return Jl(e,a,o,r,Xl,c,l)},ec=function(e,t,n,o,r,i,a){var s=yn(e),l=s.cols,c=s.rows,u=c[t[0]],d=z(t,(function(e){return function(e,t,n){var o=e[t];return z(o.cells,(function(o,r){return Gl(e,t,r,n)?[]:[o]}))}(c,e,r)})),f=I(u.cells,(function(e,t){return Zs(Ql(c,t,r))})),p=X([],c,!0);P(t,(function(e){p[e]=a.transformRow(c[e],n)}));var h=l.concat(p),g=function(e,t){return U(t,m)&&Zs(e.cells)?w:function(e,n,o){return!("th"===qe(e.element)&&t[o])}}(u,f),v=function(e,t){return function(n,o,r){return T.some(Kl(e,n.element,"col",t[r]))}}(o,f);return Jl(h,d,r,i,a.transformCell,v,g)},tc=function(e,t,n,o){var r=yn(e).rows,i=I(t,(function(e){return gn(r[e.row],e.column)}));return Jl(e,i,n,o,Xl,T.none,w)},nc=function(e){return F(e,(function(e,t){return A(e,(function(e){return e.column===t.column}))?e:e.concat([t])}),[]).sort((function(e,t){return e.column-t.column}))},oc=tt("col"),rc=tt("colgroup"),ic=function(e){return"tr"===qe(e)||rc(e)},ac=function(e){return{element:e,colspan:qt(e,"colspan",1),rowspan:qt(e,"rowspan",1)}},sc=function(e){return It(e,"scope").map((function(e){return e.substr(0,3)}))},lc=function(e,t){void 0===t&&(t=ac);var n=function(n){if(ic(n))return rc((r={element:n}).element)?e.colgroup(r):e.row(r);var r,i=function(t){return oc(t.element)?e.col(t):e.cell(t)}(t(n));return o=T.some({item:n,replacement:i}),i},o=T.none();return{getOrInit:function(e,t){return o.fold((function(){return n(e)}),(function(o){return t(e,o.item)?o.replacement:n(e)}))}}},cc=function(e){return function(t){var n=[],o=function(o){var r="td"===e?{scope:null}:{},i=t.replace(o,e,r);return n.push({item:o,sub:i}),i};return{replaceOrInit:function(e,t){return ic(e)||oc(e)?e:function(e,t){return j(n,(function(n){return t(n.item,e)}))}(e,t).fold((function(){return o(e)}),(function(n){return t(e,n.item)?n.sub:o(e)}))}}}},uc=function(e){return{unmerge:function(t){var n=sc(t);return n.each((function(e){return kt(t,"scope",e)})),function(){var o=e.cell({element:t,colspan:1,rowspan:1});return Yt(o,"width"),Yt(t,"width"),n.each((function(e){return kt(o,"scope",e)})),o}},merge:function(e){return Yt(e[0],"width"),function(){var t=Nt(I(e,sc));if(0===t.length)return T.none();var n=t[0],o=["row","col"];return A(t,(function(e){return e!==n&&k(o,e)}))?T.none():T.from(n)}().fold((function(){return Pt(e[0],"scope")}),(function(t){return kt(e[0],"scope",t+"group")})),p(e[0])}}},dc=["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"],fc=Zn(),pc=function(e){return function(e,t){var n=e.property().name(t);return k(dc,n)}(fc,e)},mc=function(e){return function(e,t){var n=e.property().name(t);return k(["ol","ul"],n)}(fc,e)},hc=function(e){return function(e,t){return k(["br","img","hr","input"],e.property().name(t))}(fc,e)},gc=function(e){var t,n=function(e){return"br"===qe(e)},o=function(e){return ni(e).bind((function(t){var o=st(t).map((function(e){return!!pc(e)||!!hc(e)&&"img"!==qe(e)})).getOr(!1);return rt(t).map((function(r){return!0===o||function(e){return"li"===qe(e)||xt(e,mc).isSome()}(r)||n(t)||pc(r)&&!Ee(e,r)?[]:[Ce.fromTag("br")]}))})).getOr([])},r=0===(t=z(e,(function(e){var t=lt(e);return function(e){return U(e,(function(e){return n(e)||Qe(e)&&0===Kn(e).trim().length}))}(t)?[]:t.concat(o(e))}))).length?[Ce.fromTag("br")]:t;Wn(e[0]),Hn(e[0],r)},vc=function(e){return ja(e,!0)},bc=function(e){0===on(e).length&&Yn(e)},yc=function(e,t){return{grid:e,cursor:t}},_c=function(e,t,n){var o,r,i=yn(e).rows;return T.from(null===(r=null===(o=i[t])||void 0===o?void 0:o.cells[n])||void 0===r?void 0:r.element).filter(vc).orThunk((function(){return function(e){return G(e,(function(e){return G(e.cells,(function(e){var t=e.element;return jt(vc(t),t)}))}))}(i)}))},wc=function(e,t,n){var o=_c(e,t,n);return yc(e,o)},Cc=function(e){return F(e,(function(e,t){return A(e,(function(e){return e.row===t.row}))?e:e.concat([t])}),[]).sort((function(e,t){return e.row-t.row}))},xc=function(e,t){return function(n,o,r,i,a){var s=Cc(o),l=I(s,(function(e){return e.row})),c=ec(n,l,e,t,r,i.replaceOrInit,a);return wc(c,o[0].row,o[0].column)}},Oc=xc("thead",!0),Tc=xc("tbody",!1),Ec=xc("tfoot",!1),Sc=function(e,t,n){var o=function(e,t){return cn(e,(function(){return t}))}(e,n.section),r=Sn.generate(o);return yl(r,t,!0)},Dc=function(e,t,n,o){return function(e,t,n,o){var r=Sn.generate(t),i=o.getWidths(r,o);Fi(r,i,o)}(0,t,0,o.sizing)},kc=function(e,t,n,o){return function(e,t,n,o,r){var i=Sn.generate(t),a=o.getWidths(i,o),s=o.pixelWidth(),l=r.calcRedestributedWidths(a,s,n.pixelDelta,o.isRelative),c=l.newSizes,u=l.delta;Fi(i,c,o),o.adjustTableWidth(u)}(0,t,n,o.sizing,o.resize)},Ac=function(e,t){return A(t,(function(e){return 0===e.column&&e.isLocked}))},Mc=function(e,t){return A(t,(function(t){return t.column+t.colspan>=e.grid.columns&&t.isLocked}))},Ic=function(e,t){var n=Bo(e),o=nc(t);return F(o,(function(e,t){return e+n[t.column].map(No).getOr(0)}),0)},Pc=function(e){return function(t,n){return Tl(t,n).filter((function(n){return!(e?Ac:Mc)(t,n)})).map((function(e){return{details:e,pixelDelta:Ic(t,e)}}))}},Rc=function(e){return function(t,n){return Ol(t,n).filter((function(n){return!(e?Ac:Mc)(t,n.cells)}))}},Lc=cc("th"),Nc=cc("td"),Fc=xl((function(e,t,n,o){var r=t[0].row,i=Cc(t),a=N(i,(function(e,t){return{grid:Yl(e.grid,r,t.row+e.delta,n,o.getOrInit),delta:e.delta+1}}),{grid:e,delta:0}).grid;return wc(a,r,t[0].column)}),Tl,f,f,lc),jc=xl((function(e,t,n,o){var r=Cc(t),i=r[r.length-1],a=i.row+i.rowspan,s=N(r,(function(e,t){return Yl(e,a,t.row,n,o.getOrInit)}),e);return wc(s,a,t[0].column)}),Tl,f,f,lc),Bc=xl((function(e,t,n,o){var r=t.details,i=nc(r),a=i[0].column,s=N(i,(function(e,t){return{grid:ql(e.grid,a,t.column+e.delta,n,o.getOrInit),delta:e.delta+1}}),{grid:e,delta:0}).grid;return wc(s,r[0].row,a)}),Pc(!0),kc,f,lc),$c=xl((function(e,t,n,o){var r=t.details,i=r[r.length-1],a=i.column+i.colspan,s=nc(r),l=N(s,(function(e,t){return ql(e,a,t.column,n,o.getOrInit)}),e);return wc(l,r[0].row,a)}),Pc(!1),kc,f,lc),zc=xl((function(e,t,n,o){var r=nc(t.details),i=function(e,t){return z(e,(function(e){var n=e.cells,o=N(t,(function(e,t){return t>=0&&t<e.length?e.slice(0,t).concat(e.slice(t+1)):e}),n);return o.length>0?[Ye(e.element,o,e.section,e.isNew)]:[]}))}(e,I(r,(function(e){return e.column}))),a=i.length>0?i[0].cells.length-1:0;return wc(i,r[0].row,Math.min(r[0].column,a))}),(function(e,t){return El(e,t).map((function(t){return{details:t,pixelDelta:-Ic(e,t)}}))}),kc,bc,lc),Uc=xl((function(e,t,n,o){var r=Cc(t),i=function(e,t,n){var o=yn(e),r=o.rows;return o.cols.concat(r.slice(0,t)).concat(r.slice(n+1))}(e,r[0].row,r[r.length-1].row),a=i.length>0?i.length-1:0;return wc(i,Math.min(t[0].row,a),t[0].column)}),Tl,f,bc,lc),Vc=xl((function(e,t,n,o){var r=nc(t),i=I(r,(function(e){return e.column})),a=Zl(e,i,!0,n,o.replaceOrInit);return wc(a,t[0].row,t[0].column)}),El,f,f,Lc),Hc=xl((function(e,t,n,o){var r=nc(t),i=I(r,(function(e){return e.column})),a=Zl(e,i,!1,n,o.replaceOrInit);return wc(a,t[0].row,t[0].column)}),El,f,f,Nc),Wc=xl(Oc,El,f,f,Lc),Yc=xl(Tc,El,f,f,Nc),qc=xl(Ec,El,f,f,Nc),Gc=xl((function(e,t,n,o){var r=tc(e,t,n,o.replaceOrInit);return wc(r,t[0].row,t[0].column)}),El,f,f,Lc),Kc=xl((function(e,t,n,o){var r=tc(e,t,n,o.replaceOrInit);return wc(r,t[0].row,t[0].column)}),El,f,f,Nc),Xc=xl((function(e,t,n,o){var r=t.cells;gc(r);var i=function(e,t,n,o){var r=yn(e).rows;if(0===r.length)return e;for(var i=t.startRow;i<=t.finishRow;i++)for(var a=t.startCol;a<=t.finishCol;a++){var s=r[i],l=gn(s,a).isLocked;mn(s,a,We(o(),!1,l))}return e}(e,t.bounds,0,o.merge(r));return yc(i,T.from(r[0]))}),Dl,Dc,f,uc),Jc=xl((function(e,t,n,o){var r=N(t,(function(e,t){return Al(e,t,n,o.unmerge(t))}),e);return yc(r,T.from(t[0]))}),kl,Dc,f,uc),Qc=xl((function(e,t,n,o){var r=function(e,t){var n=Sn.fromTable(e);return yl(n,t,!0)}(t.clipboard,t.generators),i=function(e,t){return{row:e,column:t}}(t.row,t.column);return Vl(i,e,r,t.generators,n).fold((function(){return yc(e,T.some(t.element))}),(function(e){return wc(e,t.row,t.column)}))}),(function(e,t){return nn(t.element).bind((function(n){return wl(e,n).map((function(e){return K(K({},e),{generators:t.generators,clipboard:t.clipboard})}))}))}),Dc,f,lc),Zc=xl((function(e,t,n,o){var r=yn(e).rows,i=t.cells[0].column,a=r[t.cells[0].row],s=Sc(t.clipboard,t.generators,a),l=Hl(i,e,s,t.generators,n);return wc(l,t.cells[0].row,t.cells[0].column)}),Rc(!0),f,f,lc),eu=xl((function(e,t,n,o){var r=yn(e).rows,i=t.cells[t.cells.length-1].column+t.cells[t.cells.length-1].colspan,a=r[t.cells[0].row],s=Sc(t.clipboard,t.generators,a),l=Hl(i,e,s,t.generators,n);return wc(l,t.cells[0].row,t.cells[0].column)}),Rc(!1),f,f,lc),tu=xl((function(e,t,n,o){var r=yn(e).rows,i=t.cells[0].row,a=r[i],s=Sc(t.clipboard,t.generators,a),l=Wl(i,e,s,t.generators,n);return wc(l,t.cells[0].row,t.cells[0].column)}),Ol,f,f,lc),nu=xl((function(e,t,n,o){var r=yn(e).rows,i=t.cells[t.cells.length-1].row+t.cells[t.cells.length-1].rowspan,a=r[t.cells[0].row],s=Sc(t.clipboard,t.generators,a),l=Wl(i,e,s,t.generators,n);return wc(l,t.cells[0].row,t.cells[0].column)}),Ol,f,f,lc),ou=function(e,t){var n=Sn.fromTable(e);return Tl(n,t).bind((function(e){var t=e[e.length-1],o=e[0].column,r=t.column+t.colspan,i=$(I(n.all,(function(e){return L(e.cells,(function(e){return e.column>=o&&e.column<r}))})));return nl(i)})).getOr("")},ru=function(e,t){var n=Sn.fromTable(e);return Tl(n,t).bind(nl).getOr("")},iu=function(e,t){var n=Sn.fromTable(e);return Tl(n,t).bind((function(e){var t=e[e.length-1],o=e[0].row,r=t.row+t.rowspan;return function(e){var t=I(e,(function(e){return tl(e).type})),n=k(t,"header"),o=k(t,"footer");if(n||o){var r=k(t,"body");return!n||r||o?n||r||!o?T.none():T.some("footer"):T.some("header")}return T.some("body")}(n.all.slice(o,r))})).getOr("")},au=function(e,t,n){var o=function(e){return"table"===qe(mi(e))},r=Rs(e),i=Ps(e)?f:Js,a=function(t){switch(As(e)){case"section":return cl();case"sectionCells":return ul();case"cells":return dl();default:return ll(t,"section")}},s=function(n,o){return o.cursor.fold((function(){var o=on(n);return Y(o).filter(gt).map((function(o){t.clear(n);var r=e.dom.createRng();return r.selectNode(o.dom),e.selection.setRng(r),kt(o,"data-mce-selected","1"),r}))}),(function(o){var r=Ks(Xs,o),i=e.dom.createRng();return i.setStart(r.element.dom,r.offset),i.setEnd(r.element.dom,r.offset),e.selection.setRng(i),t.clear(n),T.some(i)}))},l=function(t,n,o,i,l){return function(c,u,d){void 0===d&&(d=!1),yi(c);var f=i(),p=Ce.fromDom(e.getDoc()),m=di(o,p,r),h={sizing:Fs(e,c),resize:Ps(e)?Wi():Yi(),section:a(c)};return n(c)?t(f,c,u,m,h).bind((function(t){P(t.newRows,(function(t){rs(e,t.dom)})),P(t.newCells,(function(t){is(e,t.dom)}));var n=s(c,t);return gt(c)&&(yi(c),d||as(e,c.dom,l)),n.map((function(e){return{rng:e,effect:l}}))})):T.none()}};return{deleteRow:l(Uc,(function(t){return!1===o(e)||ca(t).rows>1}),f,n,ls),deleteColumn:l(zc,(function(t){return!1===o(e)||ca(t).columns>1}),f,n,ls),insertRowsBefore:l(Fc,w,f,n,ls),insertRowsAfter:l(jc,w,f,n,ls),insertColumnsBefore:l(Bc,w,i,n,ls),insertColumnsAfter:l($c,w,i,n,ls),mergeCells:l(Xc,w,f,n,ls),unmergeCells:l(Jc,w,f,n,ls),pasteColsBefore:l(Zc,w,f,n,ls),pasteColsAfter:l(eu,w,f,n,ls),pasteRowsBefore:l(tu,w,f,n,ls),pasteRowsAfter:l(nu,w,f,n,ls),pasteCells:l(Qc,w,f,n,cs),makeCellsHeader:l(Gc,w,f,n,ls),unmakeCellsHeader:l(Kc,w,f,n,ls),makeColumnsHeader:l(Vc,w,f,n,ls),unmakeColumnsHeader:l(Hc,w,f,n,ls),makeRowsHeader:l(Wc,w,f,n,ls),makeRowsBody:l(Yc,w,f,n,ls),makeRowsFooter:l(qc,w,f,n,ls),getTableRowType:iu,getTableCellType:ru,getTableColType:ou}},su={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},lu=function(e){var t=Ce.fromTag("colgroup");return M(e,(function(){return zn(t,Ce.fromTag("col"))})),t},cu=function(e,t,n,o){return M(e,(function(e){return function(e,t,n,o){for(var r=Ce.fromTag("tr"),i=0;i<e;i++){var a=o<t||i<n?Ce.fromTag("th"):Ce.fromTag("td");i<n&&kt(a,"scope","row"),o<t&&kt(a,"scope","col"),zn(a,Ce.fromTag("br")),zn(r,a)}return r}(t,n,o,e)}))},uu=function(e,t){e.selection.select(t.dom,!0),e.selection.collapse(!0)},du=function(e,t,n,r,i){var a=ys(e),s={styles:a,attributes:bs(e),colGroups:ks(e)};return e.undoManager.ignore((function(){var o=function(e,t,n,o,r,i){void 0===i&&(i=su);var a=Ce.fromTag("table"),s="cells"!==r;Ut(a,i.styles),At(a,i.attributes),i.colGroups&&zn(a,lu(t));var l=Math.min(e,n);if(s&&n>0){var c=Ce.fromTag("thead");zn(a,c);var u=cu(n,t,"sectionCells"===r?l:0,o);Hn(c,u)}var d=Ce.fromTag("tbody");zn(a,d);var f=cu(s?e-l:e,t,s?0:n,o);return Hn(d,f),a}(n,t,i,r,As(e),s);kt(o,"data-mce-id","__mce");var a=function(e){var t=Ce.fromTag("div"),n=Ce.fromDom(e.dom.cloneNode(!0));return zn(t,n),function(e){return e.dom.innerHTML}(t)}(o);e.insertContent(a),e.addVisual()})),Et(mi(e),'table[data-mce-id="__mce"]').map((function(t){return Ss(e)?$s(t):Ds(e)?zs(t):(Es(e)||function(e){return o(e)&&-1!==e.indexOf("%")}(a.width))&&Bs(t),yi(t),Pt(t,"data-mce-id"),function(e,t){P(wt(t,"tr"),(function(t){rs(e,t.dom),P(wt(t,"th,td"),(function(t){is(e,t.dom)}))}))}(e,t),function(e,t){Et(t,"td,th").each(g(uu,e))}(e,t),t.dom})).getOr(null)},fu=function(e,t,n,o,r){void 0===o&&(o={});var i=function(e){return d(e)&&e>0};if(i(t)&&i(n)){var a=o.headerRows||0,s=o.headerColumns||0;return du(e,n,t,s,a)}return null},pu=function(e){return function(){return e().fold((function(){return[]}),(function(e){return I(e,(function(e){return e.dom}))}))}},mu=function(e){return function(t){var n=t.length>0?T.some(pi(t)):T.none();e(n)}},hu=function(e){return function(t,n,o){void 0===o&&(o={});var r=fu(e,n,t,o);return e.undoManager.add(),r}},gu=function(e,t,n){var o=qt(e,t,1);1===n||o<=1?Pt(e,t):kt(e,t,Math.min(n,o))},vu=function(e,t){var n=Sn.fromTable(e);return El(n,t).map((function(e){var t=e[e.length-1],o=e[0].column,r=t.column+t.colspan,i=function(e,t,n){if(Sn.hasColumns(e)){var o=L(Sn.justColumns(e),(function(e){return e.column>=t&&e.column<n})),r=I(o,(function(e){var o=To(e.element);return gu(o,"span",n-t),o})),i=Ce.fromTag("colgroup");return Hn(i,r),[i]}return[]}(n,o,r),a=function(e,t,n){return I(e.all,(function(e){var o=L(e.cells,(function(e){return e.column>=t&&e.column<n})),r=I(o,(function(e){var o=To(e.element);return gu(o,"colspan",n-t),o})),i=Ce.fromTag("tr");return Hn(i,r),i}))}(n,o,r);return X(X([],i,!0),a,!0)}))},bu=function(e,t,n){var o=Sn.fromTable(e);return Tl(o,t).bind((function(e){var t=yl(o,n,!1),r=yn(t).rows.slice(e[0].row,e[e.length-1].row+e[e.length-1].rowspan),i=z(r,(function(e){var t=L(e.cells,(function(e){return!e.isLocked}));return t.length>0?[K(K({},e),{cells:t})]:[]})),a=_l(i);return jt(a.length>0,a)})).map((function(e){return function(e){return I(e,(function(e){var t=Oo(e.element);return P(e.cells,(function(e){var n=To(e.element);pl(n,"colspan",e.colspan,1),pl(n,"rowspan",e.rowspan,1),zn(t,n)})),t}))}(e)}))},yu=tinymce.util.Tools.resolve("tinymce.util.Tools"),_u=function(e,t,n){return function(t,o){for(var r=0;r<o.length;r++){var i=e.getStyle(o[r],n);if(void 0===t&&(t=i),t!==i)return""}return t}(void 0,e.select("td,th",t))},wu=function(e,t,n){n&&e.formatter.apply("align"+n,{},t)},Cu=function(e,t){yu.each("left center right".split(" "),(function(n){e.formatter.remove("align"+n,{},t)}))},xu=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],Ou=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Tu=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Eu=function(e){return(t=e,n="#",re(t,n)?function(e,t){return e.substring(t)}(t,n.length):t).toUpperCase();var t,n},Su=function(e){return function(e){return Ou.test(e)||Tu.test(e)}(e)?T.some({value:Eu(e)}):T.none()},Du=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},ku=function(e){return function(e){return{value:e}}(Du(e.red)+Du(e.green)+Du(e.blue))},Au=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,Mu=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,Iu=function(e,t,n,o){return{red:e,green:t,blue:n,alpha:o}},Pu=function(e,t,n,o){var r=parseInt(e,10),i=parseInt(t,10),a=parseInt(n,10),s=parseFloat(o);return Iu(r,i,a,s)},Ru=function(e){return Su(e).orThunk((function(){return function(e){if("transparent"===e)return T.some(Iu(0,0,0,0));var t=Au.exec(e);if(null!==t)return T.some(Pu(t[1],t[2],t[3],"1"));var n=Mu.exec(e);return null!==n?T.some(Pu(n[1],n[2],n[3],n[4])):T.none()}(e).map(ku)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var o=n.getImageData(0,0,1,1).data,r=o[0],i=o[1],a=o[2],s=o[3];return ku(Iu(r,i,a,s))}))},Lu=function(e){var t=e;return{get:function(){return t},set:function(e){t=e}}},Nu=function(e){var t=Lu(T.none()),n=function(){return t.get().each(e)};return{clear:function(){n(),t.set(T.none())},isSet:function(){return t.get().isSome()},get:function(){return t.get()},set:function(e){n(),t.set(T.some(e))}}},Fu=function(){var e=Nu(f);return K(K({},e),{on:function(t){return e.get().each(t)}})},ju=function(e,t,n,o){return function(r){var i=Nu((function(e){return e.unbind()})),a=!se(o),s=function(){var s=ki(t),l=function(t){return e.formatter.match(n,{value:o},t.dom,a)};a?(r.setActive(!A(s,l)),i.set(e.formatter.formatChanged(n,(function(e){return r.setActive(!e)}),!0))):(r.setActive(U(s,l)),i.set(e.formatter.formatChanged(n,r.setActive,!1,{value:o})))};return e.initialized?s():e.on("init",s),i.clear}},Bu=function(e){return ze(e,"menu")},$u=function(e){return I(e,(function(e){var t=e.text||e.title;return Bu(e)?{text:t,items:$u(e.menu)}:{text:t,value:e.value}}))},zu=function(e,t,n,o,r){return I(n,(function(n){var i=n.text||n.title;return Bu(n)?{type:"nestedmenuitem",text:i,getSubmenuItems:function(){return zu(e,t,n.menu,o,r)}}:{text:i,type:"togglemenuitem",onAction:function(){return r(n.value)},onSetup:ju(e,t,o,n.value)}}))},Uu=function(e,t){return function(n){var o;e.execCommand("mceTableApplyCellStyle",!1,((o={})[t]=n,o))}},Vu=function(e){return z(e,(function(e){return Bu(e)?[K(K({},e),{menu:Vu(e.menu)})]:se(e.value)?[e]:[]}))},Hu=function(e,t,n,o,r){return function(i){return i(zu(e,t,n,o,r))}},Wu=function(e,t,n){var o=I(t,(function(e){return{text:e.title,value:"#"+Ru(e.value).value,type:"choiceitem"}}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:o.length>0?o:void 0,allowCustomColors:!1},onAction:function(t){var o,r="remove"===t.value?"":t.value;e.execCommand("mceTableApplyCellStyle",!1,((o={})[n]=r,o))}}]},Yu=function(e){return function(){var t="header"===e.queryCommandValue("mceTableRowType")?"body":"header";e.execCommand("mceTableRowType",!1,{type:t})}},qu=function(e){return function(){var t="th"===e.queryCommandValue("mceTableColType")?"td":"th";e.execCommand("mceTableColType",!1,{type:t})}},Gu=[{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:xu}],Ku=function(e){return Gu.concat(function(e){var t=$u(Os(e));return t.length>0?T.some({name:"class",type:"listbox",label:"Class",items:t}):T.none()}(e).toArray())},Xu=function(e,t){var n=[{name:"borderstyle",type:"listbox",label:"Border style",items:[{text:"Select...",value:""}].concat($u(vs(e)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}];return{title:"Advanced",name:"advanced",items:"cell"===t?[{name:"borderwidth",type:"input",label:"Border width"}].concat(n):n}},Ju=function(e){return function(t,n){var o=t.dom;return{setAttrib:function(t,r){e&&!r||o.setAttrib(n,t,r)},setStyle:function(t,r){e&&!r||o.setStyle(n,t,r)},setFormat:function(o,r){e&&!r||(""===r?t.formatter.remove(o,{value:null},n,!0):t.formatter.apply(o,{value:r},n))}}}},Qu={normal:Ju(!1),ifTruthy:Ju(!0)},Zu=function(e){return function(t){return re(t,"rgb")?e.toHex(t):t}},ed=function(e,t){var n=Ce.fromDom(t);return{borderwidth:Wt(n,"border-width").getOr(""),borderstyle:Wt(n,"border-style").getOr(""),bordercolor:Wt(n,"border-color").map(Zu(e)).getOr(""),backgroundcolor:Wt(n,"background-color").map(Zu(e)).getOr("")}},td=function(e){var t=e[0],n=e.slice(1);return P(n,(function(e){P(Ae(t),(function(n){Ie(e,(function(e,o){var r=t[n];""!==r&&n===o&&r!==e&&(t[n]="")}))}))})),t},nd=function(e,t,n,o){return j(e,(function(e){return!l(n.formatter.matchNode(o,t+e))})).getOr("")},od=g(nd,["left","center","right"],"align"),rd=g(nd,["top","middle","bottom"],"valign"),id=function(e){return an(Ce.fromDom(e)).map((function(t){var n={selection:pi(e.cells)};return iu(t,n)})).getOr("")},ad=function(e,t){var n=Sn.fromTable(e),o=Sn.justCells(n),r=L(o,(function(e){return A(t,(function(t){return Ee(e.element,t)}))}));return I(r,(function(e){return{element:e.element.dom,column:Sn.getColumnAt(n,e.column).map((function(e){return e.element.dom}))}}))},sd=function(e,t,n){var o=1===t.length;P(t,(function(t){var r=t.element,i=o?Qu.normal(e,r):Qu.ifTruthy(e,r);!function(e,t,n){e.setAttrib("scope",n.scope),e.setAttrib("class",n.class),e.setStyle("height",bi(n.height)),t.setStyle("width",bi(n.width))}(i,t.column.map((function(t){return o?Qu.normal(e,t):Qu.ifTruthy(e,t)})).getOr(i),n),_s(e)&&function(e,t){e.setFormat("tablecellbackgroundcolor",t.backgroundcolor),e.setFormat("tablecellbordercolor",t.bordercolor),e.setFormat("tablecellborderstyle",t.borderstyle),e.setFormat("tablecellborderwidth",bi(t.borderwidth))}(i,n),o&&(Cu(e,r),function(e,t){yu.each("top middle bottom".split(" "),(function(n){e.formatter.remove("valign"+n,{},t)}))}(e,r)),n.halign&&wu(e,r,n.halign),n.valign&&function(e,t,n){n&&e.formatter.apply("valign"+n,{},t)}(e,r,n.valign)}))},ld=function(e,t,n,o){var r=o.getData();o.close(),e.undoManager.transact((function(){!function(e,t,n,o){var r=Le(o,(function(e,t){return n[t]!==e}));je(r)>0&&t.length>=1&&an(t[0]).each((function(n){var i=ad(n,t),a=je(Le(r,(function(e,t){return"scope"!==t&&"celltype"!==t})))>0,s=$e(r,"celltype");(a||$e(r,"scope"))&&sd(e,i,o),s&&function(e,t){e.execCommand("mceTableCellType",!1,{type:t.celltype,no_events:!0})}(e,o),as(e,n.dom,{structure:s,style:a})}))}(e,t,n,r),e.focus()}))},cd=function(e,t){var n=an(t[0]).map((function(n){return I(ad(n,t),(function(t){return function(e,t,n,o){var r,i=e.dom,a=o.getOr(t),s=function(e,t){return i.getStyle(e,t)||i.getAttrib(e,t)};return K({width:s(a,"width"),height:s(t,"height"),scope:i.getAttrib(t,"scope"),celltype:(r=t,r.nodeName.toLowerCase()),class:i.getAttrib(t,"class",""),halign:od(e,t),valign:rd(e,t)},n?ed(i,t):{})}(e,t.element,_s(e),t.column)}))}));return td(n.getOrDie())},ud=function(e,t){var n=ki(t);if(0!==n.length){var o=cd(e,n),r={type:"tabpanel",tabs:[{title:"General",name:"general",items:Ku(e)},Xu(e,"cell")]},i={type:"panel",items:[{type:"grid",columns:2,items:Ku(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:_s(e)?r:i,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:o,onSubmit:g(ld,e,n,o)})}},dd=[{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"}],fd=function(e){return dd.concat(function(e){var t=$u(function(e){return e.getParam("table_row_class_list",[],"array")}(e));return t.length>0?T.some({name:"class",type:"listbox",label:"Class",items:t}):T.none()}(e).toArray())},pd=function(e,t,n,o){var r=1===t.length;P(t,(function(t){var i=r?Qu.normal(e,t):Qu.ifTruthy(e,t);!function(e,t){e.setAttrib("class",t.class),e.setStyle("height",bi(t.height))}(i,n),ws(e)&&function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle)}(i,n),n.align!==o.align&&(Cu(e,t),wu(e,t,n.align))}))},md=function(e,t,n,o){var r=o.getData();o.close(),e.undoManager.transact((function(){!function(e,t,n,o){var r=Le(o,(function(e,t){return n[t]!==e}));if(je(r)>0){var i=$e(r,"type"),a=!i||je(r)>1;a&&pd(e,t,o,n),i&&function(e,t){e.execCommand("mceTableRowType",!1,{type:t.type,no_events:!0})}(e,o),an(Ce.fromDom(t[0])).each((function(t){return as(e,t.dom,{structure:i,style:a})}))}}(e,t,n,r),e.focus()}))},hd=function(e){var t,n,o,r,i=(t=_i(e),n=Oi.selected,o=Di(t),r=o.bind((function(e){return an(e)})).map((function(e){return sn(e)})),Ft(o,r,(function(e,t){return L(t,(function(t){return A(pi(t.dom.cells),(function(t){return"1"===Mt(t,n)||Ee(t,e)}))}))})).getOr([]));if(0!==i.length){var a=I(i,(function(t){return function(e,t,n){var o=e.dom;return K({height:o.getStyle(t,"height")||o.getAttrib(t,"height"),class:o.getAttrib(t,"class",""),type:id(t),align:od(e,t)},n?ed(o,t):{})}(e,t.dom,ws(e))})),s=td(a),l={type:"tabpanel",tabs:[{title:"General",name:"general",items:fd(e)},Xu(e,"row")]},c={type:"panel",items:[{type:"grid",columns:2,items:fd(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:ws(e)?l:c,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:s,onSubmit:g(md,e,I(i,(function(e){return e.dom})),s)})}},gd=function(e,t,n){var o=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],r=function(e){return e.getParam("table_appearance_options",!0,"boolean")}(e)?[{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=t.length>0?[{type:"listbox",name:"class",label:"Class",items:t}]:[];return o.concat([{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}]).concat(r).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)},vd=function(e,t,n,r){if("TD"===t.tagName||"TH"===t.tagName)o(n)?e.setStyle(t,n,r):e.setStyle(t,n);else if(t.children)for(var i=0;i<t.children.length;i++)vd(e,t.children[i],n,r)},bd=function(e,t,n,o){var r=e.dom,i=o.getData(),a=Le(i,(function(e,t){return n[t]!==e}));o.close(),""===i.class&&delete i.class,e.undoManager.transact((function(){if(!t){var n=parseInt(i.cols,10)||1,o=parseInt(i.rows,10)||1;t=du(e,n,o,0,0)}if(je(a)>0){!function(e,t,n){var o=e.dom,r={},i={};if(r.class=n.class,i.height=bi(n.height),o.getAttrib(t,"width")&&!xs(e)?r.width=function(e){return e?e.replace(/px$/,""):""}(n.width):i.width=bi(n.width),xs(e)?(i["border-width"]=bi(n.border),i["border-spacing"]=bi(n.cellspacing)):(r.border=n.border,r.cellpadding=n.cellpadding,r.cellspacing=n.cellspacing),xs(e)&&t.children)for(var a=0;a<t.children.length;a++)vd(o,t.children[a],{"border-width":bi(n.border),padding:bi(n.cellpadding)}),Cs(e)&&vd(o,t.children[a],{"border-color":n.bordercolor});Cs(e)&&(i["background-color"]=n.backgroundcolor,i["border-color"]=n.bordercolor,i["border-style"]=n.borderstyle),r.style=o.serializeStyle(K(K({},ys(e)),i)),o.setAttribs(t,K(K({},bs(e)),r))}(e,t,i);var s=r.select("caption",t)[0];(s&&!i.caption||!s&&i.caption)&&e.execCommand("mceTableToggleCaption"),""===i.align?Cu(e,t):wu(e,t,i.align)}if(e.focus(),e.addVisual(),je(a)>0){var l=$e(a,"caption"),c=!l||je(a)>1;as(e,t,{structure:l,style:c})}}))},yd=function(e,t){var n,o=e.dom,r=function(e,t){var n,o,r,i,a=ys(e),s=bs(e),l=t?(n=e.dom,{borderstyle:Be(a,"border-style").getOr(""),bordercolor:Zu(n)(Be(a,"border-color").getOr("")),backgroundcolor:Zu(n)(Be(a,"background-color").getOr(""))}):{};return K(K(K(K(K(K({},{height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""}),a),s),l),(i=a["border-width"],xs(e)&&i?{border:i}:Be(s,"border").fold((function(){return{}}),(function(e){return{border:e}})))),(o=Be(a,"border-spacing").or(Be(s,"cellspacing")).fold((function(){return{}}),(function(e){return{cellspacing:e}})),r=Be(a,"border-padding").or(Be(s,"cellpadding")).fold((function(){return{}}),(function(e){return{cellpadding:e}})),K(K({},o),r)))}(e,Cs(e));!1===t?(n=o.getParent(e.selection.getStart(),"table",e.getBody()))?r=function(e,t,n){var o=e.dom,r=xs(e)?o.getStyle(t,"border-spacing")||o.getAttrib(t,"cellspacing"):o.getAttrib(t,"cellspacing")||o.getStyle(t,"border-spacing"),i=xs(e)?_u(o,t,"padding")||o.getAttrib(t,"cellpadding"):o.getAttrib(t,"cellpadding")||_u(o,t,"padding");return K({width:o.getStyle(t,"width")||o.getAttrib(t,"width"),height:o.getStyle(t,"height")||o.getAttrib(t,"height"),cellspacing:r,cellpadding:i,border:function(t,n){var o=Wt(Ce.fromDom(n),"border-width");return xs(e)&&o.isSome()?o.getOr(""):t.getAttrib(n,"border")||_u(e.dom,n,"border-width")||_u(e.dom,n,"border")}(o,t),caption:!!o.select("caption",t)[0],class:o.getAttrib(t,"class",""),align:od(e,t)},n?ed(o,t):{})}(e,n,Cs(e)):Cs(e)&&(r.borderstyle="",r.bordercolor="",r.backgroundcolor=""):(r.cols="1",r.rows="1",Cs(e)&&(r.borderstyle="",r.bordercolor="",r.backgroundcolor=""));var i=$u(Ts(e));i.length>0&&r.class&&(r.class=r.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:gd(e,i,t)},s=Cs(e)?{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},Xu(e,"table")]}:{type:"panel",items:[a]};e.windowManager.open({title:"Table Properties",size:"normal",body:s,onSubmit:g(bd,e,n,r),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r})},_d=function(e){return Si(_i(e),vi(e))},wd=function(e,t,n,i,a){var s=vi(e),l=function(e){return an(e,s)},c=function(t){return function(e){return Di(_i(e),vi(e))}(e).bind((function(e){return l(e).map((function(n){return t(n,e)}))}))},u=function(t){e.focus()},d=function(e,t){return void 0===t&&(t=!1),c((function(n,o){var r=Ti(i,n,o);e(n,r,t).each(u)}))},p=function(){return c((function(t,n){var o=Ti(i,t,n),r=di(f,Ce.fromDom(e.getDoc()),T.none());return bu(t,o,r)}))},m=function(){return c((function(e,t){var n=Ti(i,e,t);return vu(e,n)}))},h=function(t,n){return n().each((function(n){var o=I(n,(function(e){return To(e)}));c((function(n,r){var a=fi(Ce.fromDom(e.getDoc())),s=function(e,t,n,o){return{selection:wi(e),clipboard:n,generators:o}}(i,0,o,a);t(n,s).each(u)}))}))},v=function(e){return function(t,n){return Be(n,"type").each((function(t){d(e(t),n.no_events)}))}};Ie({mceTableSplitCells:function(){return d(t.unmergeCells)},mceTableMergeCells:function(){return d(t.mergeCells)},mceTableInsertRowBefore:function(){return d(t.insertRowsBefore)},mceTableInsertRowAfter:function(){return d(t.insertRowsAfter)},mceTableInsertColBefore:function(){return d(t.insertColumnsBefore)},mceTableInsertColAfter:function(){return d(t.insertColumnsAfter)},mceTableDeleteCol:function(){return d(t.deleteColumn)},mceTableDeleteRow:function(){return d(t.deleteRow)},mceTableCutCol:function(){return m().each((function(e){a.setColumns(e),d(t.deleteColumn)}))},mceTableCutRow:function(){return p().each((function(e){a.setRows(e),d(t.deleteRow)}))},mceTableCopyCol:function(){return m().each((function(e){return a.setColumns(e)}))},mceTableCopyRow:function(){return p().each((function(e){return a.setRows(e)}))},mceTablePasteColBefore:function(){return h(t.pasteColsBefore,a.getColumns)},mceTablePasteColAfter:function(){return h(t.pasteColsAfter,a.getColumns)},mceTablePasteRowBefore:function(){return h(t.pasteRowsBefore,a.getRows)},mceTablePasteRowAfter:function(){return h(t.pasteRowsAfter,a.getRows)},mceTableDelete:function(){return _d(e).each((function(t){an(t,s).filter(y(s)).each((function(t){var n=Ce.fromText("");if(Bn(t,n),Yn(t),e.dom.isEmpty(e.getBody()))e.setContent(""),e.selection.setCursorLocation();else{var o=e.dom.createRng();o.setStart(n.dom,0),o.setEnd(n.dom,0),e.selection.setRng(o),e.nodeChanged()}}))}))},mceTableCellToggleClass:function(t,n){c((function(t){var o=ki(i),r=U(o,(function(t){return e.formatter.match("tablecellclass",{value:n},t.dom)}))?e.formatter.remove:e.formatter.apply;P(o,(function(e){return r("tablecellclass",{value:n},e.dom)})),as(e,t.dom,ss)}))},mceTableToggleClass:function(t,n){c((function(t){e.formatter.toggle("tableclass",{value:n},t.dom),as(e,t.dom,ss)}))},mceTableToggleCaption:function(){_d(e).each((function(t){an(t,s).each((function(n){Tt(n,"caption").fold((function(){var t=Ce.fromTag("caption");zn(t,Ce.fromText("Caption")),function(e,t,n){ct(e,n).fold((function(){zn(e,t)}),(function(e){jn(e,t)}))}(n,t,0),e.selection.setCursorLocation(t.dom,0)}),(function(o){tt("caption")(t)&&Te("td",n).each((function(t){return e.selection.setCursorLocation(t.dom,0)})),Yn(o)})),as(e,n.dom,ls)}))}))},mceTableSizingMode:function(t,n){return function(t){return _d(e).each((function(n){Ds(e)||Ss(e)||Es(e)||an(n,s).each((function(n){"relative"!==t||aa(n)?"fixed"!==t||sa(n)?"responsive"!==t||la(n)||zs(n):$s(n):Bs(n),yi(n),as(e,n.dom,ls)}))}))}(n)},mceTableCellType:v((function(e){return"th"===e?t.makeCellsHeader:t.unmakeCellsHeader})),mceTableColType:v((function(e){return"th"===e?t.makeColumnsHeader:t.unmakeColumnsHeader})),mceTableRowType:v((function(e){switch(e){case"header":return t.makeRowsHeader;case"footer":return t.makeRowsFooter;default:return t.makeRowsBody}}))},(function(t,n){return e.addCommand(n,t)})),Ie({mceTableProps:g(yd,e,!1),mceTableRowProps:g(hd,e),mceTableCellProps:g(ud,e,i)},(function(t,n){return e.addCommand(n,(function(){return t()}))})),e.addCommand("mceInsertTable",(function(t,n){r(n)&&Ae(n).length>0?fu(e,n.rows,n.columns,n.options):yd(e,!0)})),e.addCommand("mceTableApplyCellStyle",(function(t,n){var a=function(e){return"tablecell"+e.toLowerCase().replace("-","")};if(r(n)){var s=ki(i);if(0!==s.length){var c=Le(n,(function(t,n){return e.formatter.has(a(n))&&o(t)}));(function(e){for(var t in e)if(Me.call(e,t))return!1;return!0})(c)||(Ie(c,(function(t,n){P(s,(function(o){Qu.normal(e,o.dom).setFormat(a(n),t)}))})),l(s[0]).each((function(t){return as(e,t.dom,ss)})))}}}))},Cd={remove_similar:!0,inherit:!1},xd=K({selector:"td,th"},Cd),Od={tablecellbackgroundcolor:K({styles:{backgroundColor:"%value"}},xd),tablecellverticalalign:K({styles:{"vertical-align":"%value"}},xd),tablecellbordercolor:K({styles:{borderColor:"%value"}},xd),tablecellclass:K({classes:["%value"]},xd),tableclass:K({selector:"table",classes:["%value"]},Cd),tablecellborderstyle:K({styles:{borderStyle:"%value"}},xd),tablecellborderwidth:K({styles:{borderWidth:"%value"}},xd)},Td=go([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),Ed=K(K({},Td),{none:function(e){return void 0===e&&(e=void 0),Td.none(e)}}),Sd=function(e,t,n,o,r){void 0===r&&(r=w);var i=1===o;if(!i&&n<=0)return Ed.first(e[0]);if(i&&n>=e.length-1)return Ed.last(e[e.length-1]);var a=n+o,s=e[a];return r(s)?Ed.middle(t,s):Sd(e,t,a,o,r)},Dd=function(e,t){return an(e,t).bind((function(t){var n=on(t);return B(n,(function(t){return Ee(e,t)})).map((function(e){return{index:e,all:n}}))}))},kd=function(e,t,n,o){return{start:e,soffset:t,finish:n,foffset:o}},Ad=go([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Md={before:Ad.before,on:Ad.on,after:Ad.after,cata:function(e,t,n,o){return e.fold(t,n,o)},getStart:function(e){return e.fold(m,m,m)}},Id=go([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Pd={domRange:Id.domRange,relative:Id.relative,exact:Id.exact,exactFromRange:function(e){return Id.exact(e.start,e.soffset,e.finish,e.foffset)},getWin:function(e){var t,n=function(e){return e.match({domRange:function(e){return Ce.fromDom(e.startContainer)},relative:function(e,t){return Md.getStart(e)},exact:function(e,t,n,o){return e}})}(e);return t=n,Ce.fromDom(ot(t).dom.defaultView)},range:kd},Rd=function(e,t){var n=e.document.createRange();return n.selectNode(t.dom),n},Ld=function(e,t){var n=e.document.createRange();return Nd(n,t),n},Nd=function(e,t){return e.selectNodeContents(t.dom)},Fd=function(e,t,n){var o,r=e.document.createRange();return o=r,t.fold((function(e){o.setStartBefore(e.dom)}),(function(e,t){o.setStart(e.dom,t)}),(function(e){o.setStartAfter(e.dom)})),function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))}(r,n),r},jd=function(e,t,n,o,r){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(o.dom,r),i},Bd=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},$d=go([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),zd=function(e,t,n){return t(Ce.fromDom(n.startContainer),n.startOffset,Ce.fromDom(n.endContainer),n.endOffset)},Ud=function(e,t){return function(e,t){var n=t.ltr();return n.collapsed?t.rtl().filter((function(e){return!1===e.collapsed})).map((function(e){return $d.rtl(Ce.fromDom(e.endContainer),e.endOffset,Ce.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return zd(0,$d.ltr,n)})):zd(0,$d.ltr,n)}(0,function(e,t){return t.match({domRange:function(e){return{ltr:p(e),rtl:T.none}},relative:function(t,n){return{ltr:J((function(){return Fd(e,t,n)})),rtl:J((function(){return T.some(Fd(e,n,t))}))}},exact:function(t,n,o,r){return{ltr:J((function(){return jd(e,t,n,o,r)})),rtl:J((function(){return T.some(jd(e,o,r,t,n))}))}}})}(e,t))},Vd=function(e,t){return Ud(e,t).match({ltr:function(t,n,o,r){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(o.dom,r),i},rtl:function(t,n,o,r){var i=e.document.createRange();return i.setStart(o.dom,r),i.setEnd(t.dom,n),i}})};$d.ltr,$d.rtl;var Hd=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},Wd=function(e,t,n,o,r){var i=function(n){var o=e.dom.createRange();return o.setStart(t.dom,n),o.collapse(!0),o},a=Kn(t).length,s=function(e,t,n,o,r){if(0===r)return 0;if(t===o)return r-1;for(var i=o,a=1;a<r;a++){var s=e(a),l=Math.abs(t-s.left);if(n<=s.bottom){if(n<s.top||l>i)return a-1;i=l}}return 0}((function(e){return i(e).getBoundingClientRect()}),n,o,r.right,a);return i(s)},Yd=function(e,t,n,o){return Qe(t)?function(e,t,n,o){var r=e.dom.createRange();r.selectNode(t.dom);var i=r.getClientRects();return G(i,(function(e){return Hd(e,n,o)?T.some(e):T.none()})).map((function(r){return Wd(e,t,n,o,r)}))}(e,t,n,o):function(e,t,n,o){var r=e.dom.createRange(),i=lt(t);return G(i,(function(t){return r.selectNode(t.dom),Hd(r.getBoundingClientRect(),n,o)?Yd(e,t,n,o):T.none()}))}(e,t,n,o)},qd=function(e,t){return t-e.left<e.right-t},Gd=function(e,t,n){var o=e.dom.createRange();return o.selectNode(t.dom),o.collapse(n),o},Kd=function(e,t,n){var o=e.dom.createRange();o.selectNode(t.dom);var r=o.getBoundingClientRect(),i=qd(r,n);return(!0===i?ti:ni)(t).map((function(t){return Gd(e,t,i)}))},Xd=function(e,t,n){var o=t.dom.getBoundingClientRect(),r=qd(o,n);return T.some(Gd(e,t,r))},Jd=function(e,t,n){var o,r;return T.from(null===(r=(o=e.dom).caretPositionFromPoint)||void 0===r?void 0:r.call(o,t,n)).bind((function(t){if(null===t.offsetNode)return T.none();var n=e.dom.createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),T.some(n)}))},Qd=function(e,t,n){var o,r;return T.from(null===(r=(o=e.dom).caretRangeFromPoint)||void 0===r?void 0:r.call(o,t,n))},Zd=function(e,t,n,o){var r=e.dom.createRange();r.selectNode(t.dom);var i=r.getBoundingClientRect();return function(e,t,n,o){var r=e.dom.createRange();r.selectNode(t.dom);var i=r.getBoundingClientRect(),a=Math.max(i.left,Math.min(i.right,n)),s=Math.max(i.top,Math.min(i.bottom,o));return Yd(e,t,a,s)}(e,t,Math.max(i.left,Math.min(i.right,n)),Math.max(i.top,Math.min(i.bottom,o)))},ef=function(e,t,n){return Ce.fromPoint(e,t,n).bind((function(o){var r=function(){return function(e,t,n){return(0===lt(t).length?Xd:Kd)(e,t,n)}(e,o,t)};return 0===lt(o).length?r():Zd(e,o,t,n).orThunk(r)}))},tf=document.caretPositionFromPoint?Jd:document.caretRangeFromPoint?Qd:ef,nf=function(e,t){var n=qe(e);return"input"===n?Md.after(e):k(["br","img"],n)?0===t?Md.before(e):Md.after(e):Md.on(e,t)},of=function(e,t){var n=e.fold(Md.before,nf,Md.after),o=t.fold(Md.before,nf,Md.after);return Pd.relative(n,o)},rf=function(e,t,n,o){var r=nf(e,t),i=nf(n,o);return Pd.relative(r,i)},af=function(e,t,n,o){var r=function(e,t,n,o){var r=nt(e).dom.createRange();return r.setStart(e.dom,t),r.setEnd(n.dom,o),r}(e,t,n,o),i=Ee(e,n)&&t===o;return r.collapsed&&!i},sf=function(e){return T.from(e.getSelection())},lf=function(e,t){sf(e).each((function(e){e.removeAllRanges(),e.addRange(t)}))},cf=function(e,t,n,o,r){var i=jd(e,t,n,o,r);lf(e,i)},uf=function(e,t){return Ud(e,t).match({ltr:function(t,n,o,r){cf(e,t,n,o,r)},rtl:function(t,n,o,r){sf(e).each((function(i){if(i.setBaseAndExtent)i.setBaseAndExtent(t.dom,n,o.dom,r);else if(i.extend)try{!function(e,t,n,o,r,i){t.collapse(n.dom,o),t.extend(r.dom,i)}(0,i,t,n,o,r)}catch(i){cf(e,o,r,t,n)}else cf(e,o,r,t,n)}))}})},df=function(e,t,n,o,r){var i=rf(t,n,o,r);uf(e,i)},ff=function(e,t,n){var o=of(t,n);uf(e,o)},pf=function(e){var t=Pd.getWin(e).dom,n=function(e,n,o,r){return jd(t,e,n,o,r)},o=function(e){return e.match({domRange:function(e){var t=Ce.fromDom(e.startContainer),n=Ce.fromDom(e.endContainer);return rf(t,e.startOffset,n,e.endOffset)},relative:of,exact:rf})}(e);return Ud(t,o).match({ltr:n,rtl:n})},mf=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return T.some(kd(Ce.fromDom(t.startContainer),t.startOffset,Ce.fromDom(n.endContainer),n.endOffset))}return T.none()},hf=function(e){if(null===e.anchorNode||null===e.focusNode)return mf(e);var t=Ce.fromDom(e.anchorNode),n=Ce.fromDom(e.focusNode);return af(t,e.anchorOffset,n,e.focusOffset)?T.some(kd(t,e.anchorOffset,n,e.focusOffset)):mf(e)},gf=function(e,t,n){void 0===n&&(n=!0);var o=(n?Ld:Rd)(e,t);lf(e,o)},vf=function(e){return function(e){return sf(e).filter((function(e){return e.rangeCount>0})).bind(hf)}(e).map((function(e){return Pd.exact(e.start,e.soffset,e.finish,e.foffset)}))},bf=function(e,t){return function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?T.some(n).map(Bd):T.none()}(Vd(e,t))},yf=function(e,t,n){return function(e,t,n){var o=Ce.fromDom(e.document);return tf(o,t,n).map((function(e){return kd(Ce.fromDom(e.startContainer),e.startOffset,Ce.fromDom(e.endContainer),e.endOffset)}))}(e,t,n)},_f=tinymce.util.Tools.resolve("tinymce.util.VK"),wf=function(e,t,n){return xf(e,t,function(e,t,n){return Dd(e,n).fold((function(){return Ed.none(e)}),(function(n){return Sd(n.all,e,n.index,1,t)}))}(n,ja))},Cf=function(e,t,n){return xf(e,t,function(e,t,n){return Dd(e,n).fold((function(){return Ed.none()}),(function(n){return Sd(n.all,e,n.index,-1,t)}))}(n,ja))},xf=function(e,t,n){return n.fold(T.none,T.none,(function(e,t){return ti(t).map((function(e){return function(e,t){var n=Pd.exact(t,0,t,0);return pf(n)}(0,e)}))}),(function(n){return e.execCommand("mceTableInsertRowAfter"),wf(e,t,n)}))},Of=["table","li","dl"],Tf=function(e,t){return{selection:e,kill:t}},Ef=function(e,t,n,o){return{start:Md.on(e,t),finish:Md.on(n,o)}},Sf=function(e,t){var n=Vd(e,t);return kd(Ce.fromDom(n.startContainer),n.startOffset,Ce.fromDom(n.endContainer),n.endOffset)},Df=Ef,kf=function(e,t,n,o,r){return Ee(n,o)?T.none():co(n,o,t).bind((function(t){var o=t.boxes.getOr([]);return o.length>1?(r(e,o,t.start,t.finish),T.some(Tf(T.some(Df(n,0,n,Qr(n))),!0))):T.none()}))},Af=function(e,t){return{item:e,mode:t}},Mf=function(e,t,n,o){return void 0===o&&(o=If),e.property().parent(t).map((function(e){return Af(e,o)}))},If=function(e,t,n,o){return void 0===o&&(o=Pf),n.sibling(e,t).map((function(e){return Af(e,o)}))},Pf=function(e,t,n,o){void 0===o&&(o=Pf);var r=e.property().children(t);return n.first(r).map((function(e){return Af(e,o)}))},Rf=[{current:Mf,next:If,fallback:T.none()},{current:If,next:Pf,fallback:T.some(Mf)},{current:Pf,next:Pf,fallback:T.some(If)}],Lf=function(e,t,n,o,r){return void 0===r&&(r=Rf),j(r,(function(e){return e.current===n})).bind((function(n){return n.current(e,t,o,n.next).orThunk((function(){return n.fallback.bind((function(n){return Lf(e,t,n,o)}))}))}))},Nf=function(){return{sibling:function(e,t){return e.query().prevSibling(t)},first:function(e){return e.length>0?T.some(e[e.length-1]):T.none()}}},Ff=function(){return{sibling:function(e,t){return e.query().nextSibling(t)},first:function(e){return e.length>0?T.some(e[0]):T.none()}}},jf=function(e,t,n,o,r,i){return Lf(e,t,o,r).bind((function(t){return i(t.item)?T.none():n(t.item)?T.some(t.item):jf(e,t.item,n,t.mode,r,i)}))},Bf=function(e){return function(t){return 0===e.property().children(t).length}},$f=function(e,t,n,o){return jf(e,t,n,If,Nf(),o)},zf=function(e,t,n,o){return jf(e,t,n,If,Ff(),o)},Uf=Zn(),Vf=function(e,t){return function(e,t,n){return $f(e,t,Bf(e),n)}(Uf,e,t)},Hf=function(e,t){return function(e,t,n){return zf(e,t,Bf(e),n)}(Uf,e,t)},Wf=go([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Yf=function(e){return St(e,"tr")},qf=K(K({},Wf),{verify:function(e,t,n,o,r,i,a){return St(o,"td,th",a).bind((function(n){return St(t,"td,th",a).map((function(t){return Ee(n,t)?Ee(o,n)&&Qr(n)===r?i(t):Wf.none("in same cell"):so(Yf,[n,t]).fold((function(){return function(e,t,n){var o=e.getRect(t),r=e.getRect(n);return r.right>o.left&&r.left<o.right}(e,t,n)?Wf.success():i(t)}),(function(e){return i(t)}))}))})).getOr(Wf.none("default"))},cata:function(e,t,n,o,r){return e.fold(t,n,o,r)}}),Gf=function(e,t){return B(e,g(Ee,t))},Kf=function(e){return"br"===qe(e)},Xf=function(e,t,n){return t(e,n).bind((function(e){return Qe(e)&&0===Kn(e).trim().length?Xf(e,t,n):T.some(e)}))},Jf=function(e,t,n,o){return function(e,t){return ct(e,t).filter(Kf).orThunk((function(){return ct(e,t-1).filter(Kf)}))}(t,n).bind((function(t){return o.traverse(t).fold((function(){return Xf(t,o.gather,e).map(o.relative)}),(function(e){return function(e){return rt(e).bind((function(t){var n=lt(t);return Gf(n,e).map((function(o){return function(e,t,n,o){return{parent:e,children:t,element:n,index:o}}(t,n,e,o)}))}))}(e).map((function(e){return Md.on(e.parent,e.index)}))}))}))},Qf=function(e,t,n,o){return(Kf(t)?function(e,t,n){return n.traverse(t).orThunk((function(){return Xf(t,n.gather,e)})).map(n.relative)}(e,t,o):Jf(e,t,n,o)).map((function(e){return{start:e,finish:e}}))},Zf=function(e,t){return{left:e.left,top:e.top+t,right:e.right,bottom:e.bottom+t}},ep=function(e,t){return{left:e.left,top:e.top-t,right:e.right,bottom:e.bottom-t}},tp=function(e,t,n){return{left:e.left+t,top:e.top+n,right:e.right+t,bottom:e.bottom+n}},np=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}},op=function(e,t){return T.some(e.getRect(t))},rp=function(e,t,n){return Je(t)?op(e,t).map(np):Qe(t)?function(e,t,n){return n>=0&&n<Qr(t)?e.getRangedRect(t,n,t,n+1):n>0?e.getRangedRect(t,n-1,t,n):T.none()}(e,t,n).map(np):T.none()},ip=function(e,t){return Je(t)?op(e,t).map(np):Qe(t)?e.getRangedRect(t,0,t,Qr(t)).map(np):T.none()},ap=go([{none:[]},{retry:["caret"]}]),sp=function(e,t,n){return(o=t,r=pc,Ct((function(e,t){return t(e)}),xt,o,r,i)).fold(_,(function(t){return ip(e,t).exists((function(e){return function(e,t){return e.left<t.left||Math.abs(t.right-e.left)<1||e.left>t.right}(n,e)}))}));var o,r,i},lp={point:function(e){return e.bottom},adjuster:function(e,t,n,o,r){var i=Zf(r,5);return Math.abs(n.bottom-o.bottom)<1||n.top>r.bottom?ap.retry(i):n.top===r.bottom?ap.retry(Zf(r,1)):sp(e,t,r)?ap.retry(tp(i,5,0)):ap.none()},move:Zf,gather:Hf},cp=function(e,t,n,o,r){return 0===r?T.some(o):function(e,t,n){return e.elementFromPoint(t,n).filter((function(e){return"table"===qe(e)})).isSome()}(e,o.left,t.point(o))?function(e,t,n,o,r){return cp(e,t,n,t.move(o,5),r)}(e,t,n,o,r-1):e.situsFromPoint(o.left,t.point(o)).bind((function(i){return i.start.fold(T.none,(function(i){return ip(e,i).bind((function(a){return t.adjuster(e,i,a,n,o).fold(T.none,(function(o){return cp(e,t,n,o,r-1)}))})).orThunk((function(){return T.some(o)}))}),T.none)}))},up=function(e,t,n){var o=e.move(n,5),r=cp(t,e,n,o,100).getOr(o);return function(e,t,n){return e.point(t)>n.getInnerHeight()?T.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?T.some(-e.point(t)):T.none()}(e,r,t).fold((function(){return t.situsFromPoint(r.left,e.point(r))}),(function(n){return t.scrollBy(0,n),t.situsFromPoint(r.left,e.point(r)-n)}))},dp={tryUp:g(up,{point:function(e){return e.top},adjuster:function(e,t,n,o,r){var i=ep(r,5);return Math.abs(n.top-o.top)<1||n.bottom<r.top?ap.retry(i):n.bottom===r.top?ap.retry(ep(r,1)):sp(e,t,r)?ap.retry(tp(i,5,0)):ap.none()},move:ep,gather:Vf}),tryDown:g(up,lp),ieTryUp:function(e,t){return e.situsFromPoint(t.left,t.top-5)},ieTryDown:function(e,t){return e.situsFromPoint(t.left,t.bottom+5)},getJumpSize:p(5)},fp=function(e,t,n){return e.getSelection().bind((function(o){return Qf(t,o.finish,o.foffset,n).fold((function(){return T.some(Ws(o.finish,o.foffset))}),(function(r){var i=e.fromSitus(r);return function(e){return qf.cata(e,(function(e){return T.none()}),(function(){return T.none()}),(function(e){return T.some(Ws(e,0))}),(function(e){return T.some(Ws(e,Qr(e)))}))}(qf.verify(e,o.finish,o.foffset,i.finish,i.foffset,n.failure,t))}))}))},pp=function(e,t,n,o,r,i){return 0===i?T.none():gp(e,t,n,o,r).bind((function(a){var s=e.fromSitus(a),l=qf.verify(e,n,o,s.finish,s.foffset,r.failure,t);return qf.cata(l,(function(){return T.none()}),(function(){return T.some(a)}),(function(a){return Ee(n,a)&&0===o?mp(e,n,o,ep,r):pp(e,t,a,0,r,i-1)}),(function(a){return Ee(n,a)&&o===Qr(a)?mp(e,n,o,Zf,r):pp(e,t,a,Qr(a),r,i-1)}))}))},mp=function(e,t,n,o,r){return rp(e,t,n).bind((function(t){return hp(e,r,o(t,dp.getJumpSize()))}))},hp=function(e,t,n){var o=_e().browser;return o.isChrome()||o.isSafari()||o.isFirefox()||o.isEdge()?t.otherRetry(e,n):o.isIE()?t.ieRetry(e,n):T.none()},gp=function(e,t,n,o,r){return rp(e,n,o).bind((function(t){return hp(e,r,t)}))},vp=function(e,t){return xt(e,(function(e){return rt(e).exists((function(e){return Ee(e,t)}))}),n).isSome();var n},bp=function(e,t,n,o,r){return St(o,"td,th",t).bind((function(o){return St(o,"table",t).bind((function(i){return vp(r,i)?function(e,t,n){return fp(e,t,n).bind((function(o){return pp(e,t,o.element,o.offset,n,20).map(e.fromSitus)}))}(e,t,n).bind((function(e){return St(e.finish,"td,th",t).map((function(t){return{start:o,finish:t,range:e}}))})):T.none()}))}))},yp=function(e,t,n,o,r,i){return _e().browser.isIE()?T.none():i(o,t).orThunk((function(){return bp(e,t,n,o,r).map((function(e){var t=e.range;return Tf(T.some(Df(t.start,t.soffset,t.finish,t.foffset)),!0)}))}))},_p=function(e,t){return St(e,"tr",t).bind((function(e){return St(e,"table",t).bind((function(n){var o=wt(n,"tr");return Ee(e,o[0])?function(e,t,n){return $f(Uf,e,t,n)}(n,(function(e){return ni(e).isSome()}),t).map((function(e){var t=Qr(e);return Tf(T.some(Df(e,t,e,t)),!0)})):T.none()}))}))},wp=function(e,t){return St(e,"tr",t).bind((function(e){return St(e,"table",t).bind((function(n){var o=wt(n,"tr");return Ee(e,o[o.length-1])?function(e,t,n){return zf(Uf,e,t,n)}(n,(function(e){return ti(e).isSome()}),t).map((function(e){return Tf(T.some(Df(e,0,e,0)),!0)})):T.none()}))}))},Cp=function(e,t,n,o,r,i,a){return bp(e,n,o,r,i).bind((function(e){return kf(t,n,e.start,e.finish,a)}))},xp=function(e,t){return St(e,"td,th",t)},Op={traverse:st,gather:Hf,relative:Md.before,otherRetry:dp.tryDown,ieRetry:dp.ieTryDown,failure:qf.failedDown},Tp={traverse:at,gather:Vf,relative:Md.before,otherRetry:dp.tryUp,ieRetry:dp.ieTryUp,failure:qf.failedUp},Ep=function(e){return function(t){return t===e}},Sp=Ep(38),Dp=Ep(40),kp=function(e){return e>=37&&e<=40},Ap={isBackward:Ep(37),isForward:Ep(39)},Mp={isBackward:Ep(39),isForward:Ep(37)},Ip=function(e){return{elementFromPoint:function(t,n){return Ce.fromPoint(Ce.fromDom(e.document),t,n)},getRect:function(e){return e.dom.getBoundingClientRect()},getRangedRect:function(t,n,o,r){var i=Pd.exact(t,n,o,r);return bf(e,i)},getSelection:function(){return vf(e).map((function(t){return Sf(e,t)}))},fromSitus:function(t){var n=Pd.relative(t.start,t.finish);return Sf(e,n)},situsFromPoint:function(t,n){return yf(e,t,n).map((function(e){return Ef(e.start,e.soffset,e.finish,e.foffset)}))},clearSelection:function(){!function(e){sf(e).each((function(e){return e.removeAllRanges()}))}(e)},collapseSelection:function(t){void 0===t&&(t=!1),vf(e).each((function(n){return n.fold((function(e){return e.collapse(t)}),(function(n,o){var r=t?n:o;ff(e,r,r)}),(function(n,o,r,i){var a=t?n:r,s=t?o:i;df(e,a,s,a,s)}))}))},setSelection:function(t){df(e,t.start,t.soffset,t.finish,t.foffset)},setRelativeSelection:function(t,n){ff(e,t,n)},selectNode:function(t){gf(e,t,!1)},selectContents:function(t){gf(e,t)},getInnerHeight:function(){return e.innerHeight},getScrollY:function(){var t,n,o,r;return(t=Ce.fromDom(e.document),n=void 0!==t?t.dom:document,o=n.body.scrollLeft||n.documentElement.scrollLeft,r=n.body.scrollTop||n.documentElement.scrollTop,Xo(o,r)).top},scrollBy:function(t,n){!function(e,t,n){var o=(void 0!==n?n.dom:document).defaultView;o&&o.scrollBy(e,t)}(t,n,Ce.fromDom(e.document))}}},Pp=function(e,t){return{rows:e,cols:t}},Rp=function(e,t,n,o){var r=function(e,t,n,o){var r=Fu(),i=r.clear,a=function(i){r.on((function(r){o.clearBeforeUpdate(t),xp(i.target,n).each((function(a){co(r,a,n).each((function(n){var r=n.boxes.getOr([]);if(1===r.length){var s=r[0],l="false"===Ba(s),c=Lt(Fa(i.target),s,Ee);l&&c&&(o.selectRange(t,r,s,s),e.selectContents(s))}else r.length>1&&(o.selectRange(t,r,n.start,n.finish),e.selectContents(a))}))}))}))};return{clearstate:i,mousedown:function(e){o.clear(t),xp(e.target,n).each(r.set)},mouseover:function(e){a(e)},mouseup:function(e){a(e),i()}}}(Ip(e),t,n,o);return{clearstate:r.clearstate,mousedown:r.mousedown,mouseover:r.mouseover,mouseup:r.mouseup}},Lp=function(e,t,n,o){var r=Ip(e),i=function(){return o.clear(t),T.none()};return{keydown:function(e,a,s,l,c,u){var d=e.raw,f=d.which,p=!0===d.shiftKey;return uo(t,o.selectedSelector).fold((function(){return kp(f)&&!p&&o.clearBeforeUpdate(t),Dp(f)&&p?g(Cp,r,t,n,Op,l,a,o.selectRange):Sp(f)&&p?g(Cp,r,t,n,Tp,l,a,o.selectRange):Dp(f)?g(yp,r,n,Op,l,a,wp):Sp(f)?g(yp,r,n,Tp,l,a,_p):T.none}),(function(e){var n=function(n){return function(){return G(n,(function(n){return function(e,t,n,o,r){return po(o,e,t,r.firstSelectedSelector,r.lastSelectedSelector).map((function(e){return r.clearBeforeUpdate(n),r.selectRange(n,e.boxes,e.start,e.finish),e.boxes}))}(n.rows,n.cols,t,e,o)})).fold((function(){return fo(t,o.firstSelectedSelector,o.lastSelectedSelector).map((function(e){var n=Dp(f)||u.isForward(f)?Md.after:Md.before;return r.setRelativeSelection(Md.on(e.first,0),n(e.table)),o.clear(t),Tf(T.none(),!0)}))}),(function(e){return T.some(Tf(T.none(),!0))}))}};return Dp(f)&&p?n([Pp(1,0)]):Sp(f)&&p?n([Pp(-1,0)]):u.isBackward(f)&&p?n([Pp(0,-1),Pp(-1,0)]):u.isForward(f)&&p?n([Pp(0,1),Pp(1,0)]):kp(f)&&!p?i:T.none}))()},keyup:function(e,r,i,a,s){return uo(t,o.selectedSelector).fold((function(){var l=e.raw,c=l.which;return!0===l.shiftKey&&kp(c)?function(e,t,n,o,r,i,a){return Ee(n,r)&&o===i?T.none():St(n,"td,th",t).bind((function(n){return St(r,"td,th",t).bind((function(o){return kf(e,t,n,o,a)}))}))}(t,n,r,i,a,s,o.selectRange):T.none()}),T.none)}}},Np=function(e,t,n){var o=function(t){Pt(t,e.selected),Pt(t,e.firstSelected),Pt(t,e.lastSelected)},r=function(t){kt(t,e.selected,"1")},i=function(e){a(e),n()},a=function(t){var n=wt(t,e.selectedSelector+","+e.firstSelectedSelector+","+e.lastSelectedSelector);P(n,o)};return{clearBeforeUpdate:a,clear:i,selectRange:function(n,o,a,s){i(n),P(o,r),kt(a,e.firstSelected,"1"),kt(s,e.lastSelected,"1"),t(o,a,s)},selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},Fp=function(e,t,n){var o=Sn.fromTable(e);return Tl(o,t).map((function(e){var t=yl(o,n,!1);return{upOrLeftCells:function(e,t){var n=e.slice(0,t[t.length-1].row+1),o=_l(n);return z(o,(function(e){var n=e.cells.slice(0,t[t.length-1].column+1);return I(n,(function(e){return e.element}))}))}(t,e),downOrRightCells:function(e,t){var n=e.slice(t[0].row+t[0].rowspan-1,e.length),o=_l(n);return z(o,(function(e){var n=e.cells.slice(t[0].column+t[0].colspan-1,e.cells.length);return I(n,(function(e){return e.element}))}))}(t,e)}}))},jp=tinymce.util.Tools.resolve("tinymce.Env"),Bp=function(e){return!1===Ia(Ce.fromDom(e.target),"ephox-snooker-resizer-bar")};function $p(e,t,n){var o=Np(Oi,(function(t,o,r){n.targets().each((function(n){an(o).each((function(i){var a=Rs(e),s=di(f,Ce.fromDom(e.getDoc()),a),l=Fp(i,n,s);!function(e,t,n,o,r){e.fire("TableSelectionChange",{cells:t,start:n,finish:o,otherCells:r})}(e,t,o,r,l)}))}))}),(function(){return function(e){e.fire("TableSelectionClear")}(e)}));return e.on("init",(function(n){var r=e.getWin(),i=mi(e),a=vi(e),s=Rp(r,i,a,o),l=Lp(r,i,a,o),c=function(e,t,n,o){var r=Ip(e);return function(e,i){o.clearBeforeUpdate(t),co(e,i,n).each((function(e){var n=e.boxes.getOr([]);o.selectRange(t,n,e.start,e.finish),r.selectContents(i),r.collapseSelection()}))}}(r,i,a,o);e.on("TableSelectorChange",(function(e){return c(e.start,e.finish)}));var u,d,p=function(t,n){(function(e){return!0===e.raw.shiftKey})(t)&&(n.kill&&t.kill(),n.selection.each((function(t){var n=Pd.relative(t.start,t.finish),o=Vd(r,n);e.selection.setRng(o)})))},m=function(e){return 0===e.button},h=(u=Lu(Ce.fromDom(i)),d=Lu(0),{touchEnd:function(e){var t=Ce.fromDom(e.target);if("td"===qe(t)||"th"===qe(t)){var n=u.get(),o=d.get();Ee(n,t)&&e.timeStamp-o<300&&(e.preventDefault(),c(t,t))}u.set(t),d.set(e.timeStamp)}});e.on("dragstart",(function(e){s.clearstate()})),e.on("mousedown",(function(e){m(e)&&Bp(e)&&s.mousedown(Sa(e))})),e.on("mouseover",(function(e){var t;(void 0===(t=e).buttons||jp.browser.isEdge()&&0===t.buttons||0!=(1&t.buttons))&&Bp(e)&&s.mouseover(Sa(e))})),e.on("mouseup",(function(e){m(e)&&Bp(e)&&s.mouseup(Sa(e))})),e.on("touchend",h.touchEnd),e.on("keyup",(function(t){var n=Sa(t);if(n.raw.shiftKey&&kp(n.raw.which)){var o=e.selection.getRng(),r=Ce.fromDom(o.startContainer),i=Ce.fromDom(o.endContainer);l.keyup(n,r,o.startOffset,i,o.endOffset).each((function(e){p(n,e)}))}})),e.on("keydown",(function(n){var o=Sa(n);t().each((function(e){return e.hideBars()}));var r=e.selection.getRng(),i=Ce.fromDom(r.startContainer),a=Ce.fromDom(r.endContainer),s=Vo(Ap,Mp)(Ce.fromDom(e.selection.getStart()));l.keydown(o,i,r.startOffset,a,r.endOffset,s).each((function(e){p(o,e)})),t().each((function(e){return e.showBars()}))})),e.on("NodeChange",(function(){var t=e.selection,n=Ce.fromDom(t.getStart()),r=Ce.fromDom(t.getEnd());so(an,[n,r]).fold((function(){return o.clear(i)}),f)}))})),{clear:o.clear}}var zp=function(e,t){var n=Lu(T.none()),o=Lu([]),r=T.none(),i=tt("caption"),a=function(e){return r.forall((function(t){return!t[e]}))},s=function(){return Si(function(e){return Ce.fromDom(e.selection.getEnd())}(e),vi(e))},l=function(){return Si(_i(e),vi(e)).bind((function(e){return Ft(an(e),s().bind(an),(function(n,o){return Ee(n,o)?i(e)?T.some(function(e){return{element:e,mergable:T.none(),unmergable:T.none(),selection:[e]}}(e)):T.some(Ti(t,n,e)):T.none()})).bind(m)}))},c=function(e){return an(e.element).map((function(t){var n=Sn.fromTable(t),o=Tl(n,e).getOr([]),r=F(o,(function(e,t){return t.isLocked&&(e.onAny=!0,0===t.column?e.onFirst=!0:t.column+t.colspan>=n.grid.columns&&(e.onLast=!0)),e}),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:Dl(n,e).isSome(),unmergeable:kl(n,e).isSome(),locked:r}}))},u=function(){n.set(J(l)()),r=n.get().bind(c),P(o.get(),(function(e){return e()}))},d=function(e){return e(),o.set(o.get().concat([e])),function(){o.set(L(o.get(),(function(t){return t!==e})))}},f=function(e,t){return d((function(){return n.get().fold((function(){e.setDisabled(!0)}),(function(n){e.setDisabled(t(n))}))}))},p=function(e,t,o){return d((function(){return n.get().fold((function(){e.setDisabled(!0),e.setActive(!1)}),(function(n){e.setDisabled(t(n)),e.setActive(o(n))}))}))},h=function(e){return r.exists((function(t){return t.locked[e]}))},g=function(t,n){return function(o){return p(o,(function(e){return i(e.element)}),(function(){return e.queryCommandValue(t)===n}))}},v=g("mceTableRowType","header"),b=g("mceTableColType","th");return e.on("NodeChange ExecCommand TableSelectorChange",u),{onSetupTable:function(e){return f(e,(function(e){return!1}))},onSetupCellOrRow:function(e){return f(e,(function(e){return i(e.element)}))},onSetupColumn:function(e){return function(t){return f(t,(function(t){return i(t.element)||h(e)}))}},onSetupPasteable:function(e){return function(t){return f(t,(function(t){return i(t.element)||e().isNone()}))}},onSetupPasteableColumn:function(e,t){return function(n){return f(n,(function(n){return i(n.element)||e().isNone()||h(t)}))}},onSetupMergeable:function(e){return f(e,(function(e){return a("mergeable")}))},onSetupUnmergeable:function(e){return f(e,(function(e){return a("unmergeable")}))},resetTargets:u,onSetupTableWithCaption:function(t){return p(t,_,(function(t){return an(t.element,vi(e)).exists((function(e){return Tt(e,"caption").isSome()}))}))},onSetupTableRowHeaders:v,onSetupTableColumnHeaders:b,targets:n.get}},Up=function(e){var t=function(e,t,n){return{get:function(){return mo(e(),n).fold((function(){return t().fold(yo,wo)}),(function(e){return _o(e)}))}}}((function(){return mi(e)}),(function(){return Di(_i(e),vi(e))}),Oi.selectedSelector),n=zp(e,t),o=Hs(e),r=$p(e,o.lazyResize,n),i=au(e,r,o.lazyWire),a=function(){var e=Fu(),t=Fu();return{getRows:e.get,setRows:function(n){n.fold(e.clear,e.set),t.clear()},clearRows:e.clear,getColumns:t.get,setColumns:function(n){n.fold(t.clear,t.set),e.clear()},clearColumns:t.clear}}();return wd(e,i,0,t,a),function(e,t,n){var o=vi(e),r=function(t){return Di(_i(e)).bind((function(e){return an(e,o).map((function(o){var r=Ti(n,o,e);return t(o,r)}))})).getOr("")};Ie({mceTableRowType:function(){return r(t.getTableRowType)},mceTableCellType:function(){return r(t.getTableCellType)},mceTableColType:function(){return r(t.getTableColType)}},(function(t,n){return e.addQueryValueHandler(n,t)}))}(e,i,t),Ai(e,t,i),function(e,t,n,o){var r=function(t){return function(){return e.execCommand(t)}},i=function(t){e.execCommand("mceInsertTable",!1,{rows:t.numRows,columns:t.numColumns})},a={text:"Table properties",onSetup:n.onSetupTable,onAction:r("mceTableProps")},s={text:"Delete table",icon:"table-delete-table",onSetup:n.onSetupTable,onAction:r("mceTableDelete")};e.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:r("mceTableInsertRowBefore"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:r("mceTableInsertRowAfter"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:r("mceTableDeleteRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:r("mceTableRowProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:r("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:r("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:r("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(o.getRows)}),e.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:r("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(o.getRows)});var l={type:"nestedmenuitem",text:"Row",getSubmenuItems:p("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")};e.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:r("mceTableInsertColBefore"),onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:r("mceTableInsertColAfter"),onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:r("mceTableDeleteCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:r("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:r("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:r("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(o.getColumns,"onFirst")}),e.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:r("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(o.getColumns,"onLast")});var c={type:"nestedmenuitem",text:"Column",getSubmenuItems:p("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")};e.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:r("mceTableCellProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:r("mceTableMergeCells"),onSetup:n.onSetupMergeable}),e.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:r("mceTableSplitCells"),onSetup:n.onSetupUnmergeable});var u={type:"nestedmenuitem",text:"Cell",getSubmenuItems:p("tablecellprops tablemergecells tablesplitcells")};!1===function(e){return e.getParam("table_grid",!0,"boolean")}(e)?e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:r("mceInsertTable")}):e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:i}]}}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:r("mceInsertTable")}),e.ui.registry.addMenuItem("tableprops",a),e.ui.registry.addMenuItem("deletetable",s),e.ui.registry.addNestedMenuItem("row",l),e.ui.registry.addNestedMenuItem("column",c),e.ui.registry.addNestedMenuItem("cell",u),e.ui.registry.addContextMenu("table",{update:function(){return n.resetTargets(),n.targets().fold(p(""),(function(e){return"caption"===qe(e.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}});var d=Vu(Ts(e));0!==d.length&&e.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return zu(e,t,d,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)}))},onSetup:n.onSetupTable});var f=Vu(Os(e));0!==f.length&&e.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return zu(e,t,f,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)}))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return zu(e,t,xu,"tablecellverticalalign",Uu(e,"vertical-align"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return zu(e,t,gs(e),"tablecellborderwidth",Uu(e,"border-width"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return zu(e,t,vs(e),"tablecellborderstyle",Uu(e,"border-style"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablecaption",{icon:"table-caption",text:"Table caption",onAction:r("mceTableToggleCaption"),onSetup:n.onSetupTableWithCaption}),e.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return Wu(e,Ls(e),"background-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return Wu(e,Ns(e),"border-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablerowheader",{text:"Row header",icon:"table-top-header",onAction:Yu(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleMenuItem("tablecolheader",{text:"Column header",icon:"table-left-header",onAction:qu(e),onSetup:n.onSetupTableColumnHeaders})}(e,t,n,a),function(e,t,n,o){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(e){return e("inserttable | cell row column | advtablesort | tableprops deletetable")}});var r=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:r("mceTableProps"),icon:"table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:r("mceTableDelete"),icon:"table-delete-table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:r("mceTableCellProps"),icon:"table-cell-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:r("mceTableMergeCells"),icon:"table-merge-cells",onSetup:n.onSetupMergeable}),e.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:r("mceTableSplitCells"),icon:"table-split-cells",onSetup:n.onSetupUnmergeable}),e.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:r("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:r("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:r("mceTableDeleteRow"),icon:"table-delete-row",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:r("mceTableRowProps"),icon:"table-row-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:r("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:r("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:r("mceTableDeleteCol"),icon:"table-delete-column",onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:r("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:r("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:r("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(o.getRows)}),e.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:r("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(o.getRows)}),e.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:r("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:r("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:r("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(o.getColumns,"onFirst")}),e.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:r("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(o.getColumns,"onLast")}),e.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:r("mceInsertTable"),icon:"table"});var i=Vu(Ts(e));0!==i.length&&e.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:Hu(e,t,i,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)})),onSetup:n.onSetupTable});var a=Vu(Os(e));0!==a.length&&e.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:Hu(e,t,a,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)})),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:Hu(e,t,xu,"tablecellverticalalign",Uu(e,"vertical-align")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:Hu(e,t,gs(e),"tablecellborderwidth",Uu(e,"border-width")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:Hu(e,t,vs(e),"tablecellborderstyle",Uu(e,"border-style")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablecaption",{tooltip:"Table caption",onAction:r("mceTableToggleCaption"),icon:"table-caption",onSetup:n.onSetupTableWithCaption}),e.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:function(t){return t(Wu(e,Ls(e),"background-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function(t){return t(Wu(e,Ns(e),"border-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablerowheader",{tooltip:"Row header",icon:"table-top-header",onAction:Yu(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleButton("tablecolheader",{tooltip:"Column header",icon:"table-left-header",onAction:qu(e),onSetup:n.onSetupTableColumnHeaders})}(e,t,n,a),function(e){var t=function(e){return e.getParam("table_toolbar","tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol")}(e);t.length>0&&e.ui.registry.addContextToolbar("table",{predicate:function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},items:t,scope:"node",position:"node"})}(e),e.on("PreInit",(function(){e.serializer.addTempAttr(Oi.firstSelected),e.serializer.addTempAttr(Oi.lastSelected),function(e){e.formatter.register(Od)}(e)})),function(e){return e.getParam("table_tab_navigation",!0,"boolean")}(e)&&e.on("keydown",(function(t){!function(e,t,n){if(e.keyCode===_f.TAB){var o=mi(t),r=function(e){var t=qe(e);return Ee(e,o)||k(Of,t)},i=t.selection.getRng(),a=Ce.fromDom(e.shiftKey?i.startContainer:i.endContainer);nn(a,r).each((function(o){e.preventDefault(),an(o,r).each(n.clear),t.selection.collapse(e.shiftKey),(e.shiftKey?Cf:wf)(t,r,o).each((function(e){t.selection.setRng(e)}))}))}}(t,e,r)})),e.on("remove",(function(){o.destroy()})),function(e,t,n,o){return{insertTable:hu(e),setClipboardRows:mu(t.setRows),getClipboardRows:pu(t.getRows),setClipboardCols:mu(t.setColumns),getClipboardCols:pu(t.getColumns),resizeHandler:n,selectionTargets:o}}(e,a,o,n)};Co.add("table",Up)}()},"94e8":function(e,t,n){},"953b":function(e,t,n){"use strict";var o=n("dc19"),r=n("cb27"),i=n("8e16"),a=n("7f65"),s=n("384f"),l=n("5388"),c=r.Set,u=r.add,d=r.has;e.exports=function(e){var t=o(this),n=a(e),r=new c;return i(t)>n.size?l(n.getIterator(),(function(e){d(t,e)&&u(r,e)})):s(t,(function(e){n.includes(e)&&u(r,e)})),r}},9646:function(e,t,n){},9684:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return l}));var o={CONSTANT:"固定字符串",DATE_TIME:"日期时间",VARIABLE:"变量",FORM_FIELD:"表单字段",RANDOM_CODE:"随机码",AUTO_INCREMENT:"自增序列"},r={RESET_BY_YEAR:"按年重置",RESET_BY_QUARTER:"按季度重置",RESET_BY_MONTH:"按月重置",RESET_BY_WEEK:"按周重置",RESET_BY_DAY:"按日重置",NONE:"不重置"},i={CUSTOM:"自定义变量",SYSTEM:"系统变量"},a={UPPER_CASE:"大写字母",LOWER_CASE:"小写字母",DIGIT:"数字"},s={CONSTANT:{pluginType:"CONSTANT",value:""},DATE_TIME:{pluginType:"DATE_TIME",value:"yyyyMMdd"},VARIABLE:{pluginType:"VARIABLE",value:"USER_NAME",variableType:i.SYSTEM},FORM_FIELD:{pluginType:"FORM_FIELD",value:"",defaultValue:""},RANDOM_CODE:{pluginType:"RANDOM_CODE",length:3,randomCodeType:"UPPER_CASE"},AUTO_INCREMENT:{pluginType:"AUTO_INCREMENT",paddingLeft:!0,length:5,startValue:1,periodType:"RESET_BY_YEAR",step:1}},l=["sequence","text","divider","upload","imageUpload","table","relatedForm","editor","iframe","image","qrCode","button"]},9861:function(e,t,n){"use strict";n("5352")},"986e":function(e,t,n){"use strict";n("075d")},"98fc":function(e,t,n){var o,r,i;!function(n,a){"use strict";r=[],void 0===(i="function"==typeof(o=function(e){return function(t){(t=t||{}).arrayAccessForm=t.arrayAccessForm||"none",t.emptyNodeForm=t.emptyNodeForm||"text",t.jsAttributeFilter=t.jsAttributeFilter,t.jsAttributeConverter=t.jsAttributeConverter,t.attributeConverters=t.attributeConverters||[],t.datetimeAccessFormPaths=t.datetimeAccessFormPaths||[],t.arrayAccessFormPaths=t.arrayAccessFormPaths||[],t.xmldomOptions=t.xmldomOptions||{},void 0===t.enableToStringFunc&&(t.enableToStringFunc=!0),void 0===t.skipEmptyTextNodesForObj&&(t.skipEmptyTextNodesForObj=!0),void 0===t.stripWhitespaces&&(t.stripWhitespaces=!0),void 0===t.useDoubleQuotes&&(t.useDoubleQuotes=!0),void 0===t.ignoreRoot&&(t.ignoreRoot=!1),void 0===t.escapeMode&&(t.escapeMode=!0),void 0===t.attributePrefix&&(t.attributePrefix="_"),void 0===t.selfClosingElements&&(t.selfClosingElements=!0),void 0===t.keepCData&&(t.keepCData=!1),void 0===t.keepText&&(t.keepText=!1),void 0===t.jsDateUTC&&(t.jsDateUTC=!1),function(){function e(e){var t=String(e);return 1===t.length&&(t="0"+t),t}"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()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"})}();var n=1,o=3,r=4,i=8,a=9;function s(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!==t||(t=e.nodeName),t}function l(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"):e}function c(e,n,o){switch(t.arrayAccessForm){case"property":e[n]instanceof Array?e[n+"_asArray"]=e[n]:e[n+"_asArray"]=[e[n]]}if(!(e[n]instanceof Array)&&t.arrayAccessFormPaths.length>0){for(var r=!1,i=0;i<t.arrayAccessFormPaths.length;i++){var a=t.arrayAccessFormPaths[i];if("string"==typeof a){if(a===o){r=!0;break}}else if(a instanceof RegExp){if(a.test(o)){r=!0;break}}else if("function"==typeof a&&a(n,o)){r=!0;break}}r&&(e[n]=[e[n]])}}function u(e){var t=e.split(/[-T:+Z]/g),n=new Date(t[0],t[1]-1,t[2]),o=t[5].split(".");if(n.setHours(t[3],t[4],o[0]),o.length>1&&n.setMilliseconds(o[1]),t[6]&&t[7]){var r=60*t[6]+Number(t[7]);r=0+("-"===(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*r:r),n.setMinutes(n.getMinutes()-r-n.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())));return n}function d(e,n){for(var o={__cnt:0},r=e.childNodes,a=0;a<r.length;a++){var l=r.item(a),d=s(l);l.nodeType!==i&&(o.__cnt++,null==o[d]?(o[d]=f(l,n+"."+d),c(o,d,n+"."+d)):(o[d]instanceof Array||(o[d]=[o[d]],c(o,d,n+"."+d)),o[d][o[d].length]=f(l,n+"."+d)))}for(var p=0;p<e.attributes.length;p++){var m=e.attributes.item(p);o.__cnt++;for(var h=m.value,g=0;g<t.attributeConverters.length;g++){var v=t.attributeConverters[g];v.test.call(null,m.name,m.value)&&(h=v.convert.call(null,m.name,m.value))}o[t.attributePrefix+m.name]=h}var b=e.prefix;return b&&(o.__cnt++,o.__prefix=b),o["#text"]&&(o.__text=o["#text"],o.__text instanceof Array&&(o.__text=o.__text.join("\n")),t.escapeMode&&(o.__text=o.__text.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&amp;/g,"&")),t.stripWhitespaces&&(o.__text=o.__text.trim()),delete o["#text"],"property"===t.arrayAccessForm&&delete o["#text_asArray"],o.__text=function(e,n,o){if(t.datetimeAccessFormPaths.length>0)for(var r=o.split(".#")[0],i=0;i<t.datetimeAccessFormPaths.length;i++){var a=t.datetimeAccessFormPaths[i];if("string"==typeof a){if(a===r)return u(e)}else if(a instanceof RegExp){if(a.test(r))return u(e)}else if("function"==typeof a&&a(r))return u(e)}return e}(o.__text,0,n+".#text")),o.hasOwnProperty("#cdata-section")&&(o.__cdata=o["#cdata-section"],delete o["#cdata-section"],"property"===t.arrayAccessForm&&delete o["#cdata-section_asArray"]),1===o.__cnt&&o.__text&&!t.keepText?o=o.__text:0===o.__cnt&&"text"===t.emptyNodeForm?o="":o.__cnt>1&&void 0!==o.__text&&t.skipEmptyTextNodesForObj&&(t.stripWhitespaces&&""===o.__text||""===o.__text.trim())&&delete o.__text,delete o.__cnt,t.keepCData||o.hasOwnProperty("__text")||!o.hasOwnProperty("__cdata")||1!==Object.keys(o).length?(t.enableToStringFunc&&(o.__text||o.__cdata)&&(o.toString=function(){return(this.__text?this.__text:"")+(this.__cdata?this.__cdata:"")}),o):o.__cdata?o.__cdata:""}function f(e,i){return e.nodeType===a?function(e){for(var o={},r=e.childNodes,i=0;i<r.length;i++){var a=r.item(i);if(a.nodeType===n){var l=s(a);t.ignoreRoot?o=f(a,l):o[l]=f(a,l)}}return o}(e):e.nodeType===n?d(e,i):e.nodeType===o||e.nodeType===r?e.nodeValue:null}function p(e,n,o,r){var i="<"+(e&&e.__prefix?e.__prefix+":":"")+n;if(o)for(var a=0;a<o.length;a++){var s=o[a],c=e[s];t.escapeMode&&(c=l(c)),i+=" "+s.substr(t.attributePrefix.length)+"=",t.useDoubleQuotes?i+='"'+c+'"':i+="'"+c+"'"}return i+(r?" />":">")}function m(e,t){return"</"+(e&&e.__prefix?e.__prefix+":":"")+t+">"}function h(e,n){return"property"===t.arrayAccessForm&&(o=n.toString(),r="_asArray",-1!==o.indexOf(r,o.length-r.length))||0===n.toString().indexOf(t.attributePrefix)||0===n.toString().indexOf("__")||e[n]instanceof Function;var o,r}function g(e){var t=0;if(e instanceof Object)for(var n in e)h(e,n)||t++;return t}function v(e){var n=[];if(e instanceof Object)for(var o in e)-1===o.toString().indexOf("__")&&0===o.toString().indexOf(t.attributePrefix)&&n.push(o);return n}function b(e){var n="";return e instanceof Object?n+=function(e){var n="";return e.__cdata&&(n+="<![CDATA["+e.__cdata+"]]>"),(e.__text||"number"==typeof e.__text||"boolean"==typeof e.__text)&&(t.escapeMode?n+=l(e.__text):n+=e.__text),n}(e):null!==e&&(t.escapeMode?n+=l(e):n+=e),n}function y(e,n,o){var r="";return t.jsAttributeFilter&&t.jsAttributeFilter.call(null,n,e)||(t.jsAttributeConverter&&(e=t.jsAttributeConverter.call(null,n,e)),null!=e&&""!==e||!t.selfClosingElements?"object"==typeof e?"[object Array]"===Object.prototype.toString.call(e)?r+=function(e,t,n){var o="";if(0===e.length)o+=p(e,t,n,!0);else for(var r=0;r<e.length;r++)o+=y(e[r],t,v(e[r]));return o}(e,n,o):e instanceof Date?(r+=p(e,n,o,!1),r+=t.jsDateUTC?e.toUTCString():e.toISOString(),r+=m(e,n)):g(e)>0||"number"==typeof e.__text||"boolean"==typeof e.__text||e.__text||e.__cdata?(r+=p(e,n,o,!1),r+=_(e),r+=m(e,n)):t.selfClosingElements?r+=p(e,n,o,!0):(r+=p(e,n,o,!1),r+=m(e,n)):(r+=p(e,n,o,!1),r+=b(e),r+=m(e,n)):r+=p(e,n,o,!0)),r}function _(e){var t="";if(g(e)>0)for(var n in e)if(!h(e,n)){var o=e[n];t+=y(o,n,v(o))}return t+b(e)}function w(n){if(void 0===n)return null;if("string"!=typeof n)return null;var o=null,r=null;if(e)r=(o=new e(t.xmldomOptions)).parseFromString(n,"text/xml");else if(window&&window.DOMParser){o=new window.DOMParser;var i=null;if(!window.ActiveXObject&&!("ActiveXObject"in window)&&document.all&&!document.addEventListener)try{i=o.parseFromString("INVALID","text/xml").childNodes[0].namespaceURI}catch(e){i=null}try{r=o.parseFromString(n,"text/xml"),null!==i&&r.getElementsByTagNameNS(i,"parsererror").length>0&&(r=null)}catch(e){r=null}}else 0===n.indexOf("<?")&&(n=n.substr(n.indexOf("?>")+2)),(r=new ActiveXObject("Microsoft.XMLDOM")).async="false",r.loadXML(n);return r}this.asArray=function(e){return null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?u(e):e},this.xml2dom=function(e){return w(e)},this.dom2js=function(e){return f(e,null)},this.js2dom=function(e){return w(this.js2xml(e))},this.xml2js=function(e){var t=w(e);return null!=t?this.dom2js(t):null},this.js2xml=function(e){return _(e)},this.getVersion=function(){return"3.4.4"}}})?o.apply(t,r):o)||(e.exports=i)}()},9961:function(e,t,n){"use strict";var o=n("dc19"),r=n("cb27"),i=n("83b9"),a=n("7f65"),s=n("5388"),l=r.add,c=r.has,u=r.remove;e.exports=function(e){var t=o(this),n=a(e).getIterator(),r=i(t);return s(n,(function(e){c(t,e)?u(r,e):l(r,e)})),r}},"99af":function(e,t,n){"use strict";var o=n("23e7"),r=n("d039"),i=n("e8b5"),a=n("861d"),s=n("7b0b"),l=n("07fa"),c=n("3511"),u=n("8418"),d=n("65f0"),f=n("1dde"),p=n("b622"),m=n("1212"),h=p("isConcatSpreadable"),g=m>=51||!r((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),v=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};o({target:"Array",proto:!0,arity:1,forced:!g||!f("concat")},{concat:function(e){var t,n,o,r,i,a=s(this),f=d(a,0),p=0;for(t=-1,o=arguments.length;t<o;t++)if(v(i=-1===t?a:arguments[t]))for(r=l(i),c(p+r),n=0;n<r;n++,p++)n in i&&u(f,p,i[n]);else c(p+1),u(f,p++,i);return f.length=p,f}})},"9a01":function(e,t,n){"use strict";var o=n("5530"),r=n("c14f"),i=n("1da1"),a=n("2909"),s=(n("d9e2"),n("99af"),n("4de4"),n("c740"),n("caad"),n("d81d"),n("14d9"),n("a434"),n("b0c0"),n("e9f5"),n("910d"),n("ab43"),n("d3b7"),n("498a"),{name:"MemberOrgTreeItem",props:{isActive:{default:!1,type:Boolean},data:{default:{}},isSelected:{default:!1,type:Boolean},showAppend:{default:!0,type:Boolean},showAppendDefaultIcon:{default:!0,type:Boolean},canSelect:{default:!0,type:Boolean},isShowOrgName:{default:!1,type:Boolean}},computed:{isDisabled(){return this.data.isDisabled||!this.canSelect}},model:{value:"isSelected",event:"change"},methods:{handleSwitch(e){"user"!==this.data.type&&this.$emit("click",this.data,e)},handleClick(e){this.$emit(e?"select":"unselect",this.data)}},mounted(){}}),l=(n("4d97"),n("2877")),c=Object(l.a)(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-tooltip",{attrs:{placement:"top",trigger:"hover","open-delay":300,effect:"light"}},[n("template",{slot:"content"},[n("ul",[n("li",[e._v("名称:"+e._s(e.data.name))]),n("li",[e._v("编码/账号:"+e._s("user"===e.data.type?e.data.account:e.data.code))]),e.isShowOrgName&&e.data&&e.data.orgName?n("li",[e._v("所属机构:"+e._s(e.data.orgName))]):e._e()])]),[n("li",{staticClass:"member-org-detail-item",class:{"is-active":e.isActive}},[n("el-checkbox",{staticClass:"member-org-manage-check",attrs:{disabled:e.isDisabled,value:e.isSelected},on:{change:e.handleClick}}),n("div",{staticClass:"member-org-detail-item-wrapper item-org",on:{click:e.handleSwitch}},[n("div",{staticClass:"member-org-detail-icon"},["region"===e.data.type||"root"===e.data.type?n("base-icon",{attrs:{"icon-class":"government-line"}}):e._e(),"organ"===e.data.type?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):e._e(),"user"===e.data.type?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):e._e(),"role"===e.data.type?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):e._e()],1),n("span",{staticClass:"member-org-detail-title"},[e._v(" "+e._s(e.data.name)+" "),"user"===e.data.type&&e.data.account?n("small",[e._v(e._s(e.data.account))]):n("small",[e._v(e._s(e.data.code))]),e.isShowOrgName&&e.data&&e.data.orgName?n("small",{staticClass:"common-text-overflow"},[e._v(e._s(e.data.orgName))]):e._e()]),n("div",{staticClass:"member-org-spacing"}),e.showAppend?n("span",{staticClass:"member-org-detail-append"},[e.showAppendDefaultIcon?n("base-icon",{attrs:{"icon-class":"arrow-right-s-line"}}):e._t("append")],2):e._e()])],1)]],2)}),[],!1,null,"6b9c4164",null).exports,u=n("7694"),d=n("60bb"),f=n.n(d),p=n("7461"),m=n("b76a"),h={name:"OrganizationSelector",components:{draggable:n.n(m).a,BaseIcon:p.a,MemberOrgTreeItem:c},computed:{compType:function(){var e;return null===(e=this.element)||void 0===e?void 0:e.type},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"},maxNums:function(){var e;return(null===(e=this.element)||void 0===e||null===(e=e.options)||void 0===e?void 0:e.maxNums)||1}},model:{prop:"selected",event:"change"},inject:{elForm:{default:""},elFormItem:{default:""}},props:{element:{type:Object,default:null},eventFunction:{type:Object,default:function(){return{}}},getOrgTree:{type:Function,default:u.s},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"},parentName:{type:String,default:"全国"},platform:{type:String,default:"pc"},text:{type:String,default:"选择"},customStyle:{type:Object,default:function(){return{}}},placeholder:{type:String,default:null},selected:{default:function(){return[]}},optionScopeType:{type:String,default:"ORGAN"},dialogTitle:{type:String,default:"选择组织机构"},sortable:{type:Boolean,default:function(){return!1}}},mounted:function(){this.parentNameVal=this.parentName,this.parentCodeVal=this.parentCode,[void 0,null].includes(this.selected)&&(this.selected=[]),this.$emit("change",this.selected),this.selected.length&&this.$refs.nodeTree&&this.$refs.nodeTree.setCheckedKeys(Object(a.a)(f.a.cloneDeep(this.selected))),this.debounce=f.a.debounce(this.onSearch,50),this.selectedVal=f.a.cloneDeep(this.selected)},watch:{keyword:function(e){e.trim()?(this.isSearching=!0,this.debounce&&this.debounce()):this.isSearching=!1},selectedVal:function(e){this.$emit("change",e)}},data:function(){return{data:[],isSearchLoading:!1,isSearching:!1,keyword:"",searchData:[],visible:!1,stack:[],currentDept:{},dataLoading:!0,debounce:!1,selectedVal:[],parentCodeVal:"",parentNameVal:""}},methods:{setRootNode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.parentNameVal=e,this.parentCodeVal=t},handleDragChange:function(){},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 e=this;return Object(i.a)(Object(r.a)().m((function t(){return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:if(e.searchData=[],"PERSON"!==e.optionScopeType){t.n=2;break}return t.n=1,e.searchUser();case 1:e.searchData=t.v,t.n=2;break;case 2:return t.a(2)}}),t)})))()},onCheckedTreeNodeChange:function(e,t){if(t)this.multiple||(this.$refs.nodeTree.setCheckedKeys([e.code]),this.selectedVal.pop()),this.selectedVal.push(e);else{var n=this.selectedVal.findIndex((function(t){return t.code===e.code}));n>-1&&this.selectedVal.splice(n,1)}},loadTreeNode:function(e,t){var n=this;return Object(i.a)(Object(r.a)().m((function o(){var i,s,l,c,u,d,f,p;return Object(r.a)().w((function(o){for(;;)switch(o.n){case 0:if(0!==e.level){o.n=1;break}return i={code:n.parentCodeVal,name:n.parentNameVal,label:n.parentNameVal,type:"root",children:[],disabled:"ORGAN"!==n.optionScopeType},o.a(2,t([i]));case 1:return s=[],l=[],c=Object(a.a)(s),u=a.a,o.n=2,n.getOrgByParentCode(e.data.code);case 2:if(s=l.concat.call(l,c,u(o.v)),!(["root","organ","region"].indexOf(e.data.type)>-1&&"PERSON"===n.optionScopeType)){o.n=4;break}return d=[],f=Object(a.a)(s),p=a.a,o.n=3,n.getUserListByParentNode(e.data);case 3:s=d.concat.call(d,f,p(o.v));case 4:return o.a(2,t(s));case 5:return o.a(2)}}),o)})))()},searchUser:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){var n,i,a;return Object(r.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:if(e.keyword&&!(e.keyword.length<1)){t.n=1;break}return t.a(2);case 1:return e.isSearchLoading=!0,n=[],t.p=2,t.n=3,Object(u.A)({condition:{name:e.keyword},limit:1e3,page:1});case 3:1===(i=t.v).data.code&&(n=(n=i.data.data.data).map((function(e){return Object(o.a)(Object(o.a)({},e),{},{name:e.name,label:e.name,code:e.id,type:"user",isLeaf:!0})}))),t.n=5;break;case 4:t.p=4,a=t.v,e.$message.error(a.message);case 5:return t.p=5,e.isSearchLoading=!1,t.f(5);case 6:return t.a(2,n)}}),t,null,[[2,4,5,6]])})))()},getUserListByParentNode:function(e){var t=this;return Object(i.a)(Object(r.a)().m((function n(){var i,a;return Object(r.a)().w((function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,Object(u.v)({condition:{regionCode:e.regionCode||e.code,orgCode:e.code},limit:"1000",page:"1"});case 1:return i=n.v,n.a(2,i.data.data.data.length?i.data.data.data.map((function(e){return Object(o.a)(Object(o.a)({},e),{},{name:e.name,label:e.name,code:e.id,type:"user",isLeaf:!0,disabled:"PERSON"!==t.optionScopeType})})):[]);case 2:return n.p=2,a=n.v,t.$message.error(a),n.a(2,[])}}),n,null,[[0,2]])})))()},getOrgByParentCode:function(e){var t=this;return Object(i.a)(Object(r.a)().m((function n(){var i,a;return Object(r.a)().w((function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,Object(u.s)({code:e});case 1:if(1===(i=n.v).data.code){n.n=2;break}throw new Error(i.data.message||"根据父级部门ID加载子集部门节点失败");case 2:return n.a(2,i.data.data.length?i.data.data.map((function(e){return Object(o.a)(Object(o.a)({},e),{},{name:e.name,label:e.name,code:e.code,type:e.type,disabled:"ORGAN"!==t.optionScopeType})})):[]);case 3:return n.p=3,a=n.v,t.$message.error(a),n.a(2,[])}}),n,null,[[0,3]])})))()},handleSelect:function(){var e,t,n;this.disabled||this.readonly||(null===(e=this.eventFunction)||void 0===e||null===(t=e[null===(n=this.element)||void 0===n||null===(n=n.events)||void 0===n?void 0:n.onOpenSelector])||void 0===t||t.call(e),this.visible=!0)},handleConfirm:function(){this.$emit("onConfirm",this.selectedVal),this.$emit("change",this.selectedVal),this.onDialogClose()},handleCancel:function(){this.visible=!1},handleCloseTag:function(e){var t=this.selectedVal.findIndex((function(t){return t.code===e.code}));t>-1&&this.selectedVal.splice(t,1)},handleSelectItem:function(e){this.multiple||this.selectedVal.pop(),this.selectedVal.push(e)},handleUnSelectItem:function(e){var t=this.selectedVal.findIndex((function(t){return t.code===e.code}));if(t>-1&&this.selectedVal.splice(t,1),this.$refs.nodeTree){var n=this.$refs.nodeTree.getCheckedKeys();n=n.filter((function(t){return t!==e.code})),this.$refs.nodeTree.setCheckedKeys(n)}},handleClick:function(e){this.isSearching=!1,this.stack.push(e)}}},g=Object(l.a)(h,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"organization-selector el-select",class:[e.componentSize?"el-select--"+e.componentSize:""]},[e.visible?n("el-dialog",{class:"mobile"===e.platform?"organization-selector-mobile":"organization-selector-pc",attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,disabled:e.disabled,title:e.dialogTitle,visible:e.visible,"append-to-body":"","custom-class":"organization-selector-dialog",placement:"bottom-start",width:"800px"},on:{"update:visible":function(t){e.visible=t},close:e.onDialogClose}},[n("div",{staticClass:"tree-select-section-left"},[n("div",{staticClass:"member-org-detail-list-container"},["PERSON"===e.optionScopeType?n("div",{staticClass:"member-org-detail-title-bar"},[n("el-input",{attrs:{clearable:"",maxLength:"20",placeholder:e.placeholder||e.$iss18n.t("issfd.runtime.component.searchPlaceholder"),"prefix-icon":"el-icon-search",size:"small"},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1):e._e(),e.isSearching?n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isSearchLoading,expression:"isSearchLoading"}],staticClass:"b-scroll"},[e.searchTotal?n("div",{staticClass:"member-org-detail-list-item-container"},e._l(e.searchData,(function(t){return n("member-org-tree-item",{key:t.code,attrs:{data:t,"is-selected":e.selectedVal.some((function(e){return e.code===t.code})),"show-append":!1,"is-show-org-name":!0},on:{select:e.handleSelectItem,unselect:e.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":e.selectedVal.map((function(e){return e.code})),indent:8,load:e.loadTreeNode,props:{label:"name",children:"children",isLeaf:"isLeaf"},"check-strictly":"",lazy:"","node-key":"code","show-checkbox":""},on:{"check-change":e.onCheckedTreeNodeChange},scopedSlots:e._u([{key:"default",fn:function(t){t.node;var o=t.data;return n("div",{staticClass:"custom-tree-node",attrs:{title:o.name+" : "+(o.type&&"user"===o.type?o.account:o.code)}},[n("div",{staticClass:"custom-tree-node-icon"},["region"===o.type||"root"===o.type?n("base-icon",{attrs:{"icon-class":"government-line"}}):e._e(),"organ"===o.type?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):e._e(),"user"===o.type?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):e._e(),"role"===o.type?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):e._e()],1),n("div",{staticClass:"custom-tree-node-name"},[e._v(" "+e._s(o.name)+" "),n("small",[e._v(e._s(o.type&&"user"===o.type?o.account:o.code))])])])}}],null,!1,3974469761)})],1)])])]),n("div",{staticClass:"tree-select-section-right"},[e.selectedVal.length?n("div",{staticClass:"b-scroll"},[n("div",{staticClass:"member-org-detail-list-item-container"},[n("draggable",{attrs:{animation:200,group:{name:"item-sorting-board"},disabled:!e.sortable,"chosen-class":"chosen","ghost-class":"ghost",handle:".member-org-detail-append"},on:{change:e.handleDragChange},model:{value:e.selectedVal,callback:function(t){e.selectedVal=t},expression:"selectedVal"}},[n("transition-group",e._l(e.selectedVal,(function(t){return n("member-org-tree-item",{key:t.code,attrs:{data:t,"is-selected":!0,"show-append":!0,"show-append-default-icon":!1,"is-show-org-name":!0},on:{unselect:e.handleUnSelectItem},scopedSlots:e._u([e.sortable?{key:"append",fn:function(){return[n("base-icon",{attrs:{"icon-class":"draggable"}})]},proxy:!0}:null],null,!0)})})),1)],1)],1)]):n("el-empty")],1),n("div",{staticClass:"tree-select-section-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{disabled:!e.selectedVal.length,type:"primary"},on:{click:e.handleConfirm}},[e._v(e._s(e.$iss18n.t("issfd.runtime.common.buttons.confirm")))])],1)]):e._e(),n("div",{staticClass:"organization-selector-container",class:{"is-disabled":e.disabled},style:e.customStyle,on:{click:e.handleSelect}},[n("div",{staticClass:"organization-selector-wrapper el-select__tags"},[e.selectedVal&&e.selectedVal.length?n("span",{staticClass:"select-tag"},[e._l(e.maxNums,(function(t){return n("el-tooltip",{key:t,staticClass:"item",attrs:{effect:"dark",content:e.selectedVal&&e.selectedVal[t-1]&&e.selectedVal[t-1].name,"open-delay":300,placement:"top"}},[e.selectedVal[t-1]?n("el-tag",{attrs:{closable:!e.disabled,size:e.collapseTagSize,type:"info"},on:{close:function(n){return e.handleCloseTag(e.selectedVal[t-1])}}},["region"===e.selectedVal[t-1].type?n("base-icon",{attrs:{"icon-class":"government-line"}}):e._e(),"organ"===e.selectedVal[t-1].type?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):e._e(),"user"===e.selectedVal[t-1].type?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):e._e(),"role"===e.selectedVal[t-1].type?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):e._e(),n("span",{staticClass:"tag-name"},[e._v(" "+e._s(""+(e.selectedVal[t-1].name.length>11?e.selectedVal[t-1].name.substr(0,11)+"...":e.selectedVal[t-1].name))+" ")])],1):e._e()],1)})),e.selectedVal.length>e.maxNums?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,"disable-transitions":"",type:"info"}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selectedVal.length-e.maxNums))])]):e._e()],2):e._e()]),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{disabled:e.disabled,placeholder:e.selectedVal&&e.selectedVal.length?"":e.placeholder,readonly:"mobile"===e.platform||e.readonly,size:e.componentSize,"validate-event":!1,type:"text"}},[n("template",{slot:"prefix"},["ORGAN"===e.optionScopeType?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):e._e(),"PERSON"===e.optionScopeType?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):e._e(),"ROLE"===e.optionScopeType?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):e._e()],1)],2)],1)],1)}),[],!1,null,null,null);t.a=g.exports},"9a1f":function(e,t,n){"use strict";var o=n("c65b"),r=n("59ed"),i=n("825a"),a=n("0d51"),s=n("35a1"),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return i(o(n,e));throw new l(a(e)+" is not iterable")}},"9adc":function(e,t,n){"use strict";var o=n("8558");e.exports="NODE"===o},"9b1d":function(e,t,n){},"9b74":function(e,t,n){!function(e){"use strict";function t(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var o={hint:t};if(n)for(var r in n)o[r]=n[r];return e.showHint(o)},e.defineExtension("showHint",(function(n){n=function(e,t,n){var o=e.options.hintOptions,r={};for(var i in l)r[i]=l[i];if(o)for(var i in o)void 0!==o[i]&&(r[i]=o[i]);if(n)for(var i in n)void 0!==n[i]&&(r[i]=n[i]);return r.hint.resolve&&(r.hint=r.hint.resolve(e,t)),r}(this,this.getCursor("start"),n);var o=this.listSelections();if(!(o.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var r=0;r<o.length;r++)if(o[r].head.line!=o[r].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var i=this.state.completionActive=new t(this,n);i.options.hint&&(e.signal(this,"startCompletion",this),i.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var n=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function r(e){return"string"==typeof e?e:e.text}function i(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function a(t,n){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=n,this.picked=!1;var o=this,a=t.cm,s=a.getInputField().ownerDocument,l=s.defaultView||s.parentWindow,c=this.hints=s.createElement("ul");c.setAttribute("role","listbox"),c.setAttribute("aria-expanded","true"),c.id=this.id;var u=t.cm.options.theme;c.className="CodeMirror-hints "+u,this.selectedHint=n.selectedHint||0;for(var d=n.list,f=0;f<d.length;++f){var p=c.appendChild(s.createElement("li")),m=d[f],h="CodeMirror-hint"+(f!=this.selectedHint?"":" CodeMirror-hint-active");null!=m.className&&(h=m.className+" "+h),p.className=h,f==this.selectedHint&&p.setAttribute("aria-selected","true"),p.id=this.id+"-"+f,p.setAttribute("role","option"),m.render?m.render(p,n,m):p.appendChild(s.createTextNode(m.displayText||r(m))),p.hintId=f}var g=t.options.container||s.body,v=a.cursorCoords(t.options.alignWithWord?n.from:null),b=v.left,y=v.bottom,_=!0,w=0,C=0;if(g!==s.body){var x=-1!==["absolute","relative","fixed"].indexOf(l.getComputedStyle(g).position)?g:g.offsetParent,O=x.getBoundingClientRect(),T=s.body.getBoundingClientRect();w=O.left-T.left-x.scrollLeft,C=O.top-T.top-x.scrollTop}c.style.left=b-w+"px",c.style.top=y-C+"px";var E=l.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),S=l.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);g.appendChild(c),a.getInputField().setAttribute("aria-autocomplete","list"),a.getInputField().setAttribute("aria-owns",this.id),a.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var D,k=t.options.moveOnOverlap?c.getBoundingClientRect():new DOMRect,A=!!t.options.paddingForScrollbar&&c.scrollHeight>c.clientHeight+1;if(setTimeout((function(){D=a.getScrollInfo()})),k.bottom-S>0){var M=k.bottom-k.top,I=k.top-(v.bottom-v.top)-2;S-k.top<I?(M>I&&(c.style.height=(M=I)+"px"),c.style.top=(y=v.top-M)-C+"px",_=!1):c.style.height=S-k.top-2+"px"}var P,R=k.right-E;if(A&&(R+=a.display.nativeBarWidth),R>0&&(k.right-k.left>E&&(c.style.width=E-5+"px",R-=k.right-k.left-E),c.style.left=(b=Math.max(v.left-R-w,0))+"px"),A)for(var L=c.firstChild;L;L=L.nextSibling)L.style.paddingRight=a.display.nativeBarWidth+"px";a.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var o=e.options.customKeys,r=o?{}:n;function i(e,o){var i;i="string"!=typeof o?function(e){return o(e,t)}:n.hasOwnProperty(o)?n[o]:o,r[e]=i}if(o)for(var a in o)o.hasOwnProperty(a)&&i(a,o[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&i(a,s[a]);return r}(t,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:d.length,close:function(){t.close()},pick:function(){o.pick()},data:n})),t.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){P=setTimeout((function(){t.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(P)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect();D||(D=a.getScrollInfo());var o=y+D.top-e.top,r=o-(l.pageYOffset||(s.documentElement||s.body).scrollTop);if(_||(r+=c.offsetHeight),r<=n.top||r>=n.bottom)return t.close();c.style.top=o+"px",c.style.left=b+D.left-e.left+"px"}),e.on(c,"dblclick",(function(e){var t=i(c,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())})),e.on(c,"click",(function(e){var n=i(c,e.target||e.srcElement);n&&null!=n.hintId&&(o.changeActive(n.hintId),t.options.completeOnSingleClick&&o.pick())})),e.on(c,"mousedown",(function(){setTimeout((function(){a.focus()}),20)}));var N=this.getSelectedHintRange();return 0===N.from&&0===N.to||this.scrollToActive(),e.signal(n,"select",d[this.selectedHint],c.childNodes[this.selectedHint]),!0}function s(e,t,n,o){if(e.async)e(t,o,n);else{var r=e(t,n);r&&r.then?r.then(o):o(r)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var o=t.list[n],i=this;this.cm.operation((function(){o.hint?o.hint(i.cm,t,o):i.cm.replaceRange(r(o),o.from||t.from,o.to||t.to,"complete"),e.signal(t,"pick",o),i.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),r=this.cm.getLine(t.line);if(t.line!=this.startPos.line||r.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(r.charAt(t.ch-1)))this.close();else{var i=this;this.debounce=n((function(){i.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;s(this.options.hint,this.cm,this.options,(function(o){t.tick==n&&t.finishUpdate(o,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var o=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(o&&1==t.list.length?this.pick(t,0):(this.widget=new a(this,t),e.signal(t,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var o=this.hints.childNodes[this.selectedHint];o&&(o.className=o.className.replace(" CodeMirror-hint-active",""),o.removeAttribute("aria-selected")),(o=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",o.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",o.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],o)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],o=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-o.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+o.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:function(t,n){var o,r=t.getHelpers(n,"hint");if(r.length){var i=function(e,t,n){var o=function(e,t){if(!e.somethingSelected())return t;for(var n=[],o=0;o<t.length;o++)t[o].supportsSelection&&n.push(t[o]);return n}(e,r);!function r(i){if(i==o.length)return t(null);s(o[i],e,n,(function(e){e&&e.list.length>0?t(e):r(i+1)}))}(0)};return i.async=!0,i.supportsSelection=!0,i}return(o=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:o})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var o,r=t.getCursor(),i=t.getTokenAt(r),a=e.Pos(r.line,i.start),s=r;i.start<r.ch&&/\w/.test(i.string.charAt(r.ch-i.start-1))?o=i.string.substr(0,r.ch-i.start):(o="",a=r);for(var l=[],c=0;c<n.words.length;c++){var u=n.words[c];u.slice(0,o.length)==o&&l.push(u)}if(l.length)return{list:l,from:a,to:s}})),e.commands.autocomplete=e.showHint;var l={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(n("56b3"))},"9bdd":function(e,t,n){"use strict";var o=n("825a"),r=n("2a62");e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){r(e,"throw",t)}}},"9bf2":function(e,t,n){"use strict";var o=n("83ab"),r=n("0cfb"),i=n("aed9"),a=n("825a"),s=n("a04b"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor;t.f=o?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var o=u(e,t);o&&o.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:o.configurable,enumerable:"enumerable"in n?n.enumerable:o.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9cf7":function(e,t,n){"use strict";var o=n("d039");e.exports=!o((function(){var e=JSON.rawJSON("9007199254740993");return!JSON.isRawJSON(e)||"9007199254740993"!==JSON.stringify(e)}))},"9d45":function(e,t,n){},"9dd9":function(e,t,n){(function(e){!function(){"use strict";var t,n,o,r=function(e){var t=e;return{get:function(){return t},set:function(e){t=e}}},i=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=tinymce.util.Tools.resolve("tinymce.util.Tools"),s=(t="array",function(e){return o=typeof(n=e),(null===n?"null":"object"===o&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===o&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":o)===t;var n,o}),l=function(e){return!function(e){return null==e}(e)},c=function(e){return function(t){return typeof t===e}}("function"),u=function(){},d=function(e){return function(){return e}},f=function(e){return e},p=d(!1),m=d(!0),h=function(){return g},g={fold:function(e,t){return e()},isSome:p,isNone:m,getOr:o=f,getOrThunk:n=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:o,orThunk:n,map:h,each:u,bind:h,exists:p,forall:m,filter:function(){return h()},toArray:function(){return[]},toString:d("none()")},v=function(e){var t=d(e),n=function(){return r},o=function(t){return t(e)},r={fold:function(t,n){return n(e)},isSome:m,isNone:p,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return v(t(e))},each:function(t){t(e)},bind:o,exists:o,forall:o,filter:function(t){return t(e)?r:g},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return r},b={some:v,none:h,from:function(e){return null==e?g:v(e)}},y={},_={exports:y};!function(t,n,o,r){!function(e,r){"object"==typeof n&&void 0!==o?o.exports=r():"function"==typeof t&&t.amd?t(r):(e="undefined"!=typeof globalThis?globalThis:e||self).EphoxContactWrapper=r()}(this,(function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},n={exports:{}};!function(e){!function(t){var n=setTimeout;function o(){}function r(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(e,this)}function i(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var o;try{o=n(e._value)}catch(e){return void s(t.promise,e)}a(t.promise,o)}else(1===e._state?a:s)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof r)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void u((o=n,i=t,function(){o.apply(i,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){s(e,t)}var o,i}function s(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&r._immediateFn((function(){e._handled||r._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)i(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function u(e,t){var n=!1;try{e((function(e){n||(n=!0,a(t,e))}),(function(e){n||(n=!0,s(t,e))}))}catch(e){if(n)return;n=!0,s(t,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(o);return i(this,new c(e,t,n)),n},r.all=function(e){var t=Array.prototype.slice.call(e);return new r((function(e,n){if(0===t.length)return e([]);var o=t.length;function r(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){r(i,e)}),n)}t[i]=a,0==--o&&e(t)}catch(e){n(e)}}for(var i=0;i<t.length;i++)r(i,t[i])}))},r.resolve=function(e){return e&&"object"==typeof e&&e.constructor===r?e:new r((function(t){t(e)}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){for(var o=0,r=e.length;o<r;o++)e[o].then(t,n)}))},r._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},r._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console},r._setImmediateFn=function(e){r._immediateFn=e},r._setUnhandledRejectionFn=function(e){r._unhandledRejectionFn=e},e.exports?e.exports=r:t.Promise||(t.Promise=r)}(t)}(n);var o=n.exports;return{boltExport:("undefined"!=typeof window?window:Function("return this;")()).Promise||o}}))}(void 0,y,_);var w=_.exports.boltExport,C=function(e,t){return T(document.createElement("canvas"),e,t)},x=function(e){var t=C(e.width,e.height);return O(t).drawImage(e,0,0),t},O=function(e){return e.getContext("2d")},T=function(e,t,n){return e.width=t,e.height=n,e},E=function(e){return new w((function(t,n){var o=URL.createObjectURL(e),r=new Image,i=function(){r.removeEventListener("load",a),r.removeEventListener("error",s)},a=function(){i(),t(r)},s=function(){i(),n("Unable to load data of type "+e.type+": "+o)};r.addEventListener("load",a),r.addEventListener("error",s),r.src=o,r.complete&&setTimeout(a,0)}))},S=function(e){return new w((function(t,n){var o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){200===this.status&&t(this.response)},o.onerror=function(){var e,t=this;n(0===this.status?((e=new Error("No access to download image")).code=18,e.name="SecurityError",e):new Error("Error "+t.status+" downloading image"))},o.send()}))},D=function(e){return new w((function(t,n){(function(e){var t=e.split(","),n=/data:([^;]+)/.exec(t[0]);if(!n)return b.none();for(var o=n[1],r=t[1],i=atob(r),a=i.length,s=Math.ceil(a/1024),l=new Array(s),c=0;c<s;++c){for(var u=1024*c,d=Math.min(u+1024,a),f=new Array(d-u),p=u,m=0;p<d;++m,++p)f[m]=i[p].charCodeAt(0);l[c]=new Uint8Array(f)}return b.some(new Blob(l,{type:o}))})(e).fold((function(){n("uri is not base64: "+e)}),t)}))},k=function(e,t,n){return t=t||"image/png",c(HTMLCanvasElement.prototype.toBlob)?new w((function(o,r){e.toBlob((function(e){e?o(e):r()}),t,n)})):D(e.toDataURL(t,n))},A=function(e){URL.revokeObjectURL(e.src)},M=function(e){return function(e){var t=e.src;return 0===t.indexOf("data:")?D(t):S(t)}(e)},I=Array.prototype.indexOf,P=function(e,t){return n=e,o=t,I.call(n,o)>-1;var n,o},R=function(e,t){for(var n=0,o=e.length;n<o;n++)t(e[n],n)},L=function(e,t){return function(e,t,n){for(var o=0,r=e.length;o<r;o++){var i=e[o];if(t(i,o))return b.some(i);if(n(i,o))break}return b.none()}(e,t,p)},N=function(e,t){for(var n=0,o=e.length;n<o;++n)if(!0!==t(e[n],n))return!1;return!0},F=Object.keys;(function(e){if(!s(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};R(e,(function(o,r){var i=F(o);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],l=o[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(!s(l))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n.length;if(i!==l.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+l.length+" ("+l+"), got "+i);var s=function(e){var o=F(e);if(t.length!==o.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+o.join(","));if(!N(t,(function(e){return P(o,e)})))throw new Error("Not all branches were specified when using match. Specified: "+o.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var i=t[r];return i.apply(null,n)},match:s,log:function(e){}}}}))})([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var j=function(e,t,n){var o=t.type,r=d(o),i=d(n),a=function(t,n){return e.then((function(e){return function(e,t,n){return t=t||"image/png",e.toDataURL(t,n)}(e,t,n)}))};return{getType:r,toBlob:function(){return w.resolve(t)},toDataURL:i,toBase64:function(){return n.split(",")[1]},toAdjustedBlob:function(t,n){return e.then((function(e){return k(e,t,n)}))},toAdjustedDataURL:a,toAdjustedBase64:function(e,t){return a(e,t).then((function(e){return e.split(",")[1]}))},toCanvas:function(){return e.then(x)}}},B=function(e){return function(e){return new w((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))}(e).then((function(t){return j(function(e){return E(e).then((function(e){A(e);var t=C(function(e){return e.naturalWidth||e.width}(e),function(e){return e.naturalHeight||e.height}(e));return O(t).drawImage(e,0,0),t}))}(e),e,t)}))},$=function(e,t){return k(e,t).then((function(t){return j(w.resolve(e),t,e.toDataURL())}))},z=function(e,t){void 0===t&&(t=2);var n=Math.pow(10,t),o=Math.round(e*n);return Math.ceil(o/n)},U=function(e,t,n){var o=(n<0?360+n:n)*Math.PI/180,r=e.width,i=e.height,a=Math.sin(o),s=Math.cos(o),l=z(Math.abs(r*s)+Math.abs(i*a)),c=z(Math.abs(r*a)+Math.abs(i*s)),u=C(l,c),d=O(u);return d.translate(l/2,c/2),d.rotate(o),d.drawImage(e,-r/2,-i/2),$(u,t)},V=function(e,t,n){var o=C(e.width,e.height),r=O(o);return"v"===n?(r.scale(1,-1),r.drawImage(e,0,-o.height)):(r.scale(-1,1),r.drawImage(e,-o.width,0)),$(o,t)},H=function(e,t){return function(e,t){return e.toCanvas().then((function(n){return V(n,e.getType(),t)}))}(e,t)},W=function(e,t){return function(e,t){return e.toCanvas().then((function(n){return U(n,e.getType(),t)}))}(e,t)},Y=function(e,t,n){return void 0===n&&(n=!1),new w((function(o){var r=new XMLHttpRequest;r.onreadystatechange=function(){4===r.readyState&&o({status:r.status,blob:r.response})},r.open("GET",e,!0),r.withCredentials=n,function(e,t){for(var n=F(e),o=0,r=n.length;o<r;o++){var i=n[o];t(e[i],i)}}(t,(function(e,t){r.setRequestHeader(t,e)})),r.responseType="blob",r.send()}))},q=[{code:404,message:"Could not find Image Proxy"},{code:403,message:"Rejected request"},{code:0,message:"Incorrect Image Proxy URL"}],G=[{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."}],K=function(e,t){var n,o,r=(n=function(e,t){return l(e)?e[t]:void 0},o=e,R(t,(function(e,t){o=n(o,e,t)})),o);return b.from(r)},X=function(e){var t=function(e){return"ImageProxy HTTP error: "+L(q,(function(t){return e===t.code})).fold(d("Unknown ImageProxy error"),(function(e){return e.message}))}(e);return w.reject(t)},J=function(e){return L(G,(function(t){return t.type===e})).fold(d("Unknown service error"),(function(e){return e.message}))},Q=function(e){return"ImageProxy Service error: "+function(e){try{return b.some(JSON.parse(e))}catch(e){return b.none()}}(e).bind((function(e){return K(e,["error","type"]).map(J)})).getOr("Invalid JSON in service error message")},Z=function(e){return function(e){return new w((function(t,n){var o=new FileReader;o.onload=function(){t(o.result)},o.onerror=function(e){n(e)},o.readAsText(e)}))}(e).then((function(e){var t=Q(e);return w.reject(t)}))},ee=function(e){return e<200||e>=300},te=function(e,t){var n={"Content-Type":"application/json;charset=UTF-8","tiny-api-key":t};return Y(function(e,t){var n=-1===e.indexOf("?")?"?":"&";return/[?&]apiKey=/.test(e)?e:e+n+"apiKey="+encodeURIComponent(t)}(e,t),n).then((function(e){return ee(e.status)?(t=e.status,n=e.blob,function(e,t){return"application/json"===(null==t?void 0:t.type)&&(400===e||403===e||404===e||500===e)}(t,n)?Z(n):X(t)):w.resolve(e.blob);var t,n}))},ne=function(e,t,n){return void 0===n&&(n=!1),t?te(e,t):function(e,t){return Y(e,{},t).then((function(e){return ee(e.status)?X(e.status):w.resolve(e.blob)}))}(e,n)},oe=function(e){return B(e)},re=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},ie={fromHtml:function(e,t){var n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1)throw new Error("HTML must have a single root node");return re(n.childNodes[0])},fromTag:function(e,t){var n=(t||document).createElement(e);return re(n)},fromText:function(e,t){var n=(t||document).createTextNode(e);return re(n)},fromDom:re,fromPoint:function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(re)}};"undefined"!=typeof window?window:Function("return this;")();var ae=function(e,t){return function(e,t){return L(e.dom.childNodes,(function(e){return t(ie.fromDom(e))})).map(ie.fromDom)}(e,(function(e){return function(e,t){var n=e.dom;if(1!==n.nodeType)return!1;var o=n;if(void 0!==o.matches)return o.matches(t);if(void 0!==o.msMatchesSelector)return o.msMatchesSelector(t);if(void 0!==o.webkitMatchesSelector)return o.webkitMatchesSelector(t);if(void 0!==o.mozMatchesSelector)return o.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}(e,t)}))},se=tinymce.util.Tools.resolve("tinymce.util.Delay"),le=tinymce.util.Tools.resolve("tinymce.util.Promise"),ce=tinymce.util.Tools.resolve("tinymce.util.URI"),ue=function(e){return e.getParam("imagetools_toolbar","rotateleft rotateright flipv fliph editimage imageoptions")},de=function(e){return e.getParam("imagetools_proxy")},fe=function(e){var t,n,o=function(e){return/^[0-9\.]+px$/.test(e)};return t=e.style.width,n=e.style.height,t||n?o(t)&&o(n)?{w:parseInt(t,10),h:parseInt(n,10)}:null:(t=e.width,n=e.height,t&&n?{w:parseInt(t,10),h:parseInt(n,10)}:null)},pe=function(e){return{w:e.naturalWidth,h:e.naturalHeight}},me=0,he=function(e){return ae(ie.fromDom(e),"img")},ge=function(e,t){return e.dom.is(t,"figure")},ve=function(e,t){return e.dom.is(t,"img:not([data-mce-object],[data-mce-placeholder])")},be=function(e,t){var n=function(t){return ve(e,t)&&(Ce(e,t)||xe(e,t)||l(de(e)))};return ge(e,t)?he(t).bind((function(e){return n(e.dom)?b.some(e.dom):b.none()})):n(t)?b.some(t):b.none()},ye=function(e,t){e.notificationManager.open({text:t,type:"error"})},_e=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return null!==n&&ge(e,n)?he(n):ve(e,t)?b.some(ie.fromDom(t)):b.none()},we=function(e,t,n){var o=t.match(/(?:\/|^)(([^\/\?]+)\.(?:[a-z0-9.]+))(?:\?|$)/i);return l(o)?e.dom.encode(o[n]):null},Ce=function(e,t){var n=t.src;return 0===n.indexOf("data:")||0===n.indexOf("blob:")||new ce(n).host===e.documentBaseURI.host},xe=function(e,t){return-1!==a.inArray(function(e){return e.getParam("imagetools_cors_hosts",[],"string[]")}(e),new ce(t.src).host)},Oe=function(e,t){if(xe(e,t))return ne(t.src,null,function(e,t){return-1!==a.inArray(function(e){return e.getParam("imagetools_credentials_hosts",[],"string[]")}(e),new ce(t.src).host)}(e,t));if(!Ce(e,t)){var n=de(e),o=n+(-1===n.indexOf("?")?"?":"&")+"url="+encodeURIComponent(t.src),r=function(e){return e.getParam("api_key",e.getParam("imagetools_api_key","","string"),"string")}(e);return ne(o,r,!1)}return M(t)},Te=function(e,t){return function(e){return b.from(e.getParam("imagetools_fetch_image",null,"function"))}(e).fold((function(){return Oe(e,t)}),(function(e){return e(t)}))},Ee=function(e,t){var n=e.editorUpload.blobCache.getByUri(t.src);return n?le.resolve(n.blob()):Te(e,t)},Se=function(e){se.clearTimeout(e.get())},De=function(e,t,n,o,r,i,a){return n.toBlob().then((function(s){var c,u,d,f,p=e.editorUpload.blobCache;c=i.src;var m=t.type===s.type;return function(e){return e.getParam("images_reuse_filename",!1,"boolean")}(e)&&(f=p.getByUri(c),l(f)?(c=f.uri(),u=f.name(),d=f.filename()):(u=we(e,c,2),d=we(e,c,1))),f=p.create({id:"imagetools"+me++,blob:s,base64:n.toBase64(),uri:c,name:u,filename:m?d:void 0}),p.add(f),e.undoManager.transact((function(){var t=function(){e.$(i).off("load",t),e.nodeChanged(),o?e.editorUpload.uploadImagesAuto():(Se(r),function(e,t){var n=se.setEditorTimeout(e,(function(){e.editorUpload.uploadImagesAuto()}),function(e){return e.getParam("images_upload_timeout",3e4,"number")}(e));t.set(n)}(e,r))};e.$(i).on("load",t),a&&e.$(i).attr({width:a.w,height:a.h}),e.$(i).attr({src:f.blobUri()}).removeAttr("data-mce-src")})),f}))},ke=function(e,t,n,o){return function(){return _e(e).fold((function(){ye(e,"Could not find selected image")}),(function(r){return e._scanForImages().then((function(){return Ee(e,r.dom)})).then((function(i){return oe(i).then(n).then((function(n){return De(e,i,n,!1,t,r.dom,o)}))})).catch((function(t){ye(e,t)}))}))}},Ae=function(e,t,n){return function(){var o=_e(e).map((function(e){var t=fe(e.dom);return t?{w:t.h,h:t.w}:null})).getOrNull();return ke(e,t,(function(e){return W(e,n)}),o)()}},Me=function(e,t,n){return function(){return ke(e,t,(function(e){return H(e,n)}))()}},Ie=function(e,t,n,o,r){return function(e){return E(e)}(r).then((function(e){var t=pe(e);return o.w===t.w&&o.h===t.h||fe(n)&&function(e,t){var n,o;t&&(n=e.style.width,o=e.style.height,(n||o)&&(e.style.width=t.w+"px",e.style.height=t.h+"px",e.removeAttribute("data-mce-style")),n=e.width,o=e.height,(n||o)&&(e.setAttribute("width",String(t.w)),e.setAttribute("height",String(t.h))))}(n,t),URL.revokeObjectURL(e.src),r})).then(oe).then((function(o){return De(e,r,o,!0,t,n)}))},Pe=function(e,t){return function(){var n=_e(e),o=n.map((function(e){return pe(e.dom)}));n.each((function(r){be(e,r.dom).each((function(i){Ee(e,r.dom).then((function(r){var i=function(e){return{blob:e,url:URL.createObjectURL(e)}}(r);e.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(r){var i=r.getData().imagetools.blob;n.each((function(n){o.each((function(o){Ie(e,t,n.dom,o,i)}))})),r.close()},onCancel:u,onAction:function(e,t){switch(t.name){case"save-state":t.value?e.enable("save"):e.disable("save");break;case"disable":e.disable("save"),e.disable("cancel");break;case"enable":e.enable("cancel")}}})}))}))}))}};i.add("imagetools",(function(e){var t=r(0),n=r(null);!function(e,t){a.each({mceImageRotateLeft:Ae(e,t,-90),mceImageRotateRight:Ae(e,t,90),mceImageFlipVertical:Me(e,t,"v"),mceImageFlipHorizontal:Me(e,t,"h"),mceEditImage:Pe(e,t)},(function(t,n){e.addCommand(n,t)}))}(e,t),function(e){var t=[],n=function(t){return function(){return e.execCommand(t)}},o=function(){return _e(e).exists((function(t){return be(e,t.dom).isSome()}))},r=function(e){var n=function(t){return e.setDisabled(!t)};return n(o()),t=t.concat([n]),function(){t=function(e,t){for(var n=[],o=0,r=e.length;o<r;o++){var i=e[o];t(i,o)&&n.push(i)}return n}(t,(function(e){return e!==n}))}};e.on("NodeChange",(function(){var e=o();R(t,(function(t){return t(e)}))})),e.ui.registry.addButton("rotateleft",{tooltip:"Rotate counterclockwise",icon:"rotate-left",onAction:n("mceImageRotateLeft"),onSetup:r}),e.ui.registry.addButton("rotateright",{tooltip:"Rotate clockwise",icon:"rotate-right",onAction:n("mceImageRotateRight"),onSetup:r}),e.ui.registry.addButton("flipv",{tooltip:"Flip vertically",icon:"flip-vertically",onAction:n("mceImageFlipVertical"),onSetup:r}),e.ui.registry.addButton("fliph",{tooltip:"Flip horizontally",icon:"flip-horizontally",onAction:n("mceImageFlipHorizontal"),onSetup:r}),e.ui.registry.addButton("editimage",{tooltip:"Edit image",icon:"edit-image",onAction:n("mceEditImage"),onSetup:r}),e.ui.registry.addButton("imageoptions",{tooltip:"Image options",icon:"image",onAction:n("mceImage")}),e.ui.registry.addContextMenu("imagetools",{update:function(t){return be(e,t).map((function(e){return{text:"Edit image",icon:"edit-image",onAction:n("mceEditImage")}})).toArray()}})}(e),function(e){e.ui.registry.addContextToolbar("imagetools",{items:ue(e),predicate:function(t){return be(e,t).isSome()},position:"node",scope:"node"})}(e),function(e,t,n){e.on("NodeChange",(function(o){var r=n.get(),i=be(e,o.element);r&&!i.exists((function(e){return r.src===e.src}))&&(Se(t),e.editorUpload.uploadImagesAuto(),n.set(null)),i.each(n.set)}))}(e,t,n)}))}()}).call(this,n("c8ba"))},"9f7f":function(e,t,n){"use strict";var o=n("d039"),r=n("cfe9").RegExp,i=o((function(){var e=r("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||o((function(){return!r("a","y").sticky})),s=i||o((function(){var e=r("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},"9ffa":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITF14=t.ITF=void 0;var o=i(n("3c7c")),r=i(n("07df"));function i(e){return e&&e.__esModule?e:{default:e}}t.ITF=o.default,t.ITF14=r.default},a04b:function(e,t,n){"use strict";var o=n("c04e"),r=n("d9b5");e.exports=function(e){var t=o(e,"string");return r(t)?t:t+""}},a15b:function(e,t,n){"use strict";var o=n("23e7"),r=n("e330"),i=n("44ad"),a=n("fc6a"),s=n("a640"),l=r([].join);o({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},a168:function(e,t,n){"use strict";n("94e8")},a16a:function(e,t,n){"use strict";var o=n("6f3e"),r=n("c14f"),i=n("b85c"),a=n("1da1"),s=(n("99af"),n("7db0"),n("c740"),n("caad"),n("e260"),n("a15b"),n("d81d"),n("14d9"),n("b0c0"),n("e9f5"),n("f665"),n("7d54"),n("ab43"),n("b64b"),n("d3b7"),n("25f0"),n("3ca3"),n("159b"),n("ddb0"),n("e2e6")),l=n("eb5f"),c=n("7694"),u=n("5c9a"),d=n("8907"),f=n("fee3"),p=n("0f01");t.a={data:function(){return{columnList:[]}},methods:{fillingColumns:function(e){var t=this;if(e.selectedItem){var n=e.selectedItem.widgetModel,o=this.widgetForm.list.findIndex((function(e){return e.model===n&&"relatedForm"===e.type}));n&&o>=0&&(this.$set(this.widgetForm.list[o].options.selectedMap,"label",e.selectedItem.label),this.$set(this.widgetForm.list[o].options.selectedMap,"value",e.selectedItem.value)),e.selectedItem.type&&"input"===e.selectedItem.type||(this.$set(this.models,n,e.selectedItem.value||""),this.$set(this.models,"".concat(n,"_").concat(s.a),e.selectedItem.label||""))}e.fillingRules&&e.fillingRules.length&&(e.value&&Object.keys(e.value)&&Object.keys(e.value).length?e.fillingRules.forEach((function(n){var o=t.formatFillValue(n,e.value);t.isInTable?p.a.$emit("update-data-in-table",{tableModel:t.widget&&t.widget.options&&t.widget.options.tableModel,tableKey:t.widget&&t.widget.options&&t.widget.options.tableKey,rowIndex:t.rowIndex,targetColumnName:n.toColumnName,targetColumnValue:o}):t.$set(t.models,n.toColumnName,o)})):e.fillingRules.forEach((function(e){var n=t.allColumnList.find((function(t){return t&&t.model===e.toColumnName}));n&&n.length&&t.$set(t.models,e.toColumnName,n[0])})))},formatFillValue:function(e,t){var n=e.fromColumnName,o=e.fromColumnWidgetType,r=e.toColumnName,i=t[n],a=this.allColumnList.find((function(e){return e.model===r})),c=a.type;if(["input","textarea"].includes(c)){if("date"===o){var u=this.columnList.find((function(e){return e.columnName===n}));i=Object(l.f)(i,u.rawOptions)}else if("switches"===o)i=i?"是":"否";else if("address"===o)i="".concat(i?i.province:"").concat(i?i.city:"").concat(i?i.district:"").concat(i?i.details:"");else if(["select","checkbox","cascader"].includes(o))i=t[n+"_"+s.a]?t[n+"_"+s.a].join(","):"";else if(["member","organization"].includes(o)){var d="";i&&Array.isArray(i)&&i.length&&i.forEach((function(e,t){d+="".concat(e.name).concat(t!==i.length-1?",":"")})),i=d}i=null==i?"":i.toString&&i.toString().substr(0,a.options.maxLength||100)}else"relatedForm"===c&&(i=t[n+"_"+s.a]||"",this.$set(this.models,r+"_"+s.a,i));return i},getOptionLabel:function(e,t){var n=this;return Object(a.a)(Object(r.a)().m((function a(){var c,u,p,m,h,g,v,b,y;return Object(r.a)().w((function(a){for(;;)switch(a.p=a.n){case 0:if(c=null,u=n.columnList.find((function(e){return e.columnName===t})),!n.dictOptions||!n.dictOptions.length){a.n=12;break}if(!e[t]||"string"!=typeof e[t]){a.n=1;break}c="",p=n.dictOptions.find((function(n){return n.itemCode===e[t]})),c=p&&p.itemName,a.n=11;break;case 1:if(!e[t]||!Array.isArray(e[t])){a.n=11;break}if(m=[],!f.e[u.widgetType]){a.n=9;break}h=null,g=Object(i.a)(e[t]),a.p=2,b=Object(r.a)().m((function o(){var i,a,s,l;return Object(r.a)().w((function(o){for(;;)switch(o.n){case 0:if(i=v.value,0!==e[t].indexOf(i)){o.n=1;break}a=n.dictOptions.find((function(e){return e.itemCode===i})),m.push(a.itemName),h=a,o.n=3;break;case 1:return o.n=2,Object(d.a)(n,{dictId:h.dictId,parentId:h.id});case 2:(s=o.v)&&s.data&&s.data.length&&(l=s.data.find((function(e){return e.itemCode===i})),m.push(l.itemName),h=l);case 3:return o.a(2)}}),o)})),g.s();case 3:if((v=g.n()).done){a.n=5;break}return a.d(Object(o.a)(b()),4);case 4:a.n=3;break;case 5:a.n=7;break;case 6:a.p=6,y=a.v,g.e(y);case 7:return a.p=7,g.f(),a.f(7);case 8:a.n=10;break;case 9:e[t].map((function(e){var t=n.dictOptions.find((function(t){return t.itemCode===e}));m.push(t&&t.itemName)}));case 10:c=m&&m.toString&&m.toString();case 11:a.n=13;break;case 12:c=null===e[t]||void 0===e[t]?"":e[t].toString(),"cascader"===u.widgetType&&(c=e[t+"_"+s.a]?e[t+"_"+s.a].join(","):""),"relatedForm"===u.widgetType&&(c=e[t+"_"+s.a]||""),"date"===u.widgetType&&(c=Object(l.f)(e[t],u.rawOptions)),"address"===u.widgetType&&(c="".concat(e[t].province||"").concat(e[t].city||"").concat(e[t].district||"").concat(e[t].details||"")),"organization"===u.widgetType&&(c="",e[t]&&Array.isArray(e[t])&&e[t].length&&e[t].forEach((function(n,o){c+="".concat(n.name).concat(o!==e[t].length-1?" > ":"")}))),"member"===u.widgetType&&(c="",e[t]&&Array.isArray(e[t])&&e[t].length&&e[t].forEach((function(n,o){c+="".concat(n.name).concat(o!==e[t].length-1?",":"")})));case 13:return a.a(2,c)}}),a,null,[[2,6,7,8]])})))()},getColumnList:function(e){var t=this;return Object(a.a)(Object(r.a)().m((function n(){var o,i;return Object(r.a)().w((function(n){for(;;)switch(n.p=n.n){case 0:return t.loading=!0,n.p=1,n.n=2,Object(c.l)({formId:e});case 2:"0000"!==(o=n.v).data.code?t.$message.error(o.data.message||"获取表单数据列表失败"):t.columnList=o.data.data,n.n=4;break;case 3:n.p=3,i=n.v,t.$message.error(i);case 4:return n.p=4,t.loading=!1,n.f(4);case 5:return n.a(2)}}),n,null,[[1,3,4,5]])})))()},loadingDictOptionsByParams:function(e,t){var n=this;return Object(a.a)(Object(r.a)().m((function o(){var i,a;return Object(r.a)().w((function(o){for(;;)switch(o.n){case 0:return i=null,o.n=1,Object(d.a)(n,{dictId:e,parentId:t});case 1:return(a=o.v)&&a.data&&a.data.length&&(i=a.data),o.a(2,i)}}),o)})))()},loadingDictOptions:function(e){var t=this;return Object(a.a)(Object(r.a)().m((function n(){var o,i,a;return Object(r.a)().w((function(n){for(;;)switch(n.n){case 0:if(t.dictOptions=null,!(o=t.columnList.find((function(t){return t.columnName===e})))||o.remote!==u.a.DICT_DATA){n.n=2;break}return i=o&&o.rawOptions&&o.rawOptions.remoteOption&&o.rawOptions.remoteOption.remoteDict,n.n=1,Object(d.a)(t,{dictId:i&&i.dictId,parentId:i&&i.dictOptionId&&i.dictOptionId.length?i.dictOptionId:"#"});case 1:(a=n.v)&&a.data&&a.data.length&&(t.dictOptions=a.data);case 2:return n.a(2)}}),n)})))()}}}},a2b0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[];return function e(n){if(Array.isArray(n))for(var o=0;o<n.length;o++)e(n[o]);else n.text=n.text||"",n.data=n.data||"",t.push(n)}(e),t}},a2bf:function(e,t,n){"use strict";var o=n("e8b5"),r=n("07fa"),i=n("3511"),a=n("0366"),s=function(e,t,n,l,c,u,d,f){for(var p,m,h=c,g=0,v=!!d&&a(d,f);g<l;)g in n&&(p=v?v(n[g],g,t):n[g],u>0&&o(p)?(m=r(p),h=s(e,t,p,m,h,u-1)-1):(i(h+1),e[h]=p),h++),g++;return h};e.exports=s},a434:function(e,t,n){"use strict";var o=n("23e7"),r=n("7b0b"),i=n("23cb"),a=n("5926"),s=n("07fa"),l=n("3a34"),c=n("3511"),u=n("65f0"),d=n("8418"),f=n("083a"),p=n("1dde")("splice"),m=Math.max,h=Math.min;o({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,o,p,g,v,b,y=r(this),_=s(y),w=i(e,_),C=arguments.length;for(0===C?n=o=0:1===C?(n=0,o=_-w):(n=C-2,o=h(m(a(t),0),_-w)),c(_+n-o),p=u(y,o),g=0;g<o;g++)(v=w+g)in y&&d(p,g,y[v]);if(p.length=o,n<o){for(g=w;g<_-o;g++)b=g+n,(v=g+o)in y?y[b]=y[v]:f(y,b);for(g=_;g>_-o+n;g--)f(y,g-1)}else if(n>o)for(g=_-o;g>w;g--)b=g+n-1,(v=g+o-1)in y?y[b]=y[v]:f(y,b);for(g=0;g<n;g++)y[g+w]=arguments[g+2];return l(y,_-o+n),p}})},a4d3:function(e,t,n){"use strict";n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a4e7:function(e,t,n){"use strict";var o=n("23e7"),r=n("395e");o({target:"Set",proto:!0,real:!0,forced:!n("dad2")("isSupersetOf",(function(e){return!e}))},{isSupersetOf:r})},a5b2:function(e,t,n){"use strict";n("bfdb")},a5cf:function(e,t,n){"use strict";n("5b6a")},a5d2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n("c243"),i=a(n("5726"));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var e=r.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,i.default)(this.data,e,"01"),text:this.text}}}]),t}(a(n("e762")).default);t.default=s},a5f5:function(e,t,n){},a5f7:function(e,t,n){"use strict";var o=n("dc19"),r=n("cb27"),i=n("83b9"),a=n("8e16"),s=n("7f65"),l=n("384f"),c=n("5388"),u=r.has,d=r.remove;e.exports=function(e){var t=o(this),n=s(e),r=i(t);return a(t)<=n.size?l(t,(function(e){n.includes(e)&&d(r,e)})):c(n.getIterator(),(function(e){u(r,e)&&d(r,e)})),r}},a630:function(e,t,n){"use strict";var o=n("23e7"),r=n("4df4");o({target:"Array",stat:!0,forced:!n("1c7e")((function(e){Array.from(e)}))},{from:r})},a640:function(e,t,n){"use strict";var o=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){return 1},1)}))}},a6e1:function(e,t,n){},a732:function(e,t,n){"use strict";var o=n("23e7"),r=n("c65b"),i=n("2266"),a=n("59ed"),s=n("825a"),l=n("46c4"),c=n("2a62"),u=n("f99f")("some",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(u)return r(u,this,e);var t=l(this),n=0;return i(t,(function(t,o){if(e(t,n++))return o()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},a79d:function(e,t,n){"use strict";var o=n("23e7"),r=n("c430"),i=n("d256"),a=n("d039"),s=n("d066"),l=n("1626"),c=n("4840"),u=n("cdf9"),d=n("cb2d"),f=i&&i.prototype;if(o({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n=l(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!r&&l(i)){var p=s("Promise").prototype.finally;f.finally!==p&&d(f,"finally",p,{unsafe:!0})}},a7af:function(e,t,n){"use strict";n("f26e")},a7be:function(e,t,n){},a80e:function(e,t,n){},a93c:function(e,t,n){"use strict";n("cdc0")},a9d2:function(e,t,n){},a9e3:function(e,t,n){"use strict";var o=n("23e7"),r=n("c430"),i=n("83ab"),a=n("cfe9"),s=n("428f"),l=n("e330"),c=n("94ca"),u=n("1a2d"),d=n("7156"),f=n("3a9b"),p=n("d9b5"),m=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,C=s.Number,x=w.prototype,O=a.TypeError,T=l("".slice),E=l("".charCodeAt),S=function(e){var t=m(e,"number");return"bigint"==typeof t?t:D(t)},D=function(e){var t,n,o,r,i,a,s,l,c=m(e,"number");if(p(c))throw new O("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=_(c),43===(t=E(c,0))||45===t){if(88===(n=E(c,2))||120===n)return NaN}else if(48===t){switch(E(c,1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+c}for(a=(i=T(c,2)).length,s=0;s<a;s++)if((l=E(i,s))<48||l>r)return NaN;return parseInt(i,o)}return+c},k=c("Number",!w(" 0o1")||!w("0b1")||w("+0x1")),A=function(e){return f(x,e)&&h((function(){y(e)}))},M=function(e){var t=arguments.length<1?0:w(S(e));return A(this)?d(Object(t),this,M):t};M.prototype=x,k&&!r&&(x.constructor=M),o({global:!0,constructor:!0,wrap:!0,forced:k},{Number:M});var I=function(e,t){for(var n,o=i?g(t):"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(","),r=0;o.length>r;r++)u(t,n=o[r])&&!u(e,n)&&b(e,n,v(t,n))};r&&C&&I(s.Number,C),(k||r)&&I(s.Number,w)},aa47:function(e,t,n){"use strict";
13
+ t.read=function(e,t,n,o,r){var i,a,s=8*r-o-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?r-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,o),i-=c}return(p?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var a,s,l,c=8*i-r-1,u=(1<<c)-1,d=u>>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=o?0:i-1,m=o?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+p]=255&s,p+=m,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;e[n+p]=255&a,p+=m,a/=256,c-=8);e[n+p-m]|=128*h}},9224:function(e){e.exports=JSON.parse('{"a":"5.0.4"}')},9225:function(e,t,n){"use strict";n.d(t,"a",(function(){return oe}));var o=n("5530"),r=(n("7db0"),n("e260"),n("d81d"),n("13d5"),n("b0c0"),n("e9f5"),n("f665"),n("ab43"),n("9485"),n("d3b7"),n("ac1f"),n("466d"),n("ddb0"),n("8bbf")),i=n.n(r),a=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],s=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],l=Array.isArray;function c(e){return null!==e&&"object"==typeof e}function u(e){return"string"==typeof e}var d=Object.prototype.toString;function f(e){return"[object Object]"===d.call(e)}function p(e){return null==e}function m(e){return"function"==typeof e}function h(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,o=null;return 1===e.length?c(e[0])||l(e[0])?o=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(c(e[1])||l(e[1]))&&(o=e[1])),{locale:n,params:o}}function g(e){return JSON.parse(JSON.stringify(e))}function v(e,t){return!!~e.indexOf(t)}var b=Object.prototype.hasOwnProperty;function y(e,t){return b.call(e,t)}function _(e){for(var t=arguments,n=Object(e),o=1;o<arguments.length;o++){var r=t[o];if(null!=r){var i=void 0;for(i in r)y(r,i)&&(c(r[i])?n[i]=_(n[i],r[i]):n[i]=r[i])}}return n}function w(e,t){if(e===t)return!0;var n=c(e),o=c(t);if(!n||!o)return!n&&!o&&String(e)===String(t);try{var r=l(e),i=l(t);if(r&&i)return e.length===t.length&&e.every((function(e,n){return w(e,t[n])}));if(r||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return w(e[n],t[n])}))}catch(e){return!1}}function C(e){return null!=e&&Object.keys(e).forEach((function(t){"string"==typeof e[t]&&(e[t]=e[t].replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"))})),e}var x={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,o=t.parent,r=t.props,i=t.slots,a=o.$i18n;if(a){var s=r.path,l=r.locale,c=r.places,u=i(),d=a.i(s,l,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(u)||c?function(e,t){var n=t?function(e){return Array.isArray(e)?e.reduce(T,{}):Object.assign({},e)}(t):{};if(!e)return n;var o=(e=e.filter((function(e){return e.tag||""!==e.text.trim()}))).every(E);return e.reduce(o?O:T,n)}(u.default,c):u),f=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return f?e(f,n,d):d}}};function O(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function T(e,t,n){return e[n]=t,e}function E(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var S,D={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,o=t.parent,r=t.data,i=o.$i18n;if(!i)return null;var s=null,l=null;u(n.format)?s=n.format:c(n.format)&&(n.format.key&&(s=n.format.key),l=Object.keys(n.format).reduce((function(e,t){var o;return v(a,t)?Object.assign({},e,((o={})[t]=n.format[t],o)):e}),null));var d=n.locale||i.locale,f=i._ntp(n.value,d,s,l),p=f.map((function(e,t){var n,o=r.scopedSlots&&r.scopedSlots[e.type];return o?o(((n={})[e.type]=e.value,n.index=t,n.parts=f,n)):e.value})),m=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return m?e(m,{attrs:r.attrs,class:r.class,staticClass:r.staticClass},p):p}};function k(e,t,n){I(e,n)&&P(e,t,n)}function A(e,t,n,o){if(I(e,n)){var r=n.context.$i18n;(function(e,t){var n=t.context;return e._locale===n.$i18n.locale})(e,n)&&w(t.value,t.oldValue)&&w(e._localeMessage,r.getLocaleMessage(r.locale))||P(e,t,n)}}function M(e,t,n,o){if(n.context){var r=n.context.$i18n||{};t.modifiers.preserve||r.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}}function I(e,t){var n=t.context;return!!n&&!!n.$i18n}function P(e,t,n){var o,r,i=function(e){var t,n,o,r;return u(e)?t=e:f(e)&&(t=e.path,n=e.locale,o=e.args,r=e.choice),{path:t,locale:n,args:o,choice:r}}(t.value),a=i.path,s=i.locale,l=i.args,c=i.choice;if((a||s||l)&&a){var d=n.context;e._vt=e.textContent=null!=c?(o=d.$i18n).tc.apply(o,[a,c].concat(R(s,l))):(r=d.$i18n).t.apply(r,[a].concat(R(s,l))),e._locale=d.$i18n.locale,e._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}}function R(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||f(t))&&n.push(t),n}function L(e,t){void 0===t&&(t={bridge:!1}),L.installed=!0,(S=e).version&&Number(S.version.split(".")[0]),function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var o=this.$i18n;return o._t.apply(o,[e,o.locale,o._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],o=arguments.length-2;o-- >0;)n[o]=arguments[o+2];var r=this.$i18n;return r._tc.apply(r,[e,r.locale,r._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],o=arguments.length-1;o-- >0;)n[o]=arguments[o+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],o=arguments.length-1;o-- >0;)n[o]=arguments[o+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}(S),S.mixin(function(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n){if(e.i18n instanceof J){if(e.__i18nBridge||e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach((function(e){t=_(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(e){}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(f(e.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof J?this.$root.$i18n:null;if(n&&(e.i18n.root=this.$root,e.i18n.formatter=n.formatter,e.i18n.fallbackLocale=n.fallbackLocale,e.i18n.formatFallbackMessages=n.formatFallbackMessages,e.i18n.silentTranslationWarn=n.silentTranslationWarn,e.i18n.silentFallbackWarn=n.silentFallbackWarn,e.i18n.pluralizationRules=n.pluralizationRules,e.i18n.preserveDirectiveContent=n.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var o=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach((function(e){o=_(o,JSON.parse(e))})),e.i18n.messages=o}catch(e){}var r=e.i18n.sharedMessages;r&&f(r)&&(e.i18n.messages=_(e.i18n.messages,r)),this._i18n=new J(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof J?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof J&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?(e.i18n instanceof J||f(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof J||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof J)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}(t.bridge)),S.directive("t",{bind:k,update:A,unbind:M}),S.component(x.name,x),S.component(D.name,D),S.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var N=function(){this._caches=Object.create(null)};N.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){for(var t=[],n=0,o="";n<e.length;){var r=e[n++];if("{"===r){o&&t.push({type:"text",value:o}),o="";var i="";for(r=e[n++];void 0!==r&&"}"!==r;)i+=r,r=e[n++];var a="}"===r,s=F.test(i)?"list":a&&j.test(i)?"named":"unknown";t.push({value:i,type:s})}else"%"===r?"{"!==e[n]&&(o+=r):o+=r}return o&&t.push({type:"text",value:o}),t}(e),this._caches[e]=n),function(e,t){var n=[],o=0,r=Array.isArray(t)?"list":c(t)?"named":"unknown";if("unknown"===r)return n;for(;o<e.length;){var i=e[o];switch(i.type){case"text":n.push(i.value);break;case"list":n.push(t[parseInt(i.value,10)]);break;case"named":"named"===r&&n.push(t[i.value]);break;case"unknown":}o++}return n}(n,t)};var F=/^(?:\d)+/,j=/^(?:\w)+/,B=[];B[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},B[1]={ws:[1],".":[2],"[":[4],eof:[7]},B[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},B[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},B[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},B[5]={"'":[4,0],eof:8,else:[5,0]},B[6]={'"':[4,0],eof:8,else:[6,0]};var $=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function z(e){if(null==e)return"eof";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function U(e){var t,n,o,r=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(o=r,$.test(o)?(n=(t=r).charCodeAt(0))!==t.charCodeAt(t.length-1)||34!==n&&39!==n?t:t.slice(1,-1):"*"+r)}var V=function(){this._cache=Object.create(null)};V.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=function(e){var t,n,o,r,i,a,s,l=[],c=-1,u=0,d=0,f=[];function p(){var t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,o="\\"+t,f[0](),!0}for(f[1]=function(){void 0!==n&&(l.push(n),n=void 0)},f[0]=function(){void 0===n?n=o:n+=o},f[2]=function(){f[0](),d++},f[3]=function(){if(d>0)d--,u=4,f[0]();else{if(d=0,void 0===n)return!1;if(!1===(n=U(n)))return!1;f[1]()}};null!==u;)if(c++,"\\"!==(t=e[c])||!p()){if(r=z(t),8===(i=(s=B[u])[r]||s.else||8))return;if(u=i[0],(a=f[i[1]])&&(o=void 0===(o=i[2])?t:o,!1===a()))return;if(7===u)return l}}(e))&&(this._cache[e]=t),t||[]},V.prototype.getPathValue=function(e,t){if(!c(e))return null;var n=this.parsePath(t);if(0===n.length)return null;for(var o=n.length,r=e,i=0;i<o;){var a=r[n[i]];if(null==a)return null;r=a,i++}return r};var H,W=/<\/?[\w\s="/.':;#-\/]+>/,Y=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,q=/^@(?:\.([a-zA-Z]+))?:/,G=/[()]/g,K={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},X=new N,J=function(e){var t=this;void 0===e&&(e={}),!S&&"undefined"!=typeof window&&window.Vue&&L(window.Vue);var n=e.locale||"en-US",o=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),r=e.messages||{},i=e.dateTimeFormats||e.datetimeFormats||{},a=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||X,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._fallbackRootWithEmptyString=void 0===e.fallbackRootWithEmptyString||!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new V,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(e,n){var o,r,i=Object.getPrototypeOf(t);return i&&i.getChoiceIndex?i.getChoiceIndex.call(t,e,n):t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):(o=e,r=n,o=Math.abs(o),2===r?o?o>1?1:0:1:o?Math.min(o,2):0)},this._exist=function(e,n){return!(!e||!n)&&(!p(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])})),this._initVM({locale:n,fallbackLocale:o,messages:r,dateTimeFormats:i,numberFormats:a})},Q={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};J.prototype._checkLocaleMessage=function(e,t,n){var o=function(e,t,n,r){f(n)?Object.keys(n).forEach((function(i){var a=n[i];f(a)?(r.push(i),r.push("."),o(e,t,a,r),r.pop(),r.pop()):(r.push(i),o(e,t,a,r),r.pop())})):l(n)?n.forEach((function(n,i){f(n)?(r.push("["+i+"]"),r.push("."),o(e,t,n,r),r.pop(),r.pop()):(r.push("["+i+"]"),o(e,t,n,r),r.pop())})):u(n)&&W.test(n)&&r.join("")};o(t,e,n,[])},J.prototype._initVM=function(e){var t=S.config.silent;S.config.silent=!0,this._vm=new S({data:e,__VUE18N__INSTANCE__:!0}),S.config.silent=t},J.prototype.destroyVM=function(){this._vm.$destroy()},J.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},J.prototype.unsubscribeDataChanging=function(e){!function(e,t){e.delete(t)}(this._dataListeners,e)},J.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t,n,o=(t=e._dataListeners,n=[],t.forEach((function(e){return n.push(e)})),n),r=o.length;r--;)S.nextTick((function(){o[r]&&o[r].$forceUpdate()}))}),{deep:!0})},J.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,n=this._vm;return this.vm.$watch("locale",(function(o){n.$set(n,"locale",o),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=o),n.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var o=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){o.$set(o,"locale",e),o.$forceUpdate()}),{immediate:!0})},J.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},Q.vm.get=function(){return this._vm},Q.messages.get=function(){return g(this._getMessages())},Q.dateTimeFormats.get=function(){return g(this._getDateTimeFormats())},Q.numberFormats.get=function(){return g(this._getNumberFormats())},Q.availableLocales.get=function(){return Object.keys(this.messages).sort()},Q.locale.get=function(){return this._vm.locale},Q.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},Q.fallbackLocale.get=function(){return this._vm.fallbackLocale},Q.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},Q.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Q.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},Q.missing.get=function(){return this._missing},Q.missing.set=function(e){this._missing=e},Q.formatter.get=function(){return this._formatter},Q.formatter.set=function(e){this._formatter=e},Q.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Q.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},Q.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Q.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},Q.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Q.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},Q.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Q.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var o=this._getMessages();Object.keys(o).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,o[e])}))}},Q.postTranslation.get=function(){return this._postTranslation},Q.postTranslation.set=function(e){this._postTranslation=e},Q.sync.get=function(){return this._sync},Q.sync.set=function(e){this._sync=e},J.prototype._getMessages=function(){return this._vm.messages},J.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},J.prototype._getNumberFormats=function(){return this._vm.numberFormats},J.prototype._warnDefault=function(e,t,n,o,r,i){if(!p(n))return n;if(this._missing){var a=this._missing.apply(null,[e,t,o,r]);if(u(a))return a}if(this._formatFallbackMessages){var s=h.apply(void 0,r);return this._render(t,i,s.params,t)}return t},J.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:p(e))&&!p(this._root)&&this._fallbackRoot},J.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},J.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},J.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},J.prototype._interpolate=function(e,t,n,o,r,i,a){if(!t)return null;var s,c=this._path.getPathValue(t,n);if(l(c)||f(c))return c;if(p(c)){if(!f(t))return null;if(!u(s=t[n])&&!m(s))return null}else{if(!u(c)&&!m(c))return null;s=c}return u(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(e,t,s,o,"raw",i,a)),this._render(s,r,i,n)},J.prototype._link=function(e,t,n,o,r,i,a){var s=n,c=s.match(Y);for(var u in c)if(c.hasOwnProperty(u)){var d=c[u],f=d.match(q),p=f[0],m=f[1],h=d.replace(p,"").replace(G,"");if(v(a,h))return s;a.push(h);var g=this._interpolate(e,t,h,o,"raw"===r?"string":r,"raw"===r?void 0:i,a);if(this._isFallbackRoot(g)){if(!this._root)throw Error("unexpected error");var b=this._root.$i18n;g=b._translate(b._getMessages(),b.locale,b.fallbackLocale,h,o,r,i)}g=this._warnDefault(e,h,g,o,l(i)?i:[i],r),this._modifiers.hasOwnProperty(m)?g=this._modifiers[m](g):K.hasOwnProperty(m)&&(g=K[m](g)),a.pop(),s=g?s.replace(d,g):s}return s},J.prototype._createMessageContext=function(e,t,n,o){var r=this,i=l(e)?e:[],a=c(e)?e:{},s=this._getMessages(),u=this.locale;return{list:function(e){return i[e]},named:function(e){return a[e]},values:e,formatter:t,path:n,messages:s,locale:u,linked:function(e){return r._interpolate(u,s[u]||{},e,null,o,void 0,[e])}}},J.prototype._render=function(e,t,n,o){if(m(e))return e(this._createMessageContext(n,this._formatter||X,o,t));var r=this._formatter.interpolate(e,n,o);return r||(r=X.interpolate(e,n,o)),"string"!==t||u(r)?r:r.join("")},J.prototype._appendItemToChain=function(e,t,n){var o=!1;return v(e,t)||(o=!0,t&&(o="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(o=n[t]))),o},J.prototype._appendLocaleToChain=function(e,t,n){var o,r=t.split("-");do{var i=r.join("-");o=this._appendItemToChain(e,i,n),r.splice(-1,1)}while(r.length&&!0===o);return o},J.prototype._appendBlockToChain=function(e,t,n){for(var o=!0,r=0;r<t.length&&"boolean"==typeof o;r++){var i=t[r];u(i)&&(o=this._appendLocaleToChain(e,i,n))}return o},J.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];for(var o,r=[e];l(r);)r=this._appendBlockToChain(n,r,t);(r=u(o=l(t)?t:c(t)?t.default?t.default:null:t)?[o]:o)&&this._appendBlockToChain(n,r,null),this._localeChainCache[e]=n}return n},J.prototype._translate=function(e,t,n,o,r,i,a){for(var s,l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(!p(s=this._interpolate(u,e[u],o,r,i,a,[o])))return s}return null},J.prototype._t=function(e,t,n,o){for(var r,i=[],a=arguments.length-4;a-- >0;)i[a]=arguments[a+4];if(!e)return"";var s=h.apply(void 0,i);this._escapeParameterHtml&&(s.params=C(s.params));var l=s.locale||t,c=this._translate(n,l,this.fallbackLocale,e,o,"string",s.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[e].concat(i))}return c=this._warnDefault(l,e,c,o,i,"string"),this._postTranslation&&null!=c&&(c=this._postTranslation(c,e)),c},J.prototype.t=function(e){for(var t,n=[],o=arguments.length-1;o-- >0;)n[o]=arguments[o+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},J.prototype._i=function(e,t,n,o,r){var i=this._translate(n,t,this.fallbackLocale,e,o,"raw",r);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,r)}return this._warnDefault(t,e,i,o,[r],"raw")},J.prototype.i=function(e,t,n){return e?(u(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},J.prototype._tc=function(e,t,n,o,r){for(var i,a=[],s=arguments.length-5;s-- >0;)a[s]=arguments[s+5];if(!e)return"";void 0===r&&(r=1);var l={count:r,n:r},c=h.apply(void 0,a);return c.params=Object.assign(l,c.params),a=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((i=this)._t.apply(i,[e,t,n,o].concat(a)),r)},J.prototype.fetchChoice=function(e,t){if(!e||!u(e))return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},J.prototype.tc=function(e,t){for(var n,o=[],r=arguments.length-2;r-- >0;)o[r]=arguments[r+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(o))},J.prototype._te=function(e,t,n){for(var o=[],r=arguments.length-3;r-- >0;)o[r]=arguments[r+3];var i=h.apply(void 0,o).locale||t;return this._exist(n[i],e)},J.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},J.prototype.getLocaleMessage=function(e){return g(this._vm.messages[e]||{})},J.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},J.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,_(void 0!==this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},J.prototype.getDateTimeFormat=function(e){return g(this._vm.dateTimeFormats[e]||{})},J.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},J.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,_(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},J.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var o=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(o)&&delete this._dateTimeFormatters[o]}},J.prototype._localizeDateTime=function(e,t,n,o,r,i){for(var a=t,s=o[a],l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(a=u,!p(s=o[u])&&!p(s[r]))break}if(p(s)||p(s[r]))return null;var d,f=s[r];if(i)d=new Intl.DateTimeFormat(a,Object.assign({},f,i));else{var m=a+"__"+r;(d=this._dateTimeFormatters[m])||(d=this._dateTimeFormatters[m]=new Intl.DateTimeFormat(a,f))}return d.format(e)},J.prototype._d=function(e,t,n,o){if(!n)return(o?new Intl.DateTimeFormat(t,o):new Intl.DateTimeFormat(t)).format(e);var r=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n,o);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return r||""},J.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var o=this.locale,r=null,i=null;return 1===t.length?(u(t[0])?r=t[0]:c(t[0])&&(t[0].locale&&(o=t[0].locale),t[0].key&&(r=t[0].key)),i=Object.keys(t[0]).reduce((function(e,n){var o;return v(s,n)?Object.assign({},e,((o={})[n]=t[0][n],o)):e}),null)):2===t.length&&(u(t[0])&&(r=t[0]),u(t[1])&&(o=t[1])),this._d(e,o,r,i)},J.prototype.getNumberFormat=function(e){return g(this._vm.numberFormats[e]||{})},J.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},J.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,_(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},J.prototype._clearNumberFormat=function(e,t){for(var n in t){var o=e+"__"+n;this._numberFormatters.hasOwnProperty(o)&&delete this._numberFormatters[o]}},J.prototype._getNumberFormatter=function(e,t,n,o,r,i){for(var a=t,s=o[a],l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(a=u,!p(s=o[u])&&!p(s[r]))break}if(p(s)||p(s[r]))return null;var d,f=s[r];if(i)d=new Intl.NumberFormat(a,Object.assign({},f,i));else{var m=a+"__"+r;(d=this._numberFormatters[m])||(d=this._numberFormatters[m]=new Intl.NumberFormat(a,f))}return d},J.prototype._n=function(e,t,n,o){if(!J.availabilities.numberFormat)return"";if(!n)return(o?new Intl.NumberFormat(t,o):new Intl.NumberFormat(t)).format(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,o),i=r&&r.format(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},o))}return i||""},J.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var o=this.locale,r=null,i=null;return 1===t.length?u(t[0])?r=t[0]:c(t[0])&&(t[0].locale&&(o=t[0].locale),t[0].key&&(r=t[0].key),i=Object.keys(t[0]).reduce((function(e,n){var o;return v(a,n)?Object.assign({},e,((o={})[n]=t[0][n],o)):e}),null)):2===t.length&&(u(t[0])&&(r=t[0]),u(t[1])&&(o=t[1])),this._n(e,o,r,i)},J.prototype._ntp=function(e,t,n,o){if(!J.availabilities.numberFormat)return[];if(!n)return(o?new Intl.NumberFormat(t,o):new Intl.NumberFormat(t)).formatToParts(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,o),i=r&&r.formatToParts(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,o)}return i||[]},Object.defineProperties(J.prototype,Q),Object.defineProperty(J,"availabilities",{get:function(){if(!H){var e="undefined"!=typeof Intl;H={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return H}}),J.install=L,J.version="8.28.2";var Z=J;i.a.use(Z);var ee=n("c2c2"),te=ee.keys().map((function(e){return{name:e.match(/.\/(\S+).json/)[1],locale:ee(e)}}));function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return te.reduce((function(t,n){var r=e.find((function(e){return e.locale===n.name}))||{};return t[r.locale||n.name]=Object(o.a)(Object(o.a)({},n.locale),r.message),t}),{})}function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN",n=localStorage.getItem("_iss_fd_language_type")||t;return new Z({locale:n,messages:ne(e)})}},9230:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n("2ad9"),a=n("e762"),s=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var e=this.data.split("").flatMap((function(e){return i.MULTI_SYMBOLS[e]||e})),n=e.map((function(e){return t.getEncoding(e)})).join(""),o=t.checksum(e,20),r=t.checksum(e.concat(o),15);return{text:this.text,data:t.getEncoding("ÿ")+n+t.getEncoding(o)+t.getEncoding(r)+t.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(e){return i.BINARIES[t.symbolValue(e)]}},{key:"getSymbol",value:function(e){return i.SYMBOLS[e]}},{key:"symbolValue",value:function(e){return i.SYMBOLS.indexOf(e)}},{key:"checksum",value:function(e,n){var o=e.slice().reverse().reduce((function(e,o,r){var i=r%n+1;return e+t.symbolValue(o)*i}),0);return t.getSymbol(o%47)}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);t.default=s},9263:function(e,t,n){"use strict";var o,r,i=n("c65b"),a=n("e330"),s=n("577e"),l=n("ad6d"),c=n("9f7f"),u=n("5692"),d=n("7c73"),f=n("69f3").get,p=n("fce3"),m=n("107c"),h=u("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,b=a("".charAt),y=a("".indexOf),_=a("".replace),w=a("".slice),C=(r=/b*/g,i(g,o=/a/,"a"),i(g,r,"a"),0!==o.lastIndex||0!==r.lastIndex),x=c.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(C||O||x||p||m)&&(v=function(e){var t,n,o,r,a,c,u,p=this,m=f(p),T=s(e),E=m.raw;if(E)return E.lastIndex=p.lastIndex,t=i(v,E,T),p.lastIndex=E.lastIndex,t;var S=m.groups,D=x&&p.sticky,k=i(l,p),A=p.source,M=0,I=T;if(D&&(k=_(k,"y",""),-1===y(k,"g")&&(k+="g"),I=w(T,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==b(T,p.lastIndex-1))&&(A="(?: "+A+")",I=" "+I,M++),n=new RegExp("^(?:"+A+")",k)),O&&(n=new RegExp("^"+A+"$(?!\\s)",k)),C&&(o=p.lastIndex),r=i(g,D?n:p,I),D?r?(r.input=w(r.input,M),r[0]=w(r[0],M),r.index=p.lastIndex,p.lastIndex+=r[0].length):p.lastIndex=0:C&&r&&(p.lastIndex=p.global?r.index+r[0].length:o),O&&r&&r.length>1&&i(h,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&S)for(r.groups=c=d(null),a=0;a<S.length;a++)c[(u=S[a])[0]]=r[u[1]];return r}),e.exports=v},9362:function(e,t,n){"use strict";n("fa83")},9418:function(e,t,n){"use strict";n("15c4")},9460:function(e,t,n){"use strict";n("2cba")},"946c":function(e,t,n){},9485:function(e,t,n){"use strict";var o=n("23e7"),r=n("2266"),i=n("59ed"),a=n("825a"),s=n("46c4"),l=n("2a62"),c=n("f99f"),u=n("2ba4"),d=n("d039"),f=TypeError,p=d((function(){[].keys().reduce((function(){}),void 0)})),m=!p&&c("reduce",f);o({target:"Iterator",proto:!0,real:!0,forced:p||m},{reduce:function(e){a(this);try{i(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,n=t?void 0:arguments[1];if(m)return u(m,this,t?[e]:[e,n]);var o=s(this),c=0;if(r(o,(function(o){t?(t=!1,n=o):n=e(n,o,c),c++}),{IS_RECORD:!0}),t)throw new f("Reduce of empty iterator with no initial value");return n}})},"94ca":function(e,t,n){"use strict";var o=n("d039"),r=n("1626"),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===u||n!==c&&(r(t)?o(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},"94ce":function(e,t){!function(){"use strict";var e=function(e){return function(t){return o=typeof(n=t),(null===n?"null":"object"===o&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===o&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":o)===e;var n,o}},t=function(e){return function(t){return typeof t===e}},n=function(e){return function(t){return e===t}},o=e("string"),r=e("object"),i=e("array"),a=n(null),s=t("boolean"),l=n(void 0),c=function(e){return!function(e){return null==e}(e)},u=t("function"),d=t("number"),f=function(){},p=function(e){return function(){return e}},m=function(e){return e},h=function(e,t){return e===t};function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var r=t.concat(n);return e.apply(null,r)}}var v,b,y=function(e){return function(t){return!e(t)}},_=p(!1),w=p(!0),C=function(){return x},x={fold:function(e,t){return e()},isSome:_,isNone:w,getOr:b=m,getOrThunk:v=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:p(null),getOrUndefined:p(void 0),or:b,orThunk:v,map:C,each:f,bind:C,exists:_,forall:w,filter:function(){return C()},toArray:function(){return[]},toString:p("none()")},O=function(e){var t=p(e),n=function(){return r},o=function(t){return t(e)},r={fold:function(t,n){return n(e)},isSome:w,isNone:_,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return O(t(e))},each:function(t){t(e)},bind:o,exists:o,forall:o,filter:function(t){return t(e)?r:x},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return r},T={some:O,none:C,from:function(e){return null==e?x:O(e)}},E=Array.prototype.slice,S=Array.prototype.indexOf,D=Array.prototype.push,k=function(e,t){return n=e,o=t,S.call(n,o)>-1;var n,o},A=function(e,t){for(var n=0,o=e.length;n<o;n++)if(t(e[n],n))return!0;return!1},M=function(e,t){for(var n=[],o=0;o<e;o++)n.push(t(o));return n},I=function(e,t){for(var n=e.length,o=new Array(n),r=0;r<n;r++){var i=e[r];o[r]=t(i,r)}return o},P=function(e,t){for(var n=0,o=e.length;n<o;n++)t(e[n],n)},R=function(e,t){for(var n=[],o=[],r=0,i=e.length;r<i;r++){var a=e[r];(t(a,r)?n:o).push(a)}return{pass:n,fail:o}},L=function(e,t){for(var n=[],o=0,r=e.length;o<r;o++){var i=e[o];t(i,o)&&n.push(i)}return n},N=function(e,t,n){return function(e,t){for(var n=e.length-1;n>=0;n--)t(e[n],n)}(e,(function(e,o){n=t(n,e,o)})),n},F=function(e,t,n){return P(e,(function(e,o){n=t(n,e,o)})),n},j=function(e,t){return function(e,t,n){for(var o=0,r=e.length;o<r;o++){var i=e[o];if(t(i,o))return T.some(i);if(n(i,o))break}return T.none()}(e,t,_)},B=function(e,t){for(var n=0,o=e.length;n<o;n++)if(t(e[n],n))return T.some(n);return T.none()},$=function(e){for(var t=[],n=0,o=e.length;n<o;++n){if(!i(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);D.apply(t,e[n])}return t},z=function(e,t){return $(I(e,t))},U=function(e,t){for(var n=0,o=e.length;n<o;++n)if(!0!==t(e[n],n))return!1;return!0},V=function(e,t){for(var n={},o=0,r=e.length;o<r;o++){var i=e[o];n[String(i)]=t(i,o)}return n},H=function(e){return[e]},W=function(e,t){return t>=0&&t<e.length?T.some(e[t]):T.none()},Y=function(e){return W(e,0)},q=function(e){return W(e,e.length-1)},G=function(e,t){for(var n=0;n<e.length;n++){var o=t(e[n],n);if(o.isSome())return o}return T.none()},K=function(){return(K=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function X(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var J=function(e){var t,n=!1;return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];return n||(n=!0,t=e.apply(null,o)),t}},Q=function(){return Z(0,0)},Z=function(e,t){return{major:e,minor:t}},ee={nu:Z,detect:function(e,t){var n=String(t).toLowerCase();return 0===e.length?Q():function(e,t){var n=function(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(o.test(t))return o}}(e,t);if(!n)return{major:0,minor:0};var o=function(e){return Number(t.replace(n,"$"+e))};return Z(o(1),o(2))}(e,n)},unknown:Q},te=function(e,t){var n=String(t).toLowerCase();return j(e,(function(e){return e.search(n)}))},ne=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},oe=function(e,t){return-1!==e.indexOf(t)},re=function(e,t){return ne(e,t,0)},ie=function(e,t){return ne(e,t,e.length-t.length)},ae=function(e){return function(t){return t.replace(e,"")}}(/^\s+|\s+$/g),se=function(e){return e.length>0},le=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ce=function(e){return function(t){return oe(t,e)}},ue=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return oe(e,"edge/")&&oe(e,"chrome")&&oe(e,"safari")&&oe(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,le],search:function(e){return oe(e,"chrome")&&!oe(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return oe(e,"msie")||oe(e,"trident")}},{name:"Opera",versionRegexes:[le,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ce("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ce("firefox")},{name:"Safari",versionRegexes:[le,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(oe(e,"safari")||oe(e,"mobile/"))&&oe(e,"applewebkit")}}],de=[{name:"Windows",search:ce("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return oe(e,"iphone")||oe(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ce("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ce("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ce("linux"),versionRegexes:[]},{name:"Solaris",search:ce("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ce("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ce("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],fe={browsers:p(ue),oses:p(de)},pe=function(e){var t=e.current,n=e.version,o=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:o("Edge"),isChrome:o("Chrome"),isIE:o("IE"),isOpera:o("Opera"),isFirefox:o("Firefox"),isSafari:o("Safari")}},me={unknown:function(){return pe({current:void 0,version:ee.unknown()})},nu:pe,edge:p("Edge"),chrome:p("Chrome"),ie:p("IE"),opera:p("Opera"),firefox:p("Firefox"),safari:p("Safari")},he=function(e){var t=e.current,n=e.version,o=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:o("Windows"),isiOS:o("iOS"),isAndroid:o("Android"),isOSX:o("OSX"),isLinux:o("Linux"),isSolaris:o("Solaris"),isFreeBSD:o("FreeBSD"),isChromeOS:o("ChromeOS")}},ge={unknown:function(){return he({current:void 0,version:ee.unknown()})},nu:he,windows:p("Windows"),ios:p("iOS"),android:p("Android"),linux:p("Linux"),osx:p("OSX"),solaris:p("Solaris"),freebsd:p("FreeBSD"),chromeos:p("ChromeOS")},ve=function(e,t,n){var o=fe.browsers(),r=fe.oses(),i=t.bind((function(e){return function(e,t){return G(t.brands,(function(t){var n=t.brand.toLowerCase();return j(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:ee.nu(parseInt(t.version,10),0)}}))}))}(o,e)})).orThunk((function(){return function(e,t){return te(e,t).map((function(e){var n=ee.detect(e.versionRegexes,t);return{current:e.name,version:n}}))}(o,e)})).fold(me.unknown,me.nu),a=function(e,t){return te(e,t).map((function(e){var n=ee.detect(e.versionRegexes,t);return{current:e.name,version:n}}))}(r,e).fold(ge.unknown,ge.nu),s=function(e,t,n,o){var r=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!r,a=e.isiOS()||e.isAndroid(),s=a||o("(pointer:coarse)"),l=r||!i&&a&&o("(min-device-width:768px)"),c=i||a&&!l,u=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!c&&!l&&!u;return{isiPad:p(r),isiPhone:p(i),isTablet:p(l),isPhone:p(c),isTouch:p(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:p(u),isDesktop:p(d)}}(a,i,e,n);return{browser:i,os:a,deviceType:s}},be=function(e){return window.matchMedia(e).matches},ye=J((function(){return ve(navigator.userAgent,T.from(navigator.userAgentData),be)})),_e=function(){return ye()},we=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},Ce={fromHtml:function(e,t){var n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1)throw new Error("HTML must have a single root node");return we(n.childNodes[0])},fromTag:function(e,t){var n=(t||document).createElement(e);return we(n)},fromText:function(e,t){var n=(t||document).createTextNode(e);return we(n)},fromDom:we,fromPoint:function(e,t,n){return T.from(e.dom.elementFromPoint(t,n)).map(we)}},xe=function(e,t){var n=e.dom;if(1!==n.nodeType)return!1;var o=n;if(void 0!==o.matches)return o.matches(t);if(void 0!==o.msMatchesSelector)return o.msMatchesSelector(t);if(void 0!==o.webkitMatchesSelector)return o.webkitMatchesSelector(t);if(void 0!==o.mozMatchesSelector)return o.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Oe=function(e){return 1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount},Te=function(e,t){var n=void 0===t?document:t.dom;return Oe(n)?T.none():T.from(n.querySelector(e)).map(Ce.fromDom)},Ee=function(e,t){return e.dom===t.dom},Se=function(e,t){return n=e.dom,o=t.dom,function(e,t,n){return 0!=(e.compareDocumentPosition(t)&n)}(n,o,Node.DOCUMENT_POSITION_CONTAINED_BY);var n,o},De=function(e,t){return _e().browser.isIE()?Se(e,t):function(e,t){var n=e.dom,o=t.dom;return n!==o&&n.contains(o)}(e,t)},ke=xe,Ae=Object.keys,Me=Object.hasOwnProperty,Ie=function(e,t){for(var n=Ae(e),o=0,r=n.length;o<r;o++){var i=n[o];t(e[i],i)}},Pe=function(e,t){return Re(e,(function(e,n){return{k:n,v:t(e,n)}}))},Re=function(e,t){var n={};return Ie(e,(function(e,o){var r=t(e,o);n[r.k]=r.v})),n},Le=function(e,t){var n={};return function(e,t,n,o){Ie(e,(function(e,r){(t(e,r)?n:o)(e,r)}))}(e,t,function(e){return function(t,n){e[n]=t}}(n),f),n},Ne=function(e,t){var n=[];return Ie(e,(function(e,o){n.push(t(e,o))})),n},Fe=function(e){return Ne(e,m)},je=function(e){return Ae(e).length},Be=function(e,t){return $e(e,t)?T.from(e[t]):T.none()},$e=function(e,t){return Me.call(e,t)},ze=function(e,t){return $e(e,t)&&void 0!==e[t]&&null!==e[t]},Ue=["tfoot","thead","tbody","colgroup"],Ve=function(e,t,n){return{element:e,rowspan:t,colspan:n}},He=function(e,t,n){return{element:e,cells:t,section:n}},We=function(e,t,n){return{element:e,isNew:t,isLocked:n}},Ye=function(e,t,n,o){return{element:e,cells:t,section:n,isNew:o}};"undefined"!=typeof window?window:Function("return this;")();var qe=function(e){return e.dom.nodeName.toLowerCase()},Ge=function(e){return e.dom.nodeType},Ke=function(e){return function(t){return Ge(t)===e}},Xe=function(e){return 8===Ge(e)||"#comment"===qe(e)},Je=Ke(1),Qe=Ke(3),Ze=Ke(9),et=Ke(11),tt=function(e){return function(t){return Je(t)&&qe(t)===e}},nt=function(e){return Ce.fromDom(e.dom.ownerDocument)},ot=function(e){return Ze(e)?e:nt(e)},rt=function(e){return T.from(e.dom.parentNode).map(Ce.fromDom)},it=function(e,t){for(var n=u(t)?t:_,o=e.dom,r=[];null!==o.parentNode&&void 0!==o.parentNode;){var i=o.parentNode,a=Ce.fromDom(i);if(r.push(a),!0===n(a))break;o=i}return r},at=function(e){return T.from(e.dom.previousSibling).map(Ce.fromDom)},st=function(e){return T.from(e.dom.nextSibling).map(Ce.fromDom)},lt=function(e){return I(e.dom.childNodes,Ce.fromDom)},ct=function(e,t){var n=e.dom.childNodes;return T.from(n[t]).map(Ce.fromDom)},ut=u(Element.prototype.attachShadow)&&u(Node.prototype.getRootNode),dt=p(ut),ft=ut?function(e){return Ce.fromDom(e.dom.getRootNode())}:ot,pt=function(e){var t,n=ft(e);return et(t=n)&&c(t.dom.host)?T.some(n):T.none()},mt=function(e){return Ce.fromDom(e.dom.host)},ht=function(e){return c(e.dom.shadowRoot)},gt=function(e){var t=Qe(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;var n,o,r=t.ownerDocument;return pt(Ce.fromDom(t)).fold((function(){return r.body.contains(t)}),(n=gt,o=mt,function(e){return n(o(e))}))},vt=function(e){var t=e.dom.body;if(null==t)throw new Error("Body is not available yet");return Ce.fromDom(t)},bt=function(e,t){var n=[];return P(lt(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(bt(e,t))})),n},yt=function(e,t,n){return function(e,t,n){return L(it(e,n),t)}(e,(function(e){return xe(e,t)}),n)},_t=function(e,t){return function(e,t){return L(lt(e),t)}(e,(function(e){return xe(e,t)}))},wt=function(e,t){return function(e,t){var n=void 0===t?document:t.dom;return Oe(n)?[]:I(n.querySelectorAll(e),Ce.fromDom)}(t,e)};function Ct(e,t,n,o,r){return e(n,o)?T.some(n):u(r)&&r(n)?T.none():t(n,o,r)}var xt=function(e,t,n){for(var o=e.dom,r=u(n)?n:_;o.parentNode;){o=o.parentNode;var i=Ce.fromDom(o);if(t(i))return T.some(i);if(r(i))break}return T.none()},Ot=function(e,t,n){return xt(e,(function(e){return xe(e,t)}),n)},Tt=function(e,t){return function(e,t){return j(e.dom.childNodes,(function(e){return t(Ce.fromDom(e))})).map(Ce.fromDom)}(e,(function(e){return xe(e,t)}))},Et=function(e,t){return Te(t,e)},St=function(e,t,n){return Ct((function(e,t){return xe(e,t)}),Ot,e,t,n)},Dt=function(e,t,n){if(!(o(n)||s(n)||d(n)))throw new Error("Attribute value was not simple");e.setAttribute(t,n+"")},kt=function(e,t,n){Dt(e.dom,t,n)},At=function(e,t){var n=e.dom;Ie(t,(function(e,t){Dt(n,t,e)}))},Mt=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},It=function(e,t){return T.from(Mt(e,t))},Pt=function(e,t){e.dom.removeAttribute(t)},Rt=function(e){return F(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},Lt=function(e,t,n){return void 0===n&&(n=h),e.exists((function(e){return n(e,t)}))},Nt=function(e){for(var t=[],n=function(e){t.push(e)},o=0;o<e.length;o++)e[o].each(n);return t},Ft=function(e,t,n){return e.isSome()&&t.isSome()?T.some(n(e.getOrDie(),t.getOrDie())):T.none()},jt=function(e,t){return e?T.some(t):T.none()},Bt=function(e){return void 0!==e.style&&u(e.style.getPropertyValue)},$t=function(e,t,n){if(!o(n))throw new Error("CSS value must be a string: "+n);Bt(e)&&e.style.setProperty(t,n)},zt=function(e,t,n){var o=e.dom;$t(o,t,n)},Ut=function(e,t){var n=e.dom;Ie(t,(function(e,t){$t(n,t,e)}))},Vt=function(e,t){var n=e.dom,o=window.getComputedStyle(n).getPropertyValue(t);return""!==o||gt(e)?o:Ht(n,t)},Ht=function(e,t){return Bt(e)?e.style.getPropertyValue(t):""},Wt=function(e,t){var n=e.dom,o=Ht(n,t);return T.from(o).filter((function(e){return e.length>0}))},Yt=function(e,t){!function(e,t){Bt(e)&&e.style.removeProperty(t)}(e.dom,t),Lt(It(e,"style").map(ae),"")&&Pt(e,"style")},qt=function(e,t,n){return void 0===n&&(n=0),It(e,t).map((function(e){return parseInt(e,10)})).getOr(n)},Gt=function(e,t){return qt(e,t,1)},Kt=function(e){return tt("col")(e)?qt(e,"span",1)>1:Gt(e,"colspan")>1},Xt=function(e){return Gt(e,"rowspan")>1},Jt=function(e,t){return parseInt(Vt(e,t),10)},Qt=p(10),Zt=p(10),en=function(e,t){return tn(e,t,w)},tn=function(e,t,n){return z(lt(e),(function(e){return xe(e,t)?n(e)?[e]:[]:tn(e,t,n)}))},nn=function(e,t){return function(e,t,n){return void 0===n&&(n=_),n(t)?T.none():k(e,qe(t))?T.some(t):Ot(t,e.join(","),(function(e){return xe(e,"table")||n(e)}))}(["td","th"],e,t)},on=function(e){return en(e,"th,td")},rn=function(e){return xe(e,"colgroup")?_t(e,"col"):z(ln(e),(function(e){return _t(e,"col")}))},an=function(e,t){return St(e,"table",t)},sn=function(e){return en(e,"tr")},ln=function(e){return an(e).fold(p([]),(function(e){return _t(e,"colgroup")}))},cn=function(e,t){return I(e,(function(e){if("colgroup"===qe(e)){var n=I(rn(e),(function(e){var t=qt(e,"span",1);return Ve(e,1,t)}));return He(e,n,"colgroup")}return n=I(on(e),(function(e){var t=qt(e,"rowspan",1),n=qt(e,"colspan",1);return Ve(e,t,n)})),He(e,n,t(e))}))},un=function(e){return rt(e).map((function(e){var t=qe(e);return function(e){return k(Ue,e)}(t)?t:"tbody"})).getOr("tbody")},dn=function(e){var t=sn(e),n=X(X([],ln(e),!0),t,!0);return cn(n,un)},fn=function(e,t,n){var o=e.cells,r=o.slice(0,t),i=o.slice(t),a=r.concat(n).concat(i);return hn(e,a)},pn=function(e,t,n){return fn(e,t,[n])},mn=function(e,t,n){e.cells[t]=n},hn=function(e,t){return Ye(e.element,t,e.section,e.isNew)},gn=function(e,t){return e.cells[t]},vn=function(e,t){return gn(e,t).element},bn=function(e){return e.cells.length},yn=function(e){var t=R(e,(function(e){return"colgroup"===e.section}));return{rows:t.fail,cols:t.pass}},_n=function(e,t,n){var o=I(e.cells,n);return Ye(t(e.element),o,e.section,!0)},wn="data-snooker-locked-cols",Cn=function(e){return It(e,wn).bind((function(e){return T.from(e.match(/\d+/g))})).map((function(e){return V(e,w)}))},xn=function(e){var t=F(yn(e).rows,(function(e,t){return P(t.cells,(function(t,n){t.isLocked&&(e[n]=!0)})),e}),{});return function(e,t){var n=E.call(e,0);return n.sort(t),n}(Ne(t,(function(e,t){return parseInt(t,10)})))},On=function(e,t){return e+","+t},Tn=function(e,t){var n=z(e.all,(function(e){return e.cells}));return L(n,t)},En=function(e){var t={},n=[],o=Y(e).map((function(e){return e.element})).bind(an).bind(Cn).getOr({}),r=0,i=0,a=0,s=R(e,(function(e){return"colgroup"===e.section})),l=s.pass,c=s.fail;P(c,(function(e){var s=[];P(e.cells,(function(e){for(var n=0;void 0!==t[On(a,n)];)n++;for(var r=ze(o,n.toString()),l=function(e,t,n,o,r,i){return{element:e,rowspan:t,colspan:n,row:o,column:r,isLocked:i}}(e.element,e.rowspan,e.colspan,a,n,r),c=0;c<e.colspan;c++)for(var u=0;u<e.rowspan;u++){var d=n+c,f=On(a+u,d);t[f]=l,i=Math.max(i,d+1)}s.push(l)})),r++,n.push(He(e.element,s,e.section)),a++}));var u=q(l).map((function(e){var t=function(e){var t={},n=0;return P(e.cells,(function(e){var o=e.colspan;M(o,(function(r){var i=n+r;t[i]=function(e,t,n){return{element:e,colspan:t,column:n}}(e.element,o,i)})),n+=o})),t}(e);return{colgroups:[function(e,t){return{element:e,columns:t}}(e.element,Fe(t))],columns:t}})).getOrThunk((function(){return{colgroups:[],columns:{}}})),d=u.columns,f=u.colgroups;return{grid:function(e,t){return{rows:e,columns:t}}(r,i),access:t,all:n,columns:d,colgroups:f}},Sn={fromTable:function(e){var t=dn(e);return En(t)},generate:En,getAt:function(e,t,n){return T.from(e.access[On(t,n)])},findItem:function(e,t,n){var o=Tn(e,(function(e){return n(t,e.element)}));return o.length>0?T.some(o[0]):T.none()},filterItems:Tn,justCells:function(e){return z(e.all,(function(e){return e.cells}))},justColumns:function(e){return Fe(e.columns)},hasColumns:function(e){return Ae(e.columns).length>0},getColumnAt:function(e,t){return T.from(e.columns[t])}},Dn=function(e,t){var n=t.column,o=t.column+t.colspan-1,r=t.row,i=t.row+t.rowspan-1;return n<=e.finishCol&&o>=e.startCol&&r<=e.finishRow&&i>=e.startRow},kn=function(e,t){return t.column>=e.startCol&&t.column+t.colspan-1<=e.finishCol&&t.row>=e.startRow&&t.row+t.rowspan-1<=e.finishRow},An=function(e,t,n){var o=Sn.findItem(e,t,Ee),r=Sn.findItem(e,n,Ee);return o.bind((function(e){return r.map((function(t){return n=e,o=t,r=Math.min(n.row,o.row),i=Math.min(n.column,o.column),a=Math.max(n.row+n.rowspan-1,o.row+o.rowspan-1),s=Math.max(n.column+n.colspan-1,o.column+o.colspan-1),{startRow:r,startCol:i,finishRow:a,finishCol:s};var n,o,r,i,a,s}))}))},Mn=function(e,t,n){return An(e,t,n).bind((function(t){return function(e,t){for(var n=!0,o=g(kn,t),r=t.startRow;r<=t.finishRow;r++)for(var i=t.startCol;i<=t.finishCol;i++)n=n&&Sn.getAt(e,r,i).exists(o);return n?T.some(t):T.none()}(e,t)}))},In=function(e,t,n){return An(e,t,n).map((function(t){var n=Sn.filterItems(e,g(Dn,t));return I(n,(function(e){return e.element}))}))},Pn=function(e,t){return Sn.findItem(e,t,(function(e,t){return De(t,e)})).map((function(e){return e.element}))},Rn=function(e,t,n){return an(e).bind((function(o){return function(e,t,n,o){return Sn.findItem(e,t,Ee).bind((function(t){var r=n>0?t.row+t.rowspan-1:t.row,i=o>0?t.column+t.colspan-1:t.column;return Sn.getAt(e,r+n,i+o).map((function(e){return e.element}))}))}(Fn(o),e,t,n)}))},Ln=function(e,t,n){var o=Fn(e);return In(o,t,n)},Nn=function(e,t,n,o,r){var i=Fn(e),a=Ee(e,n)?T.some(t):Pn(i,t),s=Ee(e,r)?T.some(o):Pn(i,o);return a.bind((function(e){return s.bind((function(t){return In(i,e,t)}))}))},Fn=Sn.fromTable,jn=function(e,t){rt(e).each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},Bn=function(e,t){st(e).fold((function(){rt(e).each((function(e){zn(e,t)}))}),(function(e){jn(e,t)}))},$n=function(e,t){(function(e){return ct(e,0)})(e).fold((function(){zn(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},zn=function(e,t){e.dom.appendChild(t.dom)},Un=function(e,t){jn(e,t),zn(t,e)},Vn=function(e,t){P(t,(function(n,o){var r=0===o?e:t[o-1];Bn(r,n)}))},Hn=function(e,t){P(t,(function(t){zn(e,t)}))},Wn=function(e){e.dom.textContent="",P(lt(e),(function(e){Yn(e)}))},Yn=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},qn=function(e){var t,n=lt(e);n.length>0&&(t=e,P(n,(function(e){jn(t,e)}))),Yn(e)},Gn=function(e,t){var n=function(t){return e(t)?T.from(t.dom.nodeValue):T.none()};return{get:function(o){if(!e(o))throw new Error("Can only get "+t+" value of a "+t+" node");return n(o).getOr("")},getOption:n,set:function(n,o){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=o}}}(Qe,"text"),Kn=function(e){return Gn.get(e)},Xn=function(e){return Gn.getOption(e)},Jn=function(e,t){return Gn.set(e,t)},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:p({selector:Ot,closest:St,predicate:xt,all:it}),down:p({selector:wt,predicate:bt}),styles:p({get:Vt,getRaw:Wt,set:zt,remove:Yt}),attrs:p({get:Mt,set:kt,remove:Pt,copyTo:function(e,t){var n=Rt(e);At(t,n)}}),insert:p({before:jn,after:Bn,afterAll:Vn,append:zn,appendAll:Hn,prepend:$n,wrap:Un}),remove:p({unwrap:qn,remove:Yn}),create:p({nu:Ce.fromTag,clone:function(e){return Ce.fromDom(e.dom.cloneNode(!1))},text:Ce.fromText}),query:p({comparePosition:function(e,t){return e.dom.compareDocumentPosition(t.dom)},prevSibling:at,nextSibling:st}),property:p({children:lt,name:qe,parent:rt,document:function(e){return ot(e).dom},isText:Qe,isComment:Xe,isElement:Je,isSpecial:function(e){var t=qe(e);return k(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},getLanguage:function(e){return Je(e)?It(e,"lang"):T.none()},getText:Kn,setText:Jn,isBoundary:function(e){return!!Je(e)&&("body"===qe(e)||k(Qn,qe(e)))},isEmptyTag:function(e){return!!Je(e)&&k(["br","img","hr","input"],qe(e))},isNonEditable:function(e){return Je(e)&&"false"===Mt(e,"contenteditable")}}),eq:Ee,is:ke}}var eo,to,no=function(e,t,n,o){var r=t(e,n);return N(o,(function(n,o){var r=t(e,o);return oo(e,n,r)}),r)},oo=function(e,t,n){return t.bind((function(t){return n.filter(g(e.eq,t))}))},ro=function(e,t,n){return n.length>0?function(e,t,n,o){return o(e,t,n[0],n.slice(1))}(e,t,n,no):T.none()},io=function(e,t,n,o){void 0===o&&(o=_);var r=[t].concat(e.up().all(t)),i=[n].concat(e.up().all(n)),a=function(e){return B(e,o).fold((function(){return e}),(function(t){return e.slice(0,t+1)}))},s=a(r),l=a(i),c=j(s,(function(t){return A(l,function(e,t){return g(e.eq,t)}(e,t))}));return{firstpath:s,secondpath:l,shared:c}},ao=Zn(),so=function(e,t){return ro(ao,(function(t,n){return e(n)}),t)},lo=function(e){return Ot(e,"table")},co=function(e,t,n){var o=function(e){return function(t){return void 0!==n&&n(t)||Ee(t,e)}};return Ee(e,t)?T.some({boxes:T.some([e]),start:e,finish:t}):lo(e).bind((function(r){return lo(t).bind((function(i){if(Ee(r,i))return T.some({boxes:Ln(r,e,t),start:e,finish:t});if(De(r,i)){var a=(s=yt(t,"td,th",o(r))).length>0?s[s.length-1]:t;return T.some({boxes:Nn(r,e,r,t,i),start:e,finish:a})}if(De(i,r)){var s,l=(s=yt(e,"td,th",o(i))).length>0?s[s.length-1]:e;return T.some({boxes:Nn(i,e,r,t,i),start:e,finish:l})}return function(e,t,n){return io(ao,e,t,n)}(e,t).shared.bind((function(a){return St(a,"table",n).bind((function(n){var a=yt(t,"td,th",o(n)),s=a.length>0?a[a.length-1]:t,l=yt(e,"td,th",o(n)),c=l.length>0?l[l.length-1]:e;return T.some({boxes:Nn(n,e,r,t,i),start:c,finish:s})}))}))}))}))},uo=function(e,t){var n=wt(e,t);return n.length>0?T.some(n):T.none()},fo=function(e,t,n){return Et(e,t).bind((function(t){return Et(e,n).bind((function(e){return so(lo,[t,e]).map((function(n){return{first:t,last:e,table:n}}))}))}))},po=function(e,t,n,o,r){return function(e,t){return j(e,(function(e){return xe(e,t)}))}(e,r).bind((function(e){return Rn(e,t,n).bind((function(e){return function(e,t){return Ot(e,"table").bind((function(n){return Et(n,t).bind((function(t){return co(t,e).bind((function(e){return e.boxes.map((function(t){return{boxes:t,start:e.start,finish:e.finish}}))}))}))}))}(e,o)}))}))},mo=function(e,t){return uo(e,t)},ho=function(e,t,n){return fo(e,t,n).bind((function(t){var n=function(t){return Ee(e,t)},o=Ot(t.first,"thead,tfoot,tbody,table",n),r=Ot(t.last,"thead,tfoot,tbody,table",n);return o.bind((function(e){return r.bind((function(n){return Ee(e,n)?function(e,t,n){var o=Fn(e);return Mn(o,t,n)}(t.table,t.first,t.last):T.none()}))}))}))},go=function(e){if(!i(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return P(e,(function(o,r){var a=Ae(o);if(1!==a.length)throw new Error("one and only one name per case");var s=a[0],l=o[s];if(void 0!==n[s])throw new Error("duplicate key detected:"+s);if("cata"===s)throw new Error("cannot have a case named cata (sorry)");if(!i(l))throw new Error("case arguments must be an array");t.push(s),n[s]=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n.length;if(i!==l.length)throw new Error("Wrong number of arguments to case "+s+". Expected "+l.length+" ("+l+"), got "+i);var a=function(e){var o=Ae(e);if(t.length!==o.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+o.join(","));if(!U(t,(function(e){return k(o,e)})))throw new Error("Not all branches were specified when using match. Specified: "+o.join(", ")+"\nRequired: "+t.join(", "));return e[s].apply(null,n)};return{fold:function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var i=t[r];return i.apply(null,n)},match:a,log:function(e){}}}})),n},vo=go([{none:[]},{multiple:["elements"]},{single:["element"]}]),bo=function(e,t,n,o){return e.fold(t,n,o)},yo=vo.none,_o=vo.multiple,wo=vo.single,Co=tinymce.util.Tools.resolve("tinymce.PluginManager"),xo=function(e,t){return Ce.fromDom(e.dom.cloneNode(t))},Oo=function(e){return xo(e,!1)},To=function(e){return xo(e,!0)},Eo=function(e,t){var n=Ce.fromTag(t),o=Rt(e);return At(n,o),n},So=function(e,t){var n=function(n){var o=t(n);if(o<=0||null===o){var r=Vt(n,e);return parseFloat(r)||0}return o},o=function(e,t){return F(t,(function(t,n){var o=Vt(e,n),r=void 0===o?0:parseInt(o,10);return isNaN(r)?t:t+r}),0)};return{set:function(t,n){if(!d(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var o=t.dom;Bt(o)&&(o.style[e]=n+"px")},get:n,getOuter:n,aggregate:o,max:function(e,t,n){var r=o(e,n);return t>r?t-r:0}}},Do=function(){var e=_e().browser;return e.isIE()||e.isEdge()},ko=function(e,t){return function(e){var t=parseFloat(e);return isNaN(t)?T.none():T.some(t)}(e).getOr(t)},Ao=function(e,t,n){return ko(Vt(e,t),n)},Mo=function(e){return Vt(e,"box-sizing")},Io=function(e,t,n,o){return t-Ao(e,"padding-"+n,0)-Ao(e,"padding-"+o,0)-Ao(e,"border-"+n+"-width",0)-Ao(e,"border-"+o+"-width",0)},Po=function(e,t){var n=e.dom,o=n.getBoundingClientRect().width||n.offsetWidth;return"border-box"===t?o:Io(e,o,"left","right")},Ro=So("width",(function(e){return e.dom.offsetWidth})),Lo=function(e){return Ro.get(e)},No=function(e){return Ro.getOuter(e)},Fo=function(e){return Po(e,"content-box")},jo=function(e){return Do()?Po(e,Mo(e)):Ao(e,"width",e.dom.offsetWidth)},Bo=function(e,t){void 0===t&&(t=w);var n=e.grid,o=M(n.columns,m),r=M(n.rows,m);return I(o,(function(n){return $o((function(){return z(r,(function(t){return Sn.getAt(e,t,n).filter((function(e){return e.column===n})).toArray()}))}),(function(e){return 1===e.colspan&&t(e.element)}),(function(){return Sn.getAt(e,0,n)}))}))},$o=function(e,t,n){var o=e();return j(o,t).orThunk((function(){return T.from(o[0]).orThunk(n)})).map((function(e){return e.element}))},zo=function(e){var t=e.grid,n=M(t.rows,m),o=M(t.columns,m);return I(n,(function(t){return $o((function(){return z(o,(function(n){return Sn.getAt(e,t,n).filter((function(e){return e.row===t})).fold(p([]),(function(e){return[e]}))}))}),(function(e){return 1===e.rowspan}),(function(){return Sn.getAt(e,t,0)}))}))},Uo=function(e,t){if(t<0||t>=e.length-1)return T.none();var n=e[t].fold((function(){var n=function(e){var t=E.call(e,0);return t.reverse(),t}(e.slice(0,t));return G(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return T.some({value:e,delta:0})})),o=e[t+1].fold((function(){var n=e.slice(t+1);return G(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return T.some({value:e,delta:1})}));return n.bind((function(e){return o.map((function(t){var n=t.delta+e.delta;return Math.abs(t.value-e.value)/n}))}))},Vo=function(e,t){return function(n){return"rtl"===Ho(n)?t:e}},Ho=function(e){return"rtl"===Vt(e,"direction")?"rtl":"ltr"},Wo=So("height",(function(e){var t=e.dom;return gt(e)?t.getBoundingClientRect().height:t.offsetHeight})),Yo=function(e){return Wo.get(e)},qo=function(e){return Wo.getOuter(e)},Go=function(e){return Do()?function(e,t){var n=e.dom,o=n.getBoundingClientRect().height||n.offsetHeight;return"border-box"===t?o:Io(e,o,"top","bottom")}(e,Mo(e)):Ao(e,"height",e.dom.offsetHeight)},Ko=function(e,t){return{left:e,top:t,translate:function(n,o){return Ko(e+n,t+o)}}},Xo=Ko,Jo=function(e,t){return void 0!==e?e:void 0!==t?t:0},Qo=function(e){var t=e.dom.ownerDocument,n=t.body,o=t.defaultView,r=t.documentElement;if(n===e.dom)return Xo(n.offsetLeft,n.offsetTop);var i=Jo(null==o?void 0:o.pageYOffset,r.scrollTop),a=Jo(null==o?void 0:o.pageXOffset,r.scrollLeft),s=Jo(r.clientTop,n.clientTop),l=Jo(r.clientLeft,n.clientLeft);return Zo(e).translate(a-l,i-s)},Zo=function(e){var t=e.dom,n=t.ownerDocument.body;return n===t?Xo(n.offsetLeft,n.offsetTop):gt(e)?function(e){var t=e.getBoundingClientRect();return Xo(t.left,t.top)}(t):Xo(0,0)},er=function(e,t){return{row:e,y:t}},tr=function(e,t){return{col:e,x:t}},nr=function(e){return Qo(e).left+No(e)},or=function(e){return Qo(e).left},rr=function(e,t){return tr(e,or(t))},ir=function(e,t){return tr(e,nr(t))},ar=function(e){return Qo(e).top},sr=function(e,t){return er(e,ar(t))},lr=function(e,t){return er(e,ar(t)+qo(t))},cr=function(e,t,n){if(0===n.length)return[];var o=I(n.slice(1),(function(t,n){return t.map((function(t){return e(n,t)}))})),r=n[n.length-1].map((function(e){return t(n.length-1,e)}));return o.concat([r])},ur={delta:m,positions:function(e){return cr(sr,lr,e)},edge:ar},dr={delta:m,edge:or,positions:function(e){return cr(rr,ir,e)}},fr={delta:function(e){return-e},edge:nr,positions:function(e){return cr(ir,rr,e)}},pr=Vo(dr,fr),mr={delta:function(e,t){return pr(t).delta(e,t)},positions:function(e,t){return pr(t).positions(e,t)},edge:function(e){return pr(e).edge(e)}},hr={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:[""]},gr=(eo=function(e){return"(?:"+e+")?"},to=["Infinity","[0-9]+\\."+eo("[0-9]+")+eo("[eE][+-]?[0-9]+"),"\\.[0-9]+"+eo("[eE][+-]?[0-9]+"),"[0-9]+"+eo("[eE][+-]?[0-9]+")].join("|"),new RegExp("^([+-]?(?:"+to+"))(.*)$")),vr=function(e,t){return T.from(gr.exec(e)).bind((function(e){var n=Number(e[1]),o=e[2];return function(e,t){return A(t,(function(t){return A(hr[t],(function(t){return e===t}))}))}(o,t)?T.some({value:n,unit:o}):T.none()}))},br=/(\d+(\.\d+)?)%/,yr=/(\d+(\.\d+)?)px|em/,_r=tt("col"),wr=function(e,t,n){var o,r=(o=e,T.from(o.dom.parentElement).map(Ce.fromDom)).getOrThunk((function(){return vt(nt(e))}));return t(e)/n(r)*100},Cr=function(e,t){zt(e,"width",t+"px")},xr=function(e,t){zt(e,"width",t+"%")},Or=function(e,t){zt(e,"height",t+"px")},Tr=function(e,t,n,o){var r=parseFloat(e);return ie(e,"%")&&"table"!==qe(t)?function(e,t,n,o){var r=an(e).map((function(e){var o=n(e);return Math.floor(t/100*o)})).getOr(t);return o(e,r),r}(t,r,n,o):r},Er=function(e){var t=function(e){return Go(e)+"px"}(e);return t?Tr(t,e,Yo,Or):Yo(e)},Sr=function(e,t){return Wt(e,t).orThunk((function(){return It(e,t).map((function(e){return e+"px"}))}))},Dr=function(e){return Sr(e,"width")},kr=function(e){return wr(e,Lo,Fo)},Ar=function(e){return _r(e)?Lo(e):jo(e)},Mr=function(e){return function(e,t,n){return n(e)/Gt(e,t)}(e,"rowspan",Er)},Ir=function(e,t,n){zt(e,"width",t+n)},Pr=function(e){return wr(e,Lo,Fo)+"%"},Rr=p(br),Lr=tt("col"),Nr=function(e){return Dr(e).getOrThunk((function(){return Ar(e)+"px"}))},Fr=function(e){return(t=e,Sr(t,"height")).getOrThunk((function(){return Mr(e)+"px"}));var t},jr=function(e,t,n,o,r,i){return e.filter(o).fold((function(){return i(Uo(n,t))}),(function(e){return r(e)}))},Br=function(e,t,n,o){var r=Bo(e),i=Sn.hasColumns(e)?function(e){return I(Sn.justColumns(e),(function(e){return T.from(e.element)}))}(e):r,a=[T.some(mr.edge(t))].concat(I(mr.positions(r,t),(function(e){return e.map((function(e){return e.x}))}))),s=y(Kt);return I(i,(function(e,t){return jr(e,t,a,s,(function(e){if(function(e){var t=_e().browser,n=t.isChrome()||t.isFirefox();return!Lr(e)||n}(e))return n(e);var i,l,c=(i=r[t],l=m,null!=i?l(i):T.none());return jr(c,t,a,s,(function(e){return o(T.some(Lo(e)))}),o)}),o)}))},$r=function(e){return e.map((function(e){return e+"px"})).getOr("")},zr=function(e,t,n){return Br(e,t,Ar,(function(e){return e.getOrThunk(n.minCellWidth)}))},Ur=function(e,t,n,o,r){var i=zo(e),a=[T.some(n.edge(t))].concat(I(n.positions(i,t),(function(e){return e.map((function(e){return e.y}))})));return I(i,(function(e,t){return jr(e,t,a,y(Xt),o,r)}))},Vr=function(e,t){return function(){return gt(e)?t(e):parseFloat(Wt(e,"width").getOr("0"))}},Hr=function(e){var t=Vr(e,Lo),n=p(0);return{width:t,pixelWidth:t,getWidths:function(t,n){return zr(t,e,n)},getCellDelta:n,singleColumnWidth:p([0]),minCellWidth:n,setElementWidth:f,adjustTableWidth:f,isRelative:!0,label:"none"}},Wr=function(e){var t=Vr(e,(function(e){return parseFloat(Pr(e))})),n=Vr(e,Lo);return{width:t,pixelWidth:n,getWidths:function(t,n){return function(e,t,n){return Br(e,t,kr,(function(e){return e.fold((function(){return n.minCellWidth()}),(function(e){return e/n.pixelWidth()*100}))}))}(t,e,n)},getCellDelta:function(e){return e/n()*100},singleColumnWidth:function(e,t){return[100-e]},minCellWidth:function(){return Qt()/n()*100},setElementWidth:xr,adjustTableWidth:function(n){var o=t();xr(e,o+n/100*o)},isRelative:!0,label:"percent"}},Yr=function(e){var t=Vr(e,Lo);return{width:t,pixelWidth:t,getWidths:function(t,n){return zr(t,e,n)},getCellDelta:m,singleColumnWidth:function(e,t){return[Math.max(Qt(),e+t)-e]},minCellWidth:Qt,setElementWidth:Cr,adjustTableWidth:function(n){var o=t()+n;Cr(e,o)},isRelative:!1,label:"pixel"}},qr=function(e){return Dr(e).fold((function(){return Hr(e)}),(function(t){return function(e,t){return null!==Rr().exec(t)?Wr(e):Yr(e)}(e,t)}))},Gr=Yr,Kr=Wr,Xr=function(e,t,n){var o=e[n].element,r=Ce.fromTag("td");zn(r,Ce.fromTag("br")),(t?zn:$n)(o,r)},Jr=function(e,t){var n=function(e){return xe(e.element,t)},o=To(e),r=dn(o),i=qr(e),a=Sn.generate(r),s=function(e,t){var n=e.grid.columns,o=e.grid.rows,r=n,i=0,a=0,s=[],l=[];return Ie(e.access,(function(e){if(s.push(e),t(e)){l.push(e);var n=e.row,c=n+e.rowspan-1,u=e.column,d=u+e.colspan-1;n<o?o=n:c>i&&(i=c),u<r?r=u:d>a&&(a=d)}})),function(e,t,n,o,r,i){return{minRow:e,minCol:t,maxRow:n,maxCol:o,allCells:r,selectedCells:i}}(o,r,i,a,s,l)}(a,n),l="th:not("+t+"),td:not("+t+")",c=tn(o,"th,td",(function(e){return xe(e,l)}));return P(c,Yn),function(e,t,n,o){for(var r=t.grid.columns,i=t.grid.rows,a=0;a<i;a++)for(var s=!1,l=0;l<r;l++)a<n.minRow||a>n.maxRow||l<n.minCol||l>n.maxCol||(Sn.getAt(t,a,l).filter(o).isNone()?Xr(e,s,a):s=!0)}(r,a,s,n),function(e,t,n,o){Ie(n.columns,(function(e){(e.column<t.minCol||e.column>t.maxCol)&&Yn(e.element)}));var r=L(en(e,"tr"),(function(e){return 0===e.dom.childElementCount}));P(r,Yn),t.minCol!==t.maxCol&&t.minRow!==t.maxRow||P(en(e,"th,td"),(function(e){Pt(e,"rowspan"),Pt(e,"colspan")})),Pt(e,wn),Pt(e,"data-snooker-col-series"),qr(e).adjustTableWidth(o)}(o,s,a,function(e,t,n,o){if(0===o.minCol&&t.grid.columns===o.maxCol+1)return 0;var r=zr(t,e,n),i=F(r,(function(e,t){return e+t}),0),a=F(r.slice(o.minCol,o.maxCol+1),(function(e,t){return e+t}),0)/i*n.pixelWidth()-n.pixelWidth();return n.getCellDelta(a)}(e,Sn.fromTable(e),i,s)),o},Qr=function(e){return"img"===qe(e)?1:Xn(e).fold((function(){return lt(e).length}),(function(e){return e.length}))},Zr=["img","br"],ei=function(e){return Xn(e).filter((function(e){return 0!==e.trim().length||e.indexOf(" ")>-1})).isSome()||k(Zr,qe(e))},ti=function(e){return t=ei,(n=function(e){for(var o=0;o<e.childNodes.length;o++){var r=Ce.fromDom(e.childNodes[o]);if(t(r))return T.some(r);var i=n(e.childNodes[o]);if(i.isSome())return i}return T.none()})(e.dom);var t,n},ni=function(e){return oi(e,ei)},oi=function(e,t){var n=function(e){for(var o=lt(e),r=o.length-1;r>=0;r--){var i=o[r];if(t(i))return T.some(i);var a=n(i);if(a.isSome())return a}return T.none()};return n(e)},ri={scope:["row","col"]},ii=function(e){return function(){var t=Ce.fromTag("td",e.dom);return zn(t,Ce.fromTag("br",e.dom)),t}},ai=function(e){return function(){return Ce.fromTag("col",e.dom)}},si=function(e){return function(){return Ce.fromTag("colgroup",e.dom)}},li=function(e){return function(){return Ce.fromTag("tr",e.dom)}},ci=function(e,t,n){var o=function(e,t){var n=Eo(e,t),o=lt(To(e));return Hn(n,o),n}(e,t);return Ie(n,(function(e,t){null===e?Pt(o,t):kt(o,t,e)})),o},ui=function(e){return e},di=function(e,t,n){var o=function(e,t){var n,o,r,i;n=e.element,o=t,r=n.dom,i=o.dom,Bt(r)&&Bt(i)&&(i.style.cssText=r.style.cssText),Yt(t,"height"),1!==e.colspan&&Yt(t,"width")};return{col:function(n){var r=Ce.fromTag(qe(n.element),t.dom);return o(n,r),e(n.element,r),r},colgroup:si(t),row:li(t),cell:function(r){var i=Ce.fromTag(qe(r.element),t.dom),a=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),s=a.length>0?function(e,t,n){return ti(e).map((function(o){var r=n.join(","),i=yt(o,r,(function(t){return Ee(t,e)}));return N(i,(function(e,t){var n=Oo(t);return Pt(n,"contenteditable"),zn(e,n),n}),t)})).getOr(t)}(r.element,i,a):i;return zn(s,Ce.fromTag("br")),o(r,i),function(e,t){Ie(ri,(function(n,o){return It(e,o).filter((function(e){return k(n,e)})).each((function(e){return kt(t,o,e)}))}))}(r.element,i),e(r.element,i),i},replace:ci,colGap:ai(t),gap:ii(t)}},fi=function(e){return{col:ai(e),colgroup:si(e),row:li(e),cell:ii(e),replace:ui,colGap:ai(e),gap:ii(e)}},pi=function(e){return I(e,Ce.fromDom)},mi=function(e){return Ce.fromDom(e.getBody())},hi=function(e){return e.getBoundingClientRect().width},gi=function(e){return e.getBoundingClientRect().height},vi=function(e){return function(t){return Ee(t,mi(e))}},bi=function(e){return/^\d+(\.\d+)?$/.test(e)?e+"px":e},yi=function(e){Pt(e,"data-mce-style");var t=function(e){return Pt(e,"data-mce-style")};P(on(e),t),P(rn(e),t),P(sn(e),t)},_i=function(e){return Ce.fromDom(e.selection.getStart())},wi=function(e){return bo(e.get(),p([]),m,H)},Ci=function(e){var t=function(e,t){return It(e,t).exists((function(e){return parseInt(e,10)>1}))},n=wi(e);return n.length>0&&U(n,(function(e){return t(e,"rowspan")||t(e,"colspan")}))?T.some(n):T.none()},xi=function(e,t,n){return bo(t.get(),T.none,(function(t){return t.length<=1?T.none():ho(e,n.firstSelectedSelector,n.lastSelectedSelector).map((function(e){return{bounds:e,cells:t}}))}),T.none)},Oi={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]"},Ti=function(e,t,n){return{element:n,mergable:xi(t,e,Oi),unmergable:Ci(e),selection:wi(e)}},Ei=function(e){return function(t,n){var o,r=qe(t),i="col"===r||"colgroup"===r?an(o=t).bind((function(e){return mo(e,Oi.firstSelectedSelector)})).fold(p(o),(function(e){return e[0]})):t;return St(i,e,n)}},Si=Ei("th,td,caption"),Di=Ei("th,td"),ki=function(e){return wi(e)},Ai=function(e,t,n){e.on("BeforeGetContent",(function(n){!0===n.selection&&bo(t.get(),f,(function(t){n.preventDefault(),function(e){return an(e[0]).map((function(e){var t=Jr(e,"[data-mce-selected]");return yi(t),[t]}))}(t).each((function(t){n.content="text"===n.format?function(e){return I(e,(function(e){return e.dom.innerText})).join("")}(t):function(e,t){return I(t,(function(t){return e.selection.serializer.serialize(t.dom,{})})).join("")}(e,t)}))}),f)})),e.on("BeforeSetContent",(function(o){if(!0===o.selection&&!0===o.paste){var r=ki(t);Y(r).each((function(t){an(t).each((function(r){var i,a,s,l=L((i=o.content,(s=(a||document).createElement("div")).innerHTML=i,lt(Ce.fromDom(s))),(function(e){return"meta"!==qe(e)})),c=tt("table");if(1===l.length&&c(l[0])){o.preventDefault();var u=Ce.fromDom(e.getDoc()),d=fi(u),f=function(e,t,n){return{element:e,clipboard:t,generators:n}}(t,l[0],d);n.pasteCells(r,f).each((function(){e.focus()}))}}))}))}}))},Mi=go([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Ii=K({},Mi),Pi=function(e,t,n,o,r){var i=e.slice(0),a=function(e,t){return 0===e.length?Ii.none():1===e.length?Ii.only(0):0===t?Ii.left(0,1):t===e.length-1?Ii.right(t-1,t):t>0&&t<e.length-1?Ii.middle(t-1,t,t+1):Ii.none()}(e,t),s=p(I(i,p(0)));return a.fold(s,(function(e){return o.singleColumnWidth(i[e],n)}),(function(e,t){return r.calcLeftEdgeDeltas(i,e,t,n,o.minCellWidth(),o.isRelative)}),(function(e,t,a){return r.calcMiddleDeltas(i,e,t,a,n,o.minCellWidth(),o.isRelative)}),(function(e,t){return r.calcRightEdgeDeltas(i,e,t,n,o.minCellWidth(),o.isRelative)}))},Ri=function(e,t,n){for(var o=0,r=e;r<t;r++)o+=void 0!==n[r]?n[r]:0;return o},Li=function(e,t){var n=Sn.justCells(e);return I(n,(function(e){var n=Ri(e.row,e.row+e.rowspan,t);return{element:e.element,height:n,rowspan:e.rowspan}}))},Ni=function(e,t){return Sn.hasColumns(e)?function(e,t){var n=Sn.justColumns(e);return I(n,(function(e,n){return{element:e.element,width:t[n],colspan:e.colspan}}))}(e,t):function(e,t){var n=Sn.justCells(e);return I(n,(function(e){var n=Ri(e.column,e.column+e.colspan,t);return{element:e.element,width:n,colspan:e.colspan}}))}(e,t)},Fi=function(e,t,n){var o=Ni(e,t);P(o,(function(e){n.setElementWidth(e.element,e.width)}))},ji=function(e,t,n,o,r){var i=Sn.fromTable(e),a=r.getCellDelta(t),s=r.getWidths(i,r),l=n===i.grid.columns-1,c=o.clampTableDelta(s,n,a,r.minCellWidth(),l),u=Pi(s,n,c,r,o),d=I(u,(function(e,t){return e+s[t]}));Fi(i,d,r),o.resizeTable(r.adjustTableWidth,c,l)},Bi=function(e,t,n,o){var r=Sn.fromTable(e),i=function(e,t,n){return Ur(e,t,n,Mr,(function(e){return e.getOrThunk(Zt)}))}(r,e,o),a=I(i,(function(e,o){return n===o?Math.max(t+e,Zt()):e})),s=Li(r,a),l=function(e,t){return I(e.all,(function(e,n){return{element:e.element,height:t[n]}}))}(r,a);P(l,(function(e){Or(e.element,e.height)})),P(s,(function(e){Or(e.element,e.height)}));var c=N(a,(function(e,t){return e+t}),0);Or(e,c)},$i=function(e){return I(e,p(0))},zi=function(e,t,n,o,r){return r(e.slice(0,t)).concat(o).concat(r(e.slice(n)))},Ui=function(e){return function(t,n,o,r){if(e(o)){var i=Math.max(r,t[n]-Math.abs(o)),a=Math.abs(i-t[n]);return o>=0?a:-a}return o}},Vi=Ui((function(e){return e<0})),Hi=Ui(w),Wi=function(){var e=function(e,t,n,o){var r=(100+n)/100,i=Math.max(o,(e[t]+n)/r);return I(e,(function(e,n){return(n===t?i:e/r)-e}))},t=function(t,n,o,r,i,a){return a?e(t,n,r,i):function(e,t,n,o,r){var i=Vi(e,t,o,r);return zi(e,t,n+1,[i,0],$i)}(t,n,o,r,i)};return{resizeTable:function(e,t){return e(t)},clampTableDelta:Vi,calcLeftEdgeDeltas:t,calcMiddleDeltas:function(e,n,o,r,i,a,s){return t(e,o,r,i,a,s)},calcRightEdgeDeltas:function(t,n,o,r,i,a){if(a)return e(t,o,r,i);var s=Vi(t,o,r,i);return $i(t.slice(0,o)).concat([s])},calcRedestributedWidths:function(e,t,n,o){if(o){var r=(t+n)/t,i=I(e,(function(e){return e/r}));return{delta:100*r-100,newSizes:i}}return{delta:n,newSizes:e}}}},Yi=function(){var e=function(e,t,n,o,r){var i=Hi(e,o>=0?n:t,o,r);return zi(e,t,n+1,[i,-i],$i)};return{resizeTable:function(e,t,n){n&&e(t)},clampTableDelta:function(e,t,n,o,r){if(r){if(n>=0)return n;var i=F(e,(function(e,t){return e+t-o}),0);return Math.max(-i,n)}return Vi(e,t,n,o)},calcLeftEdgeDeltas:e,calcMiddleDeltas:function(t,n,o,r,i,a){return e(t,o,r,i,a)},calcRightEdgeDeltas:function(e,t,n,o,r,i){if(i)return $i(e);var a=o/e.length;return I(e,p(a))},calcRedestributedWidths:function(e,t,n,o){return{delta:0,newSizes:e}}}},qi=function(e,t){var n=T.from(e.dom.documentElement).map(Ce.fromDom).getOr(e);return{parent:p(n),view:p(e),origin:p(Xo(0,0)),isResizable:t}},Gi=function(e,t,n){return{parent:p(t),view:p(e),origin:p(Xo(0,0)),isResizable:n}},Ki=go([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),Xi=function(e,t,n){var o=n.substring(0,n.length-e.length),r=parseFloat(o);return o===r.toString()?t(r):Ki.invalid(n)},Ji=K(K({},Ki),{from:function(e){return ie(e,"%")?Xi("%",Ki.percent,e):ie(e,"px")?Xi("px",Ki.pixels,e):Ki.invalid(e)}}),Qi=function(e,t,n){return e.fold((function(){return t}),(function(e){return function(e,t,n){var o=n/t;return I(e,(function(e){return Ji.from(e).fold((function(){return e}),(function(e){return e*o+"px"}),(function(e){return e/100*n+"px"}))}))}(t,n,e)}),(function(e){return function(e,t){return I(e,(function(e){return Ji.from(e).fold((function(){return e}),(function(e){return e/t*100+"%"}),(function(e){return e+"%"}))}))}(t,n)}))},Zi=function(e,t,n){var o=Ji.from(n),r=U(e,(function(e){return"0px"===e}))?function(e,t){var n=e.fold((function(){return p("")}),(function(e){return p(e/t+"px")}),(function(){return p(100/t+"%")}));return M(t,n)}(o,e.length):Qi(o,e,t);return na(r)},ea=function(e,t){return 0===e.length?t:N(e,(function(e,t){return Ji.from(t).fold(p(0),m,m)+e}),0)},ta=function(e,t){return Ji.from(e).fold(p(e),(function(e){return e+t+"px"}),(function(e){return e+t+"%"}))},na=function(e){if(0===e.length)return e;var t=N(e,(function(e,t){var n=Ji.from(t).fold((function(){return{value:t,remainder:0}}),(function(e){return function(e,t){var n=Math.floor(e);return{value:n+t,remainder:e-n}}(e,"px")}),(function(e){return{value:e+"%",remainder:0}}));return{output:[n.value].concat(e.output),remainder:e.remainder+n.remainder}}),{output:[],remainder:0}),n=t.output;return n.slice(0,n.length-1).concat([ta(n[n.length-1],Math.round(t.remainder))])},oa=Ji.from,ra=function(e){return oa(e).fold(p("px"),p("px"),p("%"))},ia=function(e,t,n){var o=Sn.fromTable(e),r=o.all,i=Sn.justCells(o),a=Sn.justColumns(o);t.each((function(t){var n=ra(t),r=Lo(e),s=function(e,t){return Br(e,t,Nr,$r)}(o,e),l=Zi(s,r,t);Sn.hasColumns(o)?function(e,t,n){P(t,(function(t,o){var r=ea([e[o]],Qt());zt(t.element,"width",r+n)}))}(l,a,n):function(e,t,n){P(t,(function(t){var o=e.slice(t.column,t.colspan+t.column),r=ea(o,Qt());zt(t.element,"width",r+n)}))}(l,i,n),zt(e,"width",t)})),n.each((function(t){var n=ra(t),a=Yo(e),s=function(e,t,n){return Ur(e,t,n,Fr,$r)}(o,e,ur);!function(e,t,n,o){P(n,(function(t){var n=e.slice(t.row,t.rowspan+t.row),r=ea(n,Zt());zt(t.element,"height",r+o)})),P(t,(function(t,n){zt(t.element,"height",e[n])}))}(Zi(s,a,t),r,i,n),zt(e,"height",t)}))},aa=function(e){return Dr(e).exists((function(e){return br.test(e)}))},sa=function(e){return Dr(e).exists((function(e){return yr.test(e)}))},la=function(e){return Dr(e).isNone()},ca=function(e){return Sn.fromTable(e).grid},ua=function(e){var t=[];return{bind:function(e){if(void 0===e)throw new Error("Event bind error: undefined handler");t.push(e)},unbind:function(e){t=L(t,(function(t){return t!==e}))},trigger:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var r={};P(e,(function(e,t){r[e]=n[t]})),P(t,(function(e){e(r)}))}}},da=function(e){return{registry:Pe(e,(function(e){return{bind:e.bind,unbind:e.unbind}})),trigger:Pe(e,(function(e){return e.trigger}))}},fa=function(e){return e.slice(0).sort()},pa=function(e,t,n){if(0===t.length)throw new Error("You must specify at least one required field.");var r;return function(e,t){if(!i(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");P(t,(function(t){if(!o(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")}))}("required",t),r=fa(t),j(r,(function(e,t){return t<r.length-1&&e===r[t+1]})).each((function(e){throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+r.join(", ")+"].")})),function(o){var r=Ae(o);U(t,(function(e){return k(r,e)}))||function(e,t){throw new Error("All required keys ("+fa(e).join(", ")+") were not specified. Specified keys were: "+fa(t).join(", ")+".")}(t,r),e(t,r);var i=L(t,(function(e){return!n.validate(o[e],e)}));return i.length>0&&function(e,t){throw new Error("All values need to be of type: "+t+". Keys ("+fa(e).join(", ")+") were not.")}(i,n.label),o}},ma=function(e,t){var n=L(t,(function(t){return!k(e,t)}));n.length>0&&function(e){throw new Error("Unsupported keys for object: "+fa(e).join(", "))}(n)},ha=function(e){return function(e,t){return pa(e,t,{validate:u,label:"function"})}(ma,e)},ga=ha(["compare","extract","mutate","sink"]),va=ha(["element","start","stop","destroy"]),ba=ha(["forceDrop","drop","move","delayDrop"]),ya=function(){var e=T.none(),t=da({move:ua(["info"])});return{onEvent:function(n,o){o.extract(n).each((function(n){(function(t,n){var o=e.map((function(e){return t.compare(e,n)}));return e=T.some(n),o})(o,n).each((function(e){t.trigger.move(e)}))}))},reset:function(){e=T.none()},events:t.registry}},_a=function(){var e,t=(e=da({move:ua(["info"])}),{onEvent:f,reset:f,events:e.registry}),n=ya(),o=t;return{on:function(){o.reset(),o=n},off:function(){o.reset(),o=t},isOn:function(){return o===n},onEvent:function(e,t){o.onEvent(e,t)},events:n.events}},wa=function(e,t,n){var o,r,i,s,l=!1,c=da({start:ua([]),stop:ua([])}),u=_a(),d=function(){m.stop(),u.isOn()&&(u.off(),c.trigger.stop())},f=(o=d,r=200,i=null,{cancel:s=function(){a(i)||(clearTimeout(i),i=null)},throttle:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];s(),i=setTimeout((function(){i=null,o.apply(null,e)}),r)}});u.events.move.bind((function(n){t.mutate(e,n.info)}));var p=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];l&&e.apply(null,t)}},m=t.sink(ba({forceDrop:d,drop:p(d),move:p((function(e){f.cancel(),u.onEvent(e,t)})),delayDrop:p(f.throttle)}),n);return{element:m.element,go:function(e){m.start(e),u.on(),c.trigger.start()},on:function(){l=!0},off:function(){l=!1},destroy:function(){m.destroy()},events:c.registry}},Ca=function(e){var t,n,o=Ce.fromDom(function(e){if(dt()&&c(e.target)){var t=Ce.fromDom(e.target);if(Je(t)&&ht(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return Y(n)}}return T.from(e.target)}(e).getOr(e.target)),r=function(){return e.stopPropagation()},i=function(){return e.preventDefault()},a=(t=i,n=r,function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t(n.apply(null,e))});return function(e,t,n,o,r,i,a){return{target:e,x:t,y:n,stop:o,prevent:r,kill:i,raw:a}}(o,e.clientX,e.clientY,r,i,a,e)},xa=function(e,t,n,o,r){var i=function(e,t){return function(n){e(n)&&t(Ca(n))}}(n,o);return e.dom.addEventListener(t,i,r),{unbind:g(Oa,e,t,i,r)}},Oa=function(e,t,n,o){e.dom.removeEventListener(t,n,o)},Ta=w,Ea=function(e,t,n){return function(e,t,n,o){return xa(e,t,n,o,!1)}(e,t,Ta,n)},Sa=Ca,Da=function(e,t){var n=Mt(e,t);return void 0===n||""===n?[]:n.split(" ")},ka=function(e){return void 0!==e.dom.classList},Aa=function(e,t){return function(e,t,n){var o=Da(e,t).concat([n]);return kt(e,t,o.join(" ")),!0}(e,"class",t)},Ma=function(e,t){ka(e)?e.dom.classList.add(t):Aa(e,t)},Ia=function(e,t){return ka(e)&&e.dom.classList.contains(t)},Pa=function(e){var t=e.replace(/\./g,"-");return{resolve:function(e){return t+"-"+e}}},Ra=Pa("ephox-dragster"),La=Ra.resolve,Na=ga({compare:function(e,t){return Xo(t.left-e.left,t.top-e.top)},extract:function(e){return T.some(Xo(e.x,e.y))},sink:function(e,t){var n=function(e){var t=K({layerClass:La("blocker")},e),n=Ce.fromTag("div");return kt(n,"role","presentation"),Ut(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),Ma(n,La("blocker")),Ma(n,t.layerClass),{element:p(n),destroy:function(){Yn(n)}}}(t),o=Ea(n.element(),"mousedown",e.forceDrop),r=Ea(n.element(),"mouseup",e.drop),i=Ea(n.element(),"mousemove",e.move),a=Ea(n.element(),"mouseout",e.delayDrop);return va({element:n.element,start:function(e){zn(e,n.element())},stop:function(){Yn(n.element())},destroy:function(){n.destroy(),r.unbind(),i.unbind(),a.unbind(),o.unbind()}})},mutate:function(e,t){e.mutate(t.left,t.top)}}),Fa=function(e){return St(e,"[contenteditable]")},ja=function(e,t){return void 0===t&&(t=!1),!_e().browser.isIE()&&gt(e)?e.dom.isContentEditable:Fa(e).fold(p(t),(function(e){return"true"===Ba(e)}))},Ba=function(e){return e.dom.contentEditable},$a=Pa("ephox-snooker"),za=$a.resolve,Ua=function(){var e=da({drag:ua(["xDelta","yDelta","target"])}),t=T.none(),n=function(){var e=da({drag:ua(["xDelta","yDelta"])});return{mutate:function(t,n){e.trigger.drag(t,n)},events:e.registry}}();return n.events.drag.bind((function(n){t.each((function(t){e.trigger.drag(n.xDelta,n.yDelta,t)}))})),{assign:function(e){t=T.some(e)},get:function(){return t},mutate:n.mutate,events:e.registry}},Va=za("resizer-bar"),Ha=za("resizer-rows"),Wa=za("resizer-cols"),Ya=function(e){var t=wt(e.parent(),"."+Va);P(t,Yn)},qa=function(e,t,n){var o=e.origin();P(t,(function(t){t.each((function(t){var r=n(o,t);Ma(r,Va),zn(e.parent(),r)}))}))},Ga=function(e,t,n,o){qa(e,t,(function(e,t){var r,i,a,s,l,c,u=(r=t.col,i=t.x-e.left,a=n.top-e.top,s=7,l=o,c=Ce.fromTag("div"),Ut(c,{position:"absolute",left:i-s/2+"px",top:a+"px",height:l+"px",width:s+"px"}),At(c,{"data-column":r,role:"presentation"}),c);return Ma(u,Wa),u}))},Ka=function(e,t,n,o){qa(e,t,(function(e,t){var r=function(e,t,n,o,r){var i=Ce.fromTag("div");return Ut(i,{position:"absolute",left:t+"px",top:n-r/2+"px",height:r+"px",width:o+"px"}),At(i,{"data-row":e,role:"presentation"}),i}(t.row,n.left-e.left,t.y-e.top,o,7);return Ma(r,Ha),r}))},Xa=function(e,t,n,o,r){var i=Qo(n),a=t.isResizable,s=o.length>0?ur.positions(o,n):[],l=s.length>0?function(e,t){return z(e.all,(function(e,n){return t(e.element)?[n]:[]}))}(e,a):[],c=L(s,(function(e,t){return A(l,(function(e){return t===e}))}));Ka(t,c,i,No(n));var u=r.length>0?mr.positions(r,n):[],d=u.length>0?function(e,t){var n=[];return M(e.grid.columns,(function(o){Sn.getColumnAt(e,o).map((function(e){return e.element})).forall(t)&&n.push(o)})),L(n,(function(n){var o=Sn.filterItems(e,(function(e){return e.column===n}));return U(o,(function(e){return t(e.element)}))}))}(e,a):[],f=L(u,(function(e,t){return A(d,(function(e){return t===e}))}));Ga(t,f,i,qo(n))},Ja=function(e,t){if(Ya(e),e.isResizable(t)){var n=Sn.fromTable(t),o=zo(n),r=Bo(n);Xa(n,e,t,o,r)}},Qa=function(e,t){var n=wt(e.parent(),"."+Va);P(n,t)},Za=function(e){Qa(e,(function(e){zt(e,"display","none")}))},es=function(e){Qa(e,(function(e){zt(e,"display","block")}))},ts=za("resizer-bar-dragging"),ns=function(e){var t=Ua(),n=function(e,t){void 0===t&&(t={});var n=void 0!==t.mode?t.mode:Na;return wa(e,n,t)}(t,{}),o=T.none(),r=function(e,t){return T.from(Mt(e,t))};t.events.drag.bind((function(e){r(e.target,"data-row").each((function(t){var n=Jt(e.target,"top");zt(e.target,"top",n+e.yDelta+"px")})),r(e.target,"data-column").each((function(t){var n=Jt(e.target,"left");zt(e.target,"left",n+e.xDelta+"px")}))}));var i=function(e,t){return Jt(e,t)-qt(e,"data-initial-"+t,0)};n.events.stop.bind((function(){t.get().each((function(t){o.each((function(n){r(t,"data-row").each((function(e){var o=i(t,"top");Pt(t,"data-initial-top"),u.trigger.adjustHeight(n,o,parseInt(e,10))})),r(t,"data-column").each((function(e){var o=i(t,"left");Pt(t,"data-initial-left"),u.trigger.adjustWidth(n,o,parseInt(e,10))})),Ja(e,n)}))}))}));var a=function(o,r){u.trigger.startAdjust(),t.assign(o),kt(o,"data-initial-"+r,Jt(o,r)),Ma(o,ts),zt(o,"opacity","0.2"),n.go(e.parent())},s=Ea(e.parent(),"mousedown",(function(e){var t;t=e.target,Ia(t,Ha)&&a(e.target,"top"),function(e){return Ia(e,Wa)}(e.target)&&a(e.target,"left")})),l=function(t){return Ee(t,e.view())},c=Ea(e.view(),"mouseover",(function(t){var n;(n=t.target,St(n,"table",l).filter(ja)).fold((function(){gt(t.target)&&Ya(e)}),(function(t){o=T.some(t),Ja(e,t)}))})),u=da({adjustHeight:ua(["table","delta","row"]),adjustWidth:ua(["table","delta","column"]),startAdjust:ua([])});return{destroy:function(){s.unbind(),c.unbind(),n.destroy(),Ya(e)},refresh:function(t){Ja(e,t)},on:n.on,off:n.off,hideBars:g(Za,e),showBars:g(es,e),events:u.registry}},os=function(e,t,n){var o=ur,r=mr,i=ns(e),a=da({beforeResize:ua(["table","type"]),afterResize:ua(["table","type"]),startDrag:ua([])});return i.events.adjustHeight.bind((function(e){var t=e.table;a.trigger.beforeResize(t,"row");var n=o.delta(e.delta,t);Bi(t,n,e.row,o),a.trigger.afterResize(t,"row")})),i.events.startAdjust.bind((function(e){a.trigger.startDrag()})),i.events.adjustWidth.bind((function(e){var o=e.table;a.trigger.beforeResize(o,"col");var i=r.delta(e.delta,o),s=n(o);ji(o,i,e.column,t,s),a.trigger.afterResize(o,"col")})),{on:i.on,off:i.off,hideBars:i.hideBars,showBars:i.showBars,destroy:i.destroy,events:a.registry}},rs=function(e,t){return e.fire("newrow",{node:t})},is=function(e,t){return e.fire("newcell",{node:t})},as=function(e,t,n){e.fire("TableModified",K(K({},n),{table:t}))},ss={structure:!1,style:!0},ls={structure:!0,style:!1},cs={structure:!0,style:!0},us={"border-collapse":"collapse",width:"100%"},ds=M(5,(function(e){var t=e+1+"px";return{title:t,value:t}})),fs=I(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],(function(e){return{title:e,value:e.toLowerCase()}})),ps={border:"1"},ms=function(e){return e.getParam("table_sizing_mode","auto")},hs=function(e){return e.getParam("table_responsive_width")},gs=function(e){return e.getParam("table_border_widths",ds,"array")},vs=function(e){return e.getParam("table_border_styles",fs,"array")},bs=function(e){return e.getParam("table_default_attributes",ps,"object")},ys=function(e){return e.getParam("table_default_styles",function(e){var t;if(Ss(e)){var n=e.dom,o=null!==(t=n.getParent(e.selection.getStart(),n.isBlock))&&void 0!==t?t:e.getBody(),r=Fo(Ce.fromDom(o));return K(K({},us),{width:r+"px"})}return Ds(e)?Le(us,(function(e,t){return"width"!==t})):us}(e),"object")},_s=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},ws=function(e){return e.getParam("table_row_advtab",!0,"boolean")},Cs=function(e){return e.getParam("table_advtab",!0,"boolean")},xs=function(e){return e.getParam("table_style_by_css",!1,"boolean")},Os=function(e){return e.getParam("table_cell_class_list",[],"array")},Ts=function(e){return e.getParam("table_class_list",[],"array")},Es=function(e){return"relative"===ms(e)||!0===hs(e)},Ss=function(e){return"fixed"===ms(e)||!1===hs(e)},Ds=function(e){return"responsive"===ms(e)},ks=function(e){return e.getParam("table_use_colgroups",!1,"boolean")},As=function(e){var t=e.getParam("table_header_type","section","string");return k(["section","cells","sectionCells","auto"],t)?t:"section"},Ms=function(e){var t=e.getParam("table_column_resizing","preservetable","string");return j(["preservetable","resizetable"],(function(e){return e===t})).getOr("preservetable")},Is=function(e){return"preservetable"===Ms(e)},Ps=function(e){return"resizetable"===Ms(e)},Rs=function(e){var t=e.getParam("table_clone_elements");return o(t)?T.some(t.split(/[ ,]/)):Array.isArray(t)?T.some(t):T.none()},Ls=function(e){return e.getParam("table_background_color_map",[],"array")},Ns=function(e){return e.getParam("table_border_color_map",[],"array")},Fs=function(e,t){return Es(e)?Kr(t):Ss(e)?Gr(t):qr(t)},js=function(e){Pt(e,"width")},Bs=function(e){var t=Pr(e);ia(e,T.some(t),T.none()),js(e)},$s=function(e){var t=function(e){return Lo(e)+"px"}(e);ia(e,T.some(t),T.none()),js(e)},zs=function(e){Yt(e,"width");var t=rn(e),n=t.length>0?t:on(e);P(n,(function(e){Yt(e,"width"),js(e)})),js(e)},Us=function(){var e=Ce.fromTag("div");return Ut(e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),zn(vt(Ce.fromDom(document)),e),e},Vs=function(e){return"false"!==Mt(e,"data-mce-resize")},Hs=function(e){var t,n,r=T.none(),i=T.none(),a=T.none(),s=function(e){return"TABLE"===e.nodeName},l=function(){return i},c=function(t){return Fs(e,t)},u=function(){return Is(e)?Yi():Wi()},d=function(o,r,i){var a=ie(r,"e");if(""===n&&Bs(o),i!==t&&""!==n){zt(o,"width",n);var s=u(),l=c(o),d=Is(e)||a?function(e){return ca(e).columns}(o)-1:0;ji(o,i-t,d,s,l)}else if(function(e){return/^(\d+(\.\d+)?)%$/.test(e)}(n)){var f=parseFloat(n.replace("%",""));zt(o,"width",i*f/t+"%")}(function(e){return/^(\d+(\.\d+)?)px$/.test(e)})(n)&&function(e){var t=Sn.fromTable(e);Sn.hasColumns(t)||P(on(e),(function(e){var t=Vt(e,"width");zt(e,"width",t),Pt(e,"width")}))}(o)};return e.on("init",(function(){var t=function(e,t){return e.inline?Gi(mi(e),Us(),t):qi(Ce.fromDom(e.getDoc()),t)}(e,Vs);if(a=T.some(t),function(e){var t=e.getParam("object_resizing",!0);return o(t)?"table"===t:t}(e)&&function(e){return e.getParam("table_resize_bars",!0,"boolean")}(e)){var n=u(),s=os(t,n,c);s.on(),s.events.startDrag.bind((function(t){r=T.some(e.selection.getRng())})),s.events.beforeResize.bind((function(t){var n=t.table.dom;!function(e,t,n,o,r){e.fire("ObjectResizeStart",{target:t,width:n,height:o,origin:r})}(e,n,hi(n),gi(n),"bar-"+t.type)})),s.events.afterResize.bind((function(t){var n=t.table,o=n.dom;yi(n),r.each((function(t){e.selection.setRng(t),e.focus()})),function(e,t,n,o,r){e.fire("ObjectResized",{target:t,width:n,height:o,origin:r})}(e,o,hi(o),gi(o),"bar-"+t.type),e.undoManager.add()})),i=T.some(s)}})),e.on("ObjectResizeStart",(function(o){var r=o.target;if(s(r)){var i=Ce.fromDom(r);P(e.dom.select(".mce-clonedresizable"),(function(t){e.dom.addClass(t,"mce-"+Ms(e)+"-columns")})),!sa(i)&&Ss(e)?$s(i):!aa(i)&&Es(e)&&Bs(i),la(i)&&re(o.origin,"bar-")&&Bs(i),t=o.width,n=Ds(e)?"":function(e,t){var n=e.dom.getStyle(t,"width")||e.dom.getAttrib(t,"width");return T.from(n).filter(se)}(e,r).getOr("")}})),e.on("ObjectResized",(function(t){var n=t.target;if(s(n)){var o=Ce.fromDom(n),r=t.origin;re(r,"corner-")&&d(o,r,t.width),yi(o),as(e,o.dom,ss)}})),e.on("SwitchMode",(function(){l().each((function(t){e.mode.isReadOnly()?t.hideBars():t.showBars()}))})),{lazyResize:l,lazyWire:function(){return a.getOr(qi(Ce.fromDom(e.getBody()),Vs))},destroy:function(){i.each((function(e){e.destroy()})),a.each((function(t){!function(e,t){e.inline&&Yn(t.parent())}(e,t)}))}}},Ws=function(e,t){return{element:e,offset:t}},Ys=function(e,t,n){return e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?n(t).bind((function(t){return Ys(e,t,n).orThunk((function(){return T.some(t)}))})):T.none()},qs=function(e,t){return e.property().isText(t)?e.property().getText(t).length:e.property().children(t).length},Gs=function(e,t){var n=Ys(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(n))return Ws(n,qs(e,n));var o=e.property().children(n);return o.length>0?Gs(e,o[o.length-1]):Ws(n,qs(e,n))},Ks=Gs,Xs=Zn(),Js=function(e,t){1===Gt(e,"colspan")&&function(e){return Dr(e).bind((function(e){return vr(e,["fixed","relative","empty"])}))}(e).each((function(n){var o=n.value/2;Ir(e,o,n.unit),Ir(t,o,n.unit)}))},Qs=tt("th"),Zs=function(e){return U(e,(function(e){return Qs(e.element)}))},el=function(e,t){return e&&t?"sectionCells":e?"section":"cells"},tl=function(e){var t="thead"===e.section,n=Lt(nl(e.cells),"th");return t||n?{type:"header",subType:el(t,n)}:"tfoot"===e.section?{type:"footer"}:{type:"body"}},nl=function(e){var t=L(e,(function(e){return Qs(e.element)}));return 0===t.length?T.some("td"):t.length===e.length?T.some("th"):T.none()},ol=function(e,t,n){return We(n(e.element,t),!0,e.isLocked)},rl=function(e,t){return e.section!==t?Ye(e.element,e.cells,t,e.isNew):e},il=function(){return{transformRow:rl,transformCell:function(e,t,n){var o=n(e.element,t),r="td"!==qe(o)?function(e,t){var n=Eo(e,t);jn(e,n);var o=lt(e);return Hn(n,o),Yn(e),n}(o,"td"):o;return We(r,e.isNew,e.isLocked)}}},al=function(){return{transformRow:rl,transformCell:ol}},sl=function(){return{transformRow:function(e,t){return rl(e,"thead"===t?"tbody":t)},transformCell:ol}},ll=function(e,t){switch(function(e){return G(e.all,(function(e){var t=tl(e);return"header"===t.type?T.from(t.subType):T.none()}))}(Sn.fromTable(e)).getOr(t)){case"section":return il();case"sectionCells":return al();case"cells":return sl()}},cl=il,ul=al,dl=sl,fl=function(){return{transformRow:m,transformCell:ol}},pl=function(e,t,n,o){n===o?Pt(e,t):kt(e,t,n)},ml=function(e,t,n){q(_t(e,t)).fold((function(){return $n(e,n)}),(function(e){return Bn(e,n)}))},hl=function(e,t){var n=[],o=[],r=function(e){return I(e,(function(e){e.isNew&&n.push(e.element);var t=e.element;return Wn(t),P(e.cells,(function(e){e.isNew&&o.push(e.element),pl(e.element,"colspan",e.colspan,1),pl(e.element,"rowspan",e.rowspan,1),zn(t,e.element)})),t}))},i=function(e){return z(e,(function(e){return I(e.cells,(function(e){return pl(e.element,"span",e.colspan,1),e.element}))}))},a=function(t,n){var o=function(e,t){var n=Tt(e,t).getOrThunk((function(){var n=Ce.fromTag(t,nt(e).dom);return"thead"===t?ml(e,"caption,colgroup",n):"colgroup"===t?ml(e,"caption",n):zn(e,n),n}));return Wn(n),n}(e,n),a=("colgroup"===n?i:r)(t);Hn(o,a)},s=function(t,n){t.length>0?a(t,n):function(t){Tt(e,t).each(Yn)}(n)},l=[],c=[],u=[],d=[];return P(t,(function(e){switch(e.section){case"thead":l.push(e);break;case"tbody":c.push(e);break;case"tfoot":u.push(e);break;case"colgroup":d.push(e)}})),s(d,"colgroup"),s(l,"thead"),s(c,"tbody"),s(u,"tfoot"),{newRows:n,newCells:o}},gl=function(e,t){if(0===e.length)return 0;var n=e[0];return B(e,(function(e){return!t(n.element,e.element)})).getOr(e.length)},vl=function(e,t,n,o){var r=function(e,t){return e[t]}(e,t),i="colgroup"===r.section;return{colspan:gl(r.cells.slice(n),o),rowspan:i?1:gl(function(e,t){return I(e,(function(e){return gn(e,t)}))}(e.slice(t),n),o)}},bl=function(e,t){var n=I(e,(function(e){return I(e.cells,_)}));return I(e,(function(o,r){var i=z(o.cells,(function(o,i){if(!1===n[r][i]){var a=vl(e,r,i,t);return function(e,t,o,r){for(var i=e;i<e+o;i++)for(var a=t;a<t+r;a++)n[i][a]=!0}(r,i,a.rowspan,a.colspan),[(s=o.element,l=a.rowspan,c=a.colspan,u=o.isNew,{element:s,rowspan:l,colspan:c,isNew:u})]}return[];var s,l,c,u}));return function(e,t,n,o){return{element:e,cells:t,section:n,isNew:o}}(o.element,i,o.section,o.isNew)}))},yl=function(e,t,n){var o=[];P(e.colgroups,(function(r){for(var i=[],a=0;a<e.grid.columns;a++){var s=Sn.getColumnAt(e,a).map((function(e){return We(e.element,n,!1)})).getOrThunk((function(){return We(t.colGap(),!0,!1)}));i.push(s)}o.push(Ye(r.element,i,"colgroup",n))}));for(var r=0;r<e.grid.rows;r++){for(var i=[],a=0;a<e.grid.columns;a++){var s=Sn.getAt(e,r,a).map((function(e){return We(e.element,n,e.isLocked)})).getOrThunk((function(){return We(t.gap(),!0,!1)}));i.push(s)}var l=e.all[r],c=Ye(l.element,i,l.section,n);o.push(c)}return o},_l=function(e){return bl(e,Ee)},wl=function(e,t){return G(e.all,(function(e){return j(e.cells,(function(e){return Ee(t,e.element)}))}))},Cl=function(e,t,n){var o=I(t.selection,(function(t){return nn(t).bind((function(t){return wl(e,t)})).filter(n)})),r=Nt(o);return jt(r.length>0,r)},xl=function(e,t,n,o,r){return function(i,a,s,l,c){var u=Sn.fromTable(a),d=T.from(null==c?void 0:c.section).getOrThunk(fl);return t(u,s).map((function(t){var n=function(e,t){return yl(e,t,!1)}(u,l),o=e(n,t,Ee,r(l),d),i=xn(o.grid);return{info:t,grid:_l(o.grid),cursor:o.cursor,lockedColumns:i}})).bind((function(e){var t=hl(a,e.grid),r=T.from(null==c?void 0:c.sizing).getOrThunk((function(){return qr(a)})),s=T.from(null==c?void 0:c.resize).getOrThunk(Yi);return n(a,e.grid,e.info,{sizing:r,resize:s,section:d}),o(a),Ja(i,a),Pt(a,wn),e.lockedColumns.length>0&&kt(a,wn,e.lockedColumns.join(",")),T.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})}))}},Ol=function(e,t){return Cl(e,t,w).map((function(e){return{cells:e,generators:t.generators,clipboard:t.clipboard}}))},Tl=function(e,t){return Cl(e,t,w)},El=function(e,t){return Cl(e,t,(function(e){return!e.isLocked}))},Sl=function(e,t){return U(t,(function(t){return function(e,t){return wl(e,t).exists((function(e){return!e.isLocked}))}(e,t)}))},Dl=function(e,t){return function(e,t){return t.mergable}(0,t).filter((function(t){return Sl(e,t.cells)}))},kl=function(e,t){return function(e,t){return t.unmergable}(0,t).filter((function(t){return Sl(e,t)}))},Al=function(e,t,n,o){for(var r=yn(e).rows,i=!0,a=0;a<r.length;a++)for(var s=0;s<bn(r[0]);s++){var l=r[a],c=gn(l,s),u=n(c.element,t);!0===u&&!1===i?mn(l,s,We(o(),!0,c.isLocked)):!0===u&&(i=!1)}return e},Ml=function(e,t,n,o){var r=yn(e).rows;if(t>0&&t<r.length){var i=function(e,t){return F(e,(function(e,n){return A(e,(function(e){return t(e.element,n.element)}))?e:e.concat([n])}),[])}(r[t-1].cells,n);P(i,(function(e){for(var i=T.none(),a=t;a<r.length;a++)for(var s=function(t){var s=r[a],l=gn(s,t);n(l.element,e.element)&&(i.isNone()&&(i=T.some(o())),i.each((function(e){mn(s,t,We(e,!0,l.isLocked))})))},l=0;l<bn(r[0]);l++)s(l)}))}return e},Il=function(e){return{isValue:w,isError:_,getOr:p(e),getOrThunk:p(e),getOrDie:p(e),or:function(t){return Il(e)},orThunk:function(t){return Il(e)},fold:function(t,n){return n(e)},map:function(t){return Il(t(e))},mapError:function(t){return Il(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOptional:function(){return T.some(e)}}},Pl=function(e){return{isValue:_,isError:w,getOr:m,getOrThunk:function(e){return e()},getOrDie:function(){return(t=String(e),function(){throw new Error(t)})();var t},or:m,orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return Pl(e)},mapError:function(t){return Pl(t(e))},each:f,bind:function(t){return Pl(e)},exists:_,forall:w,toOptional:T.none}},Rl={value:Il,error:Pl,fromOption:function(e,t){return e.fold((function(){return Pl(t)}),Il)}},Ll=function(e,t){return{rowDelta:0,colDelta:bn(e[0])-bn(t[0])}},Nl=function(e,t){return{rowDelta:e.length-t.length,colDelta:0}},Fl=function(e,t,n,o){var r="colgroup"===t.section?n.col:n.cell;return M(e,(function(e){return We(r(),!0,o(e))}))},jl=function(e,t,n,o){var r=e[e.length-1];return e.concat(M(t,(function(){var e="colgroup"===r.section?n.colgroup:n.row,t=_n(r,e,m),i=Fl(t.cells.length,t,n,(function(e){return $e(o,e.toString())}));return hn(t,i)})))},Bl=function(e,t,n,o){return I(e,(function(e){var r=Fl(t,e,n,_);return fn(e,o,r)}))},$l=function(e,t,n){var o=t.colDelta<0?Bl:m,r=t.rowDelta<0?jl:m,i=xn(e),a=bn(e[0]),s=A(i,(function(e){return e===a-1})),l=o(e,Math.abs(t.colDelta),n,s?a-1:a),c=xn(l);return r(l,Math.abs(t.rowDelta),n,V(c,w))},zl=function(e,t,n,o){var r=g(o,gn(e[t],n).element),i=e[t];return e.length>1&&bn(i)>1&&(n>0&&r(vn(i,n-1))||n<i.cells.length-1&&r(vn(i,n+1))||t>0&&r(vn(e[t-1],n))||t<e.length-1&&r(vn(e[t+1],n)))},Ul=function(e,t,n){return L(n,(function(n){return n>=e.column&&n<=bn(t[0])+e.column}))},Vl=function(e,t,n,o,r){var i=xn(t),a=function(e,t,n){var o=bn(t[0]),r=yn(t).cols.length+e.row,i=M(o-e.column,(function(t){return t+e.column}));return{row:r,column:j(i,(function(e){return U(n,(function(t){return t!==e}))})).getOr(o-1)}}(e,t,i),s=yn(n).rows,l=Ul(a,s,i);return function(e,t,n){if(e.row>=t.length||e.column>bn(t[0]))return Rl.error("invalid start address out of table bounds, row: "+e.row+", column: "+e.column);var o=t.slice(e.row),r=o[0].cells.slice(e.column),i=bn(n[0]),a=n.length;return Rl.value({rowDelta:o.length-a,colDelta:r.length-i})}(a,t,s).map((function(e){var n=K(K({},e),{colDelta:e.colDelta-l.length}),i=$l(t,n,o),c=xn(i),u=Ul(a,s,c);return function(e,t,n,o,r,i){for(var a=e.row,s=e.column,l=a+n.length,c=s+bn(n[0])+i.length,u=V(i,w),d=a;d<l;d++)for(var f=0,p=s;p<c;p++)if(u[p])f++;else{zl(t,d,p,r)&&Al(t,vn(t[d],p),r,o.cell);var m=p-s-f,h=gn(n[d-a],m),g=h.element,v=o.replace(g);mn(t[d],p,We(v,!0,h.isLocked))}return t}(a,i,s,o,r,u)}))},Hl=function(e,t,n,o,r){!function(e,t,n,o){t>0&&t<e[0].cells.length&&P(e,(function(e){var r=e.cells[t-1],i=e.cells[t];n(i.element,r.element)&&mn(e,t,We(o(),!0,i.isLocked))}))}(t,e,r,o.cell);var i=Nl(n,t),a=$l(n,i,o),s=Nl(t,a),l=$l(t,s,o);return I(l,(function(t,n){return fn(t,e,a[n].cells)}))},Wl=function(e,t,n,o,r){Ml(t,e,r,o.cell);var i=xn(t),a=Ll(t,n),s=K(K({},a),{colDelta:a.colDelta-i.length}),l=$l(t,s,o),c=yn(l),u=c.cols,d=c.rows,f=xn(l),p=Ll(n,t),m=K(K({},p),{colDelta:p.colDelta+f.length}),h=function(e,t,n){return I(e,(function(e){return F(n,(function(n,o){var r=Fl(1,e,t,w)[0];return pn(n,o,r)}),e)}))}(n,o,f),g=$l(h,m,o);return u.concat(d.slice(0,e)).concat(g).concat(d.slice(e,d.length))},Yl=function(e,t,n,o,r){var i=yn(e),a=i.rows,s=i.cols,l=a.slice(0,t),c=a.slice(t),u=function(e,t,n,o){return _n(e,(function(e){return o(e,n)}),t)}(a[n],(function(e,n){return t>0&&t<a.length&&o(vn(a[t-1],n),vn(a[t],n))?gn(a[t],n):We(r(e.element,o),!0,e.isLocked)}),o,r);return s.concat(l).concat([u]).concat(c)},ql=function(e,t,n,o,r){return I(e,(function(e){var i=t>0&&t<bn(e)&&o(vn(e,t-1),vn(e,t)),a=function(e,t,n,o,r,i,a){if("colgroup"!==n&&o)return gn(e,t);var s=gn(e,r);return We(a(s.element,i),!0,!1)}(e,t,e.section,i,n,o,r);return pn(e,t,a)}))},Gl=function(e,t,n,o){return function(e,t,n,o){return void 0!==vn(e[t],n)&&t>0&&o(vn(e[t-1],n),vn(e[t],n))}(e,t,n,o)||function(e,t,n){return t>0&&n(vn(e,t-1),vn(e,t))}(e[t],n,o)},Kl=function(e,t,n,o){var r=function(e){return function(e){return"row"===e?Xt(t):Kt(t)}(e)?e+"group":e};return e?Qs(t)?r(n):null:o&&Qs(t)?r("row"===n?"col":"row"):null},Xl=function(e,t,n){return We(n(e.element,t),!0,e.isLocked)},Jl=function(e,t,n,o,r,i,a){return I(e,(function(e,s){return function(e,t){var n=e.cells,o=I(n,t);return Ye(e.element,o,e.section,e.isNew)}(e,(function(e,l){if(function(e){return A(t,(function(t){return n(e.element,t.element)}))}(e)){var c=a(e,s,l)?r(e,n,o):e;return i(c,s,l).each((function(e){var t,n;t=c.element,n={scope:T.from(e)},Ie(n,(function(e,n){e.fold((function(){Pt(t,n)}),(function(e){Dt(t.dom,n,e)}))}))})),c}return e}))}))},Ql=function(e,t,n){return z(e,(function(o,r){return Gl(e,r,t,n)?[]:[gn(o,t)]}))},Zl=function(e,t,n,o,r){var i=yn(e).rows,a=z(t,(function(e){return Ql(i,e,o)})),s=I(e,(function(e){return Zs(e.cells)})),l=function(e,t){return U(t,m)&&Zs(e)?w:function(e,n,o){return!("th"===qe(e.element)&&t[n])}}(a,s),c=function(e,t){return function(n,o){return T.some(Kl(e,n.element,"row",t[o]))}}(n,s);return Jl(e,a,o,r,Xl,c,l)},ec=function(e,t,n,o,r,i,a){var s=yn(e),l=s.cols,c=s.rows,u=c[t[0]],d=z(t,(function(e){return function(e,t,n){var o=e[t];return z(o.cells,(function(o,r){return Gl(e,t,r,n)?[]:[o]}))}(c,e,r)})),f=I(u.cells,(function(e,t){return Zs(Ql(c,t,r))})),p=X([],c,!0);P(t,(function(e){p[e]=a.transformRow(c[e],n)}));var h=l.concat(p),g=function(e,t){return U(t,m)&&Zs(e.cells)?w:function(e,n,o){return!("th"===qe(e.element)&&t[o])}}(u,f),v=function(e,t){return function(n,o,r){return T.some(Kl(e,n.element,"col",t[r]))}}(o,f);return Jl(h,d,r,i,a.transformCell,v,g)},tc=function(e,t,n,o){var r=yn(e).rows,i=I(t,(function(e){return gn(r[e.row],e.column)}));return Jl(e,i,n,o,Xl,T.none,w)},nc=function(e){return F(e,(function(e,t){return A(e,(function(e){return e.column===t.column}))?e:e.concat([t])}),[]).sort((function(e,t){return e.column-t.column}))},oc=tt("col"),rc=tt("colgroup"),ic=function(e){return"tr"===qe(e)||rc(e)},ac=function(e){return{element:e,colspan:qt(e,"colspan",1),rowspan:qt(e,"rowspan",1)}},sc=function(e){return It(e,"scope").map((function(e){return e.substr(0,3)}))},lc=function(e,t){void 0===t&&(t=ac);var n=function(n){if(ic(n))return rc((r={element:n}).element)?e.colgroup(r):e.row(r);var r,i=function(t){return oc(t.element)?e.col(t):e.cell(t)}(t(n));return o=T.some({item:n,replacement:i}),i},o=T.none();return{getOrInit:function(e,t){return o.fold((function(){return n(e)}),(function(o){return t(e,o.item)?o.replacement:n(e)}))}}},cc=function(e){return function(t){var n=[],o=function(o){var r="td"===e?{scope:null}:{},i=t.replace(o,e,r);return n.push({item:o,sub:i}),i};return{replaceOrInit:function(e,t){return ic(e)||oc(e)?e:function(e,t){return j(n,(function(n){return t(n.item,e)}))}(e,t).fold((function(){return o(e)}),(function(n){return t(e,n.item)?n.sub:o(e)}))}}}},uc=function(e){return{unmerge:function(t){var n=sc(t);return n.each((function(e){return kt(t,"scope",e)})),function(){var o=e.cell({element:t,colspan:1,rowspan:1});return Yt(o,"width"),Yt(t,"width"),n.each((function(e){return kt(o,"scope",e)})),o}},merge:function(e){return Yt(e[0],"width"),function(){var t=Nt(I(e,sc));if(0===t.length)return T.none();var n=t[0],o=["row","col"];return A(t,(function(e){return e!==n&&k(o,e)}))?T.none():T.from(n)}().fold((function(){return Pt(e[0],"scope")}),(function(t){return kt(e[0],"scope",t+"group")})),p(e[0])}}},dc=["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"],fc=Zn(),pc=function(e){return function(e,t){var n=e.property().name(t);return k(dc,n)}(fc,e)},mc=function(e){return function(e,t){var n=e.property().name(t);return k(["ol","ul"],n)}(fc,e)},hc=function(e){return function(e,t){return k(["br","img","hr","input"],e.property().name(t))}(fc,e)},gc=function(e){var t,n=function(e){return"br"===qe(e)},o=function(e){return ni(e).bind((function(t){var o=st(t).map((function(e){return!!pc(e)||!!hc(e)&&"img"!==qe(e)})).getOr(!1);return rt(t).map((function(r){return!0===o||function(e){return"li"===qe(e)||xt(e,mc).isSome()}(r)||n(t)||pc(r)&&!Ee(e,r)?[]:[Ce.fromTag("br")]}))})).getOr([])},r=0===(t=z(e,(function(e){var t=lt(e);return function(e){return U(e,(function(e){return n(e)||Qe(e)&&0===Kn(e).trim().length}))}(t)?[]:t.concat(o(e))}))).length?[Ce.fromTag("br")]:t;Wn(e[0]),Hn(e[0],r)},vc=function(e){return ja(e,!0)},bc=function(e){0===on(e).length&&Yn(e)},yc=function(e,t){return{grid:e,cursor:t}},_c=function(e,t,n){var o,r,i=yn(e).rows;return T.from(null===(r=null===(o=i[t])||void 0===o?void 0:o.cells[n])||void 0===r?void 0:r.element).filter(vc).orThunk((function(){return function(e){return G(e,(function(e){return G(e.cells,(function(e){var t=e.element;return jt(vc(t),t)}))}))}(i)}))},wc=function(e,t,n){var o=_c(e,t,n);return yc(e,o)},Cc=function(e){return F(e,(function(e,t){return A(e,(function(e){return e.row===t.row}))?e:e.concat([t])}),[]).sort((function(e,t){return e.row-t.row}))},xc=function(e,t){return function(n,o,r,i,a){var s=Cc(o),l=I(s,(function(e){return e.row})),c=ec(n,l,e,t,r,i.replaceOrInit,a);return wc(c,o[0].row,o[0].column)}},Oc=xc("thead",!0),Tc=xc("tbody",!1),Ec=xc("tfoot",!1),Sc=function(e,t,n){var o=function(e,t){return cn(e,(function(){return t}))}(e,n.section),r=Sn.generate(o);return yl(r,t,!0)},Dc=function(e,t,n,o){return function(e,t,n,o){var r=Sn.generate(t),i=o.getWidths(r,o);Fi(r,i,o)}(0,t,0,o.sizing)},kc=function(e,t,n,o){return function(e,t,n,o,r){var i=Sn.generate(t),a=o.getWidths(i,o),s=o.pixelWidth(),l=r.calcRedestributedWidths(a,s,n.pixelDelta,o.isRelative),c=l.newSizes,u=l.delta;Fi(i,c,o),o.adjustTableWidth(u)}(0,t,n,o.sizing,o.resize)},Ac=function(e,t){return A(t,(function(e){return 0===e.column&&e.isLocked}))},Mc=function(e,t){return A(t,(function(t){return t.column+t.colspan>=e.grid.columns&&t.isLocked}))},Ic=function(e,t){var n=Bo(e),o=nc(t);return F(o,(function(e,t){return e+n[t.column].map(No).getOr(0)}),0)},Pc=function(e){return function(t,n){return Tl(t,n).filter((function(n){return!(e?Ac:Mc)(t,n)})).map((function(e){return{details:e,pixelDelta:Ic(t,e)}}))}},Rc=function(e){return function(t,n){return Ol(t,n).filter((function(n){return!(e?Ac:Mc)(t,n.cells)}))}},Lc=cc("th"),Nc=cc("td"),Fc=xl((function(e,t,n,o){var r=t[0].row,i=Cc(t),a=N(i,(function(e,t){return{grid:Yl(e.grid,r,t.row+e.delta,n,o.getOrInit),delta:e.delta+1}}),{grid:e,delta:0}).grid;return wc(a,r,t[0].column)}),Tl,f,f,lc),jc=xl((function(e,t,n,o){var r=Cc(t),i=r[r.length-1],a=i.row+i.rowspan,s=N(r,(function(e,t){return Yl(e,a,t.row,n,o.getOrInit)}),e);return wc(s,a,t[0].column)}),Tl,f,f,lc),Bc=xl((function(e,t,n,o){var r=t.details,i=nc(r),a=i[0].column,s=N(i,(function(e,t){return{grid:ql(e.grid,a,t.column+e.delta,n,o.getOrInit),delta:e.delta+1}}),{grid:e,delta:0}).grid;return wc(s,r[0].row,a)}),Pc(!0),kc,f,lc),$c=xl((function(e,t,n,o){var r=t.details,i=r[r.length-1],a=i.column+i.colspan,s=nc(r),l=N(s,(function(e,t){return ql(e,a,t.column,n,o.getOrInit)}),e);return wc(l,r[0].row,a)}),Pc(!1),kc,f,lc),zc=xl((function(e,t,n,o){var r=nc(t.details),i=function(e,t){return z(e,(function(e){var n=e.cells,o=N(t,(function(e,t){return t>=0&&t<e.length?e.slice(0,t).concat(e.slice(t+1)):e}),n);return o.length>0?[Ye(e.element,o,e.section,e.isNew)]:[]}))}(e,I(r,(function(e){return e.column}))),a=i.length>0?i[0].cells.length-1:0;return wc(i,r[0].row,Math.min(r[0].column,a))}),(function(e,t){return El(e,t).map((function(t){return{details:t,pixelDelta:-Ic(e,t)}}))}),kc,bc,lc),Uc=xl((function(e,t,n,o){var r=Cc(t),i=function(e,t,n){var o=yn(e),r=o.rows;return o.cols.concat(r.slice(0,t)).concat(r.slice(n+1))}(e,r[0].row,r[r.length-1].row),a=i.length>0?i.length-1:0;return wc(i,Math.min(t[0].row,a),t[0].column)}),Tl,f,bc,lc),Vc=xl((function(e,t,n,o){var r=nc(t),i=I(r,(function(e){return e.column})),a=Zl(e,i,!0,n,o.replaceOrInit);return wc(a,t[0].row,t[0].column)}),El,f,f,Lc),Hc=xl((function(e,t,n,o){var r=nc(t),i=I(r,(function(e){return e.column})),a=Zl(e,i,!1,n,o.replaceOrInit);return wc(a,t[0].row,t[0].column)}),El,f,f,Nc),Wc=xl(Oc,El,f,f,Lc),Yc=xl(Tc,El,f,f,Nc),qc=xl(Ec,El,f,f,Nc),Gc=xl((function(e,t,n,o){var r=tc(e,t,n,o.replaceOrInit);return wc(r,t[0].row,t[0].column)}),El,f,f,Lc),Kc=xl((function(e,t,n,o){var r=tc(e,t,n,o.replaceOrInit);return wc(r,t[0].row,t[0].column)}),El,f,f,Nc),Xc=xl((function(e,t,n,o){var r=t.cells;gc(r);var i=function(e,t,n,o){var r=yn(e).rows;if(0===r.length)return e;for(var i=t.startRow;i<=t.finishRow;i++)for(var a=t.startCol;a<=t.finishCol;a++){var s=r[i],l=gn(s,a).isLocked;mn(s,a,We(o(),!1,l))}return e}(e,t.bounds,0,o.merge(r));return yc(i,T.from(r[0]))}),Dl,Dc,f,uc),Jc=xl((function(e,t,n,o){var r=N(t,(function(e,t){return Al(e,t,n,o.unmerge(t))}),e);return yc(r,T.from(t[0]))}),kl,Dc,f,uc),Qc=xl((function(e,t,n,o){var r=function(e,t){var n=Sn.fromTable(e);return yl(n,t,!0)}(t.clipboard,t.generators),i=function(e,t){return{row:e,column:t}}(t.row,t.column);return Vl(i,e,r,t.generators,n).fold((function(){return yc(e,T.some(t.element))}),(function(e){return wc(e,t.row,t.column)}))}),(function(e,t){return nn(t.element).bind((function(n){return wl(e,n).map((function(e){return K(K({},e),{generators:t.generators,clipboard:t.clipboard})}))}))}),Dc,f,lc),Zc=xl((function(e,t,n,o){var r=yn(e).rows,i=t.cells[0].column,a=r[t.cells[0].row],s=Sc(t.clipboard,t.generators,a),l=Hl(i,e,s,t.generators,n);return wc(l,t.cells[0].row,t.cells[0].column)}),Rc(!0),f,f,lc),eu=xl((function(e,t,n,o){var r=yn(e).rows,i=t.cells[t.cells.length-1].column+t.cells[t.cells.length-1].colspan,a=r[t.cells[0].row],s=Sc(t.clipboard,t.generators,a),l=Hl(i,e,s,t.generators,n);return wc(l,t.cells[0].row,t.cells[0].column)}),Rc(!1),f,f,lc),tu=xl((function(e,t,n,o){var r=yn(e).rows,i=t.cells[0].row,a=r[i],s=Sc(t.clipboard,t.generators,a),l=Wl(i,e,s,t.generators,n);return wc(l,t.cells[0].row,t.cells[0].column)}),Ol,f,f,lc),nu=xl((function(e,t,n,o){var r=yn(e).rows,i=t.cells[t.cells.length-1].row+t.cells[t.cells.length-1].rowspan,a=r[t.cells[0].row],s=Sc(t.clipboard,t.generators,a),l=Wl(i,e,s,t.generators,n);return wc(l,t.cells[0].row,t.cells[0].column)}),Ol,f,f,lc),ou=function(e,t){var n=Sn.fromTable(e);return Tl(n,t).bind((function(e){var t=e[e.length-1],o=e[0].column,r=t.column+t.colspan,i=$(I(n.all,(function(e){return L(e.cells,(function(e){return e.column>=o&&e.column<r}))})));return nl(i)})).getOr("")},ru=function(e,t){var n=Sn.fromTable(e);return Tl(n,t).bind(nl).getOr("")},iu=function(e,t){var n=Sn.fromTable(e);return Tl(n,t).bind((function(e){var t=e[e.length-1],o=e[0].row,r=t.row+t.rowspan;return function(e){var t=I(e,(function(e){return tl(e).type})),n=k(t,"header"),o=k(t,"footer");if(n||o){var r=k(t,"body");return!n||r||o?n||r||!o?T.none():T.some("footer"):T.some("header")}return T.some("body")}(n.all.slice(o,r))})).getOr("")},au=function(e,t,n){var o=function(e){return"table"===qe(mi(e))},r=Rs(e),i=Ps(e)?f:Js,a=function(t){switch(As(e)){case"section":return cl();case"sectionCells":return ul();case"cells":return dl();default:return ll(t,"section")}},s=function(n,o){return o.cursor.fold((function(){var o=on(n);return Y(o).filter(gt).map((function(o){t.clear(n);var r=e.dom.createRng();return r.selectNode(o.dom),e.selection.setRng(r),kt(o,"data-mce-selected","1"),r}))}),(function(o){var r=Ks(Xs,o),i=e.dom.createRng();return i.setStart(r.element.dom,r.offset),i.setEnd(r.element.dom,r.offset),e.selection.setRng(i),t.clear(n),T.some(i)}))},l=function(t,n,o,i,l){return function(c,u,d){void 0===d&&(d=!1),yi(c);var f=i(),p=Ce.fromDom(e.getDoc()),m=di(o,p,r),h={sizing:Fs(e,c),resize:Ps(e)?Wi():Yi(),section:a(c)};return n(c)?t(f,c,u,m,h).bind((function(t){P(t.newRows,(function(t){rs(e,t.dom)})),P(t.newCells,(function(t){is(e,t.dom)}));var n=s(c,t);return gt(c)&&(yi(c),d||as(e,c.dom,l)),n.map((function(e){return{rng:e,effect:l}}))})):T.none()}};return{deleteRow:l(Uc,(function(t){return!1===o(e)||ca(t).rows>1}),f,n,ls),deleteColumn:l(zc,(function(t){return!1===o(e)||ca(t).columns>1}),f,n,ls),insertRowsBefore:l(Fc,w,f,n,ls),insertRowsAfter:l(jc,w,f,n,ls),insertColumnsBefore:l(Bc,w,i,n,ls),insertColumnsAfter:l($c,w,i,n,ls),mergeCells:l(Xc,w,f,n,ls),unmergeCells:l(Jc,w,f,n,ls),pasteColsBefore:l(Zc,w,f,n,ls),pasteColsAfter:l(eu,w,f,n,ls),pasteRowsBefore:l(tu,w,f,n,ls),pasteRowsAfter:l(nu,w,f,n,ls),pasteCells:l(Qc,w,f,n,cs),makeCellsHeader:l(Gc,w,f,n,ls),unmakeCellsHeader:l(Kc,w,f,n,ls),makeColumnsHeader:l(Vc,w,f,n,ls),unmakeColumnsHeader:l(Hc,w,f,n,ls),makeRowsHeader:l(Wc,w,f,n,ls),makeRowsBody:l(Yc,w,f,n,ls),makeRowsFooter:l(qc,w,f,n,ls),getTableRowType:iu,getTableCellType:ru,getTableColType:ou}},su={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},lu=function(e){var t=Ce.fromTag("colgroup");return M(e,(function(){return zn(t,Ce.fromTag("col"))})),t},cu=function(e,t,n,o){return M(e,(function(e){return function(e,t,n,o){for(var r=Ce.fromTag("tr"),i=0;i<e;i++){var a=o<t||i<n?Ce.fromTag("th"):Ce.fromTag("td");i<n&&kt(a,"scope","row"),o<t&&kt(a,"scope","col"),zn(a,Ce.fromTag("br")),zn(r,a)}return r}(t,n,o,e)}))},uu=function(e,t){e.selection.select(t.dom,!0),e.selection.collapse(!0)},du=function(e,t,n,r,i){var a=ys(e),s={styles:a,attributes:bs(e),colGroups:ks(e)};return e.undoManager.ignore((function(){var o=function(e,t,n,o,r,i){void 0===i&&(i=su);var a=Ce.fromTag("table"),s="cells"!==r;Ut(a,i.styles),At(a,i.attributes),i.colGroups&&zn(a,lu(t));var l=Math.min(e,n);if(s&&n>0){var c=Ce.fromTag("thead");zn(a,c);var u=cu(n,t,"sectionCells"===r?l:0,o);Hn(c,u)}var d=Ce.fromTag("tbody");zn(a,d);var f=cu(s?e-l:e,t,s?0:n,o);return Hn(d,f),a}(n,t,i,r,As(e),s);kt(o,"data-mce-id","__mce");var a=function(e){var t=Ce.fromTag("div"),n=Ce.fromDom(e.dom.cloneNode(!0));return zn(t,n),function(e){return e.dom.innerHTML}(t)}(o);e.insertContent(a),e.addVisual()})),Et(mi(e),'table[data-mce-id="__mce"]').map((function(t){return Ss(e)?$s(t):Ds(e)?zs(t):(Es(e)||function(e){return o(e)&&-1!==e.indexOf("%")}(a.width))&&Bs(t),yi(t),Pt(t,"data-mce-id"),function(e,t){P(wt(t,"tr"),(function(t){rs(e,t.dom),P(wt(t,"th,td"),(function(t){is(e,t.dom)}))}))}(e,t),function(e,t){Et(t,"td,th").each(g(uu,e))}(e,t),t.dom})).getOr(null)},fu=function(e,t,n,o,r){void 0===o&&(o={});var i=function(e){return d(e)&&e>0};if(i(t)&&i(n)){var a=o.headerRows||0,s=o.headerColumns||0;return du(e,n,t,s,a)}return null},pu=function(e){return function(){return e().fold((function(){return[]}),(function(e){return I(e,(function(e){return e.dom}))}))}},mu=function(e){return function(t){var n=t.length>0?T.some(pi(t)):T.none();e(n)}},hu=function(e){return function(t,n,o){void 0===o&&(o={});var r=fu(e,n,t,o);return e.undoManager.add(),r}},gu=function(e,t,n){var o=qt(e,t,1);1===n||o<=1?Pt(e,t):kt(e,t,Math.min(n,o))},vu=function(e,t){var n=Sn.fromTable(e);return El(n,t).map((function(e){var t=e[e.length-1],o=e[0].column,r=t.column+t.colspan,i=function(e,t,n){if(Sn.hasColumns(e)){var o=L(Sn.justColumns(e),(function(e){return e.column>=t&&e.column<n})),r=I(o,(function(e){var o=To(e.element);return gu(o,"span",n-t),o})),i=Ce.fromTag("colgroup");return Hn(i,r),[i]}return[]}(n,o,r),a=function(e,t,n){return I(e.all,(function(e){var o=L(e.cells,(function(e){return e.column>=t&&e.column<n})),r=I(o,(function(e){var o=To(e.element);return gu(o,"colspan",n-t),o})),i=Ce.fromTag("tr");return Hn(i,r),i}))}(n,o,r);return X(X([],i,!0),a,!0)}))},bu=function(e,t,n){var o=Sn.fromTable(e);return Tl(o,t).bind((function(e){var t=yl(o,n,!1),r=yn(t).rows.slice(e[0].row,e[e.length-1].row+e[e.length-1].rowspan),i=z(r,(function(e){var t=L(e.cells,(function(e){return!e.isLocked}));return t.length>0?[K(K({},e),{cells:t})]:[]})),a=_l(i);return jt(a.length>0,a)})).map((function(e){return function(e){return I(e,(function(e){var t=Oo(e.element);return P(e.cells,(function(e){var n=To(e.element);pl(n,"colspan",e.colspan,1),pl(n,"rowspan",e.rowspan,1),zn(t,n)})),t}))}(e)}))},yu=tinymce.util.Tools.resolve("tinymce.util.Tools"),_u=function(e,t,n){return function(t,o){for(var r=0;r<o.length;r++){var i=e.getStyle(o[r],n);if(void 0===t&&(t=i),t!==i)return""}return t}(void 0,e.select("td,th",t))},wu=function(e,t,n){n&&e.formatter.apply("align"+n,{},t)},Cu=function(e,t){yu.each("left center right".split(" "),(function(n){e.formatter.remove("align"+n,{},t)}))},xu=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],Ou=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Tu=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Eu=function(e){return(t=e,n="#",re(t,n)?function(e,t){return e.substring(t)}(t,n.length):t).toUpperCase();var t,n},Su=function(e){return function(e){return Ou.test(e)||Tu.test(e)}(e)?T.some({value:Eu(e)}):T.none()},Du=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},ku=function(e){return function(e){return{value:e}}(Du(e.red)+Du(e.green)+Du(e.blue))},Au=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,Mu=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,Iu=function(e,t,n,o){return{red:e,green:t,blue:n,alpha:o}},Pu=function(e,t,n,o){var r=parseInt(e,10),i=parseInt(t,10),a=parseInt(n,10),s=parseFloat(o);return Iu(r,i,a,s)},Ru=function(e){return Su(e).orThunk((function(){return function(e){if("transparent"===e)return T.some(Iu(0,0,0,0));var t=Au.exec(e);if(null!==t)return T.some(Pu(t[1],t[2],t[3],"1"));var n=Mu.exec(e);return null!==n?T.some(Pu(n[1],n[2],n[3],n[4])):T.none()}(e).map(ku)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var o=n.getImageData(0,0,1,1).data,r=o[0],i=o[1],a=o[2],s=o[3];return ku(Iu(r,i,a,s))}))},Lu=function(e){var t=e;return{get:function(){return t},set:function(e){t=e}}},Nu=function(e){var t=Lu(T.none()),n=function(){return t.get().each(e)};return{clear:function(){n(),t.set(T.none())},isSet:function(){return t.get().isSome()},get:function(){return t.get()},set:function(e){n(),t.set(T.some(e))}}},Fu=function(){var e=Nu(f);return K(K({},e),{on:function(t){return e.get().each(t)}})},ju=function(e,t,n,o){return function(r){var i=Nu((function(e){return e.unbind()})),a=!se(o),s=function(){var s=ki(t),l=function(t){return e.formatter.match(n,{value:o},t.dom,a)};a?(r.setActive(!A(s,l)),i.set(e.formatter.formatChanged(n,(function(e){return r.setActive(!e)}),!0))):(r.setActive(U(s,l)),i.set(e.formatter.formatChanged(n,r.setActive,!1,{value:o})))};return e.initialized?s():e.on("init",s),i.clear}},Bu=function(e){return ze(e,"menu")},$u=function(e){return I(e,(function(e){var t=e.text||e.title;return Bu(e)?{text:t,items:$u(e.menu)}:{text:t,value:e.value}}))},zu=function(e,t,n,o,r){return I(n,(function(n){var i=n.text||n.title;return Bu(n)?{type:"nestedmenuitem",text:i,getSubmenuItems:function(){return zu(e,t,n.menu,o,r)}}:{text:i,type:"togglemenuitem",onAction:function(){return r(n.value)},onSetup:ju(e,t,o,n.value)}}))},Uu=function(e,t){return function(n){var o;e.execCommand("mceTableApplyCellStyle",!1,((o={})[t]=n,o))}},Vu=function(e){return z(e,(function(e){return Bu(e)?[K(K({},e),{menu:Vu(e.menu)})]:se(e.value)?[e]:[]}))},Hu=function(e,t,n,o,r){return function(i){return i(zu(e,t,n,o,r))}},Wu=function(e,t,n){var o=I(t,(function(e){return{text:e.title,value:"#"+Ru(e.value).value,type:"choiceitem"}}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:o.length>0?o:void 0,allowCustomColors:!1},onAction:function(t){var o,r="remove"===t.value?"":t.value;e.execCommand("mceTableApplyCellStyle",!1,((o={})[n]=r,o))}}]},Yu=function(e){return function(){var t="header"===e.queryCommandValue("mceTableRowType")?"body":"header";e.execCommand("mceTableRowType",!1,{type:t})}},qu=function(e){return function(){var t="th"===e.queryCommandValue("mceTableColType")?"td":"th";e.execCommand("mceTableColType",!1,{type:t})}},Gu=[{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:xu}],Ku=function(e){return Gu.concat(function(e){var t=$u(Os(e));return t.length>0?T.some({name:"class",type:"listbox",label:"Class",items:t}):T.none()}(e).toArray())},Xu=function(e,t){var n=[{name:"borderstyle",type:"listbox",label:"Border style",items:[{text:"Select...",value:""}].concat($u(vs(e)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}];return{title:"Advanced",name:"advanced",items:"cell"===t?[{name:"borderwidth",type:"input",label:"Border width"}].concat(n):n}},Ju=function(e){return function(t,n){var o=t.dom;return{setAttrib:function(t,r){e&&!r||o.setAttrib(n,t,r)},setStyle:function(t,r){e&&!r||o.setStyle(n,t,r)},setFormat:function(o,r){e&&!r||(""===r?t.formatter.remove(o,{value:null},n,!0):t.formatter.apply(o,{value:r},n))}}}},Qu={normal:Ju(!1),ifTruthy:Ju(!0)},Zu=function(e){return function(t){return re(t,"rgb")?e.toHex(t):t}},ed=function(e,t){var n=Ce.fromDom(t);return{borderwidth:Wt(n,"border-width").getOr(""),borderstyle:Wt(n,"border-style").getOr(""),bordercolor:Wt(n,"border-color").map(Zu(e)).getOr(""),backgroundcolor:Wt(n,"background-color").map(Zu(e)).getOr("")}},td=function(e){var t=e[0],n=e.slice(1);return P(n,(function(e){P(Ae(t),(function(n){Ie(e,(function(e,o){var r=t[n];""!==r&&n===o&&r!==e&&(t[n]="")}))}))})),t},nd=function(e,t,n,o){return j(e,(function(e){return!l(n.formatter.matchNode(o,t+e))})).getOr("")},od=g(nd,["left","center","right"],"align"),rd=g(nd,["top","middle","bottom"],"valign"),id=function(e){return an(Ce.fromDom(e)).map((function(t){var n={selection:pi(e.cells)};return iu(t,n)})).getOr("")},ad=function(e,t){var n=Sn.fromTable(e),o=Sn.justCells(n),r=L(o,(function(e){return A(t,(function(t){return Ee(e.element,t)}))}));return I(r,(function(e){return{element:e.element.dom,column:Sn.getColumnAt(n,e.column).map((function(e){return e.element.dom}))}}))},sd=function(e,t,n){var o=1===t.length;P(t,(function(t){var r=t.element,i=o?Qu.normal(e,r):Qu.ifTruthy(e,r);!function(e,t,n){e.setAttrib("scope",n.scope),e.setAttrib("class",n.class),e.setStyle("height",bi(n.height)),t.setStyle("width",bi(n.width))}(i,t.column.map((function(t){return o?Qu.normal(e,t):Qu.ifTruthy(e,t)})).getOr(i),n),_s(e)&&function(e,t){e.setFormat("tablecellbackgroundcolor",t.backgroundcolor),e.setFormat("tablecellbordercolor",t.bordercolor),e.setFormat("tablecellborderstyle",t.borderstyle),e.setFormat("tablecellborderwidth",bi(t.borderwidth))}(i,n),o&&(Cu(e,r),function(e,t){yu.each("top middle bottom".split(" "),(function(n){e.formatter.remove("valign"+n,{},t)}))}(e,r)),n.halign&&wu(e,r,n.halign),n.valign&&function(e,t,n){n&&e.formatter.apply("valign"+n,{},t)}(e,r,n.valign)}))},ld=function(e,t,n,o){var r=o.getData();o.close(),e.undoManager.transact((function(){!function(e,t,n,o){var r=Le(o,(function(e,t){return n[t]!==e}));je(r)>0&&t.length>=1&&an(t[0]).each((function(n){var i=ad(n,t),a=je(Le(r,(function(e,t){return"scope"!==t&&"celltype"!==t})))>0,s=$e(r,"celltype");(a||$e(r,"scope"))&&sd(e,i,o),s&&function(e,t){e.execCommand("mceTableCellType",!1,{type:t.celltype,no_events:!0})}(e,o),as(e,n.dom,{structure:s,style:a})}))}(e,t,n,r),e.focus()}))},cd=function(e,t){var n=an(t[0]).map((function(n){return I(ad(n,t),(function(t){return function(e,t,n,o){var r,i=e.dom,a=o.getOr(t),s=function(e,t){return i.getStyle(e,t)||i.getAttrib(e,t)};return K({width:s(a,"width"),height:s(t,"height"),scope:i.getAttrib(t,"scope"),celltype:(r=t,r.nodeName.toLowerCase()),class:i.getAttrib(t,"class",""),halign:od(e,t),valign:rd(e,t)},n?ed(i,t):{})}(e,t.element,_s(e),t.column)}))}));return td(n.getOrDie())},ud=function(e,t){var n=ki(t);if(0!==n.length){var o=cd(e,n),r={type:"tabpanel",tabs:[{title:"General",name:"general",items:Ku(e)},Xu(e,"cell")]},i={type:"panel",items:[{type:"grid",columns:2,items:Ku(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:_s(e)?r:i,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:o,onSubmit:g(ld,e,n,o)})}},dd=[{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"}],fd=function(e){return dd.concat(function(e){var t=$u(function(e){return e.getParam("table_row_class_list",[],"array")}(e));return t.length>0?T.some({name:"class",type:"listbox",label:"Class",items:t}):T.none()}(e).toArray())},pd=function(e,t,n,o){var r=1===t.length;P(t,(function(t){var i=r?Qu.normal(e,t):Qu.ifTruthy(e,t);!function(e,t){e.setAttrib("class",t.class),e.setStyle("height",bi(t.height))}(i,n),ws(e)&&function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle)}(i,n),n.align!==o.align&&(Cu(e,t),wu(e,t,n.align))}))},md=function(e,t,n,o){var r=o.getData();o.close(),e.undoManager.transact((function(){!function(e,t,n,o){var r=Le(o,(function(e,t){return n[t]!==e}));if(je(r)>0){var i=$e(r,"type"),a=!i||je(r)>1;a&&pd(e,t,o,n),i&&function(e,t){e.execCommand("mceTableRowType",!1,{type:t.type,no_events:!0})}(e,o),an(Ce.fromDom(t[0])).each((function(t){return as(e,t.dom,{structure:i,style:a})}))}}(e,t,n,r),e.focus()}))},hd=function(e){var t,n,o,r,i=(t=_i(e),n=Oi.selected,o=Di(t),r=o.bind((function(e){return an(e)})).map((function(e){return sn(e)})),Ft(o,r,(function(e,t){return L(t,(function(t){return A(pi(t.dom.cells),(function(t){return"1"===Mt(t,n)||Ee(t,e)}))}))})).getOr([]));if(0!==i.length){var a=I(i,(function(t){return function(e,t,n){var o=e.dom;return K({height:o.getStyle(t,"height")||o.getAttrib(t,"height"),class:o.getAttrib(t,"class",""),type:id(t),align:od(e,t)},n?ed(o,t):{})}(e,t.dom,ws(e))})),s=td(a),l={type:"tabpanel",tabs:[{title:"General",name:"general",items:fd(e)},Xu(e,"row")]},c={type:"panel",items:[{type:"grid",columns:2,items:fd(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:ws(e)?l:c,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:s,onSubmit:g(md,e,I(i,(function(e){return e.dom})),s)})}},gd=function(e,t,n){var o=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],r=function(e){return e.getParam("table_appearance_options",!0,"boolean")}(e)?[{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=t.length>0?[{type:"listbox",name:"class",label:"Class",items:t}]:[];return o.concat([{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}]).concat(r).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)},vd=function(e,t,n,r){if("TD"===t.tagName||"TH"===t.tagName)o(n)?e.setStyle(t,n,r):e.setStyle(t,n);else if(t.children)for(var i=0;i<t.children.length;i++)vd(e,t.children[i],n,r)},bd=function(e,t,n,o){var r=e.dom,i=o.getData(),a=Le(i,(function(e,t){return n[t]!==e}));o.close(),""===i.class&&delete i.class,e.undoManager.transact((function(){if(!t){var n=parseInt(i.cols,10)||1,o=parseInt(i.rows,10)||1;t=du(e,n,o,0,0)}if(je(a)>0){!function(e,t,n){var o=e.dom,r={},i={};if(r.class=n.class,i.height=bi(n.height),o.getAttrib(t,"width")&&!xs(e)?r.width=function(e){return e?e.replace(/px$/,""):""}(n.width):i.width=bi(n.width),xs(e)?(i["border-width"]=bi(n.border),i["border-spacing"]=bi(n.cellspacing)):(r.border=n.border,r.cellpadding=n.cellpadding,r.cellspacing=n.cellspacing),xs(e)&&t.children)for(var a=0;a<t.children.length;a++)vd(o,t.children[a],{"border-width":bi(n.border),padding:bi(n.cellpadding)}),Cs(e)&&vd(o,t.children[a],{"border-color":n.bordercolor});Cs(e)&&(i["background-color"]=n.backgroundcolor,i["border-color"]=n.bordercolor,i["border-style"]=n.borderstyle),r.style=o.serializeStyle(K(K({},ys(e)),i)),o.setAttribs(t,K(K({},bs(e)),r))}(e,t,i);var s=r.select("caption",t)[0];(s&&!i.caption||!s&&i.caption)&&e.execCommand("mceTableToggleCaption"),""===i.align?Cu(e,t):wu(e,t,i.align)}if(e.focus(),e.addVisual(),je(a)>0){var l=$e(a,"caption"),c=!l||je(a)>1;as(e,t,{structure:l,style:c})}}))},yd=function(e,t){var n,o=e.dom,r=function(e,t){var n,o,r,i,a=ys(e),s=bs(e),l=t?(n=e.dom,{borderstyle:Be(a,"border-style").getOr(""),bordercolor:Zu(n)(Be(a,"border-color").getOr("")),backgroundcolor:Zu(n)(Be(a,"background-color").getOr(""))}):{};return K(K(K(K(K(K({},{height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""}),a),s),l),(i=a["border-width"],xs(e)&&i?{border:i}:Be(s,"border").fold((function(){return{}}),(function(e){return{border:e}})))),(o=Be(a,"border-spacing").or(Be(s,"cellspacing")).fold((function(){return{}}),(function(e){return{cellspacing:e}})),r=Be(a,"border-padding").or(Be(s,"cellpadding")).fold((function(){return{}}),(function(e){return{cellpadding:e}})),K(K({},o),r)))}(e,Cs(e));!1===t?(n=o.getParent(e.selection.getStart(),"table",e.getBody()))?r=function(e,t,n){var o=e.dom,r=xs(e)?o.getStyle(t,"border-spacing")||o.getAttrib(t,"cellspacing"):o.getAttrib(t,"cellspacing")||o.getStyle(t,"border-spacing"),i=xs(e)?_u(o,t,"padding")||o.getAttrib(t,"cellpadding"):o.getAttrib(t,"cellpadding")||_u(o,t,"padding");return K({width:o.getStyle(t,"width")||o.getAttrib(t,"width"),height:o.getStyle(t,"height")||o.getAttrib(t,"height"),cellspacing:r,cellpadding:i,border:function(t,n){var o=Wt(Ce.fromDom(n),"border-width");return xs(e)&&o.isSome()?o.getOr(""):t.getAttrib(n,"border")||_u(e.dom,n,"border-width")||_u(e.dom,n,"border")}(o,t),caption:!!o.select("caption",t)[0],class:o.getAttrib(t,"class",""),align:od(e,t)},n?ed(o,t):{})}(e,n,Cs(e)):Cs(e)&&(r.borderstyle="",r.bordercolor="",r.backgroundcolor=""):(r.cols="1",r.rows="1",Cs(e)&&(r.borderstyle="",r.bordercolor="",r.backgroundcolor=""));var i=$u(Ts(e));i.length>0&&r.class&&(r.class=r.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:gd(e,i,t)},s=Cs(e)?{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},Xu(e,"table")]}:{type:"panel",items:[a]};e.windowManager.open({title:"Table Properties",size:"normal",body:s,onSubmit:g(bd,e,n,r),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r})},_d=function(e){return Si(_i(e),vi(e))},wd=function(e,t,n,i,a){var s=vi(e),l=function(e){return an(e,s)},c=function(t){return function(e){return Di(_i(e),vi(e))}(e).bind((function(e){return l(e).map((function(n){return t(n,e)}))}))},u=function(t){e.focus()},d=function(e,t){return void 0===t&&(t=!1),c((function(n,o){var r=Ti(i,n,o);e(n,r,t).each(u)}))},p=function(){return c((function(t,n){var o=Ti(i,t,n),r=di(f,Ce.fromDom(e.getDoc()),T.none());return bu(t,o,r)}))},m=function(){return c((function(e,t){var n=Ti(i,e,t);return vu(e,n)}))},h=function(t,n){return n().each((function(n){var o=I(n,(function(e){return To(e)}));c((function(n,r){var a=fi(Ce.fromDom(e.getDoc())),s=function(e,t,n,o){return{selection:wi(e),clipboard:n,generators:o}}(i,0,o,a);t(n,s).each(u)}))}))},v=function(e){return function(t,n){return Be(n,"type").each((function(t){d(e(t),n.no_events)}))}};Ie({mceTableSplitCells:function(){return d(t.unmergeCells)},mceTableMergeCells:function(){return d(t.mergeCells)},mceTableInsertRowBefore:function(){return d(t.insertRowsBefore)},mceTableInsertRowAfter:function(){return d(t.insertRowsAfter)},mceTableInsertColBefore:function(){return d(t.insertColumnsBefore)},mceTableInsertColAfter:function(){return d(t.insertColumnsAfter)},mceTableDeleteCol:function(){return d(t.deleteColumn)},mceTableDeleteRow:function(){return d(t.deleteRow)},mceTableCutCol:function(){return m().each((function(e){a.setColumns(e),d(t.deleteColumn)}))},mceTableCutRow:function(){return p().each((function(e){a.setRows(e),d(t.deleteRow)}))},mceTableCopyCol:function(){return m().each((function(e){return a.setColumns(e)}))},mceTableCopyRow:function(){return p().each((function(e){return a.setRows(e)}))},mceTablePasteColBefore:function(){return h(t.pasteColsBefore,a.getColumns)},mceTablePasteColAfter:function(){return h(t.pasteColsAfter,a.getColumns)},mceTablePasteRowBefore:function(){return h(t.pasteRowsBefore,a.getRows)},mceTablePasteRowAfter:function(){return h(t.pasteRowsAfter,a.getRows)},mceTableDelete:function(){return _d(e).each((function(t){an(t,s).filter(y(s)).each((function(t){var n=Ce.fromText("");if(Bn(t,n),Yn(t),e.dom.isEmpty(e.getBody()))e.setContent(""),e.selection.setCursorLocation();else{var o=e.dom.createRng();o.setStart(n.dom,0),o.setEnd(n.dom,0),e.selection.setRng(o),e.nodeChanged()}}))}))},mceTableCellToggleClass:function(t,n){c((function(t){var o=ki(i),r=U(o,(function(t){return e.formatter.match("tablecellclass",{value:n},t.dom)}))?e.formatter.remove:e.formatter.apply;P(o,(function(e){return r("tablecellclass",{value:n},e.dom)})),as(e,t.dom,ss)}))},mceTableToggleClass:function(t,n){c((function(t){e.formatter.toggle("tableclass",{value:n},t.dom),as(e,t.dom,ss)}))},mceTableToggleCaption:function(){_d(e).each((function(t){an(t,s).each((function(n){Tt(n,"caption").fold((function(){var t=Ce.fromTag("caption");zn(t,Ce.fromText("Caption")),function(e,t,n){ct(e,n).fold((function(){zn(e,t)}),(function(e){jn(e,t)}))}(n,t,0),e.selection.setCursorLocation(t.dom,0)}),(function(o){tt("caption")(t)&&Te("td",n).each((function(t){return e.selection.setCursorLocation(t.dom,0)})),Yn(o)})),as(e,n.dom,ls)}))}))},mceTableSizingMode:function(t,n){return function(t){return _d(e).each((function(n){Ds(e)||Ss(e)||Es(e)||an(n,s).each((function(n){"relative"!==t||aa(n)?"fixed"!==t||sa(n)?"responsive"!==t||la(n)||zs(n):$s(n):Bs(n),yi(n),as(e,n.dom,ls)}))}))}(n)},mceTableCellType:v((function(e){return"th"===e?t.makeCellsHeader:t.unmakeCellsHeader})),mceTableColType:v((function(e){return"th"===e?t.makeColumnsHeader:t.unmakeColumnsHeader})),mceTableRowType:v((function(e){switch(e){case"header":return t.makeRowsHeader;case"footer":return t.makeRowsFooter;default:return t.makeRowsBody}}))},(function(t,n){return e.addCommand(n,t)})),Ie({mceTableProps:g(yd,e,!1),mceTableRowProps:g(hd,e),mceTableCellProps:g(ud,e,i)},(function(t,n){return e.addCommand(n,(function(){return t()}))})),e.addCommand("mceInsertTable",(function(t,n){r(n)&&Ae(n).length>0?fu(e,n.rows,n.columns,n.options):yd(e,!0)})),e.addCommand("mceTableApplyCellStyle",(function(t,n){var a=function(e){return"tablecell"+e.toLowerCase().replace("-","")};if(r(n)){var s=ki(i);if(0!==s.length){var c=Le(n,(function(t,n){return e.formatter.has(a(n))&&o(t)}));(function(e){for(var t in e)if(Me.call(e,t))return!1;return!0})(c)||(Ie(c,(function(t,n){P(s,(function(o){Qu.normal(e,o.dom).setFormat(a(n),t)}))})),l(s[0]).each((function(t){return as(e,t.dom,ss)})))}}}))},Cd={remove_similar:!0,inherit:!1},xd=K({selector:"td,th"},Cd),Od={tablecellbackgroundcolor:K({styles:{backgroundColor:"%value"}},xd),tablecellverticalalign:K({styles:{"vertical-align":"%value"}},xd),tablecellbordercolor:K({styles:{borderColor:"%value"}},xd),tablecellclass:K({classes:["%value"]},xd),tableclass:K({selector:"table",classes:["%value"]},Cd),tablecellborderstyle:K({styles:{borderStyle:"%value"}},xd),tablecellborderwidth:K({styles:{borderWidth:"%value"}},xd)},Td=go([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),Ed=K(K({},Td),{none:function(e){return void 0===e&&(e=void 0),Td.none(e)}}),Sd=function(e,t,n,o,r){void 0===r&&(r=w);var i=1===o;if(!i&&n<=0)return Ed.first(e[0]);if(i&&n>=e.length-1)return Ed.last(e[e.length-1]);var a=n+o,s=e[a];return r(s)?Ed.middle(t,s):Sd(e,t,a,o,r)},Dd=function(e,t){return an(e,t).bind((function(t){var n=on(t);return B(n,(function(t){return Ee(e,t)})).map((function(e){return{index:e,all:n}}))}))},kd=function(e,t,n,o){return{start:e,soffset:t,finish:n,foffset:o}},Ad=go([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Md={before:Ad.before,on:Ad.on,after:Ad.after,cata:function(e,t,n,o){return e.fold(t,n,o)},getStart:function(e){return e.fold(m,m,m)}},Id=go([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Pd={domRange:Id.domRange,relative:Id.relative,exact:Id.exact,exactFromRange:function(e){return Id.exact(e.start,e.soffset,e.finish,e.foffset)},getWin:function(e){var t,n=function(e){return e.match({domRange:function(e){return Ce.fromDom(e.startContainer)},relative:function(e,t){return Md.getStart(e)},exact:function(e,t,n,o){return e}})}(e);return t=n,Ce.fromDom(ot(t).dom.defaultView)},range:kd},Rd=function(e,t){var n=e.document.createRange();return n.selectNode(t.dom),n},Ld=function(e,t){var n=e.document.createRange();return Nd(n,t),n},Nd=function(e,t){return e.selectNodeContents(t.dom)},Fd=function(e,t,n){var o,r=e.document.createRange();return o=r,t.fold((function(e){o.setStartBefore(e.dom)}),(function(e,t){o.setStart(e.dom,t)}),(function(e){o.setStartAfter(e.dom)})),function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))}(r,n),r},jd=function(e,t,n,o,r){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(o.dom,r),i},Bd=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},$d=go([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),zd=function(e,t,n){return t(Ce.fromDom(n.startContainer),n.startOffset,Ce.fromDom(n.endContainer),n.endOffset)},Ud=function(e,t){return function(e,t){var n=t.ltr();return n.collapsed?t.rtl().filter((function(e){return!1===e.collapsed})).map((function(e){return $d.rtl(Ce.fromDom(e.endContainer),e.endOffset,Ce.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return zd(0,$d.ltr,n)})):zd(0,$d.ltr,n)}(0,function(e,t){return t.match({domRange:function(e){return{ltr:p(e),rtl:T.none}},relative:function(t,n){return{ltr:J((function(){return Fd(e,t,n)})),rtl:J((function(){return T.some(Fd(e,n,t))}))}},exact:function(t,n,o,r){return{ltr:J((function(){return jd(e,t,n,o,r)})),rtl:J((function(){return T.some(jd(e,o,r,t,n))}))}}})}(e,t))},Vd=function(e,t){return Ud(e,t).match({ltr:function(t,n,o,r){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(o.dom,r),i},rtl:function(t,n,o,r){var i=e.document.createRange();return i.setStart(o.dom,r),i.setEnd(t.dom,n),i}})};$d.ltr,$d.rtl;var Hd=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},Wd=function(e,t,n,o,r){var i=function(n){var o=e.dom.createRange();return o.setStart(t.dom,n),o.collapse(!0),o},a=Kn(t).length,s=function(e,t,n,o,r){if(0===r)return 0;if(t===o)return r-1;for(var i=o,a=1;a<r;a++){var s=e(a),l=Math.abs(t-s.left);if(n<=s.bottom){if(n<s.top||l>i)return a-1;i=l}}return 0}((function(e){return i(e).getBoundingClientRect()}),n,o,r.right,a);return i(s)},Yd=function(e,t,n,o){return Qe(t)?function(e,t,n,o){var r=e.dom.createRange();r.selectNode(t.dom);var i=r.getClientRects();return G(i,(function(e){return Hd(e,n,o)?T.some(e):T.none()})).map((function(r){return Wd(e,t,n,o,r)}))}(e,t,n,o):function(e,t,n,o){var r=e.dom.createRange(),i=lt(t);return G(i,(function(t){return r.selectNode(t.dom),Hd(r.getBoundingClientRect(),n,o)?Yd(e,t,n,o):T.none()}))}(e,t,n,o)},qd=function(e,t){return t-e.left<e.right-t},Gd=function(e,t,n){var o=e.dom.createRange();return o.selectNode(t.dom),o.collapse(n),o},Kd=function(e,t,n){var o=e.dom.createRange();o.selectNode(t.dom);var r=o.getBoundingClientRect(),i=qd(r,n);return(!0===i?ti:ni)(t).map((function(t){return Gd(e,t,i)}))},Xd=function(e,t,n){var o=t.dom.getBoundingClientRect(),r=qd(o,n);return T.some(Gd(e,t,r))},Jd=function(e,t,n){var o,r;return T.from(null===(r=(o=e.dom).caretPositionFromPoint)||void 0===r?void 0:r.call(o,t,n)).bind((function(t){if(null===t.offsetNode)return T.none();var n=e.dom.createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),T.some(n)}))},Qd=function(e,t,n){var o,r;return T.from(null===(r=(o=e.dom).caretRangeFromPoint)||void 0===r?void 0:r.call(o,t,n))},Zd=function(e,t,n,o){var r=e.dom.createRange();r.selectNode(t.dom);var i=r.getBoundingClientRect();return function(e,t,n,o){var r=e.dom.createRange();r.selectNode(t.dom);var i=r.getBoundingClientRect(),a=Math.max(i.left,Math.min(i.right,n)),s=Math.max(i.top,Math.min(i.bottom,o));return Yd(e,t,a,s)}(e,t,Math.max(i.left,Math.min(i.right,n)),Math.max(i.top,Math.min(i.bottom,o)))},ef=function(e,t,n){return Ce.fromPoint(e,t,n).bind((function(o){var r=function(){return function(e,t,n){return(0===lt(t).length?Xd:Kd)(e,t,n)}(e,o,t)};return 0===lt(o).length?r():Zd(e,o,t,n).orThunk(r)}))},tf=document.caretPositionFromPoint?Jd:document.caretRangeFromPoint?Qd:ef,nf=function(e,t){var n=qe(e);return"input"===n?Md.after(e):k(["br","img"],n)?0===t?Md.before(e):Md.after(e):Md.on(e,t)},of=function(e,t){var n=e.fold(Md.before,nf,Md.after),o=t.fold(Md.before,nf,Md.after);return Pd.relative(n,o)},rf=function(e,t,n,o){var r=nf(e,t),i=nf(n,o);return Pd.relative(r,i)},af=function(e,t,n,o){var r=function(e,t,n,o){var r=nt(e).dom.createRange();return r.setStart(e.dom,t),r.setEnd(n.dom,o),r}(e,t,n,o),i=Ee(e,n)&&t===o;return r.collapsed&&!i},sf=function(e){return T.from(e.getSelection())},lf=function(e,t){sf(e).each((function(e){e.removeAllRanges(),e.addRange(t)}))},cf=function(e,t,n,o,r){var i=jd(e,t,n,o,r);lf(e,i)},uf=function(e,t){return Ud(e,t).match({ltr:function(t,n,o,r){cf(e,t,n,o,r)},rtl:function(t,n,o,r){sf(e).each((function(i){if(i.setBaseAndExtent)i.setBaseAndExtent(t.dom,n,o.dom,r);else if(i.extend)try{!function(e,t,n,o,r,i){t.collapse(n.dom,o),t.extend(r.dom,i)}(0,i,t,n,o,r)}catch(i){cf(e,o,r,t,n)}else cf(e,o,r,t,n)}))}})},df=function(e,t,n,o,r){var i=rf(t,n,o,r);uf(e,i)},ff=function(e,t,n){var o=of(t,n);uf(e,o)},pf=function(e){var t=Pd.getWin(e).dom,n=function(e,n,o,r){return jd(t,e,n,o,r)},o=function(e){return e.match({domRange:function(e){var t=Ce.fromDom(e.startContainer),n=Ce.fromDom(e.endContainer);return rf(t,e.startOffset,n,e.endOffset)},relative:of,exact:rf})}(e);return Ud(t,o).match({ltr:n,rtl:n})},mf=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return T.some(kd(Ce.fromDom(t.startContainer),t.startOffset,Ce.fromDom(n.endContainer),n.endOffset))}return T.none()},hf=function(e){if(null===e.anchorNode||null===e.focusNode)return mf(e);var t=Ce.fromDom(e.anchorNode),n=Ce.fromDom(e.focusNode);return af(t,e.anchorOffset,n,e.focusOffset)?T.some(kd(t,e.anchorOffset,n,e.focusOffset)):mf(e)},gf=function(e,t,n){void 0===n&&(n=!0);var o=(n?Ld:Rd)(e,t);lf(e,o)},vf=function(e){return function(e){return sf(e).filter((function(e){return e.rangeCount>0})).bind(hf)}(e).map((function(e){return Pd.exact(e.start,e.soffset,e.finish,e.foffset)}))},bf=function(e,t){return function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?T.some(n).map(Bd):T.none()}(Vd(e,t))},yf=function(e,t,n){return function(e,t,n){var o=Ce.fromDom(e.document);return tf(o,t,n).map((function(e){return kd(Ce.fromDom(e.startContainer),e.startOffset,Ce.fromDom(e.endContainer),e.endOffset)}))}(e,t,n)},_f=tinymce.util.Tools.resolve("tinymce.util.VK"),wf=function(e,t,n){return xf(e,t,function(e,t,n){return Dd(e,n).fold((function(){return Ed.none(e)}),(function(n){return Sd(n.all,e,n.index,1,t)}))}(n,ja))},Cf=function(e,t,n){return xf(e,t,function(e,t,n){return Dd(e,n).fold((function(){return Ed.none()}),(function(n){return Sd(n.all,e,n.index,-1,t)}))}(n,ja))},xf=function(e,t,n){return n.fold(T.none,T.none,(function(e,t){return ti(t).map((function(e){return function(e,t){var n=Pd.exact(t,0,t,0);return pf(n)}(0,e)}))}),(function(n){return e.execCommand("mceTableInsertRowAfter"),wf(e,t,n)}))},Of=["table","li","dl"],Tf=function(e,t){return{selection:e,kill:t}},Ef=function(e,t,n,o){return{start:Md.on(e,t),finish:Md.on(n,o)}},Sf=function(e,t){var n=Vd(e,t);return kd(Ce.fromDom(n.startContainer),n.startOffset,Ce.fromDom(n.endContainer),n.endOffset)},Df=Ef,kf=function(e,t,n,o,r){return Ee(n,o)?T.none():co(n,o,t).bind((function(t){var o=t.boxes.getOr([]);return o.length>1?(r(e,o,t.start,t.finish),T.some(Tf(T.some(Df(n,0,n,Qr(n))),!0))):T.none()}))},Af=function(e,t){return{item:e,mode:t}},Mf=function(e,t,n,o){return void 0===o&&(o=If),e.property().parent(t).map((function(e){return Af(e,o)}))},If=function(e,t,n,o){return void 0===o&&(o=Pf),n.sibling(e,t).map((function(e){return Af(e,o)}))},Pf=function(e,t,n,o){void 0===o&&(o=Pf);var r=e.property().children(t);return n.first(r).map((function(e){return Af(e,o)}))},Rf=[{current:Mf,next:If,fallback:T.none()},{current:If,next:Pf,fallback:T.some(Mf)},{current:Pf,next:Pf,fallback:T.some(If)}],Lf=function(e,t,n,o,r){return void 0===r&&(r=Rf),j(r,(function(e){return e.current===n})).bind((function(n){return n.current(e,t,o,n.next).orThunk((function(){return n.fallback.bind((function(n){return Lf(e,t,n,o)}))}))}))},Nf=function(){return{sibling:function(e,t){return e.query().prevSibling(t)},first:function(e){return e.length>0?T.some(e[e.length-1]):T.none()}}},Ff=function(){return{sibling:function(e,t){return e.query().nextSibling(t)},first:function(e){return e.length>0?T.some(e[0]):T.none()}}},jf=function(e,t,n,o,r,i){return Lf(e,t,o,r).bind((function(t){return i(t.item)?T.none():n(t.item)?T.some(t.item):jf(e,t.item,n,t.mode,r,i)}))},Bf=function(e){return function(t){return 0===e.property().children(t).length}},$f=function(e,t,n,o){return jf(e,t,n,If,Nf(),o)},zf=function(e,t,n,o){return jf(e,t,n,If,Ff(),o)},Uf=Zn(),Vf=function(e,t){return function(e,t,n){return $f(e,t,Bf(e),n)}(Uf,e,t)},Hf=function(e,t){return function(e,t,n){return zf(e,t,Bf(e),n)}(Uf,e,t)},Wf=go([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Yf=function(e){return St(e,"tr")},qf=K(K({},Wf),{verify:function(e,t,n,o,r,i,a){return St(o,"td,th",a).bind((function(n){return St(t,"td,th",a).map((function(t){return Ee(n,t)?Ee(o,n)&&Qr(n)===r?i(t):Wf.none("in same cell"):so(Yf,[n,t]).fold((function(){return function(e,t,n){var o=e.getRect(t),r=e.getRect(n);return r.right>o.left&&r.left<o.right}(e,t,n)?Wf.success():i(t)}),(function(e){return i(t)}))}))})).getOr(Wf.none("default"))},cata:function(e,t,n,o,r){return e.fold(t,n,o,r)}}),Gf=function(e,t){return B(e,g(Ee,t))},Kf=function(e){return"br"===qe(e)},Xf=function(e,t,n){return t(e,n).bind((function(e){return Qe(e)&&0===Kn(e).trim().length?Xf(e,t,n):T.some(e)}))},Jf=function(e,t,n,o){return function(e,t){return ct(e,t).filter(Kf).orThunk((function(){return ct(e,t-1).filter(Kf)}))}(t,n).bind((function(t){return o.traverse(t).fold((function(){return Xf(t,o.gather,e).map(o.relative)}),(function(e){return function(e){return rt(e).bind((function(t){var n=lt(t);return Gf(n,e).map((function(o){return function(e,t,n,o){return{parent:e,children:t,element:n,index:o}}(t,n,e,o)}))}))}(e).map((function(e){return Md.on(e.parent,e.index)}))}))}))},Qf=function(e,t,n,o){return(Kf(t)?function(e,t,n){return n.traverse(t).orThunk((function(){return Xf(t,n.gather,e)})).map(n.relative)}(e,t,o):Jf(e,t,n,o)).map((function(e){return{start:e,finish:e}}))},Zf=function(e,t){return{left:e.left,top:e.top+t,right:e.right,bottom:e.bottom+t}},ep=function(e,t){return{left:e.left,top:e.top-t,right:e.right,bottom:e.bottom-t}},tp=function(e,t,n){return{left:e.left+t,top:e.top+n,right:e.right+t,bottom:e.bottom+n}},np=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}},op=function(e,t){return T.some(e.getRect(t))},rp=function(e,t,n){return Je(t)?op(e,t).map(np):Qe(t)?function(e,t,n){return n>=0&&n<Qr(t)?e.getRangedRect(t,n,t,n+1):n>0?e.getRangedRect(t,n-1,t,n):T.none()}(e,t,n).map(np):T.none()},ip=function(e,t){return Je(t)?op(e,t).map(np):Qe(t)?e.getRangedRect(t,0,t,Qr(t)).map(np):T.none()},ap=go([{none:[]},{retry:["caret"]}]),sp=function(e,t,n){return(o=t,r=pc,Ct((function(e,t){return t(e)}),xt,o,r,i)).fold(_,(function(t){return ip(e,t).exists((function(e){return function(e,t){return e.left<t.left||Math.abs(t.right-e.left)<1||e.left>t.right}(n,e)}))}));var o,r,i},lp={point:function(e){return e.bottom},adjuster:function(e,t,n,o,r){var i=Zf(r,5);return Math.abs(n.bottom-o.bottom)<1||n.top>r.bottom?ap.retry(i):n.top===r.bottom?ap.retry(Zf(r,1)):sp(e,t,r)?ap.retry(tp(i,5,0)):ap.none()},move:Zf,gather:Hf},cp=function(e,t,n,o,r){return 0===r?T.some(o):function(e,t,n){return e.elementFromPoint(t,n).filter((function(e){return"table"===qe(e)})).isSome()}(e,o.left,t.point(o))?function(e,t,n,o,r){return cp(e,t,n,t.move(o,5),r)}(e,t,n,o,r-1):e.situsFromPoint(o.left,t.point(o)).bind((function(i){return i.start.fold(T.none,(function(i){return ip(e,i).bind((function(a){return t.adjuster(e,i,a,n,o).fold(T.none,(function(o){return cp(e,t,n,o,r-1)}))})).orThunk((function(){return T.some(o)}))}),T.none)}))},up=function(e,t,n){var o=e.move(n,5),r=cp(t,e,n,o,100).getOr(o);return function(e,t,n){return e.point(t)>n.getInnerHeight()?T.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?T.some(-e.point(t)):T.none()}(e,r,t).fold((function(){return t.situsFromPoint(r.left,e.point(r))}),(function(n){return t.scrollBy(0,n),t.situsFromPoint(r.left,e.point(r)-n)}))},dp={tryUp:g(up,{point:function(e){return e.top},adjuster:function(e,t,n,o,r){var i=ep(r,5);return Math.abs(n.top-o.top)<1||n.bottom<r.top?ap.retry(i):n.bottom===r.top?ap.retry(ep(r,1)):sp(e,t,r)?ap.retry(tp(i,5,0)):ap.none()},move:ep,gather:Vf}),tryDown:g(up,lp),ieTryUp:function(e,t){return e.situsFromPoint(t.left,t.top-5)},ieTryDown:function(e,t){return e.situsFromPoint(t.left,t.bottom+5)},getJumpSize:p(5)},fp=function(e,t,n){return e.getSelection().bind((function(o){return Qf(t,o.finish,o.foffset,n).fold((function(){return T.some(Ws(o.finish,o.foffset))}),(function(r){var i=e.fromSitus(r);return function(e){return qf.cata(e,(function(e){return T.none()}),(function(){return T.none()}),(function(e){return T.some(Ws(e,0))}),(function(e){return T.some(Ws(e,Qr(e)))}))}(qf.verify(e,o.finish,o.foffset,i.finish,i.foffset,n.failure,t))}))}))},pp=function(e,t,n,o,r,i){return 0===i?T.none():gp(e,t,n,o,r).bind((function(a){var s=e.fromSitus(a),l=qf.verify(e,n,o,s.finish,s.foffset,r.failure,t);return qf.cata(l,(function(){return T.none()}),(function(){return T.some(a)}),(function(a){return Ee(n,a)&&0===o?mp(e,n,o,ep,r):pp(e,t,a,0,r,i-1)}),(function(a){return Ee(n,a)&&o===Qr(a)?mp(e,n,o,Zf,r):pp(e,t,a,Qr(a),r,i-1)}))}))},mp=function(e,t,n,o,r){return rp(e,t,n).bind((function(t){return hp(e,r,o(t,dp.getJumpSize()))}))},hp=function(e,t,n){var o=_e().browser;return o.isChrome()||o.isSafari()||o.isFirefox()||o.isEdge()?t.otherRetry(e,n):o.isIE()?t.ieRetry(e,n):T.none()},gp=function(e,t,n,o,r){return rp(e,n,o).bind((function(t){return hp(e,r,t)}))},vp=function(e,t){return xt(e,(function(e){return rt(e).exists((function(e){return Ee(e,t)}))}),n).isSome();var n},bp=function(e,t,n,o,r){return St(o,"td,th",t).bind((function(o){return St(o,"table",t).bind((function(i){return vp(r,i)?function(e,t,n){return fp(e,t,n).bind((function(o){return pp(e,t,o.element,o.offset,n,20).map(e.fromSitus)}))}(e,t,n).bind((function(e){return St(e.finish,"td,th",t).map((function(t){return{start:o,finish:t,range:e}}))})):T.none()}))}))},yp=function(e,t,n,o,r,i){return _e().browser.isIE()?T.none():i(o,t).orThunk((function(){return bp(e,t,n,o,r).map((function(e){var t=e.range;return Tf(T.some(Df(t.start,t.soffset,t.finish,t.foffset)),!0)}))}))},_p=function(e,t){return St(e,"tr",t).bind((function(e){return St(e,"table",t).bind((function(n){var o=wt(n,"tr");return Ee(e,o[0])?function(e,t,n){return $f(Uf,e,t,n)}(n,(function(e){return ni(e).isSome()}),t).map((function(e){var t=Qr(e);return Tf(T.some(Df(e,t,e,t)),!0)})):T.none()}))}))},wp=function(e,t){return St(e,"tr",t).bind((function(e){return St(e,"table",t).bind((function(n){var o=wt(n,"tr");return Ee(e,o[o.length-1])?function(e,t,n){return zf(Uf,e,t,n)}(n,(function(e){return ti(e).isSome()}),t).map((function(e){return Tf(T.some(Df(e,0,e,0)),!0)})):T.none()}))}))},Cp=function(e,t,n,o,r,i,a){return bp(e,n,o,r,i).bind((function(e){return kf(t,n,e.start,e.finish,a)}))},xp=function(e,t){return St(e,"td,th",t)},Op={traverse:st,gather:Hf,relative:Md.before,otherRetry:dp.tryDown,ieRetry:dp.ieTryDown,failure:qf.failedDown},Tp={traverse:at,gather:Vf,relative:Md.before,otherRetry:dp.tryUp,ieRetry:dp.ieTryUp,failure:qf.failedUp},Ep=function(e){return function(t){return t===e}},Sp=Ep(38),Dp=Ep(40),kp=function(e){return e>=37&&e<=40},Ap={isBackward:Ep(37),isForward:Ep(39)},Mp={isBackward:Ep(39),isForward:Ep(37)},Ip=function(e){return{elementFromPoint:function(t,n){return Ce.fromPoint(Ce.fromDom(e.document),t,n)},getRect:function(e){return e.dom.getBoundingClientRect()},getRangedRect:function(t,n,o,r){var i=Pd.exact(t,n,o,r);return bf(e,i)},getSelection:function(){return vf(e).map((function(t){return Sf(e,t)}))},fromSitus:function(t){var n=Pd.relative(t.start,t.finish);return Sf(e,n)},situsFromPoint:function(t,n){return yf(e,t,n).map((function(e){return Ef(e.start,e.soffset,e.finish,e.foffset)}))},clearSelection:function(){!function(e){sf(e).each((function(e){return e.removeAllRanges()}))}(e)},collapseSelection:function(t){void 0===t&&(t=!1),vf(e).each((function(n){return n.fold((function(e){return e.collapse(t)}),(function(n,o){var r=t?n:o;ff(e,r,r)}),(function(n,o,r,i){var a=t?n:r,s=t?o:i;df(e,a,s,a,s)}))}))},setSelection:function(t){df(e,t.start,t.soffset,t.finish,t.foffset)},setRelativeSelection:function(t,n){ff(e,t,n)},selectNode:function(t){gf(e,t,!1)},selectContents:function(t){gf(e,t)},getInnerHeight:function(){return e.innerHeight},getScrollY:function(){var t,n,o,r;return(t=Ce.fromDom(e.document),n=void 0!==t?t.dom:document,o=n.body.scrollLeft||n.documentElement.scrollLeft,r=n.body.scrollTop||n.documentElement.scrollTop,Xo(o,r)).top},scrollBy:function(t,n){!function(e,t,n){var o=(void 0!==n?n.dom:document).defaultView;o&&o.scrollBy(e,t)}(t,n,Ce.fromDom(e.document))}}},Pp=function(e,t){return{rows:e,cols:t}},Rp=function(e,t,n,o){var r=function(e,t,n,o){var r=Fu(),i=r.clear,a=function(i){r.on((function(r){o.clearBeforeUpdate(t),xp(i.target,n).each((function(a){co(r,a,n).each((function(n){var r=n.boxes.getOr([]);if(1===r.length){var s=r[0],l="false"===Ba(s),c=Lt(Fa(i.target),s,Ee);l&&c&&(o.selectRange(t,r,s,s),e.selectContents(s))}else r.length>1&&(o.selectRange(t,r,n.start,n.finish),e.selectContents(a))}))}))}))};return{clearstate:i,mousedown:function(e){o.clear(t),xp(e.target,n).each(r.set)},mouseover:function(e){a(e)},mouseup:function(e){a(e),i()}}}(Ip(e),t,n,o);return{clearstate:r.clearstate,mousedown:r.mousedown,mouseover:r.mouseover,mouseup:r.mouseup}},Lp=function(e,t,n,o){var r=Ip(e),i=function(){return o.clear(t),T.none()};return{keydown:function(e,a,s,l,c,u){var d=e.raw,f=d.which,p=!0===d.shiftKey;return uo(t,o.selectedSelector).fold((function(){return kp(f)&&!p&&o.clearBeforeUpdate(t),Dp(f)&&p?g(Cp,r,t,n,Op,l,a,o.selectRange):Sp(f)&&p?g(Cp,r,t,n,Tp,l,a,o.selectRange):Dp(f)?g(yp,r,n,Op,l,a,wp):Sp(f)?g(yp,r,n,Tp,l,a,_p):T.none}),(function(e){var n=function(n){return function(){return G(n,(function(n){return function(e,t,n,o,r){return po(o,e,t,r.firstSelectedSelector,r.lastSelectedSelector).map((function(e){return r.clearBeforeUpdate(n),r.selectRange(n,e.boxes,e.start,e.finish),e.boxes}))}(n.rows,n.cols,t,e,o)})).fold((function(){return fo(t,o.firstSelectedSelector,o.lastSelectedSelector).map((function(e){var n=Dp(f)||u.isForward(f)?Md.after:Md.before;return r.setRelativeSelection(Md.on(e.first,0),n(e.table)),o.clear(t),Tf(T.none(),!0)}))}),(function(e){return T.some(Tf(T.none(),!0))}))}};return Dp(f)&&p?n([Pp(1,0)]):Sp(f)&&p?n([Pp(-1,0)]):u.isBackward(f)&&p?n([Pp(0,-1),Pp(-1,0)]):u.isForward(f)&&p?n([Pp(0,1),Pp(1,0)]):kp(f)&&!p?i:T.none}))()},keyup:function(e,r,i,a,s){return uo(t,o.selectedSelector).fold((function(){var l=e.raw,c=l.which;return!0===l.shiftKey&&kp(c)?function(e,t,n,o,r,i,a){return Ee(n,r)&&o===i?T.none():St(n,"td,th",t).bind((function(n){return St(r,"td,th",t).bind((function(o){return kf(e,t,n,o,a)}))}))}(t,n,r,i,a,s,o.selectRange):T.none()}),T.none)}}},Np=function(e,t,n){var o=function(t){Pt(t,e.selected),Pt(t,e.firstSelected),Pt(t,e.lastSelected)},r=function(t){kt(t,e.selected,"1")},i=function(e){a(e),n()},a=function(t){var n=wt(t,e.selectedSelector+","+e.firstSelectedSelector+","+e.lastSelectedSelector);P(n,o)};return{clearBeforeUpdate:a,clear:i,selectRange:function(n,o,a,s){i(n),P(o,r),kt(a,e.firstSelected,"1"),kt(s,e.lastSelected,"1"),t(o,a,s)},selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},Fp=function(e,t,n){var o=Sn.fromTable(e);return Tl(o,t).map((function(e){var t=yl(o,n,!1);return{upOrLeftCells:function(e,t){var n=e.slice(0,t[t.length-1].row+1),o=_l(n);return z(o,(function(e){var n=e.cells.slice(0,t[t.length-1].column+1);return I(n,(function(e){return e.element}))}))}(t,e),downOrRightCells:function(e,t){var n=e.slice(t[0].row+t[0].rowspan-1,e.length),o=_l(n);return z(o,(function(e){var n=e.cells.slice(t[0].column+t[0].colspan-1,e.cells.length);return I(n,(function(e){return e.element}))}))}(t,e)}}))},jp=tinymce.util.Tools.resolve("tinymce.Env"),Bp=function(e){return!1===Ia(Ce.fromDom(e.target),"ephox-snooker-resizer-bar")};function $p(e,t,n){var o=Np(Oi,(function(t,o,r){n.targets().each((function(n){an(o).each((function(i){var a=Rs(e),s=di(f,Ce.fromDom(e.getDoc()),a),l=Fp(i,n,s);!function(e,t,n,o,r){e.fire("TableSelectionChange",{cells:t,start:n,finish:o,otherCells:r})}(e,t,o,r,l)}))}))}),(function(){return function(e){e.fire("TableSelectionClear")}(e)}));return e.on("init",(function(n){var r=e.getWin(),i=mi(e),a=vi(e),s=Rp(r,i,a,o),l=Lp(r,i,a,o),c=function(e,t,n,o){var r=Ip(e);return function(e,i){o.clearBeforeUpdate(t),co(e,i,n).each((function(e){var n=e.boxes.getOr([]);o.selectRange(t,n,e.start,e.finish),r.selectContents(i),r.collapseSelection()}))}}(r,i,a,o);e.on("TableSelectorChange",(function(e){return c(e.start,e.finish)}));var u,d,p=function(t,n){(function(e){return!0===e.raw.shiftKey})(t)&&(n.kill&&t.kill(),n.selection.each((function(t){var n=Pd.relative(t.start,t.finish),o=Vd(r,n);e.selection.setRng(o)})))},m=function(e){return 0===e.button},h=(u=Lu(Ce.fromDom(i)),d=Lu(0),{touchEnd:function(e){var t=Ce.fromDom(e.target);if("td"===qe(t)||"th"===qe(t)){var n=u.get(),o=d.get();Ee(n,t)&&e.timeStamp-o<300&&(e.preventDefault(),c(t,t))}u.set(t),d.set(e.timeStamp)}});e.on("dragstart",(function(e){s.clearstate()})),e.on("mousedown",(function(e){m(e)&&Bp(e)&&s.mousedown(Sa(e))})),e.on("mouseover",(function(e){var t;(void 0===(t=e).buttons||jp.browser.isEdge()&&0===t.buttons||0!=(1&t.buttons))&&Bp(e)&&s.mouseover(Sa(e))})),e.on("mouseup",(function(e){m(e)&&Bp(e)&&s.mouseup(Sa(e))})),e.on("touchend",h.touchEnd),e.on("keyup",(function(t){var n=Sa(t);if(n.raw.shiftKey&&kp(n.raw.which)){var o=e.selection.getRng(),r=Ce.fromDom(o.startContainer),i=Ce.fromDom(o.endContainer);l.keyup(n,r,o.startOffset,i,o.endOffset).each((function(e){p(n,e)}))}})),e.on("keydown",(function(n){var o=Sa(n);t().each((function(e){return e.hideBars()}));var r=e.selection.getRng(),i=Ce.fromDom(r.startContainer),a=Ce.fromDom(r.endContainer),s=Vo(Ap,Mp)(Ce.fromDom(e.selection.getStart()));l.keydown(o,i,r.startOffset,a,r.endOffset,s).each((function(e){p(o,e)})),t().each((function(e){return e.showBars()}))})),e.on("NodeChange",(function(){var t=e.selection,n=Ce.fromDom(t.getStart()),r=Ce.fromDom(t.getEnd());so(an,[n,r]).fold((function(){return o.clear(i)}),f)}))})),{clear:o.clear}}var zp=function(e,t){var n=Lu(T.none()),o=Lu([]),r=T.none(),i=tt("caption"),a=function(e){return r.forall((function(t){return!t[e]}))},s=function(){return Si(function(e){return Ce.fromDom(e.selection.getEnd())}(e),vi(e))},l=function(){return Si(_i(e),vi(e)).bind((function(e){return Ft(an(e),s().bind(an),(function(n,o){return Ee(n,o)?i(e)?T.some(function(e){return{element:e,mergable:T.none(),unmergable:T.none(),selection:[e]}}(e)):T.some(Ti(t,n,e)):T.none()})).bind(m)}))},c=function(e){return an(e.element).map((function(t){var n=Sn.fromTable(t),o=Tl(n,e).getOr([]),r=F(o,(function(e,t){return t.isLocked&&(e.onAny=!0,0===t.column?e.onFirst=!0:t.column+t.colspan>=n.grid.columns&&(e.onLast=!0)),e}),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:Dl(n,e).isSome(),unmergeable:kl(n,e).isSome(),locked:r}}))},u=function(){n.set(J(l)()),r=n.get().bind(c),P(o.get(),(function(e){return e()}))},d=function(e){return e(),o.set(o.get().concat([e])),function(){o.set(L(o.get(),(function(t){return t!==e})))}},f=function(e,t){return d((function(){return n.get().fold((function(){e.setDisabled(!0)}),(function(n){e.setDisabled(t(n))}))}))},p=function(e,t,o){return d((function(){return n.get().fold((function(){e.setDisabled(!0),e.setActive(!1)}),(function(n){e.setDisabled(t(n)),e.setActive(o(n))}))}))},h=function(e){return r.exists((function(t){return t.locked[e]}))},g=function(t,n){return function(o){return p(o,(function(e){return i(e.element)}),(function(){return e.queryCommandValue(t)===n}))}},v=g("mceTableRowType","header"),b=g("mceTableColType","th");return e.on("NodeChange ExecCommand TableSelectorChange",u),{onSetupTable:function(e){return f(e,(function(e){return!1}))},onSetupCellOrRow:function(e){return f(e,(function(e){return i(e.element)}))},onSetupColumn:function(e){return function(t){return f(t,(function(t){return i(t.element)||h(e)}))}},onSetupPasteable:function(e){return function(t){return f(t,(function(t){return i(t.element)||e().isNone()}))}},onSetupPasteableColumn:function(e,t){return function(n){return f(n,(function(n){return i(n.element)||e().isNone()||h(t)}))}},onSetupMergeable:function(e){return f(e,(function(e){return a("mergeable")}))},onSetupUnmergeable:function(e){return f(e,(function(e){return a("unmergeable")}))},resetTargets:u,onSetupTableWithCaption:function(t){return p(t,_,(function(t){return an(t.element,vi(e)).exists((function(e){return Tt(e,"caption").isSome()}))}))},onSetupTableRowHeaders:v,onSetupTableColumnHeaders:b,targets:n.get}},Up=function(e){var t=function(e,t,n){return{get:function(){return mo(e(),n).fold((function(){return t().fold(yo,wo)}),(function(e){return _o(e)}))}}}((function(){return mi(e)}),(function(){return Di(_i(e),vi(e))}),Oi.selectedSelector),n=zp(e,t),o=Hs(e),r=$p(e,o.lazyResize,n),i=au(e,r,o.lazyWire),a=function(){var e=Fu(),t=Fu();return{getRows:e.get,setRows:function(n){n.fold(e.clear,e.set),t.clear()},clearRows:e.clear,getColumns:t.get,setColumns:function(n){n.fold(t.clear,t.set),e.clear()},clearColumns:t.clear}}();return wd(e,i,0,t,a),function(e,t,n){var o=vi(e),r=function(t){return Di(_i(e)).bind((function(e){return an(e,o).map((function(o){var r=Ti(n,o,e);return t(o,r)}))})).getOr("")};Ie({mceTableRowType:function(){return r(t.getTableRowType)},mceTableCellType:function(){return r(t.getTableCellType)},mceTableColType:function(){return r(t.getTableColType)}},(function(t,n){return e.addQueryValueHandler(n,t)}))}(e,i,t),Ai(e,t,i),function(e,t,n,o){var r=function(t){return function(){return e.execCommand(t)}},i=function(t){e.execCommand("mceInsertTable",!1,{rows:t.numRows,columns:t.numColumns})},a={text:"Table properties",onSetup:n.onSetupTable,onAction:r("mceTableProps")},s={text:"Delete table",icon:"table-delete-table",onSetup:n.onSetupTable,onAction:r("mceTableDelete")};e.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:r("mceTableInsertRowBefore"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:r("mceTableInsertRowAfter"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:r("mceTableDeleteRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:r("mceTableRowProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:r("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:r("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:r("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(o.getRows)}),e.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:r("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(o.getRows)});var l={type:"nestedmenuitem",text:"Row",getSubmenuItems:p("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")};e.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:r("mceTableInsertColBefore"),onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:r("mceTableInsertColAfter"),onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:r("mceTableDeleteCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:r("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:r("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:r("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(o.getColumns,"onFirst")}),e.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:r("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(o.getColumns,"onLast")});var c={type:"nestedmenuitem",text:"Column",getSubmenuItems:p("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")};e.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:r("mceTableCellProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:r("mceTableMergeCells"),onSetup:n.onSetupMergeable}),e.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:r("mceTableSplitCells"),onSetup:n.onSetupUnmergeable});var u={type:"nestedmenuitem",text:"Cell",getSubmenuItems:p("tablecellprops tablemergecells tablesplitcells")};!1===function(e){return e.getParam("table_grid",!0,"boolean")}(e)?e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:r("mceInsertTable")}):e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:i}]}}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:r("mceInsertTable")}),e.ui.registry.addMenuItem("tableprops",a),e.ui.registry.addMenuItem("deletetable",s),e.ui.registry.addNestedMenuItem("row",l),e.ui.registry.addNestedMenuItem("column",c),e.ui.registry.addNestedMenuItem("cell",u),e.ui.registry.addContextMenu("table",{update:function(){return n.resetTargets(),n.targets().fold(p(""),(function(e){return"caption"===qe(e.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}});var d=Vu(Ts(e));0!==d.length&&e.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return zu(e,t,d,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)}))},onSetup:n.onSetupTable});var f=Vu(Os(e));0!==f.length&&e.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return zu(e,t,f,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)}))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return zu(e,t,xu,"tablecellverticalalign",Uu(e,"vertical-align"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return zu(e,t,gs(e),"tablecellborderwidth",Uu(e,"border-width"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return zu(e,t,vs(e),"tablecellborderstyle",Uu(e,"border-style"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablecaption",{icon:"table-caption",text:"Table caption",onAction:r("mceTableToggleCaption"),onSetup:n.onSetupTableWithCaption}),e.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return Wu(e,Ls(e),"background-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return Wu(e,Ns(e),"border-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablerowheader",{text:"Row header",icon:"table-top-header",onAction:Yu(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleMenuItem("tablecolheader",{text:"Column header",icon:"table-left-header",onAction:qu(e),onSetup:n.onSetupTableColumnHeaders})}(e,t,n,a),function(e,t,n,o){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(e){return e("inserttable | cell row column | advtablesort | tableprops deletetable")}});var r=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:r("mceTableProps"),icon:"table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:r("mceTableDelete"),icon:"table-delete-table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:r("mceTableCellProps"),icon:"table-cell-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:r("mceTableMergeCells"),icon:"table-merge-cells",onSetup:n.onSetupMergeable}),e.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:r("mceTableSplitCells"),icon:"table-split-cells",onSetup:n.onSetupUnmergeable}),e.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:r("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:r("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:r("mceTableDeleteRow"),icon:"table-delete-row",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:r("mceTableRowProps"),icon:"table-row-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:r("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:r("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:r("mceTableDeleteCol"),icon:"table-delete-column",onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:r("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:r("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:r("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(o.getRows)}),e.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:r("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(o.getRows)}),e.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:r("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:r("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:r("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(o.getColumns,"onFirst")}),e.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:r("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(o.getColumns,"onLast")}),e.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:r("mceInsertTable"),icon:"table"});var i=Vu(Ts(e));0!==i.length&&e.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:Hu(e,t,i,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)})),onSetup:n.onSetupTable});var a=Vu(Os(e));0!==a.length&&e.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:Hu(e,t,a,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)})),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:Hu(e,t,xu,"tablecellverticalalign",Uu(e,"vertical-align")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:Hu(e,t,gs(e),"tablecellborderwidth",Uu(e,"border-width")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:Hu(e,t,vs(e),"tablecellborderstyle",Uu(e,"border-style")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablecaption",{tooltip:"Table caption",onAction:r("mceTableToggleCaption"),icon:"table-caption",onSetup:n.onSetupTableWithCaption}),e.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:function(t){return t(Wu(e,Ls(e),"background-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function(t){return t(Wu(e,Ns(e),"border-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablerowheader",{tooltip:"Row header",icon:"table-top-header",onAction:Yu(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleButton("tablecolheader",{tooltip:"Column header",icon:"table-left-header",onAction:qu(e),onSetup:n.onSetupTableColumnHeaders})}(e,t,n,a),function(e){var t=function(e){return e.getParam("table_toolbar","tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol")}(e);t.length>0&&e.ui.registry.addContextToolbar("table",{predicate:function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},items:t,scope:"node",position:"node"})}(e),e.on("PreInit",(function(){e.serializer.addTempAttr(Oi.firstSelected),e.serializer.addTempAttr(Oi.lastSelected),function(e){e.formatter.register(Od)}(e)})),function(e){return e.getParam("table_tab_navigation",!0,"boolean")}(e)&&e.on("keydown",(function(t){!function(e,t,n){if(e.keyCode===_f.TAB){var o=mi(t),r=function(e){var t=qe(e);return Ee(e,o)||k(Of,t)},i=t.selection.getRng(),a=Ce.fromDom(e.shiftKey?i.startContainer:i.endContainer);nn(a,r).each((function(o){e.preventDefault(),an(o,r).each(n.clear),t.selection.collapse(e.shiftKey),(e.shiftKey?Cf:wf)(t,r,o).each((function(e){t.selection.setRng(e)}))}))}}(t,e,r)})),e.on("remove",(function(){o.destroy()})),function(e,t,n,o){return{insertTable:hu(e),setClipboardRows:mu(t.setRows),getClipboardRows:pu(t.getRows),setClipboardCols:mu(t.setColumns),getClipboardCols:pu(t.getColumns),resizeHandler:n,selectionTargets:o}}(e,a,o,n)};Co.add("table",Up)}()},"94e8":function(e,t,n){},"953b":function(e,t,n){"use strict";var o=n("dc19"),r=n("cb27"),i=n("8e16"),a=n("7f65"),s=n("384f"),l=n("5388"),c=r.Set,u=r.add,d=r.has;e.exports=function(e){var t=o(this),n=a(e),r=new c;return i(t)>n.size?l(n.getIterator(),(function(e){d(t,e)&&u(r,e)})):s(t,(function(e){n.includes(e)&&u(r,e)})),r}},9646:function(e,t,n){},9684:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return l}));var o={CONSTANT:"固定字符串",DATE_TIME:"日期时间",VARIABLE:"变量",FORM_FIELD:"表单字段",RANDOM_CODE:"随机码",AUTO_INCREMENT:"自增序列"},r={RESET_BY_YEAR:"按年重置",RESET_BY_QUARTER:"按季度重置",RESET_BY_MONTH:"按月重置",RESET_BY_WEEK:"按周重置",RESET_BY_DAY:"按日重置",NONE:"不重置"},i={CUSTOM:"自定义变量",SYSTEM:"系统变量"},a={UPPER_CASE:"大写字母",LOWER_CASE:"小写字母",DIGIT:"数字"},s={CONSTANT:{pluginType:"CONSTANT",value:""},DATE_TIME:{pluginType:"DATE_TIME",value:"yyyyMMdd"},VARIABLE:{pluginType:"VARIABLE",value:"USER_NAME",variableType:i.SYSTEM},FORM_FIELD:{pluginType:"FORM_FIELD",value:"",defaultValue:""},RANDOM_CODE:{pluginType:"RANDOM_CODE",length:3,randomCodeType:"UPPER_CASE"},AUTO_INCREMENT:{pluginType:"AUTO_INCREMENT",paddingLeft:!0,length:5,startValue:1,periodType:"RESET_BY_YEAR",step:1}},l=["sequence","text","divider","upload","imageUpload","table","relatedForm","editor","iframe","image","qrCode","button"]},9861:function(e,t,n){"use strict";n("5352")},"986e":function(e,t,n){"use strict";n("075d")},"98fc":function(e,t,n){var o,r,i;!function(n,a){"use strict";r=[],void 0===(i="function"==typeof(o=function(e){return function(t){(t=t||{}).arrayAccessForm=t.arrayAccessForm||"none",t.emptyNodeForm=t.emptyNodeForm||"text",t.jsAttributeFilter=t.jsAttributeFilter,t.jsAttributeConverter=t.jsAttributeConverter,t.attributeConverters=t.attributeConverters||[],t.datetimeAccessFormPaths=t.datetimeAccessFormPaths||[],t.arrayAccessFormPaths=t.arrayAccessFormPaths||[],t.xmldomOptions=t.xmldomOptions||{},void 0===t.enableToStringFunc&&(t.enableToStringFunc=!0),void 0===t.skipEmptyTextNodesForObj&&(t.skipEmptyTextNodesForObj=!0),void 0===t.stripWhitespaces&&(t.stripWhitespaces=!0),void 0===t.useDoubleQuotes&&(t.useDoubleQuotes=!0),void 0===t.ignoreRoot&&(t.ignoreRoot=!1),void 0===t.escapeMode&&(t.escapeMode=!0),void 0===t.attributePrefix&&(t.attributePrefix="_"),void 0===t.selfClosingElements&&(t.selfClosingElements=!0),void 0===t.keepCData&&(t.keepCData=!1),void 0===t.keepText&&(t.keepText=!1),void 0===t.jsDateUTC&&(t.jsDateUTC=!1),function(){function e(e){var t=String(e);return 1===t.length&&(t="0"+t),t}"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()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"})}();var n=1,o=3,r=4,i=8,a=9;function s(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!==t||(t=e.nodeName),t}function l(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"):e}function c(e,n,o){switch(t.arrayAccessForm){case"property":e[n]instanceof Array?e[n+"_asArray"]=e[n]:e[n+"_asArray"]=[e[n]]}if(!(e[n]instanceof Array)&&t.arrayAccessFormPaths.length>0){for(var r=!1,i=0;i<t.arrayAccessFormPaths.length;i++){var a=t.arrayAccessFormPaths[i];if("string"==typeof a){if(a===o){r=!0;break}}else if(a instanceof RegExp){if(a.test(o)){r=!0;break}}else if("function"==typeof a&&a(n,o)){r=!0;break}}r&&(e[n]=[e[n]])}}function u(e){var t=e.split(/[-T:+Z]/g),n=new Date(t[0],t[1]-1,t[2]),o=t[5].split(".");if(n.setHours(t[3],t[4],o[0]),o.length>1&&n.setMilliseconds(o[1]),t[6]&&t[7]){var r=60*t[6]+Number(t[7]);r=0+("-"===(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*r:r),n.setMinutes(n.getMinutes()-r-n.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())));return n}function d(e,n){for(var o={__cnt:0},r=e.childNodes,a=0;a<r.length;a++){var l=r.item(a),d=s(l);l.nodeType!==i&&(o.__cnt++,null==o[d]?(o[d]=f(l,n+"."+d),c(o,d,n+"."+d)):(o[d]instanceof Array||(o[d]=[o[d]],c(o,d,n+"."+d)),o[d][o[d].length]=f(l,n+"."+d)))}for(var p=0;p<e.attributes.length;p++){var m=e.attributes.item(p);o.__cnt++;for(var h=m.value,g=0;g<t.attributeConverters.length;g++){var v=t.attributeConverters[g];v.test.call(null,m.name,m.value)&&(h=v.convert.call(null,m.name,m.value))}o[t.attributePrefix+m.name]=h}var b=e.prefix;return b&&(o.__cnt++,o.__prefix=b),o["#text"]&&(o.__text=o["#text"],o.__text instanceof Array&&(o.__text=o.__text.join("\n")),t.escapeMode&&(o.__text=o.__text.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&amp;/g,"&")),t.stripWhitespaces&&(o.__text=o.__text.trim()),delete o["#text"],"property"===t.arrayAccessForm&&delete o["#text_asArray"],o.__text=function(e,n,o){if(t.datetimeAccessFormPaths.length>0)for(var r=o.split(".#")[0],i=0;i<t.datetimeAccessFormPaths.length;i++){var a=t.datetimeAccessFormPaths[i];if("string"==typeof a){if(a===r)return u(e)}else if(a instanceof RegExp){if(a.test(r))return u(e)}else if("function"==typeof a&&a(r))return u(e)}return e}(o.__text,0,n+".#text")),o.hasOwnProperty("#cdata-section")&&(o.__cdata=o["#cdata-section"],delete o["#cdata-section"],"property"===t.arrayAccessForm&&delete o["#cdata-section_asArray"]),1===o.__cnt&&o.__text&&!t.keepText?o=o.__text:0===o.__cnt&&"text"===t.emptyNodeForm?o="":o.__cnt>1&&void 0!==o.__text&&t.skipEmptyTextNodesForObj&&(t.stripWhitespaces&&""===o.__text||""===o.__text.trim())&&delete o.__text,delete o.__cnt,t.keepCData||o.hasOwnProperty("__text")||!o.hasOwnProperty("__cdata")||1!==Object.keys(o).length?(t.enableToStringFunc&&(o.__text||o.__cdata)&&(o.toString=function(){return(this.__text?this.__text:"")+(this.__cdata?this.__cdata:"")}),o):o.__cdata?o.__cdata:""}function f(e,i){return e.nodeType===a?function(e){for(var o={},r=e.childNodes,i=0;i<r.length;i++){var a=r.item(i);if(a.nodeType===n){var l=s(a);t.ignoreRoot?o=f(a,l):o[l]=f(a,l)}}return o}(e):e.nodeType===n?d(e,i):e.nodeType===o||e.nodeType===r?e.nodeValue:null}function p(e,n,o,r){var i="<"+(e&&e.__prefix?e.__prefix+":":"")+n;if(o)for(var a=0;a<o.length;a++){var s=o[a],c=e[s];t.escapeMode&&(c=l(c)),i+=" "+s.substr(t.attributePrefix.length)+"=",t.useDoubleQuotes?i+='"'+c+'"':i+="'"+c+"'"}return i+(r?" />":">")}function m(e,t){return"</"+(e&&e.__prefix?e.__prefix+":":"")+t+">"}function h(e,n){return"property"===t.arrayAccessForm&&(o=n.toString(),r="_asArray",-1!==o.indexOf(r,o.length-r.length))||0===n.toString().indexOf(t.attributePrefix)||0===n.toString().indexOf("__")||e[n]instanceof Function;var o,r}function g(e){var t=0;if(e instanceof Object)for(var n in e)h(e,n)||t++;return t}function v(e){var n=[];if(e instanceof Object)for(var o in e)-1===o.toString().indexOf("__")&&0===o.toString().indexOf(t.attributePrefix)&&n.push(o);return n}function b(e){var n="";return e instanceof Object?n+=function(e){var n="";return e.__cdata&&(n+="<![CDATA["+e.__cdata+"]]>"),(e.__text||"number"==typeof e.__text||"boolean"==typeof e.__text)&&(t.escapeMode?n+=l(e.__text):n+=e.__text),n}(e):null!==e&&(t.escapeMode?n+=l(e):n+=e),n}function y(e,n,o){var r="";return t.jsAttributeFilter&&t.jsAttributeFilter.call(null,n,e)||(t.jsAttributeConverter&&(e=t.jsAttributeConverter.call(null,n,e)),null!=e&&""!==e||!t.selfClosingElements?"object"==typeof e?"[object Array]"===Object.prototype.toString.call(e)?r+=function(e,t,n){var o="";if(0===e.length)o+=p(e,t,n,!0);else for(var r=0;r<e.length;r++)o+=y(e[r],t,v(e[r]));return o}(e,n,o):e instanceof Date?(r+=p(e,n,o,!1),r+=t.jsDateUTC?e.toUTCString():e.toISOString(),r+=m(e,n)):g(e)>0||"number"==typeof e.__text||"boolean"==typeof e.__text||e.__text||e.__cdata?(r+=p(e,n,o,!1),r+=_(e),r+=m(e,n)):t.selfClosingElements?r+=p(e,n,o,!0):(r+=p(e,n,o,!1),r+=m(e,n)):(r+=p(e,n,o,!1),r+=b(e),r+=m(e,n)):r+=p(e,n,o,!0)),r}function _(e){var t="";if(g(e)>0)for(var n in e)if(!h(e,n)){var o=e[n];t+=y(o,n,v(o))}return t+b(e)}function w(n){if(void 0===n)return null;if("string"!=typeof n)return null;var o=null,r=null;if(e)r=(o=new e(t.xmldomOptions)).parseFromString(n,"text/xml");else if(window&&window.DOMParser){o=new window.DOMParser;var i=null;if(!window.ActiveXObject&&!("ActiveXObject"in window)&&document.all&&!document.addEventListener)try{i=o.parseFromString("INVALID","text/xml").childNodes[0].namespaceURI}catch(e){i=null}try{r=o.parseFromString(n,"text/xml"),null!==i&&r.getElementsByTagNameNS(i,"parsererror").length>0&&(r=null)}catch(e){r=null}}else 0===n.indexOf("<?")&&(n=n.substr(n.indexOf("?>")+2)),(r=new ActiveXObject("Microsoft.XMLDOM")).async="false",r.loadXML(n);return r}this.asArray=function(e){return null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?u(e):e},this.xml2dom=function(e){return w(e)},this.dom2js=function(e){return f(e,null)},this.js2dom=function(e){return w(this.js2xml(e))},this.xml2js=function(e){var t=w(e);return null!=t?this.dom2js(t):null},this.js2xml=function(e){return _(e)},this.getVersion=function(){return"3.4.4"}}})?o.apply(t,r):o)||(e.exports=i)}()},9961:function(e,t,n){"use strict";var o=n("dc19"),r=n("cb27"),i=n("83b9"),a=n("7f65"),s=n("5388"),l=r.add,c=r.has,u=r.remove;e.exports=function(e){var t=o(this),n=a(e).getIterator(),r=i(t);return s(n,(function(e){c(t,e)?u(r,e):l(r,e)})),r}},"99af":function(e,t,n){"use strict";var o=n("23e7"),r=n("d039"),i=n("e8b5"),a=n("861d"),s=n("7b0b"),l=n("07fa"),c=n("3511"),u=n("8418"),d=n("65f0"),f=n("1dde"),p=n("b622"),m=n("1212"),h=p("isConcatSpreadable"),g=m>=51||!r((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),v=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};o({target:"Array",proto:!0,arity:1,forced:!g||!f("concat")},{concat:function(e){var t,n,o,r,i,a=s(this),f=d(a,0),p=0;for(t=-1,o=arguments.length;t<o;t++)if(v(i=-1===t?a:arguments[t]))for(r=l(i),c(p+r),n=0;n<r;n++,p++)n in i&&u(f,p,i[n]);else c(p+1),u(f,p++,i);return f.length=p,f}})},"9a01":function(e,t,n){"use strict";var o=n("5530"),r=n("c14f"),i=n("1da1"),a=n("2909"),s=(n("d9e2"),n("99af"),n("4de4"),n("c740"),n("caad"),n("d81d"),n("14d9"),n("a434"),n("b0c0"),n("e9f5"),n("910d"),n("ab43"),n("d3b7"),n("498a"),{name:"MemberOrgTreeItem",props:{isActive:{default:!1,type:Boolean},data:{default:{}},isSelected:{default:!1,type:Boolean},showAppend:{default:!0,type:Boolean},showAppendDefaultIcon:{default:!0,type:Boolean},canSelect:{default:!0,type:Boolean},isShowOrgName:{default:!1,type:Boolean}},computed:{isDisabled(){return this.data.isDisabled||!this.canSelect}},model:{value:"isSelected",event:"change"},methods:{handleSwitch(e){"user"!==this.data.type&&this.$emit("click",this.data,e)},handleClick(e){this.$emit(e?"select":"unselect",this.data)}},mounted(){}}),l=(n("4d97"),n("2877")),c=Object(l.a)(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-tooltip",{attrs:{placement:"top",trigger:"hover","open-delay":300,effect:"light"}},[n("template",{slot:"content"},[n("ul",[n("li",[e._v("名称:"+e._s(e.data.name))]),n("li",[e._v("编码/账号:"+e._s("user"===e.data.type?e.data.account:e.data.code))]),e.isShowOrgName&&e.data&&e.data.orgName?n("li",[e._v("所属机构:"+e._s(e.data.orgName))]):e._e()])]),[n("li",{staticClass:"member-org-detail-item",class:{"is-active":e.isActive}},[n("el-checkbox",{staticClass:"member-org-manage-check",attrs:{disabled:e.isDisabled,value:e.isSelected},on:{change:e.handleClick}}),n("div",{staticClass:"member-org-detail-item-wrapper item-org",on:{click:e.handleSwitch}},[n("div",{staticClass:"member-org-detail-icon"},["region"===e.data.type||"root"===e.data.type?n("base-icon",{attrs:{"icon-class":"government-line"}}):e._e(),"organ"===e.data.type?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):e._e(),"user"===e.data.type?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):e._e(),"role"===e.data.type?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):e._e()],1),n("span",{staticClass:"member-org-detail-title"},[e._v(" "+e._s(e.data.name)+" "),"user"===e.data.type&&e.data.account?n("small",[e._v(e._s(e.data.account))]):n("small",[e._v(e._s(e.data.code))]),e.isShowOrgName&&e.data&&e.data.orgName?n("small",{staticClass:"common-text-overflow"},[e._v(e._s(e.data.orgName))]):e._e()]),n("div",{staticClass:"member-org-spacing"}),e.showAppend?n("span",{staticClass:"member-org-detail-append"},[e.showAppendDefaultIcon?n("base-icon",{attrs:{"icon-class":"arrow-right-s-line"}}):e._t("append")],2):e._e()])],1)]],2)}),[],!1,null,"6b9c4164",null).exports,u=n("7694"),d=n("60bb"),f=n.n(d),p=n("7461"),m=n("b76a"),h={name:"OrganizationSelector",components:{draggable:n.n(m).a,BaseIcon:p.a,MemberOrgTreeItem:c},computed:{compType:function(){var e;return null===(e=this.element)||void 0===e?void 0:e.type},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"},maxNums:function(){var e;return(null===(e=this.element)||void 0===e||null===(e=e.options)||void 0===e?void 0:e.maxNums)||1}},model:{prop:"selected",event:"change"},inject:{elForm:{default:""},elFormItem:{default:""}},props:{element:{type:Object,default:null},eventFunction:{type:Object,default:function(){return{}}},getOrgTree:{type:Function,default:u.s},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"},parentName:{type:String,default:"全国"},platform:{type:String,default:"pc"},text:{type:String,default:"选择"},customStyle:{type:Object,default:function(){return{}}},placeholder:{type:String,default:null},selected:{default:function(){return[]}},optionScopeType:{type:String,default:"ORGAN"},dialogTitle:{type:String,default:"选择组织机构"},sortable:{type:Boolean,default:function(){return!1}}},mounted:function(){this.parentNameVal=this.parentName,this.parentCodeVal=this.parentCode,[void 0,null].includes(this.selected)&&(this.selected=[]),this.$emit("change",this.selected),this.selected.length&&this.$refs.nodeTree&&this.$refs.nodeTree.setCheckedKeys(Object(a.a)(f.a.cloneDeep(this.selected))),this.debounce=f.a.debounce(this.onSearch,50),this.selectedVal=f.a.cloneDeep(this.selected)},watch:{keyword:function(e){e.trim()?(this.isSearching=!0,this.debounce&&this.debounce()):this.isSearching=!1},selectedVal:function(e){this.$emit("change",e)}},data:function(){return{data:[],isSearchLoading:!1,isSearching:!1,keyword:"",searchData:[],visible:!1,stack:[],currentDept:{},dataLoading:!0,debounce:!1,selectedVal:[],parentCodeVal:"",parentNameVal:""}},methods:{setRootNode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.parentNameVal=e,this.parentCodeVal=t},handleDragChange:function(){},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 e=this;return Object(i.a)(Object(r.a)().m((function t(){return Object(r.a)().w((function(t){for(;;)switch(t.n){case 0:if(e.searchData=[],"PERSON"!==e.optionScopeType){t.n=2;break}return t.n=1,e.searchUser();case 1:e.searchData=t.v,t.n=2;break;case 2:return t.a(2)}}),t)})))()},onCheckedTreeNodeChange:function(e,t){if(t)this.multiple||(this.$refs.nodeTree.setCheckedKeys([e.code]),this.selectedVal.pop()),this.selectedVal.push(e);else{var n=this.selectedVal.findIndex((function(t){return t.code===e.code}));n>-1&&this.selectedVal.splice(n,1)}},loadTreeNode:function(e,t){var n=this;return Object(i.a)(Object(r.a)().m((function o(){var i,s,l,c,u,d,f,p;return Object(r.a)().w((function(o){for(;;)switch(o.n){case 0:if(0!==e.level){o.n=1;break}return i={code:n.parentCodeVal,name:n.parentNameVal,label:n.parentNameVal,type:"root",children:[],disabled:"ORGAN"!==n.optionScopeType},o.a(2,t([i]));case 1:return s=[],l=[],c=Object(a.a)(s),u=a.a,o.n=2,n.getOrgByParentCode(e.data.code);case 2:if(s=l.concat.call(l,c,u(o.v)),!(["root","organ","region"].indexOf(e.data.type)>-1&&"PERSON"===n.optionScopeType)){o.n=4;break}return d=[],f=Object(a.a)(s),p=a.a,o.n=3,n.getUserListByParentNode(e.data);case 3:s=d.concat.call(d,f,p(o.v));case 4:return o.a(2,t(s));case 5:return o.a(2)}}),o)})))()},searchUser:function(){var e=this;return Object(i.a)(Object(r.a)().m((function t(){var n,i,a;return Object(r.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:if(e.keyword&&!(e.keyword.length<1)){t.n=1;break}return t.a(2);case 1:return e.isSearchLoading=!0,n=[],t.p=2,t.n=3,Object(u.A)({condition:{name:e.keyword},limit:1e3,page:1});case 3:1===(i=t.v).data.code&&(n=(n=i.data.data.data).map((function(e){return Object(o.a)(Object(o.a)({},e),{},{name:e.name,label:e.name,code:e.id,type:"user",isLeaf:!0})}))),t.n=5;break;case 4:t.p=4,a=t.v,e.$message.error(a.message);case 5:return t.p=5,e.isSearchLoading=!1,t.f(5);case 6:return t.a(2,n)}}),t,null,[[2,4,5,6]])})))()},getUserListByParentNode:function(e){var t=this;return Object(i.a)(Object(r.a)().m((function n(){var i,a;return Object(r.a)().w((function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,Object(u.v)({condition:{regionCode:e.regionCode||e.code,orgCode:e.code},limit:"1000",page:"1"});case 1:return i=n.v,n.a(2,i.data.data.data.length?i.data.data.data.map((function(e){return Object(o.a)(Object(o.a)({},e),{},{name:e.name,label:e.name,code:e.id,type:"user",isLeaf:!0,disabled:"PERSON"!==t.optionScopeType})})):[]);case 2:return n.p=2,a=n.v,t.$message.error(a),n.a(2,[])}}),n,null,[[0,2]])})))()},getOrgByParentCode:function(e){var t=this;return Object(i.a)(Object(r.a)().m((function n(){var i,a;return Object(r.a)().w((function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,Object(u.s)({code:e});case 1:if(1===(i=n.v).data.code){n.n=2;break}throw new Error(i.data.message||"根据父级部门ID加载子集部门节点失败");case 2:return n.a(2,i.data.data.length?i.data.data.map((function(e){return Object(o.a)(Object(o.a)({},e),{},{name:e.name,label:e.name,code:e.code,type:e.type,disabled:"ORGAN"!==t.optionScopeType})})):[]);case 3:return n.p=3,a=n.v,t.$message.error(a),n.a(2,[])}}),n,null,[[0,3]])})))()},handleSelect:function(){var e,t,n;this.disabled||this.readonly||(null===(e=this.eventFunction)||void 0===e||null===(t=e[null===(n=this.element)||void 0===n||null===(n=n.events)||void 0===n?void 0:n.onOpenSelector])||void 0===t||t.call(e),this.visible=!0)},handleConfirm:function(){this.$emit("onConfirm",this.selectedVal),this.$emit("change",this.selectedVal),this.onDialogClose()},handleCancel:function(){this.visible=!1},handleCloseTag:function(e){var t=this.selectedVal.findIndex((function(t){return t.code===e.code}));t>-1&&this.selectedVal.splice(t,1)},handleSelectItem:function(e){this.multiple||this.selectedVal.pop(),this.selectedVal.push(e)},handleUnSelectItem:function(e){var t=this.selectedVal.findIndex((function(t){return t.code===e.code}));if(t>-1&&this.selectedVal.splice(t,1),this.$refs.nodeTree){var n=this.$refs.nodeTree.getCheckedKeys();n=n.filter((function(t){return t!==e.code})),this.$refs.nodeTree.setCheckedKeys(n)}},handleClick:function(e){this.isSearching=!1,this.stack.push(e)}}},g=Object(l.a)(h,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"organization-selector el-select",class:[e.componentSize?"el-select--"+e.componentSize:""]},[e.visible?n("el-dialog",{class:"mobile"===e.platform?"organization-selector-mobile":"organization-selector-pc",attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,disabled:e.disabled,title:e.dialogTitle,visible:e.visible,"append-to-body":"","custom-class":"organization-selector-dialog",placement:"bottom-start",width:"800px"},on:{"update:visible":function(t){e.visible=t},close:e.onDialogClose}},[n("div",{staticClass:"tree-select-section-left"},[n("div",{staticClass:"member-org-detail-list-container"},["PERSON"===e.optionScopeType?n("div",{staticClass:"member-org-detail-title-bar"},[n("el-input",{attrs:{clearable:"",maxLength:"20",placeholder:e.placeholder||e.$iss18n.t("issfd.runtime.component.searchPlaceholder"),"prefix-icon":"el-icon-search",size:"small"},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1):e._e(),e.isSearching?n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isSearchLoading,expression:"isSearchLoading"}],staticClass:"b-scroll"},[e.searchTotal?n("div",{staticClass:"member-org-detail-list-item-container"},e._l(e.searchData,(function(t){return n("member-org-tree-item",{key:t.code,attrs:{data:t,"is-selected":e.selectedVal.some((function(e){return e.code===t.code})),"show-append":!1,"is-show-org-name":!0},on:{select:e.handleSelectItem,unselect:e.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":e.selectedVal.map((function(e){return e.code})),indent:8,load:e.loadTreeNode,props:{label:"name",children:"children",isLeaf:"isLeaf"},"check-strictly":"",lazy:"","node-key":"code","show-checkbox":""},on:{"check-change":e.onCheckedTreeNodeChange},scopedSlots:e._u([{key:"default",fn:function(t){t.node;var o=t.data;return n("div",{staticClass:"custom-tree-node",attrs:{title:o.name+" : "+(o.type&&"user"===o.type?o.account:o.code)}},[n("div",{staticClass:"custom-tree-node-icon"},["region"===o.type||"root"===o.type?n("base-icon",{attrs:{"icon-class":"government-line"}}):e._e(),"organ"===o.type?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):e._e(),"user"===o.type?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):e._e(),"role"===o.type?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):e._e()],1),n("div",{staticClass:"custom-tree-node-name"},[e._v(" "+e._s(o.name)+" "),n("small",[e._v(e._s(o.type&&"user"===o.type?o.account:o.code))])])])}}],null,!1,3974469761)})],1)])])]),n("div",{staticClass:"tree-select-section-right"},[e.selectedVal.length?n("div",{staticClass:"b-scroll"},[n("div",{staticClass:"member-org-detail-list-item-container"},[n("draggable",{attrs:{animation:200,group:{name:"item-sorting-board"},disabled:!e.sortable,"chosen-class":"chosen","ghost-class":"ghost",handle:".member-org-detail-append"},on:{change:e.handleDragChange},model:{value:e.selectedVal,callback:function(t){e.selectedVal=t},expression:"selectedVal"}},[n("transition-group",e._l(e.selectedVal,(function(t){return n("member-org-tree-item",{key:t.code,attrs:{data:t,"is-selected":!0,"show-append":!0,"show-append-default-icon":!1,"is-show-org-name":!0},on:{unselect:e.handleUnSelectItem},scopedSlots:e._u([e.sortable?{key:"append",fn:function(){return[n("base-icon",{attrs:{"icon-class":"draggable"}})]},proxy:!0}:null],null,!0)})})),1)],1)],1)]):n("el-empty")],1),n("div",{staticClass:"tree-select-section-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{disabled:!e.selectedVal.length,type:"primary"},on:{click:e.handleConfirm}},[e._v(e._s(e.$iss18n.t("issfd.runtime.common.buttons.confirm")))])],1)]):e._e(),n("div",{staticClass:"organization-selector-container",class:{"is-disabled":e.disabled},style:e.customStyle,on:{click:e.handleSelect}},[n("div",{staticClass:"organization-selector-wrapper el-select__tags"},[e.selectedVal&&e.selectedVal.length?n("span",{staticClass:"select-tag"},[e._l(e.maxNums,(function(t){return n("el-tooltip",{key:t,staticClass:"item",attrs:{effect:"dark",content:e.selectedVal&&e.selectedVal[t-1]&&e.selectedVal[t-1].name,"open-delay":300,placement:"top"}},[e.selectedVal[t-1]?n("el-tag",{attrs:{closable:!e.disabled,size:e.collapseTagSize,type:"info"},on:{close:function(n){return e.handleCloseTag(e.selectedVal[t-1])}}},["region"===e.selectedVal[t-1].type?n("base-icon",{attrs:{"icon-class":"government-line"}}):e._e(),"organ"===e.selectedVal[t-1].type?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):e._e(),"user"===e.selectedVal[t-1].type?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):e._e(),"role"===e.selectedVal[t-1].type?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):e._e(),n("span",{staticClass:"tag-name"},[e._v(" "+e._s(""+(e.selectedVal[t-1].name.length>11?e.selectedVal[t-1].name.substr(0,11)+"...":e.selectedVal[t-1].name))+" ")])],1):e._e()],1)})),e.selectedVal.length>e.maxNums?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,"disable-transitions":"",type:"info"}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selectedVal.length-e.maxNums))])]):e._e()],2):e._e()]),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{disabled:e.disabled,placeholder:e.selectedVal&&e.selectedVal.length?"":e.placeholder,readonly:"mobile"===e.platform||e.readonly,size:e.componentSize,"validate-event":!1,type:"text"}},[n("template",{slot:"prefix"},["ORGAN"===e.optionScopeType?n("base-icon",{attrs:{"icon-class":"organization-chart"}}):e._e(),"PERSON"===e.optionScopeType?n("base-icon",{attrs:{"icon-class":"user-3-line"}}):e._e(),"ROLE"===e.optionScopeType?n("base-icon",{attrs:{"icon-class":"shield-user-line"}}):e._e()],1)],2)],1)],1)}),[],!1,null,null,null);t.a=g.exports},"9a1f":function(e,t,n){"use strict";var o=n("c65b"),r=n("59ed"),i=n("825a"),a=n("0d51"),s=n("35a1"),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return i(o(n,e));throw new l(a(e)+" is not iterable")}},"9adc":function(e,t,n){"use strict";var o=n("8558");e.exports="NODE"===o},"9b1d":function(e,t,n){},"9b74":function(e,t,n){!function(e){"use strict";function t(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var o={hint:t};if(n)for(var r in n)o[r]=n[r];return e.showHint(o)},e.defineExtension("showHint",(function(n){n=function(e,t,n){var o=e.options.hintOptions,r={};for(var i in l)r[i]=l[i];if(o)for(var i in o)void 0!==o[i]&&(r[i]=o[i]);if(n)for(var i in n)void 0!==n[i]&&(r[i]=n[i]);return r.hint.resolve&&(r.hint=r.hint.resolve(e,t)),r}(this,this.getCursor("start"),n);var o=this.listSelections();if(!(o.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var r=0;r<o.length;r++)if(o[r].head.line!=o[r].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var i=this.state.completionActive=new t(this,n);i.options.hint&&(e.signal(this,"startCompletion",this),i.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var n=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function r(e){return"string"==typeof e?e:e.text}function i(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function a(t,n){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=n,this.picked=!1;var o=this,a=t.cm,s=a.getInputField().ownerDocument,l=s.defaultView||s.parentWindow,c=this.hints=s.createElement("ul");c.setAttribute("role","listbox"),c.setAttribute("aria-expanded","true"),c.id=this.id;var u=t.cm.options.theme;c.className="CodeMirror-hints "+u,this.selectedHint=n.selectedHint||0;for(var d=n.list,f=0;f<d.length;++f){var p=c.appendChild(s.createElement("li")),m=d[f],h="CodeMirror-hint"+(f!=this.selectedHint?"":" CodeMirror-hint-active");null!=m.className&&(h=m.className+" "+h),p.className=h,f==this.selectedHint&&p.setAttribute("aria-selected","true"),p.id=this.id+"-"+f,p.setAttribute("role","option"),m.render?m.render(p,n,m):p.appendChild(s.createTextNode(m.displayText||r(m))),p.hintId=f}var g=t.options.container||s.body,v=a.cursorCoords(t.options.alignWithWord?n.from:null),b=v.left,y=v.bottom,_=!0,w=0,C=0;if(g!==s.body){var x=-1!==["absolute","relative","fixed"].indexOf(l.getComputedStyle(g).position)?g:g.offsetParent,O=x.getBoundingClientRect(),T=s.body.getBoundingClientRect();w=O.left-T.left-x.scrollLeft,C=O.top-T.top-x.scrollTop}c.style.left=b-w+"px",c.style.top=y-C+"px";var E=l.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),S=l.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);g.appendChild(c),a.getInputField().setAttribute("aria-autocomplete","list"),a.getInputField().setAttribute("aria-owns",this.id),a.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var D,k=t.options.moveOnOverlap?c.getBoundingClientRect():new DOMRect,A=!!t.options.paddingForScrollbar&&c.scrollHeight>c.clientHeight+1;if(setTimeout((function(){D=a.getScrollInfo()})),k.bottom-S>0){var M=k.bottom-k.top,I=k.top-(v.bottom-v.top)-2;S-k.top<I?(M>I&&(c.style.height=(M=I)+"px"),c.style.top=(y=v.top-M)-C+"px",_=!1):c.style.height=S-k.top-2+"px"}var P,R=k.right-E;if(A&&(R+=a.display.nativeBarWidth),R>0&&(k.right-k.left>E&&(c.style.width=E-5+"px",R-=k.right-k.left-E),c.style.left=(b=Math.max(v.left-R-w,0))+"px"),A)for(var L=c.firstChild;L;L=L.nextSibling)L.style.paddingRight=a.display.nativeBarWidth+"px";a.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var o=e.options.customKeys,r=o?{}:n;function i(e,o){var i;i="string"!=typeof o?function(e){return o(e,t)}:n.hasOwnProperty(o)?n[o]:o,r[e]=i}if(o)for(var a in o)o.hasOwnProperty(a)&&i(a,o[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&i(a,s[a]);return r}(t,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:d.length,close:function(){t.close()},pick:function(){o.pick()},data:n})),t.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){P=setTimeout((function(){t.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(P)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect();D||(D=a.getScrollInfo());var o=y+D.top-e.top,r=o-(l.pageYOffset||(s.documentElement||s.body).scrollTop);if(_||(r+=c.offsetHeight),r<=n.top||r>=n.bottom)return t.close();c.style.top=o+"px",c.style.left=b+D.left-e.left+"px"}),e.on(c,"dblclick",(function(e){var t=i(c,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())})),e.on(c,"click",(function(e){var n=i(c,e.target||e.srcElement);n&&null!=n.hintId&&(o.changeActive(n.hintId),t.options.completeOnSingleClick&&o.pick())})),e.on(c,"mousedown",(function(){setTimeout((function(){a.focus()}),20)}));var N=this.getSelectedHintRange();return 0===N.from&&0===N.to||this.scrollToActive(),e.signal(n,"select",d[this.selectedHint],c.childNodes[this.selectedHint]),!0}function s(e,t,n,o){if(e.async)e(t,o,n);else{var r=e(t,n);r&&r.then?r.then(o):o(r)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var o=t.list[n],i=this;this.cm.operation((function(){o.hint?o.hint(i.cm,t,o):i.cm.replaceRange(r(o),o.from||t.from,o.to||t.to,"complete"),e.signal(t,"pick",o),i.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),r=this.cm.getLine(t.line);if(t.line!=this.startPos.line||r.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(r.charAt(t.ch-1)))this.close();else{var i=this;this.debounce=n((function(){i.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;s(this.options.hint,this.cm,this.options,(function(o){t.tick==n&&t.finishUpdate(o,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var o=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(o&&1==t.list.length?this.pick(t,0):(this.widget=new a(this,t),e.signal(t,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var o=this.hints.childNodes[this.selectedHint];o&&(o.className=o.className.replace(" CodeMirror-hint-active",""),o.removeAttribute("aria-selected")),(o=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",o.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",o.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],o)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],o=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-o.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+o.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:function(t,n){var o,r=t.getHelpers(n,"hint");if(r.length){var i=function(e,t,n){var o=function(e,t){if(!e.somethingSelected())return t;for(var n=[],o=0;o<t.length;o++)t[o].supportsSelection&&n.push(t[o]);return n}(e,r);!function r(i){if(i==o.length)return t(null);s(o[i],e,n,(function(e){e&&e.list.length>0?t(e):r(i+1)}))}(0)};return i.async=!0,i.supportsSelection=!0,i}return(o=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:o})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var o,r=t.getCursor(),i=t.getTokenAt(r),a=e.Pos(r.line,i.start),s=r;i.start<r.ch&&/\w/.test(i.string.charAt(r.ch-i.start-1))?o=i.string.substr(0,r.ch-i.start):(o="",a=r);for(var l=[],c=0;c<n.words.length;c++){var u=n.words[c];u.slice(0,o.length)==o&&l.push(u)}if(l.length)return{list:l,from:a,to:s}})),e.commands.autocomplete=e.showHint;var l={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(n("56b3"))},"9bdd":function(e,t,n){"use strict";var o=n("825a"),r=n("2a62");e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){r(e,"throw",t)}}},"9bf2":function(e,t,n){"use strict";var o=n("83ab"),r=n("0cfb"),i=n("aed9"),a=n("825a"),s=n("a04b"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor;t.f=o?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var o=u(e,t);o&&o.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:o.configurable,enumerable:"enumerable"in n?n.enumerable:o.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9cf7":function(e,t,n){"use strict";var o=n("d039");e.exports=!o((function(){var e=JSON.rawJSON("9007199254740993");return!JSON.isRawJSON(e)||"9007199254740993"!==JSON.stringify(e)}))},"9d45":function(e,t,n){},"9dd9":function(e,t,n){(function(e){!function(){"use strict";var t,n,o,r=function(e){var t=e;return{get:function(){return t},set:function(e){t=e}}},i=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=tinymce.util.Tools.resolve("tinymce.util.Tools"),s=(t="array",function(e){return o=typeof(n=e),(null===n?"null":"object"===o&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===o&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":o)===t;var n,o}),l=function(e){return!function(e){return null==e}(e)},c=function(e){return function(t){return typeof t===e}}("function"),u=function(){},d=function(e){return function(){return e}},f=function(e){return e},p=d(!1),m=d(!0),h=function(){return g},g={fold:function(e,t){return e()},isSome:p,isNone:m,getOr:o=f,getOrThunk:n=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:o,orThunk:n,map:h,each:u,bind:h,exists:p,forall:m,filter:function(){return h()},toArray:function(){return[]},toString:d("none()")},v=function(e){var t=d(e),n=function(){return r},o=function(t){return t(e)},r={fold:function(t,n){return n(e)},isSome:m,isNone:p,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return v(t(e))},each:function(t){t(e)},bind:o,exists:o,forall:o,filter:function(t){return t(e)?r:g},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return r},b={some:v,none:h,from:function(e){return null==e?g:v(e)}},y={},_={exports:y};!function(t,n,o,r){!function(e,r){"object"==typeof n&&void 0!==o?o.exports=r():"function"==typeof t&&t.amd?t(r):(e="undefined"!=typeof globalThis?globalThis:e||self).EphoxContactWrapper=r()}(this,(function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},n={exports:{}};!function(e){!function(t){var n=setTimeout;function o(){}function r(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(e,this)}function i(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var o;try{o=n(e._value)}catch(e){return void s(t.promise,e)}a(t.promise,o)}else(1===e._state?a:s)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof r)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void u((o=n,i=t,function(){o.apply(i,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){s(e,t)}var o,i}function s(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&r._immediateFn((function(){e._handled||r._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)i(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function u(e,t){var n=!1;try{e((function(e){n||(n=!0,a(t,e))}),(function(e){n||(n=!0,s(t,e))}))}catch(e){if(n)return;n=!0,s(t,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(o);return i(this,new c(e,t,n)),n},r.all=function(e){var t=Array.prototype.slice.call(e);return new r((function(e,n){if(0===t.length)return e([]);var o=t.length;function r(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){r(i,e)}),n)}t[i]=a,0==--o&&e(t)}catch(e){n(e)}}for(var i=0;i<t.length;i++)r(i,t[i])}))},r.resolve=function(e){return e&&"object"==typeof e&&e.constructor===r?e:new r((function(t){t(e)}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){for(var o=0,r=e.length;o<r;o++)e[o].then(t,n)}))},r._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},r._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console},r._setImmediateFn=function(e){r._immediateFn=e},r._setUnhandledRejectionFn=function(e){r._unhandledRejectionFn=e},e.exports?e.exports=r:t.Promise||(t.Promise=r)}(t)}(n);var o=n.exports;return{boltExport:("undefined"!=typeof window?window:Function("return this;")()).Promise||o}}))}(void 0,y,_);var w=_.exports.boltExport,C=function(e,t){return T(document.createElement("canvas"),e,t)},x=function(e){var t=C(e.width,e.height);return O(t).drawImage(e,0,0),t},O=function(e){return e.getContext("2d")},T=function(e,t,n){return e.width=t,e.height=n,e},E=function(e){return new w((function(t,n){var o=URL.createObjectURL(e),r=new Image,i=function(){r.removeEventListener("load",a),r.removeEventListener("error",s)},a=function(){i(),t(r)},s=function(){i(),n("Unable to load data of type "+e.type+": "+o)};r.addEventListener("load",a),r.addEventListener("error",s),r.src=o,r.complete&&setTimeout(a,0)}))},S=function(e){return new w((function(t,n){var o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){200===this.status&&t(this.response)},o.onerror=function(){var e,t=this;n(0===this.status?((e=new Error("No access to download image")).code=18,e.name="SecurityError",e):new Error("Error "+t.status+" downloading image"))},o.send()}))},D=function(e){return new w((function(t,n){(function(e){var t=e.split(","),n=/data:([^;]+)/.exec(t[0]);if(!n)return b.none();for(var o=n[1],r=t[1],i=atob(r),a=i.length,s=Math.ceil(a/1024),l=new Array(s),c=0;c<s;++c){for(var u=1024*c,d=Math.min(u+1024,a),f=new Array(d-u),p=u,m=0;p<d;++m,++p)f[m]=i[p].charCodeAt(0);l[c]=new Uint8Array(f)}return b.some(new Blob(l,{type:o}))})(e).fold((function(){n("uri is not base64: "+e)}),t)}))},k=function(e,t,n){return t=t||"image/png",c(HTMLCanvasElement.prototype.toBlob)?new w((function(o,r){e.toBlob((function(e){e?o(e):r()}),t,n)})):D(e.toDataURL(t,n))},A=function(e){URL.revokeObjectURL(e.src)},M=function(e){return function(e){var t=e.src;return 0===t.indexOf("data:")?D(t):S(t)}(e)},I=Array.prototype.indexOf,P=function(e,t){return n=e,o=t,I.call(n,o)>-1;var n,o},R=function(e,t){for(var n=0,o=e.length;n<o;n++)t(e[n],n)},L=function(e,t){return function(e,t,n){for(var o=0,r=e.length;o<r;o++){var i=e[o];if(t(i,o))return b.some(i);if(n(i,o))break}return b.none()}(e,t,p)},N=function(e,t){for(var n=0,o=e.length;n<o;++n)if(!0!==t(e[n],n))return!1;return!0},F=Object.keys;(function(e){if(!s(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};R(e,(function(o,r){var i=F(o);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],l=o[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(!s(l))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n.length;if(i!==l.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+l.length+" ("+l+"), got "+i);var s=function(e){var o=F(e);if(t.length!==o.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+o.join(","));if(!N(t,(function(e){return P(o,e)})))throw new Error("Not all branches were specified when using match. Specified: "+o.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var i=t[r];return i.apply(null,n)},match:s,log:function(e){}}}}))})([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var j=function(e,t,n){var o=t.type,r=d(o),i=d(n),a=function(t,n){return e.then((function(e){return function(e,t,n){return t=t||"image/png",e.toDataURL(t,n)}(e,t,n)}))};return{getType:r,toBlob:function(){return w.resolve(t)},toDataURL:i,toBase64:function(){return n.split(",")[1]},toAdjustedBlob:function(t,n){return e.then((function(e){return k(e,t,n)}))},toAdjustedDataURL:a,toAdjustedBase64:function(e,t){return a(e,t).then((function(e){return e.split(",")[1]}))},toCanvas:function(){return e.then(x)}}},B=function(e){return function(e){return new w((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))}(e).then((function(t){return j(function(e){return E(e).then((function(e){A(e);var t=C(function(e){return e.naturalWidth||e.width}(e),function(e){return e.naturalHeight||e.height}(e));return O(t).drawImage(e,0,0),t}))}(e),e,t)}))},$=function(e,t){return k(e,t).then((function(t){return j(w.resolve(e),t,e.toDataURL())}))},z=function(e,t){void 0===t&&(t=2);var n=Math.pow(10,t),o=Math.round(e*n);return Math.ceil(o/n)},U=function(e,t,n){var o=(n<0?360+n:n)*Math.PI/180,r=e.width,i=e.height,a=Math.sin(o),s=Math.cos(o),l=z(Math.abs(r*s)+Math.abs(i*a)),c=z(Math.abs(r*a)+Math.abs(i*s)),u=C(l,c),d=O(u);return d.translate(l/2,c/2),d.rotate(o),d.drawImage(e,-r/2,-i/2),$(u,t)},V=function(e,t,n){var o=C(e.width,e.height),r=O(o);return"v"===n?(r.scale(1,-1),r.drawImage(e,0,-o.height)):(r.scale(-1,1),r.drawImage(e,-o.width,0)),$(o,t)},H=function(e,t){return function(e,t){return e.toCanvas().then((function(n){return V(n,e.getType(),t)}))}(e,t)},W=function(e,t){return function(e,t){return e.toCanvas().then((function(n){return U(n,e.getType(),t)}))}(e,t)},Y=function(e,t,n){return void 0===n&&(n=!1),new w((function(o){var r=new XMLHttpRequest;r.onreadystatechange=function(){4===r.readyState&&o({status:r.status,blob:r.response})},r.open("GET",e,!0),r.withCredentials=n,function(e,t){for(var n=F(e),o=0,r=n.length;o<r;o++){var i=n[o];t(e[i],i)}}(t,(function(e,t){r.setRequestHeader(t,e)})),r.responseType="blob",r.send()}))},q=[{code:404,message:"Could not find Image Proxy"},{code:403,message:"Rejected request"},{code:0,message:"Incorrect Image Proxy URL"}],G=[{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."}],K=function(e,t){var n,o,r=(n=function(e,t){return l(e)?e[t]:void 0},o=e,R(t,(function(e,t){o=n(o,e,t)})),o);return b.from(r)},X=function(e){var t=function(e){return"ImageProxy HTTP error: "+L(q,(function(t){return e===t.code})).fold(d("Unknown ImageProxy error"),(function(e){return e.message}))}(e);return w.reject(t)},J=function(e){return L(G,(function(t){return t.type===e})).fold(d("Unknown service error"),(function(e){return e.message}))},Q=function(e){return"ImageProxy Service error: "+function(e){try{return b.some(JSON.parse(e))}catch(e){return b.none()}}(e).bind((function(e){return K(e,["error","type"]).map(J)})).getOr("Invalid JSON in service error message")},Z=function(e){return function(e){return new w((function(t,n){var o=new FileReader;o.onload=function(){t(o.result)},o.onerror=function(e){n(e)},o.readAsText(e)}))}(e).then((function(e){var t=Q(e);return w.reject(t)}))},ee=function(e){return e<200||e>=300},te=function(e,t){var n={"Content-Type":"application/json;charset=UTF-8","tiny-api-key":t};return Y(function(e,t){var n=-1===e.indexOf("?")?"?":"&";return/[?&]apiKey=/.test(e)?e:e+n+"apiKey="+encodeURIComponent(t)}(e,t),n).then((function(e){return ee(e.status)?(t=e.status,n=e.blob,function(e,t){return"application/json"===(null==t?void 0:t.type)&&(400===e||403===e||404===e||500===e)}(t,n)?Z(n):X(t)):w.resolve(e.blob);var t,n}))},ne=function(e,t,n){return void 0===n&&(n=!1),t?te(e,t):function(e,t){return Y(e,{},t).then((function(e){return ee(e.status)?X(e.status):w.resolve(e.blob)}))}(e,n)},oe=function(e){return B(e)},re=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},ie={fromHtml:function(e,t){var n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1)throw new Error("HTML must have a single root node");return re(n.childNodes[0])},fromTag:function(e,t){var n=(t||document).createElement(e);return re(n)},fromText:function(e,t){var n=(t||document).createTextNode(e);return re(n)},fromDom:re,fromPoint:function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(re)}};"undefined"!=typeof window?window:Function("return this;")();var ae=function(e,t){return function(e,t){return L(e.dom.childNodes,(function(e){return t(ie.fromDom(e))})).map(ie.fromDom)}(e,(function(e){return function(e,t){var n=e.dom;if(1!==n.nodeType)return!1;var o=n;if(void 0!==o.matches)return o.matches(t);if(void 0!==o.msMatchesSelector)return o.msMatchesSelector(t);if(void 0!==o.webkitMatchesSelector)return o.webkitMatchesSelector(t);if(void 0!==o.mozMatchesSelector)return o.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}(e,t)}))},se=tinymce.util.Tools.resolve("tinymce.util.Delay"),le=tinymce.util.Tools.resolve("tinymce.util.Promise"),ce=tinymce.util.Tools.resolve("tinymce.util.URI"),ue=function(e){return e.getParam("imagetools_toolbar","rotateleft rotateright flipv fliph editimage imageoptions")},de=function(e){return e.getParam("imagetools_proxy")},fe=function(e){var t,n,o=function(e){return/^[0-9\.]+px$/.test(e)};return t=e.style.width,n=e.style.height,t||n?o(t)&&o(n)?{w:parseInt(t,10),h:parseInt(n,10)}:null:(t=e.width,n=e.height,t&&n?{w:parseInt(t,10),h:parseInt(n,10)}:null)},pe=function(e){return{w:e.naturalWidth,h:e.naturalHeight}},me=0,he=function(e){return ae(ie.fromDom(e),"img")},ge=function(e,t){return e.dom.is(t,"figure")},ve=function(e,t){return e.dom.is(t,"img:not([data-mce-object],[data-mce-placeholder])")},be=function(e,t){var n=function(t){return ve(e,t)&&(Ce(e,t)||xe(e,t)||l(de(e)))};return ge(e,t)?he(t).bind((function(e){return n(e.dom)?b.some(e.dom):b.none()})):n(t)?b.some(t):b.none()},ye=function(e,t){e.notificationManager.open({text:t,type:"error"})},_e=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return null!==n&&ge(e,n)?he(n):ve(e,t)?b.some(ie.fromDom(t)):b.none()},we=function(e,t,n){var o=t.match(/(?:\/|^)(([^\/\?]+)\.(?:[a-z0-9.]+))(?:\?|$)/i);return l(o)?e.dom.encode(o[n]):null},Ce=function(e,t){var n=t.src;return 0===n.indexOf("data:")||0===n.indexOf("blob:")||new ce(n).host===e.documentBaseURI.host},xe=function(e,t){return-1!==a.inArray(function(e){return e.getParam("imagetools_cors_hosts",[],"string[]")}(e),new ce(t.src).host)},Oe=function(e,t){if(xe(e,t))return ne(t.src,null,function(e,t){return-1!==a.inArray(function(e){return e.getParam("imagetools_credentials_hosts",[],"string[]")}(e),new ce(t.src).host)}(e,t));if(!Ce(e,t)){var n=de(e),o=n+(-1===n.indexOf("?")?"?":"&")+"url="+encodeURIComponent(t.src),r=function(e){return e.getParam("api_key",e.getParam("imagetools_api_key","","string"),"string")}(e);return ne(o,r,!1)}return M(t)},Te=function(e,t){return function(e){return b.from(e.getParam("imagetools_fetch_image",null,"function"))}(e).fold((function(){return Oe(e,t)}),(function(e){return e(t)}))},Ee=function(e,t){var n=e.editorUpload.blobCache.getByUri(t.src);return n?le.resolve(n.blob()):Te(e,t)},Se=function(e){se.clearTimeout(e.get())},De=function(e,t,n,o,r,i,a){return n.toBlob().then((function(s){var c,u,d,f,p=e.editorUpload.blobCache;c=i.src;var m=t.type===s.type;return function(e){return e.getParam("images_reuse_filename",!1,"boolean")}(e)&&(f=p.getByUri(c),l(f)?(c=f.uri(),u=f.name(),d=f.filename()):(u=we(e,c,2),d=we(e,c,1))),f=p.create({id:"imagetools"+me++,blob:s,base64:n.toBase64(),uri:c,name:u,filename:m?d:void 0}),p.add(f),e.undoManager.transact((function(){var t=function(){e.$(i).off("load",t),e.nodeChanged(),o?e.editorUpload.uploadImagesAuto():(Se(r),function(e,t){var n=se.setEditorTimeout(e,(function(){e.editorUpload.uploadImagesAuto()}),function(e){return e.getParam("images_upload_timeout",3e4,"number")}(e));t.set(n)}(e,r))};e.$(i).on("load",t),a&&e.$(i).attr({width:a.w,height:a.h}),e.$(i).attr({src:f.blobUri()}).removeAttr("data-mce-src")})),f}))},ke=function(e,t,n,o){return function(){return _e(e).fold((function(){ye(e,"Could not find selected image")}),(function(r){return e._scanForImages().then((function(){return Ee(e,r.dom)})).then((function(i){return oe(i).then(n).then((function(n){return De(e,i,n,!1,t,r.dom,o)}))})).catch((function(t){ye(e,t)}))}))}},Ae=function(e,t,n){return function(){var o=_e(e).map((function(e){var t=fe(e.dom);return t?{w:t.h,h:t.w}:null})).getOrNull();return ke(e,t,(function(e){return W(e,n)}),o)()}},Me=function(e,t,n){return function(){return ke(e,t,(function(e){return H(e,n)}))()}},Ie=function(e,t,n,o,r){return function(e){return E(e)}(r).then((function(e){var t=pe(e);return o.w===t.w&&o.h===t.h||fe(n)&&function(e,t){var n,o;t&&(n=e.style.width,o=e.style.height,(n||o)&&(e.style.width=t.w+"px",e.style.height=t.h+"px",e.removeAttribute("data-mce-style")),n=e.width,o=e.height,(n||o)&&(e.setAttribute("width",String(t.w)),e.setAttribute("height",String(t.h))))}(n,t),URL.revokeObjectURL(e.src),r})).then(oe).then((function(o){return De(e,r,o,!0,t,n)}))},Pe=function(e,t){return function(){var n=_e(e),o=n.map((function(e){return pe(e.dom)}));n.each((function(r){be(e,r.dom).each((function(i){Ee(e,r.dom).then((function(r){var i=function(e){return{blob:e,url:URL.createObjectURL(e)}}(r);e.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(r){var i=r.getData().imagetools.blob;n.each((function(n){o.each((function(o){Ie(e,t,n.dom,o,i)}))})),r.close()},onCancel:u,onAction:function(e,t){switch(t.name){case"save-state":t.value?e.enable("save"):e.disable("save");break;case"disable":e.disable("save"),e.disable("cancel");break;case"enable":e.enable("cancel")}}})}))}))}))}};i.add("imagetools",(function(e){var t=r(0),n=r(null);!function(e,t){a.each({mceImageRotateLeft:Ae(e,t,-90),mceImageRotateRight:Ae(e,t,90),mceImageFlipVertical:Me(e,t,"v"),mceImageFlipHorizontal:Me(e,t,"h"),mceEditImage:Pe(e,t)},(function(t,n){e.addCommand(n,t)}))}(e,t),function(e){var t=[],n=function(t){return function(){return e.execCommand(t)}},o=function(){return _e(e).exists((function(t){return be(e,t.dom).isSome()}))},r=function(e){var n=function(t){return e.setDisabled(!t)};return n(o()),t=t.concat([n]),function(){t=function(e,t){for(var n=[],o=0,r=e.length;o<r;o++){var i=e[o];t(i,o)&&n.push(i)}return n}(t,(function(e){return e!==n}))}};e.on("NodeChange",(function(){var e=o();R(t,(function(t){return t(e)}))})),e.ui.registry.addButton("rotateleft",{tooltip:"Rotate counterclockwise",icon:"rotate-left",onAction:n("mceImageRotateLeft"),onSetup:r}),e.ui.registry.addButton("rotateright",{tooltip:"Rotate clockwise",icon:"rotate-right",onAction:n("mceImageRotateRight"),onSetup:r}),e.ui.registry.addButton("flipv",{tooltip:"Flip vertically",icon:"flip-vertically",onAction:n("mceImageFlipVertical"),onSetup:r}),e.ui.registry.addButton("fliph",{tooltip:"Flip horizontally",icon:"flip-horizontally",onAction:n("mceImageFlipHorizontal"),onSetup:r}),e.ui.registry.addButton("editimage",{tooltip:"Edit image",icon:"edit-image",onAction:n("mceEditImage"),onSetup:r}),e.ui.registry.addButton("imageoptions",{tooltip:"Image options",icon:"image",onAction:n("mceImage")}),e.ui.registry.addContextMenu("imagetools",{update:function(t){return be(e,t).map((function(e){return{text:"Edit image",icon:"edit-image",onAction:n("mceEditImage")}})).toArray()}})}(e),function(e){e.ui.registry.addContextToolbar("imagetools",{items:ue(e),predicate:function(t){return be(e,t).isSome()},position:"node",scope:"node"})}(e),function(e,t,n){e.on("NodeChange",(function(o){var r=n.get(),i=be(e,o.element);r&&!i.exists((function(e){return r.src===e.src}))&&(Se(t),e.editorUpload.uploadImagesAuto(),n.set(null)),i.each(n.set)}))}(e,t,n)}))}()}).call(this,n("c8ba"))},"9f7f":function(e,t,n){"use strict";var o=n("d039"),r=n("cfe9").RegExp,i=o((function(){var e=r("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||o((function(){return!r("a","y").sticky})),s=i||o((function(){var e=r("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},"9ffa":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITF14=t.ITF=void 0;var o=i(n("3c7c")),r=i(n("07df"));function i(e){return e&&e.__esModule?e:{default:e}}t.ITF=o.default,t.ITF14=r.default},a04b:function(e,t,n){"use strict";var o=n("c04e"),r=n("d9b5");e.exports=function(e){var t=o(e,"string");return r(t)?t:t+""}},a15b:function(e,t,n){"use strict";var o=n("23e7"),r=n("e330"),i=n("44ad"),a=n("fc6a"),s=n("a640"),l=r([].join);o({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},a168:function(e,t,n){"use strict";n("94e8")},a16a:function(e,t,n){"use strict";var o=n("6f3e"),r=n("c14f"),i=n("b85c"),a=n("1da1"),s=(n("99af"),n("7db0"),n("c740"),n("caad"),n("e260"),n("a15b"),n("d81d"),n("14d9"),n("b0c0"),n("e9f5"),n("f665"),n("7d54"),n("ab43"),n("b64b"),n("d3b7"),n("25f0"),n("3ca3"),n("159b"),n("ddb0"),n("e2e6")),l=n("eb5f"),c=n("7694"),u=n("5c9a"),d=n("8907"),f=n("fee3"),p=n("0f01");t.a={data:function(){return{columnList:[]}},methods:{fillingColumns:function(e){var t=this;if(e.selectedItem){var n=e.selectedItem.widgetModel,o=this.widgetForm.list.findIndex((function(e){return e.model===n&&"relatedForm"===e.type}));n&&o>=0&&(this.$set(this.widgetForm.list[o].options.selectedMap,"label",e.selectedItem.label),this.$set(this.widgetForm.list[o].options.selectedMap,"value",e.selectedItem.value)),e.selectedItem.type&&"input"===e.selectedItem.type||(this.$set(this.models,n,e.selectedItem.value||""),this.$set(this.models,"".concat(n,"_").concat(s.a),e.selectedItem.label||""))}e.fillingRules&&e.fillingRules.length&&(e.value&&Object.keys(e.value)&&Object.keys(e.value).length?e.fillingRules.forEach((function(n){var o=t.formatFillValue(n,e.value);t.isInTable?p.a.$emit("update-data-in-table",{tableModel:t.widget&&t.widget.options&&t.widget.options.tableModel,tableKey:t.widget&&t.widget.options&&t.widget.options.tableKey,rowIndex:t.rowIndex,targetColumnName:n.toColumnName,targetColumnValue:o}):t.$set(t.models,n.toColumnName,o)})):e.fillingRules.forEach((function(e){var n=t.allColumnList.find((function(t){return t&&t.model===e.toColumnName}));n&&n.length&&t.$set(t.models,e.toColumnName,n[0])})))},formatFillValue:function(e,t){var n=e.fromColumnName,o=e.fromColumnWidgetType,r=e.toColumnName,i=t[n],a=this.allColumnList.find((function(e){return e.model===r})),c=a.type;if(["input","textarea"].includes(c)){if("date"===o){var u=this.columnList.find((function(e){return e.columnName===n}));i=Object(l.f)(i,u.rawOptions)}else if("switches"===o)i=i?"是":"否";else if("address"===o)i="".concat(i?i.province:"").concat(i?i.city:"").concat(i?i.district:"").concat(i?i.details:"");else if(["select","checkbox","cascader"].includes(o))i=t[n+"_"+s.a]?t[n+"_"+s.a].join(","):"";else if(["member","organization"].includes(o)){var d="";i&&Array.isArray(i)&&i.length&&i.forEach((function(e,t){d+="".concat(e.name).concat(t!==i.length-1?",":"")})),i=d}i=null==i?"":i.toString&&i.toString().substr(0,a.options.maxLength||100)}else"relatedForm"===c&&(i=t[n+"_"+s.a]||"",this.$set(this.models,r+"_"+s.a,i));return i},getOptionLabel:function(e,t){var n=this;return Object(a.a)(Object(r.a)().m((function a(){var c,u,p,m,h,g,v,b,y;return Object(r.a)().w((function(a){for(;;)switch(a.p=a.n){case 0:if(c=null,u=n.columnList.find((function(e){return e.columnName===t})),!n.dictOptions||!n.dictOptions.length){a.n=12;break}if(!e[t]||"string"!=typeof e[t]){a.n=1;break}c="",p=n.dictOptions.find((function(n){return n.itemCode===e[t]})),c=p&&p.itemName,a.n=11;break;case 1:if(!e[t]||!Array.isArray(e[t])){a.n=11;break}if(m=[],!f.e[u.widgetType]){a.n=9;break}h=null,g=Object(i.a)(e[t]),a.p=2,b=Object(r.a)().m((function o(){var i,a,s,l;return Object(r.a)().w((function(o){for(;;)switch(o.n){case 0:if(i=v.value,0!==e[t].indexOf(i)){o.n=1;break}a=n.dictOptions.find((function(e){return e.itemCode===i})),m.push(a.itemName),h=a,o.n=3;break;case 1:return o.n=2,Object(d.a)(n,{dictId:h.dictId,parentId:h.id});case 2:(s=o.v)&&s.data&&s.data.length&&(l=s.data.find((function(e){return e.itemCode===i})),m.push(l.itemName),h=l);case 3:return o.a(2)}}),o)})),g.s();case 3:if((v=g.n()).done){a.n=5;break}return a.d(Object(o.a)(b()),4);case 4:a.n=3;break;case 5:a.n=7;break;case 6:a.p=6,y=a.v,g.e(y);case 7:return a.p=7,g.f(),a.f(7);case 8:a.n=10;break;case 9:e[t].map((function(e){var t=n.dictOptions.find((function(t){return t.itemCode===e}));m.push(t&&t.itemName)}));case 10:c=m&&m.toString&&m.toString();case 11:a.n=13;break;case 12:c=null===e[t]||void 0===e[t]?"":e[t].toString(),"cascader"===u.widgetType&&(c=e[t+"_"+s.a]?e[t+"_"+s.a].join(","):""),"relatedForm"===u.widgetType&&(c=e[t+"_"+s.a]||""),"date"===u.widgetType&&(c=Object(l.f)(e[t],u.rawOptions)),"address"===u.widgetType&&(c="".concat(e[t].province||"").concat(e[t].city||"").concat(e[t].district||"").concat(e[t].details||"")),"organization"===u.widgetType&&(c="",e[t]&&Array.isArray(e[t])&&e[t].length&&e[t].forEach((function(n,o){c+="".concat(n.name).concat(o!==e[t].length-1?" > ":"")}))),"member"===u.widgetType&&(c="",e[t]&&Array.isArray(e[t])&&e[t].length&&e[t].forEach((function(n,o){c+="".concat(n.name).concat(o!==e[t].length-1?",":"")})));case 13:return a.a(2,c)}}),a,null,[[2,6,7,8]])})))()},getColumnList:function(e){var t=this;return Object(a.a)(Object(r.a)().m((function n(){var o,i;return Object(r.a)().w((function(n){for(;;)switch(n.p=n.n){case 0:return t.loading=!0,n.p=1,n.n=2,Object(c.l)({formId:e});case 2:"0000"!==(o=n.v).data.code?t.$message.error(o.data.message||"获取表单数据列表失败"):t.columnList=o.data.data,n.n=4;break;case 3:n.p=3,i=n.v,t.$message.error(i);case 4:return n.p=4,t.loading=!1,n.f(4);case 5:return n.a(2)}}),n,null,[[1,3,4,5]])})))()},loadingDictOptionsByParams:function(e,t){var n=this;return Object(a.a)(Object(r.a)().m((function o(){var i,a;return Object(r.a)().w((function(o){for(;;)switch(o.n){case 0:return i=null,o.n=1,Object(d.a)(n,{dictId:e,parentId:t});case 1:return(a=o.v)&&a.data&&a.data.length&&(i=a.data),o.a(2,i)}}),o)})))()},loadingDictOptions:function(e){var t=this;return Object(a.a)(Object(r.a)().m((function n(){var o,i,a;return Object(r.a)().w((function(n){for(;;)switch(n.n){case 0:if(t.dictOptions=null,!(o=t.columnList.find((function(t){return t.columnName===e})))||o.remote!==u.a.DICT_DATA){n.n=2;break}return i=o&&o.rawOptions&&o.rawOptions.remoteOption&&o.rawOptions.remoteOption.remoteDict,n.n=1,Object(d.a)(t,{dictId:i&&i.dictId,parentId:i&&i.dictOptionId&&i.dictOptionId.length?i.dictOptionId:"#"});case 1:(a=n.v)&&a.data&&a.data.length&&(t.dictOptions=a.data);case 2:return n.a(2)}}),n)})))()}}}},a2b0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[];return function e(n){if(Array.isArray(n))for(var o=0;o<n.length;o++)e(n[o]);else n.text=n.text||"",n.data=n.data||"",t.push(n)}(e),t}},a2bf:function(e,t,n){"use strict";var o=n("e8b5"),r=n("07fa"),i=n("3511"),a=n("0366"),s=function(e,t,n,l,c,u,d,f){for(var p,m,h=c,g=0,v=!!d&&a(d,f);g<l;)g in n&&(p=v?v(n[g],g,t):n[g],u>0&&o(p)?(m=r(p),h=s(e,t,p,m,h,u-1)-1):(i(h+1),e[h]=p),h++),g++;return h};e.exports=s},a434:function(e,t,n){"use strict";var o=n("23e7"),r=n("7b0b"),i=n("23cb"),a=n("5926"),s=n("07fa"),l=n("3a34"),c=n("3511"),u=n("65f0"),d=n("8418"),f=n("083a"),p=n("1dde")("splice"),m=Math.max,h=Math.min;o({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,o,p,g,v,b,y=r(this),_=s(y),w=i(e,_),C=arguments.length;for(0===C?n=o=0:1===C?(n=0,o=_-w):(n=C-2,o=h(m(a(t),0),_-w)),c(_+n-o),p=u(y,o),g=0;g<o;g++)(v=w+g)in y&&d(p,g,y[v]);if(p.length=o,n<o){for(g=w;g<_-o;g++)b=g+n,(v=g+o)in y?y[b]=y[v]:f(y,b);for(g=_;g>_-o+n;g--)f(y,g-1)}else if(n>o)for(g=_-o;g>w;g--)b=g+n-1,(v=g+o-1)in y?y[b]=y[v]:f(y,b);for(g=0;g<n;g++)y[g+w]=arguments[g+2];return l(y,_-o+n),p}})},a4d3:function(e,t,n){"use strict";n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a4e7:function(e,t,n){"use strict";var o=n("23e7"),r=n("395e");o({target:"Set",proto:!0,real:!0,forced:!n("dad2")("isSupersetOf",(function(e){return!e}))},{isSupersetOf:r})},a5b2:function(e,t,n){"use strict";n("bfdb")},a5cf:function(e,t,n){"use strict";n("5b6a")},a5d2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n("c243"),i=a(n("5726"));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var e=r.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,i.default)(this.data,e,"01"),text:this.text}}}]),t}(a(n("e762")).default);t.default=s},a5f5:function(e,t,n){},a5f7:function(e,t,n){"use strict";var o=n("dc19"),r=n("cb27"),i=n("83b9"),a=n("8e16"),s=n("7f65"),l=n("384f"),c=n("5388"),u=r.has,d=r.remove;e.exports=function(e){var t=o(this),n=s(e),r=i(t);return a(t)<=n.size?l(t,(function(e){n.includes(e)&&d(r,e)})):c(n.getIterator(),(function(e){u(r,e)&&d(r,e)})),r}},a630:function(e,t,n){"use strict";var o=n("23e7"),r=n("4df4");o({target:"Array",stat:!0,forced:!n("1c7e")((function(e){Array.from(e)}))},{from:r})},a640:function(e,t,n){"use strict";var o=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){return 1},1)}))}},a6e1:function(e,t,n){},a732:function(e,t,n){"use strict";var o=n("23e7"),r=n("c65b"),i=n("2266"),a=n("59ed"),s=n("825a"),l=n("46c4"),c=n("2a62"),u=n("f99f")("some",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(u)return r(u,this,e);var t=l(this),n=0;return i(t,(function(t,o){if(e(t,n++))return o()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},a79d:function(e,t,n){"use strict";var o=n("23e7"),r=n("c430"),i=n("d256"),a=n("d039"),s=n("d066"),l=n("1626"),c=n("4840"),u=n("cdf9"),d=n("cb2d"),f=i&&i.prototype;if(o({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n=l(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!r&&l(i)){var p=s("Promise").prototype.finally;f.finally!==p&&d(f,"finally",p,{unsafe:!0})}},a7af:function(e,t,n){"use strict";n("f26e")},a7be:function(e,t,n){},a80e:function(e,t,n){},a93c:function(e,t,n){"use strict";n("cdc0")},a9d2:function(e,t,n){},a9e3:function(e,t,n){"use strict";var o=n("23e7"),r=n("c430"),i=n("83ab"),a=n("cfe9"),s=n("428f"),l=n("e330"),c=n("94ca"),u=n("1a2d"),d=n("7156"),f=n("3a9b"),p=n("d9b5"),m=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,C=s.Number,x=w.prototype,O=a.TypeError,T=l("".slice),E=l("".charCodeAt),S=function(e){var t=m(e,"number");return"bigint"==typeof t?t:D(t)},D=function(e){var t,n,o,r,i,a,s,l,c=m(e,"number");if(p(c))throw new O("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=_(c),43===(t=E(c,0))||45===t){if(88===(n=E(c,2))||120===n)return NaN}else if(48===t){switch(E(c,1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+c}for(a=(i=T(c,2)).length,s=0;s<a;s++)if((l=E(i,s))<48||l>r)return NaN;return parseInt(i,o)}return+c},k=c("Number",!w(" 0o1")||!w("0b1")||w("+0x1")),A=function(e){return f(x,e)&&h((function(){y(e)}))},M=function(e){var t=arguments.length<1?0:w(S(e));return A(this)?d(Object(t),this,M):t};M.prototype=x,k&&!r&&(x.constructor=M),o({global:!0,constructor:!0,wrap:!0,forced:k},{Number:M});var I=function(e,t){for(var n,o=i?g(t):"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(","),r=0;o.length>r;r++)u(t,n=o[r])&&!u(e,n)&&b(e,n,v(t,n))};r&&C&&I(s.Number,C),(k||r)&&I(s.Number,w)},aa47:function(e,t,n){"use strict";
14
14
  /**!
15
15
  * Sortable 1.10.2
16
16
  * @author RubaXa <trash@rubaxa.org>