├── vue-print-nb ├── src │ ├── index.js │ ├── main.js │ ├── packages │ │ ├── print.js │ │ └── printarea.js │ └── App.vue ├── README.md ├── .Archive │ └── README.md │ │ └── 2019-06-06 22-53-18.md ├── package.json ├── components │ └── HelloWorld.vue └── lib │ ├── tag-textarea.umd.min.js │ ├── tag-textarea.common.js │ └── tag-textarea.umd.js ├── .gitignore └── README.md /vue-print-nb/src/index.js: -------------------------------------------------------------------------------- 1 | import Print from './packages/print.js'; 2 | Print.install = function(Vue) { 3 | Vue.directive('print', Print); 4 | }; 5 | 6 | export default Print; -------------------------------------------------------------------------------- /vue-print-nb/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | import Print from './index.js' 4 | Vue.config.productionTip = false 5 | 6 | Vue.use(Print); 7 | new Vue({ 8 | render: h => h(App), 9 | }).$mount('#app') 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | **/*.log 8 | 9 | tests/**/coverage/ 10 | tests/e2e/reports 11 | selenium-debug.log 12 | 13 | # Editor directories and files 14 | .idea 15 | .vscode 16 | *.suo 17 | *.ntvs* 18 | *.njsproj 19 | *.sln 20 | *.local 21 | *.iml 22 | 23 | package-lock.json 24 | yarn.lock 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-print 2 | 3 | 基于vue-print-nb打印组件的拓展功能,下载后放在项目中引用 4 | 详情请看博客介绍 5 | https://www.cnblogs.com/steamed-twisted-roll/p/10683680.html 6 | 7 | ## Install 8 | 9 | #### main.js文件引用 10 | 11 | ```javascript 12 | import Print from './xxxx/vue-print-nb/src' 13 | 14 | Vue.use(Print); 15 | ``` 16 | -------------------------------------------------------------------------------- /vue-print-nb/README.md: -------------------------------------------------------------------------------- 1 | # vue-print-nb 2 | 3 | 基于vue-print-nb打印组件的拓展功能,下载后放在项目中引用 4 | 详情请看博客介绍 5 | https://www.cnblogs.com/steamed-twisted-roll/p/10683680.html 6 | 7 | ## Install 8 | 9 | #### NPM 10 | 11 | ```javascript 12 | import Print from './xxxx/vue-print-nb/src' 13 | 14 | Vue.use(Print); 15 | ``` 16 | -------------------------------------------------------------------------------- /vue-print-nb/.Archive/README.md/2019-06-06 22-53-18.md: -------------------------------------------------------------------------------- 1 | # vue-print-nb 2 | 3 | This is a directive wrapper for printed, Simple, fast, convenient, light. 4 | 5 | ## Install 6 | 7 | #### NPM 8 | ```bash 9 | npm install vue-print-nb --save 10 | ``` 11 | 12 | ```javascript 13 | import Print from 'vue-print-nb' 14 | 15 | Vue.use(Print); 16 | ``` 17 | 18 | 19 | ## Description 20 | 21 | #### Print the entire page: 22 | 23 | ``` 24 | 25 | ``` 26 | 27 | 28 | #### Print local range: 29 | 30 | HTML: 31 | ``` 32 |
33 |

葫芦娃,葫芦娃

34 |

一根藤上七朵花

35 |

小小树藤是我家 啦啦啦啦

36 |

叮当当咚咚当当 浇不大

37 |

叮当当咚咚当当 是我家

38 |

啦啦啦啦

39 |

...

