diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..05bb074 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +lencx.tech \ No newline at end of file diff --git a/assets/bg.4189c4f0.png b/assets/bg.4189c4f0.png new file mode 100644 index 0000000..370dc03 Binary files /dev/null and b/assets/bg.4189c4f0.png differ diff --git a/assets/error.045b384f.svg b/assets/error.045b384f.svg new file mode 100644 index 0000000..e08bc2f --- /dev/null +++ b/assets/error.045b384f.svg @@ -0,0 +1,18 @@ + + + + + + + \ No newline at end of file diff --git a/assets/fzj-desc.da5cfda0.svg b/assets/fzj-desc.da5cfda0.svg new file mode 100644 index 0000000..ca1b847 --- /dev/null +++ b/assets/fzj-desc.da5cfda0.svg @@ -0,0 +1,16 @@ + + + {折腾⇌迷茫⇌思考]ing,在路上 + + + + + + + \ No newline at end of file diff --git a/assets/fzj.08fd6cc8.js b/assets/fzj.08fd6cc8.js new file mode 100644 index 0000000..277d1b5 --- /dev/null +++ b/assets/fzj.08fd6cc8.js @@ -0,0 +1,124 @@ +var e=Object.defineProperty,t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,o=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n;import{R as s,g as a,r as i,h as l,i as c,j as u}from"./react.434ff2b9.js";import{c as f}from"./lodash.71f9f2ff.js";import{g as d,u as p}from"./graphql.8e66ecff.js";import{B as v,p as g,s as m}from"./index.f90eabce.js";function b(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;ts.createElement("svg",{className:y("spinner",e),width:"65px",height:"65px",viewBox:"0 0 66 66",xmlns:"http://www.w3.org/2000/svg"},s.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}));const x=({visible:e})=>e?s.createElement("div",{className:"loading-box"},s.createElement(h,{key:"spin"})):null;x.defaultProps={visible:!0};var E=x;const j="https://github.com/lencx/z/discussions",w=({visible:e,issues:t,type:r})=>{const n={blog:["lencx/z",`${j}`],issues:[`lencx/z #${t}`,`${j}/${t}`]}[r];return e?s.createElement("div",{className:"error-box"},s.createElement("div",null,s.createElement("img",{className:"error-icon",src:"/assets/error.045b384f.svg",alt:"Error :("}),s.createElement("p",null,s.createElement("b",null,"温馨提示")),s.createElement("p",null,"因 GitHub API 请求次数限制,暂时无法访问,点击此处可以查看原链接"),s.createElement("p",null,s.createElement("a",{href:n[1]},n[0])))):null};w.defaultProps={visible:!0,type:"blog"};var T=w;var I=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},O="object"==typeof f&&f&&f.Object===Object&&f,S="object"==typeof self&&self&&self.Object===Object&&self,$=O||S||Function("return this")(),L=$,N=function(){return L.Date.now()},A=/\s/;var P=function(e){for(var t=e.length;t--&&A.test(e.charAt(t)););return t},M=/^\s+/;var k=function(e){return e?e.slice(0,P(e)+1).replace(M,""):e},_=$.Symbol,F=_,J=Object.prototype,Z=J.hasOwnProperty,C=J.toString,H=F?F.toStringTag:void 0;var z=function(e){var t=Z.call(e,H),r=e[H];try{e[H]=void 0;var n=!0}catch(s){}var o=C.call(e);return n&&(t?e[H]=r:delete e[H]),o},U=Object.prototype.toString;var q=z,G=function(e){return U.call(e)},W=_?_.toStringTag:void 0;var B=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":W&&W in Object(e)?q(e):G(e)},V=function(e){return null!=e&&"object"==typeof e};var D=k,R=I,K=function(e){return"symbol"==typeof e||V(e)&&"[object Symbol]"==B(e)},Q=/^[-+]0x[0-9a-f]+$/i,X=/^0b[01]+$/i,Y=/^0o[0-7]+$/i,ee=parseInt;var te=I,re=N,ne=function(e){if("number"==typeof e)return e;if(K(e))return NaN;if(R(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=R(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=D(e);var r=X.test(e);return r||Y.test(e)?ee(e.slice(2),r?2:8):Q.test(e)?NaN:+e},oe=Math.max,se=Math.min;var ae=function(e,t,r){var n,o,s,a,i,l,c=0,u=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,s=o;return n=o=void 0,c=t,a=e.apply(s,r)}function v(e){return c=e,i=setTimeout(m,t),u?p(e):a}function g(e){var r=e-l;return void 0===l||r>=t||r<0||f&&e-c>=s}function m(){var e=re();if(g(e))return b(e);i=setTimeout(m,function(e){var r=t-(e-l);return f?se(r,s-(e-c)):r}(e))}function b(e){return i=void 0,d&&n?p(e):(n=o=void 0,a)}function y(){var e=re(),r=g(e);if(n=arguments,o=this,l=e,r){if(void 0===i)return v(l);if(f)return clearTimeout(i),i=setTimeout(m,t),p(l)}return void 0===i&&(i=setTimeout(m,t)),a}return t=ne(t)||0,te(r)&&(u=!!r.leading,s=(f="maxWait"in r)?oe(ne(r.maxWait)||0,t):s,d="trailing"in r?!!r.trailing:d),y.cancel=function(){void 0!==i&&clearTimeout(i),c=0,n=l=o=i=void 0},y.flush=function(){return void 0===i?a:b(re())},y};const ie=d` + query FZJ_LIST($first: Int, $cursor: String) { + repository(name: "z", owner: "lencx") { + discussions(first: $first, after: $cursor) { + totalCount + pageInfo { + # startCursor + # hasPreviousPage + endCursor + hasNextPage + } + edges { + cursor + node { + title + number + # bodyHTML + createdAt + updatedAt + author { + login + avatarUrl + url + } + category { + name + emojiHTML + } + labels(first: 100) { + edges { + node { + id + name + color + } + } + } + } + } + } + } + } +`,le=d` + query FZJ_ITEM($number: Int!) { + repository(name: "z", owner: "lencx") { + discussion(number: $number) { + id + title + bodyHTML + createdAt + updatedAt + category { + name + } + labels(first: 100) { + edges { + node { + id + name + } + } + } + reactions(first: 100) { + totalCount + edges { + node { + id + content + } + } + } + comments(first: 100) { + edges { + node { + id + bodyHTML + author { + login + avatarUrl + url + } + replies(first: 100) { + edges { + node { + id + author { + login + avatarUrl + url + } + bodyHTML + } + } + } + } + } + } + } + } + } +`,ce=d` + query FZJ_TAGS { + repository(name: "z", owner: "lencx") { + discussionCategories(first: 20) { + edges { + node { + id + name + emojiHTML + } + } + } + labels(first: 100) { + edges { + node { + id + name + color + } + } + } + } + } +`,ue=a({key:"FZJ_LIST",default:{pageInfo:{},list:[]}}),fe=()=>{const[e,t]=i.exports.useState(null),r=l(ue),n=p(ie,{variables:{first:g,cursor:null}}),[o,s]=r,[a,{loading:c,data:u,error:f}]=n,d=i.exports.useCallback(ae((()=>{m((()=>{o.pageInfo.hasNextPage&&a({variables:{cursor:o.pageInfo.cursor}})}))}),500,{leading:!0}),[o.pageInfo]);return i.exports.useEffect((()=>{(async()=>{if(f){window.removeEventListener("scroll",d,!1);try{const e=await fetch(`${v}/discussions.json`).then((e=>e.json()));s({pageInfo:{},list:e})}catch(e){t(e)}}})()}),[f]),i.exports.useEffect((()=>(window.addEventListener("scroll",d,!1),()=>{window.removeEventListener("scroll",d,!1)})),[o.pageInfo]),i.exports.useEffect((()=>{!o.list.length&&a()}),[]),i.exports.useEffect((()=>{if(u){const{endCursor:e,hasNextPage:t}=u.repository.discussions.pageInfo;s({pageInfo:{cursor:e,hasNextPage:t},list:[...o.list,...u.repository.discussions.edges||[]]})}}),[u]),{data:o.list,loading:c,error:e}},de=a({key:"FZJ_ITEM",default:new Map}),pe=c({key:"FZJ_ITEM_VALUE",get:({get:e})=>e(de)}),ve=e=>{const[t,r]=l(de),[n,o]=i.exports.useState(!1),[s,a]=i.exports.useState(null),[c,f]=p(le,{variables:{number:parseInt(e)}}),d=u(pe);return i.exports.useEffect((()=>{d.has(e)||(o(!0),c())}),[]),i.exports.useEffect((()=>{(async()=>{var n,s;if(f.data)r(t.set(e,null==(s=null==(n=null==f?void 0:f.data)?void 0:n.repository)?void 0:s.discussion)),a(null),o(!1);else try{const n=await fetch(`${v}/issues/${e}.json`).then((e=>e.json()));r(t.set(e,n)),o(!1)}catch(i){a(i)}})()}),[f.data]),{data:t.get(e),loading:n,error:s}},ge=a({key:"FZJ_TAGS",default:{}}),me=c({key:"FZJ_TAGS_VALUE",get:({get:e})=>e(ge)}),be=()=>{const[e,s]=l(ge),a=u(me),[c,f]=p(ce),d=f,{data:v}=d,g=((e,o)=>{var s={};for(var a in e)r.call(e,a)&&o.indexOf(a)<0&&(s[a]=e[a]);if(null!=e&&t)for(var a of t(e))o.indexOf(a)<0&&n.call(e,a)&&(s[a]=e[a]);return s})(d,["data"]);return i.exports.useEffect((()=>{Object.keys(a).length?s(a):c()}),[]),i.exports.useEffect((()=>{v&&s(v)}),[v]),((e,s)=>{for(var a in s||(s={}))r.call(s,a)&&o(e,a,s[a]);if(t)for(var a of t(s))n.call(s,a)&&o(e,a,s[a]);return e})({data:e},g)};export{T as E,E as L,ve as a,be as b,y as c,fe as u}; diff --git a/assets/fzj.271820f2.css b/assets/fzj.271820f2.css new file mode 100644 index 0000000..50ece75 --- /dev/null +++ b/assets/fzj.271820f2.css @@ -0,0 +1 @@ +.spinner{animation:rotator 1.4s linear infinite}@keyframes rotator{0%{transform:rotate(0)}to{transform:rotate(270deg)}}.path{stroke-dasharray:187;stroke-dashoffset:0;transform-origin:center;animation:dash 1.4s ease-in-out infinite,colors 5.6s ease-in-out infinite}@keyframes colors{0%{stroke:#4285f4}25%{stroke:#de3e35}50%{stroke:#f7c223}75%{stroke:#1b9a59}to{stroke:#4285f4}}@keyframes dash{0%{stroke-dashoffset:187}50%{stroke-dashoffset:46.75;transform:rotate(135deg)}to{stroke-dashoffset:187;transform:rotate(450deg)}}.loading-box{position:fixed;width:100%;top:0;left:0;display:flex;height:100%;justify-content:center;align-items:center}.error-box{position:fixed;width:100%;height:100%;top:0;left:0;display:flex;justify-content:center;align-items:center;text-align:center}.error-box .error-icon{width:120px;margin-top:-20vh}.error-box p{max-width:240px;color:#888} diff --git a/assets/fzj.883a7505.svg b/assets/fzj.883a7505.svg new file mode 100644 index 0000000..a69119f --- /dev/null +++ b/assets/fzj.883a7505.svg @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/assets/github.cf8a9345.svg b/assets/github.cf8a9345.svg new file mode 100644 index 0000000..07213b6 --- /dev/null +++ b/assets/github.cf8a9345.svg @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/assets/graphql.8e66ecff.js b/assets/graphql.8e66ecff.js new file mode 100644 index 0000000..f632693 --- /dev/null +++ b/assets/graphql.8e66ecff.js @@ -0,0 +1,29 @@ +import{R as e,r as t}from"./react.434ff2b9.js"; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function n(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=m)return console[e].apply(console,arguments)}}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}(v=d||(d={})).log=b("log"),v.warn=b("warn"),v.error=b("error"),"object"!=typeof process||"object"!=typeof process.env||process;var O="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function E(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,o=t+1;(r=n.exec(e.body))&&r.index120){for(var p=Math.floor(u/80),h=u%80,d=[],v=0;v",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e){return G(e,[])}function G(e,t){switch(K(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var r=[].concat(t,[e]),n=function(e){var t=e[String(L)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==n){var i=n.call(e);if(i!==e)return"string"==typeof i?i:G(i,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var r=Math.min(10,e.length),n=e.length-r,i=[],o=0;o1&&i.push("... ".concat(n," more items"));return"["+i.join(", ")+"]"}(e,r);return function(e,t){var r=Object.keys(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var r=e.constructor.name;if("string"==typeof r&&""!==r)return r}return t}(e)+"]";return"{ "+r.map((function(r){return r+": "+G(e[r],t)})).join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}function Y(e,t){if(!Boolean(e))throw new Error(t)}function W(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||Y(0,"Body must be a string. Received: ".concat(z(e),".")),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||Y(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Y(0,"column in locationOffset is 1-indexed and must be positive.")}var t,r,n;return t=e,(r=[{key:O,get:function(){return"Source"}}])&&W(t.prototype,r),n&&W(t,n),e}();var X=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function H(e){var t=e.split(/\r\n|[\n\r]/g),r=function(e){for(var t,r=!0,n=!0,i=0,o=null,a=0;ai&&$(t[o-1]);)--o;return t.slice(i,o).join("\n")}function $(e){for(var t=0;t31||9===o));return new V(U.COMMENT,t,s,r,n,i,a.slice(t+1,s))}function ie(e,t,r,n,i,o){var a=e.body,s=r,u=t,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw M(e,u,"Invalid number, unexpected digit after 0: ".concat(ee(s),"."))}else u=oe(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=oe(e,u,s),s=a.charCodeAt(u)),69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=oe(e,u,s),s=a.charCodeAt(u)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw M(e,u,"Invalid number, expected digit but got: ".concat(ee(s),"."));return new V(c?U.FLOAT:U.INT,t,u,n,i,o,a.slice(t,u))}function oe(e,t,r){var n=e.body,i=t,o=r;if(o>=48&&o<=57){do{o=n.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw M(e,i,"Invalid number, expected digit but got: ".concat(ee(o),"."))}function ae(e,t,r,n,i){for(var o,a,s,u,c=e.body,l=t+1,f=l,p=0,h="";l=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ce(e,t,r,n,i){for(var o=e.body,a=o.length,s=t+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new V(U.NAME,t,s,r,n,i,o.slice(t,s))}var le=function(){function e(e,t){var r=function(e){return e instanceof J}(e)?e:new J(e);this._lexer=new Z(r),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(U.NAME);return{kind:j.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:j.DOCUMENT,definitions:this.many(U.SOF,this.parseDefinition,U.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(U.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(U.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(U.BRACE_L))return{kind:j.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,r=this.parseOperationType();return this.peek(U.NAME)&&(t=this.parseName()),{kind:j.OPERATION_DEFINITION,operation:r,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(U.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(U.PAREN_L,this.parseVariableDefinition,U.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:j.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(U.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(U.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(U.DOLLAR),{kind:j.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:j.SELECTION_SET,selections:this.many(U.BRACE_L,this.parseSelection,U.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(U.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(U.COLON)?(e=n,t=this.parseName()):t=n,{kind:j.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(U.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(U.PAREN_L,t,U.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(U.COLON),{kind:j.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:j.ARGUMENT,name:this.parseName(),value:(this.expectToken(U.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(U.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(U.NAME)?{kind:j.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:j.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:j.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:j.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case U.BRACKET_L:return this.parseList(e);case U.BRACE_L:return this.parseObject(e);case U.INT:return this._lexer.advance(),{kind:j.INT,value:t.value,loc:this.loc(t)};case U.FLOAT:return this._lexer.advance(),{kind:j.FLOAT,value:t.value,loc:this.loc(t)};case U.STRING:case U.BLOCK_STRING:return this.parseStringLiteral();case U.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:j.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:j.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:j.NULL,loc:this.loc(t)};default:return{kind:j.ENUM,value:t.value,loc:this.loc(t)}}case U.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:j.STRING,value:e.value,block:e.kind===U.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:j.LIST,values:this.any(U.BRACKET_L,(function(){return t.parseValueLiteral(e)}),U.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:j.OBJECT,fields:this.any(U.BRACE_L,(function(){return t.parseObjectField(e)}),U.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(U.COLON),{kind:j.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(U.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(U.AT),{kind:j.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(U.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(U.BRACKET_R),e={kind:j.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(U.BANG)?{kind:j.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:j.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===U.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(U.STRING)||this.peek(U.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(!0),n=this.many(U.BRACE_L,this.parseOperationTypeDefinition,U.BRACE_R);return{kind:j.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(U.COLON);var r=this.parseNamedType();return{kind:j.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:j.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:j.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(U.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(U.AMP)||this.peek(U.NAME));return t}return this.delimitedMany(U.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(U.BRACE_L)&&this._lexer.lookahead().kind===U.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(U.BRACE_L,this.parseFieldDefinition,U.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(U.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:j.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(U.PAREN_L,this.parseInputValueDef,U.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(U.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(U.EQUALS)&&(n=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:j.INPUT_VALUE_DEFINITION,description:t,name:r,type:i,defaultValue:n,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:j.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:j.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(U.EQUALS)?this.delimitedMany(U.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:j.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(U.BRACE_L,this.parseEnumValueDefinition,U.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:j.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:j.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(U.BRACE_L,this.parseInputValueDef,U.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===U.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(U.BRACE_L,this.parseOperationTypeDefinition,U.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:j.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:j.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:j.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:j.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:j.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:j.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:j.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(U.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:j.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(U.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==X[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new Q(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw M(this._lexer.source,t.start,"Expected ".concat(pe(e),", found ").concat(fe(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==U.NAME||t.value!==e)throw M(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(fe(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===U.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return M(this._lexer.source,t.start,"Unexpected ".concat(fe(t),"."))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r},e}();function fe(e){var t=e.value;return pe(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function pe(e){return function(e){return e===U.BANG||e===U.DOLLAR||e===U.AMP||e===U.PAREN_L||e===U.PAREN_R||e===U.SPREAD||e===U.COLON||e===U.EQUALS||e===U.AT||e===U.BRACKET_L||e===U.BRACKET_R||e===U.BRACE_L||e===U.PIPE||e===U.BRACE_R}(e)?'"'.concat(e,'"'):e}var he={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},de=Object.freeze({});function ve(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:he,n=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],u=void 0,c=void 0,l=void 0,f=[],p=[],h=e;do{var d=++a===o.length,v=d&&0!==s.length;if(d){if(c=0===p.length?void 0:f[f.length-1],u=l,l=p.pop(),v){if(i)u=u.slice();else{for(var y={},m=0,b=Object.keys(u);m80&&(s=a+we("(\n",Se(Oe(n,"\n")),"\n)")),Oe([s,Oe(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+we(" ",Oe(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return Oe(["...",we("on ",t),Oe(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(we("(",Oe(n,", "),")")," ")+"on ".concat(r," ").concat(we("",Oe(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!n||o||a||r,u="";return!s||n&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+Oe(e.values,", ")+"]"},ObjectValue:function(e){return"{"+Oe(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+we("(",Oe(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:ge((function(e){var t=e.directives,r=e.operationTypes;return Oe(["schema",Oe(t," "),Ee(r)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:ge((function(e){return Oe(["scalar",e.name,Oe(e.directives," ")]," ")})),ObjectTypeDefinition:ge((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return Oe(["type",t,we("implements ",Oe(r," & ")),Oe(n," "),Ee(i)]," ")})),FieldDefinition:ge((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(Te(r)?we("(\n",Se(Oe(r,"\n")),"\n)"):we("(",Oe(r,", "),")"))+": "+n+we(" ",Oe(i," "))})),InputValueDefinition:ge((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return Oe([t+": "+r,we("= ",n),Oe(i," ")]," ")})),InterfaceTypeDefinition:ge((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return Oe(["interface",t,we("implements ",Oe(r," & ")),Oe(n," "),Ee(i)]," ")})),UnionTypeDefinition:ge((function(e){var t=e.name,r=e.directives,n=e.types;return Oe(["union",t,Oe(r," "),n&&0!==n.length?"= "+Oe(n," | "):""]," ")})),EnumTypeDefinition:ge((function(e){var t=e.name,r=e.directives,n=e.values;return Oe(["enum",t,Oe(r," "),Ee(n)]," ")})),EnumValueDefinition:ge((function(e){return Oe([e.name,Oe(e.directives," ")]," ")})),InputObjectTypeDefinition:ge((function(e){var t=e.name,r=e.directives,n=e.fields;return Oe(["input",t,Oe(r," "),Ee(n)]," ")})),DirectiveDefinition:ge((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(Te(r)?we("(\n",Se(Oe(r,"\n")),"\n)"):we("(",Oe(r,", "),")"))+(n?" repeatable":"")+" on "+Oe(i," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return Oe(["extend schema",Oe(t," "),Ee(r)]," ")},ScalarTypeExtension:function(e){return Oe(["extend scalar",e.name,Oe(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return Oe(["extend type",t,we("implements ",Oe(r," & ")),Oe(n," "),Ee(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return Oe(["extend interface",t,we("implements ",Oe(r," & ")),Oe(n," "),Ee(i)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return Oe(["extend union",t,Oe(r," "),n&&0!==n.length?"= "+Oe(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return Oe(["extend enum",t,Oe(r," "),Ee(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return Oe(["extend input",t,Oe(r," "),Ee(n)]," ")}};function ge(e){return function(t){return Oe([t.description,e(t)],"\n")}}function Oe(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(r))&&void 0!==t?t:""}function Ee(e){return we("{\n",Se(Oe(e,"\n")),"\n}")}function we(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+r:""}function Se(e){return we(" ",e.replace(/\n/g,"\n "))}function ke(e){return-1!==e.indexOf("\n")}function Te(e){return null!=e&&e.some(ke)}function xe(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments;e.name.value,d(r&&1===r.length,39);var n=r[0];d(n.name&&"if"===n.name.value,40);var i=n.value;d(i&&("Variable"===i.kind||"BooleanValue"===i.kind),41),t.push({directive:e,ifArgument:n})}}));return t}(r).every((function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?d(void 0!==(i=t&&t[n.value.name.value]),38):i=n.value.value,"skip"===r.name.value?!i:i}))}function Ne(e,t){return function(e){var t=[];return ve(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function Ie(e){return e&&Ne(["client"],e)&&Ne(["export"],e)}function _e(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new h(42);"FragmentDefinition"===e.kind&&n.push(e)})),void 0===r&&(d(1===n.length,43),r=n[0].name.value),i(i({},e),{definitions:u([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function De(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function Ae(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=t&&t[e.name.value];return d(r,44),r;default:return null}}function Re(e){return{__ref:String(e)}}function Fe(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function Ce(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map((function(e){return Ce(i,e.name,e.value,n)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r)){var o=(n||{})[r.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return Ce(r,t,e,n),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw new h(53);e[t.value]=null}}var Pe=["connection","include","skip","client","rest","export"];function Me(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach((function(e){i[e]=t[e]})),r.connection.key+"("+JSON.stringify(i)+")"}return r.connection.key}var o=e;if(t){var a=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r1)for(var n=new ct,i=1;i1,i=!1,o=arguments[1],a=o;return new r((function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(s){return r.error(s)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:bt,value:function(){return this}}],[{key:"from",value:function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=Ot(t,bt);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(e){return e instanceof Dt}(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(vt("iterator")&&(n=Ot(t,mt)))return new r((function(e){St((function(){if(!e.closed){var r=!0,i=!1,o=void 0;try{for(var a,s=n.call(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(e.next(u),e.closed)return}}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){St((function(){if(!e.closed){for(var r=0;r0}function Bt(e){return e.errors&&e.errors.length>0||!1}Lt(Qt);var Ut="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product);function Kt(){for(var e=[],t=0;t=300&&Gt(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||$t.call(t,"data")||$t.call(t,"errors")||Gt(e,t,"Server response was missing for query '"+(Array.isArray(i)?i.map((function(e){return e.operationName})):i.operationName)+"'."),t}))})).then((function(e){return r.next(e),r.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))})),function(){h&&h.abort()}}))}))},rr=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,tr(t).request)||this;return r.options=t,r}return n(t,e),t}(Xt),nr=Object.prototype,ir=nr.toString,or=nr.hasOwnProperty,ar=Function.prototype.toString,sr=new Map;function ur(e,t){try{return cr(e,t)}finally{sr.clear()}}function cr(e,t){if(e===t)return!0;var r,n,i,o=ir.call(e);if(o!==ir.call(t))return!1;switch(o){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(hr(e,t))return!0;var a=lr(e),s=lr(t),u=a.length;if(u!==s.length)return!1;for(var c=0;c=0&&r.indexOf(n,i)===i))}return!1}function lr(e){return Object.keys(e).filter(fr,e)}function fr(e){return void 0!==this[e]}var pr="{ [native code] }";function hr(e,t){var r=sr.get(e);if(r){if(r.has(t))return!0}else sr.set(e,r=new Set);return r.add(t),!1}var dr,vr,yr=function(e){function t(r){var n,i,o=r.graphQLErrors,a=r.networkError,s=r.errorMessage,u=r.extraInfo,c=e.call(this,s)||this;return c.graphQLErrors=o||[],c.networkError=a||null,c.message=s||(i="",Vt((n=c).graphQLErrors)&&n.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";i+=t+"\n"})),n.networkError&&(i+=n.networkError.message+"\n"),i=i.replace(/\n$/,"")),c.extraInfo=u,c.__proto__=t.prototype,c}return n(t,e),t}(Error);function mr(e){return!!e&&e<7}(vr=dr||(dr={}))[vr.loading=1]="loading",vr[vr.setVariables=2]="setVariables",vr[vr.fetchMore=3]="fetchMore",vr[vr.refetch=4]="refetch",vr[vr.poll=6]="poll",vr[vr.ready=7]="ready",vr[vr.error=8]="error";var br=function(){function e(e,t,r,n){this.observer=e,this.options=t,this.fetch=r,this.shouldFetch=n}return e.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var r=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),r.addObserver(this.observer),(this.concast=r).promise},e.prototype.updateOptions=function(e){return Object.assign(this.options,Kt(e)),this.updatePolling(),this},e.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},e.prototype.updatePolling=function(){var e=this,t=this.pollingInfo,r=this.options.pollInterval;if(r){if((!t||t.interval!==r)&&(d(r,20),!1!==this.shouldFetch)){(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},dr.poll).then(i,i):i())},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},e}(),gr=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,o=t.options,a=e.call(this,(function(e){return a.onSubscribe(e)}))||this;a.observers=new Set,a.subscriptions=new Set,a.observer={next:function(e){(a.lastError||a.isDifferentFromLastResult(e))&&(a.updateLastResult(e),Mt(a.observers,"next",e))},error:function(e){a.updateLastResult(i(i({},a.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:dr.error,loading:!1})),Mt(a.observers,"error",a.lastError=e)}},a.isTornDown=!1,a.options=o,a.queryId=r.generateQueryId();var s=Ue(o.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=r,a.queryInfo=n,a}return n(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=e.subscribe(n)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,r=this.queryInfo.networkStatus||t&&t.networkStatus||dr.ready,n=i(i({},t),{loading:mr(r),networkStatus:r});if(this.isTornDown)return n;var o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("no-cache"===a||"network-only"===a)delete n.partial;else if(!n.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var s=this.queryInfo.getDiff();n.data=s.complete||this.options.returnPartialData?s.result:void 0,s.complete?(n.networkStatus!==dr.loading||"cache-first"!==a&&"cache-only"!==a||(n.networkStatus=dr.ready,n.loading=!1),delete n.partial):n.partial=!0}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e){return!ur(this.lastResultSnapshot,e)},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},r=this.options.fetchPolicy;return"no-cache"!==r&&"cache-and-network"!==r&&(t.fetchPolicy="network-only",t.nextFetchPolicy=r||"cache-first"),e&&!ur(this.options.variables,e)&&(t.variables=this.options.variables=i(i({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,dr.refetch)},t.prototype.fetchMore=function(e){var t=this,r=i(i({},e.query?e:i(i(i({},this.options),e),{variables:i(i({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),n=this.queryManager.generateQueryId();return r.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=dr.fetchMore,this.observe()),this.queryManager.fetchQuery(n,r,dr.fetchMore).then((function(n){var i=n.data,o=e.updateQuery;return o?t.updateQuery((function(e){return o(e,{fetchMoreResult:i,variables:r.variables})})):t.queryManager.cache.writeQuery({query:r.query,variables:r.variables,data:i}),n})).finally((function(){t.queryManager.stopQuery(n),t.reobserve()}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){if(ur(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var t=this.options.fetchPolicy,r=void 0===t?"cache-first":t,n={fetchPolicy:r,variables:e};return"cache-first"!==r&&"no-cache"!==r&&"network-only"!==r&&(n.fetchPolicy="cache-and-network",n.nextFetchPolicy=r),this.reobserve(n,dr.setVariables)},t.prototype.updateQuery=function(e){var t,r=this.queryManager,n=e(r.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(r.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},t.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Ct(e),Vt(e.errors)||delete this.lastError,t},t.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var r=e._subscription._observer;r&&!r.error&&(r.error=Or)}catch(i){}var n=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),n&&this.reobserve().catch((function(e){})),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},t.prototype.newReobserver=function(e){var t=this,r=this.queryManager,n=this.queryId;return r.setObservableQuery(this),new br(this.observer,e?this.options:i({},this.options),(function(e,i){return r.setObservableQuery(t),r.fetchQueryObservable(n,e,i)}),!r.ssrMode&&function(){return!mr(t.queryInfo.networkStatus)})},t.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},t.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(At);function Or(e){}Lt(gr);var Er=function(){return Object.create(null)},wr=Array.prototype,Sr=wr.forEach,kr=wr.slice,Tr=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=Er),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;tthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),Cr=new Dr,Pr=Object.prototype.hasOwnProperty,Mr=void 0===(Rr=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:Rr;function jr(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Lr=[];function qr(e,t){if(!e)throw new Error(t||"assertion failure")}function Qr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Vr=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!Kr(this))return Br(this),this.value[0]},e.prototype.recompute=function(e){return qr(!this.recomputing,"already recomputing"),Br(this),Kr(this)?function(e,t){Hr(e),Cr.withValue(e,Ur,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{jr(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(r){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,Kr(e))return;Gr(e)}(e);return Qr(e.value)}(this,e):Qr(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,zr(this),jr(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Hr(this),Yr(this,(function(t,r){t.setDirty(),$r(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=Lr.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Mr(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),Lr.push(this.deps),this.deps=null)},e.count=0,e}();function Br(e){var t=Cr.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Kr(e)?Wr(t,e):Jr(t,e),t}function Ur(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(r){e.value[1]=r}e.recomputing=!1}function Kr(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function zr(e){Yr(e,Wr)}function Gr(e){Yr(e,Jr)}function Yr(e,t){var r=e.parents.size;if(r)for(var n=Mr(e.parents),i=0;i0&&i===n.length&&r[i-1]===n[i-1]||e.setDirty()),Xr(e,t),Kr(e)||Gr(e)}function Xr(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(Lr.length<100&&Lr.push(r),e.dirtyChildren=null))}function Hr(e){e.childValues.size>0&&e.childValues.forEach((function(t,r){$r(e,r)})),e.forgetDeps(),qr(null===e.dirtyChildren)}function $r(e,t){t.parents.delete(e),e.childValues.delete(t),Xr(e,t)}var Zr={setDirty:!0,dispose:!0,forget:!0};function en(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=Cr.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(jr(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){var n=t.get(e);if(n){var i=r&&Pr.call(Zr,r)?r:"setDirty";Mr(n).forEach((function(e){return e[i]()})),t.delete(e),jr(n)}},n}function tn(){var e=new Tr("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}tn();var rn=new Set;function nn(e,t){void 0===t&&(t=Object.create(null));var r=new Fr(t.max||Math.pow(2,16),(function(e){return e.dispose()})),n=t.keyArgs,i=t.makeCacheKey||tn(),o=function(){var o=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=r.get(o);a||(r.set(o,a=new Vr(e)),a.subscribe=t.subscribe,a.forget=function(){return r.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return r.set(o,a),rn.add(r),Cr.hasValue()||(rn.forEach((function(e){return e.clean()})),rn.clear()),s};function a(e){var t=r.get(e);t&&t.setDirty()}function s(e){var t=r.get(e);if(t)return t.peek()}function u(e){return r.delete(e)}return Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}var on=function(){function e(){this.getFragmentDoc=nn(_e)}return e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read({rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read({query:this.getFragmentDoc(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,returnPartialData:e.returnPartialData,optimistic:t})},e.prototype.writeQuery=function(e){return this.write({dataId:e.id||"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables,broadcast:e.broadcast})},e.prototype.writeFragment=function(e){return this.write({dataId:e.id,result:e.data,variables:e.variables,query:this.getFragmentDoc(e.fragment,e.fragmentName),broadcast:e.broadcast})},e}(),an=function(e,t,r,n,i){this.message=e,this.path=t,this.query=r,this.clientOnly=n,this.variables=i},sn=Object.prototype.hasOwnProperty,un=/^[_a-z][_0-9a-z]*/i;function cn(e){var t=e.match(un);return t?t[0]:e}function ln(e,t,r){return!(!t||"object"!=typeof t)&&(Array.isArray(t)?t.every((function(t){return ln(e,t,r)})):e.selections.every((function(e){if(Qe(e)&&xe(e,r)){var n=Le(e);return sn.call(t,n)&&(!e.selectionSet||ln(e.selectionSet,t[n],r))}return!0})))}function fn(e){return null!==e&&"object"==typeof e&&!Fe(e)&&!Array.isArray(e)}var pn,hn,dn=Object.create(null),vn=function(){return dn},yn=Object.create(null),mn=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return Fe(e)?r.get(e.__ref,t):e&&e[t]},this.canRead=function(e){return Fe(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Re(e);if(Fe(e))return e;var n=r.policies.identify(e)[0];if(n){var i=Re(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return i({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),sn.call(this.data,e)){var r=this.data[e];if(r&&sn.call(r,t))return r[t]}return"__typename"===t&&sn.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof On?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),sn.call(this.data,e)?this.data[e]:this instanceof On?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r=this,n=this.lookup(e),i=new ct(En).merge(n,t);if(this.data[e]=i,i!==n&&(delete this.refs[e],this.group.caching)){var o=Object.create(null);n||(o.__exists=1),Object.keys(t).forEach((function(e){if(!n||n[e]!==i[e]){o[e]=1;var t=cn(e);t===e||r.policies.hasKeyArgs(i.__typename,t)||(o[t]=1),void 0!==i[e]||r instanceof On||delete i[e]}})),Object.keys(o).forEach((function(t){return r.group.dirty(e,t)}))}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var o=Object.create(null),a=!1,s=!0,u={DELETE:dn,INVALIDATE:yn,isReference:Fe,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||Re(e)}:t,{store:r})}};if(Object.keys(n).forEach((function(c){var l=cn(c),f=n[c];if(void 0!==f){var p="function"==typeof t?t:t[c]||t[l];if(p){var h=p===vn?dn:p(f,i(i({},u),{fieldName:l,storeFieldName:c,storage:r.getStorage(e,c)}));h===yn?r.group.dirty(e,c):(h===dn&&(h=void 0),h!==f&&(o[c]=h,a=!0,f=h))}void 0!==f&&(s=!1)}})),a)return this.merge(e,o),s&&(this instanceof On?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=vn,n):vn)}return!1},e.prototype.evict=function(e){var t=!1;return e.id&&(sn.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof On&&(t=this.parent.evict(e)||t),(e.fieldName||t)&&this.group.dirty(e.id,e.fieldName||"__exists")),t},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach((function(t){sn.call(e.policies.rootTypenamesById,t)||r.push(t)})),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(r){e&&sn.call(e,r)||t.delete(r)})),e){var r=e.__META,n=o(e,["__META"]);Object.keys(n).forEach((function(e){t.merge(e,n[e])})),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof On?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){sn.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof On;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!sn.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=new Set([this.data[e]]),n=function(e){return null!==e&&"object"==typeof e};r.forEach((function(e){Fe(e)?t[e.__ref]=!0:n(e)&&Object.values(e).filter(n).forEach(r.add,r)}))}return this.refs[e]},e.prototype.makeCacheKey=function(){for(var e=[],t=0;t0;if(p&&!c)throw f.missing[0];return{result:f.result,missing:f.missing,complete:!p}},e.prototype.isFresh=function(e,t,r,n){if(wn(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,i=e.context;if(Fe(n)&&!i.policies.rootTypenamesById[n.__ref]&&!i.store.has(n.__ref))return{result:{},missing:[Sn(new h(4),i)]};var o=i.variables,a=i.policies,s=i.store,u=[],c={result:null},l=s.getFieldValue(n,"__typename");function f(){return c.missing||(c.missing=[])}function p(e){var t;return e.missing&&(t=f()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof l&&!a.rootIdsByTypename[l]&&u.push({__typename:l});var v=new Set(r.selections);return v.forEach((function(e){var r;if(xe(e,o))if(Qe(e)){var s=a.readField({fieldName:e.name.value,field:e,variables:i.variables,from:n},i),c=Le(e);i.path.push(c);var y=i.clientOnly;i.clientOnly=y||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0===s?et.added(e)||f().push(Sn(new h(5),i)):Array.isArray(s)?s=p(t.executeSubSelectedArray({field:e,array:s,context:i})):e.selectionSet&&null!=s&&(s=p(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:s,context:i}))),void 0!==s&&u.push(((r={})[c]=s,r)),i.clientOnly=y,d(i.path.pop()===c)}else{var m=Ae(e,i.fragmentMap);m&&a.fragmentMatches(m,l)&&m.selectionSet.selections.forEach(v.add,v)}})),c.result=at(u),this.knownResults.set(c.result,r),c},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.context;function a(e,r){return e.missing&&(t=t||[]).push.apply(t,e.missing),d(o.path.pop()===r),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),{result:i=i.map((function(e,t){return null===e?null:(o.path.push(t),Array.isArray(e)?a(r.executeSubSelectedArray({field:n,array:e,context:o}),t):n.selectionSet?a(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,context:o}),t):(d(o.path.pop()===t),e))})),missing:t}},e}(),Tn=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e){var t=e.query,r=e.result,n=e.dataId,o=e.store,a=e.variables,s=Ue(t),u=new ct;a=i(i({},Ye(s)),a);var c=this.processSelectionSet({result:r||Object.create(null),dataId:n,selectionSet:s.selectionSet,mergeTree:{map:new Map},context:{store:o,written:Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:a,varString:JSON.stringify(a),fragmentMap:De(ze(t))}});if(!Fe(c))throw new h(7);return o.retain(c.__ref),c},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,u=s.identify(n,i,o.fragmentMap),c=u[0],l=u[1];if("string"==typeof(r=r||c)){var f=o.written[r]||(o.written[r]=[]),p=Re(r);if(f.indexOf(i)>=0)return p;if(f.push(i),this.reader&&this.reader.isFresh(n,p,i,o))return p}var d=Object.create(null);l&&(d=o.merge(d,l));var v=r&&s.rootTypenamesById[r]||qe(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof v&&(d.__typename=v);var y=new Set(i.selections);if(y.forEach((function(e){var r;if(xe(e,o.variables))if(Qe(e)){var i=Le(e),u=n[i];if(void 0!==u){var c=s.getStoreFieldName({typename:v,fieldName:e.name.value,field:e,variables:o.variables}),l=Nn(a,c),f=t.processFieldValue(u,e,o,l),p=e.selectionSet&&o.store.getFieldValue(f,"__typename")||void 0,m=s.getMergeFunction(v,e.name.value,p);m?l.info={field:e,typename:v,merge:m}:In(a,c),d=o.merge(d,((r={})[c]=f,r))}else if(s.usingPossibleTypes&&!Ne(["defer","client"],e))throw new h(8)}else{var b=Ae(e,o.fragmentMap);b&&s.fragmentMatches(b,v,n,o.variables)&&b.selectionSet.selections.forEach(y.add,y)}})),"string"==typeof r){var m=Re(r);return a.map.size&&(d=this.applyMerges(a,m,d,o)),o.store.merge(r,d),m}return d},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,r,Nn(n,o));return In(n,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):e},e.prototype.applyMerges=function(e,t,r,n,o){var a,s=this;if(e.map.size&&!Fe(r)){var u,c=Array.isArray(r)||!Fe(t)&&!fn(t)?void 0:t,l=r;c&&!o&&(o=[Fe(c)?c.__ref:c]);var f=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){o&&o.push(t);var r=f(c,t),i=f(l,t),a=s.applyMerges(e,r,i,n,o);a!==i&&(u=u||new Map).set(t,a),o&&d(o.pop()===t)})),u&&(r=Array.isArray(l)?l.slice(0):i({},l),u.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,o&&(a=n.store).getStorage.apply(a,o)):r},e}(),xn=[];function Nn(e,t){var r=e.map;return r.has(t)||r.set(t,xn.pop()||{map:new Map}),r.get(t)}function In(e,t){var r=e.map,n=r.get(t);!n||n.info||n.map.size||(xn.push(n),r.delete(t))}var _n=new Dr,Dn=new WeakMap;function An(e){var t=Dn.get(e);return t||Dn.set(e,t={vars:new Set,dep:en()}),t}function Rn(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){An(e).dep.dirty(n),Fn(e)}));var a=Array.from(r);r.clear(),a.forEach((function(t){return t(e)}))}}else{var s=_n.getValue();s&&(i(s),An(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),An(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}function Fn(e){e.broadcastWatches&&e.broadcastWatches()}function Cn(e){return void 0!==e.args?e.args:e.field?je(e.field,e.variables):null}var Pn=function(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=void 0!==n?{id:n}:void 0!==i?{_id:i}:void 0),void 0===n&&(n=i),void 0!==n))return r+":"+("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))},Mn=function(){},jn=function(e,t){return t.fieldName},Ln=function(e,t,r){return(0,r.mergeObjects)(e,t)},qn=function(e,t){return t},Qn=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=i({dataIdFromObject:Pn},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,r){var n=t&&r?qe(e,t,r):e.__typename;if(n===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:n,selectionSet:t,fragmentMap:r},a=n&&this.getTypePolicy(n),s=a&&a.keyFn||this.config.dataIdFromObject;s;){var u=s(e,o);if(!Array.isArray(u)){i=u;break}s=Kn(u)}return i=i?String(i):void 0,o.keyObject?[i,o.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var n=e[r],i=n.queryType,a=n.mutationType,s=n.subscriptionType,u=o(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),sn.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?Ln:!1===t?qn:e.merge}a(n,t.merge),n.keyFn=!1===i?Mn:Array.isArray(i)?Kn(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach((function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?jn:Array.isArray(s)?Un(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||jn)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(d(!n||n===e,1),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(un);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!sn.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);n&&n.size&&n.forEach((function(e){var n=t.getTypePolicy(e),i=n.fields,a=o(n,["fields"]);Object.assign(r,a),Object.assign(r.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&this.updateTypePolicy(e,Kt.apply(void 0,i.splice(0))),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},c=!(!r||!this.fuzzySubtypes.size),l=0;l=e.lastRequestId){if(o&&"none"===r.errorPolicy)throw e.markError(new yr({graphQLErrors:i.errors}));e.markResult(i,r,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||dr.ready};return o&&"ignore"!==r.errorPolicy&&(a.errors=i.errors),a}),(function(t){var r=t.hasOwnProperty("graphQLErrors")?t:new yr({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchQueryObservable=function(e,t,r){var n=this;void 0===r&&(r=dr.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=a.networkStatus,u=t.fetchPolicy,c=void 0===u?"cache-first":u,l=t.errorPolicy,f=void 0===l?"none":l,p=t.returnPartialData,h=void 0!==p&&p,d=t.notifyOnNetworkStatusChange,v=void 0!==d&&d,y=t.context,m=void 0===y?{}:y;("cache-first"===c||"cache-and-network"===c||"network-only"===c||"no-cache"===c)&&v&&"number"==typeof s&&s!==r&&mr(r)&&("cache-first"!==c&&(c="cache-and-network"),h=!0);var b=Object.assign({},t,{query:i,variables:o,fetchPolicy:c,errorPolicy:f,returnPartialData:h,notifyOnNetworkStatusChange:v,context:m}),g=function(e){return b.variables=e,n.fetchQueryByPolicy(a,b,r)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return O.cancel(e)}))}));var O=new Qt(this.transform(b.query).hasClientExports?this.localState.addExportedVariables(b.query,b.variables,b.context).then(g):g(b.variables));return O.cleanup((function(){n.fetchCancelFns.delete(e);var r=t.nextFetchPolicy;r&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"==typeof r?r.call(t,t.fetchPolicy||"cache-first"):r)})),O},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context;e.init({document:o,variables:a,networkStatus:r});var f=function(){return e.getDiff(a)},p=function(t,r){void 0===r&&(r=e.networkStatus||dr.loading);var s=t.result,u=function(e){return At.of(i({data:e,loading:mr(r),networkStatus:r},t.complete?null:{partial:!0}))};return n.transform(o).hasForcedResolvers?n.localState.runResolvers({document:o,remoteResult:{data:s},context:l,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return u(e.data)})):u(s)},h=function(t){return n.getResultsFromLink(e,t,{variables:a,context:l,fetchPolicy:s,errorPolicy:u})};switch(s){default:case"cache-first":return(d=f()).complete?[p(d,e.markReady())]:c?[p(d),h(!0)]:[h(!0)];case"cache-and-network":var d;return(d=f()).complete||c?[p(d),h(!0)]:[h(!0)];case"cache-only":return[p(f(),e.markReady())];case"network-only":return[h(!0)];case"no-cache":return[h(!1)];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Zn(this.cache)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return i(i({},t),{clientAwareness:this.clientAwareness})},e}();function ni(e,t){return Kt(e,t,t.variables&&{variables:i(i({},e.variables),t.variables)})}var ii=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,u=e.ssrForceFetchDelay,c=void 0===u?0:u,l=e.connectToDevTools,f=void 0===l?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:l,p=e.queryDeduplication,d=void 0===p||p,v=e.defaultOptions,y=e.assumeImmutableResults,m=void 0!==y&&y,b=e.resolvers,g=e.typeDefs,O=e.fragmentMatcher,E=e.name,w=e.version,S=e.link;if(S||(S=r?new rr({uri:r,credentials:n,headers:i}):Xt.empty()),!o)throw new h(9);this.link=S,this.cache=o,this.disableNetworkFetches=s||c>0,this.queryDeduplication=d,this.defaultOptions=v||{},this.typeDefs=g,c&&setTimeout((function(){return t.disableNetworkFetches=!1}),c),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version="3.3.19",this.localState=new Jn({cache:o,client:this,resolvers:b,fragmentMatcher:O}),this.queryManager=new ri({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:s,clientAwareness:{name:E,version:w},localState:this.localState,assumeImmutableResults:m,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=ni(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=i(i({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=ni(this.defaultOptions.query,e)),d("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=i(i({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=ni(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Ht(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),oi=new Map,ai=new Map,si=!0,ui=!1;function ci(e){return e.replace(/[\s,]+/g," ").trim()}function li(e){var t=new Set,r=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=ci((a=e.loc).source.body.substring(a.start,a.end)),o=ai.get(n);o&&!o.has(i)?si&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||ai.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var a})),l(l({},e),{definitions:r})}function fi(e){var t=ci(e);if(!oi.has(t)){var r=function(e,t){return new le(e,t).parseDocument()}(e,{experimentalFragmentVariables:ui});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");oi.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(li(r)))}return oi.get(t)}function pi(e){for(var t=[],r=1;r0&&(l=new yr({graphQLErrors:c})),e=i(i({},e),{data:n,loading:o,networkStatus:u,error:l,called:!0}),o);else if(l)Object.assign(e,{data:(a.currentObservable.getLastResult()||{}).data});else{var f=a.currentObservable.options.fetchPolicy;if(t.partialRefetch&&s&&(!n||0===Object.keys(n).length)&&"cache-only"!==f)return Object.assign(e,{loading:!0,networkStatus:dr.loading}),e.refetch(),e}}e.client=a.client,a.setOptions(t,!0);var p=a.previous.result;return a.previous.loading=p&&p.loading||!1,e.previousData=p&&(p.data||p.previousData),a.previous.result=e,a.currentObservable&&a.currentObservable.resetQueryStoreErrors(),e},a.obsRefetch=function(e){var t;return null===(t=a.currentObservable)||void 0===t?void 0:t.refetch(e)},a.obsFetchMore=function(e){return a.currentObservable.fetchMore(e)},a.obsUpdateQuery=function(e){return a.currentObservable.updateQuery(e)},a.obsStartPolling=function(e){var t;null===(t=a.currentObservable)||void 0===t||t.startPolling(e)},a.obsStopPolling=function(){var e;null===(e=a.currentObservable)||void 0===e||e.stopPolling()},a.obsSubscribeToMore=function(e){return a.currentObservable.subscribeToMore(e)},a.onNewData=o,a}return n(t,e),t.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,r=e.query;return(t||r!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!t),this.previous.query=r),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},t.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:dr.ready,called:!1,data:void 0}]},t.prototype.fetchData=function(){var e=this,t=this.getOptions();return!t.skip&&!1!==t.ssr&&new Promise((function(t){return e.startQuerySubscription(t)}))},t.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,r=void 0!==t&&t;return this.isMounted=!0,r&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},t.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},t.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=i(i({},t.variables),this.lazyOptions.variables),t.context=i(i({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},t.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},t.prototype.getExecuteResult=function(){var e=this.getQueryResult();return this.startQuerySubscription(),e},t.prototype.getExecuteSsrResult=function(){var e=this.getOptions(),t=e.ssr,r=e.skip,n=!1===t,o=this.refreshClient().client.disableNetworkFetches,a=i({loading:!0,networkStatus:dr.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(n&&(this.ssrInitiated()||o))return this.previous.result=a,a;if(this.ssrInitiated()){var s=this.getQueryResult()||a;return s.loading&&!r&&this.context.renderPromises.addQueryPromise(this,(function(){return null})),s}},t.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,wi.Query);var t=e.displayName||"Query";return!this.ssrInitiated()||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e.fetchPolicy="cache-first"),i(i({},e),{displayName:t,context:e.context})},t.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var e=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=i(i({},e),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery(i({},e)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,e)}},t.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var e=i(i({},this.prepareObservableQueryOptions()),{children:null});ur(e,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=e,this.currentObservable.setOptions(e).catch((function(){})))}}else this.initializeObservableQuery()},t.prototype.startQuerySubscription=function(e){var t=this;void 0===e&&(e=this.onNewData),this.currentSubscription||this.getOptions().skip||(this.currentSubscription=this.currentObservable.subscribe({next:function(r){var n=r.loading,i=r.networkStatus,o=r.data,a=t.previous.result;a&&a.loading===n&&a.networkStatus===i&&ur(a.data,o)||e()},error:function(r){if(t.resubscribeToQuery(),!r.hasOwnProperty("graphQLErrors"))throw r;var n=t.previous.result;(n&&n.loading||!ur(r,t.previous.error))&&(t.previous.error=r,e())}}))},t.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable;if(e){var t=e.getLastError(),r=e.getLastResult();e.resetLastResults(),this.startQuerySubscription(),Object.assign(e,{lastError:t,lastResult:r})}},t.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var e=this.previous.result,t=e.data,r=e.loading,n=e.error;if(!r){var i=this.getOptions(),o=i.query,a=i.variables,s=i.onCompleted,u=i.onError,c=i.skip;if(this.previousOptions&&!this.previous.loading&&ur(this.previousOptions.query,o)&&ur(this.previousOptions.variables,a))return;!s||n||c?u&&n&&u(n):s(t)}}},t.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},t.prototype.removeObservable=function(e){this.currentObservable&&(this.currentObservable.tearDownQuery(),e&&delete this.currentObservable)},t.prototype.observableQueryFields=function(){var e;return{variables:null===(e=this.currentObservable)||void 0===e?void 0:e.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},t}(function(){function e(e,t){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=e||{},this.context=t||{}}return e.prototype.getOptions=function(){return this.options},e.prototype.setOptions=function(e,t){void 0===t&&(t=!1),t&&!ur(this.options,e)&&(this.previousOptions=this.options),this.options=e},e.prototype.unmount=function(){this.isMounted=!1},e.prototype.refreshClient=function(){var e=this.options&&this.options.client||this.context&&this.context.client;d(!!e,29);var t=!1;return e!==this.client&&(t=!0,this.client=e,this.cleanup()),{client:this.client,isNew:t}},e.prototype.verifyDocumentType=function(e,t){var r=function(e){var t,r,n=Ti.get(e);if(n)return n;d(!!e&&!!e.kind,34);var i=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),o=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),a=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),s=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));d(!i.length||o.length||a.length||s.length,35),d(o.length+a.length+s.length<=1,36),r=o.length?wi.Query:wi.Mutation,o.length||a.length||(r=wi.Subscription);var u=o.length?o:a.length?a:s;d(1===u.length,37);var c=u[0];t=c.variableDefinitions||[];var l={name:c.name&&"Name"===c.name.kind?c.name.value:"data",type:r,variables:t};return Ti.set(e,l),l}(e);xi(t),xi(r.type),d(r.type===t,30)},e}());function Ii(e,r,n){void 0===n&&(n=!1);var o=t.exports.useContext(Ei()),a=t.exports.useReducer((function(e){return e+1}),0),s=a[0],u=a[1],c=r?i(i({},r),{query:e}):{query:e},l=t.exports.useRef(),f=l.current||(l.current=new Ni({options:c,context:o,onNewData:function(){f.ssrInitiated()?u():Promise.resolve().then((function(){return l.current&&u()}))}}));f.setOptions(c),f.context=o;var p,h,d,v={options:i(i({},c),{onError:void 0,onCompleted:void 0}),context:o,tick:s},y=(p=function(){return n?f.executeLazy():f.execute()},h=v,(d=t.exports.useRef()).current&&ur(h,d.current.key)||(d.current={key:h,value:p()}),d.current.value),m=n?y[1]:y;return t.exports.useEffect((function(){return function(){return f.cleanup()}}),[]),t.exports.useEffect((function(){return f.afterExecute({lazy:n})}),[m.loading,m.networkStatus,m.error,m.data]),y}function _i(e,t){return Ii(e,t,!0)}export{ii as A,Wn as I,ki as a,gi as g,_i as u}; diff --git a/assets/index.302ac48d.css b/assets/index.302ac48d.css new file mode 100644 index 0000000..4920091 --- /dev/null +++ b/assets/index.302ac48d.css @@ -0,0 +1 @@ +.blog-view{max-width:960px;margin:10px auto 0}.fzj-list-box{padding:0 12px 12px}.fzj-list{height:100%}.fzj-item{margin-bottom:10px}@media screen and (min-width: 768px){.fzj-list{display:flex;flex-wrap:wrap}.fzj-item{max-width:50%;min-width:50%;padding:8px;margin:0}}.fzj-card{width:100%;height:100%;position:relative;color:#343434;margin-bottom:12px;padding:24px 20px;background-color:#fff;font-size:14px;transition:all .3s ease;cursor:pointer}.fzj-card:hover{transition:all .3s ease;box-shadow:var(--shadow-floating);background-color:#fff}.fzj-card:last-child{margin-bottom:0}.fzj-card .title{font-size:18px;margin-bottom:8px;font-weight:bold;position:relative}.fzj-card .title span{background:linear-gradient(to bottom,transparent 50%,#e2e0da 50%)}.fzj-card img{max-width:640px!important;text-align:center}.fzj-card .issues{font-size:14px;position:absolute;top:0;right:0;display:inline-block;padding:5px 10px 0;line-height:20px;font-family:"lab";vertical-align:text-bottom;color:#666}.fzj-card .labels{margin-top:12px}.data-loading{text-align:center;font-size:14px;font-weight:bold}.loading-box{position:fixed;width:100%;display:flex;justify-content:center;align-items:center;height:100%}.loading-box .error-icon{width:120px;margin-top:-20vh} diff --git a/assets/index.39fc9160.js b/assets/index.39fc9160.js new file mode 100644 index 0000000..61a5950 --- /dev/null +++ b/assets/index.39fc9160.js @@ -0,0 +1 @@ +import{R as e}from"./react.434ff2b9.js";const t=({owner:t})=>e.createElement("a",{className:"gh-stats-card",href:`https://github.com/${t}`,target:"_blank",rel:"noreferrer"},e.createElement("img",{src:`https://lencx-stats.vercel.app/api/?username=${t}&show_icons=true&bg_color=320,323031,84a59d&icon_color=b0c4b1&title_color=eec170&text_color=a2a392&include_all_commits=true`,alt:`${t} stats`}));t.defaultProps={owner:"lencx"};var l=t;const r=({owner:t})=>e.createElement("a",{className:"gh-wakatime-card",href:`https://github.com/${t}`,target:"_blank",rel:"noreferrer"},e.createElement("img",{src:`https://lencx-stats.vercel.app/api/wakatime?username=${t}&layout=compact&bg_color=150,323031,84a59d&title_color=eec170&text_color=a2a392`,alt:`${t}'s wakatime`}));r.defaultProps={owner:"lencx"};var a=r;const c=({repo:t,site:l,owner:r,name:a,desc:c})=>e.createElement("tr",null,e.createElement("td",null,e.createElement("a",{href:l||`https://github.com/${r}/${t}`},a||`${r}/${t}`)),e.createElement("td",null,c),e.createElement("td",null,e.createElement("div",null,e.createElement("img",{alt:"Stars",src:`https://img.shields.io/github/stars/${r}/${t}?style=plastic&labelColor=373f51&color=e07a5f`}))),e.createElement("td",null,e.createElement("div",null,e.createElement("img",{alt:"Forks",src:`https://img.shields.io/github/forks/${r}/${t}?style=plastic&labelColor=373f51&color=e07a5f`}))));c.defaultProps={owner:"lencx"};var n=c;function s(){return e.createElement("div",{className:"project-view"},e.createElement("h2",null,"Open Source"),e.createElement("h3",null,"Stats"),e.createElement("div",{className:"gh-card-box"},e.createElement(l,null),e.createElement(a,null)),e.createElement("h3",null,"Projects"),e.createElement("div",{className:"repos"},e.createElement("table",null,e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"📦 Projects"),e.createElement("th",null,"📃 Description"),e.createElement("th",null,"⭐ Stars"),e.createElement("th",null,"📚 Forks"))),e.createElement("tbody",null,e.createElement(n,{repo:"z",desc:"〽️ 浮之静"}),e.createElement(n,{repo:"awesome",desc:"😎 Awesome lists about all kinds of interesting topics"}),e.createElement(n,{repo:"create-mpl",desc:"⚡️ Create a project in seconds!"}),e.createElement(n,{repo:"vite-plugin-rsw",desc:"🦀 wasm-pack plugin for Vite"}),e.createElement(n,{repo:"download-github",desc:"⬇️ Download directory from a GitHub repo."}),e.createElement(n,{repo:"rsw-node",desc:"⚪️ `wasm-pack build` executed in remote deployment"}),e.createElement(n,{repo:"learn-wasm",desc:"🎲 Learning WebAssembly"}),e.createElement(n,{repo:"rust-learn",desc:"🦀 Learning Rust"}),e.createElement(n,{repo:"code-snippets",desc:"✍️ code - 手写系列"}),e.createElement(n,{repo:"rgd",desc:"🍱 GitHub Discussions API - RSS & JSON"}),e.createElement(n,{repo:"woap",desc:"🌀 GitHub Discussions - 生成微信文章 (支持二维码及脚注形式)"}),e.createElement(n,{repo:"monthly",desc:"📰 学习总结,输出打卡"})))))}export{s as default}; diff --git a/assets/index.3bdcf399.js b/assets/index.3bdcf399.js new file mode 100644 index 0000000..ef3c1bc --- /dev/null +++ b/assets/index.3bdcf399.js @@ -0,0 +1 @@ +import{R as e}from"./react.434ff2b9.js";function t(){return e.createElement("div",{className:"about-view"},e.createElement("img",{className:"pic",src:"https://user-images.githubusercontent.com/16164244/119298318-607bbf80-bc8f-11eb-98da-e8277efe3249.png"}),e.createElement("div",{className:"fzj-desc lencx"},e.createElement("p",{className:"notes"},"lencx {折腾 ⇌ 迷茫 ⇌ 思考]ing,在路上..."),e.createElement("p",null,"生命在于折腾,折腾多了,必然迷茫,迷茫了,就停下来思考,想通了就重新上路。"),e.createElement("p",null,"在路上会禁不住“诱惑”而去折腾,折腾了,又迷茫,迷茫了,又思考,一直在路上。"),e.createElement("p",null,"循环往复,生生不息...")),e.createElement("div",{className:"fzj-desc"},"项目 ",e.createElement("a",{href:"https://github.com/lencx/z/discussions"},"Z")," ","字母由来:取首字母 FZJ,因过于繁琐,故取其中间字母 Z,Z 是一个很有意思的字母,像弹簧,蓄力愈久,反弹的力量就愈大。很符合 «浮之静» 之本意。"))}export{t as default}; diff --git a/assets/index.4b53168e.css b/assets/index.4b53168e.css new file mode 100644 index 0000000..449ab40 --- /dev/null +++ b/assets/index.4b53168e.css @@ -0,0 +1 @@ +.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.markdown-body .anchor{float:left;line-height:1;margin-left:-20px;padding-right:4px}.markdown-body .anchor:focus{outline:none}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:#1b1f23;vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%3E%3Cpath fill-rule='evenodd' d='M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z'%3E%3C/path%3E%3C/svg%3E")}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#24292e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:16px;line-height:1.5;word-wrap:break-word}.markdown-body details{display:block}.markdown-body summary{display:list-item}.markdown-body a{background-color:initial}.markdown-body a:active,.markdown-body a:hover{outline-width:0}.markdown-body strong{font-weight:inherit;font-weight:bolder}.markdown-body h1{font-size:2em;margin:.67em 0}.markdown-body img{border-style:none}.markdown-body code,.markdown-body kbd,.markdown-body pre{font-family:monospace,monospace;font-size:1em}.markdown-body hr{box-sizing:initial;height:0;overflow:visible}.markdown-body input{font:inherit;margin:0}.markdown-body input{overflow:visible}.markdown-body [type=checkbox]{box-sizing:border-box;padding:0}.markdown-body *{box-sizing:border-box}.markdown-body input{font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body a{color:#0366d6;text-decoration:none}.markdown-body a:hover{text-decoration:underline}.markdown-body strong{font-weight:600}.markdown-body hr{height:0;margin:15px 0;overflow:hidden;background:transparent;border:0;border-bottom:1px solid #dfe2e5}.markdown-body hr:after,.markdown-body hr:before{display:table;content:""}.markdown-body hr:after{clear:both}.markdown-body table{border-spacing:0;border-collapse:collapse}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:0;margin-bottom:0}.markdown-body h1{font-size:32px}.markdown-body h1,.markdown-body h2{font-weight:600}.markdown-body h2{font-size:24px}.markdown-body h3{font-size:20px}.markdown-body h3,.markdown-body h4{font-weight:600}.markdown-body h4{font-size:16px}.markdown-body h5{font-size:14px}.markdown-body h5,.markdown-body h6{font-weight:600}.markdown-body h6{font-size:12px}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0}.markdown-body ol,.markdown-body ul{padding-left:0;margin-top:0;margin-bottom:0}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ol ol ol,.markdown-body ol ul ol,.markdown-body ul ol ol,.markdown-body ul ul ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body code,.markdown-body pre{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:12px}.markdown-body pre{margin-top:0;margin-bottom:0}.markdown-body input::-webkit-inner-spin-button,.markdown-body input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;appearance:none}.markdown-body :checked+.radio-label{position:relative;z-index:1;border-color:#0366d6}.markdown-body .border{border:1px solid #e1e4e8!important}.markdown-body .border-0{border:0!important}.markdown-body .border-bottom{border-bottom:1px solid #e1e4e8!important}.markdown-body .rounded-1{border-radius:3px!important}.markdown-body .bg-white{background-color:#fff!important}.markdown-body .bg-gray-light{background-color:#fafbfc!important}.markdown-body .text-gray-light{color:#6a737d!important}.markdown-body .my-2{margin-top:8px!important;margin-bottom:8px!important}.markdown-body .pl-3,.markdown-body .px-3{padding-left:16px!important}.markdown-body .px-3{padding-right:16px!important}.markdown-body .f6{font-size:12px!important}.markdown-body .lh-condensed{line-height:1.25!important}.markdown-body .text-bold{font-weight:600!important}.markdown-body .pl-c{color:#6a737d}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:#005cc5}.markdown-body .pl-e,.markdown-body .pl-en{color:#6f42c1}.markdown-body .pl-s .pl-s1,.markdown-body .pl-smi{color:#24292e}.markdown-body .pl-ent{color:#22863a}.markdown-body .pl-k{color:#d73a49}.markdown-body .pl-pds,.markdown-body .pl-s,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sra,.markdown-body .pl-sr .pl-sre{color:#032f62}.markdown-body .pl-smw,.markdown-body .pl-v{color:#e36209}.markdown-body .pl-bu{color:#b31d28}.markdown-body .pl-ii{color:#fafbfc;background-color:#b31d28}.markdown-body .pl-c2{color:#fafbfc;background-color:#d73a49}.markdown-body .pl-c2:before{content:"^M"}.markdown-body .pl-sr .pl-cce{font-weight:700;color:#22863a}.markdown-body .pl-ml{color:#735c0f}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:700;color:#005cc5}.markdown-body .pl-mi{font-style:italic;color:#24292e}.markdown-body .pl-mb{font-weight:700;color:#24292e}.markdown-body .pl-md{color:#b31d28;background-color:#ffeef0}.markdown-body .pl-mi1{color:#22863a;background-color:#f0fff4}.markdown-body .pl-mc{color:#e36209;background-color:#ffebda}.markdown-body .pl-mi2{color:#f6f8fa;background-color:#005cc5}.markdown-body .pl-mdr{font-weight:700;color:#6f42c1}.markdown-body .pl-ba{color:#586069}.markdown-body .pl-sg{color:#959da5}.markdown-body .pl-corl{text-decoration:underline;color:#032f62}.markdown-body .mb-0{margin-bottom:0!important}.markdown-body .my-2{margin-bottom:8px!important}.markdown-body .my-2{margin-top:8px!important}.markdown-body .pl-0{padding-left:0!important}.markdown-body .py-0{padding-top:0!important;padding-bottom:0!important}.markdown-body .pl-1{padding-left:4px!important}.markdown-body .pl-2{padding-left:8px!important}.markdown-body .py-2{padding-top:8px!important;padding-bottom:8px!important}.markdown-body .pl-3{padding-left:16px!important}.markdown-body .pl-4{padding-left:24px!important}.markdown-body .pl-5{padding-left:32px!important}.markdown-body .pl-6{padding-left:40px!important}.markdown-body .pl-7{padding-left:48px!important}.markdown-body .pl-8{padding-left:64px!important}.markdown-body .pl-9{padding-left:80px!important}.markdown-body .pl-10{padding-left:96px!important}.markdown-body .pl-11{padding-left:112px!important}.markdown-body .pl-12{padding-left:128px!important}.markdown-body hr{border-bottom-color:#eee}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;line-height:10px;color:#444d56;vertical-align:middle;background-color:#fafbfc;border:1px solid #d1d5da;border-radius:3px;box-shadow:inset 0 -1px #d1d5da}.markdown-body:after,.markdown-body:before{display:table;content:""}.markdown-body:after{clear:both}.markdown-body>:first-child{margin-top:0!important}.markdown-body>:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body blockquote,.markdown-body details,.markdown-body dl,.markdown-body ol,.markdown-body p,.markdown-body pre,.markdown-body table,.markdown-body ul{margin-top:0;margin-bottom:16px}.markdown-body hr{height:.25em;padding:0;margin:24px 0;background-color:#e1e4e8;border:0}.markdown-body blockquote{padding:0 1em;color:#6a737d;border-left:.25em solid #dfe2e5}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.markdown-body h1{font-size:2em}.markdown-body h1,.markdown-body h2{padding-bottom:.3em;border-bottom:1px solid #eaecef}.markdown-body h2{font-size:1.5em}.markdown-body h3{font-size:1.25em}.markdown-body h4{font-size:1em}.markdown-body h5{font-size:.875em}.markdown-body h6{font-size:.85em;color:#6a737d}.markdown-body ol,.markdown-body ul{padding-left:2em}.markdown-body ol ol,.markdown-body ol ul,.markdown-body ul ol,.markdown-body ul ul{margin-top:0;margin-bottom:0}.markdown-body li{word-wrap:break-all}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body table{display:block;width:100%;overflow:auto}.markdown-body table th{font-weight:600}.markdown-body table td,.markdown-body table th{padding:6px 13px;border:1px solid #dfe2e5}.markdown-body table tr{background-color:#fff;border-top:1px solid #c6cbd1}.markdown-body table tr:nth-child(2n){background-color:#f6f8fa}.markdown-body img{max-width:100%;box-sizing:initial;background-color:#fff}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body code{padding:.2em .4em;margin:0;font-size:85%;background-color:#1b1f230d;border-radius:3px}.markdown-body pre{word-wrap:normal}.markdown-body pre>code{padding:0;margin:0;font-size:100%;word-break:normal;white-space:pre;background:transparent;border:0}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:#f6f8fa;border-radius:3px}.markdown-body pre code{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:initial;border:0}.markdown-body .commit-tease-sha{display:inline-block;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:90%;color:#444d56}.markdown-body .full-commit .btn-outline:not(:disabled):hover{color:#005cc5;border-color:#005cc5}.markdown-body .blob-wrapper{overflow-x:auto;overflow-y:hidden}.markdown-body .blob-wrapper-embedded{max-height:240px;overflow-y:auto}.markdown-body .blob-num{width:1%;min-width:50px;padding-right:10px;padding-left:10px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:12px;line-height:20px;color:#1b1f234d;text-align:right;white-space:nowrap;vertical-align:top;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.markdown-body .blob-num:hover{color:#1b1f2399}.markdown-body .blob-num:before{content:attr(data-line-number)}.markdown-body .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.markdown-body .blob-code-inner{overflow:visible;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:12px;color:#24292e;word-wrap:normal;white-space:pre}.markdown-body .pl-token.active,.markdown-body .pl-token:hover{cursor:pointer;background:#ffea7f}.markdown-body .tab-size[data-tab-size="1"]{-moz-tab-size:1;tab-size:1}.markdown-body .tab-size[data-tab-size="2"]{-moz-tab-size:2;tab-size:2}.markdown-body .tab-size[data-tab-size="3"]{-moz-tab-size:3;tab-size:3}.markdown-body .tab-size[data-tab-size="4"]{-moz-tab-size:4;tab-size:4}.markdown-body .tab-size[data-tab-size="5"]{-moz-tab-size:5;tab-size:5}.markdown-body .tab-size[data-tab-size="6"]{-moz-tab-size:6;tab-size:6}.markdown-body .tab-size[data-tab-size="7"]{-moz-tab-size:7;tab-size:7}.markdown-body .tab-size[data-tab-size="8"]{-moz-tab-size:8;tab-size:8}.markdown-body .tab-size[data-tab-size="9"]{-moz-tab-size:9;tab-size:9}.markdown-body .tab-size[data-tab-size="10"]{-moz-tab-size:10;tab-size:10}.markdown-body .tab-size[data-tab-size="11"]{-moz-tab-size:11;tab-size:11}.markdown-body .tab-size[data-tab-size="12"]{-moz-tab-size:12;tab-size:12}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item+.task-list-item{margin-top:3px}.markdown-body .task-list-item input{margin:0 .2em .25em -1.6em;vertical-align:middle}.github-lencx-z{cursor:pointer;display:inline-block;width:24px;height:24px}.github-lencx-z img{overflow:hidden}.menu-btn{position:fixed;top:14px;right:10px;z-index:100;width:28px;height:28px;cursor:pointer;vertical-align:-2px}.bm-burger-bars{background:#373a47}.bm-cross-button{height:24px;width:24px}.bm-cross{background:#bdc3c7}.bm-menu-wrap{position:fixed;height:100%;top:0}.bm-menu{background:#373a47;padding:2.5em 1.5em 0;font-size:1.15em}.bm-morph-shape{fill:#373a47}.bm-item-list{color:#b8b7ad;padding:.8em}.bm-item{display:inline-block;padding:10px;font-size:1.5rem;cursor:pointer;color:#d8d8d8;outline:none;text-align:center;font-family:"lab";font-variation-settings:"size" 30,"quad" 40,"bevl" 20,"oval" 30}.bm-overlay{background:rgba(0,0,0,.3);top:0;left:0}.fzj-header{width:100%;height:60px;position:fixed;background-color:#24292e;display:flex;align-items:center;justify-content:space-between;padding:0 12px;box-shadow:1px 1px 2px #ddd;z-index:99;top:0;left:0}.fzj-header .logo-box{cursor:pointer}.fzj-header .logo{background-image:url(/assets/fzj.883a7505.svg);background-repeat:no-repeat;background-size:100%;width:61px;height:24px}.fzj-header .desc{background-image:url(/assets/fzj-desc.da5cfda0.svg);background-repeat:no-repeat;background-size:100%;width:165px;height:12px;margin-top:3px}.fzj-header .fzj-btns{width:100px}.fzj-header .fzj-rss{width:28px;vertical-align:-3px;margin-right:10px;cursor:pointer}.fzj-footer{padding:20px 0;text-align:center}.fzj-footer a{font-weight:bold}#fzj-backtop{width:42px;height:42px;position:fixed;bottom:20px;right:20px;border-radius:50%;display:flex;justify-content:center;align-items:center;transition:all .5s ease;box-shadow:inset 0 0 5px #888;cursor:pointer}@media screen and (max-width: 767px){#fzj-backtop{width:36px;height:36px}}#fzj-backtop svg{width:50%}#fzj-backtop.hide{transform:scale(0);opacity:0}#fzj-backtop.show{transform:scale(1);opacity:1}@font-face{font-family:"lab";src:url(/lab.woff2) format("woff2")}html,body,#root{margin:0;font-family:DOS,Monaco,Menlo,Consolas,"Courier New",monospace;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:100vh;scroll-behavior:smooth;font-size:14px;line-height:1.4;touch-action:pan-x pan-y}body{background-image:url(/assets/bg.4189c4f0.png);background-repeat:repeat;background-size:100px;background-color:#f5f8fa}code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace;background-color:#dbdee2;padding:0 5px;border-radius:3px}blockquote{border-left:solid 3px var(--blue);margin:0}blockquote>p{margin-left:8px}pre{overflow-x:auto;padding:10px;border-radius:2px;font-family:"Courier New",Courier,monospace;border:solid 2px #e0e4e8}pre code{background-color:transparent}img{max-width:100%;width:100%}:root{--theme: #3c92a8;--black: #282c34;--pink: #f87da9;--blue: #4285f4;--border-color: #e0e4e8;--border: solid 1px var(--border-color);--shadow-raised: 0 1px 2px rgba(46, 41, 51, .08), 0 2px 4px rgba(71, 63, 79, .08);--shadow-floating: 0 2px 4px rgba(46, 41, 51, .08), 0 4px 8px rgba(71, 63, 79, .16);--shadow-overlay: 0 4px 8px rgba(46, 41, 51, .08), 0 8px 16px rgba(71, 63, 79, .16);--shadow-dialog: 0 4px 16px rgba(46, 41, 51, .08), 0 8px 24px rgba(71, 63, 79, .16)}.view{padding-top:58px;min-height:100vh;max-width:960px;margin:0 auto}.view>[class*=-view]{min-height:calc(100vh - 118px)}.view>[class*=-view]:before,.view>[class*=-view]:after{display:block;content:"";clear:both}.view .fzj-emoji{display:inline-block;margin-right:5px}ul{padding-left:24px!important}li{margin-bottom:6px}a{color:var(--blue)}*{box-sizing:border-box} diff --git a/assets/index.5119c8ec.js b/assets/index.5119c8ec.js new file mode 100644 index 0000000..111080e --- /dev/null +++ b/assets/index.5119c8ec.js @@ -0,0 +1 @@ +import{R as e}from"./react.434ff2b9.js";import{h as a,c as s}from"./index.f90eabce.js";import{c as o}from"./fzj.08fd6cc8.js";var t=({name:o,emoji:t})=>e.createElement("span",{className:"fzj-category",onClick:e=>{e.stopPropagation(),a(s(o))}},e.createElement("span",{className:"fzj-emoji",dangerouslySetInnerHTML:{__html:t}}),o);var n=({className:s,name:t,color:n})=>{const c=`https://github.com/lencx/z/discussions?discussions_q=label%3A${t}`;return e.createElement("span",{style:{background:`#${n}`},className:o("fzj-label",s),onClick:e=>{e.stopPropagation(),a(c)}},e.createElement("span",null,t))};export{t as C,n as L}; diff --git a/assets/index.54af1b7f.css b/assets/index.54af1b7f.css new file mode 100644 index 0000000..99739f5 --- /dev/null +++ b/assets/index.54af1b7f.css @@ -0,0 +1 @@ +.fzj-avatar{display:inline-block;border-radius:4px;padding-right:8px;text-decoration:none;overflow:hidden;vertical-align:bottom;cursor:pointer}.fzj-avatar img{width:20px;vertical-align:middle;border-radius:4px}.fzj-avatar span{font-size:12px;font-weight:500;margin-left:4px;font-style:italic;color:#666} diff --git a/assets/index.5f87edea.js b/assets/index.5f87edea.js new file mode 100644 index 0000000..a8cc11c --- /dev/null +++ b/assets/index.5f87edea.js @@ -0,0 +1 @@ +import{R as e}from"./react.434ff2b9.js";import{b as a,E as t,L as r}from"./fzj.08fd6cc8.js";import{C as s,L as o}from"./index.5119c8ec.js";import"./lodash.71f9f2ff.js";import"./graphql.8e66ecff.js";import"./index.f90eabce.js";function m(){const{data:m,loading:i,error:l}=a();if(l)return e.createElement(t,{type:"blog"});if(i||!m.repository)return e.createElement(r,null);const{discussionCategories:n,labels:c}=m.repository;return e.createElement("div",{className:"tags-view"},e.createElement("h2",null,"Categories & Labels"),e.createElement("div",{className:"tag-categories"},n.edges.map((({node:a})=>e.createElement(s,{key:a.id,name:a.name,emoji:a.emojiHTML})))),e.createElement("div",{className:"tag-labels"},c.edges.map((({node:a})=>e.createElement(o,{key:a.id,name:a.name,color:a.color})))))}export{m as default}; diff --git a/assets/index.6c2ed225.css b/assets/index.6c2ed225.css new file mode 100644 index 0000000..8d94584 --- /dev/null +++ b/assets/index.6c2ed225.css @@ -0,0 +1 @@ +.project-view h2{padding:0 15px;margin-bottom:0;font-size:28px;font-family:"lab";font-variation-settings:"size" 30,"quad" 40,"bevl" 40,"oval" 10}.project-view h3{padding:0 15px;margin-bottom:0;font-size:20px;font-family:"lab";font-variation-settings:"size" 30,"quad" 40,"bevl" 40,"oval" 10}.project-view .gh-card-box{padding:10px;display:flex;flex-wrap:wrap}.project-view .gh-card-box .gh-stats-card,.project-view .gh-card-box .gh-wakatime-card{padding:2px}.project-view .gh-card-box .gh-repo-card{padding:2px 5px;flex-grow:2}.project-view .repos{width:100%;font-size:12px;padding:12px;font-family:-apple-system,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}.project-view .repos table{width:100%;text-align:center;border-collapse:collapse}.project-view .repos thead{background-color:#393a3a}.project-view .repos thead th{border:solid 1px #d2d2d2;padding:10px;color:#fff}.project-view .repos thead th:first-child{border-left:solid 1px #393a3a}.project-view .repos thead th:last-child{border-right:solid 1px #393a3a}.project-view .repos tbody img{height:unset;width:unset}.project-view .repos tbody tr{background-color:#f0f0f0}.project-view .repos tbody tr:nth-child(2n){background-color:#fafafa}.project-view .repos tbody td{border:solid 1px #d2d2d2;padding:10px}.project-view .repos tbody td a{font-weight:bold}.project-view .repos tbody td>div{display:flex;height:100%;width:100%;align-items:center;justify-content:center} diff --git a/assets/index.735d43ee.css b/assets/index.735d43ee.css new file mode 100644 index 0000000..19ec5b5 --- /dev/null +++ b/assets/index.735d43ee.css @@ -0,0 +1 @@ +.comment-item{padding:3px 3px 0;margin-bottom:10px;border-bottom:solid 2px rgba(0,0,0,.3)}.comment-item:last-child{margin-bottom:0;border-bottom:none}.comment-author{line-height:0;border-radius:4px!important;background:#535d6f}.comment-author img{border-radius:0!important;border-color:transparent!important}.comment-author span{font-weight:bold;color:#eee!important}.comment-body{padding:8px 8px 0}.comment-body h2{padding-top:0!important;margin-top:5px!important}.comment-main{background-color:#fcfcfc;padding:1px 8px;border-radius:5px}.comment-replies{padding:2px 2px 12px}.comment-replies-author img{border-radius:50%;z-index:1}.comment-replies-body{position:relative;margin-left:24px;clear:both;background-color:#fcfcfc;padding:5px;border-radius:5px}.comment-replies-body:before{position:absolute;display:inline-block;content:"";width:1px;height:100%;border-left:dashed 2px rgba(0,0,0,.1);left:-15px;z-index:-1}.comment img{max-width:420px!important}.post-date{display:inline-block;margin-right:5px;font-size:12px;font-weight:400}.post-date b{background-color:#eee;border:solid 1px #eee;padding:2px;border-top-left-radius:4px;border-bottom-left-radius:4px}.post-date span{box-sizing:border-box;border:solid 1px #eee;border-top-right-radius:4px;border-bottom-right-radius:4px;padding:2px;color:#999}.fzj-reaction{border:solid 1px #d8d8d8;padding:2px 8px;margin-right:5px;border-radius:5px;color:#686868;font-weight:bold;margin-bottom:5px}.fzj-reaction .emoji{margin-right:5px}.issues-view{padding-top:0!important}.issues-view.notes p img{display:inline-block;width:unset!important}.issues-view .post{max-width:960px;margin:0 auto;min-height:calc(100vh - 150px);font-size:14px;position:relative;font-family:-apple-system,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}.issues-view .post .fzj-post{padding:1px 12px 20px;background-color:#fff;margin-bottom:20px}.issues-view .post .fzj-comment{background-color:#2222221a;border:solid 2px rgba(0,0,0,.3)}.issues-view .post .woap{position:absolute;right:10px;top:10px;width:30px;cursor:pointer}.issues-view .post img.emoji{max-width:unset;width:unset;transform:scale(.8);vertical-align:sub}.issues-view .post h1.title{text-align:center;padding:20px 0 10px;cursor:pointer;font-family:"lab";hyphens:none}.issues-view .post h1.title>span{padding-right:5px;background:linear-gradient(to bottom,transparent 60%,#c4cfc0 40%);font-variation-settings:"size" 50,"quad" 70,"bevl" 40,"oval" 80}.issues-view .post h1.title .issues{font-size:14px;margin-right:8px;color:#fff;font-weight:bold;font-style:italic;background-color:#c4cfc0;padding:6px 10px 0;border-top-left-radius:12px;text-shadow:0 0 1px #000}@media screen and (max-width: 680px){.issues-view .post h1.title{font-size:18px;line-height:28px;font-variation-settings:"size" 400,"quad" 1000,"bevl" 1000,"oval" 1000}.issues-view .post h1.title .issues{font-size:12px}}.issues-view .post h1,.issues-view .post h2,.issues-view .post h3,.issues-view .post h4,.issues-view .post h5,.issues-view .post h6{border-bottom:none;margin-top:1rem;margin-bottom:.6rem}.issues-view .post h2{font-size:1.3rem}.issues-view .post h3{font-size:1.2rem}.issues-view .post h4{font-size:1.1rem}.issues-view .post h5{font-size:1rem}.issues-view .post h6{font-size:.9rem}.issues-view .post .date{margin-bottom:10px;text-align:center}.issues-view .post .status{margin-bottom:10px} diff --git a/assets/index.908b2c85.css b/assets/index.908b2c85.css new file mode 100644 index 0000000..e867356 --- /dev/null +++ b/assets/index.908b2c85.css @@ -0,0 +1 @@ +.fzj-category{display:inline-block;color:#f8f8f8;background:#2a2a2a;line-height:20px;font-size:12px;font-weight:bold;padding:0 8px;text-align:center;border-radius:4px;margin-right:10px;cursor:pointer;text-shadow:0 0 1px #f8f8f8}.fzj-label{margin-right:3px;padding:2px 5px;color:#fff;border-radius:3px;font-size:12px;display:inline-block;cursor:pointer} diff --git a/assets/index.a5f9fb0d.js b/assets/index.a5f9fb0d.js new file mode 100644 index 0000000..eeae205 --- /dev/null +++ b/assets/index.a5f9fb0d.js @@ -0,0 +1 @@ +import{R as a}from"./react.434ff2b9.js";import{c as e}from"./fzj.08fd6cc8.js";var r=({className:r,avatar:t,name:c,onClick:s})=>a.createElement("div",{className:e("fzj-avatar",r),onClick:a=>{a.stopPropagation(),s&&s()}},a.createElement("img",{src:t}),a.createElement("span",null,c));export{r as A}; diff --git a/assets/index.c4924ca0.css b/assets/index.c4924ca0.css new file mode 100644 index 0000000..5190e31 --- /dev/null +++ b/assets/index.c4924ca0.css @@ -0,0 +1 @@ +.tags-view{padding:0 12px 20px}.tags-view h2{font-size:28px;font-family:"lab";font-variation-settings:"size" 30,"quad" 40,"bevl" 40,"oval" 10}.tags-view .fzj-category{margin-bottom:10px}.tags-view .fzj-label{margin-bottom:5px} diff --git a/assets/index.d15a088f.css b/assets/index.d15a088f.css new file mode 100644 index 0000000..d8254b8 --- /dev/null +++ b/assets/index.d15a088f.css @@ -0,0 +1 @@ +.about-view{padding:20px 12px}.about-view .pic{border-radius:4px}.about-view .fzj-desc{font-size:16px;font-weight:bold;color:#444;line-height:1.6;border-radius:0;box-shadow:inset 0 0 10px #888;padding:10px;margin-bottom:5px}.about-view .fzj-desc.lencx{font-size:12px;padding:8px;color:#888}.about-view .fzj-desc.lencx .notes{color:#000;font-size:14px}.about-view .fzj-desc.lencx p{margin:0} diff --git a/assets/index.e0d0297d.js b/assets/index.e0d0297d.js new file mode 100644 index 0000000..630cb3f --- /dev/null +++ b/assets/index.e0d0297d.js @@ -0,0 +1 @@ +import{u as e,R as a}from"./react.434ff2b9.js";import{A as t}from"./index.a5f9fb0d.js";import{u as s,E as l,L as r}from"./fzj.08fd6cc8.js";import{C as m,L as n}from"./index.5119c8ec.js";import{h as c,d as o}from"./index.f90eabce.js";import"./lodash.71f9f2ff.js";import"./graphql.8e66ecff.js";function i(){const i=e(),{data:d,loading:f,error:E}=s();return E?a.createElement(l,{type:"blog"}):a.createElement("div",{className:"blog-view"},a.createElement("div",{className:"fzj-list-box"},a.createElement("div",{className:"fzj-list"},d.map((({node:e,cursor:s})=>{const{category:l,author:r,number:d,labels:f}=e;return a.createElement("div",{key:s,className:"fzj-item"},a.createElement("div",{className:"fzj-card",onClick:e=>((e,a)=>{e.stopPropagation(),i.push(`/issues/${a}`)})(e,d)},a.createElement("em",{className:"issues",onClick:e=>c(o(d),e)},"#",d),a.createElement("div",{className:"title"},a.createElement("span",null,e.title)),a.createElement("div",{className:"info"},a.createElement(m,{name:l.name,emoji:l.emojiHTML}),a.createElement(t,{avatar:r.avatarUrl,name:r.login,onClick:()=>c(r.url)}),a.createElement("div",{className:"labels"},f.edges.map((({node:e})=>a.createElement(n,{key:e.id,name:e.name,color:e.color})))))))})))),f&&d.length>0&&a.createElement("div",{className:"data-loading"},"Loading..."),a.createElement(r,{visible:f&&0===d.length}))}export{i as default}; diff --git a/assets/index.e5525a57.js b/assets/index.e5525a57.js new file mode 100644 index 0000000..296bf70 --- /dev/null +++ b/assets/index.e5525a57.js @@ -0,0 +1 @@ +import{R as e,k as a,z as t}from"./react.434ff2b9.js";import{c as s,a as n,L as l,E as r}from"./fzj.08fd6cc8.js";import{A as m}from"./index.a5f9fb0d.js";import{h as c,f as o,r as i,d}from"./index.f90eabce.js";import"./lodash.71f9f2ff.js";import"./graphql.8e66ecff.js";const u=({data:a})=>e.createElement("div",{className:"comment-replies"},a.edges.map((({node:a},t)=>e.createElement("div",{key:+t},e.createElement(m,{className:"comment-replies-author",avatar:a.author.avatarUrl,name:a.author.login,onClick:()=>c(a.author.url)}),e.createElement("div",{className:"comment-replies-body",dangerouslySetInnerHTML:{__html:a.bodyHTML}})))));var p=({data:a})=>{const{author:t,replies:s}=a;return e.createElement("div",{className:"comment-item",key:a.id},e.createElement(m,{className:"comment-author",avatar:t.avatarUrl,name:t.login,onClick:()=>c(t.url)}),e.createElement("div",{className:"comment-body"},e.createElement("div",{className:"comment-main",dangerouslySetInnerHTML:{__html:a.bodyHTML}}),e.createElement(u,{data:s})))};const E=({type:a,date:t})=>e.createElement("div",{className:"post-date"},e.createElement("b",null,"create"===a?"📅":"🔄"),e.createElement("span",null,o(t)));E.defaultProps={type:"create"};var f=E;var v=({className:a,emoji:t,count:n})=>e.createElement("span",{className:s("fzj-reaction",a)},e.createElement("span",{className:"emoji"},t),e.createElement("span",{className:"count"},n));function N(){var m;const{issues:o}=a(),{data:u,loading:E,error:N}=n(o);if(E)return e.createElement(l,null);if(N)return e.createElement(r,{type:"issues",issues:o});if(!u)return null;const{title:g,bodyHTML:y,comments:h,reactions:j,category:b,labels:k,createdAt:w,updatedAt:L}=u,_=null==(m=null==k?void 0:k.edges)?void 0:m.some((({node:e})=>["wechat-link","wechat-post","微信杂谈"].includes(e.name)));return e.createElement("div",{className:s("issues-view",b.name.toLocaleLowerCase())},e.createElement(t,null,e.createElement("title",null,"浮之静|",g)),e.createElement("div",{className:"post markdown-body"},e.createElement("div",{className:"fzj-post"},_&&e.createElement("img",{className:"woap",src:"/assets/woap.99c96107.svg",alt:"woap",onClick:()=>{window.open(`${window.location.origin}/posts/issues-${o.toString().padStart(4,"0")}`,"__blank")}}),e.createElement("h1",{className:"title",onClick:()=>c(d(o))},e.createElement("span",null,e.createElement("span",{className:"issues"},"#",o),e.createElement("span",null,g))),e.createElement("div",{className:"date"},e.createElement(f,{date:w}),e.createElement(f,{type:"update",date:L})),e.createElement("div",{className:"status"},i(j.edges).map((a=>e.createElement(v,{key:a[0],emoji:a[0],count:a[1]})))),e.createElement("div",{dangerouslySetInnerHTML:{__html:y}})),h.edges.length>0&&e.createElement("div",{className:"fzj-comment"},h.edges.map((({node:a})=>e.createElement(p,{key:a.id,data:a}))))))}export{N as default}; diff --git a/assets/index.f90eabce.js b/assets/index.f90eabce.js new file mode 100644 index 0000000..248e3be --- /dev/null +++ b/assets/index.f90eabce.js @@ -0,0 +1 @@ +var t=Object.defineProperty,e=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,s=(t,e)=>{for(var n in e||(e={}))a.call(e,n)&&o(t,n,e[n]);if(r)for(var n of r(e))i.call(e,n)&&o(t,n,e[n]);return t};import{R as l,r as u,p as c,a as f,u as d,b as h,z as p,c as m,S as v,d as y,H as x,e as b,f as w}from"./react.434ff2b9.js";import{I as C,A as F,a as E}from"./graphql.8e66ecff.js";import{c as O}from"./lodash.71f9f2ff.js";!function(){const t=document.createElement("link").relList;if(!(t&&t.supports&&t.supports("modulepreload"))){for(const t of document.querySelectorAll('link[rel="modulepreload"]'))e(t);new MutationObserver((t=>{for(const n of t)if("childList"===n.type)for(const t of n.addedNodes)"LINK"===t.tagName&&"modulepreload"===t.rel&&e(t)})).observe(document,{childList:!0,subtree:!0})}function e(t){if(t.ep)return;t.ep=!0;const e=function(t){const e={};return t.integrity&&(e.integrity=t.integrity),t.referrerpolicy&&(e.referrerPolicy=t.referrerpolicy),"use-credentials"===t.crossorigin?e.credentials="include":"anonymous"===t.crossorigin?e.credentials="omit":e.credentials="same-origin",e}(t);fetch(t.href,e)}}();const S=new C({typePolicies:{Query:{fields:{repository:{keyArgs:[],merge:(t,e)=>e}}}}});var T=new F({uri:"https://api.github.com/graphql",headers:{Authorization:`token ${atob("Z2hwX3d6cVptU2liWUVaQTB3VVNxUktaU05BYmFXUGxHUjJQZ2oyTw==")}`},cache:S});function A(){return l.createElement("a",{className:"github-lencx-z",href:"https://github.com/lencx/z/discussions"},l.createElement("img",{src:"/assets/github.cf8a9345.svg"}))}var M={exports:{}},k={exports:{}},B={exports:{}},N={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.default={overlay:function(t){return{position:"fixed",zIndex:1e3,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.3)",opacity:t?1:0,MozTransform:t?"":"translate3d(100%, 0, 0)",MsTransform:t?"":"translate3d(100%, 0, 0)",OTransform:t?"":"translate3d(100%, 0, 0)",WebkitTransform:t?"":"translate3d(100%, 0, 0)",transform:t?"":"translate3d(100%, 0, 0)",transition:t?"opacity 0.3s":"opacity 0.3s, transform 0s 0.3s"}},menuWrap:function(t,e,n){return{position:"fixed",right:n?0:"inherit",zIndex:1100,width:e,height:"100%",MozTransform:t?"":n?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:t?"":n?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:t?"":n?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:t?"":n?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:t?"":n?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:"all 0.5s"}},menu:function(){return{height:"100%",boxSizing:"border-box",overflow:"auto"}},itemList:function(){return{height:"100%"}},item:function(){return{display:"block"}}},t.exports=e.default}(N,N.exports);var _={};function D(){var t=Array.from(document.getElementsByClassName("bm-item")).shift();t&&t.focus()}function I(){var t=Array.from(document.getElementsByClassName("bm-item")).pop();t&&t.focus()}function j(){var t=document.getElementById("react-burger-cross-btn");t&&t.focus()}function z(t){if(document.activeElement.className.includes("bm-item")){var e=document.activeElement[t];e?e.focus():j()}else"previousElementSibling"===t?I():D()}Object.defineProperty(_,"__esModule",{value:!0}),_.focusOnFirstMenuItem=D,_.focusOnLastMenuItem=I,_.focusOnCrossButton=j,_.focusOnMenuButton=function(){var t=document.getElementById("react-burger-menu-btn");t&&t.focus()},_.focusOnMenuItem=z,_.focusOnNextMenuItem=function(){z("nextElementSibling")},_.focusOnPreviousMenuItem=function(){z("previousElementSibling")};var P={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e1)for(var r=0,a=n.length;r=1&&(delete n[o],s.s=1,i--,function(e){setTimeout((function(){t("mina.finish."+e.id,e)}))}(s)),s.update()}e=!!i&&r(m)}else e||(e=r(m))},g=function(t,e,r,a,s,v,y){var x={id:o+(i++).toString(36),start:t,end:e,b:r,s:0,dur:a-r,spd:1,get:s,set:v,easing:y||g.linear,status:l,speed:u,duration:c,stop:f,pause:d,resume:h,update:p};n[x.id]=x;var b,w=0;for(b in n)if(n.hasOwnProperty(b)&&2==++w)break;return 1==w&&m(),x};return g.time=s,g.getById=function(t){return n[t]||null},g.linear=function(t){return t},g.easeout=function(t){return Math.pow(t,1.7)},g.easein=function(t){return Math.pow(t,.48)},g.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,n=Math.sqrt(.1734+e*e),r=n-e,a=-n-e,i=Math.pow(Math.abs(r),1/3)*(r<0?-1:1)+Math.pow(Math.abs(a),1/3)*(a<0?-1:1)+.5;return 3*(1-i)*i*i+i*i*i},g.backin=function(t){if(1==t)return 1;var e=1.70158;return t*t*((e+1)*t-e)},g.backout=function(t){if(0==t)return 0;var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},g.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1},g.bounce=function(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},window.mina=g,g}("undefined"==typeof eve?function(){}:eve),st=function(t){function e(t,r){if(t){if(t.nodeType)return q(t);if(M(t,"array")&&e.set)return e.set.apply(e,t);if(t instanceof U)return t;if(null==r)try{return q(t=n.doc.querySelector(String(t)))}catch(a){return null}}return new H(t=null==t?"100%":t,r=null==r?"100%":r)}e.version="0.5.1",e.toString=function(){return"Snap v"+this.version},e._={};var n={win:t.window,doc:t.window.document};e._.glob=n;var r="hasOwnProperty",a=String,i=parseFloat,o=parseInt,s=Math,l=s.max,u=s.min,c=s.abs,f=s.PI,d=Object.prototype.toString,h=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i;e._.separator=/[,\s]+/;var p,m,v=/[\s]*,[\s]*/,y={hs:1,rg:1},x=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,b=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,w=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/gi,C=0,F="S"+(+new Date).toString(36),E=function(t){return(t&&t.type?t.type:"")+F+(C++).toString(36)},O="http://www.w3.org/1999/xlink",S="http://www.w3.org/2000/svg",T={};function A(t,e){if(e){if("#text"==t&&(t=n.doc.createTextNode(e.text||e["#text"]||"")),"#comment"==t&&(t=n.doc.createComment(e.text||e["#text"]||"")),"string"==typeof t&&(t=A(t)),"string"==typeof e)return 1==t.nodeType?"xlink:"==e.substring(0,6)?t.getAttributeNS(O,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(S,e.substring(4)):t.getAttribute(e):"text"==e?t.nodeValue:null;if(1==t.nodeType){for(var i in e)if(e[r](i)){var o=a(e[i]);o?"xlink:"==i.substring(0,6)?t.setAttributeNS(O,i.substring(6),o):"xml:"==i.substring(0,4)?t.setAttributeNS(S,i.substring(4),o):t.setAttribute(i,o):t.removeAttribute(i)}}else"text"in e&&(t.nodeValue=e.text)}else t=n.doc.createElementNS(S,t);return t}function M(t,e){return"finite"==(e=a.prototype.toLowerCase.call(e))?isFinite(t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||("null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||d.call(t).slice(8,-1).toLowerCase()==e)}function k(t,e){for(var n=0,r=t.length;n=1e3&&delete s[l.shift()],l.push(o),s[o]=t.apply(e,i),n?n(s[o]):s[o])}}function N(t){return t%360*f/180}e.url=function(t){return"url('#"+t+"')"},e._.$=A,e._.id=E,e.format=(p=/\{([^\}]+)\}/g,m=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return a(t).replace(p,(function(t,n){return function(t,e,n){var r=n;return e.replace(m,(function(t,e,n,a,i){e=e||a,r&&(e in r&&(r=r[e]),"function"==typeof r&&i&&(r=r()))})),r=(null==r||r==n?t:r)+""}(t,n,e)}))}),e._.clone=function t(e){if("function"==typeof e||Object(e)!==e)return e;var n=new e.constructor;for(var a in e)e[r](a)&&(n[a]=t(e[a]));return n},e._.cacher=B,e.rad=N,e.deg=function(t){return 180*t/f%360},e.sin=function(t){return s.sin(e.rad(t))},e.tan=function(t){return s.tan(e.rad(t))},e.cos=function(t){return s.cos(e.rad(t))},e.asin=function(t){return e.deg(s.asin(t))},e.acos=function(t){return e.deg(s.acos(t))},e.atan=function(t){return e.deg(s.atan(t))},e.atan2=function(t){return e.deg(s.atan2(t))},e.angle=function t(e,n,r,a,i,o){if(null==i){var l=e-r,u=n-a;return l||u?(180+180*s.atan2(-u,-l)/f+360)%360:0}return t(e,n,i,o)-t(r,a,i,o)},e.len=function(t,n,r,a){return Math.sqrt(e.len2(t,n,r,a))},e.len2=function(t,e,n,r){return(t-n)*(t-n)+(e-r)*(e-r)},e.closestPoint=function(t,e,n){function r(t){var r=t.x-e,a=t.y-n;return r*r+a*a}for(var a,i,o,s,l=t.node,u=l.getTotalLength(),c=u/l.pathSegList.numberOfItems*.125,f=1/0,d=0;d<=u;d+=c)(s=r(o=l.getPointAtLength(d))).5;){var h,p,m,g,v,y;(m=i-c)>=0&&(v=r(h=l.getPointAtLength(m)))t-n)return e-a+t}return e},e.getRGB=B((function(t){if(!t||(t=a(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:j};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:j};if(!y[r](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=_(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:j};var n,c,f,d,p,m,g=t.match(h);return g?(g[2]&&(f=o(g[2].substring(5),16),c=o(g[2].substring(3,5),16),n=o(g[2].substring(1,3),16)),g[3]&&(f=o((p=g[3].charAt(3))+p,16),c=o((p=g[3].charAt(2))+p,16),n=o((p=g[3].charAt(1))+p,16)),g[4]&&(m=g[4].split(v),n=i(m[0]),"%"==m[0].slice(-1)&&(n*=2.55),c=i(m[1]),"%"==m[1].slice(-1)&&(c*=2.55),f=i(m[2]),"%"==m[2].slice(-1)&&(f*=2.55),"rgba"==g[1].toLowerCase().slice(0,4)&&(d=i(m[3])),m[3]&&"%"==m[3].slice(-1)&&(d/=100)),g[5]?(m=g[5].split(v),n=i(m[0]),"%"==m[0].slice(-1)&&(n/=100),c=i(m[1]),"%"==m[1].slice(-1)&&(c/=100),f=i(m[2]),"%"==m[2].slice(-1)&&(f/=100),("deg"==m[0].slice(-3)||"°"==m[0].slice(-1))&&(n/=360),"hsba"==g[1].toLowerCase().slice(0,4)&&(d=i(m[3])),m[3]&&"%"==m[3].slice(-1)&&(d/=100),e.hsb2rgb(n,c,f,d)):g[6]?(m=g[6].split(v),n=i(m[0]),"%"==m[0].slice(-1)&&(n/=100),c=i(m[1]),"%"==m[1].slice(-1)&&(c/=100),f=i(m[2]),"%"==m[2].slice(-1)&&(f/=100),("deg"==m[0].slice(-3)||"°"==m[0].slice(-1))&&(n/=360),"hsla"==g[1].toLowerCase().slice(0,4)&&(d=i(m[3])),m[3]&&"%"==m[3].slice(-1)&&(d/=100),e.hsl2rgb(n,c,f,d)):(n=u(s.round(n),255),c=u(s.round(c),255),f=u(s.round(f),255),d=u(l(d,0),1),(g={r:n,g:c,b:f,toString:j}).hex="#"+(16777216|f|c<<8|n<<16).toString(16).slice(1),g.opacity=M(d,"finite")?d:1,g)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:j}}),e),e.hsb=B((function(t,n,r){return e.hsb2rgb(t,n,r).hex})),e.hsl=B((function(t,n,r){return e.hsl2rgb(t,n,r).hex})),e.rgb=B((function(t,e,n,r){if(M(r,"finite")){var a=s.round;return"rgba("+[a(t),a(e),a(n),+r.toFixed(2)]+")"}return"#"+(16777216|n|e<<8|t<<16).toString(16).slice(1)}));var _=function(t){var e=n.doc.getElementsByTagName("head")[0]||n.doc.getElementsByTagName("svg")[0],r="rgb(255, 0, 0)";return(_=B((function(t){if("red"==t.toLowerCase())return r;e.style.color=r,e.style.color=t;var a=n.doc.defaultView.getComputedStyle(e,"").getPropertyValue("color");return a==r?null:a})))(t)},D=function(){return"hsb("+[this.h,this.s,this.b]+")"},I=function(){return"hsl("+[this.h,this.s,this.l]+")"},j=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},z=function(t,n,r){if(null==n&&M(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(r=t.b,n=t.g,t=t.r),null==n&&M(t,string)){var a=e.getRGB(t);t=a.r,n=a.g,r=a.b}return(t>1||n>1||r>1)&&(t/=255,n/=255,r/=255),[t,n,r]},P=function(t,n,r,a){var i={r:t=s.round(255*t),g:n=s.round(255*n),b:r=s.round(255*r),opacity:M(a,"finite")?a:1,hex:e.rgb(t,n,r),toString:j};return M(a,"finite")&&(i.opacity=a),i};e.color=function(t){var n;return M(t,"object")&&"h"in t&&"s"in t&&"b"in t?(n=e.hsb2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.opacity=1,t.hex=n.hex):M(t,"object")&&"h"in t&&"s"in t&&"l"in t?(n=e.hsl2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.opacity=1,t.hex=n.hex):(M(t,"string")&&(t=e.getRGB(t)),M(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(n=e.rgb2hsl(t),t.h=n.h,t.s=n.s,t.l=n.l,n=e.rgb2hsb(t),t.v=n.b):((t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=j,t},e.hsb2rgb=function(t,e,n,r){var a,i,o,s,l;return M(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,r=t.o,t=t.h),s=(l=n*e)*(1-c((t=(t*=360)%360/60)%2-1)),a=i=o=n-l,P(a+=[l,s,0,0,s,l][t=~~t],i+=[s,l,l,s,0,0][t],o+=[0,0,s,l,l,s][t],r)},e.hsl2rgb=function(t,e,n,r){var a,i,o,s,l;return M(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),s=(l=2*e*(n<.5?n:1-n))*(1-c((t=(t*=360)%360/60)%2-1)),a=i=o=n-l/2,P(a+=[l,s,0,0,s,l][t=~~t],i+=[s,l,l,s,0,0][t],o+=[0,0,s,l,l,s][t],r)},e.rgb2hsb=function(t,e,n){var r,a;return t=(n=z(t,e,n))[0],e=n[1],n=n[2],{h:((0==(a=(r=l(t,e,n))-u(t,e,n))?null:r==t?(e-n)/a:r==e?(n-t)/a+2:(t-e)/a+4)+360)%6*60/360,s:0==a?0:a/r,b:r,toString:D}},e.rgb2hsl=function(t,e,n){var r,a,i,o;return t=(n=z(t,e,n))[0],e=n[1],n=n[2],r=((a=l(t,e,n))+(i=u(t,e,n)))/2,{h:((0==(o=a-i)?null:a==t?(e-n)/o:a==e?(n-t)/o+2:(t-e)/o+4)+360)%6*60/360,s:0==o?0:r<.5?o/(2*r):o/(2-2*r),l:r,toString:I}},e.parsePathString=function(t){if(!t)return null;var n=e.path(t);if(n.arr)return e.path.clone(n.arr);var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return M(t,"array")&&M(t[0],"array")&&(i=e.path.clone(t)),i.length||a(t).replace(x,(function(t,e,n){var a=[],o=e.toLowerCase();if(n.replace(w,(function(t,e){e&&a.push(+e)})),"m"==o&&a.length>2&&(i.push([e].concat(a.splice(0,2))),o="l",e="m"==e?"l":"L"),"o"==o&&1==a.length&&i.push([e,a[0]]),"r"==o)i.push([e].concat(a));else for(;a.length>=r[o]&&(i.push([e].concat(a.splice(0,r[o]))),r[o]););})),i.toString=e.path.toString,n.arr=e.path.clone(i),i};var L=e.parseTransformString=function(t){if(!t)return null;var n=[];return M(t,"array")&&M(t[0],"array")&&(n=e.path.clone(t)),n.length||a(t).replace(b,(function(t,e,r){var a=[];e.toLowerCase(),r.replace(w,(function(t,e){e&&a.push(+e)})),n.push([e].concat(a))})),n.toString=e.path.toString,n};function $(t){return t.node.ownerSVGElement&&q(t.node.ownerSVGElement)||e.select("svg")}function Y(t){M(t,"array")||(t=Array.prototype.slice.call(arguments,0));for(var e=0,n=0,r=this.node;this[e];)delete this[e++];for(e=0;e2?r=r.slice(0,2):2==r.length&&r.push(0,0),1==r.length&&r.push(r[0],0,0)),"skewX"==n?e.push(["m",1,0,s.tan(N(r[0])),1,0,0]):"skewY"==n?e.push(["m",1,s.tan(N(r[0])),0,1,0,0]):e.push([n.charAt(0)].concat(r)),t})),e},e._.rgTransform=/^[a-z][\s]*-?\.?\d/i,e._.transform2matrix=function(t,n){var r=L(t),i=new e.Matrix;if(r)for(var o=0,s=r.length;o1))return eve("snap.util.getattr."+t,n).firstDefined();var u={};u[t]=e,t=u}for(var c in t)t[r](c)&&eve("snap.util.attr."+c,n,t[c]);return n},e.parse=function(t){var e=n.doc.createDocumentFragment(),r=!0,i=n.doc.createElement("div");if((t=a(t)).match(/^\s*<\s*svg(?:\s|>)/)||(t=""+t+"",r=!1),i.innerHTML=t,t=i.getElementsByTagName("svg")[0])if(r)e=t;else for(;t.firstChild;)e.appendChild(t.firstChild);return new R(e)},e.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),r=n.doc.createDocumentFragment(),a=0,i=t.length;a")}else t&&(e+="/>");return e}}i.data=function(e,n){var r=g[this.id]=g[this.id]||{};if(0==arguments.length)return eve("snap.data.get."+this.id,this,r,null),r;if(1==arguments.length){if(t.is(e,"object")){for(var a in e)e[d](a)&&this.data(a,e[a]);return this}return eve("snap.data.get."+this.id,this,r[e],e),r[e]}return r[e]=n,eve("snap.data.set."+this.id,this,n,e),this},i.removeData=function(t){return null==t?g[this.id]={}:g[this.id]&&delete g[this.id][t],this},i.outerSVG=i.toString=v(1),i.innerSVG=v(),i.toDataURL=function(){if(window&&window.btoa){var e=this.getBBox(),n=t.format('{contents}',{x:+e.x.toFixed(3),y:+e.y.toFixed(3),width:+e.width.toFixed(3),height:+e.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n)))}},a.prototype.select=i.select,a.prototype.selectAll=i.selectAll})),st.plugin((function(t,e,n,r,a){var i=Object.prototype.toString,o=String,s=Math;function l(t,e,n,r,a,o){if(null==e&&"[object SVGMatrix]"==i.call(t))return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.e=t.e,void(this.f=t.f);null!=t?(this.a=+t,this.b=+e,this.c=+n,this.d=+r,this.e=+a,this.f=+o):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}!function(e){function n(t){return t[0]*t[0]+t[1]*t[1]}function r(t){var e=s.sqrt(n(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}e.add=function(t,e,n,r,a,i){if(t&&t instanceof l)return this.add(t.a,t.b,t.c,t.d,t.e,t.f);var o=t*this.a+e*this.c,s=t*this.b+e*this.d;return this.e+=a*this.a+i*this.c,this.f+=a*this.b+i*this.d,this.c=n*this.a+r*this.c,this.d=n*this.b+r*this.d,this.a=o,this.b=s,this},l.prototype.multLeft=function(t,e,n,r,a,i){if(t&&t instanceof l)return this.multLeft(t.a,t.b,t.c,t.d,t.e,t.f);var o=t*this.a+n*this.b,s=t*this.c+n*this.d,u=t*this.e+n*this.f+a;return this.b=e*this.a+r*this.b,this.d=e*this.c+r*this.d,this.f=e*this.e+r*this.f+i,this.a=o,this.c=s,this.e=u,this},e.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new l(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},e.clone=function(){return new l(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(t,e){return this.e+=t*this.a+e*this.c,this.f+=t*this.b+e*this.d,this},e.scale=function(t,e,n,r){return null==e&&(e=t),(n||r)&&this.translate(n,r),this.a*=t,this.b*=t,this.c*=e,this.d*=e,(n||r)&&this.translate(-n,-r),this},e.rotate=function(e,n,r){e=t.rad(e),n=n||0,r=r||0;var a=+s.cos(e).toFixed(9),i=+s.sin(e).toFixed(9);return this.add(a,i,-i,a,n,r),this.add(1,0,0,1,-n,-r)},e.skewX=function(t){return this.skew(t,0)},e.skewY=function(t){return this.skew(0,t)},e.skew=function(e,n){e=e||0,n=n||0,e=t.rad(e),n=t.rad(n);var r=s.tan(e).toFixed(9),a=s.tan(n).toFixed(9);return this.add(1,a,r,1,0,0)},e.x=function(t,e){return t*this.a+e*this.c+this.e},e.y=function(t,e){return t*this.b+e*this.d+this.f},e.get=function(t){return+this[o.fromCharCode(97+t)].toFixed(4)},e.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.determinant=function(){return this.a*this.d-this.b*this.c},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var a=[[this.a,this.b],[this.c,this.d]];e.scalex=s.sqrt(n(a[0])),r(a[0]),e.shear=a[0][0]*a[1][0]+a[0][1]*a[1][1],a[1]=[a[1][0]-a[0][0]*e.shear,a[1][1]-a[0][1]*e.shear],e.scaley=s.sqrt(n(a[1])),r(a[1]),e.shear/=e.scaley,this.determinant()<0&&(e.scalex=-e.scalex);var i=a[0][1],o=a[1][1];return o<0?(e.rotate=t.deg(s.acos(o)),i<0&&(e.rotate=360-e.rotate)):e.rotate=t.deg(s.asin(i)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(t){var e=t||this.split();return+e.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[+e.dx.toFixed(4),+e.dy.toFixed(4)]:"")+(e.rotate?"r"+[+e.rotate.toFixed(4),0,0]:"")+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:""))}}(l.prototype),t.Matrix=l,t.matrix=function(t,e,n,r,a,i){return new l(t,e,n,r,a,i)}})),st.plugin((function(t,e,n,r,a){var i,o=t._.make,s=t._.wrap,l=t.is,u=t._.getSomeDefs,c=/^url\((['"]?)([^)]+)\1\)$/,f=t._.$,d=t.url,h=String,p=t._.separator;function m(n){return function(r){if(eve.stop(),r instanceof a&&1==r.node.childNodes.length&&("radialGradient"==r.node.firstChild.tagName||"linearGradient"==r.node.firstChild.tagName||"pattern"==r.node.firstChild.tagName)&&(r=r.node.firstChild,u(this).appendChild(r),r=s(r)),r instanceof e)if("radialGradient"==r.type||"linearGradient"==r.type||"pattern"==r.type){r.node.id||f(r.node,{id:r.id});var i=d(r.node.id)}else i=r.attr(n);else if((i=t.color(r)).error){var o=t(u(this).ownerSVGElement).gradient(r);o?(o.node.id||f(o.node,{id:o.id}),i=d(o.node.id)):i=r}else i=h(i);var l={};l[n]=i,f(this.node,l),this.node.style[n]=""}}t.deurl=function(t){var e=String(t).match(c);return e?e[2]:t},eve.on("snap.util.attr.mask",(function(t){if(t instanceof e||t instanceof a){if(eve.stop(),t instanceof a&&1==t.node.childNodes.length&&(t=t.node.firstChild,u(this).appendChild(t),t=s(t)),"mask"==t.type)var n=t;else(n=o("mask",u(this))).node.appendChild(t.node);!n.node.id&&f(n.node,{id:n.id}),f(this.node,{mask:d(n.id)})}})),i=function(t){if(t instanceof e||t instanceof a){eve.stop();for(var n,r=t.node;r;){if("clipPath"===r.nodeName){n=new e(r);break}if("svg"===r.nodeName){n=void 0;break}r=r.parentNode}n||((n=o("clipPath",u(this))).node.appendChild(t.node),!n.node.id&&f(n.node,{id:n.id})),f(this.node,{"clip-path":d(n.node.id||n.id)})}},eve.on("snap.util.attr.clip",i),eve.on("snap.util.attr.clip-path",i),eve.on("snap.util.attr.clipPath",i),eve.on("snap.util.attr.fill",m("fill")),eve.on("snap.util.attr.stroke",m("stroke"));var g=/^([lr])(?:\(([^)]*)\))?(.*)$/i;function v(t){eve.stop(),t==+t&&(t+="px"),this.node.style.fontSize=t}function y(t){for(var e=[],n=t.childNodes,r=0,a=n.length;r1&&(t=Array.prototype.slice.call(arguments,0));var e={};return o(t,"object")&&!o(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},i.polygon=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return o(t,"object")&&!o(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},function(){var e=t._.$;function n(){return this.selectAll("stop")}function r(n,r){var a=e("stop"),i={offset:+r+"%"};n=t.color(n),i["stop-color"]=n.hex,n.opacity<1&&(i["stop-opacity"]=n.opacity),e(a,i);for(var o,s=this.stops(),l=0;lr){this.node.insertBefore(a,s[l].node),o=!0;break}}return o||this.node.appendChild(a),this}function a(){if("linearGradient"==this.type){var n=e(this.node,"x1")||0,r=e(this.node,"x2")||1,a=e(this.node,"y1")||0,i=e(this.node,"y2")||0;return t._.box(n,a,math.abs(r-n),math.abs(i-a))}var o=this.node.cx||.5,s=this.node.cy||.5,l=this.node.r||0;return t._.box(o-l,s-l,2*l,2*l)}function o(e){var n=e,r=this.stops();if("string"==typeof e&&(n=eve("snap.util.grad.parse",null,"l(0,0,0,1)"+e).firstDefined().stops),t.is(n,"array")){for(var a=0;ah;)u=M(t,e,n,r,a,i,o,s,d+=(ui){if(r&&!h.start){if(d+=["C"+a((f=x(s,l,u[1],u[2],u[3],u[4],u[5],u[6],i-p)).start.x),a(f.start.y),a(f.m.x),a(f.m.y),a(f.x),a(f.y)],o)return d;h.start=d,d=["M"+a(f.x),a(f.y)+"C"+a(f.n.x),a(f.n.y),a(f.end.x),a(f.end.y),a(u[5]),a(u[6])].join(),p+=c,s=+u[5],l=+u[6];continue}if(!n&&!r)return f=x(s,l,u[1],u[2],u[3],u[4],u[5],u[6],i-p)}p+=c,s=+u[5],l=+u[6]}d+=u.shift()+u}return h.end=d,f=n?p:r?h:E(s,l,u[0],u[1],u[2],u[3],u[4],u[5],1)}),null,t._.clone)}var w=b(1),C=b(),F=b(0,1);function E(t,e,n,r,a,i,o,s,l){var f=1-l,d=h(f,3),p=h(f,2),m=l*l,g=m*l,v=t+2*l*(n-t)+m*(a-2*n+t),y=e+2*l*(r-e)+m*(i-2*r+e),x=n+2*l*(a-n)+m*(o-2*a+n),b=r+2*l*(i-r)+m*(s-2*i+r);return{x:d*t+3*p*l*n+3*f*l*l*a+g*o,y:d*e+3*p*l*r+3*f*l*l*i+g*s,m:{x:v,y:y},n:{x:x,y:b},start:{x:f*t+l*n,y:f*e+l*r},end:{x:f*a+l*o,y:f*i+l*s},alpha:90-180*u.atan2(v-x,y-b)/c}}function O(e,n,r,a,i,o,s,l){t.is(e,"array")||(e=[e,n,r,a,i,o,s,l]);var u=U.apply(null,e);return g(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)}function S(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function T(t,e){return t=g(t),S(e=g(e),t.x,t.y)||S(e,t.x2,t.y)||S(e,t.x,t.y2)||S(e,t.x2,t.y2)||S(t,e.x,e.y)||S(t,e.x2,e.y)||S(t,e.x,e.y2)||S(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}function A(t,e,n,r,a){return t*(t*(-3*e+9*n-9*r+3*a)+6*e-12*n+6*r)-3*e+3*n}function M(t,e,n,r,a,i,o,s,l){null==l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,p=0;p<12;p++){var m=c*f[p]+c,g=A(m,t,n,a,o),v=A(m,e,r,i,s),y=g*g+v*v;h+=d[p]*u.sqrt(y)}return c*h}function k(t,e,n,r,a,i,o,s){if(!(d(t,n)d(a,o)||d(e,r)d(i,s))){var l=(t-n)*(i-s)-(e-r)*(a-o);if(l){var u=((t*r-e*n)*(a-o)-(t-n)*(a*s-i*o))/l,c=((t*r-e*n)*(i-s)-(e-r)*(a*s-i*o))/l,h=+u.toFixed(2),p=+c.toFixed(2);if(!(h<+f(t,n).toFixed(2)||h>+d(t,n).toFixed(2)||h<+f(a,o).toFixed(2)||h>+d(a,o).toFixed(2)||p<+f(e,r).toFixed(2)||p>+d(e,r).toFixed(2)||p<+f(i,s).toFixed(2)||p>+d(i,s).toFixed(2)))return{x:u,y:c}}}}function B(t,e,n){if(!T(O(t),O(e)))return n?0:[];for(var r=~~(M.apply(0,t)/8),a=~~(M.apply(0,e)/8),i=[],o=[],s={},l=n?0:[],u=0;u=0&&b<=1&&w>=0&&w<=1&&(n?l++:l.push({x:x.x,y:x.y,t1:b,t2:w}))}}return l}function N(t,e,n){t=R(t),e=R(e);for(var r,a,i,o,s,l,u,c,f,d,h=n?0:[],p=0,m=t.length;p180),0,s,e+n*Math.sin(-a*i)]];else l=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return l.toString=v,l}var j=t._unit2px,z={path:function(t){return t.attr("path")},circle:function(t){var e=j(t);return I(e.cx,e.cy,e.r)},ellipse:function(t){var e=j(t);return I(e.cx||0,e.cy||0,e.rx,e.ry)},rect:function(t){var e=j(t);return D(e.x||0,e.y||0,e.width,e.height,e.rx,e.ry)},image:function(t){var e=j(t);return D(e.x||0,e.y||0,e.width,e.height)},line:function(t){return"M"+[t.attr("x1")||0,t.attr("y1")||0,t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"},deflt:function(t){var e=t.node.getBBox();return D(e.x,e.y,e.width,e.height)}};function P(e){var n=m(e);if(n.abs)return y(n.abs);if(i(e,"array")&&i(e&&e[0],"array")||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var r,a=[],o=0,s=0,l=0,u=0,c=0;"M"==e[0][0]&&(l=o=+e[0][1],u=s=+e[0][2],c++,a[0]=["M",o,s]);for(var f,d,h=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),p=c,g=e.length;p1&&(r*=w=u.sqrt(w),a*=w);var C=r*r,F=a*a,E=(o==s?-1:1)*u.sqrt(p((C*F-C*b*b-F*x*x)/(C*b*b+F*x*x))),O=E*r*b/a+(e+l)/2,S=E*-a*x/r+(n+f)/2,T=u.asin(((n-S)/a).toFixed(9)),A=u.asin(((f-S)/a).toFixed(9));(T=eA&&(T-=2*c),!s&&A>T&&(A-=2*c)}var M=A-T;if(p(M)>m){var k=A,B=l,N=f;A=T+m*(s&&A>T?1:-1),v=Y(l=O+r*u.cos(A),f=S+a*u.sin(A),r,a,i,0,s,B,N,[A,k,O,S])}M=A-T;var _=u.cos(T),D=u.sin(T),I=u.cos(A),j=u.sin(A),z=u.tan(M/4),P=4/3*r*z,L=4/3*a*z,$=[e,n],U=[e+P*D,n-L*_],R=[l+P*j,f-L*I],V=[l,f];if(U[0]=2*$[0]-U[0],U[1]=2*$[1]-U[1],d)return[U,R,V].concat(v);for(var H=[],q=0,W=(v=[U,R,V].concat(v).join().split(",")).length;q7){t[e].shift();for(var n=t[e];n.length;)f[e]="A",a&&(h[e]="A"),t.splice(e++,0,["C"].concat(n.splice(0,6)));t.splice(e,1),x=d(r.length,a&&a.length||0)}},c=function(t,e,n,i,o){t&&e&&"M"==t[o][0]&&"M"!=e[o][0]&&(e.splice(o,0,["M",i.x,i.y]),n.bx=0,n.by=0,n.x=t[o][1],n.y=t[o][2],x=d(r.length,a&&a.length||0))},f=[],h=[],p="",g="",v=0,x=d(r.length,a&&a.length||0);vr;r+=2){var i=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?a-4==r?i[3]={x:+t[0],y:+t[1]}:a-2==r&&(i[2]={x:+t[0],y:+t[1]},i[3]={x:+t[2],y:+t[3]}):i[0]={x:+t[a-2],y:+t[a-1]}:a-4==r?i[3]=i[2]:r||(i[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return n}t.path=m,t.path.getTotalLength=w,t.path.getPointAtLength=C,t.path.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return F(t,e).end;var r=F(t,n,1);return e?F(r,e).end:r},a.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()},a.getPointAtLength=function(t){return C(this.attr("d"),t)},a.getSubpath=function(e,n){return t.path.getSubpath(this.attr("d"),e,n)},t._.box=g,t.path.findDotsAtSegment=E,t.path.bezierBBox=O,t.path.isPointInsideBBox=S,t.closest=function(e,n,r,a){for(var i=100,o=g(e-i/2,n-i/2,i,i),s=[],l=r[0].hasOwnProperty("x")?function(t){return{x:r[t].x,y:r[t].y}}:function(t){return{x:r[t],y:a[t]}},u=0;i<=1e6&&!u;){for(var c=0,f=r.length;cm&&(p=m,s[c].len=m,h=s[c])}return h}},t.path.isBBoxIntersect=T,t.path.intersection=function(t,e){return N(t,e)},t.path.intersectionNumber=function(t,e){return N(t,e,1)},t.path.isPointInside=function(t,e,n){var r=_(t);return S(r,e,n)&&N(t,[["M",e,n],["H",r.x2+10]],1)%2==1},t.path.getBBox=_,t.path.get=z,t.path.toRelative=function(e){var n=m(e),r=String.prototype.toLowerCase;if(n.rel)return y(n.rel);t.is(e,"array")&&t.is(e&&e[0],"array")||(e=t.parsePathString(e));var a=[],i=0,o=0,s=0,l=0,u=0;"M"==e[0][0]&&(s=i=e[0][1],l=o=e[0][2],u++,a.push(["M",i,o]));for(var c=u,f=e.length;c',{def:r})},t.filter.blur.toString=function(){return this()},t.filter.shadow=function(e,n,r,a,i){return null==i&&(null==a?(i=r,r=4,a="#000"):(i=a,a=r,r=4)),null==r&&(r=4),null==i&&(i=1),null==e&&(e=0,n=2),null==n&&(n=e),a=t.color(a),t.format('',{color:a,dx:e,dy:n,blur:r,opacity:i})},t.filter.shadow.toString=function(){return this()},t.filter.grayscale=function(e){return null==e&&(e=1),t.format('',{a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},t.filter.grayscale.toString=function(){return this()},t.filter.sepia=function(e){return null==e&&(e=1),t.format('',{a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},t.filter.sepia.toString=function(){return this()},t.filter.saturate=function(e){return null==e&&(e=1),t.format('',{amount:1-e})},t.filter.saturate.toString=function(){return this()},t.filter.hueRotate=function(e){return e=e||0,t.format('',{angle:e})},t.filter.hueRotate.toString=function(){return this()},t.filter.invert=function(e){return null==e&&(e=1),t.format('',{amount:e,amount2:1-e})},t.filter.invert.toString=function(){return this()},t.filter.brightness=function(e){return null==e&&(e=1),t.format('',{amount:e})},t.filter.brightness.toString=function(){return this()},t.filter.contrast=function(e){return null==e&&(e=1),t.format('',{amount:e,amount2:.5-e/2})},t.filter.contrast.toString=function(){return this()}})),st.plugin((function(t,e,n,r,a){var i=t._.box,o=t.is,s=/^[^a-z]*([tbmlrc])/i,l=function(){return"T"+this.dx+","+this.dy};e.prototype.getAlign=function(t,e){null==e&&o(t,"string")&&(e=t,t=null);var n=(t=t||this.paper).getBBox?t.getBBox():i(t),r=this.getBBox(),a={};switch(e=(e=e&&e.match(s))?e[1].toLowerCase():"c"){case"t":a.dx=0,a.dy=n.y-r.y;break;case"b":a.dx=0,a.dy=n.y2-r.y2;break;case"m":a.dx=0,a.dy=n.cy-r.cy;break;case"l":a.dx=n.x-r.x,a.dy=0;break;case"r":a.dx=n.x2-r.x2,a.dy=0;break;default:a.dx=n.cx-r.cx,a.dy=0}return a.toString=l,a},e.prototype.align=function(t,e){return this.transform("..."+this.getAlign(t,e))}})),st.plugin((function(t,e,n,r,a){var i=e.prototype,o=t.is,s=String,l="hasOwnProperty";function u(t,e,n){return function(r){var a=r.slice(t,e);return 1==a.length&&(a=a[0]),n?n(a):a}}var c=function(t,e,n,r){"function"!=typeof n||n.length||(r=n,n=ot.linear),this.attr=t,this.dur=e,n&&(this.easing=n),r&&(this.callback=r)};t._.Animation=c,t.animation=function(t,e,n,r){return new c(t,e,n,r)},i.inAnim=function(){var t=this,e=[];for(var n in t.anims)t.anims[l](n)&&function(t){e.push({anim:new c(t._attrs,t.dur,t.easing,t._callback),mina:t,curStatus:t.status(),status:function(e){return t.status(e)},stop:function(){t.stop()}})}(t.anims[n]);return e},t.animate=function(t,e,n,r,a,i){"function"!=typeof a||a.length||(i=a,a=ot.linear);var o=ot.time(),s=ot(t,e,o,o+r,ot.time,n,a);return i&&eve.once("mina.finish."+s.id,i),s},i.stop=function(){for(var t=this.inAnim(),e=0,n=t.length;er-1||(t.animate({path:n[e]},0===e?400:500,0===e?a.easein:a.elastic,(function(){i()})),e++)}()}},morphShape:function(t,e,n){return{position:"absolute",width:"100%",height:"100%",right:n?"inherit":0,left:n?0:"inherit",MozTransform:n?"rotateY(180deg)":"rotateY(0deg)",MsTransform:n?"rotateY(180deg)":"rotateY(0deg)",OTransform:n?"rotateY(180deg)":"rotateY(0deg)",WebkitTransform:n?"rotateY(180deg)":"rotateY(0deg)",transform:n?"rotateY(180deg)":"rotateY(0deg)"}},menuWrap:function(t,e,n){return{MozTransform:t?"translate3d(0, 0, 0)":n?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:t?"translate3d(0, 0, 0)":n?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:t?"translate3d(0, 0, 0)":n?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:t?"translate3d(0, 0, 0)":n?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:t?"translate3d(0, 0, 0)":n?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:t?"transform 0.4s 0s":"transform 0.4s"}},menu:function(t,e,n){var r=(0,i.pxToNum)(e)-140;return{position:"fixed",MozTransform:t?"":n?"translate3d("+r+", 0, 0)":"translate3d(-"+r+", 0, 0)",MsTransform:t?"":n?"translate3d("+r+", 0, 0)":"translate3d(-"+r+", 0, 0)",OTransform:t?"":n?"translate3d("+r+", 0, 0)":"translate3d(-"+r+", 0, 0)",WebkitTransform:t?"":n?"translate3d("+r+", 0, 0)":"translate3d(-"+r+", 0, 0)",transform:t?"":n?"translate3d("+r+", 0, 0)":"translate3d(-"+r+", 0, 0)",transition:t?"opacity 0.1s 0.4s cubic-bezier(.17, .67, .1, 1.27), transform 0.1s 0.4s cubic-bezier(.17, .67, .1, 1.27)":"opacity 0s 0.3s cubic-bezier(.17, .67, .1, 1.27), transform 0s 0.3s cubic-bezier(.17, .67, .1, 1.27)",opacity:t?1:0}},item:function(t,e,n,r){var a=(0,i.pxToNum)(e)-140;return{MozTransform:t?"translate3d(0, 0, 0)":n?"translate3d("+a+", 0, 0)":"translate3d(-"+a+", 0, 0)",MsTransform:t?"translate3d(0, 0, 0)":n?"translate3d("+a+", 0, 0)":"translate3d(-"+a+", 0, 0)",OTransform:t?"translate3d(0, 0, 0)":n?"translate3d("+a+", 0, 0)":"translate3d(-"+a+", 0, 0)",WebkitTransform:t?"translate3d(0, 0, 0)":n?"translate3d("+a+", 0, 0)":"translate3d(-"+a+", 0, 0)",transform:t?"translate3d(0, 0, 0)":n?"translate3d("+a+", 0, 0)":"translate3d(-"+a+", 0, 0)",transition:t?"opacity 0.3s 0.4s, transform 0.3s 0.4s":"opacity 0s 0.3s cubic-bezier(.17, .67, .1, 1.27), transform 0s 0.3s cubic-bezier(.17, .67, .1, 1.27)",opacity:t?1:0}},closeButton:function(t,e,n){var r=(0,i.pxToNum)(e)-140;return{MozTransform:t?"translate3d(0, 0, 0)":n?"translate3d("+r+", 0, 0)":"translate3d(-"+r+", 0, 0)",MsTransform:t?"translate3d(0, 0, 0)":n?"translate3d("+r+", 0, 0)":"translate3d(-"+r+", 0, 0)",OTransform:t?"translate3d(0, 0, 0)":n?"translate3d("+r+", 0, 0)":"translate3d(-"+r+", 0, 0)",WebkitTransform:t?"translate3d(0, 0, 0)":n?"translate3d("+r+", 0, 0)":"translate3d(-"+r+", 0, 0)",transform:t?"translate3d(0, 0, 0)":n?"translate3d("+r+", 0, 0)":"translate3d(-"+r+", 0, 0)",transition:t?"opacity 0.3s 0.4s cubic-bezier(.17, .67, .1, 1.27), transform 0.3s 0.4s cubic-bezier(.17, .67, .1, 1.27)":"opacity 0s 0.3s cubic-bezier(.17, .67, .1, 1.27), transform 0s 0.3s cubic-bezier(.17, .67, .1, 1.27)",opacity:t?1:0}}};e.default=(0,a.default)(o),t.exports=e.default}(ct,ct.exports);var ft={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=B.exports)&&n.__esModule?n:{default:n};e.default=(0,r.default)({pageWrap:function(t,e,n){return{MozTransform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",MsTransform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",OTransform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",WebkitTransform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",transform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",transition:"all 0.5s"}},outerContainer:function(t){return{overflow:t?"":"hidden"}}}),t.exports=e.default}(ft,ft.exports);var dt={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=B.exports)&&n.__esModule?n:{default:n};e.default=(0,r.default)({pageWrap:function(t,e,n){return{MozTransform:t?"":n?"translate3d(-"+e+", 0, 0) rotateY(15deg)":"translate3d("+e+", 0, 0) rotateY(-15deg)",MsTransform:t?"":n?"translate3d(-"+e+", 0, 0) rotateY(15deg)":"translate3d("+e+", 0, 0) rotateY(-15deg)",OTransform:t?"":n?"translate3d(-"+e+", 0, 0) rotateY(15deg)":"translate3d("+e+", 0, 0) rotateY(-15deg)",WebkitTransform:t?"":n?"translate3d(-"+e+", 0, 0) rotateY(15deg)":"translate3d("+e+", 0, 0) rotateY(-15deg)",transform:t?"":n?"translate3d(-"+e+", 0, 0) rotateY(15deg)":"translate3d("+e+", 0, 0) rotateY(-15deg)",transformOrigin:n?"100% 50%":"0% 50%",transformStyle:"preserve-3d",transition:"all 0.5s"}},outerContainer:function(t){return{perspective:"1500px",overflow:t?"":"hidden"}}}),t.exports=e.default}(dt,dt.exports);var ht={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=B.exports)&&n.__esModule?n:{default:n};e.default=(0,r.default)({pageWrap:function(t,e){return{MozTransform:t?"":"translate3d(0, 0, -"+e+")",MsTransform:t?"":"translate3d(0, 0, -"+e+")",OTransform:t?"":"translate3d(0, 0, -"+e+")",WebkitTransform:t?"":"translate3d(0, 0, -"+e+")",transform:t?"":"translate3d(0, 0, -"+e+")",transformOrigin:"100%",transformStyle:"preserve-3d",transition:"all 0.5s"}},outerContainer:function(){return{perspective:"1500px"}}}),t.exports=e.default}(ht,ht.exports);var pt={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=B.exports)&&n.__esModule?n:{default:n};e.default=(0,r.default)({pageWrap:function(t,e,n){return{MozTransform:t?"":n?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",MsTransform:t?"":n?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",OTransform:t?"":n?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",WebkitTransform:t?"":n?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",transform:t?"":n?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",transformStyle:"preserve-3d",transition:"all 0.5s",overflow:t?"":"hidden"}},outerContainer:function(t){return{perspective:"1500px",overflow:t?"":"hidden"}}}),t.exports=e.default}(pt,pt.exports);var mt={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=B.exports)&&n.__esModule?n:{default:n};e.default=(0,r.default)({menuWrap:function(t){return{MozTransform:t?"":"translate3d(0, -100%, 0)",MsTransform:t?"":"translate3d(0, -100%, 0)",OTransform:t?"":"translate3d(0, -100%, 0)",WebkitTransform:t?"":"translate3d(0, -100%, 0)",transform:t?"":"translate3d(0, -100%, 0)",transition:"all 0.5s ease-in-out"}},pageWrap:function(t,e,n){return{MozTransform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",MsTransform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",OTransform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",WebkitTransform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",transform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",transition:"all 0.5s"}},outerContainer:function(t){return{perspective:"1500px",perspectiveOrigin:"0% 50%",overflow:t?"":"hidden"}}}),t.exports=e.default}(mt,mt.exports);var gt={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=B.exports)&&n.__esModule?n:{default:n};e.default=(0,r.default)({menuWrap:function(t,e,n){return{MozTransform:"translate3d(0, 0, 0)",MsTransform:"translate3d(0, 0, 0)",OTransform:"translate3d(0, 0, 0)",WebkitTransform:"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)",zIndex:t?1e3:-1}},overlay:function(t,e,n){return{zIndex:1400,MozTransform:t?n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)":"translate3d(0, 0, 0)",MsTransform:t?n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)":"translate3d(0, 0, 0)",OTransform:t?n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)":"translate3d(0, 0, 0)",WebkitTransform:t?n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)":"translate3d(0, 0, 0)",transform:t?n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)":"translate3d(0, 0, 0)",transition:"all 0.5s",visibility:t?"visible":"hidden"}},pageWrap:function(t,e,n){return{MozTransform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",MsTransform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",OTransform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",WebkitTransform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",transform:t?"":n?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",transition:"all 0.5s",zIndex:1200,position:"relative"}},burgerIcon:function(t,e,n){return{MozTransform:t?n?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)":"translate3d(0, 0, 0)",MsTransform:t?n?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)":"translate3d(0, 0, 0)",OTransform:t?n?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)":"translate3d(0, 0, 0)",WebkitTransform:t?n?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)":"translate3d(0, 0, 0)",transform:t?n?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)":"translate3d(0, 0, 0)",transition:"all 0.1s",position:"relative",zIndex:1300}},outerContainer:function(t){return{overflow:t?"":"hidden"}}}),t.exports=e.default}(gt,gt.exports),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default={slide:k.exports,stack:$.exports,elastic:rt.exports,bubble:ct.exports,push:ft.exports,pushRotate:dt.exports,scaleDown:ht.exports,scaleRotate:pt.exports,fallDown:mt.exports,reveal:gt.exports},t.exports=e.default}(M,M.exports);const vt=u.exports.createContext({}),yt=({children:t})=>{const[e,n]=u.exports.useState(!1);return l.createElement(vt.Provider,{value:{isMenuOpen:e,toggleMenu:()=>n(!e),stateChangeHandler:t=>n(t.isOpen)}},t)},xt=()=>{const t=u.exports.useContext(vt);return l.createElement("img",{className:"menu-btn",src:"/assets/menu.284d3ab8.svg",onClick:t.toggleMenu})},bt=({options:t})=>{const e=d(),n=h(),r=u.exports.useContext(vt),a=t.find((t=>t.path===n.pathname)),i="/"===(null==a?void 0:a.path);return l.createElement(l.Fragment,null,l.createElement(p,null,l.createElement("title",null,"浮之静",a&&!i?` | ${null==a?void 0:a.name}`:"")),l.createElement(M.exports.slide,{right:!0,customBurgerIcon:!1,isOpen:r.isMenuOpen,onStateChange:t=>r.stateChangeHandler(t)},t.map((t=>l.createElement("span",{key:t.path,onClick:()=>{return n=t.path,e.push(n),void r.toggleMenu();var n}},t.name)))))};const wt=({menuList:t})=>{const e=d();return l.createElement(yt,null,l.createElement("div",{className:"fzj-header"},l.createElement("div",{className:"logo-box",onClick:()=>e.push("/")},l.createElement("div",{className:"logo"})),l.createElement("div",{className:"fzj-btns"},l.createElement("img",{className:"fzj-rss",src:"/assets/rss.2a18b2d2.svg",onClick:()=>location.href="/feed.xml",alt:"RSS"}),l.createElement(A,null))),l.createElement("div",{className:"menu"},l.createElement(xt,null),l.createElement(bt,{options:t})))};wt.defaultProps={menuList:[]};function Ct(){return l.createElement("div",{className:"fzj-footer"},"© 2020 浮之静 💖 ",l.createElement("a",{href:"https://github.com/lencx"},"lencx"))}var Ft={exports:{}},Et=Ft.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",a="second",i="minute",o="hour",s="day",l="week",u="month",c="quarter",f="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},y={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+v(r,2,"0")+":"+v(a,2,"0")},m:function t(e,n){if(e.date(){for(const[n,r]of e)t=t.replace(new RegExp(Ot(n),"g"),r);return t})(t=t.normalize(),n),t=Pt(t)}const Yt=[["&"," and "],["🦄"," unicorn "],["♥"," love "]];function Ut(t,e){if("string"!=typeof t)throw new TypeError(`Expected a string, got \`${typeof t}\``);const n=(e=s({separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1},e)).preserveLeadingUnderscore&&t.startsWith("_"),r=e.preserveTrailingDash&&t.endsWith("-");t=$t(t,{customReplacements:new Map([...Yt,...e.customReplacements])}),e.decamelize&&(t=(t=>t.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1 $2"))(t));let a=/[^a-zA-Z\d]+/g;return e.lowercase&&(t=t.toLowerCase(),a=/[^a-z\d]+/g),t=(t=t.replace(a,e.separator)).replace(/\\/g,""),e.separator&&(t=((t,e)=>{const n=Ot(e);return t.replace(new RegExp(`${n}{2,}`,"g"),e).replace(new RegExp(`^${n}|${n}$`,"g"),"")})(t,e.separator)),n&&(t=`_${t}`),r&&(t=`${t}-`),t}const Rt={THUMBS_UP:["👍",":+1:"],THUMBS_DOWN:["👎",":-1:"],LAUGH:["😄",":laugh:"],HOORAY:["🎉",":hooray:"],CONFUSED:["😕",":confused:"],HEART:["❤️",":heart:"],ROCKET:["🚀",":rocket:"],EYES:["👀",":eyes:"]},Vt=20,Ht="https://raw.githubusercontent.com/lencx/z/gh-pages",qt=t=>`https://github.com/lencx/z/discussions/categories/${Ut(t)}`,Wt=t=>`https://github.com/lencx/z/discussions/${t}`;function Gt(t){const e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),n=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;(window.innerHeight||Math.min(document.documentElement.clientHeight,document.body.clientHeight))+n>=e&&t()}function Xt(t,e){e&&e.stopPropagation(),window.open(t)}function Zt(t){const e=new Map;return t.forEach((({node:t})=>{const n=Rt[t.content][0];if(e.has(n)){const t=e.get(n);e.set(n,t+1)}else e.set(n,1)})),Array.from(e)}const Kt=t=>Et(t).format("YYYY.MM.DD HH:mm:ss");const Jt=({minHeight:t})=>{const[e,n]=u.exports.useState(!1),r=()=>{((t=window)=>({x:void 0!==t.pageXOffset?t.pageXOffset:t.scrollLeft,y:void 0!==t.pageYOffset?t.pageYOffset:t.scrollTop}))().y>t?e||n(!0):n(!1)};return u.exports.useEffect((()=>(window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r)}))),l.createElement("div",{id:"fzj-backtop",className:e?"show":"hide",onClick:()=>{(document.documentElement.scrollTop||document.body.scrollTop)>0?window.scrollTo({top:0,behavior:"smooth"}):e||n(!1)}},l.createElement("svg",{viewBox:"0 0 98 125",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"m.41627505 120.505813c.36557376-2.799314 38.38567845-112.09375627 40.40633855-116.52273479 2.0206601-4.42897853 7.0443939-6.06190829 10.0049342.20172081 1.9736935 4.17575274 17.3630227 42.22464148 46.1679874 114.14666598.3068629 1.030234.4237748 1.755017.3507358 2.174348-.4483666 2.574161-2.3292736 3.429521-4.6125739 2.516093-15.0683018-6.028033-36.2681037-23.1692513-43.8663627-23.1692513-7.5982589 0-27.0568176 12.9171643-43.18383202 23.1692513-.96511235.613531-1.91473089 1.069619-2.88840599 1.149501s-2.74439509-.86628-2.37882134-3.665594z",fill:"#666",fillRule:"evenodd"})))};Jt.defaultProps={minHeight:300};const Qt=t=>l.createElement(u.exports.Suspense,{fallback:t.fallback||null},l.createElement(m,{path:t.path,render:r=>{return t.component&&l.createElement(t.component,(a=s({},r),i={routes:t.routes},e(a,n(i))));var a,i}})),te=({routes:t})=>l.createElement(v,null,t.map((t=>l.createElement(Qt,s({key:t.path},t))))),ee={},ne=function(t,e){return e&&0!==e.length?Promise.all(e.map((t=>{if((t=`/${t}`)in ee)return;ee[t]=!0;const e=t.endsWith(".css"),n=e?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${n}`))return;const r=document.createElement("link");return r.rel=e?"stylesheet":"modulepreload",e||(r.as="script",r.crossOrigin=""),r.href=t,document.head.appendChild(r),e?new Promise(((t,e)=>{r.addEventListener("load",t),r.addEventListener("error",e)})):void 0}))).then((()=>t())):t()},re=[{path:"/",name:"Blog",component:u.exports.lazy((()=>ne((()=>import("./index.e0d0297d.js")),["assets/index.e0d0297d.js","assets/index.302ac48d.css","assets/react.434ff2b9.js","assets/index.a5f9fb0d.js","assets/index.54af1b7f.css","assets/fzj.08fd6cc8.js","assets/fzj.271820f2.css","assets/lodash.71f9f2ff.js","assets/graphql.8e66ecff.js","assets/index.5119c8ec.js","assets/index.908b2c85.css"]))),exact:!0},{path:"/issues/:issues",component:u.exports.lazy((()=>ne((()=>import("./index.e5525a57.js")),["assets/index.e5525a57.js","assets/index.735d43ee.css","assets/react.434ff2b9.js","assets/fzj.08fd6cc8.js","assets/fzj.271820f2.css","assets/lodash.71f9f2ff.js","assets/graphql.8e66ecff.js","assets/index.a5f9fb0d.js","assets/index.54af1b7f.css"]))),exact:!0},{path:"/tags",name:"Tags",component:u.exports.lazy((()=>ne((()=>import("./index.5f87edea.js")),["assets/index.5f87edea.js","assets/index.c4924ca0.css","assets/react.434ff2b9.js","assets/fzj.08fd6cc8.js","assets/fzj.271820f2.css","assets/lodash.71f9f2ff.js","assets/graphql.8e66ecff.js","assets/index.5119c8ec.js","assets/index.908b2c85.css"]))),exact:!0},{path:"/project",name:"Projects",component:u.exports.lazy((()=>ne((()=>import("./index.39fc9160.js")),["assets/index.39fc9160.js","assets/index.6c2ed225.css","assets/react.434ff2b9.js"]))),exact:!0},{path:"/about",name:"About",component:u.exports.lazy((()=>ne((()=>import("./index.3bdcf399.js")),["assets/index.3bdcf399.js","assets/index.d15a088f.css","assets/react.434ff2b9.js"]))),exact:!0}],ae=re.filter((t=>!!t.name));function ie(){return l.createElement(y,null,l.createElement(x,null,l.createElement("div",{className:"view"},l.createElement(wt,{menuList:ae}),l.createElement(te,{routes:re}),l.createElement(Ct,null),l.createElement(Jt,null))))}b.render(l.createElement(l.StrictMode,null,l.createElement(E,{client:T},l.createElement(w,null,l.createElement(ie,null)))),document.getElementById("root"));export{Ht as B,qt as c,Wt as d,Kt as f,Xt as h,Vt as p,Zt as r,Gt as s}; diff --git a/assets/lodash.71f9f2ff.js b/assets/lodash.71f9f2ff.js new file mode 100644 index 0000000..3d62b9f --- /dev/null +++ b/assets/lodash.71f9f2ff.js @@ -0,0 +1 @@ +var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};export{e as c}; diff --git a/assets/menu.284d3ab8.svg b/assets/menu.284d3ab8.svg new file mode 100644 index 0000000..5e314aa --- /dev/null +++ b/assets/menu.284d3ab8.svg @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/assets/react.434ff2b9.js b/assets/react.434ff2b9.js new file mode 100644 index 0000000..a36cb9d --- /dev/null +++ b/assets/react.434ff2b9.js @@ -0,0 +1,27 @@ +var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,i=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,l=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&i(e,n,t[n]);if(r)for(var n of r(t))a.call(t,n)&&i(e,n,t[n]);return e},u=(e,r)=>t(e,n(r)),s=(e,t)=>{var n={};for(var i in e)o.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&r)for(var i of r(e))t.indexOf(i)<0&&a.call(e,i)&&(n[i]=e[i]);return n},c={exports:{}},f={},d=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;function m(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var v=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,r,o=m(e),a=1;a=g},o=function(){},e.unstable_forceFrameRate=function(e){0>e||125>>1,o=e[r];if(!(void 0!==o&&0E(i,n))void 0!==u&&0>E(u,i)?(e[r]=u,e[l]=n,r=l):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==u&&0>E(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],C=[],x=1,R=null,N=3,A=!1,L=!1,P=!1;function M(e){for(var t=_(C);null!==t;){if(null===t.callback)k(C);else{if(!(t.startTime<=e))break;k(C),t.sortIndex=t.expirationTime,S(T,t)}t=_(C)}}function O(e){if(P=!1,M(e),!L)if(null!==_(T))L=!0,t(V);else{var r=_(C);null!==r&&n(O,r.startTime-e)}}function V(t,o){L=!1,P&&(P=!1,r()),A=!0;var a=N;try{for(M(o),R=_(T);null!==R&&(!(R.expirationTime>o)||t&&!e.unstable_shouldYield());){var i=R.callback;if("function"==typeof i){R.callback=null,N=R.priorityLevel;var l=i(R.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?R.callback=l:R===_(T)&&k(T),M(o)}else k(T);R=_(T)}if(null!==R)var u=!0;else{var s=_(C);null!==s&&n(O,s.startTime-o),u=!1}return u}finally{R=null,N=a,A=!1}}var z=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){L||A||(L=!0,t(V))},e.unstable_getCurrentPriorityLevel=function(){return N},e.unstable_getFirstCallbackNode=function(){return _(T)},e.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=z,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},e.unstable_scheduleCallback=function(o,a,i){var l=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0l?(o.sortIndex=i,S(C,o),null===_(T)&&o===_(C)&&(P?r():P=!0,n(O,i-l))):(o.sortIndex=u,S(T,o),L||A||(L=!0,t(V))),o},e.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}}(Z),Y.exports=Z; +/** @license React v17.0.2 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var X=c.exports,J=v,ee=Y.exports;function te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n