@kne-components/entry-selector 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +66 -0
- package/build/favicon.svg +1 -0
- package/build/index.html +1 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +25 -0
- package/build/remoteEntry.js +2 -0
- package/build/remoteEntry.js.map +1 -0
- package/build/static/css/147.5f5507de.chunk.css +2 -0
- package/build/static/css/147.5f5507de.chunk.css.map +1 -0
- package/build/static/css/198.5fab707c.chunk.css +12 -0
- package/build/static/css/198.5fab707c.chunk.css.map +1 -0
- package/build/static/css/268.2ba4e799.chunk.css +2 -0
- package/build/static/css/268.2ba4e799.chunk.css.map +1 -0
- package/build/static/css/528.5f5507de.chunk.css +2 -0
- package/build/static/css/528.5f5507de.chunk.css.map +1 -0
- package/build/static/js/147.b7296406.chunk.js +2 -0
- package/build/static/js/147.b7296406.chunk.js.map +1 -0
- package/build/static/js/198.9a6dc703.chunk.js +2 -0
- package/build/static/js/198.9a6dc703.chunk.js.map +1 -0
- package/build/static/js/201.4eb68ba0.chunk.js +2 -0
- package/build/static/js/201.4eb68ba0.chunk.js.map +1 -0
- package/build/static/js/233.f759de3e.chunk.js +3 -0
- package/build/static/js/233.f759de3e.chunk.js.LICENSE.txt +9 -0
- package/build/static/js/233.f759de3e.chunk.js.map +1 -0
- package/build/static/js/245.a0e72745.chunk.js +3 -0
- package/build/static/js/245.a0e72745.chunk.js.LICENSE.txt +32 -0
- package/build/static/js/245.a0e72745.chunk.js.map +1 -0
- package/build/static/js/257.af7e95e7.chunk.js +2 -0
- package/build/static/js/257.af7e95e7.chunk.js.map +1 -0
- package/build/static/js/268.c23e0423.chunk.js +2 -0
- package/build/static/js/268.c23e0423.chunk.js.map +1 -0
- package/build/static/js/351.a6a1cf94.chunk.js +2 -0
- package/build/static/js/351.a6a1cf94.chunk.js.map +1 -0
- package/build/static/js/379.d5ff1a44.chunk.js +2 -0
- package/build/static/js/379.d5ff1a44.chunk.js.map +1 -0
- package/build/static/js/446.a1cbb30c.chunk.js +2 -0
- package/build/static/js/446.a1cbb30c.chunk.js.map +1 -0
- package/build/static/js/467.149446d1.chunk.js +2 -0
- package/build/static/js/467.149446d1.chunk.js.map +1 -0
- package/build/static/js/496.13710a2d.chunk.js +2 -0
- package/build/static/js/496.13710a2d.chunk.js.map +1 -0
- package/build/static/js/528.f101941f.chunk.js +2 -0
- package/build/static/js/528.f101941f.chunk.js.map +1 -0
- package/build/static/js/548.0e769c3d.chunk.js +3 -0
- package/build/static/js/548.0e769c3d.chunk.js.LICENSE.txt +8 -0
- package/build/static/js/548.0e769c3d.chunk.js.map +1 -0
- package/build/static/js/612.334ab6cb.chunk.js +3 -0
- package/build/static/js/612.334ab6cb.chunk.js.LICENSE.txt +11 -0
- package/build/static/js/612.334ab6cb.chunk.js.map +1 -0
- package/build/static/js/638.c9a41e9a.chunk.js +2 -0
- package/build/static/js/638.c9a41e9a.chunk.js.map +1 -0
- package/build/static/js/705.cf45bd4d.chunk.js +2 -0
- package/build/static/js/705.cf45bd4d.chunk.js.map +1 -0
- package/build/static/js/811.04f7d274.chunk.js +3 -0
- package/build/static/js/811.04f7d274.chunk.js.LICENSE.txt +6 -0
- package/build/static/js/811.04f7d274.chunk.js.map +1 -0
- package/build/static/js/84.84447a7c.chunk.js +2 -0
- package/build/static/js/84.84447a7c.chunk.js.map +1 -0
- package/build/static/js/848.97db1919.chunk.js +3 -0
- package/build/static/js/848.97db1919.chunk.js.LICENSE.txt +19 -0
- package/build/static/js/848.97db1919.chunk.js.map +1 -0
- package/build/static/js/856.1880e64e.chunk.js +2 -0
- package/build/static/js/856.1880e64e.chunk.js.map +1 -0
- package/build/static/js/959.85e29a29.chunk.js +3 -0
- package/build/static/js/959.85e29a29.chunk.js.LICENSE.txt +9 -0
- package/build/static/js/959.85e29a29.chunk.js.map +1 -0
- package/build/static/js/97.5dcb82cd.chunk.js +2 -0
- package/build/static/js/97.5dcb82cd.chunk.js.map +1 -0
- package/build/static/js/main.ea2b2f7b.js +2 -0
- package/build/static/js/main.ea2b2f7b.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_entry_selector=self.webpackChunk_kne_components_entry_selector||[]).push([[257,638],{39638:(e,t,n)=>{n.r(t),n.d(t,{Consumer:()=>a,Global:()=>p,GlobalSetting:()=>h,GlobalValue:()=>C,Preset:()=>g,Provider:()=>u,context:()=>s,createContext:()=>o,default:()=>s,useContext:()=>c,useGlobalContext:()=>i,useGlobalValue:()=>v,usePreset:()=>f});var r=n(94922),l=n.n(r);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,r.createContext)(e),{Provider:n,Consumer:l}=t;return{context:t,Provider:n,Consumer:l,useContext:()=>(0,r.useContext)(t)}},s=o({}),{Provider:u,Consumer:a,useContext:c}=s,i=c,f=()=>{const e=c();return Object.assign({},{apis:{}},null==e?void 0:e.preset)};function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(null,arguments)}const d=["preset","children"],p=e=>{let{preset:t,children:n}=e,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,d);const[s,a]=(0,r.useState)({}),c=(0,r.useCallback)((e,t)=>{a(n=>Object.assign({},n,{[e]:"function"===typeof t?t(n[e]):t}))},[]);return l().createElement(u,{value:b({},o,{global:s,preset:t,setGlobal:a,setGlobalWithKey:c})},n)},h=e=>{let{loader:t,needReady:n=!0,children:l}=e;const[o,s]=(0,r.useState)(!1),{global:u,setGlobal:a}=c(),i=(0,r.useRef)(null),f=(0,r.useRef)(t);return(0,r.useEffect)(()=>{f.current().then(e=>{a(t=>{const n=Object.assign({},t,e);return i.current=n,n})})},[]),(0,r.useEffect)(()=>{u===i.current&&s(!0)},[u]),n&&!o?null:l},v=e=>{const{global:t}=c();return t[e]},C=e=>{let{globalKey:t,children:n}=e;return n({value:v(t)})},g=e=>{let{children:t}=e;return t(f())}}}]);
|
|
2
|
+
//# sourceMappingURL=257.af7e95e7.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/257.af7e95e7.chunk.js","mappings":"uZAIA,MAAMA,EAAgB,WAAoB,IAAnBC,EAASC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAC,EAClC,MAAMG,GAAUC,EAAAA,EAAAA,eAAmBL,IAC7B,SAAEM,EAAQ,SAAEC,GAAaH,EAG/B,MAAO,CAAEA,UAASE,WAAUC,WAAUC,WAFnBA,KAAMC,EAAAA,EAAAA,YAAgBL,GAG3C,ECRaA,EAAUL,EAAc,CAAC,IAEzB,SAAEO,EAAQ,SAAEC,EAAQ,WAAEC,GAAeJ,EAErCM,EAAmBF,EAEnBG,EAAYA,KACvB,MAAMC,EAAeJ,IACrB,OAAOK,OAAOC,OAAO,CAAC,EAAG,CAAEC,KAAM,CAAC,GAAiB,MAAZH,OAAY,EAAZA,EAAcI,S,sPCPjDC,EAASC,IAAkC,IAAjC,OAACF,EAAM,SAAEG,GAAmBD,EAANE,E,2IAAKC,CAAAH,EAAAI,GACvC,MAAOC,EAAQC,IAAaC,EAAAA,EAAAA,UAAS,CAAC,GAEhCC,GAAmBC,EAAAA,EAAAA,aAAY,CAACC,EAAWC,KAC7CL,EAAWD,GACAV,OAAOC,OAAO,CAAC,EAAGS,EAAQ,CAAC,CAACK,GAA6B,oBAAVC,EAAuBA,EAAMN,EAAOK,IAAcC,MAE7G,IAEH,OAAOC,IAAAA,cAACxB,EAAQ,CAACuB,MAAKE,EAAA,GAAMX,EAAO,CAAAG,SAAQP,SAAQQ,YAAWE,sBACzDP,IAIIa,EAAgBC,IAA0C,IAAzC,OAACC,EAAQC,UAAAC,GAAY,EAAI,SAAEjB,GAASc,EAC9D,MAAOI,EAAQC,IAAab,EAAAA,EAAAA,WAAS,IAC/B,OAACF,EAAM,UAAEC,GAAahB,IACtB+B,GAAYC,EAAAA,EAAAA,QAAO,MACnBC,GAAYD,EAAAA,EAAAA,QAAON,GAiBzB,OAhBAQ,EAAAA,EAAAA,WAAU,KACND,EAAUE,UAAUC,KAAMC,IACtBrB,EAAWD,IACP,MAAMuB,EAAajC,OAAOC,OAAO,CAAC,EAAGS,EAAQsB,GAE7C,OADAN,EAAUI,QAAUG,EACbA,OAGhB,KAEHJ,EAAAA,EAAAA,WAAU,KACFnB,IAAWgB,EAAUI,SACrBL,GAAU,IAEf,CAACf,IAEAa,IAAcC,EACP,KAGJlB,GAGE4B,EAAkBnB,IAC3B,MAAM,OAACL,GAAUf,IACjB,OAAOe,EAAOK,IAGLoB,EAAcC,IAA2B,IAA1B,UAACrB,EAAS,SAAET,GAAS8B,EAE7C,OAAO9B,EAAS,CAACU,MADHkB,EAAenB,MAIpBsB,EAASC,IAAgB,IAAf,SAAChC,GAASgC,EAE7B,OAAOhC,EADQR,K","sources":["../../node_modules/@kne/global-context/src/createContext.js","../../node_modules/@kne/global-context/src/globalContext.js","../../node_modules/@kne/global-context/src/Global.js"],"sourcesContent":["import {\n createContext as createReactContext, useContext as useReactContext\n} from \"react\";\n\nconst createContext = (initValue = {}) => {\n const context = createReactContext(initValue);\n const { Provider, Consumer } = context;\n const useContext = () => useReactContext(context);\n\n return { context, Provider, Consumer, useContext };\n};\n\nexport default createContext;\n","import createContext from \"./createContext\";\n\nexport const context = createContext({});\n\nexport const { Provider, Consumer, useContext } = context;\n\nexport const useGlobalContext = useContext;\n\nexport const usePreset = () => {\n const contextValue = useContext();\n return Object.assign({}, { apis: {} }, contextValue?.preset);\n};\n\nexport default context;\n","import React, {useState, useCallback, useEffect, useRef} from \"react\";\nimport {Provider, useContext, usePreset} from \"./globalContext\";\n\nconst Global = ({preset, children, ...props}) => {\n const [global, setGlobal] = useState({});\n\n const setGlobalWithKey = useCallback((globalKey, value) => {\n setGlobal((global) => {\n return Object.assign({}, global, {[globalKey]: typeof value === \"function\" ? value(global[globalKey]) : value});\n });\n }, []);\n\n return <Provider value={{...props, global, preset, setGlobal, setGlobalWithKey}}>\n {children}\n </Provider>;\n};\n\nexport const GlobalSetting = ({loader, needReady = true, children}) => {\n const [loaded, setLoaded] = useState(false);\n const {global, setGlobal} = useContext();\n const globalRef = useRef(null);\n const loaderRef = useRef(loader);\n useEffect(() => {\n loaderRef.current().then((target) => {\n setGlobal((global) => {\n const nextGlobal = Object.assign({}, global, target);\n globalRef.current = nextGlobal;\n return nextGlobal;\n });\n });\n }, []);\n\n useEffect(() => {\n if (global === globalRef.current) {\n setLoaded(true);\n }\n }, [global]);\n\n if (needReady && !loaded) {\n return null;\n }\n\n return children;\n};\n\nexport const useGlobalValue = (globalKey) => {\n const {global} = useContext();\n return global[globalKey];\n};\n\nexport const GlobalValue = ({globalKey, children}) => {\n const value = useGlobalValue(globalKey);\n return children({value});\n};\n\nexport const Preset = ({children}) => {\n const preset = usePreset();\n return children(preset);\n};\n\nexport default Global;\n"],"names":["createContext","initValue","arguments","length","undefined","context","createContext$1","Provider","Consumer","useContext","useContext$1","useGlobalContext","usePreset","contextValue","Object","assign","apis","preset","Global","_ref","children","props","_objectWithoutPropertiesLoose","_excluded","global","setGlobal","useState","setGlobalWithKey","useCallback","globalKey","value","React","_extends","GlobalSetting","_ref2","loader","needReady","_needReady","loaded","setLoaded","globalRef","useRef","loaderRef","useEffect","current","then","target","nextGlobal","useGlobalValue","GlobalValue","_ref3","Preset","_ref4"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_entry_selector=self.webpackChunk_kne_components_entry_selector||[]).push([[268],{30268:(n,t,e)=>{e.r(t),e.d(t,{default:()=>d,manifest:()=>r});const d={EntrySelector:{name:"entry-selector",summary:"<p>EntrySelector \u662f\u4e00\u4e2a\u7528\u4e8e\u9009\u62e9\u548c\u7ba1\u7406\u6761\u76ee\u5217\u8868\u7684 React \u7ec4\u4ef6\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u76f4\u89c2\u7684\u754c\u9762\uff0c\u5141\u8bb8\u7528\u6237\u4ece\u53ef\u9009\u5217\u8868\u4e2d\u9009\u62e9\u6761\u76ee\uff0c\u5e76\u5bf9\u5df2\u9009\u6761\u76ee\u8fdb\u884c\u7ba1\u7406\uff0c\u5305\u62ec\u6392\u5e8f\u3001\u641c\u7d22\u548c\u5220\u9664\u7b49\u64cd\u4f5c\u3002</p>\n<h4>\u4e3b\u8981\u529f\u80fd</h4>\n<ul>\n<li><strong>\u53cc\u5217\u8868\u5c55\u793a</strong>\uff1a\u6e05\u6670\u5730\u5206\u79bb\u5df2\u9009\u6761\u76ee\u548c\u53ef\u9009\u6761\u76ee</li>\n<li><strong>\u62d6\u62fd\u6392\u5e8f</strong>\uff1a\u652f\u6301\u5bf9\u5df2\u9009\u6761\u76ee\u8fdb\u884c\u62d6\u62fd\u6392\u5e8f</li>\n<li><strong>\u641c\u7d22\u8fc7\u6ee4</strong>\uff1a\u53ef\u4ee5\u901a\u8fc7\u5173\u952e\u8bcd\u641c\u7d22\u8fc7\u6ee4\u6761\u76ee</li>\n<li><strong>\u81ea\u5b9a\u4e49\u6e32\u67d3</strong>\uff1a\u652f\u6301\u81ea\u5b9a\u4e49\u6761\u76ee\u7684\u6e32\u67d3\u65b9\u5f0f</li>\n<li><strong>\u56fd\u9645\u5316\u652f\u6301</strong>\uff1a\u5185\u7f6e\u4e2d\u6587\u548c\u82f1\u6587\u8bed\u8a00\u652f\u6301</li>\n<li><strong>\u6dfb\u52a0\u65b0\u6761\u76ee</strong>\uff1a\u652f\u6301\u6dfb\u52a0\u4e0d\u5728\u9884\u8bbe\u5217\u8868\u4e2d\u7684\u65b0\u6761\u76ee</li>\n</ul>\n<h4>\u4f7f\u7528\u573a\u666f</h4>\n<p>EntrySelector \u9002\u7528\u4e8e\u9700\u8981\u4ece\u9884\u5b9a\u4e49\u5217\u8868\u4e2d\u9009\u62e9\u591a\u4e2a\u6761\u76ee\u5e76\u8fdb\u884c\u6392\u5e8f\u7684\u573a\u666f\uff0c\u4f8b\u5982\uff1a</p>\n<ul>\n<li>\u9009\u62e9\u5e76\u6392\u5e8f\u6587\u7ae0\u5206\u7c7b</li>\n<li>\u7ba1\u7406\u4ea7\u54c1\u6807\u7b7e</li>\n<li>\u914d\u7f6e\u7528\u6237\u6743\u9650</li>\n<li>\u9009\u62e9\u5e76\u6392\u5e8f\u5c55\u793a\u9879\u76ee</li>\n</ul>\n<h4>\u57fa\u672c\u539f\u7406</h4>\n<p>\u7ec4\u4ef6\u5185\u90e8\u7ef4\u62a4\u5df2\u9009\u6761\u76ee\u5217\u8868\u548c\u53ef\u9009\u6761\u76ee\u5217\u8868\u4e24\u4e2a\u72b6\u6001\uff0c\u901a\u8fc7\u7528\u6237\u4ea4\u4e92\u5728\u8fd9\u4e24\u4e2a\u5217\u8868\u4e4b\u95f4\u79fb\u52a8\u6761\u76ee\u3002\u7ec4\u4ef6\u4f7f\u7528 react-sortablejs \u5b9e\u73b0\u62d6\u62fd\u6392\u5e8f\u529f\u80fd\uff0c\u5e76\u652f\u6301\u901a\u8fc7\u641c\u7d22\u6846\u8fc7\u6ee4\u6761\u76ee\u5217\u8868\u3002</p>",description:"EntrySelector\u662f\u4e00\u4e2a\u7528\u4e8e\u9009\u62e9\u548c\u7ba1\u7406\u6761\u76ee\u5217\u8868\u7684 React \u7ec4\u4ef6\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u76f4\u89c2\u7684\u754c\u9762\uff0c\u5141\u8bb8\u7528\u6237\u4ece\u53ef\u9009\u5217\u8868\u4e2d\u9009\u62e9\u6761\u76ee\uff0c\u5e76\u5bf9\u5df2\u9009\u6761\u76ee\u8fdb\u884c\u7ba1\u7406\uff0c\u5305\u62ec\u6392\u5e8f\u3001\u641c\u7d22\u548c\u5220\u9664\u7b49\u64cd\u4f5c\u3002",packageName:"@kne/entry-selector",api:"<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027\u540d</th>\n<th>\u7c7b\u578b</th>\n<th>\u9ed8\u8ba4\u503c</th>\n<th>\u8bf4\u660e</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Array</td>\n<td>[]</td>\n<td>\u5df2\u9009\u6761\u76ee\u5217\u8868\uff0c\u6bcf\u4e2a\u6761\u76ee\u5e94\u5305\u542b\u552f\u4e00id\u5c5e\u6027</td>\n</tr>\n<tr>\n<td>onChange</td>\n<td>Function</td>\n<td>-</td>\n<td>\u503c\u53d8\u5316\u65f6\u7684\u56de\u8c03\u51fd\u6570\uff0c\u53c2\u6570\u4e3a\u65b0\u7684value\u503c</td>\n</tr>\n<tr>\n<td>onAdd</td>\n<td>Function</td>\n<td>-</td>\n<td>\u6dfb\u52a0\u65b0\u6761\u76ee\u7684\u56de\u8c03\u51fd\u6570\uff0c\u53c2\u6570\u4e3a\u5305\u542bfetchApi\u3001value\u548conChange\u7684\u5bf9\u8c61</td>\n</tr>\n<tr>\n<td>api</td>\n<td>Function</td>\n<td>-</td>\n<td>\u83b7\u53d6\u6761\u76ee\u5217\u8868\u7684API\u51fd\u6570\uff0c\u7528\u4e8e\u52a0\u8f7d\u53ef\u9009\u6761\u76ee\u6570\u636e</td>\n</tr>\n<tr>\n<td>options</td>\n<td>Array</td>\n<td>-</td>\n<td>\u6761\u76ee\u64cd\u4f5c\u9009\u9879\u5217\u8868\uff0c\u7528\u4e8eButtonGroup\u7ec4\u4ef6</td>\n</tr>\n<tr>\n<td>renderSelectedItem</td>\n<td>Function</td>\n<td>-</td>\n<td>\u81ea\u5b9a\u4e49\u6e32\u67d3\u5df2\u9009\u6761\u76ee\u7684\u51fd\u6570\uff0c\u53c2\u6570\u4e3a\u6761\u76ee\u6570\u636e\u548c\u5305\u542bel\u3001target\u3001fetchApi\u3001onChange\u7684\u5bf9\u8c61</td>\n</tr>\n<tr>\n<td>renderItem</td>\n<td>Function</td>\n<td>-</td>\n<td>\u81ea\u5b9a\u4e49\u6e32\u67d3\u53ef\u9009\u6761\u76ee\u7684\u51fd\u6570\uff0c\u53c2\u6570\u4e3a\u6761\u76ee\u6570\u636e\u548c\u5305\u542bfetchApi\u3001el\u7684\u5bf9\u8c61</td>\n</tr>\n<tr>\n<td>renderOptions</td>\n<td>Function</td>\n<td>-</td>\n<td>\u81ea\u5b9a\u4e49\u6e32\u67d3\u64cd\u4f5c\u9009\u9879\u7684\u51fd\u6570\uff0c\u53c2\u6570\u4e3a\u5305\u542bfetchApi\u3001options\u7684\u5bf9\u8c61</td>\n</tr>\n<tr>\n<td>getSearchProps</td>\n<td>Function</td>\n<td>-</td>\n<td>\u83b7\u53d6\u641c\u7d22\u5c5e\u6027\u7684\u51fd\u6570\uff0c\u7528\u4e8e\u914d\u7f6e\u641c\u7d22\u529f\u80fd</td>\n</tr>\n<tr>\n<td>searchPlaceholder</td>\n<td>String</td>\n<td>-</td>\n<td>\u641c\u7d22\u6846\u5360\u4f4d\u6587\u672c\uff0c\u672a\u8bbe\u7f6e\u65f6\u4f7f\u7528\u56fd\u9645\u5316\u6587\u672c</td>\n</tr>\n</tbody>\n</table>\n<h4>\u56fd\u9645\u5316\u652f\u6301</h4>\n<p>\u7ec4\u4ef6\u5185\u7f6e\u4e2d\u6587\u548c\u82f1\u6587\u4e24\u79cd\u8bed\u8a00\uff0c\u9ed8\u8ba4\u4f7f\u7528\u4e2d\u6587\u3002\u53ef\u901a\u8fc7createWithIntlProvider\u914d\u7f6e\u56fd\u9645\u5316\u3002</p>\n<table>\n<thead>\n<tr>\n<th>\u8bed\u8a00</th>\n<th>\u4ee3\u7801</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>\u4e2d\u6587</td>\n<td>zh-CN</td>\n</tr>\n<tr>\n<td>\u82f1\u6587</td>\n<td>en-US</td>\n</tr>\n</tbody>\n</table>\n<h4>\u56fd\u9645\u5316\u6587\u672c\u952e\u503c</h4>\n<table>\n<thead>\n<tr>\n<th>\u952e\u540d</th>\n<th>\u4e2d\u6587</th>\n<th>\u82f1\u6587</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>add</td>\n<td>\u6dfb\u52a0</td>\n<td>Add</td>\n</tr>\n<tr>\n<td>selected</td>\n<td>\u5df2\u9009</td>\n<td>Selected</td>\n</tr>\n<tr>\n<td>list</td>\n<td>\u5217\u8868</td>\n<td>List</td>\n</tr>\n<tr>\n<td>searchPlaceholder</td>\n<td>\u8bf7\u8f93\u5165\u5173\u952e\u5b57</td>\n<td>Please input keyword</td>\n</tr>\n</tbody>\n</table>",example:{isFull:!1,className:"entry_selector_f371f",style:".entry_selector_f371f .ant-card {\n border-color: black;\n text-align: center;\n width: 200px;\n}",list:[{title:"\u8fd9\u91cc\u586b\u5199\u793a\u4f8b\u6807\u9898",description:"\u8fd9\u91cc\u586b\u5199\u793a\u4f8b\u8bf4\u660e",code:"const { default: EntrySelector } = _EntrySelector;\nconst { Switch, Flex } = antd;\n\nconst BaseExample = () => {\n return (\n <div>\n <EntrySelector\n pagination={{ paramsType: 'params' }}\n api={{\n loader: data => {\n console.log('fetch props:', data);\n return {\n totalCount: 3,\n pageData: [\n {\n id: 1,\n title: '\u4f60\u662f\u4ec0\u4e48\u6027\u683c\u7684\u4eba\uff1f\u6709\u54ea\u4e9b\u65b9\u9762\u7684\u4e0d\u8db3\uff1f\u9700\u8981\u600e\u6837\u6539\u8fdb\uff1f'\n },\n {\n id: 2,\n title: '\u4f60\u8ba4\u4e3a\u5982\u4f55\u53ef\u4ee5\u8ba9\u4e00\u4e2a\u5458\u5de5\u6709\u6548\u9ad8\u8d28\u7684\u5b8c\u6210\u4ed6\u7684\u5de5\u4f5c\uff1f'\n },\n {\n id: 3,\n title: '\u8bf7\u5206\u4eab\u4e00\u6b21\u4f60\u5feb\u901f\u4f5c\u51fa\u51b3\u5b9a\u7684\u7ecf\u9a8c\uff0c\u5f53\u65f6\u7684\u60c5\u51b5\u600e\u6837\uff1f\u4f60\u662f\u600e\u4e48\u5904\u7406\u7684\uff1f'\n }\n ]\n };\n }\n }}\n getSearchProps={({ searchText }) => {\n return { title: searchText };\n }}\n renderSelectedItem={(item, { el, onChange }) => {\n return (\n <>\n {el}\n <Flex align=\"center\" gap={8}>\n <span>\u5f00\u542f\u8ffd\u95ee</span>\n <Switch\n size=\"small\"\n checked={item.hasProbe}\n onChange={checked => {\n onChange(Object.assign({}, item, { hasProbe: checked }));\n }}\n />\n </Flex>\n </>\n );\n }}\n onChange={value => {\n console.log('>>>>>>>>', value);\n }}\n options={[\n {\n children: '\u64cd\u4f5c1'\n },\n {\n children: '\u64cd\u4f5c2'\n }\n ]}\n />\n </div>\n );\n};\n\nrender(<BaseExample />);\n\n",scope:[{name:"_EntrySelector",packageName:"@kne/current-lib_entry-selector",importStatement:'import * as _EntrySelector from "@kne/entry-selector"',component:e(82879)},{name:"antd",packageName:"antd",component:e(55199)}]}]}}},r={name:"entry-selector",version:"0.1.0","open-version":!0,"public-url":"/entry-selector",modules:[{name:"entry-selector",baseDir:"/home/runner/work/entry-selector/entry-selector",description:"EntrySelector\u662f\u4e00\u4e2a\u7528\u4e8e\u9009\u62e9\u548c\u7ba1\u7406\u6761\u76ee\u5217\u8868\u7684 React \u7ec4\u4ef6\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u76f4\u89c2\u7684\u754c\u9762\uff0c\u5141\u8bb8\u7528\u6237\u4ece\u53ef\u9009\u5217\u8868\u4e2d\u9009\u62e9\u6761\u76ee\uff0c\u5e76\u5bf9\u5df2\u9009\u6761\u76ee\u8fdb\u884c\u7ba1\u7406\uff0c\u5305\u62ec\u6392\u5e8f\u3001\u641c\u7d22\u548c\u5220\u9664\u7b49\u64cd\u4f5c\u3002",packageName:"@kne/entry-selector"}]}}}]);
|
|
2
|
+
//# sourceMappingURL=268.c23e0423.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/268.c23e0423.chunk.js","mappings":"6LAGA,MCHiE,GAAgBA,cDG5D,CACjBC,KAAM,iBACNC,QAAS,8vEAoBTC,YAAa,2bACbC,YAAa,sBACbC,IAAK,wpGA4HLC,QAAS,CACLC,QAAQ,EACRC,UAAW,uBACXC,MAAO,uGAKPC,KAAM,CAAC,CACXC,MAAO,mDACPR,YAAa,mDACbS,KAAM,qnEAqENC,MAAO,CAAC,CACRZ,KAAM,iBACNG,YAAa,kCACbU,gBAAiB,wDACjBC,U,UACF,CACEd,KAAM,OACNG,YAAa,OACbW,U,gBC9OSC,EAAW,CAAC,KAAO,iBAAiB,QAAU,QAAQ,gBAAe,EAAK,aAAa,kBAAkB,QAAU,CAAC,CAAC,KAAO,iBAAiB,QAAU,kDAAkD,YAAc,2bAA6F,YAAc,wB","sources":["../../README.md","../node_modules/readme/modules.js"],"sourcesContent":["import * as component_1 from '@kne/current-lib_entry-selector';\nimport '@kne/current-lib_entry-selector/dist/index.css';\nimport * as component_3 from 'antd';\nconst readmeConfig = {\n name: `entry-selector`,\n summary: `<p>EntrySelector 是一个用于选择和管理条目列表的 React 组件。它提供了一个直观的界面,允许用户从可选列表中选择条目,并对已选条目进行管理,包括排序、搜索和删除等操作。</p>\n<h4>主要功能</h4>\n<ul>\n<li><strong>双列表展示</strong>:清晰地分离已选条目和可选条目</li>\n<li><strong>拖拽排序</strong>:支持对已选条目进行拖拽排序</li>\n<li><strong>搜索过滤</strong>:可以通过关键词搜索过滤条目</li>\n<li><strong>自定义渲染</strong>:支持自定义条目的渲染方式</li>\n<li><strong>国际化支持</strong>:内置中文和英文语言支持</li>\n<li><strong>添加新条目</strong>:支持添加不在预设列表中的新条目</li>\n</ul>\n<h4>使用场景</h4>\n<p>EntrySelector 适用于需要从预定义列表中选择多个条目并进行排序的场景,例如:</p>\n<ul>\n<li>选择并排序文章分类</li>\n<li>管理产品标签</li>\n<li>配置用户权限</li>\n<li>选择并排序展示项目</li>\n</ul>\n<h4>基本原理</h4>\n<p>组件内部维护已选条目列表和可选条目列表两个状态,通过用户交互在这两个列表之间移动条目。组件使用 react-sortablejs 实现拖拽排序功能,并支持通过搜索框过滤条目列表。</p>`,\n description: `EntrySelector是一个用于选择和管理条目列表的 React 组件。它提供了一个直观的界面,允许用户从可选列表中选择条目,并对已选条目进行管理,包括排序、搜索和删除等操作。`,\n packageName: `@kne/entry-selector`,\n api: `<table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Array</td>\n<td>[]</td>\n<td>已选条目列表,每个条目应包含唯一id属性</td>\n</tr>\n<tr>\n<td>onChange</td>\n<td>Function</td>\n<td>-</td>\n<td>值变化时的回调函数,参数为新的value值</td>\n</tr>\n<tr>\n<td>onAdd</td>\n<td>Function</td>\n<td>-</td>\n<td>添加新条目的回调函数,参数为包含fetchApi、value和onChange的对象</td>\n</tr>\n<tr>\n<td>api</td>\n<td>Function</td>\n<td>-</td>\n<td>获取条目列表的API函数,用于加载可选条目数据</td>\n</tr>\n<tr>\n<td>options</td>\n<td>Array</td>\n<td>-</td>\n<td>条目操作选项列表,用于ButtonGroup组件</td>\n</tr>\n<tr>\n<td>renderSelectedItem</td>\n<td>Function</td>\n<td>-</td>\n<td>自定义渲染已选条目的函数,参数为条目数据和包含el、target、fetchApi、onChange的对象</td>\n</tr>\n<tr>\n<td>renderItem</td>\n<td>Function</td>\n<td>-</td>\n<td>自定义渲染可选条目的函数,参数为条目数据和包含fetchApi、el的对象</td>\n</tr>\n<tr>\n<td>renderOptions</td>\n<td>Function</td>\n<td>-</td>\n<td>自定义渲染操作选项的函数,参数为包含fetchApi、options的对象</td>\n</tr>\n<tr>\n<td>getSearchProps</td>\n<td>Function</td>\n<td>-</td>\n<td>获取搜索属性的函数,用于配置搜索功能</td>\n</tr>\n<tr>\n<td>searchPlaceholder</td>\n<td>String</td>\n<td>-</td>\n<td>搜索框占位文本,未设置时使用国际化文本</td>\n</tr>\n</tbody>\n</table>\n<h4>国际化支持</h4>\n<p>组件内置中文和英文两种语言,默认使用中文。可通过createWithIntlProvider配置国际化。</p>\n<table>\n<thead>\n<tr>\n<th>语言</th>\n<th>代码</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>中文</td>\n<td>zh-CN</td>\n</tr>\n<tr>\n<td>英文</td>\n<td>en-US</td>\n</tr>\n</tbody>\n</table>\n<h4>国际化文本键值</h4>\n<table>\n<thead>\n<tr>\n<th>键名</th>\n<th>中文</th>\n<th>英文</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>add</td>\n<td>添加</td>\n<td>Add</td>\n</tr>\n<tr>\n<td>selected</td>\n<td>已选</td>\n<td>Selected</td>\n</tr>\n<tr>\n<td>list</td>\n<td>列表</td>\n<td>List</td>\n</tr>\n<tr>\n<td>searchPlaceholder</td>\n<td>请输入关键字</td>\n<td>Please input keyword</td>\n</tr>\n</tbody>\n</table>`,\n example: {\n isFull: false,\n className: `entry_selector_f371f`,\n style: `.entry_selector_f371f .ant-card {\n border-color: black;\n text-align: center;\n width: 200px;\n}`,\n list: [{\n title: `这里填写示例标题`,\n description: `这里填写示例说明`,\n code: `const { default: EntrySelector } = _EntrySelector;\nconst { Switch, Flex } = antd;\n\nconst BaseExample = () => {\n return (\n <div>\n <EntrySelector\n pagination={{ paramsType: 'params' }}\n api={{\n loader: data => {\n console.log('fetch props:', data);\n return {\n totalCount: 3,\n pageData: [\n {\n id: 1,\n title: '你是什么性格的人?有哪些方面的不足?需要怎样改进?'\n },\n {\n id: 2,\n title: '你认为如何可以让一个员工有效高质的完成他的工作?'\n },\n {\n id: 3,\n title: '请分享一次你快速作出决定的经验,当时的情况怎样?你是怎么处理的?'\n }\n ]\n };\n }\n }}\n getSearchProps={({ searchText }) => {\n return { title: searchText };\n }}\n renderSelectedItem={(item, { el, onChange }) => {\n return (\n <>\n {el}\n <Flex align=\"center\" gap={8}>\n <span>开启追问</span>\n <Switch\n size=\"small\"\n checked={item.hasProbe}\n onChange={checked => {\n onChange(Object.assign({}, item, { hasProbe: checked }));\n }}\n />\n </Flex>\n </>\n );\n }}\n onChange={value => {\n console.log('>>>>>>>>', value);\n }}\n options={[\n {\n children: '操作1'\n },\n {\n children: '操作2'\n }\n ]}\n />\n </div>\n );\n};\n\nrender(<BaseExample />);\n\n`,\n scope: [{\n name: \"_EntrySelector\",\n packageName: \"@kne/current-lib_entry-selector\",\n importStatement: \"import * as _EntrySelector from \\\"@kne/entry-selector\\\"\",\n component: component_1\n},{\n name: \"antd\",\n packageName: \"antd\",\n component: component_3\n}]\n}]\n }\n};\nexport default readmeConfig;\n","import EntrySelector from '@components/entry-selector/README.md';export default {EntrySelector};\nexport const manifest = {\"name\":\"entry-selector\",\"version\":\"0.1.0\",\"open-version\":true,\"public-url\":\"/entry-selector\",\"modules\":[{\"name\":\"entry-selector\",\"baseDir\":\"/home/runner/work/entry-selector/entry-selector\",\"description\":\"EntrySelector是一个用于选择和管理条目列表的 React 组件。它提供了一个直观的界面,允许用户从可选列表中选择条目,并对已选条目进行管理,包括排序、搜索和删除等操作。\",\"packageName\":\"@kne/entry-selector\"}]};"],"names":["EntrySelector","name","summary","description","packageName","api","example","isFull","className","style","list","title","code","scope","importStatement","component","manifest"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_kne_components_entry_selector=self.webpackChunk_kne_components_entry_selector||[]).push([[351],{360:(e,t,r)=>{var n=r(96537),o=r(36928),i=r(93179),a=r(49578),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a;e.exports=s},534:(e,t,r)=>{var n=r(41987),o=r(46205);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},10161:(e,t,r)=>{var n=r(83689),o=r(46484),i=r(21058),a=i&&i.isMap,s=a?o(a):n;e.exports=s},10238:(e,t,r)=>{var n=r(91959),o=r(28566),i=r(78514),a=r(67574),s=r(47352),u=r(36555),c=r(83103),f=r(80338),l=c(function(e,t){var r={};if(null==e)return r;var c=!1;t=n(t,function(t){return t=a(t,e),c||(c=t.length>1),t}),s(e,f(e),r),c&&(r=o(r,7,u));for(var l=t.length;l--;)i(r,t[l]);return r});e.exports=l},11524:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},13605:(e,t,r)=>{var n=r(10427)(r(36382),"Promise");e.exports=n},13665:e=>{e.exports=function e(t,r,n){function o(a,s){if(!r[a]){if(!t[a]){if(i)return i(a,!0);throw new Error("Cannot find module '"+a+"'")}s=r[a]={exports:{}},t[a][0].call(s.exports,function(e){return o(t[a][1][e]||e)},s,s.exports,e,t,r,n)}return r[a].exports}for(var i=void 0,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(e,t,r){(function(n,o,i,a,s,u,c,f,l){"use strict";var d=e("crypto");function p(e,t){var r;return void 0===(r="passthrough"!==(t=y(e,t)).algorithm?d.createHash(t.algorithm):new w).write&&(r.write=r.update,r.end=r.update),m(t,r).dispatch(e),r.update||r.end(""),r.digest?r.digest("buffer"===t.encoding?void 0:t.encoding):(e=r.read(),"buffer"!==t.encoding?e.toString(t.encoding):e)}(r=t.exports=p).sha1=function(e){return p(e)},r.keys=function(e){return p(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(e){return p(e,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(e){return p(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var h=d.getHashes?d.getHashes().slice():["sha1","md5"],g=(h.push("passthrough"),["buffer","hex","binary","base64"]);function y(e,t){var r={};if(r.algorithm=(t=t||{}).algorithm||"sha1",r.encoding=t.encoding||"hex",r.excludeValues=!!t.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=!0===t.ignoreUnknown,r.respectType=!1!==t.respectType,r.respectFunctionNames=!1!==t.respectFunctionNames,r.respectFunctionProperties=!1!==t.respectFunctionProperties,r.unorderedArrays=!0===t.unorderedArrays,r.unorderedSets=!1!==t.unorderedSets,r.unorderedObjects=!1!==t.unorderedObjects,r.replacer=t.replacer||void 0,r.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var n=0;n<h.length;++n)h[n].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=h[n]);if(-1===h.indexOf(r.algorithm))throw new Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+h.join(", "));if(-1===g.indexOf(r.encoding)&&"passthrough"!==r.algorithm)throw new Error('Encoding "'+r.encoding+'" not supported. supported values: '+g.join(", "));return r}function b(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function m(e,t,r){function n(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return r=r||[],{dispatch:function(t){return this["_"+(null===(t=e.replacer?e.replacer(t):t)?"null":typeof t)](t)},_object:function(t){var o,a=Object.prototype.toString.call(t),s=/\[object (.*)\]/i.exec(a);if(s=(s=s?s[1]:"unknown:["+a+"]").toLowerCase(),0<=(a=r.indexOf(t)))return this.dispatch("[CIRCULAR:"+a+"]");if(r.push(t),void 0!==i&&i.isBuffer&&i.isBuffer(t))return n("buffer:"),n(t);if("object"===s||"function"===s||"asyncfunction"===s)return a=Object.keys(t),e.unorderedObjects&&(a=a.sort()),!1===e.respectType||b(t)||a.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(a=a.filter(function(t){return!e.excludeKeys(t)})),n("object:"+a.length+":"),o=this,a.forEach(function(r){o.dispatch(r),n(":"),e.excludeValues||o.dispatch(t[r]),n(",")});if(!this["_"+s]){if(e.ignoreUnknown)return n("["+s+"]");throw new Error('Unknown object type "'+s+'"')}this["_"+s](t)},_array:function(t,o){o=void 0!==o?o:!1!==e.unorderedArrays;var i=this;if(n("array:"+t.length+":"),!o||t.length<=1)return t.forEach(function(e){return i.dispatch(e)});var a=[];return o=t.map(function(t){var n=new w,o=r.slice();return m(e,n,o).dispatch(t),a=a.concat(o.slice(r.length)),n.read().toString()}),r=r.concat(a),o.sort(),this._array(o,!1)},_date:function(e){return n("date:"+e.toJSON())},_symbol:function(e){return n("symbol:"+e.toString())},_error:function(e){return n("error:"+e.toString())},_boolean:function(e){return n("bool:"+e.toString())},_string:function(e){n("string:"+e.length+":"),n(e.toString())},_function:function(t){n("fn:"),b(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return n("number:"+e.toString())},_xml:function(e){return n("xml:"+e.toString())},_null:function(){return n("Null")},_undefined:function(){return n("Undefined")},_regexp:function(e){return n("regex:"+e.toString())},_uint8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return n("int8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return n("int16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return n("int32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return n("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return n("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return n("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return n("url:"+e.toString())},_map:function(t){return n("map:"),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_set:function(t){return n("set:"),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_file:function(e){return n("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return n("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return n("domwindow")},_bigint:function(e){return n("bigint:"+e.toString())},_process:function(){return n("process")},_timer:function(){return n("timer")},_pipe:function(){return n("pipe")},_tcp:function(){return n("tcp")},_udp:function(){return n("udp")},_tty:function(){return n("tty")},_statwatcher:function(){return n("statwatcher")},_securecontext:function(){return n("securecontext")},_connection:function(){return n("connection")},_zlib:function(){return n("zlib")},_context:function(){return n("context")},_nodescript:function(){return n("nodescript")},_httpparser:function(){return n("httpparser")},_dataview:function(){return n("dataview")},_signal:function(){return n("signal")},_fsevent:function(){return n("fsevent")},_tlswrap:function(){return n("tlswrap")}}}function w(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}r.writeToStream=function(e,t,r){return void 0===r&&(r=t,t={}),m(t=y(e,t),r).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,r){(function(e,t,n,o,i,a,s,u,c){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,r="+".charCodeAt(0),n="/".charCodeAt(0),o="0".charCodeAt(0),i="a".charCodeAt(0),a="A".charCodeAt(0),s="-".charCodeAt(0),u="_".charCodeAt(0);function c(e){return(e=e.charCodeAt(0))===r||e===s?62:e===n||e===u?63:e<o?-1:e<o+10?e-o+26+26:e<a+26?e-a:e<i+26?e-i+26:void 0}e.toByteArray=function(e){var r,n;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.length,i=(o="="===e.charAt(o-2)?2:"="===e.charAt(o-1)?1:0,new t(3*e.length/4-o)),a=0<o?e.length-4:e.length,s=0;function u(e){i[s++]=e}for(r=0;r<a;r+=4,0)u((16711680&(n=c(e.charAt(r))<<18|c(e.charAt(r+1))<<12|c(e.charAt(r+2))<<6|c(e.charAt(r+3))))>>16),u((65280&n)>>8),u(255&n);return 2==o?u(255&(n=c(e.charAt(r))<<2|c(e.charAt(r+1))>>4)):1==o&&(u((n=c(e.charAt(r))<<10|c(e.charAt(r+1))<<4|c(e.charAt(r+2))>>2)>>8&255),u(255&n)),i},e.fromByteArray=function(e){var t,r,n,o,i=e.length%3,a="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,n=e.length-i;t<n;t+=3)a+=s((o=r=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+s(o>>12&63)+s(o>>6&63)+s(63&o);switch(i){case 1:a=(a+=s((r=e[e.length-1])>>2))+s(r<<4&63)+"==";break;case 2:a=(a=(a+=s((r=(e[e.length-2]<<8)+e[e.length-1])>>10))+s(r>>4&63))+s(r<<2&63)+"="}return a}}(void 0===r?this.base64js={}:r)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,r){(function(t,n,o,i,a,s,u,c,f){var l=e("base64-js"),d=e("ieee754");function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var n,i,a,s,u=typeof e;if("base64"===t&&"string"==u)for(e=(s=e).trim?s.trim():s.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==u)n=L(e);else if("string"==u)n=o.byteLength(e,t);else{if("object"!=u)throw new Error("First argument needs to be a number, array or string.");n=L(e.length)}if(o._useTypedArrays?i=o._augment(new Uint8Array(n)):((i=this).length=n,i._isBuffer=!0),o._useTypedArrays&&"number"==typeof e.byteLength)i._set(e);else if(k(s=e)||o.isBuffer(s)||s&&"object"==typeof s&&"number"==typeof s.length)for(a=0;a<n;a++)o.isBuffer(e)?i[a]=e.readUInt8(a):i[a]=e[a];else if("string"==u)i.write(e,0,t);else if("number"==u&&!o._useTypedArrays&&!r)for(a=0;a<n;a++)i[a]=0;return i}function p(e,t,r,n){return o._charsWritten=P(function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function h(e,t,r,n){return o._charsWritten=P(function(e){for(var t,r,n=[],o=0;o<e.length;o++)t=(r=e.charCodeAt(o))>>8,r%=256,n.push(r),n.push(t);return n}(t),e,r,n)}function g(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;o++)n+=String.fromCharCode(e[o]);return n}function y(e,t,r,n){var o;if(n||(D("boolean"==typeof r,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+1<e.length,"Trying to read beyond buffer length")),!((n=e.length)<=t))return r?(o=e[t],t+1<n&&(o|=e[t+1]<<8)):(o=e[t]<<8,t+1<n&&(o|=e[t+1])),o}function b(e,t,r,n){var o;if(n||(D("boolean"==typeof r,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+3<e.length,"Trying to read beyond buffer length")),!((n=e.length)<=t))return r?(t+2<n&&(o=e[t+2]<<16),t+1<n&&(o|=e[t+1]<<8),o|=e[t],t+3<n&&(o+=e[t+3]<<24>>>0)):(t+1<n&&(o=e[t+1]<<16),t+2<n&&(o|=e[t+2]<<8),t+3<n&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}function m(e,t,r,n){if(n||(D("boolean"==typeof r,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return 32768&(n=y(e,t,r,!0))?-1*(65535-n+1):n}function w(e,t,r,n){if(n||(D("boolean"==typeof r,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return 2147483648&(n=b(e,t,r,!0))?-1*(4294967295-n+1):n}function v(e,t,r,n){return n||(D("boolean"==typeof r,"missing or invalid endian"),D(t+3<e.length,"Trying to read beyond buffer length")),d.read(e,t,r,23,4)}function _(e,t,r,n){return n||(D("boolean"==typeof r,"missing or invalid endian"),D(t+7<e.length,"Trying to read beyond buffer length")),d.read(e,t,r,52,8)}function E(e,t,r,n,o){if(o||(D(null!=t,"missing value"),D("boolean"==typeof n,"missing or invalid endian"),D(null!=r,"missing offset"),D(r+1<e.length,"trying to write beyond buffer length"),q(t,65535)),!((o=e.length)<=r))for(var i=0,a=Math.min(o-r,2);i<a;i++)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function x(e,t,r,n,o){if(o||(D(null!=t,"missing value"),D("boolean"==typeof n,"missing or invalid endian"),D(null!=r,"missing offset"),D(r+3<e.length,"trying to write beyond buffer length"),q(t,4294967295)),!((o=e.length)<=r))for(var i=0,a=Math.min(o-r,4);i<a;i++)e[r+i]=t>>>8*(n?i:3-i)&255}function j(e,t,r,n,o){o||(D(null!=t,"missing value"),D("boolean"==typeof n,"missing or invalid endian"),D(null!=r,"missing offset"),D(r+1<e.length,"Trying to write beyond buffer length"),T(t,32767,-32768)),e.length<=r||E(e,0<=t?t:65535+t+1,r,n,o)}function I(e,t,r,n,o){o||(D(null!=t,"missing value"),D("boolean"==typeof n,"missing or invalid endian"),D(null!=r,"missing offset"),D(r+3<e.length,"Trying to write beyond buffer length"),T(t,2147483647,-2147483648)),e.length<=r||x(e,0<=t?t:4294967295+t+1,r,n,o)}function A(e,t,r,n,o){o||(D(null!=t,"missing value"),D("boolean"==typeof n,"missing or invalid endian"),D(null!=r,"missing offset"),D(r+3<e.length,"Trying to write beyond buffer length"),R(t,34028234663852886e22,-34028234663852886e22)),e.length<=r||d.write(e,t,r,n,23,4)}function S(e,t,r,n,o){o||(D(null!=t,"missing value"),D("boolean"==typeof n,"missing or invalid endian"),D(null!=r,"missing offset"),D(r+7<e.length,"Trying to write beyond buffer length"),R(t,17976931348623157e292,-17976931348623157e292)),e.length<=r||d.write(e,t,r,n,52,8)}r.Buffer=o,r.SlowBuffer=o,r.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.byteLength=function(e,t){var r;switch(e+="",t||"utf8"){case"hex":r=e.length/2;break;case"utf8":case"utf-8":r=O(e).length;break;case"ascii":case"binary":case"raw":r=e.length;break;case"base64":r=M(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*e.length;break;default:throw new Error("Unknown encoding")}return r},o.concat=function(e,t){if(D(k(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new o(0);if(1===e.length)return e[0];if("number"!=typeof t)for(i=t=0;i<e.length;i++)t+=e[i].length;for(var r=new o(t),n=0,i=0;i<e.length;i++){var a=e[i];a.copy(r,n),n+=a.length}return r},o.prototype.write=function(e,t,r,n){isFinite(t)?isFinite(r)||(n=r,r=void 0):(c=n,n=t,t=r,r=c),t=Number(t)||0;var i,a,s,u,c=this.length-t;switch((!r||c<(r=Number(r)))&&(r=c),n=String(n||"utf8").toLowerCase()){case"hex":i=function(e,t,r,n){r=Number(r)||0;var i=e.length-r;(!n||i<(n=Number(n)))&&(n=i),D((i=t.length)%2==0,"Invalid hex string"),i/2<n&&(n=i/2);for(var a=0;a<n;a++){var s=parseInt(t.substr(2*a,2),16);D(!isNaN(s),"Invalid hex string"),e[r+a]=s}return o._charsWritten=2*a,a}(this,e,t,r);break;case"utf8":case"utf-8":a=this,s=t,u=r,i=o._charsWritten=P(O(e),a,s,u);break;case"ascii":case"binary":i=p(this,e,t,r);break;case"base64":a=this,s=t,u=r,i=o._charsWritten=P(M(e),a,s,u);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=h(this,e,t,r);break;default:throw new Error("Unknown encoding")}return i},o.prototype.toString=function(e,t,r){var n,o,i,a,s=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(r=void 0!==r?Number(r):s.length)===t)return"";switch(e){case"hex":n=function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n<r)&&(r=n);for(var o="",i=t;i<r;i++)o+=U(e[i]);return o}(s,t,r);break;case"utf8":case"utf-8":n=function(e,t,r){var n="",o="";r=Math.min(e.length,r);for(var i=t;i<r;i++)e[i]<=127?(n+=N(o)+String.fromCharCode(e[i]),o=""):o+="%"+e[i].toString(16);return n+N(o)}(s,t,r);break;case"ascii":case"binary":n=g(s,t,r);break;case"base64":o=s,a=r,n=0===(i=t)&&a===o.length?l.fromByteArray(o):l.fromByteArray(o.slice(i,a));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=function(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(s,t,r);break;default:throw new Error("Unknown encoding")}return n},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(e,t,r,n){if(t=t||0,(n=n||0===n?n:this.length)!==(r=r||0)&&0!==e.length&&0!==this.length){D(r<=n,"sourceEnd < sourceStart"),D(0<=t&&t<e.length,"targetStart out of bounds"),D(0<=r&&r<this.length,"sourceStart out of bounds"),D(0<=n&&n<=this.length,"sourceEnd out of bounds"),n>this.length&&(n=this.length);var i=(n=e.length-t<n-r?e.length-t+r:n)-r;if(i<100||!o._useTypedArrays)for(var a=0;a<i;a++)e[a+t]=this[a+r];else e._set(this.subarray(r,r+i),t)}},o.prototype.slice=function(e,t){var r=this.length;if(e=B(e,r,0),t=B(t,r,r),o._useTypedArrays)return o._augment(this.subarray(e,t));for(var n=t-e,i=new o(n,void 0,!0),a=0;a<n;a++)i[a]=this[a+e];return i},o.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},o.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},o.prototype.readUInt8=function(e,t){if(t||(D(null!=e,"missing offset"),D(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},o.prototype.readUInt16LE=function(e,t){return y(this,e,!0,t)},o.prototype.readUInt16BE=function(e,t){return y(this,e,!1,t)},o.prototype.readUInt32LE=function(e,t){return b(this,e,!0,t)},o.prototype.readUInt32BE=function(e,t){return b(this,e,!1,t)},o.prototype.readInt8=function(e,t){if(t||(D(null!=e,"missing offset"),D(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){return m(this,e,!0,t)},o.prototype.readInt16BE=function(e,t){return m(this,e,!1,t)},o.prototype.readInt32LE=function(e,t){return w(this,e,!0,t)},o.prototype.readInt32BE=function(e,t){return w(this,e,!1,t)},o.prototype.readFloatLE=function(e,t){return v(this,e,!0,t)},o.prototype.readFloatBE=function(e,t){return v(this,e,!1,t)},o.prototype.readDoubleLE=function(e,t){return _(this,e,!0,t)},o.prototype.readDoubleBE=function(e,t){return _(this,e,!1,t)},o.prototype.writeUInt8=function(e,t,r){r||(D(null!=e,"missing value"),D(null!=t,"missing offset"),D(t<this.length,"trying to write beyond buffer length"),q(e,255)),t>=this.length||(this[t]=e)},o.prototype.writeUInt16LE=function(e,t,r){E(this,e,t,!0,r)},o.prototype.writeUInt16BE=function(e,t,r){E(this,e,t,!1,r)},o.prototype.writeUInt32LE=function(e,t,r){x(this,e,t,!0,r)},o.prototype.writeUInt32BE=function(e,t,r){x(this,e,t,!1,r)},o.prototype.writeInt8=function(e,t,r){r||(D(null!=e,"missing value"),D(null!=t,"missing offset"),D(t<this.length,"Trying to write beyond buffer length"),T(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,r):this.writeUInt8(255+e+1,t,r))},o.prototype.writeInt16LE=function(e,t,r){j(this,e,t,!0,r)},o.prototype.writeInt16BE=function(e,t,r){j(this,e,t,!1,r)},o.prototype.writeInt32LE=function(e,t,r){I(this,e,t,!0,r)},o.prototype.writeInt32BE=function(e,t,r){I(this,e,t,!1,r)},o.prototype.writeFloatLE=function(e,t,r){A(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){A(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){S(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){S(this,e,t,!1,r)},o.prototype.fill=function(e,t,r){if(t=t||0,r=r||this.length,D("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),D(t<=r,"end < start"),r!==t&&0!==this.length){D(0<=t&&t<this.length,"start out of bounds"),D(0<=r&&r<=this.length,"end out of bounds");for(var n=t;n<r;n++)this[n]=e}},o.prototype.inspect=function(){for(var e=[],t=this.length,n=0;n<t;n++)if(e[n]=U(this[n]),n===r.INSPECT_MAX_BYTES){e[n+1]="...";break}return"<Buffer "+e.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(o._useTypedArrays)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,r=e.length;t<r;t+=1)e[t]=this[t];return e.buffer};var C=o.prototype;function B(e,t,r){return"number"!=typeof e?r:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function L(e){return(e=~~Math.ceil(+e))<0?0:e}function k(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function O(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n<=127)t.push(e.charCodeAt(r));else for(var o=r,i=(55296<=n&&n<=57343&&r++,encodeURIComponent(e.slice(o,r+1)).substr(1).split("%")),a=0;a<i.length;a++)t.push(parseInt(i[a],16))}return t}function M(e){return l.toByteArray(e)}function P(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);o++)t[o+r]=e[o];return o}function N(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function q(e,t){D("number"==typeof e,"cannot write a non-number as a number"),D(0<=e,"specified a negative value for writing an unsigned value"),D(e<=t,"value is larger than maximum value for type"),D(Math.floor(e)===e,"value has a fractional component")}function T(e,t,r){D("number"==typeof e,"cannot write a non-number as a number"),D(e<=t,"value larger than maximum allowed value"),D(r<=e,"value smaller than minimum allowed value"),D(Math.floor(e)===e,"value has a fractional component")}function R(e,t,r){D("number"==typeof e,"cannot write a non-number as a number"),D(e<=t,"value larger than maximum allowed value"),D(r<=e,"value smaller than minimum allowed value")}function D(e,t){if(!e)throw new Error(t||"Failed assertion")}o._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=C.get,e.set=C.set,e.write=C.write,e.toString=C.toString,e.toLocaleString=C.toString,e.toJSON=C.toJSON,e.copy=C.copy,e.slice=C.slice,e.readUInt8=C.readUInt8,e.readUInt16LE=C.readUInt16LE,e.readUInt16BE=C.readUInt16BE,e.readUInt32LE=C.readUInt32LE,e.readUInt32BE=C.readUInt32BE,e.readInt8=C.readInt8,e.readInt16LE=C.readInt16LE,e.readInt16BE=C.readInt16BE,e.readInt32LE=C.readInt32LE,e.readInt32BE=C.readInt32BE,e.readFloatLE=C.readFloatLE,e.readFloatBE=C.readFloatBE,e.readDoubleLE=C.readDoubleLE,e.readDoubleBE=C.readDoubleBE,e.writeUInt8=C.writeUInt8,e.writeUInt16LE=C.writeUInt16LE,e.writeUInt16BE=C.writeUInt16BE,e.writeUInt32LE=C.writeUInt32LE,e.writeUInt32BE=C.writeUInt32BE,e.writeInt8=C.writeInt8,e.writeInt16LE=C.writeInt16LE,e.writeInt16BE=C.writeInt16BE,e.writeInt32LE=C.writeInt32LE,e.writeInt32BE=C.writeInt32BE,e.writeFloatLE=C.writeFloatLE,e.writeFloatBE=C.writeFloatBE,e.writeDoubleLE=C.writeDoubleLE,e.writeDoubleBE=C.writeDoubleBE,e.fill=C.fill,e.inspect=C.inspect,e.toArrayBuffer=C.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,r){(function(r,n,o,i,a,s,u,c,f){o=e("buffer").Buffer;var l=4,d=new o(l);d.fill(0),t.exports={hash:function(e,t,r,n){for(var i=t(function(e,t){e.length%l!=0&&(r=e.length+(l-e.length%l),e=o.concat([e,d],r));for(var r,n=[],i=t?e.readInt32BE:e.readInt32LE,a=0;a<e.length;a+=l)n.push(i.call(e,a));return n}(e=o.isBuffer(e)?e:new o(e),n),8*e.length),a=(t=n,new o(r)),s=t?a.writeInt32BE:a.writeInt32LE,u=0;u<i.length;u++)s.call(a,i[u],4*u,!0);return a}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(e,t,r){(function(t,n,o,i,a,s,u,c,f){o=e("buffer").Buffer;var l=e("./sha"),d=e("./sha256"),p=e("./rng"),h={sha1:l,sha256:d,md5:e("./md5")},g=64,y=new o(g);function b(e,t){var r=h[e=e||"sha1"],n=[];return r||m("algorithm:",e,"is not yet supported"),{update:function(e){return o.isBuffer(e)||(e=new o(e)),n.push(e),e.length,this},digest:function(e){var i=o.concat(n);return i=t?function(e,t,r){o.isBuffer(t)||(t=new o(t)),o.isBuffer(r)||(r=new o(r)),t.length>g?t=e(t):t.length<g&&(t=o.concat([t,y],g));for(var n=new o(g),i=new o(g),a=0;a<g;a++)n[a]=54^t[a],i[a]=92^t[a];return r=e(o.concat([n,r])),e(o.concat([i,r]))}(r,t,i):r(i),n=null,e?i.toString(e):i}}}function m(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}y.fill(0),r.createHash=function(e){return b(e)},r.createHmac=b,r.randomBytes=function(e,t){if(!t||!t.call)return new o(p(e));try{t.call(this,void 0,new o(p(e)))}catch(e){t(e)}};var w,v=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],_=function(e){r[e]=function(){m("sorry,",e,"is not implemented yet")}};for(w in v)_(v[w],w)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,r){(function(r,n,o,i,a,s,u,c,f){var l=e("./helpers");function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=r,u=n,c=o,f=i;r=h(r,n,o,i,e[a+0],7,-680876936),i=h(i,r,n,o,e[a+1],12,-389564586),o=h(o,i,r,n,e[a+2],17,606105819),n=h(n,o,i,r,e[a+3],22,-1044525330),r=h(r,n,o,i,e[a+4],7,-176418897),i=h(i,r,n,o,e[a+5],12,1200080426),o=h(o,i,r,n,e[a+6],17,-1473231341),n=h(n,o,i,r,e[a+7],22,-45705983),r=h(r,n,o,i,e[a+8],7,1770035416),i=h(i,r,n,o,e[a+9],12,-1958414417),o=h(o,i,r,n,e[a+10],17,-42063),n=h(n,o,i,r,e[a+11],22,-1990404162),r=h(r,n,o,i,e[a+12],7,1804603682),i=h(i,r,n,o,e[a+13],12,-40341101),o=h(o,i,r,n,e[a+14],17,-1502002290),r=g(r,n=h(n,o,i,r,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=g(i,r,n,o,e[a+6],9,-1069501632),o=g(o,i,r,n,e[a+11],14,643717713),n=g(n,o,i,r,e[a+0],20,-373897302),r=g(r,n,o,i,e[a+5],5,-701558691),i=g(i,r,n,o,e[a+10],9,38016083),o=g(o,i,r,n,e[a+15],14,-660478335),n=g(n,o,i,r,e[a+4],20,-405537848),r=g(r,n,o,i,e[a+9],5,568446438),i=g(i,r,n,o,e[a+14],9,-1019803690),o=g(o,i,r,n,e[a+3],14,-187363961),n=g(n,o,i,r,e[a+8],20,1163531501),r=g(r,n,o,i,e[a+13],5,-1444681467),i=g(i,r,n,o,e[a+2],9,-51403784),o=g(o,i,r,n,e[a+7],14,1735328473),r=y(r,n=g(n,o,i,r,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=y(i,r,n,o,e[a+8],11,-2022574463),o=y(o,i,r,n,e[a+11],16,1839030562),n=y(n,o,i,r,e[a+14],23,-35309556),r=y(r,n,o,i,e[a+1],4,-1530992060),i=y(i,r,n,o,e[a+4],11,1272893353),o=y(o,i,r,n,e[a+7],16,-155497632),n=y(n,o,i,r,e[a+10],23,-1094730640),r=y(r,n,o,i,e[a+13],4,681279174),i=y(i,r,n,o,e[a+0],11,-358537222),o=y(o,i,r,n,e[a+3],16,-722521979),n=y(n,o,i,r,e[a+6],23,76029189),r=y(r,n,o,i,e[a+9],4,-640364487),i=y(i,r,n,o,e[a+12],11,-421815835),o=y(o,i,r,n,e[a+15],16,530742520),r=b(r,n=y(n,o,i,r,e[a+2],23,-995338651),o,i,e[a+0],6,-198630844),i=b(i,r,n,o,e[a+7],10,1126891415),o=b(o,i,r,n,e[a+14],15,-1416354905),n=b(n,o,i,r,e[a+5],21,-57434055),r=b(r,n,o,i,e[a+12],6,1700485571),i=b(i,r,n,o,e[a+3],10,-1894986606),o=b(o,i,r,n,e[a+10],15,-1051523),n=b(n,o,i,r,e[a+1],21,-2054922799),r=b(r,n,o,i,e[a+8],6,1873313359),i=b(i,r,n,o,e[a+15],10,-30611744),o=b(o,i,r,n,e[a+6],15,-1560198380),n=b(n,o,i,r,e[a+13],21,1309151649),r=b(r,n,o,i,e[a+4],6,-145523070),i=b(i,r,n,o,e[a+11],10,-1120210379),o=b(o,i,r,n,e[a+2],15,718787259),n=b(n,o,i,r,e[a+9],21,-343485551),r=m(r,s),n=m(n,u),o=m(o,c),i=m(i,f)}return Array(r,n,o,i)}function p(e,t,r,n,o,i){return m((t=m(m(t,e),m(n,i)))<<o|t>>>32-o,r)}function h(e,t,r,n,o,i,a){return p(t&r|~t&n,e,t,o,i,a)}function g(e,t,r,n,o,i,a){return p(t&n|r&~n,e,t,o,i,a)}function y(e,t,r,n,o,i,a){return p(t^r^n,e,t,o,i,a)}function b(e,t,r,n,o,i,a){return p(r^(t|~n),e,t,o,i,a)}function m(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return l.hash(e,d,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,r){(function(e,r,n,o,i,a,s,u,c){var f;t.exports=f||function(e){for(var t,r=new Array(e),n=0;n<e;n++)0==(3&n)&&(t=4294967296*Math.random()),r[n]=t>>>((3&n)<<3)&255;return r}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,r){(function(r,n,o,i,a,s,u,c,f){var l=e("./helpers");function d(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r,n,o,i=Array(80),a=1732584193,s=-271733879,u=-1732584194,c=271733878,f=-1009589776,l=0;l<e.length;l+=16){for(var d=a,g=s,y=u,b=c,m=f,w=0;w<80;w++){i[w]=w<16?e[l+w]:h(i[w-3]^i[w-8]^i[w-14]^i[w-16],1);var v=p(p(h(a,5),(v=s,n=u,o=c,(r=w)<20?v&n|~v&o:!(r<40)&&r<60?v&n|v&o|n&o:v^n^o)),p(p(f,i[w]),(r=w)<20?1518500249:r<40?1859775393:r<60?-1894007588:-899497514));f=c,c=u,u=h(s,30),s=a,a=v}a=p(a,d),s=p(s,g),u=p(u,y),c=p(c,b),f=p(f,m)}return Array(a,s,u,c,f)}function p(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function h(e,t){return e<<t|e>>>32-t}t.exports=function(e){return l.hash(e,d,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,r){(function(r,n,o,i,a,s,u,c,f){function l(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function d(e,t){var r,n=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),o=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),i=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var a,s,u=0;u<e.length;u+=16){for(var c=o[0],f=o[1],d=o[2],p=o[3],y=o[4],b=o[5],m=o[6],w=o[7],v=0;v<64;v++)i[v]=v<16?e[v+u]:l(l(l((s=i[v-2],h(s,17)^h(s,19)^g(s,10)),i[v-7]),(s=i[v-15],h(s,7)^h(s,18)^g(s,3))),i[v-16]),r=l(l(l(l(w,h(s=y,6)^h(s,11)^h(s,25)),y&b^~y&m),n[v]),i[v]),a=l(h(a=c,2)^h(a,13)^h(a,22),c&f^c&d^f&d),w=m,m=b,b=y,y=l(p,r),p=d,d=f,f=c,c=l(r,a);o[0]=l(c,o[0]),o[1]=l(f,o[1]),o[2]=l(d,o[2]),o[3]=l(p,o[3]),o[4]=l(y,o[4]),o[5]=l(b,o[5]),o[6]=l(m,o[6]),o[7]=l(w,o[7])}return o}var p=e("./helpers"),h=function(e,t){return e>>>t|e<<32-t},g=function(e,t){return e>>>t};t.exports=function(e){return p.hash(e,d,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,r){(function(e,t,n,o,i,a,s,u,c){r.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?o-1:0,d=r?-1:1;for(o=e[t+l],l+=d,i=o&(1<<-f)-1,o>>=-f,f+=s;0<f;i=256*i+e[t+l],l+=d,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;0<f;a=256*a+e[t+l],l+=d,f-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(o?-1:1);a+=Math.pow(2,n),i-=c}return(o?-1:1)*a*Math.pow(2,i-n)},r.write=function(e,t,r,n,o,i){var a,s,u=8*i-o-1,c=(1<<u)-1,f=c>>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,p=n?1:-1;for(i=t<0||0===t&&1/t<0?1:0,t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-a))<1&&(a--,n*=2),2<=(t+=1<=a+f?l/n:l*Math.pow(2,1-f))*n&&(a++,n/=2),c<=a+f?(s=0,a=c):1<=a+f?(s=(t*n-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));8<=o;e[r+d]=255&s,d+=p,s/=256,o-=8);for(a=a<<o|s,u+=o;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*i}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,t,r){(function(e,r,n,o,i,a,s,u,c){var f,l,d;function p(){}(e=t.exports={}).nextTick=(l="undefined"!=typeof window&&window.setImmediate,d="undefined"!=typeof window&&window.postMessage&&window.addEventListener,l?function(e){return window.setImmediate(e)}:d?(f=[],window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<f.length&&f.shift()())},!0),function(e){f.push(e),window.postMessage("process-tick","*")}):function(e){setTimeout(e,0)}),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=p,e.addListener=p,e.once=p,e.off=p,e.removeListener=p,e.removeAllListeners=p,e.emit=p,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)},16093:(e,t,r)=>{var n=r(47352),o=r(360);e.exports=function(e,t){return n(e,o(e),t)}},16303:(e,t,r)=>{var n=r(74406),o=r(76003);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},20954:(e,t,r)=>{var n=r(47352),o=r(93179);e.exports=function(e,t){return n(e,o(e),t)}},28566:(e,t,r)=>{var n=r(62316),o=r(65472),i=r(86654),a=r(61354),s=r(48045),u=r(19883),c=r(12418),f=r(20954),l=r(16093),d=r(70633),p=r(80338),h=r(74406),g=r(38982),y=r(51384),b=r(91996),m=r(18710),w=r(57517),v=r(10161),_=r(2316),E=r(68103),x=r(49723),j=r(67016),I="[object Arguments]",A="[object Function]",S="[object Object]",C={};C[I]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[S]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[A]=C["[object WeakMap]"]=!1,e.exports=function e(t,r,B,L,k,U){var O,M=1&r,P=2&r,N=4&r;if(B&&(O=k?B(t,L,k,U):B(t)),void 0!==O)return O;if(!_(t))return t;var q=m(t);if(q){if(O=g(t),!M)return c(t,O)}else{var T=h(t),R=T==A||"[object GeneratorFunction]"==T;if(w(t))return u(t,M);if(T==S||T==I||R&&!k){if(O=P||R?{}:b(t),!M)return P?l(t,s(O,t)):f(t,a(O,t))}else{if(!C[T])return k?t:{};O=y(t,T,M)}}U||(U=new n);var D=U.get(t);if(D)return D;U.set(t,O),E(t)?t.forEach(function(n){O.add(e(n,r,B,n,t,U))}):v(t)&&t.forEach(function(n,o){O.set(o,e(n,r,B,o,t,U))});var F=q?void 0:(N?P?p:d:P?j:x)(t);return o(F||t,function(n,o){F&&(n=t[o=n]),i(O,o,e(n,r,B,o,t,U))}),O}},36555:(e,t,r)=>{var n=r(14888);e.exports=function(e){return n(e)?void 0:e}},38982:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},46205:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}},48045:(e,t,r)=>{var n=r(47352),o=r(67016);e.exports=function(e,t){return e&&n(t,o(t),e)}},49578:e=>{e.exports=function(){return[]}},51384:(e,t,r)=>{var n=r(57746),o=r(59072),i=r(11524),a=r(58805),s=r(35720);e.exports=function(e,t,r){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},58805:(e,t,r)=>{var n=r(49266),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},59072:(e,t,r)=>{var n=r(57746);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},59744:(e,t,r)=>{var n=r(10427)(r(36382),"Set");e.exports=n},61354:(e,t,r)=>{var n=r(47352),o=r(49723);e.exports=function(e,t){return e&&n(t,o(t),e)}},64351:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Cache:()=>v,createWithFetch:()=>P,default:()=>O,getAjax:()=>x,getCache:()=>E,preset:()=>j,request:()=>q,useFetch:()=>k,withFetch:()=>M});var n=r(94922),o=r.n(n),i=r(10238),a=r.n(i),s=r(26938),u=r.n(s),c=r(64755),f=r.n(c),l=r(13665),d=r.n(l),p=r(33227),h=r.n(p);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(null,arguments)}function y(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}const b=["options","urlParams"];var m={id:"params",plugin:(e,t)=>{let{options:r,url:n,method:o,params:i,data:a}=e;const s=t.componentContext.getProps(),{options:c,urlParams:l}=s,d=y(s,b),p=f()({},c,u()(d,["url","method","params","data"]),r,{url:n,method:o,params:i,data:a,urlParams:l}),h=Object.assign({},p);return"object"===typeof l&&Object.keys(l).length>0&&"string"===typeof h.url&&(h.url=h.url.replace(/{([\s\S]+?)}/g,(e,t)=>l.hasOwnProperty(t)?l[t]:e)),t.componentContext.setRequestParams(p),h}};const w=["isLocal"];class v{static now(){return(new Date).getTime()}constructor(e){const{ttl:t,maxLength:r,isLocal:n,localName:o}=Object.assign({},e);this.ttl=t||0,this.data={},this.cacheNameMapping={},this.maxLength=r||1e3,this.isLocal=!!o||n,this.localName=o,this._load()}_load(){if(this.isLocal)try{const e=window.localStorage&&window.localStorage.getItem(this.localName||v.KEY_NAME);if(!e)return;const t=JSON.parse(e);Object.keys(t).forEach(e=>{t[e].isLocal=!0}),this.data=t}catch(e){}}_save(){if(!this.isLocal)return;const e=Object.keys(this.data);Promise.all(e.map(e=>this.data[e].value)).then(e=>{const t={};Object.keys(this.data).forEach((r,n)=>{const o=this.data[r],{isLocal:i}=o,a=y(o,w);!0===i&&(t[r]=Object.assign({},a,{value:e[n]}))}),window.localStorage&&window.localStorage.setItem(this.localName||v.KEY_NAME,JSON.stringify(t))})}get(e){const t=this.data[e];let r=null;return t&&(r=t.value,t.expires&&v.now()>=t.expires&&(r=null,delete this.data[e])),this._save(),r}delByCacheName(e){this.cacheNameMapping[e]&&(this.cacheNameMapping[e].forEach(e=>{this.del(e)}),this.cacheNameMapping[e].clear())}del(e){const t=this.get(e);return delete this.data[e],this._save(),t}put(e,t,r){let{ttl:n,isLocal:o,cacheName:i}=r;void 0===n&&(n=this.ttl);let a=this.del(e);if(null!==t){const r=Object.keys(this.data);if(r.length>=this.maxLength){const e=r.sort((e,t)=>this.data[e].createTime-this.data[t].createTime)[0];delete this.data[e]}const a=v.now();this.data[e]={expires:0===n?null:a+n,value:t,createTime:a,isLocal:o},i&&!this.cacheNameMapping[i]&&(this.cacheNameMapping[i]=new Set),i&&this.cacheNameMapping[i].add(e)}return this._save(),a}clean(){this.data={},this._save()}}v.KEY_NAME="REACT_FETCH_CACHE";const _={cache:new v({ttl:6e5,maxLength:1e3,isLocal:!0}),ajax:()=>{throw new Error("\u9ed8\u8ba4\u7684axios\u914d\u7f6e\u5df2\u7ecf\u79fb\u9664\uff0c\u8bf7\u9996\u5148\u5728preset\u91cc\u9762\u914d\u7f6e")},loading:null,error:null,empty:null,pagination:{initCurrent:1,pageSize:10,transform:e=>e},transformResponse:e=>{const{data:t}=e;return e.data={code:t.code,msg:t.msg,results:t.results},e}},E=()=>_.cache,x=()=>_.ajax;var j=e=>Object.assign(_,e),I={id:"cache-record",plugin:(e,t)=>{const{cache:r,isLocal:n,ttl:o}=t.componentContext.getProps(),i=!0===r?"":r,a=i+t.componentContext.getRequestToken();r&&(t.outputStack.request||t.outputStack.loader)&&void 0!==t.outputStack["output-data"]&&_.cache.put(a,t.outputStack.request||t.outputStack.loader,{ttl:o,isLocal:n,cacheName:i})},dependencies:["cache","request","output-data"]},A={id:"output-data",plugin:(e,t)=>{const{options:r,onRequestSuccess:n,ignoreSuccessState:o,transformData:i}=t.componentContext.getProps();if(Object.keys(t.errorStack).length>0)return;const a=t.output.data;if(!0!==o&&200!==a.code){const e=new Error(a.msg);throw e.responseData=a,e}const s=(e=>"function"===typeof i?i(e,t.outputStack.params):e)((!0!==o?a.results:a)||{});return n&&n(s),s},dependencies:["request"]};const S=[{id:"start",plugin:(e,t)=>{let{type:r}=e;const{onRequestStart:n}=t.componentContext.getProps(),{setIsLoading:o,setIsComplete:i}=t.componentContext;n&&n(),"refresh"===r&&o(!0),i(!1)}},m,{id:"cache",plugin:(e,t)=>{let{force:r}=e;const{cache:n}=t.componentContext.getProps(),o=t.componentContext.getRequestToken();if(!0===r||!n)return;const i=(!0===n?"":n)+o,a=_.cache.get(i);return a?Promise.resolve(a):void 0}},{id:"loader",plugin:async(e,t)=>{const{loader:r}=t.componentContext.getProps();if("function"!==typeof r)return;if(t.outputStack.cache)return t.outputStack.cache;return{data:{code:200,results:await r(t.outputStack.params)}}},dependencies:["params"]},{id:"request",plugin:(e,t)=>{let{force:r}=e;if(t.outputStack.loader||t.errorStack.loader)return;if(t.outputStack.cache)return t.outputStack.cache;const n=t.componentContext.getRequestToken();t.componentContext.requestParams=t.outputStack.params;const{ajax:o}=t.componentContext.getProps(),i=!0!==r&&h()(t.globalContext.pendingRequest,n)||(o||_.ajax)(t.outputStack.params);return t.globalContext.pendingRequest=Object.assign({},t.globalContext.pendingRequest,{[n]:i}),i.then(e=>(delete t.globalContext.pendingRequest[n],e))},dependencies:["params"]},{id:"transform-response",plugin:(e,t)=>{const{transformResponse:r,ignoreSuccessState:n,options:o}=t.componentContext.getProps(),i=t.outputStack.request;if(i)return!0===n?i:(r||_.transformResponse)(Object.assign({},i))},dependencies:["request"]},A,I,{id:"load-more",plugin:(e,t)=>{let{type:r,callback:n}=e;if("load-more"===r&&"function"===typeof n){const{fetchData:e}=t.componentContext.getState();return n(e,t.output)}},dependencies:["output-data"]},{id:"complete",plugin:(e,t)=>{let{type:r}=e;const{setIsLoading:n,setIsComplete:o,setFetchData:i}=t.componentContext;i(t.output),"refresh"===r&&n(!1),o(!0)}},{id:"error",plugin:(e,t)=>{const{onRequestError:r,onRequestComplete:n}=t.componentContext.getProps(),{setError:o}=t.componentContext;if(Object.keys(t.errorStack).length>0){const e=Object.values(t.errorStack).map(e=>e.message).filter(e=>!!e).join("\n");r&&r(Object.values(t.errorStack)),o(e||"\u8bf7\u6c42\u53d1\u751f\u9519\u8bef")}else o(null);n&&n(t)}}],C={},B=e=>async t=>{t=Object.assign({},t);const r=S,n={props:t,globalContext:C,componentContext:e,requestContext:{},outputStack:{},errorStack:{},runPath:[],output:null},{debug:o}=e.getProps();for(let e of r)try{if((e.dependencies||[]).find(e=>-1===n.runPath.indexOf(e)))continue;!0===o&&console.info("react-fetch:plugin-"+e.id+":start",n);const r=await e.plugin(t,n);!0===o&&console.info("react-fetch:plugin-"+e.id+":complete",r),n.outputStack[e.id]=r,n.output=void 0!==r?r:n.output,n.runPath.push(e.id)}catch(i){console.error(i),n.errorStack[e.id]=i}return n},L=e=>d()(u()(e,["url","params","method","data","urlParams","options"]),{algorithm:"md5",encoding:"base64"}),k=e=>{const t=Object.assign({auto:!0,updateType:"reload"},e),r=(0,n.useRef)(t);r.current=t;const[o,i]=(0,n.useState)(!1),[a,s]=(0,n.useState)(!1),[u,c]=(0,n.useState)(null),[f,l]=(0,n.useState)(null),[d,p]=(0,n.useState)({}),h=(0,n.useRef)({isLoading:o,isComplete:a,fetchData:u,error:f,requestParams:d});h.current={isLoading:o,isComplete:a,fetchData:u,error:f,requestParams:d};const g=L(t),y=(0,n.useRef)(g);y.current=g;const b=(0,n.useRef)();(0,n.useMemo)(()=>{b.current=B({getProps:()=>r.current,getRequestToken:()=>y.current,getState:()=>h.current,requestParams:d,setRequestParams:p,setFetchData:c,setError:l,setIsComplete:s,setIsLoading:i})},[]);const m=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return b.current(Object.assign({},e,{force:t}))},w=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return b.current(Object.assign({},e,{force:t,type:"refresh"}))},v=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return b.current(Object.assign({},e,{force:t,type:"reload"}))},_=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return b.current(Object.assign({},e,{force:r,callback:t,type:"load-more"}))},E=(0,n.useRef)({});return E.current={send:m,refresh:w,reload:v,loadMore:_,setData:c},(0,n.useEffect)(()=>{r.current.auto&&(h.current.isComplete?E.current.send({type:r.current.updateType},!1):E.current.refresh({},!1))},[g]),{isLoading:o,isComplete:a,data:u,error:f,send:m,refresh:w,reload:v,loadMore:_,setData:c,requestParams:d}},U=["component","render","loading","isEmpty","empty","error"],O=(0,n.forwardRef)((e,t)=>{let{component:r,render:i,loading:s,isEmpty:c,empty:f,error:l}=e,d=y(e,U);const{isLoading:p,isComplete:h,data:b,requestParams:m,error:w,send:v,refresh:E,reload:x,loadMore:j,setData:I}=k(d),A=["url","params","urlParams","method","data","cache","ttl","isLocal","auto","loader","options","updateType","onRequestError","onRequestSuccess","onRequestComplete","onRequestStart","debug","ajax","transformData","transformResponse"],S=a()(d,A),C=u()(d,A);if((0,n.useImperativeHandle)(t,()=>({isLoading:p,isComplete:h,data:b,requestParams:m,error:w,send:v,refresh:E,reload:x,loadMore:j,setData:I})),p)return void 0===s?_.loading:s;if(w){const e=void 0===l?_.error:l;return"function"===typeof e?e(w):e}if(!h&&!b)return null;if("function"===typeof c?c(b,m):!b)return void 0===f?_.empty:f;if(r){const e=r;return o().createElement(e,g({},S,{fetchProps:C,isComplete:h,data:b,refresh:E,reload:x,setData:I,loadMore:j,send:v,requestParams:m}))}if(i)return i(g({},S,{fetchProps:C,isComplete:h,data:b,refresh:E,reload:x,setData:I,loadMore:j,send:v,requestParams:m}));throw new Error("\u8bf7\u4f20\u5165component\u53c2\u6570\u6216\u8005render\u53c2\u6570")}),M=e=>(0,n.forwardRef)((t,r)=>o().createElement(O,g({},t,{component:e,ref:r}))),P=e=>t=>{const r=M(t);return(0,n.forwardRef)((t,n)=>o().createElement(r,g({},f()({},e,t),{ref:n})))},N=["onRequestParamsChange","onRequestDataChange","onError","onIsCompleteChange","onIsLoadingChange"],q=e=>{const t=Object.assign({},e,{options:Object.assign({},null==e?void 0:e.options)},{type:"refresh",ignoreSuccessState:!0}),{onRequestParamsChange:r,onRequestDataChange:n,onError:o,onIsCompleteChange:i,onIsLoadingChange:a}=t,s=y(t,N);return B({getProps:()=>s,getRequestToken:()=>L(s),requestParams:{},setRequestParams:function(){return r&&r(...arguments)},setFetchData:function(){return n&&n(...arguments)},setError:function(){return o&&o(...arguments)},setIsComplete:function(){return i&&i(...arguments)},setIsLoading:function(){return a&&a(...arguments)}})({}).then(e=>{let{outputStack:t}=e;return t["transform-response"]})}},65472:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},68103:(e,t,r)=>{var n=r(16303),o=r(46484),i=r(21058),a=i&&i.isSet,s=a?o(a):n;e.exports=s},70633:(e,t,r)=>{var n=r(88628),o=r(93179),i=r(49723);e.exports=function(e){return n(e,i,o)}},74406:(e,t,r)=>{var n=r(98959),o=r(98554),i=r(13605),a=r(59744),s=r(84582),u=r(99635),c=r(74018),f="[object Map]",l="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",g=c(n),y=c(o),b=c(i),m=c(a),w=c(s),v=u;(n&&v(new n(new ArrayBuffer(1)))!=h||o&&v(new o)!=f||i&&v(i.resolve())!=l||a&&v(new a)!=d||s&&v(new s)!=p)&&(v=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case g:return h;case y:return f;case b:return l;case m:return d;case w:return p}return t}),e.exports=v},78514:(e,t,r)=>{var n=r(67574),o=r(92679),i=r(534),a=r(12408);e.exports=function(e,t){return t=n(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},80338:(e,t,r)=>{var n=r(88628),o=r(360),i=r(67016);e.exports=function(e){return n(e,i,o)}},83463:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},83689:(e,t,r)=>{var n=r(74406),o=r(76003);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},84582:(e,t,r)=>{var n=r(10427)(r(36382),"WeakMap");e.exports=n},88628:(e,t,r)=>{var n=r(96537),o=r(18710);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},92679:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},93179:(e,t,r)=>{var n=r(83463),o=r(49578),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},98959:(e,t,r)=>{var n=r(10427)(r(36382),"DataView");e.exports=n}}]);
|
|
2
|
+
//# sourceMappingURL=351.a6a1cf94.chunk.js.map
|