40 |
41 | 42 | 43 | ``` 44 | 45 | 46 | ## License 47 | 48 | [MIT](http://opensource.org/licenses/MIT) -------------------------------------------------------------------------------- /vue-print-nb/src/packages/print.js: -------------------------------------------------------------------------------- 1 | import Print from './printarea.js'; 2 | /** 3 | * @file 打印 4 | * 指令`v-print`,默认打印整个窗口 5 | * 传入参数`v-print="'#id'"` , 参数为需要打印局部的盒子标识. 6 | */ 7 | export default { 8 | directiveName: 'print', 9 | bind(el, binding, vnode) { 10 | let vue = vnode.context; 11 | let closeBtn = true; 12 | let id = ''; 13 | el.addEventListener('click', () => { 14 | vue.$nextTick(() => { 15 | if (typeof binding.value === 'string') { 16 | id = binding.value; 17 | } else if (typeof binding.value === 'object' && !!binding.value.id) { 18 | id = binding.value.id; 19 | let ids = id.replace(new RegExp("#", "g"), ''); 20 | let elsdom = document.getElementById(ids); 21 | if (!elsdom) console.log("id in Error"), id = ''; 22 | } 23 | // 局部打印 24 | if (id) { 25 | localPrint(); 26 | } else { 27 | // 直接全局打印 28 | window.print(); 29 | } 30 | }); 31 | 32 | }); 33 | const localPrint = () => { 34 | if (closeBtn) { 35 | closeBtn = false; 36 | new Print({ 37 | ids: id, // * 局部打印必传入id 38 | ignoreClass: binding.value.ignoreClass, // 不需要打印内容的class 39 | standard: '', // 文档类型,默认是html5,可选 html5,loose,strict 40 | extraHead: binding.value.extraHead, // 附加在head标签上的额外标签,使用逗号分隔 41 | extraCss: binding.value.extraCss, // 额外的css连接,多个逗号分开 42 | popTitle: binding.value.popTitle, // title的标题 43 | endCallback() { // 调用打印之后的回调事件 44 | closeBtn = true; 45 | binding.value && binding.value.endCallback(binding.value) 46 | } 47 | }); 48 | } 49 | }; 50 | } 51 | }; -------------------------------------------------------------------------------- /vue-print-nb/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-print-nb", 3 | "version": "1.5.0", 4 | "description": "Vue plug-in, print! Good!", 5 | "main": "lib/tag-textarea.umd.min.js", 6 | "author": "Power-kxLee", 7 | "private": false, 8 | "license": "MIT", 9 | "scripts": { 10 | "serve": "vue-cli-service serve", 11 | "build": "vue-cli-service build", 12 | "lint": "vue-cli-service lint", 13 | "lib": "vue-cli-service build --target lib --name tag-textarea --dest lib src/index.js" 14 | }, 15 | "dependencies": { 16 | "core-js": "^2.6.5", 17 | "echarts": "^4.6.0", 18 | "qrcodejs2": "0.0.2", 19 | "vue": "^2.6.10" 20 | }, 21 | "devDependencies": { 22 | "@vue/cli-plugin-babel": "^3.8.0", 23 | "@vue/cli-plugin-eslint": "^3.8.0", 24 | "@vue/cli-service": "^3.8.0", 25 | "babel-eslint": "^10.0.1", 26 | "eslint": "^5.16.0", 27 | "eslint-plugin-vue": "^5.0.0", 28 | "vue-template-compiler": "^2.6.10" 29 | }, 30 | "eslintConfig": { 31 | "root": true, 32 | "env": { 33 | "node": true 34 | }, 35 | "extends": [ 36 | "plugin:vue/essential", 37 | "eslint:recommended" 38 | ], 39 | "rules": {}, 40 | "parserOptions": { 41 | "parser": "babel-eslint" 42 | } 43 | }, 44 | "postcss": { 45 | "plugins": { 46 | "autoprefixer": {} 47 | } 48 | }, 49 | "browserslist": [ 50 | "> 1%", 51 | "last 2 versions" 52 | ], 53 | "__npminstall_done": "Wed May 06 2020 10:28:06 GMT+0800 (GMT+08:00)", 54 | "_from": "vue-print-nb@1.5.0", 55 | "_resolved": "https://registry.npm.taobao.org/vue-print-nb/download/vue-print-nb-1.5.0.tgz" 56 | } -------------------------------------------------------------------------------- /vue-print-nb/components/HelloWorld.vue: -------------------------------------------------------------------------------- 1 | 32 | 37 | 45 | 46 | 47 | 63 | -------------------------------------------------------------------------------- /vue-print-nb/src/App.vue: -------------------------------------------------------------------------------- 1 | 36 | 41 | 89 | 90 | 100 | -------------------------------------------------------------------------------- /vue-print-nb/src/packages/printarea.js: -------------------------------------------------------------------------------- 1 | export default class { 2 | constructor(option) { 3 | 4 | this.standards = { 5 | strict: 'strict', 6 | loose: 'loose', 7 | html5: 'html5' 8 | }; 9 | this.selectArray = []; // 存储select的 10 | this.counter = 0; 11 | this.settings = { 12 | standard: this.standards.html5, 13 | extraHead: '', // 附加在head标签上的额外元素,使用逗号分隔 14 | extraCss: '', // 额外的css逗号分隔 15 | popTitle: '', // 标题 16 | endCallback: null, // 成功打开后的回调函数 17 | ids: '', // 局部打印的id 18 | ignoreClass: '' // 不需要打印内容的class 19 | }; 20 | Object.assign(this.settings, option); 21 | 22 | this.init(); 23 | } 24 | init() { 25 | this.counter++; 26 | this.settings.id = `printArea_${this.counter}`; 27 | let PrintAreaWindow = this.getPrintWindow(); // 创建iframe 28 | this.write(PrintAreaWindow.doc); // 写入内容 29 | this.print(PrintAreaWindow); 30 | this.settings.endCallback(); 31 | 32 | } 33 | print(PAWindow) { 34 | let paWindow = PAWindow.win; 35 | const _loaded = () => { 36 | paWindow.focus(); 37 | paWindow.print(); 38 | try { 39 | let box = document.getElementById(this.settings.id); 40 | let canvasList = this.elsdom.querySelectorAll('.canvasImg') 41 | // console.log(this.elsdom) 42 | for (let i = 0; i < canvasList.length; i++) { 43 | let _parent = canvasList[i].parentNode 44 | _parent.removeChild(canvasList[i]) 45 | } 46 | box.parentNode.removeChild(box); 47 | } catch (e) { 48 | console.log(e); 49 | } 50 | }; 51 | if (window.ActiveXObject) { 52 | paWindow.onload = _loaded(); 53 | return false; 54 | } 55 | paWindow.onload = () => { 56 | _loaded(); 57 | }; 58 | } 59 | write(PADocument, $ele) { 60 | PADocument.open(); 61 | PADocument.write(`${this.docType()}${this.getHead()}${this.getBody()}`); 62 | PADocument.close(); 63 | 64 | } 65 | docType() { 66 | if (this.settings.standard === this.standards.html5) { 67 | return ''; 68 | } 69 | var transitional = this.settings.standard === this.standards.loose ? ' Transitional' : ''; 70 | var dtd = this.settings.standard === this.standards.loose ? 'loose' : 'strict'; 71 | 72 | return ``; 73 | } 74 | getHead() { 75 | let extraHead = ''; 76 | let links = ''; 77 | let style = ''; 78 | if (this.settings.extraHead) { 79 | this.settings.extraHead.replace(/([^,]+)/g, (m) => { 80 | extraHead += m; 81 | }); 82 | } 83 | // 复制所有link标签 84 | [].forEach.call(document.querySelectorAll('link'), function (item, i) { 85 | if (item.href.indexOf('.css') >= 0) { 86 | links += ``; 87 | } 88 | }); 89 | // const _links = document.querySelectorAll('link'); 90 | // if (typeof _links === 'object' || _links.length > 0) { 91 | // // 复制所有link标签 92 | // for (let i = 0; i < _links.length; i++) { 93 | // let item = _links[i]; 94 | // if (item.href.indexOf('.css') >= 0) { 95 | // links += ``; 96 | // } 97 | // } 98 | // } 99 | // 循环获取style标签的样式 100 | let domStyle = document.styleSheets; 101 | if (domStyle && domStyle.length > 0) { 102 | for (let i = 0; i < domStyle.length; i++) { 103 | try { 104 | if (domStyle[i].cssRules || domStyle[i].rules) { 105 | let rules = domStyle[i].cssRules || domStyle[i].rules; 106 | for (let b = 0; b < rules.length; b++) { 107 | style += rules[b].cssText; 108 | } 109 | } 110 | } catch (e) { 111 | console.log(domStyle[i].href + e); 112 | } 113 | } 114 | } 115 | 116 | if (this.settings.extraCss) { 117 | this.settings.extraCss.replace(/([^,\s]+)/g, (m) => { 118 | links += ``; 119 | }); 120 | 121 | } 122 | 123 | return `${this.settings.popTitle}${extraHead}${links}`; 124 | } 125 | getBody() { 126 | let ids = this.settings.ids; 127 | ids = ids.replace(new RegExp("#", "g"), ''); 128 | this.elsdom = this.beforeHanler(document.getElementById(ids)); 129 | let ele = this.getFormData(this.elsdom); 130 | ele = this.ignoreText(ele) 131 | ele = this.handleTableStyle(ele) 132 | let htm = ele.outerHTML; 133 | // console.log(ele) 134 | return '' + htm + ''; 135 | } 136 | // 去除不需要打印的内容 137 | ignoreText(ele) { 138 | const copy = ele.cloneNode(true) 139 | const ignoreNodes = copy.querySelectorAll('.' + this.settings.ignoreClass); 140 | const nodes = copy.childNodes 141 | // console.log(copy, nodes) 142 | const reducer = (el, data, ignoreNode) => { 143 | for (let i = 0; i < data.length; i++) { 144 | const item = data[i]; 145 | if (item == ignoreNode) { 146 | el.removeChild(ignoreNode) 147 | break 148 | } else if (item.childNodes && item.childNodes.length) { 149 | reducer(item, item.childNodes, ignoreNode) 150 | } 151 | } 152 | } 153 | if (ignoreNodes && ignoreNodes.length) { 154 | for (let i = 0; i < ignoreNodes.length; i++) { 155 | const ignoreNode = ignoreNodes[i]; 156 | reducer(copy, nodes, ignoreNode) 157 | } 158 | } 159 | return copy 160 | } 161 | // 设置el-table样式 162 | handleTableStyle(ele) { 163 | const copy = ele.cloneNode(true) 164 | const tableNodes = copy.querySelectorAll('.el-table__header,.el-table__body'); 165 | /*** 这里先注释,有需要的可以按照这个例子自己自定义 */ 166 | // const tableBorderNodes = copy.querySelectorAll('.el-table--border'); 167 | // const thBorderNodes = copy.querySelectorAll('.el-table--border th'); 168 | // // 给表格添加下边框和右边框(根据自己的打印预览样式修改,不同电脑显示的效果不一样) 169 | // for (let i = 0; i < tableBorderNodes.length; i++) { 170 | // const element = tableBorderNodes[i]; 171 | // element.style.border = '1px solid #EBEEF5' 172 | // } 173 | // // 给表格th添加边框 174 | // for (let i = 0; i < thBorderNodes.length; i++) { 175 | // const element = thBorderNodes[i]; 176 | // element.style.border = '1px solid #EBEEF5' 177 | // } 178 | /**------------------------------- */ 179 | // 处理宽度 180 | for (let i = 0; i < tableNodes.length; i++) { 181 | const tableItem = tableNodes[i]; 182 | tableItem.style.width = '100%' // 将宽度设置为百分比 183 | const child = tableItem.childNodes 184 | for (let j = 0; j < child.length; j++) { 185 | const element = child[j]; 186 | if (element.localName === 'colgroup') { // 去除默认的表格宽度设置 187 | element.innerHTML = '' 188 | } 189 | } 190 | } 191 | return copy 192 | } 193 | // 克隆节点之前做的操作 194 | beforeHanler(elsdom) { 195 | let canvasList = elsdom.querySelectorAll('canvas'); 196 | // canvas转换png图片 197 | for (let i = 0; i < canvasList.length; i++) { 198 | if (!canvasList[i].style.display) { 199 | let _parent = canvasList[i].parentNode 200 | let _canvasUrl = canvasList[i].toDataURL('image/png') 201 | let _img = new Image() 202 | _img.className = 'canvasImg' 203 | _img.style.display = 'none' 204 | _img.src = _canvasUrl 205 | // _parent.replaceChild(_img, canvasList[i]) 206 | _parent.appendChild(_img) 207 | } 208 | } 209 | return elsdom 210 | } 211 | // 根据type去处理form表单 212 | getFormData(ele) { 213 | let copy = ele.cloneNode(true); 214 | let copiedInputs = copy.querySelectorAll('input,select,textarea'); 215 | let canvasImgList = copy.querySelectorAll('.canvasImg,canvas'); 216 | let selectCount = -1; 217 | // 处理所有canvas 218 | for (let i = 0; i < canvasImgList.length; i++) { 219 | let _parent = canvasImgList[i].parentNode 220 | let item = canvasImgList[i] 221 | // 删除克隆后的canvas节点 222 | if (item.tagName.toLowerCase() === 'canvas') { 223 | _parent.removeChild(item) 224 | } else { 225 | item.style.display = 'block' 226 | } 227 | } 228 | // 处理所有输入框 229 | for (let i = 0; i < copiedInputs.length; i++) { 230 | let item = copiedInputs[i]; 231 | let typeInput = item.getAttribute('type'); 232 | 233 | let copiedInput = copiedInputs[i]; 234 | // 获取select标签 235 | if (!typeInput) { 236 | typeInput = item.tagName === 'SELECT' ? 'select' : item.tagName === 'TEXTAREA' ? 'textarea' : ''; 237 | } 238 | // 处理input框 239 | if (item.tagName === 'INPUT') { 240 | // 除了单选框 多选框比较特别 241 | if (typeInput === 'radio' || typeInput === 'checkbox') { 242 | copiedInput.setAttribute('checked', item.checked); 243 | // 244 | } else { 245 | copiedInput.value = item.value; 246 | copiedInput.setAttribute('value', item.value); 247 | } 248 | // 处理select 249 | } else if (typeInput === 'select') { 250 | 251 | selectCount++; 252 | for (let b = 0; b < ele.querySelectorAll('select').length; b++) { 253 | let select = ele.querySelectorAll('select')[b]; // 获取原始层每一个select 254 | !select.getAttribute('newbs') && select.setAttribute('newbs', b) // 添加标识 255 | if (select.getAttribute('newbs') == selectCount) { 256 | let opSelectedIndex = ele.querySelectorAll('select')[selectCount].selectedIndex; 257 | item.options[opSelectedIndex].setAttribute('selected', true); 258 | 259 | } 260 | } 261 | // 处理textarea 262 | } else { 263 | copiedInput.innerHTML = item.value; 264 | copiedInput.setAttribute('html', item.value); 265 | } 266 | } 267 | return copy; 268 | } 269 | getPrintWindow() { 270 | var f = this.Iframe(); 271 | return { 272 | f: f, 273 | win: f.contentWindow || f, 274 | doc: f.doc 275 | }; 276 | } 277 | Iframe() { 278 | let frameId = this.settings.id; 279 | let iframe; 280 | let that = this 281 | try { 282 | iframe = document.createElement('iframe'); 283 | document.body.appendChild(iframe); 284 | iframe.style.border = '0px'; 285 | iframe.style.position = 'absolute'; 286 | iframe.style.width = '0px'; 287 | iframe.style.height = '0px'; 288 | iframe.style.right = '0px'; 289 | iframe.style.top = '0px'; 290 | iframe.setAttribute('id', frameId); 291 | iframe.setAttribute('src', new Date().getTime()); 292 | iframe.doc = null; 293 | iframe.doc = iframe.contentDocument ? iframe.contentDocument : (iframe.contentWindow ? iframe.contentWindow.document : iframe.document); 294 | iframe.onload = function () { 295 | var win = iframe.contentWindow || iframe; 296 | that.print(win); 297 | } 298 | } catch (e) { 299 | throw new Error(e + '. iframes may not be supported in this browser.'); 300 | } 301 | 302 | if (iframe.doc == null) { 303 | throw new Error('Cannot find document.'); 304 | } 305 | 306 | return iframe; 307 | } 308 | } 309 | -------------------------------------------------------------------------------- /vue-print-nb/lib/tag-textarea.umd.min.js: -------------------------------------------------------------------------------- 1 | (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["tag-textarea"]=e():t["tag-textarea"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="112a")}({"008a":function(t,e,n){var r=n("f6b4");t.exports=function(t){return Object(r(t))}},"064e":function(t,e,n){var r=n("69b3"),o=n("db6b"),i=n("94b3"),c=Object.defineProperty;e.f=n("149f")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"09b9":function(t,e,n){var r=n("224c"),o=n("f6b4");t.exports=function(t){return r(o(t))}},"0aed":function(t,e,n){"use strict";n("aaba");var r=n("bf16"),o=n("86d4"),i=n("238a"),c=n("f6b4"),a=n("cb3d"),u=n("8714"),s=a("species"),f=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),l=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=a(t),p=!i((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),v=p?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[s]=function(){return n}),n[d](""),!e})):void 0;if(!p||!v||"replace"===t&&!f||"split"===t&&!l){var h=/./[d],y=n(c,d,""[t],(function(t,e,n,r,o){return e.exec===u?p&&!o?{done:!0,value:h.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),b=y[0],g=y[1];r(String.prototype,t,b),o(RegExp.prototype,d,2==e?function(t,e){return g.call(t,this,e)}:function(t){return g.call(t,this)})}}},"0dc8":function(t,e,n){var r=n("064e"),o=n("69b3"),i=n("80a9");t.exports=n("149f")?Object.defineProperties:function(t,e){o(t);var n,c=i(e),a=c.length,u=0;while(a>u)r.f(t,n=c[u++],e[n]);return t}},"0e8b":function(t,e,n){var r=n("cb3d")("unscopables"),o=Array.prototype;void 0==o[r]&&n("86d4")(o,r,{}),t.exports=function(t){o[r][t]=!0}},"112a":function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&(n("e67d"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("9dd9"),n("f548");function o(t){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}n("6d57"),n("5f54");function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n").concat(this.getHead()).concat(this.getBody(),"")),t.close()}},{key:"docType",value:function(){if(this.settings.standard===this.standards.html5)return"";var t=this.settings.standard===this.standards.loose?" Transitional":"",e=this.settings.standard===this.standards.loose?"loose":"strict";return'')}},{key:"getHead",value:function(){var t="",e="",n="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,(function(e){t+=e})),[].forEach.call(document.querySelectorAll("link"),(function(t,n){t.href.indexOf(".css")>=0&&(e+=''))}));var r=document.styleSheets;if(r&&r.length>0)for(var o=0;o')})),"".concat(this.settings.popTitle,"").concat(t).concat(e,'")}},{key:"getBody",value:function(){var t=this.settings.ids;t=t.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(t));var e=this.getFormData(this.elsdom),n=e.outerHTML;return""+n+""}},{key:"beforeHanler",value:function(t){for(var e=t.querySelectorAll("canvas"),n=0;n1&&i.call(c[0],n,(function(){for(f=1;fb;)h(y[b++]);l.constructor=s,s.prototype=l,n("bf16")(r,"RegExp",s)}n("1157")("RegExp")},aaba:function(t,e,n){"use strict";var r=n("8714");n("e46b")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b3a6:function(t,e,n){var r=n("09b9"),o=n("eafa"),i=n("f58a");t.exports=function(t){return function(e,n,c){var a,u=r(e),s=o(u.length),f=i(c,s);if(t&&n!=n){while(s>f)if(a=u[f++],a!=a)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},bf16:function(t,e,n){var r=n("e7ad"),o=n("86d4"),i=n("e042"),c=n("ec45")("src"),a=n("d07e"),u="toString",s=(""+a).split(u);n("7ddc").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(u&&(i(n,c)||o(n,c,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[c]||a.call(this)}))},bfe7:function(t,e,n){var r=n("fb68"),o=n("e7ad").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},c2f7:function(t,e,n){var r=n("e042"),o=n("09b9"),i=n("b3a6")(!1),c=n("56f2")("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,s=[];for(n in a)n!=c&&r(a,n)&&s.push(n);while(e.length>u)r(a,n=e[u++])&&(~i(s,n)||s.push(n));return s}},cb3d:function(t,e,n){var r=n("6798")("wks"),o=n("ec45"),i=n("e7ad").Symbol,c="function"==typeof i,a=t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))};a.store=r},cc33:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},ceac:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},d07e:function(t,e,n){t.exports=n("6798")("native-function-to-string",Function.toString)},da6d:function(t,e){t.exports={}},db6b:function(t,e,n){t.exports=!n("149f")&&!n("238a")((function(){return 7!=Object.defineProperty(n("bfe7")("div"),"a",{get:function(){return 7}}).a}))},dcb7:function(t,e,n){var r=n("4f18"),o=n("cc33"),i=n("09b9"),c=n("94b3"),a=n("e042"),u=n("db6b"),s=Object.getOwnPropertyDescriptor;e.f=n("149f")?s:function(t,e){if(t=i(t),e=c(e,!0),u)try{return s(t,e)}catch(n){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},e005:function(t,e,n){var r=n("69b3"),o=n("0dc8"),i=n("ceac"),c=n("56f2")("IE_PROTO"),a=function(){},u="prototype",s=function(){var t,e=n("bfe7")("iframe"),r=i.length,o="<",c=">";e.style.display="none",n("8df1").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+c+"document.F=Object"+o+"/script"+c),t.close(),s=t.F;while(r--)delete s[u][i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[u]=r(t),n=new a,a[u]=null,n[c]=t):n=s(),void 0===e?n:o(n,e)}},e042:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},e118:function(t,e,n){"use strict";var r=n("149f"),o=n("80a9"),i=n("2f77"),c=n("4f18"),a=n("008a"),u=n("224c"),s=Object.assign;t.exports=!s||n("238a")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r}))?function(t,e){var n=a(t),s=arguments.length,f=1,l=i.f,d=c.f;while(s>f){var p,v=u(arguments[f++]),h=l?o(v).concat(l(v)):o(v),y=h.length,b=0;while(y>b)p=h[b++],r&&!d.call(v,p)||(n[p]=v[p])}return n}:s},e44b:function(t,e,n){"use strict";var r=n("0e8b"),o=n("475d"),i=n("da6d"),c=n("09b9");t.exports=n("492d")(Array,"Array",(function(t,e){this._t=c(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},e46b:function(t,e,n){var r=n("e7ad"),o=n("7ddc"),i=n("86d4"),c=n("bf16"),a=n("4ce5"),u="prototype",s=function(t,e,n){var f,l,d,p,v=t&s.F,h=t&s.G,y=t&s.S,b=t&s.P,g=t&s.B,x=h?r:y?r[e]||(r[e]={}):(r[e]||{})[u],m=h?o:o[e]||(o[e]={}),w=m[u]||(m[u]={});for(f in h&&(n=e),n)l=!v&&x&&void 0!==x[f],d=(l?x:n)[f],p=g&&l?a(d,r):b&&"function"==typeof d?a(Function.call,d):d,x&&c(x,f,d,t&s.U),m[f]!=d&&i(m,f,p),b&&w[f]!=d&&(w[f]=d)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},e67d:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},e754:function(t,e,n){"use strict";var r=n("fc81")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},e7ad:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},eafa:function(t,e,n){var r=n("ee21"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},ec45:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},ee21:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},f1fe:function(t,e,n){"use strict";var r=n("69b3");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},f548:function(t,e,n){"use strict";var r=n("69b3"),o=n("008a"),i=n("eafa"),c=n("ee21"),a=n("e754"),u=n("7108"),s=Math.max,f=Math.min,l=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,v=function(t){return void 0===t?t:String(t)};n("0aed")("replace",2,(function(t,e,n,h){return[function(r,o){var i=t(this),c=void 0==r?void 0:r[e];return void 0!==c?c.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=h(n,t,this,e);if(o.done)return o.value;var l=r(t),d=String(this),p="function"===typeof e;p||(e=String(e));var b=l.global;if(b){var g=l.unicode;l.lastIndex=0}var x=[];while(1){var m=u(l,d);if(null===m)break;if(x.push(m),!b)break;var w=String(m[0]);""===w&&(l.lastIndex=a(d,i(l.lastIndex),g))}for(var S="",O=0,E=0;E=O&&(S+=d.slice(O,j)+L,O=j+T.length)}return S+d.slice(O)}];function y(t,e,r,i,c,a){var u=r+t.length,s=i.length,f=p;return void 0!==c&&(c=o(c),f=d),n.call(a,f,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":a=c[o.slice(1,-1)];break;default:var f=+o;if(0===f)return n;if(f>s){var d=l(f/10);return 0===d?n:d<=s?void 0===i[d-1]?o.charAt(1):i[d-1]+o.charAt(1):n}a=i[f-1]}return void 0===a?"":a}))}}))},f58a:function(t,e,n){var r=n("ee21"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},f6b4:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},fb68:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fc81:function(t,e,n){var r=n("ee21"),o=n("f6b4");t.exports=function(t){return function(e,n){var i,c,a=String(o(e)),u=r(n),s=a.length;return u<0||u>=s?t?"":void 0:(i=a.charCodeAt(u),i<55296||i>56319||u+1===s||(c=a.charCodeAt(u+1))<56320||c>57343?t?a.charAt(u):i:t?a.slice(u,u+2):c-56320+(i-55296<<10)+65536)}}}})})); 2 | //# sourceMappingURL=tag-textarea.umd.min.js.map -------------------------------------------------------------------------------- /vue-print-nb/lib/tag-textarea.common.js: -------------------------------------------------------------------------------- 1 | module.exports = 2 | /******/ (function(modules) { // webpackBootstrap 3 | /******/ // The module cache 4 | /******/ var installedModules = {}; 5 | /******/ 6 | /******/ // The require function 7 | /******/ function __webpack_require__(moduleId) { 8 | /******/ 9 | /******/ // Check if module is in cache 10 | /******/ if(installedModules[moduleId]) { 11 | /******/ return installedModules[moduleId].exports; 12 | /******/ } 13 | /******/ // Create a new module (and put it into the cache) 14 | /******/ var module = installedModules[moduleId] = { 15 | /******/ i: moduleId, 16 | /******/ l: false, 17 | /******/ exports: {} 18 | /******/ }; 19 | /******/ 20 | /******/ // Execute the module function 21 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 22 | /******/ 23 | /******/ // Flag the module as loaded 24 | /******/ module.l = true; 25 | /******/ 26 | /******/ // Return the exports of the module 27 | /******/ return module.exports; 28 | /******/ } 29 | /******/ 30 | /******/ 31 | /******/ // expose the modules object (__webpack_modules__) 32 | /******/ __webpack_require__.m = modules; 33 | /******/ 34 | /******/ // expose the module cache 35 | /******/ __webpack_require__.c = installedModules; 36 | /******/ 37 | /******/ // define getter function for harmony exports 38 | /******/ __webpack_require__.d = function(exports, name, getter) { 39 | /******/ if(!__webpack_require__.o(exports, name)) { 40 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 41 | /******/ } 42 | /******/ }; 43 | /******/ 44 | /******/ // define __esModule on exports 45 | /******/ __webpack_require__.r = function(exports) { 46 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 47 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 48 | /******/ } 49 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 50 | /******/ }; 51 | /******/ 52 | /******/ // create a fake namespace object 53 | /******/ // mode & 1: value is a module id, require it 54 | /******/ // mode & 2: merge all properties of value into the ns 55 | /******/ // mode & 4: return value when already ns object 56 | /******/ // mode & 8|1: behave like require 57 | /******/ __webpack_require__.t = function(value, mode) { 58 | /******/ if(mode & 1) value = __webpack_require__(value); 59 | /******/ if(mode & 8) return value; 60 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 61 | /******/ var ns = Object.create(null); 62 | /******/ __webpack_require__.r(ns); 63 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 64 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 65 | /******/ return ns; 66 | /******/ }; 67 | /******/ 68 | /******/ // getDefaultExport function for compatibility with non-harmony modules 69 | /******/ __webpack_require__.n = function(module) { 70 | /******/ var getter = module && module.__esModule ? 71 | /******/ function getDefault() { return module['default']; } : 72 | /******/ function getModuleExports() { return module; }; 73 | /******/ __webpack_require__.d(getter, 'a', getter); 74 | /******/ return getter; 75 | /******/ }; 76 | /******/ 77 | /******/ // Object.prototype.hasOwnProperty.call 78 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 79 | /******/ 80 | /******/ // __webpack_public_path__ 81 | /******/ __webpack_require__.p = ""; 82 | /******/ 83 | /******/ 84 | /******/ // Load entry module and return exports 85 | /******/ return __webpack_require__(__webpack_require__.s = "112a"); 86 | /******/ }) 87 | /************************************************************************/ 88 | /******/ ({ 89 | 90 | /***/ "008a": 91 | /***/ (function(module, exports, __webpack_require__) { 92 | 93 | // 7.1.13 ToObject(argument) 94 | var defined = __webpack_require__("f6b4"); 95 | module.exports = function (it) { 96 | return Object(defined(it)); 97 | }; 98 | 99 | 100 | /***/ }), 101 | 102 | /***/ "064e": 103 | /***/ (function(module, exports, __webpack_require__) { 104 | 105 | var anObject = __webpack_require__("69b3"); 106 | var IE8_DOM_DEFINE = __webpack_require__("db6b"); 107 | var toPrimitive = __webpack_require__("94b3"); 108 | var dP = Object.defineProperty; 109 | 110 | exports.f = __webpack_require__("149f") ? Object.defineProperty : function defineProperty(O, P, Attributes) { 111 | anObject(O); 112 | P = toPrimitive(P, true); 113 | anObject(Attributes); 114 | if (IE8_DOM_DEFINE) try { 115 | return dP(O, P, Attributes); 116 | } catch (e) { /* empty */ } 117 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 118 | if ('value' in Attributes) O[P] = Attributes.value; 119 | return O; 120 | }; 121 | 122 | 123 | /***/ }), 124 | 125 | /***/ "09b9": 126 | /***/ (function(module, exports, __webpack_require__) { 127 | 128 | // to indexed object, toObject with fallback for non-array-like ES3 strings 129 | var IObject = __webpack_require__("224c"); 130 | var defined = __webpack_require__("f6b4"); 131 | module.exports = function (it) { 132 | return IObject(defined(it)); 133 | }; 134 | 135 | 136 | /***/ }), 137 | 138 | /***/ "0aed": 139 | /***/ (function(module, exports, __webpack_require__) { 140 | 141 | "use strict"; 142 | 143 | __webpack_require__("aaba"); 144 | var redefine = __webpack_require__("bf16"); 145 | var hide = __webpack_require__("86d4"); 146 | var fails = __webpack_require__("238a"); 147 | var defined = __webpack_require__("f6b4"); 148 | var wks = __webpack_require__("cb3d"); 149 | var regexpExec = __webpack_require__("8714"); 150 | 151 | var SPECIES = wks('species'); 152 | 153 | var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { 154 | // #replace needs built-in support for named groups. 155 | // #match works fine because it just return the exec results, even if it has 156 | // a "grops" property. 157 | var re = /./; 158 | re.exec = function () { 159 | var result = []; 160 | result.groups = { a: '7' }; 161 | return result; 162 | }; 163 | return ''.replace(re, '$') !== '7'; 164 | }); 165 | 166 | var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () { 167 | // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec 168 | var re = /(?:)/; 169 | var originalExec = re.exec; 170 | re.exec = function () { return originalExec.apply(this, arguments); }; 171 | var result = 'ab'.split(re); 172 | return result.length === 2 && result[0] === 'a' && result[1] === 'b'; 173 | })(); 174 | 175 | module.exports = function (KEY, length, exec) { 176 | var SYMBOL = wks(KEY); 177 | 178 | var DELEGATES_TO_SYMBOL = !fails(function () { 179 | // String methods call symbol-named RegEp methods 180 | var O = {}; 181 | O[SYMBOL] = function () { return 7; }; 182 | return ''[KEY](O) != 7; 183 | }); 184 | 185 | var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () { 186 | // Symbol-named RegExp methods call .exec 187 | var execCalled = false; 188 | var re = /a/; 189 | re.exec = function () { execCalled = true; return null; }; 190 | if (KEY === 'split') { 191 | // RegExp[@@split] doesn't call the regex's exec method, but first creates 192 | // a new one. We need to return the patched regex when creating the new one. 193 | re.constructor = {}; 194 | re.constructor[SPECIES] = function () { return re; }; 195 | } 196 | re[SYMBOL](''); 197 | return !execCalled; 198 | }) : undefined; 199 | 200 | if ( 201 | !DELEGATES_TO_SYMBOL || 202 | !DELEGATES_TO_EXEC || 203 | (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) || 204 | (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) 205 | ) { 206 | var nativeRegExpMethod = /./[SYMBOL]; 207 | var fns = exec( 208 | defined, 209 | SYMBOL, 210 | ''[KEY], 211 | function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) { 212 | if (regexp.exec === regexpExec) { 213 | if (DELEGATES_TO_SYMBOL && !forceStringMethod) { 214 | // The native String method already delegates to @@method (this 215 | // polyfilled function), leasing to infinite recursion. 216 | // We avoid it by directly calling the native @@method method. 217 | return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) }; 218 | } 219 | return { done: true, value: nativeMethod.call(str, regexp, arg2) }; 220 | } 221 | return { done: false }; 222 | } 223 | ); 224 | var strfn = fns[0]; 225 | var rxfn = fns[1]; 226 | 227 | redefine(String.prototype, KEY, strfn); 228 | hide(RegExp.prototype, SYMBOL, length == 2 229 | // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) 230 | // 21.2.5.11 RegExp.prototype[@@split](string, limit) 231 | ? function (string, arg) { return rxfn.call(string, this, arg); } 232 | // 21.2.5.6 RegExp.prototype[@@match](string) 233 | // 21.2.5.9 RegExp.prototype[@@search](string) 234 | : function (string) { return rxfn.call(string, this); } 235 | ); 236 | } 237 | }; 238 | 239 | 240 | /***/ }), 241 | 242 | /***/ "0dc8": 243 | /***/ (function(module, exports, __webpack_require__) { 244 | 245 | var dP = __webpack_require__("064e"); 246 | var anObject = __webpack_require__("69b3"); 247 | var getKeys = __webpack_require__("80a9"); 248 | 249 | module.exports = __webpack_require__("149f") ? Object.defineProperties : function defineProperties(O, Properties) { 250 | anObject(O); 251 | var keys = getKeys(Properties); 252 | var length = keys.length; 253 | var i = 0; 254 | var P; 255 | while (length > i) dP.f(O, P = keys[i++], Properties[P]); 256 | return O; 257 | }; 258 | 259 | 260 | /***/ }), 261 | 262 | /***/ "0e8b": 263 | /***/ (function(module, exports, __webpack_require__) { 264 | 265 | // 22.1.3.31 Array.prototype[@@unscopables] 266 | var UNSCOPABLES = __webpack_require__("cb3d")('unscopables'); 267 | var ArrayProto = Array.prototype; 268 | if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("86d4")(ArrayProto, UNSCOPABLES, {}); 269 | module.exports = function (key) { 270 | ArrayProto[UNSCOPABLES][key] = true; 271 | }; 272 | 273 | 274 | /***/ }), 275 | 276 | /***/ "112a": 277 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 278 | 279 | "use strict"; 280 | __webpack_require__.r(__webpack_exports__); 281 | 282 | // CONCATENATED MODULE: ./node_modules/_@vue_cli-service@3.12.1@@vue/cli-service/lib/commands/build/setPublicPath.js 283 | // This file is imported into lib/wc client bundles. 284 | 285 | if (typeof window !== 'undefined') { 286 | if (true) { 287 | __webpack_require__("e67d") 288 | } 289 | 290 | var i 291 | if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) { 292 | __webpack_require__.p = i[1] // eslint-disable-line 293 | } 294 | } 295 | 296 | // Indicate to webpack that this file can be concatenated 297 | /* harmony default export */ var setPublicPath = (null); 298 | 299 | // EXTERNAL MODULE: ./node_modules/_core-js@2.6.11@core-js/modules/es6.regexp.constructor.js 300 | var es6_regexp_constructor = __webpack_require__("9dd9"); 301 | 302 | // EXTERNAL MODULE: ./node_modules/_core-js@2.6.11@core-js/modules/es6.regexp.replace.js 303 | var es6_regexp_replace = __webpack_require__("f548"); 304 | 305 | // CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.8.3@@babel/runtime/helpers/esm/typeof.js 306 | function _typeof(obj) { 307 | if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 308 | _typeof = function _typeof(obj) { 309 | return typeof obj; 310 | }; 311 | } else { 312 | _typeof = function _typeof(obj) { 313 | return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 314 | }; 315 | } 316 | 317 | return _typeof(obj); 318 | } 319 | // EXTERNAL MODULE: ./node_modules/_core-js@2.6.11@core-js/modules/web.dom.iterable.js 320 | var web_dom_iterable = __webpack_require__("6d57"); 321 | 322 | // EXTERNAL MODULE: ./node_modules/_core-js@2.6.11@core-js/modules/es6.object.assign.js 323 | var es6_object_assign = __webpack_require__("5f54"); 324 | 325 | // CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.8.3@@babel/runtime/helpers/esm/classCallCheck.js 326 | function _classCallCheck(instance, Constructor) { 327 | if (!(instance instanceof Constructor)) { 328 | throw new TypeError("Cannot call a class as a function"); 329 | } 330 | } 331 | // CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.8.3@@babel/runtime/helpers/esm/createClass.js 332 | function _defineProperties(target, props) { 333 | for (var i = 0; i < props.length; i++) { 334 | var descriptor = props[i]; 335 | descriptor.enumerable = descriptor.enumerable || false; 336 | descriptor.configurable = true; 337 | if ("value" in descriptor) descriptor.writable = true; 338 | Object.defineProperty(target, descriptor.key, descriptor); 339 | } 340 | } 341 | 342 | function _createClass(Constructor, protoProps, staticProps) { 343 | if (protoProps) _defineProperties(Constructor.prototype, protoProps); 344 | if (staticProps) _defineProperties(Constructor, staticProps); 345 | return Constructor; 346 | } 347 | // CONCATENATED MODULE: ./src/packages/printarea.js 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | var printarea_default = 356 | /*#__PURE__*/ 357 | function () { 358 | function _default(option) { 359 | _classCallCheck(this, _default); 360 | 361 | this.standards = { 362 | strict: 'strict', 363 | loose: 'loose', 364 | html5: 'html5' 365 | }; 366 | this.selectArray = []; // 存储select的 367 | 368 | this.counter = 0; 369 | this.settings = { 370 | standard: this.standards.html5, 371 | extraHead: '', 372 | // 附加在head标签上的额外元素,使用逗号分隔 373 | extraCss: '', 374 | // 额外的css逗号分隔 375 | popTitle: '', 376 | // 标题 377 | endCallback: null, 378 | // 成功打开后的回调函数 379 | ids: '' // 局部打印的id 380 | 381 | }; 382 | Object.assign(this.settings, option); 383 | this.init(); 384 | } 385 | 386 | _createClass(_default, [{ 387 | key: "init", 388 | value: function init() { 389 | this.counter++; 390 | this.settings.id = "printArea_".concat(this.counter); 391 | var PrintAreaWindow = this.getPrintWindow(); // 创建iframe 392 | 393 | this.write(PrintAreaWindow.doc); // 写入内容 394 | 395 | this.print(PrintAreaWindow); 396 | this.settings.endCallback(); 397 | } 398 | }, { 399 | key: "print", 400 | value: function print(PAWindow) { 401 | var _this = this; 402 | 403 | var paWindow = PAWindow.win; 404 | 405 | var _loaded = function _loaded() { 406 | paWindow.focus(); 407 | paWindow.print(); 408 | 409 | try { 410 | var box = document.getElementById(_this.settings.id); 411 | 412 | var canvasList = _this.elsdom.querySelectorAll('.canvasImg'); 413 | 414 | console.log(_this.elsdom); 415 | 416 | for (var i = 0; i < canvasList.length; i++) { 417 | var _parent = canvasList[i].parentNode; 418 | 419 | _parent.removeChild(canvasList[i]); 420 | } 421 | 422 | box.parentNode.removeChild(box); 423 | } catch (e) { 424 | console.log(e); 425 | } 426 | }; 427 | 428 | if (window.ActiveXObject) { 429 | paWindow.onload = _loaded(); 430 | return false; 431 | } 432 | 433 | paWindow.onload = function () { 434 | _loaded(); 435 | }; 436 | } 437 | }, { 438 | key: "write", 439 | value: function write(PADocument, $ele) { 440 | PADocument.open(); 441 | PADocument.write("".concat(this.docType(), "").concat(this.getHead()).concat(this.getBody(), "")); 442 | PADocument.close(); 443 | } 444 | }, { 445 | key: "docType", 446 | value: function docType() { 447 | if (this.settings.standard === this.standards.html5) { 448 | return ''; 449 | } 450 | 451 | var transitional = this.settings.standard === this.standards.loose ? ' Transitional' : ''; 452 | var dtd = this.settings.standard === this.standards.loose ? 'loose' : 'strict'; 453 | return ""); 454 | } 455 | }, { 456 | key: "getHead", 457 | value: function getHead() { 458 | var extraHead = ''; 459 | var links = ''; 460 | var style = ''; 461 | 462 | if (this.settings.extraHead) { 463 | this.settings.extraHead.replace(/([^,]+)/g, function (m) { 464 | extraHead += m; 465 | }); 466 | } // 复制所有link标签 467 | 468 | 469 | [].forEach.call(document.querySelectorAll('link'), function (item, i) { 470 | if (item.href.indexOf('.css') >= 0) { 471 | links += ""); 472 | } 473 | }); // const _links = document.querySelectorAll('link'); 474 | // if (typeof _links === 'object' || _links.length > 0) { 475 | // // 复制所有link标签 476 | // for (let i = 0; i < _links.length; i++) { 477 | // let item = _links[i]; 478 | // if (item.href.indexOf('.css') >= 0) { 479 | // links += ``; 480 | // } 481 | // } 482 | // } 483 | // 循环获取style标签的样式 484 | 485 | var domStyle = document.styleSheets; 486 | 487 | if (domStyle && domStyle.length > 0) { 488 | for (var i = 0; i < domStyle.length; i++) { 489 | try { 490 | if (domStyle[i].cssRules || domStyle[i].rules) { 491 | var rules = domStyle[i].cssRules || domStyle[i].rules; 492 | 493 | for (var b = 0; b < rules.length; b++) { 494 | style += rules[b].cssText; 495 | } 496 | } 497 | } catch (e) { 498 | console.log(domStyle[i].href + e); 499 | } 500 | } 501 | } 502 | 503 | if (this.settings.extraCss) { 504 | this.settings.extraCss.replace(/([^,\s]+)/g, function (m) { 505 | links += ""); 506 | }); 507 | } 508 | 509 | return "".concat(this.settings.popTitle, "").concat(extraHead).concat(links, ""); 510 | } 511 | }, { 512 | key: "getBody", 513 | value: function getBody() { 514 | var ids = this.settings.ids; 515 | ids = ids.replace(new RegExp("#", "g"), ''); 516 | this.elsdom = this.beforeHanler(document.getElementById(ids)); 517 | var ele = this.getFormData(this.elsdom); 518 | var htm = ele.outerHTML; 519 | return '' + htm + ''; 520 | } // 克隆节点之前做的操作 521 | 522 | }, { 523 | key: "beforeHanler", 524 | value: function beforeHanler(elsdom) { 525 | var canvasList = elsdom.querySelectorAll('canvas'); // canvas转换png图片 526 | 527 | for (var i = 0; i < canvasList.length; i++) { 528 | if (!canvasList[i].style.display) { 529 | var _parent = canvasList[i].parentNode; 530 | 531 | var _canvasUrl = canvasList[i].toDataURL('image/png'); 532 | 533 | var _img = new Image(); 534 | 535 | _img.className = 'canvasImg'; 536 | _img.style.display = 'none'; 537 | _img.src = _canvasUrl; // _parent.replaceChild(_img, canvasList[i]) 538 | 539 | _parent.appendChild(_img); 540 | } 541 | } 542 | 543 | return elsdom; 544 | } // 根据type去处理form表单 545 | 546 | }, { 547 | key: "getFormData", 548 | value: function getFormData(ele) { 549 | var copy = ele.cloneNode(true); 550 | var copiedInputs = copy.querySelectorAll('input,select,textarea'); 551 | var canvasImgList = copy.querySelectorAll('.canvasImg,canvas'); 552 | var selectCount = -1; // 处理所有canvas 553 | 554 | for (var i = 0; i < canvasImgList.length; i++) { 555 | var _parent = canvasImgList[i].parentNode; 556 | var item = canvasImgList[i]; // 删除克隆后的canvas节点 557 | 558 | if (item.tagName.toLowerCase() === 'canvas') { 559 | _parent.removeChild(item); 560 | } else { 561 | item.style.display = 'block'; 562 | } 563 | } // 处理所有输入框 564 | 565 | 566 | for (var _i = 0; _i < copiedInputs.length; _i++) { 567 | var _item = copiedInputs[_i]; 568 | 569 | var typeInput = _item.getAttribute('type'); 570 | 571 | var copiedInput = copiedInputs[_i]; // 获取select标签 572 | 573 | if (!typeInput) { 574 | typeInput = _item.tagName === 'SELECT' ? 'select' : _item.tagName === 'TEXTAREA' ? 'textarea' : ''; 575 | } // 处理input框 576 | 577 | 578 | if (_item.tagName === 'INPUT') { 579 | // 除了单选框 多选框比较特别 580 | if (typeInput === 'radio' || typeInput === 'checkbox') { 581 | copiedInput.setAttribute('checked', _item.checked); // 582 | } else { 583 | copiedInput.value = _item.value; 584 | copiedInput.setAttribute('value', _item.value); 585 | } // 处理select 586 | 587 | } else if (typeInput === 'select') { 588 | selectCount++; 589 | 590 | for (var b = 0; b < ele.querySelectorAll('select').length; b++) { 591 | var select = ele.querySelectorAll('select')[b]; // 获取原始层每一个select 592 | 593 | !select.getAttribute('newbs') && select.setAttribute('newbs', b); // 添加标识 594 | 595 | if (select.getAttribute('newbs') == selectCount) { 596 | var opSelectedIndex = ele.querySelectorAll('select')[selectCount].selectedIndex; 597 | 598 | _item.options[opSelectedIndex].setAttribute('selected', true); 599 | } 600 | } // 处理textarea 601 | 602 | } else { 603 | copiedInput.innerHTML = _item.value; 604 | copiedInput.setAttribute('html', _item.value); 605 | } 606 | } 607 | 608 | return copy; 609 | } 610 | }, { 611 | key: "getPrintWindow", 612 | value: function getPrintWindow() { 613 | var f = this.Iframe(); 614 | return { 615 | f: f, 616 | win: f.contentWindow || f, 617 | doc: f.doc 618 | }; 619 | } 620 | }, { 621 | key: "Iframe", 622 | value: function Iframe() { 623 | var frameId = this.settings.id; 624 | var iframe; 625 | var that = this; 626 | 627 | try { 628 | iframe = document.createElement('iframe'); 629 | document.body.appendChild(iframe); 630 | iframe.style.border = '0px'; 631 | iframe.style.position = 'absolute'; 632 | iframe.style.width = '0px'; 633 | iframe.style.height = '0px'; 634 | iframe.style.right = '0px'; 635 | iframe.style.top = '0px'; 636 | iframe.setAttribute('id', frameId); 637 | iframe.setAttribute('src', new Date().getTime()); 638 | iframe.doc = null; 639 | iframe.doc = iframe.contentDocument ? iframe.contentDocument : iframe.contentWindow ? iframe.contentWindow.document : iframe.document; 640 | 641 | iframe.onload = function () { 642 | var win = iframe.contentWindow || iframe; 643 | that.print(win); 644 | }; 645 | } catch (e) { 646 | throw new Error(e + '. iframes may not be supported in this browser.'); 647 | } 648 | 649 | if (iframe.doc == null) { 650 | throw new Error('Cannot find document.'); 651 | } 652 | 653 | return iframe; 654 | } 655 | }]); 656 | 657 | return _default; 658 | }(); 659 | 660 | 661 | // CONCATENATED MODULE: ./src/packages/print.js 662 | 663 | 664 | 665 | 666 | /** 667 | * @file 打印 668 | * 指令`v-print`,默认打印整个窗口 669 | * 传入参数`v-print="'#id'"` , 参数为需要打印局部的盒子标识. 670 | */ 671 | 672 | /* harmony default export */ var print = ({ 673 | directiveName: 'print', 674 | bind: function bind(el, binding, vnode) { 675 | var vue = vnode.context; 676 | var closeBtn = true; 677 | var id = ''; 678 | el.addEventListener('click', function () { 679 | vue.$nextTick(function () { 680 | if (typeof binding.value === 'string') { 681 | id = binding.value; 682 | } else if (_typeof(binding.value) === 'object' && !!binding.value.id) { 683 | id = binding.value.id; 684 | var ids = id.replace(new RegExp("#", "g"), ''); 685 | var elsdom = document.getElementById(ids); 686 | if (!elsdom) console.log("id in Error"), id = ''; 687 | } // 局部打印 688 | 689 | 690 | if (id) { 691 | localPrint(); 692 | } else { 693 | // 直接全局打印 694 | window.print(); 695 | } 696 | }); 697 | }); 698 | 699 | var localPrint = function localPrint() { 700 | if (closeBtn) { 701 | closeBtn = false; 702 | new printarea_default({ 703 | ids: id, 704 | // * 局部打印必传入id 705 | standard: '', 706 | // 文档类型,默认是html5,可选 html5,loose,strict 707 | extraHead: binding.value.extraHead, 708 | // 附加在head标签上的额外标签,使用逗号分隔 709 | extraCss: binding.value.extraCss, 710 | // 额外的css连接,多个逗号分开 711 | popTitle: binding.value.popTitle, 712 | // title的标题 713 | endCallback: function endCallback() { 714 | // 调用打印之后的回调事件 715 | closeBtn = true; 716 | } 717 | }); 718 | } 719 | }; 720 | } 721 | }); 722 | // CONCATENATED MODULE: ./src/index.js 723 | 724 | 725 | print.install = function (Vue) { 726 | Vue.directive('print', print); 727 | }; 728 | 729 | /* harmony default export */ var src = (print); 730 | // CONCATENATED MODULE: ./node_modules/_@vue_cli-service@3.12.1@@vue/cli-service/lib/commands/build/entry-lib.js 731 | 732 | 733 | /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src); 734 | 735 | 736 | 737 | /***/ }), 738 | 739 | /***/ "1157": 740 | /***/ (function(module, exports, __webpack_require__) { 741 | 742 | "use strict"; 743 | 744 | var global = __webpack_require__("e7ad"); 745 | var dP = __webpack_require__("064e"); 746 | var DESCRIPTORS = __webpack_require__("149f"); 747 | var SPECIES = __webpack_require__("cb3d")('species'); 748 | 749 | module.exports = function (KEY) { 750 | var C = global[KEY]; 751 | if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { 752 | configurable: true, 753 | get: function () { return this; } 754 | }); 755 | }; 756 | 757 | 758 | /***/ }), 759 | 760 | /***/ "149f": 761 | /***/ (function(module, exports, __webpack_require__) { 762 | 763 | // Thank's IE8 for his funny defineProperty 764 | module.exports = !__webpack_require__("238a")(function () { 765 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 766 | }); 767 | 768 | 769 | /***/ }), 770 | 771 | /***/ "1e5b": 772 | /***/ (function(module, exports, __webpack_require__) { 773 | 774 | var isObject = __webpack_require__("fb68"); 775 | var setPrototypeOf = __webpack_require__("859b").set; 776 | module.exports = function (that, target, C) { 777 | var S = target.constructor; 778 | var P; 779 | if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { 780 | setPrototypeOf(that, P); 781 | } return that; 782 | }; 783 | 784 | 785 | /***/ }), 786 | 787 | /***/ "224c": 788 | /***/ (function(module, exports, __webpack_require__) { 789 | 790 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 791 | var cof = __webpack_require__("75c4"); 792 | // eslint-disable-next-line no-prototype-builtins 793 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 794 | return cof(it) == 'String' ? it.split('') : Object(it); 795 | }; 796 | 797 | 798 | /***/ }), 799 | 800 | /***/ "238a": 801 | /***/ (function(module, exports) { 802 | 803 | module.exports = function (exec) { 804 | try { 805 | return !!exec(); 806 | } catch (e) { 807 | return true; 808 | } 809 | }; 810 | 811 | 812 | /***/ }), 813 | 814 | /***/ "2ea2": 815 | /***/ (function(module, exports, __webpack_require__) { 816 | 817 | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 818 | var $keys = __webpack_require__("c2f7"); 819 | var hiddenKeys = __webpack_require__("ceac").concat('length', 'prototype'); 820 | 821 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 822 | return $keys(O, hiddenKeys); 823 | }; 824 | 825 | 826 | /***/ }), 827 | 828 | /***/ "2f77": 829 | /***/ (function(module, exports) { 830 | 831 | exports.f = Object.getOwnPropertySymbols; 832 | 833 | 834 | /***/ }), 835 | 836 | /***/ "2fd4": 837 | /***/ (function(module, exports, __webpack_require__) { 838 | 839 | // 7.2.8 IsRegExp(argument) 840 | var isObject = __webpack_require__("fb68"); 841 | var cof = __webpack_require__("75c4"); 842 | var MATCH = __webpack_require__("cb3d")('match'); 843 | module.exports = function (it) { 844 | var isRegExp; 845 | return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); 846 | }; 847 | 848 | 849 | /***/ }), 850 | 851 | /***/ "32b9": 852 | /***/ (function(module, exports, __webpack_require__) { 853 | 854 | "use strict"; 855 | 856 | var create = __webpack_require__("e005"); 857 | var descriptor = __webpack_require__("cc33"); 858 | var setToStringTag = __webpack_require__("399f"); 859 | var IteratorPrototype = {}; 860 | 861 | // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 862 | __webpack_require__("86d4")(IteratorPrototype, __webpack_require__("cb3d")('iterator'), function () { return this; }); 863 | 864 | module.exports = function (Constructor, NAME, next) { 865 | Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); 866 | setToStringTag(Constructor, NAME + ' Iterator'); 867 | }; 868 | 869 | 870 | /***/ }), 871 | 872 | /***/ "399f": 873 | /***/ (function(module, exports, __webpack_require__) { 874 | 875 | var def = __webpack_require__("064e").f; 876 | var has = __webpack_require__("e042"); 877 | var TAG = __webpack_require__("cb3d")('toStringTag'); 878 | 879 | module.exports = function (it, tag, stat) { 880 | if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); 881 | }; 882 | 883 | 884 | /***/ }), 885 | 886 | /***/ "475d": 887 | /***/ (function(module, exports) { 888 | 889 | module.exports = function (done, value) { 890 | return { value: value, done: !!done }; 891 | }; 892 | 893 | 894 | /***/ }), 895 | 896 | /***/ "492d": 897 | /***/ (function(module, exports, __webpack_require__) { 898 | 899 | "use strict"; 900 | 901 | var LIBRARY = __webpack_require__("550e"); 902 | var $export = __webpack_require__("e46b"); 903 | var redefine = __webpack_require__("bf16"); 904 | var hide = __webpack_require__("86d4"); 905 | var Iterators = __webpack_require__("da6d"); 906 | var $iterCreate = __webpack_require__("32b9"); 907 | var setToStringTag = __webpack_require__("399f"); 908 | var getPrototypeOf = __webpack_require__("58cf"); 909 | var ITERATOR = __webpack_require__("cb3d")('iterator'); 910 | var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` 911 | var FF_ITERATOR = '@@iterator'; 912 | var KEYS = 'keys'; 913 | var VALUES = 'values'; 914 | 915 | var returnThis = function () { return this; }; 916 | 917 | module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { 918 | $iterCreate(Constructor, NAME, next); 919 | var getMethod = function (kind) { 920 | if (!BUGGY && kind in proto) return proto[kind]; 921 | switch (kind) { 922 | case KEYS: return function keys() { return new Constructor(this, kind); }; 923 | case VALUES: return function values() { return new Constructor(this, kind); }; 924 | } return function entries() { return new Constructor(this, kind); }; 925 | }; 926 | var TAG = NAME + ' Iterator'; 927 | var DEF_VALUES = DEFAULT == VALUES; 928 | var VALUES_BUG = false; 929 | var proto = Base.prototype; 930 | var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; 931 | var $default = $native || getMethod(DEFAULT); 932 | var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; 933 | var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; 934 | var methods, key, IteratorPrototype; 935 | // Fix native 936 | if ($anyNative) { 937 | IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 938 | if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { 939 | // Set @@toStringTag to native iterators 940 | setToStringTag(IteratorPrototype, TAG, true); 941 | // fix for some old engines 942 | if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); 943 | } 944 | } 945 | // fix Array#{values, @@iterator}.name in V8 / FF 946 | if (DEF_VALUES && $native && $native.name !== VALUES) { 947 | VALUES_BUG = true; 948 | $default = function values() { return $native.call(this); }; 949 | } 950 | // Define iterator 951 | if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { 952 | hide(proto, ITERATOR, $default); 953 | } 954 | // Plug for library 955 | Iterators[NAME] = $default; 956 | Iterators[TAG] = returnThis; 957 | if (DEFAULT) { 958 | methods = { 959 | values: DEF_VALUES ? $default : getMethod(VALUES), 960 | keys: IS_SET ? $default : getMethod(KEYS), 961 | entries: $entries 962 | }; 963 | if (FORCED) for (key in methods) { 964 | if (!(key in proto)) redefine(proto, key, methods[key]); 965 | } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); 966 | } 967 | return methods; 968 | }; 969 | 970 | 971 | /***/ }), 972 | 973 | /***/ "4ce5": 974 | /***/ (function(module, exports, __webpack_require__) { 975 | 976 | // optional / simple context binding 977 | var aFunction = __webpack_require__("5daa"); 978 | module.exports = function (fn, that, length) { 979 | aFunction(fn); 980 | if (that === undefined) return fn; 981 | switch (length) { 982 | case 1: return function (a) { 983 | return fn.call(that, a); 984 | }; 985 | case 2: return function (a, b) { 986 | return fn.call(that, a, b); 987 | }; 988 | case 3: return function (a, b, c) { 989 | return fn.call(that, a, b, c); 990 | }; 991 | } 992 | return function (/* ...args */) { 993 | return fn.apply(that, arguments); 994 | }; 995 | }; 996 | 997 | 998 | /***/ }), 999 | 1000 | /***/ "4f18": 1001 | /***/ (function(module, exports) { 1002 | 1003 | exports.f = {}.propertyIsEnumerable; 1004 | 1005 | 1006 | /***/ }), 1007 | 1008 | /***/ "550e": 1009 | /***/ (function(module, exports) { 1010 | 1011 | module.exports = false; 1012 | 1013 | 1014 | /***/ }), 1015 | 1016 | /***/ "56f2": 1017 | /***/ (function(module, exports, __webpack_require__) { 1018 | 1019 | var shared = __webpack_require__("6798")('keys'); 1020 | var uid = __webpack_require__("ec45"); 1021 | module.exports = function (key) { 1022 | return shared[key] || (shared[key] = uid(key)); 1023 | }; 1024 | 1025 | 1026 | /***/ }), 1027 | 1028 | /***/ "58cf": 1029 | /***/ (function(module, exports, __webpack_require__) { 1030 | 1031 | // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 1032 | var has = __webpack_require__("e042"); 1033 | var toObject = __webpack_require__("008a"); 1034 | var IE_PROTO = __webpack_require__("56f2")('IE_PROTO'); 1035 | var ObjectProto = Object.prototype; 1036 | 1037 | module.exports = Object.getPrototypeOf || function (O) { 1038 | O = toObject(O); 1039 | if (has(O, IE_PROTO)) return O[IE_PROTO]; 1040 | if (typeof O.constructor == 'function' && O instanceof O.constructor) { 1041 | return O.constructor.prototype; 1042 | } return O instanceof Object ? ObjectProto : null; 1043 | }; 1044 | 1045 | 1046 | /***/ }), 1047 | 1048 | /***/ "5daa": 1049 | /***/ (function(module, exports) { 1050 | 1051 | module.exports = function (it) { 1052 | if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 1053 | return it; 1054 | }; 1055 | 1056 | 1057 | /***/ }), 1058 | 1059 | /***/ "5f54": 1060 | /***/ (function(module, exports, __webpack_require__) { 1061 | 1062 | // 19.1.3.1 Object.assign(target, source) 1063 | var $export = __webpack_require__("e46b"); 1064 | 1065 | $export($export.S + $export.F, 'Object', { assign: __webpack_require__("e118") }); 1066 | 1067 | 1068 | /***/ }), 1069 | 1070 | /***/ "6798": 1071 | /***/ (function(module, exports, __webpack_require__) { 1072 | 1073 | var core = __webpack_require__("7ddc"); 1074 | var global = __webpack_require__("e7ad"); 1075 | var SHARED = '__core-js_shared__'; 1076 | var store = global[SHARED] || (global[SHARED] = {}); 1077 | 1078 | (module.exports = function (key, value) { 1079 | return store[key] || (store[key] = value !== undefined ? value : {}); 1080 | })('versions', []).push({ 1081 | version: core.version, 1082 | mode: __webpack_require__("550e") ? 'pure' : 'global', 1083 | copyright: '© 2019 Denis Pushkarev (zloirock.ru)' 1084 | }); 1085 | 1086 | 1087 | /***/ }), 1088 | 1089 | /***/ "69b3": 1090 | /***/ (function(module, exports, __webpack_require__) { 1091 | 1092 | var isObject = __webpack_require__("fb68"); 1093 | module.exports = function (it) { 1094 | if (!isObject(it)) throw TypeError(it + ' is not an object!'); 1095 | return it; 1096 | }; 1097 | 1098 | 1099 | /***/ }), 1100 | 1101 | /***/ "6d57": 1102 | /***/ (function(module, exports, __webpack_require__) { 1103 | 1104 | var $iterators = __webpack_require__("e44b"); 1105 | var getKeys = __webpack_require__("80a9"); 1106 | var redefine = __webpack_require__("bf16"); 1107 | var global = __webpack_require__("e7ad"); 1108 | var hide = __webpack_require__("86d4"); 1109 | var Iterators = __webpack_require__("da6d"); 1110 | var wks = __webpack_require__("cb3d"); 1111 | var ITERATOR = wks('iterator'); 1112 | var TO_STRING_TAG = wks('toStringTag'); 1113 | var ArrayValues = Iterators.Array; 1114 | 1115 | var DOMIterables = { 1116 | CSSRuleList: true, // TODO: Not spec compliant, should be false. 1117 | CSSStyleDeclaration: false, 1118 | CSSValueList: false, 1119 | ClientRectList: false, 1120 | DOMRectList: false, 1121 | DOMStringList: false, 1122 | DOMTokenList: true, 1123 | DataTransferItemList: false, 1124 | FileList: false, 1125 | HTMLAllCollection: false, 1126 | HTMLCollection: false, 1127 | HTMLFormElement: false, 1128 | HTMLSelectElement: false, 1129 | MediaList: true, // TODO: Not spec compliant, should be false. 1130 | MimeTypeArray: false, 1131 | NamedNodeMap: false, 1132 | NodeList: true, 1133 | PaintRequestList: false, 1134 | Plugin: false, 1135 | PluginArray: false, 1136 | SVGLengthList: false, 1137 | SVGNumberList: false, 1138 | SVGPathSegList: false, 1139 | SVGPointList: false, 1140 | SVGStringList: false, 1141 | SVGTransformList: false, 1142 | SourceBufferList: false, 1143 | StyleSheetList: true, // TODO: Not spec compliant, should be false. 1144 | TextTrackCueList: false, 1145 | TextTrackList: false, 1146 | TouchList: false 1147 | }; 1148 | 1149 | for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) { 1150 | var NAME = collections[i]; 1151 | var explicit = DOMIterables[NAME]; 1152 | var Collection = global[NAME]; 1153 | var proto = Collection && Collection.prototype; 1154 | var key; 1155 | if (proto) { 1156 | if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); 1157 | if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); 1158 | Iterators[NAME] = ArrayValues; 1159 | if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); 1160 | } 1161 | } 1162 | 1163 | 1164 | /***/ }), 1165 | 1166 | /***/ "7108": 1167 | /***/ (function(module, exports, __webpack_require__) { 1168 | 1169 | "use strict"; 1170 | 1171 | 1172 | var classof = __webpack_require__("7e23"); 1173 | var builtinExec = RegExp.prototype.exec; 1174 | 1175 | // `RegExpExec` abstract operation 1176 | // https://tc39.github.io/ecma262/#sec-regexpexec 1177 | module.exports = function (R, S) { 1178 | var exec = R.exec; 1179 | if (typeof exec === 'function') { 1180 | var result = exec.call(R, S); 1181 | if (typeof result !== 'object') { 1182 | throw new TypeError('RegExp exec method returned something other than an Object or null'); 1183 | } 1184 | return result; 1185 | } 1186 | if (classof(R) !== 'RegExp') { 1187 | throw new TypeError('RegExp#exec called on incompatible receiver'); 1188 | } 1189 | return builtinExec.call(R, S); 1190 | }; 1191 | 1192 | 1193 | /***/ }), 1194 | 1195 | /***/ "75c4": 1196 | /***/ (function(module, exports) { 1197 | 1198 | var toString = {}.toString; 1199 | 1200 | module.exports = function (it) { 1201 | return toString.call(it).slice(8, -1); 1202 | }; 1203 | 1204 | 1205 | /***/ }), 1206 | 1207 | /***/ "7ddc": 1208 | /***/ (function(module, exports) { 1209 | 1210 | var core = module.exports = { version: '2.6.11' }; 1211 | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 1212 | 1213 | 1214 | /***/ }), 1215 | 1216 | /***/ "7e23": 1217 | /***/ (function(module, exports, __webpack_require__) { 1218 | 1219 | // getting tag from 19.1.3.6 Object.prototype.toString() 1220 | var cof = __webpack_require__("75c4"); 1221 | var TAG = __webpack_require__("cb3d")('toStringTag'); 1222 | // ES3 wrong here 1223 | var ARG = cof(function () { return arguments; }()) == 'Arguments'; 1224 | 1225 | // fallback for IE11 Script Access Denied error 1226 | var tryGet = function (it, key) { 1227 | try { 1228 | return it[key]; 1229 | } catch (e) { /* empty */ } 1230 | }; 1231 | 1232 | module.exports = function (it) { 1233 | var O, T, B; 1234 | return it === undefined ? 'Undefined' : it === null ? 'Null' 1235 | // @@toStringTag case 1236 | : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T 1237 | // builtinTag case 1238 | : ARG ? cof(O) 1239 | // ES3 arguments fallback 1240 | : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; 1241 | }; 1242 | 1243 | 1244 | /***/ }), 1245 | 1246 | /***/ "80a9": 1247 | /***/ (function(module, exports, __webpack_require__) { 1248 | 1249 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 1250 | var $keys = __webpack_require__("c2f7"); 1251 | var enumBugKeys = __webpack_require__("ceac"); 1252 | 1253 | module.exports = Object.keys || function keys(O) { 1254 | return $keys(O, enumBugKeys); 1255 | }; 1256 | 1257 | 1258 | /***/ }), 1259 | 1260 | /***/ "859b": 1261 | /***/ (function(module, exports, __webpack_require__) { 1262 | 1263 | // Works with __proto__ only. Old v8 can't work with null proto objects. 1264 | /* eslint-disable no-proto */ 1265 | var isObject = __webpack_require__("fb68"); 1266 | var anObject = __webpack_require__("69b3"); 1267 | var check = function (O, proto) { 1268 | anObject(O); 1269 | if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); 1270 | }; 1271 | module.exports = { 1272 | set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line 1273 | function (test, buggy, set) { 1274 | try { 1275 | set = __webpack_require__("4ce5")(Function.call, __webpack_require__("dcb7").f(Object.prototype, '__proto__').set, 2); 1276 | set(test, []); 1277 | buggy = !(test instanceof Array); 1278 | } catch (e) { buggy = true; } 1279 | return function setPrototypeOf(O, proto) { 1280 | check(O, proto); 1281 | if (buggy) O.__proto__ = proto; 1282 | else set(O, proto); 1283 | return O; 1284 | }; 1285 | }({}, false) : undefined), 1286 | check: check 1287 | }; 1288 | 1289 | 1290 | /***/ }), 1291 | 1292 | /***/ "86d4": 1293 | /***/ (function(module, exports, __webpack_require__) { 1294 | 1295 | var dP = __webpack_require__("064e"); 1296 | var createDesc = __webpack_require__("cc33"); 1297 | module.exports = __webpack_require__("149f") ? function (object, key, value) { 1298 | return dP.f(object, key, createDesc(1, value)); 1299 | } : function (object, key, value) { 1300 | object[key] = value; 1301 | return object; 1302 | }; 1303 | 1304 | 1305 | /***/ }), 1306 | 1307 | /***/ "8714": 1308 | /***/ (function(module, exports, __webpack_require__) { 1309 | 1310 | "use strict"; 1311 | 1312 | 1313 | var regexpFlags = __webpack_require__("f1fe"); 1314 | 1315 | var nativeExec = RegExp.prototype.exec; 1316 | // This always refers to the native implementation, because the 1317 | // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js, 1318 | // which loads this file before patching the method. 1319 | var nativeReplace = String.prototype.replace; 1320 | 1321 | var patchedExec = nativeExec; 1322 | 1323 | var LAST_INDEX = 'lastIndex'; 1324 | 1325 | var UPDATES_LAST_INDEX_WRONG = (function () { 1326 | var re1 = /a/, 1327 | re2 = /b*/g; 1328 | nativeExec.call(re1, 'a'); 1329 | nativeExec.call(re2, 'a'); 1330 | return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0; 1331 | })(); 1332 | 1333 | // nonparticipating capturing group, copied from es5-shim's String#split patch. 1334 | var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; 1335 | 1336 | var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED; 1337 | 1338 | if (PATCH) { 1339 | patchedExec = function exec(str) { 1340 | var re = this; 1341 | var lastIndex, reCopy, match, i; 1342 | 1343 | if (NPCG_INCLUDED) { 1344 | reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re)); 1345 | } 1346 | if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX]; 1347 | 1348 | match = nativeExec.call(re, str); 1349 | 1350 | if (UPDATES_LAST_INDEX_WRONG && match) { 1351 | re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex; 1352 | } 1353 | if (NPCG_INCLUDED && match && match.length > 1) { 1354 | // Fix browsers whose `exec` methods don't consistently return `undefined` 1355 | // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ 1356 | // eslint-disable-next-line no-loop-func 1357 | nativeReplace.call(match[0], reCopy, function () { 1358 | for (i = 1; i < arguments.length - 2; i++) { 1359 | if (arguments[i] === undefined) match[i] = undefined; 1360 | } 1361 | }); 1362 | } 1363 | 1364 | return match; 1365 | }; 1366 | } 1367 | 1368 | module.exports = patchedExec; 1369 | 1370 | 1371 | /***/ }), 1372 | 1373 | /***/ "8df1": 1374 | /***/ (function(module, exports, __webpack_require__) { 1375 | 1376 | var document = __webpack_require__("e7ad").document; 1377 | module.exports = document && document.documentElement; 1378 | 1379 | 1380 | /***/ }), 1381 | 1382 | /***/ "94b3": 1383 | /***/ (function(module, exports, __webpack_require__) { 1384 | 1385 | // 7.1.1 ToPrimitive(input [, PreferredType]) 1386 | var isObject = __webpack_require__("fb68"); 1387 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 1388 | // and the second argument - flag - preferred type is a string 1389 | module.exports = function (it, S) { 1390 | if (!isObject(it)) return it; 1391 | var fn, val; 1392 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 1393 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 1394 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 1395 | throw TypeError("Can't convert object to primitive value"); 1396 | }; 1397 | 1398 | 1399 | /***/ }), 1400 | 1401 | /***/ "9dd9": 1402 | /***/ (function(module, exports, __webpack_require__) { 1403 | 1404 | var global = __webpack_require__("e7ad"); 1405 | var inheritIfRequired = __webpack_require__("1e5b"); 1406 | var dP = __webpack_require__("064e").f; 1407 | var gOPN = __webpack_require__("2ea2").f; 1408 | var isRegExp = __webpack_require__("2fd4"); 1409 | var $flags = __webpack_require__("f1fe"); 1410 | var $RegExp = global.RegExp; 1411 | var Base = $RegExp; 1412 | var proto = $RegExp.prototype; 1413 | var re1 = /a/g; 1414 | var re2 = /a/g; 1415 | // "new" creates a new object, old webkit buggy here 1416 | var CORRECT_NEW = new $RegExp(re1) !== re1; 1417 | 1418 | if (__webpack_require__("149f") && (!CORRECT_NEW || __webpack_require__("238a")(function () { 1419 | re2[__webpack_require__("cb3d")('match')] = false; 1420 | // RegExp constructor can alter flags and IsRegExp works correct with @@match 1421 | return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i'; 1422 | }))) { 1423 | $RegExp = function RegExp(p, f) { 1424 | var tiRE = this instanceof $RegExp; 1425 | var piRE = isRegExp(p); 1426 | var fiU = f === undefined; 1427 | return !tiRE && piRE && p.constructor === $RegExp && fiU ? p 1428 | : inheritIfRequired(CORRECT_NEW 1429 | ? new Base(piRE && !fiU ? p.source : p, f) 1430 | : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f) 1431 | , tiRE ? this : proto, $RegExp); 1432 | }; 1433 | var proxy = function (key) { 1434 | key in $RegExp || dP($RegExp, key, { 1435 | configurable: true, 1436 | get: function () { return Base[key]; }, 1437 | set: function (it) { Base[key] = it; } 1438 | }); 1439 | }; 1440 | for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]); 1441 | proto.constructor = $RegExp; 1442 | $RegExp.prototype = proto; 1443 | __webpack_require__("bf16")(global, 'RegExp', $RegExp); 1444 | } 1445 | 1446 | __webpack_require__("1157")('RegExp'); 1447 | 1448 | 1449 | /***/ }), 1450 | 1451 | /***/ "aaba": 1452 | /***/ (function(module, exports, __webpack_require__) { 1453 | 1454 | "use strict"; 1455 | 1456 | var regexpExec = __webpack_require__("8714"); 1457 | __webpack_require__("e46b")({ 1458 | target: 'RegExp', 1459 | proto: true, 1460 | forced: regexpExec !== /./.exec 1461 | }, { 1462 | exec: regexpExec 1463 | }); 1464 | 1465 | 1466 | /***/ }), 1467 | 1468 | /***/ "b3a6": 1469 | /***/ (function(module, exports, __webpack_require__) { 1470 | 1471 | // false -> Array#indexOf 1472 | // true -> Array#includes 1473 | var toIObject = __webpack_require__("09b9"); 1474 | var toLength = __webpack_require__("eafa"); 1475 | var toAbsoluteIndex = __webpack_require__("f58a"); 1476 | module.exports = function (IS_INCLUDES) { 1477 | return function ($this, el, fromIndex) { 1478 | var O = toIObject($this); 1479 | var length = toLength(O.length); 1480 | var index = toAbsoluteIndex(fromIndex, length); 1481 | var value; 1482 | // Array#includes uses SameValueZero equality algorithm 1483 | // eslint-disable-next-line no-self-compare 1484 | if (IS_INCLUDES && el != el) while (length > index) { 1485 | value = O[index++]; 1486 | // eslint-disable-next-line no-self-compare 1487 | if (value != value) return true; 1488 | // Array#indexOf ignores holes, Array#includes - not 1489 | } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 1490 | if (O[index] === el) return IS_INCLUDES || index || 0; 1491 | } return !IS_INCLUDES && -1; 1492 | }; 1493 | }; 1494 | 1495 | 1496 | /***/ }), 1497 | 1498 | /***/ "bf16": 1499 | /***/ (function(module, exports, __webpack_require__) { 1500 | 1501 | var global = __webpack_require__("e7ad"); 1502 | var hide = __webpack_require__("86d4"); 1503 | var has = __webpack_require__("e042"); 1504 | var SRC = __webpack_require__("ec45")('src'); 1505 | var $toString = __webpack_require__("d07e"); 1506 | var TO_STRING = 'toString'; 1507 | var TPL = ('' + $toString).split(TO_STRING); 1508 | 1509 | __webpack_require__("7ddc").inspectSource = function (it) { 1510 | return $toString.call(it); 1511 | }; 1512 | 1513 | (module.exports = function (O, key, val, safe) { 1514 | var isFunction = typeof val == 'function'; 1515 | if (isFunction) has(val, 'name') || hide(val, 'name', key); 1516 | if (O[key] === val) return; 1517 | if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); 1518 | if (O === global) { 1519 | O[key] = val; 1520 | } else if (!safe) { 1521 | delete O[key]; 1522 | hide(O, key, val); 1523 | } else if (O[key]) { 1524 | O[key] = val; 1525 | } else { 1526 | hide(O, key, val); 1527 | } 1528 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 1529 | })(Function.prototype, TO_STRING, function toString() { 1530 | return typeof this == 'function' && this[SRC] || $toString.call(this); 1531 | }); 1532 | 1533 | 1534 | /***/ }), 1535 | 1536 | /***/ "bfe7": 1537 | /***/ (function(module, exports, __webpack_require__) { 1538 | 1539 | var isObject = __webpack_require__("fb68"); 1540 | var document = __webpack_require__("e7ad").document; 1541 | // typeof document.createElement is 'object' in old IE 1542 | var is = isObject(document) && isObject(document.createElement); 1543 | module.exports = function (it) { 1544 | return is ? document.createElement(it) : {}; 1545 | }; 1546 | 1547 | 1548 | /***/ }), 1549 | 1550 | /***/ "c2f7": 1551 | /***/ (function(module, exports, __webpack_require__) { 1552 | 1553 | var has = __webpack_require__("e042"); 1554 | var toIObject = __webpack_require__("09b9"); 1555 | var arrayIndexOf = __webpack_require__("b3a6")(false); 1556 | var IE_PROTO = __webpack_require__("56f2")('IE_PROTO'); 1557 | 1558 | module.exports = function (object, names) { 1559 | var O = toIObject(object); 1560 | var i = 0; 1561 | var result = []; 1562 | var key; 1563 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 1564 | // Don't enum bug & hidden keys 1565 | while (names.length > i) if (has(O, key = names[i++])) { 1566 | ~arrayIndexOf(result, key) || result.push(key); 1567 | } 1568 | return result; 1569 | }; 1570 | 1571 | 1572 | /***/ }), 1573 | 1574 | /***/ "cb3d": 1575 | /***/ (function(module, exports, __webpack_require__) { 1576 | 1577 | var store = __webpack_require__("6798")('wks'); 1578 | var uid = __webpack_require__("ec45"); 1579 | var Symbol = __webpack_require__("e7ad").Symbol; 1580 | var USE_SYMBOL = typeof Symbol == 'function'; 1581 | 1582 | var $exports = module.exports = function (name) { 1583 | return store[name] || (store[name] = 1584 | USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); 1585 | }; 1586 | 1587 | $exports.store = store; 1588 | 1589 | 1590 | /***/ }), 1591 | 1592 | /***/ "cc33": 1593 | /***/ (function(module, exports) { 1594 | 1595 | module.exports = function (bitmap, value) { 1596 | return { 1597 | enumerable: !(bitmap & 1), 1598 | configurable: !(bitmap & 2), 1599 | writable: !(bitmap & 4), 1600 | value: value 1601 | }; 1602 | }; 1603 | 1604 | 1605 | /***/ }), 1606 | 1607 | /***/ "ceac": 1608 | /***/ (function(module, exports) { 1609 | 1610 | // IE 8- don't enum bug keys 1611 | module.exports = ( 1612 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 1613 | ).split(','); 1614 | 1615 | 1616 | /***/ }), 1617 | 1618 | /***/ "d07e": 1619 | /***/ (function(module, exports, __webpack_require__) { 1620 | 1621 | module.exports = __webpack_require__("6798")('native-function-to-string', Function.toString); 1622 | 1623 | 1624 | /***/ }), 1625 | 1626 | /***/ "da6d": 1627 | /***/ (function(module, exports) { 1628 | 1629 | module.exports = {}; 1630 | 1631 | 1632 | /***/ }), 1633 | 1634 | /***/ "db6b": 1635 | /***/ (function(module, exports, __webpack_require__) { 1636 | 1637 | module.exports = !__webpack_require__("149f") && !__webpack_require__("238a")(function () { 1638 | return Object.defineProperty(__webpack_require__("bfe7")('div'), 'a', { get: function () { return 7; } }).a != 7; 1639 | }); 1640 | 1641 | 1642 | /***/ }), 1643 | 1644 | /***/ "dcb7": 1645 | /***/ (function(module, exports, __webpack_require__) { 1646 | 1647 | var pIE = __webpack_require__("4f18"); 1648 | var createDesc = __webpack_require__("cc33"); 1649 | var toIObject = __webpack_require__("09b9"); 1650 | var toPrimitive = __webpack_require__("94b3"); 1651 | var has = __webpack_require__("e042"); 1652 | var IE8_DOM_DEFINE = __webpack_require__("db6b"); 1653 | var gOPD = Object.getOwnPropertyDescriptor; 1654 | 1655 | exports.f = __webpack_require__("149f") ? gOPD : function getOwnPropertyDescriptor(O, P) { 1656 | O = toIObject(O); 1657 | P = toPrimitive(P, true); 1658 | if (IE8_DOM_DEFINE) try { 1659 | return gOPD(O, P); 1660 | } catch (e) { /* empty */ } 1661 | if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 1662 | }; 1663 | 1664 | 1665 | /***/ }), 1666 | 1667 | /***/ "e005": 1668 | /***/ (function(module, exports, __webpack_require__) { 1669 | 1670 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 1671 | var anObject = __webpack_require__("69b3"); 1672 | var dPs = __webpack_require__("0dc8"); 1673 | var enumBugKeys = __webpack_require__("ceac"); 1674 | var IE_PROTO = __webpack_require__("56f2")('IE_PROTO'); 1675 | var Empty = function () { /* empty */ }; 1676 | var PROTOTYPE = 'prototype'; 1677 | 1678 | // Create object with fake `null` prototype: use iframe Object with cleared prototype 1679 | var createDict = function () { 1680 | // Thrash, waste and sodomy: IE GC bug 1681 | var iframe = __webpack_require__("bfe7")('iframe'); 1682 | var i = enumBugKeys.length; 1683 | var lt = '<'; 1684 | var gt = '>'; 1685 | var iframeDocument; 1686 | iframe.style.display = 'none'; 1687 | __webpack_require__("8df1").appendChild(iframe); 1688 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url 1689 | // createDict = iframe.contentWindow.Object; 1690 | // html.removeChild(iframe); 1691 | iframeDocument = iframe.contentWindow.document; 1692 | iframeDocument.open(); 1693 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 1694 | iframeDocument.close(); 1695 | createDict = iframeDocument.F; 1696 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 1697 | return createDict(); 1698 | }; 1699 | 1700 | module.exports = Object.create || function create(O, Properties) { 1701 | var result; 1702 | if (O !== null) { 1703 | Empty[PROTOTYPE] = anObject(O); 1704 | result = new Empty(); 1705 | Empty[PROTOTYPE] = null; 1706 | // add "__proto__" for Object.getPrototypeOf polyfill 1707 | result[IE_PROTO] = O; 1708 | } else result = createDict(); 1709 | return Properties === undefined ? result : dPs(result, Properties); 1710 | }; 1711 | 1712 | 1713 | /***/ }), 1714 | 1715 | /***/ "e042": 1716 | /***/ (function(module, exports) { 1717 | 1718 | var hasOwnProperty = {}.hasOwnProperty; 1719 | module.exports = function (it, key) { 1720 | return hasOwnProperty.call(it, key); 1721 | }; 1722 | 1723 | 1724 | /***/ }), 1725 | 1726 | /***/ "e118": 1727 | /***/ (function(module, exports, __webpack_require__) { 1728 | 1729 | "use strict"; 1730 | 1731 | // 19.1.2.1 Object.assign(target, source, ...) 1732 | var DESCRIPTORS = __webpack_require__("149f"); 1733 | var getKeys = __webpack_require__("80a9"); 1734 | var gOPS = __webpack_require__("2f77"); 1735 | var pIE = __webpack_require__("4f18"); 1736 | var toObject = __webpack_require__("008a"); 1737 | var IObject = __webpack_require__("224c"); 1738 | var $assign = Object.assign; 1739 | 1740 | // should work with symbols and should have deterministic property order (V8 bug) 1741 | module.exports = !$assign || __webpack_require__("238a")(function () { 1742 | var A = {}; 1743 | var B = {}; 1744 | // eslint-disable-next-line no-undef 1745 | var S = Symbol(); 1746 | var K = 'abcdefghijklmnopqrst'; 1747 | A[S] = 7; 1748 | K.split('').forEach(function (k) { B[k] = k; }); 1749 | return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; 1750 | }) ? function assign(target, source) { // eslint-disable-line no-unused-vars 1751 | var T = toObject(target); 1752 | var aLen = arguments.length; 1753 | var index = 1; 1754 | var getSymbols = gOPS.f; 1755 | var isEnum = pIE.f; 1756 | while (aLen > index) { 1757 | var S = IObject(arguments[index++]); 1758 | var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); 1759 | var length = keys.length; 1760 | var j = 0; 1761 | var key; 1762 | while (length > j) { 1763 | key = keys[j++]; 1764 | if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key]; 1765 | } 1766 | } return T; 1767 | } : $assign; 1768 | 1769 | 1770 | /***/ }), 1771 | 1772 | /***/ "e44b": 1773 | /***/ (function(module, exports, __webpack_require__) { 1774 | 1775 | "use strict"; 1776 | 1777 | var addToUnscopables = __webpack_require__("0e8b"); 1778 | var step = __webpack_require__("475d"); 1779 | var Iterators = __webpack_require__("da6d"); 1780 | var toIObject = __webpack_require__("09b9"); 1781 | 1782 | // 22.1.3.4 Array.prototype.entries() 1783 | // 22.1.3.13 Array.prototype.keys() 1784 | // 22.1.3.29 Array.prototype.values() 1785 | // 22.1.3.30 Array.prototype[@@iterator]() 1786 | module.exports = __webpack_require__("492d")(Array, 'Array', function (iterated, kind) { 1787 | this._t = toIObject(iterated); // target 1788 | this._i = 0; // next index 1789 | this._k = kind; // kind 1790 | // 22.1.5.2.1 %ArrayIteratorPrototype%.next() 1791 | }, function () { 1792 | var O = this._t; 1793 | var kind = this._k; 1794 | var index = this._i++; 1795 | if (!O || index >= O.length) { 1796 | this._t = undefined; 1797 | return step(1); 1798 | } 1799 | if (kind == 'keys') return step(0, index); 1800 | if (kind == 'values') return step(0, O[index]); 1801 | return step(0, [index, O[index]]); 1802 | }, 'values'); 1803 | 1804 | // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 1805 | Iterators.Arguments = Iterators.Array; 1806 | 1807 | addToUnscopables('keys'); 1808 | addToUnscopables('values'); 1809 | addToUnscopables('entries'); 1810 | 1811 | 1812 | /***/ }), 1813 | 1814 | /***/ "e46b": 1815 | /***/ (function(module, exports, __webpack_require__) { 1816 | 1817 | var global = __webpack_require__("e7ad"); 1818 | var core = __webpack_require__("7ddc"); 1819 | var hide = __webpack_require__("86d4"); 1820 | var redefine = __webpack_require__("bf16"); 1821 | var ctx = __webpack_require__("4ce5"); 1822 | var PROTOTYPE = 'prototype'; 1823 | 1824 | var $export = function (type, name, source) { 1825 | var IS_FORCED = type & $export.F; 1826 | var IS_GLOBAL = type & $export.G; 1827 | var IS_STATIC = type & $export.S; 1828 | var IS_PROTO = type & $export.P; 1829 | var IS_BIND = type & $export.B; 1830 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; 1831 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 1832 | var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); 1833 | var key, own, out, exp; 1834 | if (IS_GLOBAL) source = name; 1835 | for (key in source) { 1836 | // contains in native 1837 | own = !IS_FORCED && target && target[key] !== undefined; 1838 | // export native or passed 1839 | out = (own ? target : source)[key]; 1840 | // bind timers to global for call from export context 1841 | exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 1842 | // extend global 1843 | if (target) redefine(target, key, out, type & $export.U); 1844 | // export 1845 | if (exports[key] != out) hide(exports, key, exp); 1846 | if (IS_PROTO && expProto[key] != out) expProto[key] = out; 1847 | } 1848 | }; 1849 | global.core = core; 1850 | // type bitmap 1851 | $export.F = 1; // forced 1852 | $export.G = 2; // global 1853 | $export.S = 4; // static 1854 | $export.P = 8; // proto 1855 | $export.B = 16; // bind 1856 | $export.W = 32; // wrap 1857 | $export.U = 64; // safe 1858 | $export.R = 128; // real proto method for `library` 1859 | module.exports = $export; 1860 | 1861 | 1862 | /***/ }), 1863 | 1864 | /***/ "e67d": 1865 | /***/ (function(module, exports) { 1866 | 1867 | // document.currentScript polyfill by Adam Miller 1868 | 1869 | // MIT license 1870 | 1871 | (function(document){ 1872 | var currentScript = "currentScript", 1873 | scripts = document.getElementsByTagName('script'); // Live NodeList collection 1874 | 1875 | // If browser needs currentScript polyfill, add get currentScript() to the document object 1876 | if (!(currentScript in document)) { 1877 | Object.defineProperty(document, currentScript, { 1878 | get: function(){ 1879 | 1880 | // IE 6-10 supports script readyState 1881 | // IE 10+ support stack trace 1882 | try { throw new Error(); } 1883 | catch (err) { 1884 | 1885 | // Find the second match for the "at" string to get file src url from stack. 1886 | // Specifically works with the format of stack traces in IE. 1887 | var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1]; 1888 | 1889 | // For all scripts on the page, if src matches or if ready state is interactive, return the script tag 1890 | for(i in scripts){ 1891 | if(scripts[i].src == res || scripts[i].readyState == "interactive"){ 1892 | return scripts[i]; 1893 | } 1894 | } 1895 | 1896 | // If no match, return null 1897 | return null; 1898 | } 1899 | } 1900 | }); 1901 | } 1902 | })(document); 1903 | 1904 | 1905 | /***/ }), 1906 | 1907 | /***/ "e754": 1908 | /***/ (function(module, exports, __webpack_require__) { 1909 | 1910 | "use strict"; 1911 | 1912 | var at = __webpack_require__("fc81")(true); 1913 | 1914 | // `AdvanceStringIndex` abstract operation 1915 | // https://tc39.github.io/ecma262/#sec-advancestringindex 1916 | module.exports = function (S, index, unicode) { 1917 | return index + (unicode ? at(S, index).length : 1); 1918 | }; 1919 | 1920 | 1921 | /***/ }), 1922 | 1923 | /***/ "e7ad": 1924 | /***/ (function(module, exports) { 1925 | 1926 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 1927 | var global = module.exports = typeof window != 'undefined' && window.Math == Math 1928 | ? window : typeof self != 'undefined' && self.Math == Math ? self 1929 | // eslint-disable-next-line no-new-func 1930 | : Function('return this')(); 1931 | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 1932 | 1933 | 1934 | /***/ }), 1935 | 1936 | /***/ "eafa": 1937 | /***/ (function(module, exports, __webpack_require__) { 1938 | 1939 | // 7.1.15 ToLength 1940 | var toInteger = __webpack_require__("ee21"); 1941 | var min = Math.min; 1942 | module.exports = function (it) { 1943 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 1944 | }; 1945 | 1946 | 1947 | /***/ }), 1948 | 1949 | /***/ "ec45": 1950 | /***/ (function(module, exports) { 1951 | 1952 | var id = 0; 1953 | var px = Math.random(); 1954 | module.exports = function (key) { 1955 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 1956 | }; 1957 | 1958 | 1959 | /***/ }), 1960 | 1961 | /***/ "ee21": 1962 | /***/ (function(module, exports) { 1963 | 1964 | // 7.1.4 ToInteger 1965 | var ceil = Math.ceil; 1966 | var floor = Math.floor; 1967 | module.exports = function (it) { 1968 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 1969 | }; 1970 | 1971 | 1972 | /***/ }), 1973 | 1974 | /***/ "f1fe": 1975 | /***/ (function(module, exports, __webpack_require__) { 1976 | 1977 | "use strict"; 1978 | 1979 | // 21.2.5.3 get RegExp.prototype.flags 1980 | var anObject = __webpack_require__("69b3"); 1981 | module.exports = function () { 1982 | var that = anObject(this); 1983 | var result = ''; 1984 | if (that.global) result += 'g'; 1985 | if (that.ignoreCase) result += 'i'; 1986 | if (that.multiline) result += 'm'; 1987 | if (that.unicode) result += 'u'; 1988 | if (that.sticky) result += 'y'; 1989 | return result; 1990 | }; 1991 | 1992 | 1993 | /***/ }), 1994 | 1995 | /***/ "f548": 1996 | /***/ (function(module, exports, __webpack_require__) { 1997 | 1998 | "use strict"; 1999 | 2000 | 2001 | var anObject = __webpack_require__("69b3"); 2002 | var toObject = __webpack_require__("008a"); 2003 | var toLength = __webpack_require__("eafa"); 2004 | var toInteger = __webpack_require__("ee21"); 2005 | var advanceStringIndex = __webpack_require__("e754"); 2006 | var regExpExec = __webpack_require__("7108"); 2007 | var max = Math.max; 2008 | var min = Math.min; 2009 | var floor = Math.floor; 2010 | var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g; 2011 | var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g; 2012 | 2013 | var maybeToString = function (it) { 2014 | return it === undefined ? it : String(it); 2015 | }; 2016 | 2017 | // @@replace logic 2018 | __webpack_require__("0aed")('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) { 2019 | return [ 2020 | // `String.prototype.replace` method 2021 | // https://tc39.github.io/ecma262/#sec-string.prototype.replace 2022 | function replace(searchValue, replaceValue) { 2023 | var O = defined(this); 2024 | var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; 2025 | return fn !== undefined 2026 | ? fn.call(searchValue, O, replaceValue) 2027 | : $replace.call(String(O), searchValue, replaceValue); 2028 | }, 2029 | // `RegExp.prototype[@@replace]` method 2030 | // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace 2031 | function (regexp, replaceValue) { 2032 | var res = maybeCallNative($replace, regexp, this, replaceValue); 2033 | if (res.done) return res.value; 2034 | 2035 | var rx = anObject(regexp); 2036 | var S = String(this); 2037 | var functionalReplace = typeof replaceValue === 'function'; 2038 | if (!functionalReplace) replaceValue = String(replaceValue); 2039 | var global = rx.global; 2040 | if (global) { 2041 | var fullUnicode = rx.unicode; 2042 | rx.lastIndex = 0; 2043 | } 2044 | var results = []; 2045 | while (true) { 2046 | var result = regExpExec(rx, S); 2047 | if (result === null) break; 2048 | results.push(result); 2049 | if (!global) break; 2050 | var matchStr = String(result[0]); 2051 | if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); 2052 | } 2053 | var accumulatedResult = ''; 2054 | var nextSourcePosition = 0; 2055 | for (var i = 0; i < results.length; i++) { 2056 | result = results[i]; 2057 | var matched = String(result[0]); 2058 | var position = max(min(toInteger(result.index), S.length), 0); 2059 | var captures = []; 2060 | // NOTE: This is equivalent to 2061 | // captures = result.slice(1).map(maybeToString) 2062 | // but for some reason `nativeSlice.call(result, 1, result.length)` (called in 2063 | // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and 2064 | // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. 2065 | for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j])); 2066 | var namedCaptures = result.groups; 2067 | if (functionalReplace) { 2068 | var replacerArgs = [matched].concat(captures, position, S); 2069 | if (namedCaptures !== undefined) replacerArgs.push(namedCaptures); 2070 | var replacement = String(replaceValue.apply(undefined, replacerArgs)); 2071 | } else { 2072 | replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); 2073 | } 2074 | if (position >= nextSourcePosition) { 2075 | accumulatedResult += S.slice(nextSourcePosition, position) + replacement; 2076 | nextSourcePosition = position + matched.length; 2077 | } 2078 | } 2079 | return accumulatedResult + S.slice(nextSourcePosition); 2080 | } 2081 | ]; 2082 | 2083 | // https://tc39.github.io/ecma262/#sec-getsubstitution 2084 | function getSubstitution(matched, str, position, captures, namedCaptures, replacement) { 2085 | var tailPos = position + matched.length; 2086 | var m = captures.length; 2087 | var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; 2088 | if (namedCaptures !== undefined) { 2089 | namedCaptures = toObject(namedCaptures); 2090 | symbols = SUBSTITUTION_SYMBOLS; 2091 | } 2092 | return $replace.call(replacement, symbols, function (match, ch) { 2093 | var capture; 2094 | switch (ch.charAt(0)) { 2095 | case '$': return '$'; 2096 | case '&': return matched; 2097 | case '`': return str.slice(0, position); 2098 | case "'": return str.slice(tailPos); 2099 | case '<': 2100 | capture = namedCaptures[ch.slice(1, -1)]; 2101 | break; 2102 | default: // \d\d? 2103 | var n = +ch; 2104 | if (n === 0) return match; 2105 | if (n > m) { 2106 | var f = floor(n / 10); 2107 | if (f === 0) return match; 2108 | if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1); 2109 | return match; 2110 | } 2111 | capture = captures[n - 1]; 2112 | } 2113 | return capture === undefined ? '' : capture; 2114 | }); 2115 | } 2116 | }); 2117 | 2118 | 2119 | /***/ }), 2120 | 2121 | /***/ "f58a": 2122 | /***/ (function(module, exports, __webpack_require__) { 2123 | 2124 | var toInteger = __webpack_require__("ee21"); 2125 | var max = Math.max; 2126 | var min = Math.min; 2127 | module.exports = function (index, length) { 2128 | index = toInteger(index); 2129 | return index < 0 ? max(index + length, 0) : min(index, length); 2130 | }; 2131 | 2132 | 2133 | /***/ }), 2134 | 2135 | /***/ "f6b4": 2136 | /***/ (function(module, exports) { 2137 | 2138 | // 7.2.1 RequireObjectCoercible(argument) 2139 | module.exports = function (it) { 2140 | if (it == undefined) throw TypeError("Can't call method on " + it); 2141 | return it; 2142 | }; 2143 | 2144 | 2145 | /***/ }), 2146 | 2147 | /***/ "fb68": 2148 | /***/ (function(module, exports) { 2149 | 2150 | module.exports = function (it) { 2151 | return typeof it === 'object' ? it !== null : typeof it === 'function'; 2152 | }; 2153 | 2154 | 2155 | /***/ }), 2156 | 2157 | /***/ "fc81": 2158 | /***/ (function(module, exports, __webpack_require__) { 2159 | 2160 | var toInteger = __webpack_require__("ee21"); 2161 | var defined = __webpack_require__("f6b4"); 2162 | // true -> String#at 2163 | // false -> String#codePointAt 2164 | module.exports = function (TO_STRING) { 2165 | return function (that, pos) { 2166 | var s = String(defined(that)); 2167 | var i = toInteger(pos); 2168 | var l = s.length; 2169 | var a, b; 2170 | if (i < 0 || i >= l) return TO_STRING ? '' : undefined; 2171 | a = s.charCodeAt(i); 2172 | return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff 2173 | ? TO_STRING ? s.charAt(i) : a 2174 | : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; 2175 | }; 2176 | }; 2177 | 2178 | 2179 | /***/ }) 2180 | 2181 | /******/ }); 2182 | //# sourceMappingURL=tag-textarea.common.js.map -------------------------------------------------------------------------------- /vue-print-nb/lib/tag-textarea.umd.js: -------------------------------------------------------------------------------- 1 | (function webpackUniversalModuleDefinition(root, factory) { 2 | if(typeof exports === 'object' && typeof module === 'object') 3 | module.exports = factory(); 4 | else if(typeof define === 'function' && define.amd) 5 | define([], factory); 6 | else if(typeof exports === 'object') 7 | exports["tag-textarea"] = factory(); 8 | else 9 | root["tag-textarea"] = factory(); 10 | })((typeof self !== 'undefined' ? self : this), function() { 11 | return /******/ (function(modules) { // webpackBootstrap 12 | /******/ // The module cache 13 | /******/ var installedModules = {}; 14 | /******/ 15 | /******/ // The require function 16 | /******/ function __webpack_require__(moduleId) { 17 | /******/ 18 | /******/ // Check if module is in cache 19 | /******/ if(installedModules[moduleId]) { 20 | /******/ return installedModules[moduleId].exports; 21 | /******/ } 22 | /******/ // Create a new module (and put it into the cache) 23 | /******/ var module = installedModules[moduleId] = { 24 | /******/ i: moduleId, 25 | /******/ l: false, 26 | /******/ exports: {} 27 | /******/ }; 28 | /******/ 29 | /******/ // Execute the module function 30 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 31 | /******/ 32 | /******/ // Flag the module as loaded 33 | /******/ module.l = true; 34 | /******/ 35 | /******/ // Return the exports of the module 36 | /******/ return module.exports; 37 | /******/ } 38 | /******/ 39 | /******/ 40 | /******/ // expose the modules object (__webpack_modules__) 41 | /******/ __webpack_require__.m = modules; 42 | /******/ 43 | /******/ // expose the module cache 44 | /******/ __webpack_require__.c = installedModules; 45 | /******/ 46 | /******/ // define getter function for harmony exports 47 | /******/ __webpack_require__.d = function(exports, name, getter) { 48 | /******/ if(!__webpack_require__.o(exports, name)) { 49 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 50 | /******/ } 51 | /******/ }; 52 | /******/ 53 | /******/ // define __esModule on exports 54 | /******/ __webpack_require__.r = function(exports) { 55 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 56 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 57 | /******/ } 58 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 59 | /******/ }; 60 | /******/ 61 | /******/ // create a fake namespace object 62 | /******/ // mode & 1: value is a module id, require it 63 | /******/ // mode & 2: merge all properties of value into the ns 64 | /******/ // mode & 4: return value when already ns object 65 | /******/ // mode & 8|1: behave like require 66 | /******/ __webpack_require__.t = function(value, mode) { 67 | /******/ if(mode & 1) value = __webpack_require__(value); 68 | /******/ if(mode & 8) return value; 69 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 70 | /******/ var ns = Object.create(null); 71 | /******/ __webpack_require__.r(ns); 72 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 73 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 74 | /******/ return ns; 75 | /******/ }; 76 | /******/ 77 | /******/ // getDefaultExport function for compatibility with non-harmony modules 78 | /******/ __webpack_require__.n = function(module) { 79 | /******/ var getter = module && module.__esModule ? 80 | /******/ function getDefault() { return module['default']; } : 81 | /******/ function getModuleExports() { return module; }; 82 | /******/ __webpack_require__.d(getter, 'a', getter); 83 | /******/ return getter; 84 | /******/ }; 85 | /******/ 86 | /******/ // Object.prototype.hasOwnProperty.call 87 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 88 | /******/ 89 | /******/ // __webpack_public_path__ 90 | /******/ __webpack_require__.p = ""; 91 | /******/ 92 | /******/ 93 | /******/ // Load entry module and return exports 94 | /******/ return __webpack_require__(__webpack_require__.s = "112a"); 95 | /******/ }) 96 | /************************************************************************/ 97 | /******/ ({ 98 | 99 | /***/ "008a": 100 | /***/ (function(module, exports, __webpack_require__) { 101 | 102 | // 7.1.13 ToObject(argument) 103 | var defined = __webpack_require__("f6b4"); 104 | module.exports = function (it) { 105 | return Object(defined(it)); 106 | }; 107 | 108 | 109 | /***/ }), 110 | 111 | /***/ "064e": 112 | /***/ (function(module, exports, __webpack_require__) { 113 | 114 | var anObject = __webpack_require__("69b3"); 115 | var IE8_DOM_DEFINE = __webpack_require__("db6b"); 116 | var toPrimitive = __webpack_require__("94b3"); 117 | var dP = Object.defineProperty; 118 | 119 | exports.f = __webpack_require__("149f") ? Object.defineProperty : function defineProperty(O, P, Attributes) { 120 | anObject(O); 121 | P = toPrimitive(P, true); 122 | anObject(Attributes); 123 | if (IE8_DOM_DEFINE) try { 124 | return dP(O, P, Attributes); 125 | } catch (e) { /* empty */ } 126 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 127 | if ('value' in Attributes) O[P] = Attributes.value; 128 | return O; 129 | }; 130 | 131 | 132 | /***/ }), 133 | 134 | /***/ "09b9": 135 | /***/ (function(module, exports, __webpack_require__) { 136 | 137 | // to indexed object, toObject with fallback for non-array-like ES3 strings 138 | var IObject = __webpack_require__("224c"); 139 | var defined = __webpack_require__("f6b4"); 140 | module.exports = function (it) { 141 | return IObject(defined(it)); 142 | }; 143 | 144 | 145 | /***/ }), 146 | 147 | /***/ "0aed": 148 | /***/ (function(module, exports, __webpack_require__) { 149 | 150 | "use strict"; 151 | 152 | __webpack_require__("aaba"); 153 | var redefine = __webpack_require__("bf16"); 154 | var hide = __webpack_require__("86d4"); 155 | var fails = __webpack_require__("238a"); 156 | var defined = __webpack_require__("f6b4"); 157 | var wks = __webpack_require__("cb3d"); 158 | var regexpExec = __webpack_require__("8714"); 159 | 160 | var SPECIES = wks('species'); 161 | 162 | var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { 163 | // #replace needs built-in support for named groups. 164 | // #match works fine because it just return the exec results, even if it has 165 | // a "grops" property. 166 | var re = /./; 167 | re.exec = function () { 168 | var result = []; 169 | result.groups = { a: '7' }; 170 | return result; 171 | }; 172 | return ''.replace(re, '$') !== '7'; 173 | }); 174 | 175 | var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () { 176 | // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec 177 | var re = /(?:)/; 178 | var originalExec = re.exec; 179 | re.exec = function () { return originalExec.apply(this, arguments); }; 180 | var result = 'ab'.split(re); 181 | return result.length === 2 && result[0] === 'a' && result[1] === 'b'; 182 | })(); 183 | 184 | module.exports = function (KEY, length, exec) { 185 | var SYMBOL = wks(KEY); 186 | 187 | var DELEGATES_TO_SYMBOL = !fails(function () { 188 | // String methods call symbol-named RegEp methods 189 | var O = {}; 190 | O[SYMBOL] = function () { return 7; }; 191 | return ''[KEY](O) != 7; 192 | }); 193 | 194 | var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () { 195 | // Symbol-named RegExp methods call .exec 196 | var execCalled = false; 197 | var re = /a/; 198 | re.exec = function () { execCalled = true; return null; }; 199 | if (KEY === 'split') { 200 | // RegExp[@@split] doesn't call the regex's exec method, but first creates 201 | // a new one. We need to return the patched regex when creating the new one. 202 | re.constructor = {}; 203 | re.constructor[SPECIES] = function () { return re; }; 204 | } 205 | re[SYMBOL](''); 206 | return !execCalled; 207 | }) : undefined; 208 | 209 | if ( 210 | !DELEGATES_TO_SYMBOL || 211 | !DELEGATES_TO_EXEC || 212 | (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) || 213 | (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) 214 | ) { 215 | var nativeRegExpMethod = /./[SYMBOL]; 216 | var fns = exec( 217 | defined, 218 | SYMBOL, 219 | ''[KEY], 220 | function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) { 221 | if (regexp.exec === regexpExec) { 222 | if (DELEGATES_TO_SYMBOL && !forceStringMethod) { 223 | // The native String method already delegates to @@method (this 224 | // polyfilled function), leasing to infinite recursion. 225 | // We avoid it by directly calling the native @@method method. 226 | return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) }; 227 | } 228 | return { done: true, value: nativeMethod.call(str, regexp, arg2) }; 229 | } 230 | return { done: false }; 231 | } 232 | ); 233 | var strfn = fns[0]; 234 | var rxfn = fns[1]; 235 | 236 | redefine(String.prototype, KEY, strfn); 237 | hide(RegExp.prototype, SYMBOL, length == 2 238 | // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) 239 | // 21.2.5.11 RegExp.prototype[@@split](string, limit) 240 | ? function (string, arg) { return rxfn.call(string, this, arg); } 241 | // 21.2.5.6 RegExp.prototype[@@match](string) 242 | // 21.2.5.9 RegExp.prototype[@@search](string) 243 | : function (string) { return rxfn.call(string, this); } 244 | ); 245 | } 246 | }; 247 | 248 | 249 | /***/ }), 250 | 251 | /***/ "0dc8": 252 | /***/ (function(module, exports, __webpack_require__) { 253 | 254 | var dP = __webpack_require__("064e"); 255 | var anObject = __webpack_require__("69b3"); 256 | var getKeys = __webpack_require__("80a9"); 257 | 258 | module.exports = __webpack_require__("149f") ? Object.defineProperties : function defineProperties(O, Properties) { 259 | anObject(O); 260 | var keys = getKeys(Properties); 261 | var length = keys.length; 262 | var i = 0; 263 | var P; 264 | while (length > i) dP.f(O, P = keys[i++], Properties[P]); 265 | return O; 266 | }; 267 | 268 | 269 | /***/ }), 270 | 271 | /***/ "0e8b": 272 | /***/ (function(module, exports, __webpack_require__) { 273 | 274 | // 22.1.3.31 Array.prototype[@@unscopables] 275 | var UNSCOPABLES = __webpack_require__("cb3d")('unscopables'); 276 | var ArrayProto = Array.prototype; 277 | if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("86d4")(ArrayProto, UNSCOPABLES, {}); 278 | module.exports = function (key) { 279 | ArrayProto[UNSCOPABLES][key] = true; 280 | }; 281 | 282 | 283 | /***/ }), 284 | 285 | /***/ "112a": 286 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 287 | 288 | "use strict"; 289 | __webpack_require__.r(__webpack_exports__); 290 | 291 | // CONCATENATED MODULE: ./node_modules/_@vue_cli-service@3.12.1@@vue/cli-service/lib/commands/build/setPublicPath.js 292 | // This file is imported into lib/wc client bundles. 293 | 294 | if (typeof window !== 'undefined') { 295 | if (true) { 296 | __webpack_require__("e67d") 297 | } 298 | 299 | var i 300 | if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) { 301 | __webpack_require__.p = i[1] // eslint-disable-line 302 | } 303 | } 304 | 305 | // Indicate to webpack that this file can be concatenated 306 | /* harmony default export */ var setPublicPath = (null); 307 | 308 | // EXTERNAL MODULE: ./node_modules/_core-js@2.6.11@core-js/modules/es6.regexp.constructor.js 309 | var es6_regexp_constructor = __webpack_require__("9dd9"); 310 | 311 | // EXTERNAL MODULE: ./node_modules/_core-js@2.6.11@core-js/modules/es6.regexp.replace.js 312 | var es6_regexp_replace = __webpack_require__("f548"); 313 | 314 | // CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.8.3@@babel/runtime/helpers/esm/typeof.js 315 | function _typeof(obj) { 316 | if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 317 | _typeof = function _typeof(obj) { 318 | return typeof obj; 319 | }; 320 | } else { 321 | _typeof = function _typeof(obj) { 322 | return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 323 | }; 324 | } 325 | 326 | return _typeof(obj); 327 | } 328 | // EXTERNAL MODULE: ./node_modules/_core-js@2.6.11@core-js/modules/web.dom.iterable.js 329 | var web_dom_iterable = __webpack_require__("6d57"); 330 | 331 | // EXTERNAL MODULE: ./node_modules/_core-js@2.6.11@core-js/modules/es6.object.assign.js 332 | var es6_object_assign = __webpack_require__("5f54"); 333 | 334 | // CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.8.3@@babel/runtime/helpers/esm/classCallCheck.js 335 | function _classCallCheck(instance, Constructor) { 336 | if (!(instance instanceof Constructor)) { 337 | throw new TypeError("Cannot call a class as a function"); 338 | } 339 | } 340 | // CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.8.3@@babel/runtime/helpers/esm/createClass.js 341 | function _defineProperties(target, props) { 342 | for (var i = 0; i < props.length; i++) { 343 | var descriptor = props[i]; 344 | descriptor.enumerable = descriptor.enumerable || false; 345 | descriptor.configurable = true; 346 | if ("value" in descriptor) descriptor.writable = true; 347 | Object.defineProperty(target, descriptor.key, descriptor); 348 | } 349 | } 350 | 351 | function _createClass(Constructor, protoProps, staticProps) { 352 | if (protoProps) _defineProperties(Constructor.prototype, protoProps); 353 | if (staticProps) _defineProperties(Constructor, staticProps); 354 | return Constructor; 355 | } 356 | // CONCATENATED MODULE: ./src/packages/printarea.js 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | var printarea_default = 365 | /*#__PURE__*/ 366 | function () { 367 | function _default(option) { 368 | _classCallCheck(this, _default); 369 | 370 | this.standards = { 371 | strict: 'strict', 372 | loose: 'loose', 373 | html5: 'html5' 374 | }; 375 | this.selectArray = []; // 存储select的 376 | 377 | this.counter = 0; 378 | this.settings = { 379 | standard: this.standards.html5, 380 | extraHead: '', 381 | // 附加在head标签上的额外元素,使用逗号分隔 382 | extraCss: '', 383 | // 额外的css逗号分隔 384 | popTitle: '', 385 | // 标题 386 | endCallback: null, 387 | // 成功打开后的回调函数 388 | ids: '' // 局部打印的id 389 | 390 | }; 391 | Object.assign(this.settings, option); 392 | this.init(); 393 | } 394 | 395 | _createClass(_default, [{ 396 | key: "init", 397 | value: function init() { 398 | this.counter++; 399 | this.settings.id = "printArea_".concat(this.counter); 400 | var PrintAreaWindow = this.getPrintWindow(); // 创建iframe 401 | 402 | this.write(PrintAreaWindow.doc); // 写入内容 403 | this.print(PrintAreaWindow); 404 | this.settings.endCallback(); 405 | } 406 | }, { 407 | key: "print", 408 | value: function print(PAWindow) { 409 | var _this = this; 410 | 411 | var paWindow = PAWindow.win; 412 | 413 | var _loaded = function _loaded() { 414 | paWindow.focus(); 415 | paWindow.print(); 416 | 417 | try { 418 | var box = document.getElementById(_this.settings.id); 419 | 420 | var canvasList = _this.elsdom.querySelectorAll('.canvasImg'); 421 | 422 | // console.log(66, _this.elsdom); 423 | 424 | for (var i = 0; i < canvasList.length; i++) { 425 | var _parent = canvasList[i].parentNode; 426 | 427 | _parent.removeChild(canvasList[i]); 428 | } 429 | 430 | box.parentNode.removeChild(box); 431 | } catch (e) { 432 | console.log(e); 433 | } 434 | }; 435 | 436 | if (window.ActiveXObject) { 437 | paWindow.onload = _loaded(); 438 | return false; 439 | } 440 | 441 | paWindow.onload = function () { 442 | _loaded(); 443 | }; 444 | } 445 | }, { 446 | key: "write", 447 | value: function write(PADocument, $ele) { 448 | PADocument.open(); 449 | PADocument.write("".concat(this.docType(), "").concat(this.getHead()).concat(this.getBody(), "")); 450 | PADocument.close(); 451 | } 452 | }, { 453 | key: "docType", 454 | value: function docType() { 455 | if (this.settings.standard === this.standards.html5) { 456 | return ''; 457 | } 458 | 459 | var transitional = this.settings.standard === this.standards.loose ? ' Transitional' : ''; 460 | var dtd = this.settings.standard === this.standards.loose ? 'loose' : 'strict'; 461 | return ""); 462 | } 463 | }, { 464 | key: "getHead", 465 | value: function getHead() { 466 | var extraHead = ''; 467 | var links = ''; 468 | var style = ''; 469 | 470 | if (this.settings.extraHead) { 471 | this.settings.extraHead.replace(/([^,]+)/g, function (m) { 472 | extraHead += m; 473 | }); 474 | } // 复制所有link标签 475 | 476 | 477 | [].forEach.call(document.querySelectorAll('link'), function (item, i) { 478 | if (item.href.indexOf('.css') >= 0) { 479 | links += ""); 480 | } 481 | }); // const _links = document.querySelectorAll('link'); 482 | // if (typeof _links === 'object' || _links.length > 0) { 483 | // // 复制所有link标签 484 | // for (let i = 0; i < _links.length; i++) { 485 | // let item = _links[i]; 486 | // if (item.href.indexOf('.css') >= 0) { 487 | // links += ``; 488 | // } 489 | // } 490 | // } 491 | // 循环获取style标签的样式 492 | 493 | var domStyle = document.styleSheets; 494 | 495 | if (domStyle && domStyle.length > 0) { 496 | for (var i = 0; i < domStyle.length; i++) { 497 | try { 498 | if (domStyle[i].cssRules || domStyle[i].rules) { 499 | var rules = domStyle[i].cssRules || domStyle[i].rules; 500 | 501 | for (var b = 0; b < rules.length; b++) { 502 | style += rules[b].cssText; 503 | } 504 | } 505 | } catch (e) { 506 | console.log(domStyle[i].href + e); 507 | } 508 | } 509 | } 510 | 511 | if (this.settings.extraCss) { 512 | this.settings.extraCss.replace(/([^,\s]+)/g, function (m) { 513 | links += ""); 514 | }); 515 | } 516 | 517 | return "".concat(this.settings.popTitle, "").concat(extraHead).concat(links, ""); 518 | } 519 | }, { 520 | key: "getBody", 521 | value: function getBody() { 522 | var ids = this.settings.ids; 523 | ids = ids.replace(new RegExp("#", "g"), ''); 524 | this.elsdom = this.beforeHanler(document.getElementById(ids)); 525 | var ele = this.getFormData(this.elsdom); 526 | var htm = ele.outerHTML; 527 | return '' + htm + ''; 528 | } // 克隆节点之前做的操作 529 | 530 | }, { 531 | key: "beforeHanler", 532 | value: function beforeHanler(elsdom) { 533 | var canvasList = elsdom.querySelectorAll('canvas'); // canvas转换png图片 534 | 535 | for (var i = 0; i < canvasList.length; i++) { 536 | if (!canvasList[i].style.display) { 537 | var _parent = canvasList[i].parentNode; 538 | 539 | var _canvasUrl = canvasList[i].toDataURL('image/png'); 540 | 541 | var _img = new Image(); 542 | 543 | _img.className = 'canvasImg'; 544 | _img.style.display = 'none'; 545 | _img.src = _canvasUrl; // _parent.replaceChild(_img, canvasList[i]) 546 | 547 | _parent.appendChild(_img); 548 | } 549 | } 550 | 551 | return elsdom; 552 | } // 根据type去处理form表单 553 | 554 | }, { 555 | key: "getFormData", 556 | value: function getFormData(ele) { 557 | var copy = ele.cloneNode(true); 558 | var copiedInputs = copy.querySelectorAll('input,select,textarea'); 559 | var canvasImgList = copy.querySelectorAll('.canvasImg,canvas'); 560 | var selectCount = -1; // 处理所有canvas 561 | 562 | for (var i = 0; i < canvasImgList.length; i++) { 563 | var _parent = canvasImgList[i].parentNode; 564 | var item = canvasImgList[i]; // 删除克隆后的canvas节点 565 | 566 | if (item.tagName.toLowerCase() === 'canvas') { 567 | _parent.removeChild(item); 568 | } else { 569 | item.style.display = 'block'; 570 | } 571 | } // 处理所有输入框 572 | 573 | 574 | for (var _i = 0; _i < copiedInputs.length; _i++) { 575 | var _item = copiedInputs[_i]; 576 | 577 | var typeInput = _item.getAttribute('type'); 578 | 579 | var copiedInput = copiedInputs[_i]; // 获取select标签 580 | 581 | if (!typeInput) { 582 | typeInput = _item.tagName === 'SELECT' ? 'select' : _item.tagName === 'TEXTAREA' ? 'textarea' : ''; 583 | } // 处理input框 584 | 585 | 586 | if (_item.tagName === 'INPUT') { 587 | // 除了单选框 多选框比较特别 588 | if (typeInput === 'radio' || typeInput === 'checkbox') { 589 | copiedInput.setAttribute('checked', _item.checked); // 590 | } else { 591 | copiedInput.value = _item.value; 592 | copiedInput.setAttribute('value', _item.value); 593 | } // 处理select 594 | 595 | } else if (typeInput === 'select') { 596 | selectCount++; 597 | 598 | for (var b = 0; b < ele.querySelectorAll('select').length; b++) { 599 | var select = ele.querySelectorAll('select')[b]; // 获取原始层每一个select 600 | 601 | !select.getAttribute('newbs') && select.setAttribute('newbs', b); // 添加标识 602 | 603 | if (select.getAttribute('newbs') == selectCount) { 604 | var opSelectedIndex = ele.querySelectorAll('select')[selectCount].selectedIndex; 605 | 606 | _item.options[opSelectedIndex].setAttribute('selected', true); 607 | } 608 | } // 处理textarea 609 | 610 | } else { 611 | copiedInput.innerHTML = _item.value; 612 | copiedInput.setAttribute('html', _item.value); 613 | } 614 | } 615 | 616 | return copy; 617 | } 618 | }, { 619 | key: "getPrintWindow", 620 | value: function getPrintWindow() { 621 | var f = this.Iframe(); 622 | 623 | return { 624 | f: f, 625 | win: f.contentWindow || f, 626 | doc: f.doc 627 | }; 628 | } 629 | }, { 630 | key: "Iframe", 631 | value: function Iframe() { 632 | var frameId = this.settings.id; 633 | var iframe; 634 | var that = this; 635 | 636 | try { 637 | iframe = document.createElement('iframe'); 638 | document.body.appendChild(iframe); 639 | iframe.style.border = '0px'; 640 | iframe.style.position = 'absolute'; 641 | iframe.style.width = '0px'; 642 | iframe.style.height = '0px'; 643 | iframe.style.right = '0px'; 644 | iframe.style.top = '0px'; 645 | iframe.setAttribute('id', frameId); 646 | iframe.setAttribute('src', new Date().getTime()); 647 | iframe.doc = null; 648 | iframe.doc = iframe.contentDocument ? iframe.contentDocument : iframe.contentWindow ? iframe.contentWindow.document : iframe.document; 649 | 650 | iframe.onload = function () { 651 | var win = iframe.contentWindow || iframe; 652 | that.print(win); 653 | }; 654 | } catch (e) { 655 | throw new Error(e + '. iframes may not be supported in this browser.'); 656 | } 657 | 658 | if (iframe.doc == null) { 659 | throw new Error('Cannot find document.'); 660 | } 661 | 662 | return iframe; 663 | } 664 | }]); 665 | 666 | return _default; 667 | }(); 668 | 669 | 670 | // CONCATENATED MODULE: ./src/packages/print.js 671 | 672 | 673 | 674 | 675 | /** 676 | * @file 打印 677 | * 指令`v-print`,默认打印整个窗口 678 | * 传入参数`v-print="'#id'"` , 参数为需要打印局部的盒子标识. 679 | */ 680 | 681 | /* harmony default export */ var print = ({ 682 | directiveName: 'print', 683 | bind: function bind(el, binding, vnode) { 684 | var vue = vnode.context; 685 | var closeBtn = true; 686 | var id = ''; 687 | el.addEventListener('click', function () { 688 | vue.$nextTick(function () { 689 | if (typeof binding.value === 'string') { 690 | id = binding.value; 691 | } else if (_typeof(binding.value) === 'object' && !!binding.value.id) { 692 | id = binding.value.id; 693 | var ids = id.replace(new RegExp("#", "g"), ''); 694 | var elsdom = document.getElementById(ids); 695 | if (!elsdom) console.log("id in Error"), id = ''; 696 | } // 局部打印 697 | 698 | 699 | if (id) { 700 | localPrint(); 701 | } else { 702 | // 直接全局打印 703 | window.print(); 704 | } 705 | }); 706 | }); 707 | 708 | var localPrint = function localPrint() { 709 | if (closeBtn) { 710 | closeBtn = false; 711 | new printarea_default({ 712 | ids: id, 713 | // * 局部打印必传入id 714 | standard: '', 715 | // 文档类型,默认是html5,可选 html5,loose,strict 716 | extraHead: binding.value.extraHead, 717 | // 附加在head标签上的额外标签,使用逗号分隔 718 | extraCss: binding.value.extraCss, 719 | // 额外的css连接,多个逗号分开 720 | popTitle: binding.value.popTitle, 721 | // title的标题 722 | endCallback: function endCallback() { 723 | // 调用打印之后的回调事件 724 | closeBtn = true; 725 | binding.value.endCallback && binding.value.endCallback(binding) 726 | } 727 | }); 728 | } 729 | }; 730 | } 731 | }); 732 | // CONCATENATED MODULE: ./src/index.js 733 | 734 | 735 | print.install = function (Vue) { 736 | Vue.directive('print', print); 737 | }; 738 | 739 | /* harmony default export */ var src = (print); 740 | // CONCATENATED MODULE: ./node_modules/_@vue_cli-service@3.12.1@@vue/cli-service/lib/commands/build/entry-lib.js 741 | 742 | 743 | /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src); 744 | 745 | 746 | 747 | /***/ }), 748 | 749 | /***/ "1157": 750 | /***/ (function(module, exports, __webpack_require__) { 751 | 752 | "use strict"; 753 | 754 | var global = __webpack_require__("e7ad"); 755 | var dP = __webpack_require__("064e"); 756 | var DESCRIPTORS = __webpack_require__("149f"); 757 | var SPECIES = __webpack_require__("cb3d")('species'); 758 | 759 | module.exports = function (KEY) { 760 | var C = global[KEY]; 761 | if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { 762 | configurable: true, 763 | get: function () { return this; } 764 | }); 765 | }; 766 | 767 | 768 | /***/ }), 769 | 770 | /***/ "149f": 771 | /***/ (function(module, exports, __webpack_require__) { 772 | 773 | // Thank's IE8 for his funny defineProperty 774 | module.exports = !__webpack_require__("238a")(function () { 775 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 776 | }); 777 | 778 | 779 | /***/ }), 780 | 781 | /***/ "1e5b": 782 | /***/ (function(module, exports, __webpack_require__) { 783 | 784 | var isObject = __webpack_require__("fb68"); 785 | var setPrototypeOf = __webpack_require__("859b").set; 786 | module.exports = function (that, target, C) { 787 | var S = target.constructor; 788 | var P; 789 | if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { 790 | setPrototypeOf(that, P); 791 | } return that; 792 | }; 793 | 794 | 795 | /***/ }), 796 | 797 | /***/ "224c": 798 | /***/ (function(module, exports, __webpack_require__) { 799 | 800 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 801 | var cof = __webpack_require__("75c4"); 802 | // eslint-disable-next-line no-prototype-builtins 803 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 804 | return cof(it) == 'String' ? it.split('') : Object(it); 805 | }; 806 | 807 | 808 | /***/ }), 809 | 810 | /***/ "238a": 811 | /***/ (function(module, exports) { 812 | 813 | module.exports = function (exec) { 814 | try { 815 | return !!exec(); 816 | } catch (e) { 817 | return true; 818 | } 819 | }; 820 | 821 | 822 | /***/ }), 823 | 824 | /***/ "2ea2": 825 | /***/ (function(module, exports, __webpack_require__) { 826 | 827 | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 828 | var $keys = __webpack_require__("c2f7"); 829 | var hiddenKeys = __webpack_require__("ceac").concat('length', 'prototype'); 830 | 831 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 832 | return $keys(O, hiddenKeys); 833 | }; 834 | 835 | 836 | /***/ }), 837 | 838 | /***/ "2f77": 839 | /***/ (function(module, exports) { 840 | 841 | exports.f = Object.getOwnPropertySymbols; 842 | 843 | 844 | /***/ }), 845 | 846 | /***/ "2fd4": 847 | /***/ (function(module, exports, __webpack_require__) { 848 | 849 | // 7.2.8 IsRegExp(argument) 850 | var isObject = __webpack_require__("fb68"); 851 | var cof = __webpack_require__("75c4"); 852 | var MATCH = __webpack_require__("cb3d")('match'); 853 | module.exports = function (it) { 854 | var isRegExp; 855 | return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); 856 | }; 857 | 858 | 859 | /***/ }), 860 | 861 | /***/ "32b9": 862 | /***/ (function(module, exports, __webpack_require__) { 863 | 864 | "use strict"; 865 | 866 | var create = __webpack_require__("e005"); 867 | var descriptor = __webpack_require__("cc33"); 868 | var setToStringTag = __webpack_require__("399f"); 869 | var IteratorPrototype = {}; 870 | 871 | // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 872 | __webpack_require__("86d4")(IteratorPrototype, __webpack_require__("cb3d")('iterator'), function () { return this; }); 873 | 874 | module.exports = function (Constructor, NAME, next) { 875 | Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); 876 | setToStringTag(Constructor, NAME + ' Iterator'); 877 | }; 878 | 879 | 880 | /***/ }), 881 | 882 | /***/ "399f": 883 | /***/ (function(module, exports, __webpack_require__) { 884 | 885 | var def = __webpack_require__("064e").f; 886 | var has = __webpack_require__("e042"); 887 | var TAG = __webpack_require__("cb3d")('toStringTag'); 888 | 889 | module.exports = function (it, tag, stat) { 890 | if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); 891 | }; 892 | 893 | 894 | /***/ }), 895 | 896 | /***/ "475d": 897 | /***/ (function(module, exports) { 898 | 899 | module.exports = function (done, value) { 900 | return { value: value, done: !!done }; 901 | }; 902 | 903 | 904 | /***/ }), 905 | 906 | /***/ "492d": 907 | /***/ (function(module, exports, __webpack_require__) { 908 | 909 | "use strict"; 910 | 911 | var LIBRARY = __webpack_require__("550e"); 912 | var $export = __webpack_require__("e46b"); 913 | var redefine = __webpack_require__("bf16"); 914 | var hide = __webpack_require__("86d4"); 915 | var Iterators = __webpack_require__("da6d"); 916 | var $iterCreate = __webpack_require__("32b9"); 917 | var setToStringTag = __webpack_require__("399f"); 918 | var getPrototypeOf = __webpack_require__("58cf"); 919 | var ITERATOR = __webpack_require__("cb3d")('iterator'); 920 | var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` 921 | var FF_ITERATOR = '@@iterator'; 922 | var KEYS = 'keys'; 923 | var VALUES = 'values'; 924 | 925 | var returnThis = function () { return this; }; 926 | 927 | module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { 928 | $iterCreate(Constructor, NAME, next); 929 | var getMethod = function (kind) { 930 | if (!BUGGY && kind in proto) return proto[kind]; 931 | switch (kind) { 932 | case KEYS: return function keys() { return new Constructor(this, kind); }; 933 | case VALUES: return function values() { return new Constructor(this, kind); }; 934 | } return function entries() { return new Constructor(this, kind); }; 935 | }; 936 | var TAG = NAME + ' Iterator'; 937 | var DEF_VALUES = DEFAULT == VALUES; 938 | var VALUES_BUG = false; 939 | var proto = Base.prototype; 940 | var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; 941 | var $default = $native || getMethod(DEFAULT); 942 | var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; 943 | var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; 944 | var methods, key, IteratorPrototype; 945 | // Fix native 946 | if ($anyNative) { 947 | IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 948 | if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { 949 | // Set @@toStringTag to native iterators 950 | setToStringTag(IteratorPrototype, TAG, true); 951 | // fix for some old engines 952 | if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); 953 | } 954 | } 955 | // fix Array#{values, @@iterator}.name in V8 / FF 956 | if (DEF_VALUES && $native && $native.name !== VALUES) { 957 | VALUES_BUG = true; 958 | $default = function values() { return $native.call(this); }; 959 | } 960 | // Define iterator 961 | if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { 962 | hide(proto, ITERATOR, $default); 963 | } 964 | // Plug for library 965 | Iterators[NAME] = $default; 966 | Iterators[TAG] = returnThis; 967 | if (DEFAULT) { 968 | methods = { 969 | values: DEF_VALUES ? $default : getMethod(VALUES), 970 | keys: IS_SET ? $default : getMethod(KEYS), 971 | entries: $entries 972 | }; 973 | if (FORCED) for (key in methods) { 974 | if (!(key in proto)) redefine(proto, key, methods[key]); 975 | } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); 976 | } 977 | return methods; 978 | }; 979 | 980 | 981 | /***/ }), 982 | 983 | /***/ "4ce5": 984 | /***/ (function(module, exports, __webpack_require__) { 985 | 986 | // optional / simple context binding 987 | var aFunction = __webpack_require__("5daa"); 988 | module.exports = function (fn, that, length) { 989 | aFunction(fn); 990 | if (that === undefined) return fn; 991 | switch (length) { 992 | case 1: return function (a) { 993 | return fn.call(that, a); 994 | }; 995 | case 2: return function (a, b) { 996 | return fn.call(that, a, b); 997 | }; 998 | case 3: return function (a, b, c) { 999 | return fn.call(that, a, b, c); 1000 | }; 1001 | } 1002 | return function (/* ...args */) { 1003 | return fn.apply(that, arguments); 1004 | }; 1005 | }; 1006 | 1007 | 1008 | /***/ }), 1009 | 1010 | /***/ "4f18": 1011 | /***/ (function(module, exports) { 1012 | 1013 | exports.f = {}.propertyIsEnumerable; 1014 | 1015 | 1016 | /***/ }), 1017 | 1018 | /***/ "550e": 1019 | /***/ (function(module, exports) { 1020 | 1021 | module.exports = false; 1022 | 1023 | 1024 | /***/ }), 1025 | 1026 | /***/ "56f2": 1027 | /***/ (function(module, exports, __webpack_require__) { 1028 | 1029 | var shared = __webpack_require__("6798")('keys'); 1030 | var uid = __webpack_require__("ec45"); 1031 | module.exports = function (key) { 1032 | return shared[key] || (shared[key] = uid(key)); 1033 | }; 1034 | 1035 | 1036 | /***/ }), 1037 | 1038 | /***/ "58cf": 1039 | /***/ (function(module, exports, __webpack_require__) { 1040 | 1041 | // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 1042 | var has = __webpack_require__("e042"); 1043 | var toObject = __webpack_require__("008a"); 1044 | var IE_PROTO = __webpack_require__("56f2")('IE_PROTO'); 1045 | var ObjectProto = Object.prototype; 1046 | 1047 | module.exports = Object.getPrototypeOf || function (O) { 1048 | O = toObject(O); 1049 | if (has(O, IE_PROTO)) return O[IE_PROTO]; 1050 | if (typeof O.constructor == 'function' && O instanceof O.constructor) { 1051 | return O.constructor.prototype; 1052 | } return O instanceof Object ? ObjectProto : null; 1053 | }; 1054 | 1055 | 1056 | /***/ }), 1057 | 1058 | /***/ "5daa": 1059 | /***/ (function(module, exports) { 1060 | 1061 | module.exports = function (it) { 1062 | if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 1063 | return it; 1064 | }; 1065 | 1066 | 1067 | /***/ }), 1068 | 1069 | /***/ "5f54": 1070 | /***/ (function(module, exports, __webpack_require__) { 1071 | 1072 | // 19.1.3.1 Object.assign(target, source) 1073 | var $export = __webpack_require__("e46b"); 1074 | 1075 | $export($export.S + $export.F, 'Object', { assign: __webpack_require__("e118") }); 1076 | 1077 | 1078 | /***/ }), 1079 | 1080 | /***/ "6798": 1081 | /***/ (function(module, exports, __webpack_require__) { 1082 | 1083 | var core = __webpack_require__("7ddc"); 1084 | var global = __webpack_require__("e7ad"); 1085 | var SHARED = '__core-js_shared__'; 1086 | var store = global[SHARED] || (global[SHARED] = {}); 1087 | 1088 | (module.exports = function (key, value) { 1089 | return store[key] || (store[key] = value !== undefined ? value : {}); 1090 | })('versions', []).push({ 1091 | version: core.version, 1092 | mode: __webpack_require__("550e") ? 'pure' : 'global', 1093 | copyright: '© 2019 Denis Pushkarev (zloirock.ru)' 1094 | }); 1095 | 1096 | 1097 | /***/ }), 1098 | 1099 | /***/ "69b3": 1100 | /***/ (function(module, exports, __webpack_require__) { 1101 | 1102 | var isObject = __webpack_require__("fb68"); 1103 | module.exports = function (it) { 1104 | if (!isObject(it)) throw TypeError(it + ' is not an object!'); 1105 | return it; 1106 | }; 1107 | 1108 | 1109 | /***/ }), 1110 | 1111 | /***/ "6d57": 1112 | /***/ (function(module, exports, __webpack_require__) { 1113 | 1114 | var $iterators = __webpack_require__("e44b"); 1115 | var getKeys = __webpack_require__("80a9"); 1116 | var redefine = __webpack_require__("bf16"); 1117 | var global = __webpack_require__("e7ad"); 1118 | var hide = __webpack_require__("86d4"); 1119 | var Iterators = __webpack_require__("da6d"); 1120 | var wks = __webpack_require__("cb3d"); 1121 | var ITERATOR = wks('iterator'); 1122 | var TO_STRING_TAG = wks('toStringTag'); 1123 | var ArrayValues = Iterators.Array; 1124 | 1125 | var DOMIterables = { 1126 | CSSRuleList: true, // TODO: Not spec compliant, should be false. 1127 | CSSStyleDeclaration: false, 1128 | CSSValueList: false, 1129 | ClientRectList: false, 1130 | DOMRectList: false, 1131 | DOMStringList: false, 1132 | DOMTokenList: true, 1133 | DataTransferItemList: false, 1134 | FileList: false, 1135 | HTMLAllCollection: false, 1136 | HTMLCollection: false, 1137 | HTMLFormElement: false, 1138 | HTMLSelectElement: false, 1139 | MediaList: true, // TODO: Not spec compliant, should be false. 1140 | MimeTypeArray: false, 1141 | NamedNodeMap: false, 1142 | NodeList: true, 1143 | PaintRequestList: false, 1144 | Plugin: false, 1145 | PluginArray: false, 1146 | SVGLengthList: false, 1147 | SVGNumberList: false, 1148 | SVGPathSegList: false, 1149 | SVGPointList: false, 1150 | SVGStringList: false, 1151 | SVGTransformList: false, 1152 | SourceBufferList: false, 1153 | StyleSheetList: true, // TODO: Not spec compliant, should be false. 1154 | TextTrackCueList: false, 1155 | TextTrackList: false, 1156 | TouchList: false 1157 | }; 1158 | 1159 | for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) { 1160 | var NAME = collections[i]; 1161 | var explicit = DOMIterables[NAME]; 1162 | var Collection = global[NAME]; 1163 | var proto = Collection && Collection.prototype; 1164 | var key; 1165 | if (proto) { 1166 | if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); 1167 | if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); 1168 | Iterators[NAME] = ArrayValues; 1169 | if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); 1170 | } 1171 | } 1172 | 1173 | 1174 | /***/ }), 1175 | 1176 | /***/ "7108": 1177 | /***/ (function(module, exports, __webpack_require__) { 1178 | 1179 | "use strict"; 1180 | 1181 | 1182 | var classof = __webpack_require__("7e23"); 1183 | var builtinExec = RegExp.prototype.exec; 1184 | 1185 | // `RegExpExec` abstract operation 1186 | // https://tc39.github.io/ecma262/#sec-regexpexec 1187 | module.exports = function (R, S) { 1188 | var exec = R.exec; 1189 | if (typeof exec === 'function') { 1190 | var result = exec.call(R, S); 1191 | if (typeof result !== 'object') { 1192 | throw new TypeError('RegExp exec method returned something other than an Object or null'); 1193 | } 1194 | return result; 1195 | } 1196 | if (classof(R) !== 'RegExp') { 1197 | throw new TypeError('RegExp#exec called on incompatible receiver'); 1198 | } 1199 | return builtinExec.call(R, S); 1200 | }; 1201 | 1202 | 1203 | /***/ }), 1204 | 1205 | /***/ "75c4": 1206 | /***/ (function(module, exports) { 1207 | 1208 | var toString = {}.toString; 1209 | 1210 | module.exports = function (it) { 1211 | return toString.call(it).slice(8, -1); 1212 | }; 1213 | 1214 | 1215 | /***/ }), 1216 | 1217 | /***/ "7ddc": 1218 | /***/ (function(module, exports) { 1219 | 1220 | var core = module.exports = { version: '2.6.11' }; 1221 | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 1222 | 1223 | 1224 | /***/ }), 1225 | 1226 | /***/ "7e23": 1227 | /***/ (function(module, exports, __webpack_require__) { 1228 | 1229 | // getting tag from 19.1.3.6 Object.prototype.toString() 1230 | var cof = __webpack_require__("75c4"); 1231 | var TAG = __webpack_require__("cb3d")('toStringTag'); 1232 | // ES3 wrong here 1233 | var ARG = cof(function () { return arguments; }()) == 'Arguments'; 1234 | 1235 | // fallback for IE11 Script Access Denied error 1236 | var tryGet = function (it, key) { 1237 | try { 1238 | return it[key]; 1239 | } catch (e) { /* empty */ } 1240 | }; 1241 | 1242 | module.exports = function (it) { 1243 | var O, T, B; 1244 | return it === undefined ? 'Undefined' : it === null ? 'Null' 1245 | // @@toStringTag case 1246 | : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T 1247 | // builtinTag case 1248 | : ARG ? cof(O) 1249 | // ES3 arguments fallback 1250 | : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; 1251 | }; 1252 | 1253 | 1254 | /***/ }), 1255 | 1256 | /***/ "80a9": 1257 | /***/ (function(module, exports, __webpack_require__) { 1258 | 1259 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 1260 | var $keys = __webpack_require__("c2f7"); 1261 | var enumBugKeys = __webpack_require__("ceac"); 1262 | 1263 | module.exports = Object.keys || function keys(O) { 1264 | return $keys(O, enumBugKeys); 1265 | }; 1266 | 1267 | 1268 | /***/ }), 1269 | 1270 | /***/ "859b": 1271 | /***/ (function(module, exports, __webpack_require__) { 1272 | 1273 | // Works with __proto__ only. Old v8 can't work with null proto objects. 1274 | /* eslint-disable no-proto */ 1275 | var isObject = __webpack_require__("fb68"); 1276 | var anObject = __webpack_require__("69b3"); 1277 | var check = function (O, proto) { 1278 | anObject(O); 1279 | if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); 1280 | }; 1281 | module.exports = { 1282 | set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line 1283 | function (test, buggy, set) { 1284 | try { 1285 | set = __webpack_require__("4ce5")(Function.call, __webpack_require__("dcb7").f(Object.prototype, '__proto__').set, 2); 1286 | set(test, []); 1287 | buggy = !(test instanceof Array); 1288 | } catch (e) { buggy = true; } 1289 | return function setPrototypeOf(O, proto) { 1290 | check(O, proto); 1291 | if (buggy) O.__proto__ = proto; 1292 | else set(O, proto); 1293 | return O; 1294 | }; 1295 | }({}, false) : undefined), 1296 | check: check 1297 | }; 1298 | 1299 | 1300 | /***/ }), 1301 | 1302 | /***/ "86d4": 1303 | /***/ (function(module, exports, __webpack_require__) { 1304 | 1305 | var dP = __webpack_require__("064e"); 1306 | var createDesc = __webpack_require__("cc33"); 1307 | module.exports = __webpack_require__("149f") ? function (object, key, value) { 1308 | return dP.f(object, key, createDesc(1, value)); 1309 | } : function (object, key, value) { 1310 | object[key] = value; 1311 | return object; 1312 | }; 1313 | 1314 | 1315 | /***/ }), 1316 | 1317 | /***/ "8714": 1318 | /***/ (function(module, exports, __webpack_require__) { 1319 | 1320 | "use strict"; 1321 | 1322 | 1323 | var regexpFlags = __webpack_require__("f1fe"); 1324 | 1325 | var nativeExec = RegExp.prototype.exec; 1326 | // This always refers to the native implementation, because the 1327 | // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js, 1328 | // which loads this file before patching the method. 1329 | var nativeReplace = String.prototype.replace; 1330 | 1331 | var patchedExec = nativeExec; 1332 | 1333 | var LAST_INDEX = 'lastIndex'; 1334 | 1335 | var UPDATES_LAST_INDEX_WRONG = (function () { 1336 | var re1 = /a/, 1337 | re2 = /b*/g; 1338 | nativeExec.call(re1, 'a'); 1339 | nativeExec.call(re2, 'a'); 1340 | return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0; 1341 | })(); 1342 | 1343 | // nonparticipating capturing group, copied from es5-shim's String#split patch. 1344 | var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; 1345 | 1346 | var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED; 1347 | 1348 | if (PATCH) { 1349 | patchedExec = function exec(str) { 1350 | var re = this; 1351 | var lastIndex, reCopy, match, i; 1352 | 1353 | if (NPCG_INCLUDED) { 1354 | reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re)); 1355 | } 1356 | if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX]; 1357 | 1358 | match = nativeExec.call(re, str); 1359 | 1360 | if (UPDATES_LAST_INDEX_WRONG && match) { 1361 | re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex; 1362 | } 1363 | if (NPCG_INCLUDED && match && match.length > 1) { 1364 | // Fix browsers whose `exec` methods don't consistently return `undefined` 1365 | // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ 1366 | // eslint-disable-next-line no-loop-func 1367 | nativeReplace.call(match[0], reCopy, function () { 1368 | for (i = 1; i < arguments.length - 2; i++) { 1369 | if (arguments[i] === undefined) match[i] = undefined; 1370 | } 1371 | }); 1372 | } 1373 | 1374 | return match; 1375 | }; 1376 | } 1377 | 1378 | module.exports = patchedExec; 1379 | 1380 | 1381 | /***/ }), 1382 | 1383 | /***/ "8df1": 1384 | /***/ (function(module, exports, __webpack_require__) { 1385 | 1386 | var document = __webpack_require__("e7ad").document; 1387 | module.exports = document && document.documentElement; 1388 | 1389 | 1390 | /***/ }), 1391 | 1392 | /***/ "94b3": 1393 | /***/ (function(module, exports, __webpack_require__) { 1394 | 1395 | // 7.1.1 ToPrimitive(input [, PreferredType]) 1396 | var isObject = __webpack_require__("fb68"); 1397 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 1398 | // and the second argument - flag - preferred type is a string 1399 | module.exports = function (it, S) { 1400 | if (!isObject(it)) return it; 1401 | var fn, val; 1402 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 1403 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 1404 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 1405 | throw TypeError("Can't convert object to primitive value"); 1406 | }; 1407 | 1408 | 1409 | /***/ }), 1410 | 1411 | /***/ "9dd9": 1412 | /***/ (function(module, exports, __webpack_require__) { 1413 | 1414 | var global = __webpack_require__("e7ad"); 1415 | var inheritIfRequired = __webpack_require__("1e5b"); 1416 | var dP = __webpack_require__("064e").f; 1417 | var gOPN = __webpack_require__("2ea2").f; 1418 | var isRegExp = __webpack_require__("2fd4"); 1419 | var $flags = __webpack_require__("f1fe"); 1420 | var $RegExp = global.RegExp; 1421 | var Base = $RegExp; 1422 | var proto = $RegExp.prototype; 1423 | var re1 = /a/g; 1424 | var re2 = /a/g; 1425 | // "new" creates a new object, old webkit buggy here 1426 | var CORRECT_NEW = new $RegExp(re1) !== re1; 1427 | 1428 | if (__webpack_require__("149f") && (!CORRECT_NEW || __webpack_require__("238a")(function () { 1429 | re2[__webpack_require__("cb3d")('match')] = false; 1430 | // RegExp constructor can alter flags and IsRegExp works correct with @@match 1431 | return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i'; 1432 | }))) { 1433 | $RegExp = function RegExp(p, f) { 1434 | var tiRE = this instanceof $RegExp; 1435 | var piRE = isRegExp(p); 1436 | var fiU = f === undefined; 1437 | return !tiRE && piRE && p.constructor === $RegExp && fiU ? p 1438 | : inheritIfRequired(CORRECT_NEW 1439 | ? new Base(piRE && !fiU ? p.source : p, f) 1440 | : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f) 1441 | , tiRE ? this : proto, $RegExp); 1442 | }; 1443 | var proxy = function (key) { 1444 | key in $RegExp || dP($RegExp, key, { 1445 | configurable: true, 1446 | get: function () { return Base[key]; }, 1447 | set: function (it) { Base[key] = it; } 1448 | }); 1449 | }; 1450 | for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]); 1451 | proto.constructor = $RegExp; 1452 | $RegExp.prototype = proto; 1453 | __webpack_require__("bf16")(global, 'RegExp', $RegExp); 1454 | } 1455 | 1456 | __webpack_require__("1157")('RegExp'); 1457 | 1458 | 1459 | /***/ }), 1460 | 1461 | /***/ "aaba": 1462 | /***/ (function(module, exports, __webpack_require__) { 1463 | 1464 | "use strict"; 1465 | 1466 | var regexpExec = __webpack_require__("8714"); 1467 | __webpack_require__("e46b")({ 1468 | target: 'RegExp', 1469 | proto: true, 1470 | forced: regexpExec !== /./.exec 1471 | }, { 1472 | exec: regexpExec 1473 | }); 1474 | 1475 | 1476 | /***/ }), 1477 | 1478 | /***/ "b3a6": 1479 | /***/ (function(module, exports, __webpack_require__) { 1480 | 1481 | // false -> Array#indexOf 1482 | // true -> Array#includes 1483 | var toIObject = __webpack_require__("09b9"); 1484 | var toLength = __webpack_require__("eafa"); 1485 | var toAbsoluteIndex = __webpack_require__("f58a"); 1486 | module.exports = function (IS_INCLUDES) { 1487 | return function ($this, el, fromIndex) { 1488 | var O = toIObject($this); 1489 | var length = toLength(O.length); 1490 | var index = toAbsoluteIndex(fromIndex, length); 1491 | var value; 1492 | // Array#includes uses SameValueZero equality algorithm 1493 | // eslint-disable-next-line no-self-compare 1494 | if (IS_INCLUDES && el != el) while (length > index) { 1495 | value = O[index++]; 1496 | // eslint-disable-next-line no-self-compare 1497 | if (value != value) return true; 1498 | // Array#indexOf ignores holes, Array#includes - not 1499 | } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 1500 | if (O[index] === el) return IS_INCLUDES || index || 0; 1501 | } return !IS_INCLUDES && -1; 1502 | }; 1503 | }; 1504 | 1505 | 1506 | /***/ }), 1507 | 1508 | /***/ "bf16": 1509 | /***/ (function(module, exports, __webpack_require__) { 1510 | 1511 | var global = __webpack_require__("e7ad"); 1512 | var hide = __webpack_require__("86d4"); 1513 | var has = __webpack_require__("e042"); 1514 | var SRC = __webpack_require__("ec45")('src'); 1515 | var $toString = __webpack_require__("d07e"); 1516 | var TO_STRING = 'toString'; 1517 | var TPL = ('' + $toString).split(TO_STRING); 1518 | 1519 | __webpack_require__("7ddc").inspectSource = function (it) { 1520 | return $toString.call(it); 1521 | }; 1522 | 1523 | (module.exports = function (O, key, val, safe) { 1524 | var isFunction = typeof val == 'function'; 1525 | if (isFunction) has(val, 'name') || hide(val, 'name', key); 1526 | if (O[key] === val) return; 1527 | if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); 1528 | if (O === global) { 1529 | O[key] = val; 1530 | } else if (!safe) { 1531 | delete O[key]; 1532 | hide(O, key, val); 1533 | } else if (O[key]) { 1534 | O[key] = val; 1535 | } else { 1536 | hide(O, key, val); 1537 | } 1538 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 1539 | })(Function.prototype, TO_STRING, function toString() { 1540 | return typeof this == 'function' && this[SRC] || $toString.call(this); 1541 | }); 1542 | 1543 | 1544 | /***/ }), 1545 | 1546 | /***/ "bfe7": 1547 | /***/ (function(module, exports, __webpack_require__) { 1548 | 1549 | var isObject = __webpack_require__("fb68"); 1550 | var document = __webpack_require__("e7ad").document; 1551 | // typeof document.createElement is 'object' in old IE 1552 | var is = isObject(document) && isObject(document.createElement); 1553 | module.exports = function (it) { 1554 | return is ? document.createElement(it) : {}; 1555 | }; 1556 | 1557 | 1558 | /***/ }), 1559 | 1560 | /***/ "c2f7": 1561 | /***/ (function(module, exports, __webpack_require__) { 1562 | 1563 | var has = __webpack_require__("e042"); 1564 | var toIObject = __webpack_require__("09b9"); 1565 | var arrayIndexOf = __webpack_require__("b3a6")(false); 1566 | var IE_PROTO = __webpack_require__("56f2")('IE_PROTO'); 1567 | 1568 | module.exports = function (object, names) { 1569 | var O = toIObject(object); 1570 | var i = 0; 1571 | var result = []; 1572 | var key; 1573 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 1574 | // Don't enum bug & hidden keys 1575 | while (names.length > i) if (has(O, key = names[i++])) { 1576 | ~arrayIndexOf(result, key) || result.push(key); 1577 | } 1578 | return result; 1579 | }; 1580 | 1581 | 1582 | /***/ }), 1583 | 1584 | /***/ "cb3d": 1585 | /***/ (function(module, exports, __webpack_require__) { 1586 | 1587 | var store = __webpack_require__("6798")('wks'); 1588 | var uid = __webpack_require__("ec45"); 1589 | var Symbol = __webpack_require__("e7ad").Symbol; 1590 | var USE_SYMBOL = typeof Symbol == 'function'; 1591 | 1592 | var $exports = module.exports = function (name) { 1593 | return store[name] || (store[name] = 1594 | USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); 1595 | }; 1596 | 1597 | $exports.store = store; 1598 | 1599 | 1600 | /***/ }), 1601 | 1602 | /***/ "cc33": 1603 | /***/ (function(module, exports) { 1604 | 1605 | module.exports = function (bitmap, value) { 1606 | return { 1607 | enumerable: !(bitmap & 1), 1608 | configurable: !(bitmap & 2), 1609 | writable: !(bitmap & 4), 1610 | value: value 1611 | }; 1612 | }; 1613 | 1614 | 1615 | /***/ }), 1616 | 1617 | /***/ "ceac": 1618 | /***/ (function(module, exports) { 1619 | 1620 | // IE 8- don't enum bug keys 1621 | module.exports = ( 1622 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 1623 | ).split(','); 1624 | 1625 | 1626 | /***/ }), 1627 | 1628 | /***/ "d07e": 1629 | /***/ (function(module, exports, __webpack_require__) { 1630 | 1631 | module.exports = __webpack_require__("6798")('native-function-to-string', Function.toString); 1632 | 1633 | 1634 | /***/ }), 1635 | 1636 | /***/ "da6d": 1637 | /***/ (function(module, exports) { 1638 | 1639 | module.exports = {}; 1640 | 1641 | 1642 | /***/ }), 1643 | 1644 | /***/ "db6b": 1645 | /***/ (function(module, exports, __webpack_require__) { 1646 | 1647 | module.exports = !__webpack_require__("149f") && !__webpack_require__("238a")(function () { 1648 | return Object.defineProperty(__webpack_require__("bfe7")('div'), 'a', { get: function () { return 7; } }).a != 7; 1649 | }); 1650 | 1651 | 1652 | /***/ }), 1653 | 1654 | /***/ "dcb7": 1655 | /***/ (function(module, exports, __webpack_require__) { 1656 | 1657 | var pIE = __webpack_require__("4f18"); 1658 | var createDesc = __webpack_require__("cc33"); 1659 | var toIObject = __webpack_require__("09b9"); 1660 | var toPrimitive = __webpack_require__("94b3"); 1661 | var has = __webpack_require__("e042"); 1662 | var IE8_DOM_DEFINE = __webpack_require__("db6b"); 1663 | var gOPD = Object.getOwnPropertyDescriptor; 1664 | 1665 | exports.f = __webpack_require__("149f") ? gOPD : function getOwnPropertyDescriptor(O, P) { 1666 | O = toIObject(O); 1667 | P = toPrimitive(P, true); 1668 | if (IE8_DOM_DEFINE) try { 1669 | return gOPD(O, P); 1670 | } catch (e) { /* empty */ } 1671 | if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 1672 | }; 1673 | 1674 | 1675 | /***/ }), 1676 | 1677 | /***/ "e005": 1678 | /***/ (function(module, exports, __webpack_require__) { 1679 | 1680 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 1681 | var anObject = __webpack_require__("69b3"); 1682 | var dPs = __webpack_require__("0dc8"); 1683 | var enumBugKeys = __webpack_require__("ceac"); 1684 | var IE_PROTO = __webpack_require__("56f2")('IE_PROTO'); 1685 | var Empty = function () { /* empty */ }; 1686 | var PROTOTYPE = 'prototype'; 1687 | 1688 | // Create object with fake `null` prototype: use iframe Object with cleared prototype 1689 | var createDict = function () { 1690 | // Thrash, waste and sodomy: IE GC bug 1691 | var iframe = __webpack_require__("bfe7")('iframe'); 1692 | var i = enumBugKeys.length; 1693 | var lt = '<'; 1694 | var gt = '>'; 1695 | var iframeDocument; 1696 | iframe.style.display = 'none'; 1697 | __webpack_require__("8df1").appendChild(iframe); 1698 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url 1699 | // createDict = iframe.contentWindow.Object; 1700 | // html.removeChild(iframe); 1701 | iframeDocument = iframe.contentWindow.document; 1702 | iframeDocument.open(); 1703 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 1704 | iframeDocument.close(); 1705 | createDict = iframeDocument.F; 1706 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 1707 | return createDict(); 1708 | }; 1709 | 1710 | module.exports = Object.create || function create(O, Properties) { 1711 | var result; 1712 | if (O !== null) { 1713 | Empty[PROTOTYPE] = anObject(O); 1714 | result = new Empty(); 1715 | Empty[PROTOTYPE] = null; 1716 | // add "__proto__" for Object.getPrototypeOf polyfill 1717 | result[IE_PROTO] = O; 1718 | } else result = createDict(); 1719 | return Properties === undefined ? result : dPs(result, Properties); 1720 | }; 1721 | 1722 | 1723 | /***/ }), 1724 | 1725 | /***/ "e042": 1726 | /***/ (function(module, exports) { 1727 | 1728 | var hasOwnProperty = {}.hasOwnProperty; 1729 | module.exports = function (it, key) { 1730 | return hasOwnProperty.call(it, key); 1731 | }; 1732 | 1733 | 1734 | /***/ }), 1735 | 1736 | /***/ "e118": 1737 | /***/ (function(module, exports, __webpack_require__) { 1738 | 1739 | "use strict"; 1740 | 1741 | // 19.1.2.1 Object.assign(target, source, ...) 1742 | var DESCRIPTORS = __webpack_require__("149f"); 1743 | var getKeys = __webpack_require__("80a9"); 1744 | var gOPS = __webpack_require__("2f77"); 1745 | var pIE = __webpack_require__("4f18"); 1746 | var toObject = __webpack_require__("008a"); 1747 | var IObject = __webpack_require__("224c"); 1748 | var $assign = Object.assign; 1749 | 1750 | // should work with symbols and should have deterministic property order (V8 bug) 1751 | module.exports = !$assign || __webpack_require__("238a")(function () { 1752 | var A = {}; 1753 | var B = {}; 1754 | // eslint-disable-next-line no-undef 1755 | var S = Symbol(); 1756 | var K = 'abcdefghijklmnopqrst'; 1757 | A[S] = 7; 1758 | K.split('').forEach(function (k) { B[k] = k; }); 1759 | return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; 1760 | }) ? function assign(target, source) { // eslint-disable-line no-unused-vars 1761 | var T = toObject(target); 1762 | var aLen = arguments.length; 1763 | var index = 1; 1764 | var getSymbols = gOPS.f; 1765 | var isEnum = pIE.f; 1766 | while (aLen > index) { 1767 | var S = IObject(arguments[index++]); 1768 | var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); 1769 | var length = keys.length; 1770 | var j = 0; 1771 | var key; 1772 | while (length > j) { 1773 | key = keys[j++]; 1774 | if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key]; 1775 | } 1776 | } return T; 1777 | } : $assign; 1778 | 1779 | 1780 | /***/ }), 1781 | 1782 | /***/ "e44b": 1783 | /***/ (function(module, exports, __webpack_require__) { 1784 | 1785 | "use strict"; 1786 | 1787 | var addToUnscopables = __webpack_require__("0e8b"); 1788 | var step = __webpack_require__("475d"); 1789 | var Iterators = __webpack_require__("da6d"); 1790 | var toIObject = __webpack_require__("09b9"); 1791 | 1792 | // 22.1.3.4 Array.prototype.entries() 1793 | // 22.1.3.13 Array.prototype.keys() 1794 | // 22.1.3.29 Array.prototype.values() 1795 | // 22.1.3.30 Array.prototype[@@iterator]() 1796 | module.exports = __webpack_require__("492d")(Array, 'Array', function (iterated, kind) { 1797 | this._t = toIObject(iterated); // target 1798 | this._i = 0; // next index 1799 | this._k = kind; // kind 1800 | // 22.1.5.2.1 %ArrayIteratorPrototype%.next() 1801 | }, function () { 1802 | var O = this._t; 1803 | var kind = this._k; 1804 | var index = this._i++; 1805 | if (!O || index >= O.length) { 1806 | this._t = undefined; 1807 | return step(1); 1808 | } 1809 | if (kind == 'keys') return step(0, index); 1810 | if (kind == 'values') return step(0, O[index]); 1811 | return step(0, [index, O[index]]); 1812 | }, 'values'); 1813 | 1814 | // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 1815 | Iterators.Arguments = Iterators.Array; 1816 | 1817 | addToUnscopables('keys'); 1818 | addToUnscopables('values'); 1819 | addToUnscopables('entries'); 1820 | 1821 | 1822 | /***/ }), 1823 | 1824 | /***/ "e46b": 1825 | /***/ (function(module, exports, __webpack_require__) { 1826 | 1827 | var global = __webpack_require__("e7ad"); 1828 | var core = __webpack_require__("7ddc"); 1829 | var hide = __webpack_require__("86d4"); 1830 | var redefine = __webpack_require__("bf16"); 1831 | var ctx = __webpack_require__("4ce5"); 1832 | var PROTOTYPE = 'prototype'; 1833 | 1834 | var $export = function (type, name, source) { 1835 | var IS_FORCED = type & $export.F; 1836 | var IS_GLOBAL = type & $export.G; 1837 | var IS_STATIC = type & $export.S; 1838 | var IS_PROTO = type & $export.P; 1839 | var IS_BIND = type & $export.B; 1840 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; 1841 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 1842 | var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); 1843 | var key, own, out, exp; 1844 | if (IS_GLOBAL) source = name; 1845 | for (key in source) { 1846 | // contains in native 1847 | own = !IS_FORCED && target && target[key] !== undefined; 1848 | // export native or passed 1849 | out = (own ? target : source)[key]; 1850 | // bind timers to global for call from export context 1851 | exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 1852 | // extend global 1853 | if (target) redefine(target, key, out, type & $export.U); 1854 | // export 1855 | if (exports[key] != out) hide(exports, key, exp); 1856 | if (IS_PROTO && expProto[key] != out) expProto[key] = out; 1857 | } 1858 | }; 1859 | global.core = core; 1860 | // type bitmap 1861 | $export.F = 1; // forced 1862 | $export.G = 2; // global 1863 | $export.S = 4; // static 1864 | $export.P = 8; // proto 1865 | $export.B = 16; // bind 1866 | $export.W = 32; // wrap 1867 | $export.U = 64; // safe 1868 | $export.R = 128; // real proto method for `library` 1869 | module.exports = $export; 1870 | 1871 | 1872 | /***/ }), 1873 | 1874 | /***/ "e67d": 1875 | /***/ (function(module, exports) { 1876 | 1877 | // document.currentScript polyfill by Adam Miller 1878 | 1879 | // MIT license 1880 | 1881 | (function(document){ 1882 | var currentScript = "currentScript", 1883 | scripts = document.getElementsByTagName('script'); // Live NodeList collection 1884 | 1885 | // If browser needs currentScript polyfill, add get currentScript() to the document object 1886 | if (!(currentScript in document)) { 1887 | Object.defineProperty(document, currentScript, { 1888 | get: function(){ 1889 | 1890 | // IE 6-10 supports script readyState 1891 | // IE 10+ support stack trace 1892 | try { throw new Error(); } 1893 | catch (err) { 1894 | 1895 | // Find the second match for the "at" string to get file src url from stack. 1896 | // Specifically works with the format of stack traces in IE. 1897 | var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1]; 1898 | 1899 | // For all scripts on the page, if src matches or if ready state is interactive, return the script tag 1900 | for(i in scripts){ 1901 | if(scripts[i].src == res || scripts[i].readyState == "interactive"){ 1902 | return scripts[i]; 1903 | } 1904 | } 1905 | 1906 | // If no match, return null 1907 | return null; 1908 | } 1909 | } 1910 | }); 1911 | } 1912 | })(document); 1913 | 1914 | 1915 | /***/ }), 1916 | 1917 | /***/ "e754": 1918 | /***/ (function(module, exports, __webpack_require__) { 1919 | 1920 | "use strict"; 1921 | 1922 | var at = __webpack_require__("fc81")(true); 1923 | 1924 | // `AdvanceStringIndex` abstract operation 1925 | // https://tc39.github.io/ecma262/#sec-advancestringindex 1926 | module.exports = function (S, index, unicode) { 1927 | return index + (unicode ? at(S, index).length : 1); 1928 | }; 1929 | 1930 | 1931 | /***/ }), 1932 | 1933 | /***/ "e7ad": 1934 | /***/ (function(module, exports) { 1935 | 1936 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 1937 | var global = module.exports = typeof window != 'undefined' && window.Math == Math 1938 | ? window : typeof self != 'undefined' && self.Math == Math ? self 1939 | // eslint-disable-next-line no-new-func 1940 | : Function('return this')(); 1941 | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 1942 | 1943 | 1944 | /***/ }), 1945 | 1946 | /***/ "eafa": 1947 | /***/ (function(module, exports, __webpack_require__) { 1948 | 1949 | // 7.1.15 ToLength 1950 | var toInteger = __webpack_require__("ee21"); 1951 | var min = Math.min; 1952 | module.exports = function (it) { 1953 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 1954 | }; 1955 | 1956 | 1957 | /***/ }), 1958 | 1959 | /***/ "ec45": 1960 | /***/ (function(module, exports) { 1961 | 1962 | var id = 0; 1963 | var px = Math.random(); 1964 | module.exports = function (key) { 1965 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 1966 | }; 1967 | 1968 | 1969 | /***/ }), 1970 | 1971 | /***/ "ee21": 1972 | /***/ (function(module, exports) { 1973 | 1974 | // 7.1.4 ToInteger 1975 | var ceil = Math.ceil; 1976 | var floor = Math.floor; 1977 | module.exports = function (it) { 1978 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 1979 | }; 1980 | 1981 | 1982 | /***/ }), 1983 | 1984 | /***/ "f1fe": 1985 | /***/ (function(module, exports, __webpack_require__) { 1986 | 1987 | "use strict"; 1988 | 1989 | // 21.2.5.3 get RegExp.prototype.flags 1990 | var anObject = __webpack_require__("69b3"); 1991 | module.exports = function () { 1992 | var that = anObject(this); 1993 | var result = ''; 1994 | if (that.global) result += 'g'; 1995 | if (that.ignoreCase) result += 'i'; 1996 | if (that.multiline) result += 'm'; 1997 | if (that.unicode) result += 'u'; 1998 | if (that.sticky) result += 'y'; 1999 | return result; 2000 | }; 2001 | 2002 | 2003 | /***/ }), 2004 | 2005 | /***/ "f548": 2006 | /***/ (function(module, exports, __webpack_require__) { 2007 | 2008 | "use strict"; 2009 | 2010 | 2011 | var anObject = __webpack_require__("69b3"); 2012 | var toObject = __webpack_require__("008a"); 2013 | var toLength = __webpack_require__("eafa"); 2014 | var toInteger = __webpack_require__("ee21"); 2015 | var advanceStringIndex = __webpack_require__("e754"); 2016 | var regExpExec = __webpack_require__("7108"); 2017 | var max = Math.max; 2018 | var min = Math.min; 2019 | var floor = Math.floor; 2020 | var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g; 2021 | var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g; 2022 | 2023 | var maybeToString = function (it) { 2024 | return it === undefined ? it : String(it); 2025 | }; 2026 | 2027 | // @@replace logic 2028 | __webpack_require__("0aed")('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) { 2029 | return [ 2030 | // `String.prototype.replace` method 2031 | // https://tc39.github.io/ecma262/#sec-string.prototype.replace 2032 | function replace(searchValue, replaceValue) { 2033 | var O = defined(this); 2034 | var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; 2035 | return fn !== undefined 2036 | ? fn.call(searchValue, O, replaceValue) 2037 | : $replace.call(String(O), searchValue, replaceValue); 2038 | }, 2039 | // `RegExp.prototype[@@replace]` method 2040 | // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace 2041 | function (regexp, replaceValue) { 2042 | var res = maybeCallNative($replace, regexp, this, replaceValue); 2043 | if (res.done) return res.value; 2044 | 2045 | var rx = anObject(regexp); 2046 | var S = String(this); 2047 | var functionalReplace = typeof replaceValue === 'function'; 2048 | if (!functionalReplace) replaceValue = String(replaceValue); 2049 | var global = rx.global; 2050 | if (global) { 2051 | var fullUnicode = rx.unicode; 2052 | rx.lastIndex = 0; 2053 | } 2054 | var results = []; 2055 | while (true) { 2056 | var result = regExpExec(rx, S); 2057 | if (result === null) break; 2058 | results.push(result); 2059 | if (!global) break; 2060 | var matchStr = String(result[0]); 2061 | if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); 2062 | } 2063 | var accumulatedResult = ''; 2064 | var nextSourcePosition = 0; 2065 | for (var i = 0; i < results.length; i++) { 2066 | result = results[i]; 2067 | var matched = String(result[0]); 2068 | var position = max(min(toInteger(result.index), S.length), 0); 2069 | var captures = []; 2070 | // NOTE: This is equivalent to 2071 | // captures = result.slice(1).map(maybeToString) 2072 | // but for some reason `nativeSlice.call(result, 1, result.length)` (called in 2073 | // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and 2074 | // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. 2075 | for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j])); 2076 | var namedCaptures = result.groups; 2077 | if (functionalReplace) { 2078 | var replacerArgs = [matched].concat(captures, position, S); 2079 | if (namedCaptures !== undefined) replacerArgs.push(namedCaptures); 2080 | var replacement = String(replaceValue.apply(undefined, replacerArgs)); 2081 | } else { 2082 | replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); 2083 | } 2084 | if (position >= nextSourcePosition) { 2085 | accumulatedResult += S.slice(nextSourcePosition, position) + replacement; 2086 | nextSourcePosition = position + matched.length; 2087 | } 2088 | } 2089 | return accumulatedResult + S.slice(nextSourcePosition); 2090 | } 2091 | ]; 2092 | 2093 | // https://tc39.github.io/ecma262/#sec-getsubstitution 2094 | function getSubstitution(matched, str, position, captures, namedCaptures, replacement) { 2095 | var tailPos = position + matched.length; 2096 | var m = captures.length; 2097 | var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; 2098 | if (namedCaptures !== undefined) { 2099 | namedCaptures = toObject(namedCaptures); 2100 | symbols = SUBSTITUTION_SYMBOLS; 2101 | } 2102 | return $replace.call(replacement, symbols, function (match, ch) { 2103 | var capture; 2104 | switch (ch.charAt(0)) { 2105 | case '$': return '$'; 2106 | case '&': return matched; 2107 | case '`': return str.slice(0, position); 2108 | case "'": return str.slice(tailPos); 2109 | case '<': 2110 | capture = namedCaptures[ch.slice(1, -1)]; 2111 | break; 2112 | default: // \d\d? 2113 | var n = +ch; 2114 | if (n === 0) return match; 2115 | if (n > m) { 2116 | var f = floor(n / 10); 2117 | if (f === 0) return match; 2118 | if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1); 2119 | return match; 2120 | } 2121 | capture = captures[n - 1]; 2122 | } 2123 | return capture === undefined ? '' : capture; 2124 | }); 2125 | } 2126 | }); 2127 | 2128 | 2129 | /***/ }), 2130 | 2131 | /***/ "f58a": 2132 | /***/ (function(module, exports, __webpack_require__) { 2133 | 2134 | var toInteger = __webpack_require__("ee21"); 2135 | var max = Math.max; 2136 | var min = Math.min; 2137 | module.exports = function (index, length) { 2138 | index = toInteger(index); 2139 | return index < 0 ? max(index + length, 0) : min(index, length); 2140 | }; 2141 | 2142 | 2143 | /***/ }), 2144 | 2145 | /***/ "f6b4": 2146 | /***/ (function(module, exports) { 2147 | 2148 | // 7.2.1 RequireObjectCoercible(argument) 2149 | module.exports = function (it) { 2150 | if (it == undefined) throw TypeError("Can't call method on " + it); 2151 | return it; 2152 | }; 2153 | 2154 | 2155 | /***/ }), 2156 | 2157 | /***/ "fb68": 2158 | /***/ (function(module, exports) { 2159 | 2160 | module.exports = function (it) { 2161 | return typeof it === 'object' ? it !== null : typeof it === 'function'; 2162 | }; 2163 | 2164 | 2165 | /***/ }), 2166 | 2167 | /***/ "fc81": 2168 | /***/ (function(module, exports, __webpack_require__) { 2169 | 2170 | var toInteger = __webpack_require__("ee21"); 2171 | var defined = __webpack_require__("f6b4"); 2172 | // true -> String#at 2173 | // false -> String#codePointAt 2174 | module.exports = function (TO_STRING) { 2175 | return function (that, pos) { 2176 | var s = String(defined(that)); 2177 | var i = toInteger(pos); 2178 | var l = s.length; 2179 | var a, b; 2180 | if (i < 0 || i >= l) return TO_STRING ? '' : undefined; 2181 | a = s.charCodeAt(i); 2182 | return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff 2183 | ? TO_STRING ? s.charAt(i) : a 2184 | : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; 2185 | }; 2186 | }; 2187 | 2188 | 2189 | /***/ }) 2190 | 2191 | /******/ }); 2192 | }); 2193 | //# sourceMappingURL=tag-textarea.umd.js.map --------------------------------------------------------------------------------